提交 8b2e0f66 编写于 作者: V Vben

fix: fix the default value of props

上级 6a882059
......@@ -62,11 +62,11 @@
},
imageStyle: {
type: Object as PropType<CSSProperties>,
default: () => {},
default: () => ({}),
},
options: {
type: Object as PropType<Options>,
default: () => {},
default: () => ({}),
},
},
emits: ['cropperedInfo'],
......
......@@ -32,12 +32,12 @@
props: {
flowOptions: {
type: Object as PropType<Definition>,
default: () => {},
default: () => ({}),
},
data: {
type: Object as PropType<any>,
default: () => {},
default: () => ({}),
},
toolbar: {
......
......@@ -55,7 +55,7 @@
// api params
params: {
type: Object as PropType<Recordable>,
default: () => {},
default: () => ({}),
},
// support xxx.xxx.xx
resultField: propTypes.string.def(''),
......
......@@ -67,15 +67,15 @@
showAdvancedButton: propTypes.bool.def(true),
resetButtonOptions: {
type: Object as PropType<ButtonOptions>,
default: () => {},
default: () => ({}),
},
submitButtonOptions: {
type: Object as PropType<ButtonOptions>,
default: () => {},
default: () => ({}),
},
actionColOptions: {
type: Object as PropType<Partial<ColEx>>,
default: () => {},
default: () => ({}),
},
actionSpan: propTypes.number.def(6),
isAdvanced: propTypes.bool,
......
......@@ -24,19 +24,19 @@
props: {
schema: {
type: Object as PropType<FormSchema>,
default: () => {},
default: () => ({}),
},
formProps: {
type: Object as PropType<FormProps>,
default: () => {},
default: () => ({}),
},
allDefaultValues: {
type: Object as PropType<Recordable>,
default: () => {},
default: () => ({}),
},
formModel: {
type: Object as PropType<Recordable>,
default: () => {},
default: () => ({}),
},
setFormModel: {
type: Function as PropType<(key: string, value: any) => void>,
......
......@@ -14,7 +14,7 @@
props: {
item: {
type: Object as PropType<Menu>,
default: () => {},
default: () => ({}),
},
dot: propTypes.bool,
collapseParent: propTypes.bool,
......
......@@ -64,7 +64,7 @@
props: {
item: {
type: Object as PropType<Menu>,
default: () => {},
default: () => ({}),
},
parent: propTypes.bool,
collapsedShowTitle: propTypes.bool,
......
......@@ -23,7 +23,7 @@
props: {
column: {
type: Object as PropType<BasicColumn>,
default: () => {},
default: () => ({}),
},
},
setup(props) {
......
......@@ -60,7 +60,7 @@
},
column: {
type: Object as PropType<BasicColumn>,
default: () => {},
default: () => ({}),
},
index: propTypes.number,
},
......
......@@ -30,7 +30,7 @@
props: {
setting: {
type: Object as PropType<TableSetting>,
default: () => {},
default: () => ({}),
},
},
setup(props) {
......
......@@ -156,7 +156,7 @@
&:hover {
background-color: @header-light-bg-hover-color;
}
.@{prefix-cls}__name {
color: @text-color-base;
}
......
......@@ -23,7 +23,6 @@
props: {
event: {
type: Number as PropType<HandlerEnum>,
default: () => {},
},
title: {
type: String,
......
......@@ -25,7 +25,6 @@
props: {
event: {
type: Number as PropType<HandlerEnum>,
default: () => {},
},
disabled: {
type: Boolean,
......
......@@ -25,7 +25,6 @@
props: {
event: {
type: Number as PropType<HandlerEnum>,
default: () => {},
},
disabled: {
type: Boolean,
......
......@@ -35,7 +35,6 @@
},
event: {
type: Number as PropType<HandlerEnum>,
default: () => {},
},
def: {
type: String,
......
......@@ -35,7 +35,7 @@
},
handler: {
type: Function as PropType<Fn>,
default: () => {},
default: () => ({}),
},
def: {
type: String,
......
......@@ -210,7 +210,7 @@
min-width: 160px;
}
}
.@{countdown-prefix-cls} input {
min-width: unset;
}
......
......@@ -1614,10 +1614,10 @@
"@vue/babel-plugin-jsx" "^1.0.3"
hash-sum "^2.0.0"
"@vitejs/plugin-vue@^1.2.1":
version "1.2.1"
resolved "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-1.2.1.tgz#6de49436fc346f829a56676066428e3f011522ac"
integrity sha512-TG+LbEUNwfFrx1VyN+iq+PsiGd9MT16hUdJY+BnMXj3MrLAF8m3VYUspTDM3aXoh48YDmAkMjG4gWFRg3lbG5A==
"@vitejs/plugin-vue@^1.2.2":
version "1.2.2"
resolved "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-1.2.2.tgz#b0038fc11b9099f4cd01fcbf0ee419adda417b52"
integrity sha512-5BI2WFfs/Z0pAV4S/IQf1oH3bmFYlL5ATMBHgTt1Lf7hAnfpNd5oUAAs6hZPfk3QhvyUQgtk0rJBlabwNFcBJQ==
"@vue/babel-helper-vue-transform-on@^1.0.2":
version "1.0.2"
......@@ -1870,10 +1870,10 @@ ansi-styles@^4.0.0, ansi-styles@^4.1.0:
dependencies:
color-convert "^2.0.1"
ant-design-vue@^2.1.2:
version "2.1.2"
resolved "https://registry.npmjs.org/ant-design-vue/-/ant-design-vue-2.1.2.tgz#2065d7e63199c0c584919458af57b6a0b597f677"
integrity sha512-gDG0wauGVt4LE63behrJaIcq4BB+dgs+dpj9jz17IgKr2MPYSEeKetU/x9Kk8d58cGonz4Ulncg7fBZJ7EljsQ==
ant-design-vue@^2.1.3:
version "2.1.3"
resolved "https://registry.npmjs.org/ant-design-vue/-/ant-design-vue-2.1.3.tgz#d535f4f88f7405c1c2dfdf27d0d1b39438b28a21"
integrity sha512-pJy8fiMXXkqrFaarTWdi3gkJWfkmR9xomdTj2/YCoU9lIXT7O++JHhamDQkUyHQXCj1OHaLwWp2POeNWS1gaUQ==
dependencies:
"@ant-design-vue/use" "^0.0.1-0"
"@ant-design/icons-vue" "^6.0.0"
......@@ -1883,7 +1883,6 @@ ant-design-vue@^2.1.2:
async-validator "^3.3.0"
dom-align "^1.10.4"
dom-scroll-into-view "^2.0.0"
is-mobile "^2.2.1"
lodash-es "^4.17.15"
moment "^2.27.0"
omit.js "^2.0.0"
......@@ -2095,6 +2094,11 @@ balanced-match@^1.0.0:
resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
balanced-match@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-2.0.0.tgz#dc70f920d78db8b858535795867bf48f820633d9"
integrity sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==
base64-js@^1.3.1:
version "1.5.1"
resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
......@@ -3709,10 +3713,10 @@ escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2, escape-string-regexp@^1
resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
eslint-config-prettier@^8.2.0:
version "8.2.0"
resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.2.0.tgz#78de77d63bca8e9e59dae75a614b5299925bb7b3"
integrity sha512-dWV9EVeSo2qodOPi1iBYU/x6F6diHv8uujxbxr77xExs3zTAlNXvVZKiyLsQGNz7yPV2K49JY5WjPzNIuDc2Bw==
eslint-config-prettier@^8.3.0:
version "8.3.0"
resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz#f7471b20b6fe8a9a9254cc684454202886a2dd7a"
integrity sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==
eslint-define-config@^1.0.8:
version "1.0.8"
......@@ -4641,7 +4645,7 @@ globby@^10.0.0:
merge2 "^1.2.3"
slash "^3.0.0"
globby@^11.0.1, globby@^11.0.2:
globby@^11.0.1, globby@^11.0.3:
version "11.0.3"
resolved "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz#9b1f0cb523e171dd1ad8c7b2a9fb4b644b9593cb"
integrity sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==
......@@ -5328,11 +5332,6 @@ is-jpg@^2.0.0:
resolved "https://registry.npmjs.org/is-jpg/-/is-jpg-2.0.0.tgz#2e1997fa6e9166eaac0242daae443403e4ef1d97"
integrity sha1-LhmX+m6RZuqsAkLarkQ0A+TvHZc=
is-mobile@^2.2.1:
version "2.2.2"
resolved "https://registry.npmjs.org/is-mobile/-/is-mobile-2.2.2.tgz#f6c9c5d50ee01254ce05e739bdd835f1ed4e9954"
integrity sha512-wW/SXnYJkTjs++tVK5b6kVITZpAZPtUrt9SF80vvxGiF/Oywal+COk1jlRkiVq15RFNEQKQY31TkV24/1T5cVg==
is-module@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591"
......@@ -5877,7 +5876,7 @@ lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
log-symbols@^4.0.0:
log-symbols@^4.0.0, log-symbols@^4.1.0:
version "4.1.0"
resolved "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503"
integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==
......@@ -7169,6 +7168,14 @@ postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4:
uniq "^1.0.1"
util-deprecate "^1.0.2"
postcss-selector-parser@^6.0.5:
version "6.0.5"
resolved "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.5.tgz#042d74e137db83e6f294712096cb413f5aa612c4"
integrity sha512-aFYPoYmXbZ1V6HZaSvat08M97A8HqO6Pjz+PiNpw/DhuRrC72XWAdp3hL6wusDCN31sSmcZyMGa2hZEuX+Xfhg==
dependencies:
cssesc "^3.0.0"
util-deprecate "^1.0.2"
postcss-sorting@^5.0.1:
version "5.0.1"
resolved "https://registry.npmjs.org/postcss-sorting/-/postcss-sorting-5.0.1.tgz#10d5d0059eea8334dacc820c0121864035bc3f11"
......@@ -8397,17 +8404,17 @@ stylelint-config-prettier@^8.0.2:
resolved "https://registry.npmjs.org/stylelint-config-prettier/-/stylelint-config-prettier-8.0.2.tgz#da9de33da4c56893cbe7e26df239a7374045e14e"
integrity sha512-TN1l93iVTXpF9NJstlvP7nOu9zY2k+mN0NSFQ/VEGz15ZIP9ohdDZTtCWHs5LjctAhSAzaILULGbgiM0ItId3A==
stylelint-config-recommended@^4.0.0:
version "4.0.0"
resolved "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-4.0.0.tgz#665a0034065e6704d5032ba51bf4efa37d328ef9"
integrity sha512-sgna89Ng+25Hr9kmmaIxpGWt2LStVm1xf1807PdcWasiPDaOTkOHRL61sINw0twky7QMzafCGToGDnHT/kTHtQ==
stylelint-config-recommended@^5.0.0:
version "5.0.0"
resolved "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-5.0.0.tgz#fb5653f495a60b4938f2ad3e77712d9e1039ae78"
integrity sha512-c8aubuARSu5A3vEHLBeOSJt1udOdS+1iue7BmJDTSXoCBmfEQmmWX+59vYIj3NQdJBY6a/QRv1ozVFpaB9jaqA==
stylelint-config-standard@^21.0.0:
version "21.0.0"
resolved "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-21.0.0.tgz#4942cfa27301eb6702fa8fc46a44da35d1a5cfd7"
integrity sha512-Yf6mx5oYEbQQJxWuW7X3t1gcxqbUx52qC9SMS3saC2ruOVYEyqmr5zSW6k3wXflDjjFrPhar3kp68ugRopmlzg==
stylelint-config-standard@^22.0.0:
version "22.0.0"
resolved "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-22.0.0.tgz#c860be9a13ebbc1b084456fa10527bf13a44addf"
integrity sha512-uQVNi87SHjqTm8+4NIP5NMAyY/arXrBgimaaT7skvRfE9u3JKXRK9KBkbr4pVmeciuCcs64kAdjlxfq6Rur7Hw==
dependencies:
stylelint-config-recommended "^4.0.0"
stylelint-config-recommended "^5.0.0"
stylelint-order@^4.1.0:
version "4.1.0"
......@@ -8418,15 +8425,15 @@ stylelint-order@^4.1.0:
postcss "^7.0.31"
postcss-sorting "^5.0.1"
stylelint@^13.12.0:
version "13.12.0"
resolved "https://registry.npmjs.org/stylelint/-/stylelint-13.12.0.tgz#cceb922be0d0c7b7b6926271eea2b90cb924733e"
integrity sha512-P8O1xDy41B7O7iXaSlW+UuFbE5+ZWQDb61ndGDxKIt36fMH50DtlQTbwLpFLf8DikceTAb3r6nPrRv30wBlzXw==
stylelint@^13.13.0:
version "13.13.0"
resolved "https://registry.npmjs.org/stylelint/-/stylelint-13.13.0.tgz#1a33bffde765920ac985f16ae6250ff914b27804"
integrity sha512-jvkM1iuH88vAvjdKPwPm6abiMP2/D/1chbfb+4GVONddOOskHuCXc0loyrLdxO1AwwH6jdnjYskkTKHQD7cXwQ==
dependencies:
"@stylelint/postcss-css-in-js" "^0.37.2"
"@stylelint/postcss-markdown" "^0.36.2"
autoprefixer "^9.8.6"
balanced-match "^1.0.0"
balanced-match "^2.0.0"
chalk "^4.1.0"
cosmiconfig "^7.0.0"
debug "^4.3.1"
......@@ -8436,7 +8443,7 @@ stylelint@^13.12.0:
file-entry-cache "^6.0.1"
get-stdin "^8.0.0"
global-modules "^2.0.0"
globby "^11.0.2"
globby "^11.0.3"
globjoin "^0.1.4"
html-tags "^3.1.0"
ignore "^5.1.8"
......@@ -8444,10 +8451,10 @@ stylelint@^13.12.0:
imurmurhash "^0.1.4"
known-css-properties "^0.21.0"
lodash "^4.17.21"
log-symbols "^4.0.0"
log-symbols "^4.1.0"
mathml-tag-names "^2.1.3"
meow "^9.0.0"
micromatch "^4.0.2"
micromatch "^4.0.4"
normalize-selector "^0.2.0"
postcss "^7.0.35"
postcss-html "^0.36.0"
......@@ -8457,7 +8464,7 @@ stylelint@^13.12.0:
postcss-safe-parser "^4.0.2"
postcss-sass "^0.4.4"
postcss-scss "^2.1.1"
postcss-selector-parser "^6.0.4"
postcss-selector-parser "^6.0.5"
postcss-syntax "^0.36.2"
postcss-value-parser "^4.1.0"
resolve-from "^5.0.0"
......@@ -8468,8 +8475,8 @@ stylelint@^13.12.0:
style-search "^0.1.0"
sugarss "^2.0.0"
svg-tags "^1.0.0"
table "^6.0.7"
v8-compile-cache "^2.2.0"
table "^6.5.1"
v8-compile-cache "^2.3.0"
write-file-atomic "^3.0.3"
sucrase@^3.17.1:
......@@ -8585,7 +8592,7 @@ systemjs@^6.8.3:
resolved "https://registry.npmjs.org/systemjs/-/systemjs-6.8.3.tgz#67e27f49242e9d81c2b652b204ae54e8bfcc75a3"
integrity sha512-UcTY+FEA1B7e+bpJk1TI+a9Na6LG7wFEqW7ED16cLqLuQfI/9Ri0rsXm3tKlIgNoHyLHZycjdAOijzNbzelgwA==
table@^6.0.4, table@^6.0.7:
table@^6.0.4:
version "6.0.9"
resolved "https://registry.npmjs.org/table/-/table-6.0.9.tgz#790a12bf1e09b87b30e60419bafd6a1fd85536fb"
integrity sha512-F3cLs9a3hL1Z7N4+EkSscsel3z55XT950AvB05bwayrNg5T1/gykXtigioTAjbltvbMSJvvhFCbnf6mX+ntnJQ==
......@@ -8600,6 +8607,19 @@ table@^6.0.4, table@^6.0.7:
slice-ansi "^4.0.0"
string-width "^4.2.0"
table@^6.5.1:
version "6.5.1"
resolved "https://registry.npmjs.org/table/-/table-6.5.1.tgz#930885a7430f15f8766b35cd1e36de40793db523"
integrity sha512-xGDXWTBJxahkzPQCsn1S9ESHEenU7TbMD5Iv4FeopXv/XwJyWatFjfbor+6ipI10/MNPXBYUamYukOrbPZ9L/w==
dependencies:
ajv "^8.0.1"
lodash.clonedeep "^4.5.0"
lodash.flatten "^4.4.0"
lodash.truncate "^4.4.2"
slice-ansi "^4.0.0"
string-width "^4.2.0"
strip-ansi "^6.0.0"
tar-stream@^1.5.2:
version "1.6.2"
resolved "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz#8ea55dab37972253d9a9af90fdcd559ae435c555"
......@@ -9154,7 +9174,7 @@ uuid@^3.0.1, uuid@^3.3.2:
resolved "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
v8-compile-cache@^2.0.3, v8-compile-cache@^2.2.0:
v8-compile-cache@^2.0.3, v8-compile-cache@^2.3.0:
version "2.3.0"
resolved "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"
integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册