提交 8b2e0f66 作者: Vben

fix: fix the default value of props

上级 6a882059
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"@logicflow/extension": "^0.3.4", "@logicflow/extension": "^0.3.4",
"@vueuse/core": "^4.9.0", "@vueuse/core": "^4.9.0",
"@zxcvbn-ts/core": "^0.3.0", "@zxcvbn-ts/core": "^0.3.0",
"ant-design-vue": "^2.1.2", "ant-design-vue": "^2.1.3",
"axios": "^0.21.1", "axios": "^0.21.1",
"codemirror": "^5.61.0", "codemirror": "^5.61.0",
"cropperjs": "^1.5.11", "cropperjs": "^1.5.11",
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
"@typescript-eslint/eslint-plugin": "^4.22.0", "@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0", "@typescript-eslint/parser": "^4.22.0",
"@vitejs/plugin-legacy": "^1.3.2", "@vitejs/plugin-legacy": "^1.3.2",
"@vitejs/plugin-vue": "^1.2.1", "@vitejs/plugin-vue": "^1.2.2",
"@vitejs/plugin-vue-jsx": "^1.1.3", "@vitejs/plugin-vue-jsx": "^1.1.3",
"@vue/compiler-sfc": "3.0.11", "@vue/compiler-sfc": "3.0.11",
"autoprefixer": "^10.2.5", "autoprefixer": "^10.2.5",
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"eslint": "^7.25.0", "eslint": "^7.25.0",
"eslint-config-prettier": "^8.2.0", "eslint-config-prettier": "^8.3.0",
"eslint-define-config": "^1.0.8", "eslint-define-config": "^1.0.8",
"eslint-plugin-prettier": "^3.4.0", "eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-vue": "^7.9.0", "eslint-plugin-vue": "^7.9.0",
...@@ -104,9 +104,9 @@ ...@@ -104,9 +104,9 @@
"pretty-quick": "^3.1.0", "pretty-quick": "^3.1.0",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"rollup-plugin-visualizer": "5.3.4", "rollup-plugin-visualizer": "5.3.4",
"stylelint": "^13.12.0", "stylelint": "^13.13.0",
"stylelint-config-prettier": "^8.0.2", "stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^21.0.0", "stylelint-config-standard": "^22.0.0",
"stylelint-order": "^4.1.0", "stylelint-order": "^4.1.0",
"ts-node": "^9.1.1", "ts-node": "^9.1.1",
"typescript": "4.2.4", "typescript": "4.2.4",
......
...@@ -62,11 +62,11 @@ ...@@ -62,11 +62,11 @@
}, },
imageStyle: { imageStyle: {
type: Object as PropType<CSSProperties>, type: Object as PropType<CSSProperties>,
default: () => {}, default: () => ({}),
}, },
options: { options: {
type: Object as PropType<Options>, type: Object as PropType<Options>,
default: () => {}, default: () => ({}),
}, },
}, },
emits: ['cropperedInfo'], emits: ['cropperedInfo'],
......
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
props: { props: {
flowOptions: { flowOptions: {
type: Object as PropType<Definition>, type: Object as PropType<Definition>,
default: () => {}, default: () => ({}),
}, },
data: { data: {
type: Object as PropType<any>, type: Object as PropType<any>,
default: () => {}, default: () => ({}),
}, },
toolbar: { toolbar: {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
// api params // api params
params: { params: {
type: Object as PropType<Recordable>, type: Object as PropType<Recordable>,
default: () => {}, default: () => ({}),
}, },
// support xxx.xxx.xx // support xxx.xxx.xx
resultField: propTypes.string.def(''), resultField: propTypes.string.def(''),
......
...@@ -67,15 +67,15 @@ ...@@ -67,15 +67,15 @@
showAdvancedButton: propTypes.bool.def(true), showAdvancedButton: propTypes.bool.def(true),
resetButtonOptions: { resetButtonOptions: {
type: Object as PropType<ButtonOptions>, type: Object as PropType<ButtonOptions>,
default: () => {}, default: () => ({}),
}, },
submitButtonOptions: { submitButtonOptions: {
type: Object as PropType<ButtonOptions>, type: Object as PropType<ButtonOptions>,
default: () => {}, default: () => ({}),
}, },
actionColOptions: { actionColOptions: {
type: Object as PropType<Partial<ColEx>>, type: Object as PropType<Partial<ColEx>>,
default: () => {}, default: () => ({}),
}, },
actionSpan: propTypes.number.def(6), actionSpan: propTypes.number.def(6),
isAdvanced: propTypes.bool, isAdvanced: propTypes.bool,
......
...@@ -24,19 +24,19 @@ ...@@ -24,19 +24,19 @@
props: { props: {
schema: { schema: {
type: Object as PropType<FormSchema>, type: Object as PropType<FormSchema>,
default: () => {}, default: () => ({}),
}, },
formProps: { formProps: {
type: Object as PropType<FormProps>, type: Object as PropType<FormProps>,
default: () => {}, default: () => ({}),
}, },
allDefaultValues: { allDefaultValues: {
type: Object as PropType<Recordable>, type: Object as PropType<Recordable>,
default: () => {}, default: () => ({}),
}, },
formModel: { formModel: {
type: Object as PropType<Recordable>, type: Object as PropType<Recordable>,
default: () => {}, default: () => ({}),
}, },
setFormModel: { setFormModel: {
type: Function as PropType<(key: string, value: any) => void>, type: Function as PropType<(key: string, value: any) => void>,
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
props: { props: {
item: { item: {
type: Object as PropType<Menu>, type: Object as PropType<Menu>,
default: () => {}, default: () => ({}),
}, },
dot: propTypes.bool, dot: propTypes.bool,
collapseParent: propTypes.bool, collapseParent: propTypes.bool,
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
props: { props: {
item: { item: {
type: Object as PropType<Menu>, type: Object as PropType<Menu>,
default: () => {}, default: () => ({}),
}, },
parent: propTypes.bool, parent: propTypes.bool,
collapsedShowTitle: propTypes.bool, collapsedShowTitle: propTypes.bool,
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
props: { props: {
column: { column: {
type: Object as PropType<BasicColumn>, type: Object as PropType<BasicColumn>,
default: () => {}, default: () => ({}),
}, },
}, },
setup(props) { setup(props) {
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
}, },
column: { column: {
type: Object as PropType<BasicColumn>, type: Object as PropType<BasicColumn>,
default: () => {}, default: () => ({}),
}, },
index: propTypes.number, index: propTypes.number,
}, },
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
props: { props: {
setting: { setting: {
type: Object as PropType<TableSetting>, type: Object as PropType<TableSetting>,
default: () => {}, default: () => ({}),
}, },
}, },
setup(props) { setup(props) {
......
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
&:hover { &:hover {
background-color: @header-light-bg-hover-color; background-color: @header-light-bg-hover-color;
} }
.@{prefix-cls}__name { .@{prefix-cls}__name {
color: @text-color-base; color: @text-color-base;
} }
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
props: { props: {
event: { event: {
type: Number as PropType<HandlerEnum>, type: Number as PropType<HandlerEnum>,
default: () => {},
}, },
title: { title: {
type: String, type: String,
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
props: { props: {
event: { event: {
type: Number as PropType<HandlerEnum>, type: Number as PropType<HandlerEnum>,
default: () => {},
}, },
disabled: { disabled: {
type: Boolean, type: Boolean,
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
props: { props: {
event: { event: {
type: Number as PropType<HandlerEnum>, type: Number as PropType<HandlerEnum>,
default: () => {},
}, },
disabled: { disabled: {
type: Boolean, type: Boolean,
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
}, },
event: { event: {
type: Number as PropType<HandlerEnum>, type: Number as PropType<HandlerEnum>,
default: () => {},
}, },
def: { def: {
type: String, type: String,
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
}, },
handler: { handler: {
type: Function as PropType<Fn>, type: Function as PropType<Fn>,
default: () => {}, default: () => ({}),
}, },
def: { def: {
type: String, type: String,
......
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
min-width: 160px; min-width: 160px;
} }
} }
.@{countdown-prefix-cls} input { .@{countdown-prefix-cls} input {
min-width: unset; min-width: unset;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论