diff --git a/src/uni_modules/wot-design-uni/components/wd-switch/types.ts b/src/uni_modules/wot-design-uni/components/wd-switch/types.ts index 5e452486..ad38038a 100644 --- a/src/uni_modules/wot-design-uni/components/wd-switch/types.ts +++ b/src/uni_modules/wot-design-uni/components/wd-switch/types.ts @@ -1,5 +1,5 @@ import type { ExtractPropTypes, PropType } from 'vue' -import { baseProps, makeBooleanProp, makeNumberProp, makeNumericProp } from '../common/props' +import { baseProps, makeBooleanProp, makeNumberProp, makeNumericProp, numericProp } from '../common/props' export type SwitchBeforeChangeOption = { value: number | string | boolean @@ -47,7 +47,9 @@ export const switchProps = { /** * 大小 */ - size: makeNumericProp(28), + size: { + type: numericProp + }, /** * 在改变前执行的函数 */ diff --git a/src/uni_modules/wot-design-uni/components/wd-switch/wd-switch.vue b/src/uni_modules/wot-design-uni/components/wd-switch/wd-switch.vue index 2732f40f..118a64fb 100644 --- a/src/uni_modules/wot-design-uni/components/wd-switch/wd-switch.vue +++ b/src/uni_modules/wot-design-uni/components/wd-switch/wd-switch.vue @@ -15,7 +15,7 @@ export default {