We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd8878c commit c33706bCopy full SHA for c33706b
src/Component.ts
@@ -42,10 +42,10 @@ export default defineComponent({
42
mode: {
43
type: String as PropType<Mode>,
44
},
45
- ...(Object.fromEntries(Array.from(boolAttributes, boolAttr => [boolAttr, {
+ ...(Object.fromEntries(boolAttributes.map(boolAttr => [boolAttr, {
46
type: Boolean as PropType<boolean>,
47
- default: undefined,
48
- }])) as { [key in typeof boolAttributes[number]]: { type: PropType<boolean>; default: undefined } }),
+ default: false,
+ }])) as { [key in typeof boolAttributes[number]]: { type: PropType<boolean>; default: boolean } }),
49
50
emits: [updateModelValue, 'update:mode'],
51
setup(props, { attrs, emit, expose }) {
0 commit comments