feat(form): 规范表单组件 boolean 类型

This commit is contained in:
就眠仪式 2021-10-13 16:42:28 +08:00
parent 6f3a53f3e9
commit 6769048cd2
3 changed files with 4 additions and 4 deletions

View File

@ -23,8 +23,8 @@ const props =
name?: string name?: string
skin?: string skin?: string
label?: string label?: string
checked?: Boolean checked?: boolean
disabled?: Boolean disabled?: boolean
}>() }>()
const customChecked = ref(false) const customChecked = ref(false)

View File

@ -20,7 +20,7 @@ const props =
type?: string type?: string
modelValue?: string modelValue?: string
placeholder?: string placeholder?: string
disabled?: Boolean disabled?: boolean
}>() }>()
const emit = defineEmits(['update:modelValue', 'input']) const emit = defineEmits(['update:modelValue', 'input'])

View File

@ -17,7 +17,7 @@ const props = defineProps<{
name?: string name?: string
modelValue?: string modelValue?: string
placeholder?: string placeholder?: string
disabled?: Boolean disabled?: boolean
}>() }>()
const emit = defineEmits(['update:modelValue', 'input']) const emit = defineEmits(['update:modelValue', 'input'])