未验证 提交 a12c5706 编写于 作者: 前端爱码士 提交者: GitHub

fix: 修复props默认字段default返回空对象语法问题 (#2369)

上级 6fa35521
......@@ -9,7 +9,7 @@ import { propTypes } from '/@/utils/propTypes';
export const basicProps = {
model: {
type: Object as PropType<Recordable>,
default: {},
default: () => ({}),
},
// 标签宽度 固定宽度
labelWidth: {
......
......@@ -41,7 +41,7 @@ export const basicProps = {
export const itemProps = {
item: {
type: Object as PropType<Menu>,
default: {},
default: () => ({}),
},
level: propTypes.number,
theme: propTypes.oneOf(['dark', 'light']),
......
......@@ -76,7 +76,7 @@
const tinymceProps = {
options: {
type: Object as PropType<Partial<RawEditorSettings>>,
default: {},
default: () => ({}),
},
value: {
type: String,
......
......@@ -27,7 +27,7 @@ export const basicProps = {
},
uploadParams: {
type: Object as PropType<any>,
default: {},
default: () => ({}),
},
api: {
type: Function as PropType<PromiseFn>,
......
......@@ -38,19 +38,19 @@ export const basicProps = {
wrapStyle: {
type: Object as PropType<any>,
default: {},
default: () => ({}),
},
contentStyle: {
type: Object as PropType<any>,
default: {},
default: () => ({}),
},
barStyle: {
type: Object as PropType<any>,
default: {},
default: () => ({}),
},
actionStyle: {
type: Object as PropType<any>,
default: {},
default: () => ({}),
},
};
......@@ -67,7 +67,7 @@ export const rotateProps = {
imgWrapStyle: {
type: Object as PropType<any>,
default: {},
default: () => ({}),
},
minDegree: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册