fix: fix the default value of props
| | |
| | | "@logicflow/extension": "^0.3.4", |
| | | "@vueuse/core": "^4.9.0", |
| | | "@zxcvbn-ts/core": "^0.3.0", |
| | | "ant-design-vue": "^2.1.2", |
| | | "ant-design-vue": "^2.1.3", |
| | | "axios": "^0.21.1", |
| | | "codemirror": "^5.61.0", |
| | | "cropperjs": "^1.5.11", |
| | |
| | | "@typescript-eslint/eslint-plugin": "^4.22.0", |
| | | "@typescript-eslint/parser": "^4.22.0", |
| | | "@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", |
| | | "@vue/compiler-sfc": "3.0.11", |
| | | "autoprefixer": "^10.2.5", |
| | |
| | | "cross-env": "^7.0.3", |
| | | "dotenv": "^8.2.0", |
| | | "eslint": "^7.25.0", |
| | | "eslint-config-prettier": "^8.2.0", |
| | | "eslint-config-prettier": "^8.3.0", |
| | | "eslint-define-config": "^1.0.8", |
| | | "eslint-plugin-prettier": "^3.4.0", |
| | | "eslint-plugin-vue": "^7.9.0", |
| | |
| | | "pretty-quick": "^3.1.0", |
| | | "rimraf": "^3.0.2", |
| | | "rollup-plugin-visualizer": "5.3.4", |
| | | "stylelint": "^13.12.0", |
| | | "stylelint": "^13.13.0", |
| | | "stylelint-config-prettier": "^8.0.2", |
| | | "stylelint-config-standard": "^21.0.0", |
| | | "stylelint-config-standard": "^22.0.0", |
| | | "stylelint-order": "^4.1.0", |
| | | "ts-node": "^9.1.1", |
| | | "typescript": "4.2.4", |
| | |
| | | }, |
| | | imageStyle: { |
| | | type: Object as PropType<CSSProperties>, |
| | | default: () => {}, |
| | | default: () => ({}), |
| | | }, |
| | | options: { |
| | | type: Object as PropType<Options>, |
| | | default: () => {}, |
| | | default: () => ({}), |
| | | }, |
| | | }, |
| | | emits: ['cropperedInfo'], |
| | |
| | | props: { |
| | | flowOptions: { |
| | | type: Object as PropType<Definition>, |
| | | default: () => {}, |
| | | default: () => ({}), |
| | | }, |
| | | |
| | | data: { |
| | | type: Object as PropType<any>, |
| | | default: () => {}, |
| | | default: () => ({}), |
| | | }, |
| | | |
| | | toolbar: { |
| | |
| | | // api params |
| | | params: { |
| | | type: Object as PropType<Recordable>, |
| | | default: () => {}, |
| | | default: () => ({}), |
| | | }, |
| | | // support xxx.xxx.xx |
| | | resultField: propTypes.string.def(''), |
| | |
| | | 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, |
| | |
| | | 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>, |
| | |
| | | props: { |
| | | item: { |
| | | type: Object as PropType<Menu>, |
| | | default: () => {}, |
| | | default: () => ({}), |
| | | }, |
| | | dot: propTypes.bool, |
| | | collapseParent: propTypes.bool, |
| | |
| | | props: { |
| | | item: { |
| | | type: Object as PropType<Menu>, |
| | | default: () => {}, |
| | | default: () => ({}), |
| | | }, |
| | | parent: propTypes.bool, |
| | | collapsedShowTitle: propTypes.bool, |
| | |
| | | props: { |
| | | column: { |
| | | type: Object as PropType<BasicColumn>, |
| | | default: () => {}, |
| | | default: () => ({}), |
| | | }, |
| | | }, |
| | | setup(props) { |
| | |
| | | }, |
| | | column: { |
| | | type: Object as PropType<BasicColumn>, |
| | | default: () => {}, |
| | | default: () => ({}), |
| | | }, |
| | | index: propTypes.number, |
| | | }, |
| | |
| | | props: { |
| | | setting: { |
| | | type: Object as PropType<TableSetting>, |
| | | default: () => {}, |
| | | default: () => ({}), |
| | | }, |
| | | }, |
| | | setup(props) { |
| | |
| | | &:hover { |
| | | background-color: @header-light-bg-hover-color; |
| | | } |
| | | |
| | | |
| | | .@{prefix-cls}__name { |
| | | color: @text-color-base; |
| | | } |
| | |
| | | props: { |
| | | event: { |
| | | type: Number as PropType<HandlerEnum>, |
| | | default: () => {}, |
| | | }, |
| | | title: { |
| | | type: String, |
| | |
| | | props: { |
| | | event: { |
| | | type: Number as PropType<HandlerEnum>, |
| | | default: () => {}, |
| | | }, |
| | | disabled: { |
| | | type: Boolean, |
| | |
| | | props: { |
| | | event: { |
| | | type: Number as PropType<HandlerEnum>, |
| | | default: () => {}, |
| | | }, |
| | | disabled: { |
| | | type: Boolean, |
| | |
| | | }, |
| | | event: { |
| | | type: Number as PropType<HandlerEnum>, |
| | | default: () => {}, |
| | | }, |
| | | def: { |
| | | type: String, |
| | |
| | | }, |
| | | handler: { |
| | | type: Function as PropType<Fn>, |
| | | default: () => {}, |
| | | default: () => ({}), |
| | | }, |
| | | def: { |
| | | type: String, |
| | |
| | | min-width: 160px; |
| | | } |
| | | } |
| | | |
| | | |
| | | .@{countdown-prefix-cls} input { |
| | | min-width: unset; |
| | | } |
| | |
| | | "@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" |
| | |
| | | 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" |
| | |
| | | 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" |
| | |
| | | version "1.0.2" |
| | | 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/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" |
| | |
| | | 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== |
| | |
| | | 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" |
| | |
| | | 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== |
| | |
| | | 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" |
| | |
| | | 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" |
| | |
| | | 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" |
| | |
| | | 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" |
| | |
| | | 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" |
| | |
| | | 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" |
| | |
| | | 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: |
| | |
| | | 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== |
| | |
| | | lodash.truncate "^4.4.2" |
| | | 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/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== |