Commit a12c5706e8da2fa935e5ab56e95775b47f25c8ce
Committed by
GitHub
1 parent
6fa35521
fix: 修复props默认字段default返回空对象语法问题 (#2369)
Showing
5 changed files
with
9 additions
and
9 deletions
src/components/Form/src/props.ts
src/components/Menu/src/props.ts
src/components/Tinymce/src/Editor.vue
src/components/Upload/src/props.ts
src/components/Verify/src/props.ts
... | ... | @@ -38,19 +38,19 @@ export const basicProps = { |
38 | 38 | |
39 | 39 | wrapStyle: { |
40 | 40 | type: Object as PropType<any>, |
41 | - default: {}, | |
41 | + default: () => ({}), | |
42 | 42 | }, |
43 | 43 | contentStyle: { |
44 | 44 | type: Object as PropType<any>, |
45 | - default: {}, | |
45 | + default: () => ({}), | |
46 | 46 | }, |
47 | 47 | barStyle: { |
48 | 48 | type: Object as PropType<any>, |
49 | - default: {}, | |
49 | + default: () => ({}), | |
50 | 50 | }, |
51 | 51 | actionStyle: { |
52 | 52 | type: Object as PropType<any>, |
53 | - default: {}, | |
53 | + default: () => ({}), | |
54 | 54 | }, |
55 | 55 | }; |
56 | 56 | |
... | ... | @@ -67,7 +67,7 @@ export const rotateProps = { |
67 | 67 | |
68 | 68 | imgWrapStyle: { |
69 | 69 | type: Object as PropType<any>, |
70 | - default: {}, | |
70 | + default: () => ({}), | |
71 | 71 | }, |
72 | 72 | |
73 | 73 | minDegree: { | ... | ... |