From 1689ba037520fa47a554a9ad1822b69a4fcc2c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E4=BB=AA=E5=BC=8F?= <854085467@qq.com> Date: Wed, 29 Sep 2021 01:48:18 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BC=98=E5=8C=96]=20=E6=96=87=E6=A1=A3=20log?= =?UTF-8?q?o=20=E4=B8=8E=20=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/assets/logo.png | Bin 0 -> 2635 bytes docs/src/layouts/Layout.vue | 18 ++++++++++++--- docs/src/plugin/snippet.ts | 1 - src/module/radio/index.vue | 45 ++++++++++++++++++++++++++++++++++-- 4 files changed, 58 insertions(+), 6 deletions(-) create mode 100644 docs/src/assets/logo.png diff --git a/docs/src/assets/logo.png b/docs/src/assets/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..3791d2fbc801390c39c72ba7b363072525dfe819 GIT binary patch literal 2635 zcmV-R3bgf!P) zL_t(|ob8=GcH_7bg)ip3&|ZLh0dj74KAPNmxx4^5f1bS6`M7gy0q%UH1*mgdd20dI z0<64VfT9IL&>snkAbG!Ybox-XA*#vCDio>;03n1BLI@#*5JCtcBq>bYCqM`ZBO>3gt3FCC?);0Z|-W6TQ*2IqD`m!6OgLBSK!At-o4Is^qz zNQa={3F#0NJRu!|f+wUyQ1FCw2nwE%4#7;j2#ClnY0MuM#+bJ=ogN{d zQ1AuNdgTFtTi873WBKeCAR+)T12Byxei0b~`0Bj%YK)o07&{i)*x`%w)<0S-a?IcM z0Q~K|H8sW*E+i>~hzwxwfsCWS#|fVi{rghzN8*TlfD-k{9(MrlL}Y3we?!$w zmpVp2FxCx#7ZLeh<_T_$nW~k)a^4;Scq%$(WbVD=TC8)Iq2PC*Lifd!u?8>)@CIOh zLb>7`z(hp8z*@R{@+j?OXW^SSw%mTz=pk&+2{%brCMhZF7xn zu`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 0 HcmV?d00001 diff --git a/docs/src/layouts/Layout.vue b/docs/src/layouts/Layout.vue index 3510865d..db5b407e 100644 --- a/docs/src/layouts/Layout.vue +++ b/docs/src/layouts/Layout.vue @@ -2,10 +2,12 @@
- layui-vue + + + -
    +
    • 布局
    • 按钮
    • 图标
    • @@ -36,4 +38,14 @@ export default { return {} }, } - \ No newline at end of file + + \ No newline at end of file diff --git a/docs/src/plugin/snippet.ts b/docs/src/plugin/snippet.ts index 730a3686..3c73816c 100644 --- a/docs/src/plugin/snippet.ts +++ b/docs/src/plugin/snippet.ts @@ -1,4 +1,3 @@ -// copy from [vitepress](https://github.com/vuejs/vitepress) import fs from 'fs' import MarkdownIt from 'markdown-it' import { RuleBlock } from 'markdown-it/lib/parser_block' diff --git a/src/module/radio/index.vue b/src/module/radio/index.vue index 69e485a5..289f97f4 100644 --- a/src/module/radio/index.vue +++ b/src/module/radio/index.vue @@ -1,7 +1,48 @@ +const props = + defineProps<{ + modelValue: string + disabled?: boolean + label?: string + name: string + }>() + +const emit = defineEmits(['update:modelValue']) + +const handleClick = function () { + if (props.disabled) { + return false + } + emit('update:modelValue', !props.modelValue) +} + \ No newline at end of file