From 07b11011b15cb86a6a76d4e5957cbc1414977ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Thu, 14 Jul 2022 09:12:36 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/component/checkbox/index.vue | 13 +- .../src/component/checkboxGroup/index.vue | 18 +- .../src/component/datePicker/index.vue | 240 +++++++++++++----- .../src/component/formItem/index.vue | 48 ++-- .../src/component/inputNumber/index.vue | 10 +- .../component/src/component/page/index.vue | 78 ++++-- .../component/src/component/radio/index.vue | 22 +- .../src/component/radioGroup/index.vue | 8 +- 8 files changed, 309 insertions(+), 128 deletions(-) diff --git a/package/component/src/component/checkbox/index.vue b/package/component/src/component/checkbox/index.vue index 13384af4..7da5b280 100644 --- a/package/component/src/component/checkbox/index.vue +++ b/package/component/src/component/checkbox/index.vue @@ -23,7 +23,7 @@ const props = withDefaults(defineProps(), { isIndeterminate: false, modelValue: false, disabled: false, - label:'' + label: "", }); const checkboxGroup: any = inject("checkboxGroup", {}); @@ -100,11 +100,14 @@ const ifDisabled = computed(() => { if (props.disabled) { return true; } - if (checkboxGroup.hasOwnProperty('disabled')&&checkboxGroup.disabled.value) { + if ( + checkboxGroup.hasOwnProperty("disabled") && + checkboxGroup.disabled.value + ) { return true; } return false; -}) +});