@smallwei/avue 3.9.4 → 3.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/avue.js +368 -101
- package/dist/avue.js.map +1 -1
- package/dist/avue.min.js +2 -2
- package/es/_virtual/_commonjs-dynamic-modules.mjs +1 -1
- package/es/_virtual/_commonjsHelpers.mjs +1 -1
- package/es/_virtual/axios.mjs +1 -1
- package/es/_virtual/axios2.mjs +1 -1
- package/es/_virtual/countUp.min.mjs +1 -1
- package/es/_virtual/countUp.min2.mjs +1 -1
- package/es/_virtual/dayjs.min.mjs +1 -1
- package/es/_virtual/dayjs.min2.mjs +1 -1
- package/es/node_modules/.pnpm/countup.js@1.9.3/node_modules/countup.js/dist/countUp.min.mjs +1 -1
- package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.mjs +1 -1
- package/es/node_modules/.pnpm/qrcode-generator@2.0.4/node_modules/qrcode-generator/dist/qrcode.mjs +1 -1
- package/es/node_modules/axios/dist/axios.mjs +1 -1
- package/es/packages/core/common/event.mjs +1 -1
- package/es/packages/core/common/init.mjs +65 -4
- package/es/packages/core/common/props.mjs +1 -1
- package/es/packages/core/components/dialog-form/index.mjs +1 -1
- package/es/packages/core/components/dialog-form/index2.mjs +1 -1
- package/es/packages/core/components/dialog-form/index3.mjs +1 -1
- package/es/packages/core/components/dialog-form/index4.mjs +1 -1
- package/es/packages/core/components/form/custom.mjs +1 -1
- package/es/packages/core/components/form/index.mjs +1 -1
- package/es/packages/core/components/form/index2.mjs +1 -1
- package/es/packages/core/components/form/index3.mjs +1 -1
- package/es/packages/core/components/icon/index.mjs +1 -1
- package/es/packages/core/components/icon/index2.mjs +1 -1
- package/es/packages/core/components/icon/index3.mjs +1 -1
- package/es/packages/core/components/image-preview/index.mjs +1 -1
- package/es/packages/core/components/image-preview/index2.mjs +1 -1
- package/es/packages/core/components/image-preview/index3.mjs +1 -1
- package/es/packages/core/components/image-preview/index4.mjs +1 -1
- package/es/packages/core/directive/contextmenu.mjs +1 -1
- package/es/packages/core/directive/permission.mjs +1 -1
- package/es/packages/data/box/index.mjs +1 -1
- package/es/packages/data/box/index2.mjs +1 -1
- package/es/packages/data/box/index3.mjs +1 -1
- package/es/packages/data/card/index.mjs +1 -1
- package/es/packages/data/card/index2.mjs +1 -1
- package/es/packages/data/card/index3.mjs +1 -1
- package/es/packages/data/cardText/index.mjs +1 -1
- package/es/packages/data/cardText/index2.mjs +1 -1
- package/es/packages/data/cardText/index3.mjs +1 -1
- package/es/packages/data/countdown/index.mjs +1 -1
- package/es/packages/data/countdown/index2.mjs +1 -1
- package/es/packages/data/countdown/index3.mjs +1 -1
- package/es/packages/data/dashboard/index.mjs +1 -1
- package/es/packages/data/dashboard/index2.mjs +1 -1
- package/es/packages/data/dashboard/index3.mjs +1 -1
- package/es/packages/data/display/index.mjs +1 -1
- package/es/packages/data/display/index2.mjs +1 -1
- package/es/packages/data/display/index3.mjs +1 -1
- package/es/packages/data/icons/index.mjs +1 -1
- package/es/packages/data/icons/index2.mjs +1 -1
- package/es/packages/data/icons/index3.mjs +1 -1
- package/es/packages/data/imgText/index.mjs +1 -1
- package/es/packages/data/imgText/index2.mjs +1 -1
- package/es/packages/data/imgText/index3.mjs +1 -1
- package/es/packages/data/list/index.mjs +1 -1
- package/es/packages/data/list/index2.mjs +1 -1
- package/es/packages/data/list/index3.mjs +1 -1
- package/es/packages/data/notice/index.mjs +1 -1
- package/es/packages/data/notice/index2.mjs +1 -1
- package/es/packages/data/notice/index3.mjs +1 -1
- package/es/packages/data/operaText/index.mjs +1 -1
- package/es/packages/data/operaText/index2.mjs +1 -1
- package/es/packages/data/operaText/index3.mjs +1 -1
- package/es/packages/data/panel/index.mjs +1 -1
- package/es/packages/data/panel/index2.mjs +1 -1
- package/es/packages/data/panel/index3.mjs +1 -1
- package/es/packages/data/pay/index.mjs +1 -1
- package/es/packages/data/pay/index2.mjs +1 -1
- package/es/packages/data/pay/index3.mjs +1 -1
- package/es/packages/data/price/index.mjs +1 -1
- package/es/packages/data/price/index2.mjs +1 -1
- package/es/packages/data/price/index3.mjs +1 -1
- package/es/packages/data/product/index.mjs +1 -1
- package/es/packages/data/product/index2.mjs +1 -1
- package/es/packages/data/product/index3.mjs +1 -1
- package/es/packages/data/profile/index.mjs +1 -1
- package/es/packages/data/profile/index2.mjs +1 -1
- package/es/packages/data/profile/index3.mjs +1 -1
- package/es/packages/data/progress/index.mjs +1 -1
- package/es/packages/data/progress/index2.mjs +1 -1
- package/es/packages/data/progress/index3.mjs +1 -1
- package/es/packages/data/rank/index.mjs +1 -1
- package/es/packages/data/rank/index2.mjs +1 -1
- package/es/packages/data/rank/index3.mjs +1 -1
- package/es/packages/data/rotate/index.mjs +1 -1
- package/es/packages/data/rotate/index2.mjs +1 -1
- package/es/packages/data/rotate/index3.mjs +1 -1
- package/es/packages/data/statistic/index.mjs +1 -1
- package/es/packages/data/statistic/index2.mjs +1 -1
- package/es/packages/data/statistic/index3.mjs +1 -1
- package/es/packages/data/tabs/index.mjs +1 -1
- package/es/packages/data/tabs/index2.mjs +1 -1
- package/es/packages/data/tabs/index3.mjs +1 -1
- package/es/packages/data/task/index.mjs +1 -1
- package/es/packages/data/task/index2.mjs +1 -1
- package/es/packages/data/task/index3.mjs +1 -1
- package/es/packages/data/weather/index.mjs +1 -1
- package/es/packages/data/weather/index2.mjs +1 -1
- package/es/packages/data/weather/index3.mjs +1 -1
- package/es/packages/element-plus/array/index.mjs +1 -1
- package/es/packages/element-plus/array/index2.mjs +1 -1
- package/es/packages/element-plus/array/index3.mjs +1 -1
- package/es/packages/element-plus/article/index.mjs +1 -1
- package/es/packages/element-plus/article/index2.mjs +1 -1
- package/es/packages/element-plus/article/index3.mjs +1 -1
- package/es/packages/element-plus/captcha/index.mjs +1 -1
- package/es/packages/element-plus/captcha/index2.mjs +1 -1
- package/es/packages/element-plus/captcha/index3.mjs +1 -1
- package/es/packages/element-plus/cascader/index.mjs +1 -1
- package/es/packages/element-plus/cascader/index2.mjs +1 -1
- package/es/packages/element-plus/cascader/index3.mjs +1 -1
- package/es/packages/element-plus/chat/index.mjs +1 -1
- package/es/packages/element-plus/chat/index2.mjs +1 -1
- package/es/packages/element-plus/chat/index3.mjs +1 -1
- package/es/packages/element-plus/checkbox/index.mjs +1 -1
- package/es/packages/element-plus/checkbox/index2.mjs +1 -1
- package/es/packages/element-plus/checkbox/index3.mjs +1 -1
- package/es/packages/element-plus/comment/index.mjs +1 -1
- package/es/packages/element-plus/comment/index2.mjs +1 -1
- package/es/packages/element-plus/comment/index3.mjs +1 -1
- package/es/packages/element-plus/count-up/index.mjs +1 -1
- package/es/packages/element-plus/count-up/index2.mjs +1 -1
- package/es/packages/element-plus/count-up/index3.mjs +1 -1
- package/es/packages/element-plus/crud/column/column-default.mjs +1 -1
- package/es/packages/element-plus/crud/column/column-default2.mjs +37 -4
- package/es/packages/element-plus/crud/column/column-default3.mjs +1 -1
- package/es/packages/element-plus/crud/column/column-dynamic.mjs +1 -1
- package/es/packages/element-plus/crud/column/column-dynamic2.mjs +1 -1
- package/es/packages/element-plus/crud/column/column-dynamic3.mjs +1 -1
- package/es/packages/element-plus/crud/column/column-menu.mjs +1 -1
- package/es/packages/element-plus/crud/column/column-menu2.mjs +1 -1
- package/es/packages/element-plus/crud/column/column-menu3.mjs +1 -1
- package/es/packages/element-plus/crud/column/column-slot.mjs +1 -1
- package/es/packages/element-plus/crud/column/column-slot2.mjs +2 -4
- package/es/packages/element-plus/crud/column/column-slot3.mjs +4 -7
- package/es/packages/element-plus/crud/column/column.mjs +1 -1
- package/es/packages/element-plus/crud/column/column2.mjs +1 -1
- package/es/packages/element-plus/crud/column/column3.mjs +1 -1
- package/es/packages/element-plus/crud/column/menu.mjs +1 -1
- package/es/packages/element-plus/crud/column/menu2.mjs +2 -2
- package/es/packages/element-plus/crud/column/menu3.mjs +1 -1
- package/es/packages/element-plus/crud/config.mjs +1 -1
- package/es/packages/element-plus/crud/dialog/dialog-column.mjs +1 -1
- package/es/packages/element-plus/crud/dialog/dialog-column2.mjs +2 -1
- package/es/packages/element-plus/crud/dialog/dialog-column3.mjs +1 -1
- package/es/packages/element-plus/crud/dialog/dialog-excel.mjs +1 -1
- package/es/packages/element-plus/crud/dialog/dialog-excel2.mjs +2 -2
- package/es/packages/element-plus/crud/dialog/dialog-excel3.mjs +1 -1
- package/es/packages/element-plus/crud/dialog/dialog-filter.mjs +1 -1
- package/es/packages/element-plus/crud/dialog/dialog-filter2.mjs +1 -1
- package/es/packages/element-plus/crud/dialog/dialog-filter3.mjs +1 -1
- package/es/packages/element-plus/crud/dialog/dialog-form.mjs +1 -1
- package/es/packages/element-plus/crud/dialog/dialog-form2.mjs +1 -1
- package/es/packages/element-plus/crud/dialog/dialog-form3.mjs +1 -1
- package/es/packages/element-plus/crud/grid/index.mjs +1 -1
- package/es/packages/element-plus/crud/grid/index2.mjs +96 -27
- package/es/packages/element-plus/crud/grid/index3.mjs +2 -2
- package/es/packages/element-plus/crud/grid/item.mjs +1 -1
- package/es/packages/element-plus/crud/grid/item2.mjs +1 -1
- package/es/packages/element-plus/crud/grid/item3.mjs +1 -1
- package/es/packages/element-plus/crud/index.mjs +1 -1
- package/es/packages/element-plus/crud/index2.mjs +9 -2
- package/es/packages/element-plus/crud/index3.mjs +1 -1
- package/es/packages/element-plus/crud/menu/header-menu.mjs +1 -1
- package/es/packages/element-plus/crud/menu/header-menu2.mjs +1 -1
- package/es/packages/element-plus/crud/menu/header-menu3.mjs +1 -1
- package/es/packages/element-plus/crud/menu/header-search.mjs +1 -1
- package/es/packages/element-plus/crud/menu/header-search2.mjs +1 -1
- package/es/packages/element-plus/crud/menu/header-search3.mjs +1 -1
- package/es/packages/element-plus/crud/menu/table-page.mjs +1 -1
- package/es/packages/element-plus/crud/menu/table-page2.mjs +1 -1
- package/es/packages/element-plus/crud/menu/table-page3.mjs +1 -1
- package/es/packages/element-plus/date/index.mjs +1 -1
- package/es/packages/element-plus/date/index2.mjs +17 -2
- package/es/packages/element-plus/date/index3.mjs +2 -2
- package/es/packages/element-plus/draggable/index.mjs +1 -1
- package/es/packages/element-plus/draggable/index2.mjs +1 -1
- package/es/packages/element-plus/draggable/index3.mjs +1 -1
- package/es/packages/element-plus/dynamic/index.mjs +1 -1
- package/es/packages/element-plus/dynamic/index2.mjs +1 -1
- package/es/packages/element-plus/dynamic/index3.mjs +1 -1
- package/es/packages/element-plus/file-manager/index.mjs +1 -1
- package/es/packages/element-plus/file-manager/index2.mjs +1 -1
- package/es/packages/element-plus/file-manager/index3.mjs +1 -1
- package/es/packages/element-plus/filter-builder/index.mjs +1 -1
- package/es/packages/element-plus/filter-builder/index2.mjs +1 -1
- package/es/packages/element-plus/filter-builder/index3.mjs +1 -1
- package/es/packages/element-plus/flow/index.mjs +1 -1
- package/es/packages/element-plus/flow/index2.mjs +1 -1
- package/es/packages/element-plus/flow/index3.mjs +1 -1
- package/es/packages/element-plus/flow/node.mjs +1 -1
- package/es/packages/element-plus/flow/node2.mjs +1 -1
- package/es/packages/element-plus/flow/node3.mjs +1 -1
- package/es/packages/element-plus/form/config.mjs +1 -1
- package/es/packages/element-plus/form/index.mjs +1 -1
- package/es/packages/element-plus/form/index2.mjs +1 -1
- package/es/packages/element-plus/form/index3.mjs +1 -1
- package/es/packages/element-plus/form/menu.mjs +1 -1
- package/es/packages/element-plus/form/menu2.mjs +1 -1
- package/es/packages/element-plus/form/menu3.mjs +1 -1
- package/es/packages/element-plus/group/index.mjs +1 -1
- package/es/packages/element-plus/group/index2.mjs +1 -1
- package/es/packages/element-plus/group/index3.mjs +1 -1
- package/es/packages/element-plus/iframe/index.mjs +1 -1
- package/es/packages/element-plus/iframe/index2.mjs +1 -1
- package/es/packages/element-plus/iframe/index3.mjs +1 -1
- package/es/packages/element-plus/input/index.mjs +1 -1
- package/es/packages/element-plus/input/index2.mjs +1 -1
- package/es/packages/element-plus/input/index3.mjs +1 -1
- package/es/packages/element-plus/input-color/index.mjs +1 -1
- package/es/packages/element-plus/input-color/index2.mjs +1 -1
- package/es/packages/element-plus/input-color/index3.mjs +1 -1
- package/es/packages/element-plus/input-cron/index.mjs +1 -1
- package/es/packages/element-plus/input-cron/index2.mjs +1 -1
- package/es/packages/element-plus/input-cron/index3.mjs +1 -1
- package/es/packages/element-plus/input-icon/index.mjs +1 -1
- package/es/packages/element-plus/input-icon/index2.mjs +1 -1
- package/es/packages/element-plus/input-icon/index3.mjs +1 -1
- package/es/packages/element-plus/input-map/index.mjs +1 -1
- package/es/packages/element-plus/input-map/index2.mjs +1 -1
- package/es/packages/element-plus/input-map/index3.mjs +1 -1
- package/es/packages/element-plus/input-number/index.mjs +1 -1
- package/es/packages/element-plus/input-number/index2.mjs +1 -1
- package/es/packages/element-plus/input-number/index3.mjs +1 -1
- package/es/packages/element-plus/input-otp/index.mjs +1 -1
- package/es/packages/element-plus/input-otp/index2.mjs +1 -1
- package/es/packages/element-plus/input-otp/index3.mjs +1 -1
- package/es/packages/element-plus/input-table/index.mjs +1 -1
- package/es/packages/element-plus/input-table/index2.mjs +1 -1
- package/es/packages/element-plus/input-table/index3.mjs +1 -1
- package/es/packages/element-plus/input-tag/index.mjs +1 -1
- package/es/packages/element-plus/input-tag/index2.mjs +1 -1
- package/es/packages/element-plus/input-tag/index3.mjs +1 -1
- package/es/packages/element-plus/input-tree/index.mjs +1 -1
- package/es/packages/element-plus/input-tree/index2.mjs +1 -1
- package/es/packages/element-plus/input-tree/index3.mjs +1 -1
- package/es/packages/element-plus/license/index.mjs +1 -1
- package/es/packages/element-plus/license/index2.mjs +1 -1
- package/es/packages/element-plus/license/index3.mjs +1 -1
- package/es/packages/element-plus/login/index.mjs +1 -1
- package/es/packages/element-plus/login/index2.mjs +1 -1
- package/es/packages/element-plus/login/index3.mjs +1 -1
- package/es/packages/element-plus/mention/index.mjs +1 -1
- package/es/packages/element-plus/mention/index2.mjs +1 -1
- package/es/packages/element-plus/mention/index3.mjs +1 -1
- package/es/packages/element-plus/qrcode/index.mjs +1 -1
- package/es/packages/element-plus/qrcode/index2.mjs +1 -1
- package/es/packages/element-plus/qrcode/index3.mjs +1 -1
- package/es/packages/element-plus/radio/index.mjs +1 -1
- package/es/packages/element-plus/radio/index2.mjs +1 -1
- package/es/packages/element-plus/radio/index3.mjs +1 -1
- package/es/packages/element-plus/rate/index.mjs +1 -1
- package/es/packages/element-plus/rate/index2.mjs +1 -1
- package/es/packages/element-plus/rate/index3.mjs +1 -1
- package/es/packages/element-plus/search/index.mjs +1 -1
- package/es/packages/element-plus/search/index2.mjs +1 -1
- package/es/packages/element-plus/search/index3.mjs +1 -1
- package/es/packages/element-plus/select/index.mjs +1 -1
- package/es/packages/element-plus/select/index2.mjs +1 -1
- package/es/packages/element-plus/select/index3.mjs +1 -1
- package/es/packages/element-plus/sign/index.mjs +1 -1
- package/es/packages/element-plus/sign/index2.mjs +1 -1
- package/es/packages/element-plus/sign/index3.mjs +1 -1
- package/es/packages/element-plus/slider/index.mjs +1 -1
- package/es/packages/element-plus/slider/index2.mjs +1 -1
- package/es/packages/element-plus/slider/index3.mjs +1 -1
- package/es/packages/element-plus/switch/index.mjs +1 -1
- package/es/packages/element-plus/switch/index2.mjs +1 -1
- package/es/packages/element-plus/switch/index3.mjs +1 -1
- package/es/packages/element-plus/tabs/index.mjs +1 -1
- package/es/packages/element-plus/tabs/index2.mjs +1 -1
- package/es/packages/element-plus/tabs/index3.mjs +1 -1
- package/es/packages/element-plus/text-ellipsis/index.mjs +1 -1
- package/es/packages/element-plus/text-ellipsis/index2.mjs +1 -1
- package/es/packages/element-plus/text-ellipsis/index3.mjs +1 -1
- package/es/packages/element-plus/time/index.mjs +1 -1
- package/es/packages/element-plus/time/index2.mjs +1 -1
- package/es/packages/element-plus/time/index3.mjs +1 -1
- package/es/packages/element-plus/title/index.mjs +1 -1
- package/es/packages/element-plus/title/index2.mjs +1 -1
- package/es/packages/element-plus/title/index3.mjs +1 -1
- package/es/packages/element-plus/tree/index.mjs +1 -1
- package/es/packages/element-plus/tree/index2.mjs +1 -1
- package/es/packages/element-plus/tree/index3.mjs +1 -1
- package/es/packages/element-plus/upload/index.mjs +1 -1
- package/es/packages/element-plus/upload/index2.mjs +1 -1
- package/es/packages/element-plus/upload/index3.mjs +1 -1
- package/es/packages/element-plus/video/index.mjs +1 -1
- package/es/packages/element-plus/video/index2.mjs +1 -1
- package/es/packages/element-plus/video/index3.mjs +1 -1
- package/es/src/core/column-state.mjs +1 -1
- package/es/src/core/create.mjs +1 -1
- package/es/src/core/dataformat.mjs +1 -1
- package/es/src/core/detail.mjs +1 -1
- package/es/src/core/dic.mjs +52 -4
- package/es/src/core/locale.mjs +1 -1
- package/es/src/core/option.mjs +1 -1
- package/es/src/core/packages.mjs +1 -1
- package/es/src/core/slot.mjs +1 -1
- package/es/src/global/variable.mjs +1 -1
- package/es/src/icon.mjs +1 -1
- package/es/src/index.mjs +1 -1
- package/es/src/locale/index.mjs +1 -1
- package/es/src/locale/lang/en.mjs +1 -1
- package/es/src/locale/lang/zh-cn.mjs +1 -1
- package/es/src/locale/lang/zh.mjs +1 -1
- package/es/src/plugin/ali/index.mjs +1 -1
- package/es/src/plugin/clipboard/index.mjs +1 -1
- package/es/src/plugin/export/_blob.mjs +1 -1
- package/es/src/plugin/export/_export2Excel.mjs +1 -1
- package/es/src/plugin/export/index.mjs +1 -1
- package/es/src/plugin/logs/index.mjs +1 -1
- package/es/src/plugin/print/index.mjs +1 -1
- package/es/src/plugin/qiniu/index.mjs +1 -1
- package/es/src/plugin/screenshot/index.mjs +1 -1
- package/es/src/plugin/video/index.mjs +1 -1
- package/es/src/plugin/watermark/index.mjs +1 -1
- package/es/src/plugin/watermark/watermark.mjs +1 -1
- package/es/src/ui/data/index.mjs +1 -1
- package/es/src/ui/element-plus/index.mjs +1 -1
- package/es/src/ui/index.mjs +1 -1
- package/es/src/utils/bem.mjs +1 -1
- package/es/src/utils/mock.mjs +1 -1
- package/es/src/utils/print.mjs +1 -1
- package/es/src/utils/util.mjs +1 -1
- package/es/src/utils/validate.mjs +1 -1
- package/es/src/version.mjs +2 -2
- package/lib/_virtual/_commonjsHelpers.js +1 -1
- package/lib/_virtual/dayjs.min.js +1 -1
- package/lib/_virtual/dayjs.min2.js +1 -1
- package/lib/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +1 -1
- package/lib/node_modules/.pnpm/qrcode-generator@2.0.4/node_modules/qrcode-generator/dist/qrcode.js +1 -1
- package/lib/packages/core/common/event.js +1 -1
- package/lib/packages/core/common/init.js +64 -3
- package/lib/packages/core/common/props.js +1 -1
- package/lib/packages/core/components/dialog-form/index.js +1 -1
- package/lib/packages/core/components/dialog-form/index2.js +1 -1
- package/lib/packages/core/components/dialog-form/index3.js +1 -1
- package/lib/packages/core/components/dialog-form/index4.js +1 -1
- package/lib/packages/core/components/form/custom.js +1 -1
- package/lib/packages/core/components/form/index.js +1 -1
- package/lib/packages/core/components/form/index2.js +1 -1
- package/lib/packages/core/components/form/index3.js +1 -1
- package/lib/packages/core/components/icon/index.js +1 -1
- package/lib/packages/core/components/icon/index2.js +1 -1
- package/lib/packages/core/components/icon/index3.js +1 -1
- package/lib/packages/core/components/image-preview/index.js +1 -1
- package/lib/packages/core/components/image-preview/index2.js +1 -1
- package/lib/packages/core/components/image-preview/index3.js +1 -1
- package/lib/packages/core/components/image-preview/index4.js +1 -1
- package/lib/packages/core/directive/contextmenu.js +1 -1
- package/lib/packages/core/directive/permission.js +1 -1
- package/lib/packages/data/box/index.js +1 -1
- package/lib/packages/data/box/index2.js +1 -1
- package/lib/packages/data/box/index3.js +1 -1
- package/lib/packages/data/card/index.js +1 -1
- package/lib/packages/data/card/index2.js +1 -1
- package/lib/packages/data/card/index3.js +1 -1
- package/lib/packages/data/cardText/index.js +1 -1
- package/lib/packages/data/cardText/index2.js +1 -1
- package/lib/packages/data/cardText/index3.js +1 -1
- package/lib/packages/data/countdown/index.js +1 -1
- package/lib/packages/data/countdown/index2.js +1 -1
- package/lib/packages/data/countdown/index3.js +1 -1
- package/lib/packages/data/dashboard/index.js +1 -1
- package/lib/packages/data/dashboard/index2.js +1 -1
- package/lib/packages/data/dashboard/index3.js +1 -1
- package/lib/packages/data/display/index.js +1 -1
- package/lib/packages/data/display/index2.js +1 -1
- package/lib/packages/data/display/index3.js +1 -1
- package/lib/packages/data/icons/index.js +1 -1
- package/lib/packages/data/icons/index2.js +1 -1
- package/lib/packages/data/icons/index3.js +1 -1
- package/lib/packages/data/imgText/index.js +1 -1
- package/lib/packages/data/imgText/index2.js +1 -1
- package/lib/packages/data/imgText/index3.js +1 -1
- package/lib/packages/data/list/index.js +1 -1
- package/lib/packages/data/list/index2.js +1 -1
- package/lib/packages/data/list/index3.js +1 -1
- package/lib/packages/data/notice/index.js +1 -1
- package/lib/packages/data/notice/index2.js +1 -1
- package/lib/packages/data/notice/index3.js +1 -1
- package/lib/packages/data/operaText/index.js +1 -1
- package/lib/packages/data/operaText/index2.js +1 -1
- package/lib/packages/data/operaText/index3.js +1 -1
- package/lib/packages/data/panel/index.js +1 -1
- package/lib/packages/data/panel/index2.js +1 -1
- package/lib/packages/data/panel/index3.js +1 -1
- package/lib/packages/data/pay/index.js +1 -1
- package/lib/packages/data/pay/index2.js +1 -1
- package/lib/packages/data/pay/index3.js +1 -1
- package/lib/packages/data/price/index.js +1 -1
- package/lib/packages/data/price/index2.js +1 -1
- package/lib/packages/data/price/index3.js +1 -1
- package/lib/packages/data/product/index.js +1 -1
- package/lib/packages/data/product/index2.js +1 -1
- package/lib/packages/data/product/index3.js +1 -1
- package/lib/packages/data/profile/index.js +1 -1
- package/lib/packages/data/profile/index2.js +1 -1
- package/lib/packages/data/profile/index3.js +1 -1
- package/lib/packages/data/progress/index.js +1 -1
- package/lib/packages/data/progress/index2.js +1 -1
- package/lib/packages/data/progress/index3.js +1 -1
- package/lib/packages/data/rank/index.js +1 -1
- package/lib/packages/data/rank/index2.js +1 -1
- package/lib/packages/data/rank/index3.js +1 -1
- package/lib/packages/data/rotate/index.js +1 -1
- package/lib/packages/data/rotate/index2.js +1 -1
- package/lib/packages/data/rotate/index3.js +1 -1
- package/lib/packages/data/statistic/index.js +1 -1
- package/lib/packages/data/statistic/index2.js +1 -1
- package/lib/packages/data/statistic/index3.js +1 -1
- package/lib/packages/data/tabs/index.js +1 -1
- package/lib/packages/data/tabs/index2.js +1 -1
- package/lib/packages/data/tabs/index3.js +1 -1
- package/lib/packages/data/task/index.js +1 -1
- package/lib/packages/data/task/index2.js +1 -1
- package/lib/packages/data/task/index3.js +1 -1
- package/lib/packages/data/weather/index.js +1 -1
- package/lib/packages/data/weather/index2.js +1 -1
- package/lib/packages/data/weather/index3.js +1 -1
- package/lib/packages/element-plus/array/index.js +1 -1
- package/lib/packages/element-plus/array/index2.js +1 -1
- package/lib/packages/element-plus/array/index3.js +1 -1
- package/lib/packages/element-plus/article/index.js +1 -1
- package/lib/packages/element-plus/article/index2.js +1 -1
- package/lib/packages/element-plus/article/index3.js +1 -1
- package/lib/packages/element-plus/captcha/index.js +1 -1
- package/lib/packages/element-plus/captcha/index2.js +1 -1
- package/lib/packages/element-plus/captcha/index3.js +1 -1
- package/lib/packages/element-plus/cascader/index.js +1 -1
- package/lib/packages/element-plus/cascader/index2.js +1 -1
- package/lib/packages/element-plus/cascader/index3.js +1 -1
- package/lib/packages/element-plus/chat/index.js +1 -1
- package/lib/packages/element-plus/chat/index2.js +1 -1
- package/lib/packages/element-plus/chat/index3.js +1 -1
- package/lib/packages/element-plus/checkbox/index.js +1 -1
- package/lib/packages/element-plus/checkbox/index2.js +1 -1
- package/lib/packages/element-plus/checkbox/index3.js +1 -1
- package/lib/packages/element-plus/comment/index.js +1 -1
- package/lib/packages/element-plus/comment/index2.js +1 -1
- package/lib/packages/element-plus/comment/index3.js +1 -1
- package/lib/packages/element-plus/count-up/index.js +1 -1
- package/lib/packages/element-plus/count-up/index2.js +1 -1
- package/lib/packages/element-plus/count-up/index3.js +1 -1
- package/lib/packages/element-plus/crud/column/column-default.js +1 -1
- package/lib/packages/element-plus/crud/column/column-default2.js +37 -4
- package/lib/packages/element-plus/crud/column/column-default3.js +1 -1
- package/lib/packages/element-plus/crud/column/column-dynamic.js +1 -1
- package/lib/packages/element-plus/crud/column/column-dynamic2.js +1 -1
- package/lib/packages/element-plus/crud/column/column-dynamic3.js +1 -1
- package/lib/packages/element-plus/crud/column/column-menu.js +1 -1
- package/lib/packages/element-plus/crud/column/column-menu2.js +1 -1
- package/lib/packages/element-plus/crud/column/column-menu3.js +1 -1
- package/lib/packages/element-plus/crud/column/column-slot.js +1 -1
- package/lib/packages/element-plus/crud/column/column-slot2.js +2 -4
- package/lib/packages/element-plus/crud/column/column-slot3.js +4 -7
- package/lib/packages/element-plus/crud/column/column.js +1 -1
- package/lib/packages/element-plus/crud/column/column2.js +1 -1
- package/lib/packages/element-plus/crud/column/column3.js +1 -1
- package/lib/packages/element-plus/crud/column/menu.js +1 -1
- package/lib/packages/element-plus/crud/column/menu2.js +2 -2
- package/lib/packages/element-plus/crud/column/menu3.js +1 -1
- package/lib/packages/element-plus/crud/config.js +1 -1
- package/lib/packages/element-plus/crud/dialog/dialog-column.js +1 -1
- package/lib/packages/element-plus/crud/dialog/dialog-column2.js +2 -1
- package/lib/packages/element-plus/crud/dialog/dialog-column3.js +1 -1
- package/lib/packages/element-plus/crud/dialog/dialog-excel.js +1 -1
- package/lib/packages/element-plus/crud/dialog/dialog-excel2.js +2 -2
- package/lib/packages/element-plus/crud/dialog/dialog-excel3.js +1 -1
- package/lib/packages/element-plus/crud/dialog/dialog-filter.js +1 -1
- package/lib/packages/element-plus/crud/dialog/dialog-filter2.js +1 -1
- package/lib/packages/element-plus/crud/dialog/dialog-filter3.js +1 -1
- package/lib/packages/element-plus/crud/dialog/dialog-form.js +1 -1
- package/lib/packages/element-plus/crud/dialog/dialog-form2.js +1 -1
- package/lib/packages/element-plus/crud/dialog/dialog-form3.js +1 -1
- package/lib/packages/element-plus/crud/grid/index.js +1 -1
- package/lib/packages/element-plus/crud/grid/index2.js +96 -27
- package/lib/packages/element-plus/crud/grid/index3.js +2 -2
- package/lib/packages/element-plus/crud/grid/item.js +1 -1
- package/lib/packages/element-plus/crud/grid/item2.js +1 -1
- package/lib/packages/element-plus/crud/grid/item3.js +1 -1
- package/lib/packages/element-plus/crud/index.js +1 -1
- package/lib/packages/element-plus/crud/index2.js +9 -2
- package/lib/packages/element-plus/crud/index3.js +1 -1
- package/lib/packages/element-plus/crud/menu/header-menu.js +1 -1
- package/lib/packages/element-plus/crud/menu/header-menu2.js +1 -1
- package/lib/packages/element-plus/crud/menu/header-menu3.js +1 -1
- package/lib/packages/element-plus/crud/menu/header-search.js +1 -1
- package/lib/packages/element-plus/crud/menu/header-search2.js +1 -1
- package/lib/packages/element-plus/crud/menu/header-search3.js +1 -1
- package/lib/packages/element-plus/crud/menu/table-page.js +1 -1
- package/lib/packages/element-plus/crud/menu/table-page2.js +1 -1
- package/lib/packages/element-plus/crud/menu/table-page3.js +1 -1
- package/lib/packages/element-plus/date/index.js +1 -1
- package/lib/packages/element-plus/date/index2.js +17 -2
- package/lib/packages/element-plus/date/index3.js +2 -2
- package/lib/packages/element-plus/draggable/index.js +1 -1
- package/lib/packages/element-plus/draggable/index2.js +1 -1
- package/lib/packages/element-plus/draggable/index3.js +1 -1
- package/lib/packages/element-plus/dynamic/index.js +1 -1
- package/lib/packages/element-plus/dynamic/index2.js +1 -1
- package/lib/packages/element-plus/dynamic/index3.js +1 -1
- package/lib/packages/element-plus/file-manager/index.js +1 -1
- package/lib/packages/element-plus/file-manager/index2.js +1 -1
- package/lib/packages/element-plus/file-manager/index3.js +1 -1
- package/lib/packages/element-plus/filter-builder/index.js +1 -1
- package/lib/packages/element-plus/filter-builder/index2.js +1 -1
- package/lib/packages/element-plus/filter-builder/index3.js +1 -1
- package/lib/packages/element-plus/flow/index.js +1 -1
- package/lib/packages/element-plus/flow/index2.js +1 -1
- package/lib/packages/element-plus/flow/index3.js +1 -1
- package/lib/packages/element-plus/flow/node.js +1 -1
- package/lib/packages/element-plus/flow/node2.js +1 -1
- package/lib/packages/element-plus/flow/node3.js +1 -1
- package/lib/packages/element-plus/form/config.js +1 -1
- package/lib/packages/element-plus/form/index.js +1 -1
- package/lib/packages/element-plus/form/index2.js +1 -1
- package/lib/packages/element-plus/form/index3.js +1 -1
- package/lib/packages/element-plus/form/menu.js +1 -1
- package/lib/packages/element-plus/form/menu2.js +1 -1
- package/lib/packages/element-plus/form/menu3.js +1 -1
- package/lib/packages/element-plus/group/index.js +1 -1
- package/lib/packages/element-plus/group/index2.js +1 -1
- package/lib/packages/element-plus/group/index3.js +1 -1
- package/lib/packages/element-plus/iframe/index.js +1 -1
- package/lib/packages/element-plus/iframe/index2.js +1 -1
- package/lib/packages/element-plus/iframe/index3.js +1 -1
- package/lib/packages/element-plus/input/index.js +1 -1
- package/lib/packages/element-plus/input/index2.js +1 -1
- package/lib/packages/element-plus/input/index3.js +1 -1
- package/lib/packages/element-plus/input-color/index.js +1 -1
- package/lib/packages/element-plus/input-color/index2.js +1 -1
- package/lib/packages/element-plus/input-color/index3.js +1 -1
- package/lib/packages/element-plus/input-cron/index.js +1 -1
- package/lib/packages/element-plus/input-cron/index2.js +1 -1
- package/lib/packages/element-plus/input-cron/index3.js +1 -1
- package/lib/packages/element-plus/input-icon/index.js +1 -1
- package/lib/packages/element-plus/input-icon/index2.js +1 -1
- package/lib/packages/element-plus/input-icon/index3.js +1 -1
- package/lib/packages/element-plus/input-map/index.js +1 -1
- package/lib/packages/element-plus/input-map/index2.js +1 -1
- package/lib/packages/element-plus/input-map/index3.js +1 -1
- package/lib/packages/element-plus/input-number/index.js +1 -1
- package/lib/packages/element-plus/input-number/index2.js +1 -1
- package/lib/packages/element-plus/input-number/index3.js +1 -1
- package/lib/packages/element-plus/input-otp/index.js +1 -1
- package/lib/packages/element-plus/input-otp/index2.js +1 -1
- package/lib/packages/element-plus/input-otp/index3.js +1 -1
- package/lib/packages/element-plus/input-table/index.js +1 -1
- package/lib/packages/element-plus/input-table/index2.js +1 -1
- package/lib/packages/element-plus/input-table/index3.js +1 -1
- package/lib/packages/element-plus/input-tag/index.js +1 -1
- package/lib/packages/element-plus/input-tag/index2.js +1 -1
- package/lib/packages/element-plus/input-tag/index3.js +1 -1
- package/lib/packages/element-plus/input-tree/index.js +1 -1
- package/lib/packages/element-plus/input-tree/index2.js +1 -1
- package/lib/packages/element-plus/input-tree/index3.js +1 -1
- package/lib/packages/element-plus/license/index.js +1 -1
- package/lib/packages/element-plus/license/index2.js +1 -1
- package/lib/packages/element-plus/license/index3.js +1 -1
- package/lib/packages/element-plus/login/index.js +1 -1
- package/lib/packages/element-plus/login/index2.js +1 -1
- package/lib/packages/element-plus/login/index3.js +1 -1
- package/lib/packages/element-plus/mention/index.js +1 -1
- package/lib/packages/element-plus/mention/index2.js +1 -1
- package/lib/packages/element-plus/mention/index3.js +1 -1
- package/lib/packages/element-plus/qrcode/index.js +1 -1
- package/lib/packages/element-plus/qrcode/index2.js +1 -1
- package/lib/packages/element-plus/qrcode/index3.js +1 -1
- package/lib/packages/element-plus/radio/index.js +1 -1
- package/lib/packages/element-plus/radio/index2.js +1 -1
- package/lib/packages/element-plus/radio/index3.js +1 -1
- package/lib/packages/element-plus/rate/index.js +1 -1
- package/lib/packages/element-plus/rate/index2.js +1 -1
- package/lib/packages/element-plus/rate/index3.js +1 -1
- package/lib/packages/element-plus/search/index.js +1 -1
- package/lib/packages/element-plus/search/index2.js +1 -1
- package/lib/packages/element-plus/search/index3.js +1 -1
- package/lib/packages/element-plus/select/index.js +1 -1
- package/lib/packages/element-plus/select/index2.js +1 -1
- package/lib/packages/element-plus/select/index3.js +1 -1
- package/lib/packages/element-plus/sign/index.js +1 -1
- package/lib/packages/element-plus/sign/index2.js +1 -1
- package/lib/packages/element-plus/sign/index3.js +1 -1
- package/lib/packages/element-plus/slider/index.js +1 -1
- package/lib/packages/element-plus/slider/index2.js +1 -1
- package/lib/packages/element-plus/slider/index3.js +1 -1
- package/lib/packages/element-plus/switch/index.js +1 -1
- package/lib/packages/element-plus/switch/index2.js +1 -1
- package/lib/packages/element-plus/switch/index3.js +1 -1
- package/lib/packages/element-plus/tabs/index.js +1 -1
- package/lib/packages/element-plus/tabs/index2.js +1 -1
- package/lib/packages/element-plus/tabs/index3.js +1 -1
- package/lib/packages/element-plus/text-ellipsis/index.js +1 -1
- package/lib/packages/element-plus/text-ellipsis/index2.js +1 -1
- package/lib/packages/element-plus/text-ellipsis/index3.js +1 -1
- package/lib/packages/element-plus/time/index.js +1 -1
- package/lib/packages/element-plus/time/index2.js +1 -1
- package/lib/packages/element-plus/time/index3.js +1 -1
- package/lib/packages/element-plus/title/index.js +1 -1
- package/lib/packages/element-plus/title/index2.js +1 -1
- package/lib/packages/element-plus/title/index3.js +1 -1
- package/lib/packages/element-plus/tree/index.js +1 -1
- package/lib/packages/element-plus/tree/index2.js +1 -1
- package/lib/packages/element-plus/tree/index3.js +1 -1
- package/lib/packages/element-plus/upload/index.js +1 -1
- package/lib/packages/element-plus/upload/index2.js +1 -1
- package/lib/packages/element-plus/upload/index3.js +1 -1
- package/lib/packages/element-plus/video/index.js +1 -1
- package/lib/packages/element-plus/video/index2.js +1 -1
- package/lib/packages/element-plus/video/index3.js +1 -1
- package/lib/src/core/column-state.js +1 -1
- package/lib/src/core/create.js +1 -1
- package/lib/src/core/dataformat.js +1 -1
- package/lib/src/core/detail.js +1 -1
- package/lib/src/core/dic.js +53 -3
- package/lib/src/core/locale.js +1 -1
- package/lib/src/core/option.js +1 -1
- package/lib/src/core/packages.js +1 -1
- package/lib/src/core/slot.js +1 -1
- package/lib/src/global/variable.js +1 -1
- package/lib/src/icon.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/locale/lang/zh.js +1 -1
- package/lib/src/plugin/ali/index.js +1 -1
- package/lib/src/plugin/clipboard/index.js +1 -1
- package/lib/src/plugin/export/_blob.js +1 -1
- package/lib/src/plugin/export/_export2Excel.js +1 -1
- package/lib/src/plugin/export/index.js +1 -1
- package/lib/src/plugin/logs/index.js +1 -1
- package/lib/src/plugin/print/index.js +1 -1
- package/lib/src/plugin/qiniu/index.js +1 -1
- package/lib/src/plugin/screenshot/index.js +1 -1
- package/lib/src/plugin/video/index.js +1 -1
- package/lib/src/plugin/watermark/index.js +1 -1
- package/lib/src/plugin/watermark/watermark.js +1 -1
- package/lib/src/ui/data/index.js +1 -1
- package/lib/src/ui/element-plus/index.js +1 -1
- package/lib/src/ui/index.js +1 -1
- package/lib/src/utils/bem.js +1 -1
- package/lib/src/utils/mock.js +1 -1
- package/lib/src/utils/print.js +1 -1
- package/lib/src/utils/util.js +1 -1
- package/lib/src/utils/validate.js +1 -1
- package/lib/src/version.js +2 -2
- package/package.json +1 -1
package/dist/avue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Avue.js v3.9.
|
|
1
|
+
/*! Avue.js v3.9.5 | (c) 2017-2026 Smallwei | Released under the MIT License. */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('vue'), require('element-plus'), require('axios'), require('@element-plus/icons-vue')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['vue', 'element-plus', 'axios', '@element-plus/icons-vue'], factory) :
|
|
@@ -5514,6 +5514,46 @@
|
|
|
5514
5514
|
};
|
|
5515
5515
|
})();
|
|
5516
5516
|
|
|
5517
|
+
function _arrayWithHoles(r) {
|
|
5518
|
+
if (Array.isArray(r)) return r;
|
|
5519
|
+
}
|
|
5520
|
+
|
|
5521
|
+
function _iterableToArrayLimit(r, l) {
|
|
5522
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
5523
|
+
if (null != t) {
|
|
5524
|
+
var e,
|
|
5525
|
+
n,
|
|
5526
|
+
i,
|
|
5527
|
+
u,
|
|
5528
|
+
a = [],
|
|
5529
|
+
f = true,
|
|
5530
|
+
o = false;
|
|
5531
|
+
try {
|
|
5532
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
5533
|
+
if (Object(t) !== t) return;
|
|
5534
|
+
f = !1;
|
|
5535
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
5536
|
+
} catch (r) {
|
|
5537
|
+
o = true, n = r;
|
|
5538
|
+
} finally {
|
|
5539
|
+
try {
|
|
5540
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
5541
|
+
} finally {
|
|
5542
|
+
if (o) throw n;
|
|
5543
|
+
}
|
|
5544
|
+
}
|
|
5545
|
+
return a;
|
|
5546
|
+
}
|
|
5547
|
+
}
|
|
5548
|
+
|
|
5549
|
+
function _nonIterableRest() {
|
|
5550
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5551
|
+
}
|
|
5552
|
+
|
|
5553
|
+
function _slicedToArray(r, e) {
|
|
5554
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
|
|
5555
|
+
}
|
|
5556
|
+
|
|
5517
5557
|
function validatenull(val) {
|
|
5518
5558
|
if (val instanceof Date || typeof val === 'boolean' || typeof val === 'number') {
|
|
5519
5559
|
return false;
|
|
@@ -7664,6 +7704,51 @@
|
|
|
7664
7704
|
function ownKeys$o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7665
7705
|
function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$o(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7666
7706
|
var key = 'key';
|
|
7707
|
+
var getDicTemplateKeys = function getDicTemplateKeys(column) {
|
|
7708
|
+
var values = [column.dicUrl].concat(_toConsumableArray(Object.values(column.dicQuery || {})), _toConsumableArray(Object.values(column.dicHeaders || {})));
|
|
7709
|
+
var keys = [];
|
|
7710
|
+
values.forEach(function (value) {
|
|
7711
|
+
if (typeof value !== 'string') return;
|
|
7712
|
+
(value.match(/\{\{[^{}]+\}\}/g) || []).forEach(function (match) {
|
|
7713
|
+
keys.push(match.slice(2, -2));
|
|
7714
|
+
});
|
|
7715
|
+
});
|
|
7716
|
+
return keys;
|
|
7717
|
+
};
|
|
7718
|
+
var isRowDicColumn = function isRowDicColumn(column) {
|
|
7719
|
+
return !!column.dicUrl && !column.parentProp && column.remote !== true && column.lazy !== true && column.dicFlag !== false && getDicTemplateKeys(column).length > 0;
|
|
7720
|
+
};
|
|
7721
|
+
// Only track fields used by the request. Generated $labels must not reload it.
|
|
7722
|
+
var getRowDicRequests = function getRowDicRequests() {
|
|
7723
|
+
var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
7724
|
+
var rows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
7725
|
+
var childrenKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DIC_PROPS$1.children;
|
|
7726
|
+
var rowColumns = columns.filter(isRowDicColumn);
|
|
7727
|
+
var requests = [];
|
|
7728
|
+
var _visit = function visit(list) {
|
|
7729
|
+
list.forEach(function (form) {
|
|
7730
|
+
rowColumns.forEach(function (column) {
|
|
7731
|
+
var value = form[column.prop];
|
|
7732
|
+
var values = getDicTemplateKeys(column).map(function (prop) {
|
|
7733
|
+
return prop === key ? value : form[prop];
|
|
7734
|
+
});
|
|
7735
|
+
requests.push({
|
|
7736
|
+
form: form,
|
|
7737
|
+
column: _objectSpread$o(_objectSpread$o({}, column), {}, {
|
|
7738
|
+
props: _objectSpread$o({}, column.props)
|
|
7739
|
+
}),
|
|
7740
|
+
value: value,
|
|
7741
|
+
// Track in-place changes to array-valued request parameters as well.
|
|
7742
|
+
context: JSON.stringify(values),
|
|
7743
|
+
empty: values.some(validatenull)
|
|
7744
|
+
});
|
|
7745
|
+
});
|
|
7746
|
+
if (Array.isArray(form[childrenKey])) _visit(form[childrenKey]);
|
|
7747
|
+
});
|
|
7748
|
+
};
|
|
7749
|
+
if (rowColumns.length) _visit(rows);
|
|
7750
|
+
return requests;
|
|
7751
|
+
};
|
|
7667
7752
|
function getDataType() {
|
|
7668
7753
|
var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
7669
7754
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -7759,10 +7844,17 @@
|
|
|
7759
7844
|
}();
|
|
7760
7845
|
var loadDic = /*#__PURE__*/function () {
|
|
7761
7846
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(option, safe) {
|
|
7762
|
-
var
|
|
7847
|
+
var rowScoped,
|
|
7848
|
+
notList,
|
|
7849
|
+
tasks,
|
|
7850
|
+
column,
|
|
7851
|
+
result,
|
|
7852
|
+
data,
|
|
7853
|
+
_args2 = arguments;
|
|
7763
7854
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
7764
7855
|
while (1) switch (_context2.prev = _context2.next) {
|
|
7765
7856
|
case 0:
|
|
7857
|
+
rowScoped = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : false;
|
|
7766
7858
|
notList = [];
|
|
7767
7859
|
tasks = [];
|
|
7768
7860
|
column = option.column || [];
|
|
@@ -7772,7 +7864,7 @@
|
|
|
7772
7864
|
var parentProp = ele.parentProp;
|
|
7773
7865
|
notList = notList.concat(ele.cascader || []);
|
|
7774
7866
|
var flag = ele.dicFlag === false || ele.lazy === true || notList.includes(prop);
|
|
7775
|
-
if (!url || parentProp || flag) return;
|
|
7867
|
+
if (!url || parentProp || flag || rowScoped && isRowDicColumn(ele)) return;
|
|
7776
7868
|
tasks.push(sendDic({
|
|
7777
7869
|
url: url,
|
|
7778
7870
|
method: ele.dicMethod,
|
|
@@ -7789,15 +7881,15 @@
|
|
|
7789
7881
|
}));
|
|
7790
7882
|
});
|
|
7791
7883
|
result = {};
|
|
7792
|
-
_context2.next =
|
|
7884
|
+
_context2.next = 8;
|
|
7793
7885
|
return Promise.all(tasks);
|
|
7794
|
-
case
|
|
7886
|
+
case 8:
|
|
7795
7887
|
data = _context2.sent;
|
|
7796
7888
|
data.forEach(function (item) {
|
|
7797
7889
|
result[item.prop] = item.data;
|
|
7798
7890
|
});
|
|
7799
7891
|
return _context2.abrupt("return", result);
|
|
7800
|
-
case
|
|
7892
|
+
case 11:
|
|
7801
7893
|
case "end":
|
|
7802
7894
|
return _context2.stop();
|
|
7803
7895
|
}
|
|
@@ -8156,6 +8248,9 @@
|
|
|
8156
8248
|
}
|
|
8157
8249
|
},
|
|
8158
8250
|
watch: {
|
|
8251
|
+
rowDicRequests: function rowDicRequests(requests) {
|
|
8252
|
+
this.handleLoadRowDic(requests);
|
|
8253
|
+
},
|
|
8159
8254
|
propOption: {
|
|
8160
8255
|
handler: function handler(list) {
|
|
8161
8256
|
var _this = this;
|
|
@@ -8176,6 +8271,8 @@
|
|
|
8176
8271
|
return {
|
|
8177
8272
|
DIC: {},
|
|
8178
8273
|
cascaderDIC: {},
|
|
8274
|
+
rowDIC: new Map(),
|
|
8275
|
+
rowDicOverrides: {},
|
|
8179
8276
|
tableOption: {},
|
|
8180
8277
|
objectOption: {},
|
|
8181
8278
|
dicLoading: false,
|
|
@@ -8192,6 +8289,17 @@
|
|
|
8192
8289
|
state.active.clear();
|
|
8193
8290
|
},
|
|
8194
8291
|
computed: {
|
|
8292
|
+
rowDicColumns: function rowDicColumns() {
|
|
8293
|
+
// propOption has resolved cascader parentProp; those columns keep the parent key.
|
|
8294
|
+
var columns = name === 'crud' ? this.propOption.filter(isRowDicColumn) : [];
|
|
8295
|
+
return new Map(columns.map(function (column) {
|
|
8296
|
+
return [column.prop, column];
|
|
8297
|
+
}));
|
|
8298
|
+
},
|
|
8299
|
+
rowDicRequests: function rowDicRequests() {
|
|
8300
|
+
if (!this.rowDicColumns.size) return [];
|
|
8301
|
+
return getRowDicRequests(Array.from(this.rowDicColumns.values()), this.data, this.childrenKey);
|
|
8302
|
+
},
|
|
8195
8303
|
isMobile: function isMobile() {
|
|
8196
8304
|
return document.body.clientWidth <= 768;
|
|
8197
8305
|
},
|
|
@@ -8230,13 +8338,18 @@
|
|
|
8230
8338
|
if (type === 'cascader') {
|
|
8231
8339
|
return this.handleLoadCascaderDic();
|
|
8232
8340
|
} else {
|
|
8233
|
-
return this.handleLoadDic()
|
|
8341
|
+
return this.rowDicColumns.size ? Promise.all([this.handleLoadDic(), this.handleLoadRowDic()]).then(function (_ref) {
|
|
8342
|
+
var _ref2 = _slicedToArray(_ref, 1),
|
|
8343
|
+
result = _ref2[0];
|
|
8344
|
+
return result;
|
|
8345
|
+
}) : this.handleLoadDic();
|
|
8234
8346
|
}
|
|
8235
8347
|
},
|
|
8236
8348
|
updateDic: function updateDic(prop, list) {
|
|
8237
8349
|
var _this2 = this;
|
|
8238
8350
|
var column = this.findObject(this.propOption, prop);
|
|
8239
8351
|
if (!column) return Promise.resolve(null);
|
|
8352
|
+
var useRowDic = this.rowDicColumns.has(prop);
|
|
8240
8353
|
var formatter = column.dicFormatter;
|
|
8241
8354
|
var callback = function callback(currentList) {
|
|
8242
8355
|
var useFormatter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
@@ -8245,11 +8358,18 @@
|
|
|
8245
8358
|
} else {
|
|
8246
8359
|
_this2.DIC[prop] = currentList;
|
|
8247
8360
|
}
|
|
8361
|
+
if (useRowDic) {
|
|
8362
|
+
// A pending automatic response must not replace an explicit dictionary.
|
|
8363
|
+
_this2.rowDicOverrides[prop] = _this2.DIC[prop];
|
|
8364
|
+
}
|
|
8248
8365
|
};
|
|
8249
8366
|
if (this.validatenull(list) && this.validatenull(prop)) {
|
|
8250
8367
|
return this.handleLoadDic();
|
|
8251
8368
|
}
|
|
8252
8369
|
if (this.validatenull(list) && !this.validatenull(column.dicUrl)) {
|
|
8370
|
+
if (useRowDic) {
|
|
8371
|
+
return this.handleLoadRowDic();
|
|
8372
|
+
}
|
|
8253
8373
|
return this.requestDic({
|
|
8254
8374
|
column: column
|
|
8255
8375
|
}, "update:".concat(prop)).then(function (currentList) {
|
|
@@ -8280,31 +8400,76 @@
|
|
|
8280
8400
|
handleLoadDic: function handleLoadDic() {
|
|
8281
8401
|
var _this4 = this;
|
|
8282
8402
|
return this.runDicRequest('dic', function () {
|
|
8283
|
-
return loadDic(_this4.resultOption, _this4);
|
|
8403
|
+
return loadDic(_this4.resultOption, _this4, _this4.rowDicColumns.size > 0);
|
|
8284
8404
|
}, function (result) {
|
|
8285
8405
|
_this4.handleSetDic(_this4.DIC, result);
|
|
8286
8406
|
});
|
|
8287
8407
|
},
|
|
8288
|
-
|
|
8408
|
+
getRowDic: function getRowDic(row, column) {
|
|
8409
|
+
var _a;
|
|
8410
|
+
if (this.rowDicColumns.has(column.prop)) {
|
|
8411
|
+
if (Object.prototype.hasOwnProperty.call(this.rowDicOverrides, column.prop)) {
|
|
8412
|
+
return this.rowDicOverrides[column.prop];
|
|
8413
|
+
}
|
|
8414
|
+
return (_a = this.rowDIC.get(row)) === null || _a === void 0 ? void 0 : _a[column.prop];
|
|
8415
|
+
}
|
|
8416
|
+
var cascader = (this.cascaderDIC[row.$index] || {})[column.prop];
|
|
8417
|
+
return column.parentProp ? cascader : cascader || this.DIC[column.prop];
|
|
8418
|
+
},
|
|
8419
|
+
handleLoadRowDic: function handleLoadRowDic() {
|
|
8289
8420
|
var _this5 = this;
|
|
8421
|
+
var requests = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.rowDicRequests;
|
|
8422
|
+
// Drop the previous page immediately; late responses are guarded by runDicRequest.
|
|
8423
|
+
this.rowDIC = new Map();
|
|
8424
|
+
this.rowDicOverrides = {};
|
|
8425
|
+
return this.runDicRequest('row-dic', function () {
|
|
8426
|
+
return Promise.all(requests.map(function (request) {
|
|
8427
|
+
var column = request.column,
|
|
8428
|
+
value = request.value,
|
|
8429
|
+
empty = request.empty;
|
|
8430
|
+
return (empty ? Promise.resolve([]) : sendDic({
|
|
8431
|
+
column: column,
|
|
8432
|
+
value: value,
|
|
8433
|
+
form: _this5.deepClone(request.form),
|
|
8434
|
+
dataType: column.dataType
|
|
8435
|
+
}, _this5)).then(function (data) {
|
|
8436
|
+
return _objectSpread$m(_objectSpread$m({}, request), {}, {
|
|
8437
|
+
data: data
|
|
8438
|
+
});
|
|
8439
|
+
});
|
|
8440
|
+
}));
|
|
8441
|
+
}, function (result) {
|
|
8442
|
+
var dictionaries = new Map();
|
|
8443
|
+
result.forEach(function (_ref3) {
|
|
8444
|
+
var form = _ref3.form,
|
|
8445
|
+
column = _ref3.column,
|
|
8446
|
+
data = _ref3.data;
|
|
8447
|
+
if (!dictionaries.has(form)) dictionaries.set(form, {});
|
|
8448
|
+
dictionaries.get(form)[column.prop] = data;
|
|
8449
|
+
});
|
|
8450
|
+
_this5.rowDIC = dictionaries;
|
|
8451
|
+
});
|
|
8452
|
+
},
|
|
8453
|
+
handleLoadCascaderDic: function handleLoadCascaderDic() {
|
|
8454
|
+
var _this6 = this;
|
|
8290
8455
|
return this.runDicRequest('cascader', function () {
|
|
8291
|
-
return loadCascaderDic(
|
|
8456
|
+
return loadCascaderDic(_this6.propOption, _this6);
|
|
8292
8457
|
}, function (result) {
|
|
8293
8458
|
Object.keys(result).forEach(function (index) {
|
|
8294
|
-
if (!
|
|
8295
|
-
|
|
8459
|
+
if (!_this6.cascaderDIC[index]) _this6.cascaderDIC[index] = {};
|
|
8460
|
+
_this6.handleSetDic(_this6.cascaderDIC[index], result[index]);
|
|
8296
8461
|
});
|
|
8297
8462
|
});
|
|
8298
8463
|
},
|
|
8299
8464
|
requestDic: function requestDic(params) {
|
|
8300
|
-
var
|
|
8465
|
+
var _this7 = this;
|
|
8301
8466
|
var requestType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'manual';
|
|
8302
8467
|
return this.runDicRequest(requestType, function () {
|
|
8303
|
-
return sendDic(params,
|
|
8468
|
+
return sendDic(params, _this7);
|
|
8304
8469
|
});
|
|
8305
8470
|
},
|
|
8306
8471
|
runDicRequest: function runDicRequest(requestType, request, apply) {
|
|
8307
|
-
var
|
|
8472
|
+
var _this8 = this;
|
|
8308
8473
|
var state = getDicRequestState(this);
|
|
8309
8474
|
var requestId = (state.sequence[requestType] || 0) + 1;
|
|
8310
8475
|
var token = "".concat(requestType, ":").concat(requestId);
|
|
@@ -8321,8 +8486,8 @@
|
|
|
8321
8486
|
return result;
|
|
8322
8487
|
})["catch"](function (error) {
|
|
8323
8488
|
if (isCurrent()) {
|
|
8324
|
-
|
|
8325
|
-
|
|
8489
|
+
_this8.dicError = error;
|
|
8490
|
+
_this8.$emit('dic-error', {
|
|
8326
8491
|
type: requestType,
|
|
8327
8492
|
error: error
|
|
8328
8493
|
});
|
|
@@ -8331,7 +8496,7 @@
|
|
|
8331
8496
|
})["finally"](function () {
|
|
8332
8497
|
state.active["delete"](token);
|
|
8333
8498
|
if (!state.unmounted) {
|
|
8334
|
-
|
|
8499
|
+
_this8.dicLoading = state.active.size > 0;
|
|
8335
8500
|
}
|
|
8336
8501
|
});
|
|
8337
8502
|
}
|
|
@@ -8353,12 +8518,14 @@
|
|
|
8353
8518
|
cellStyle: Function,
|
|
8354
8519
|
cellClassName: Function,
|
|
8355
8520
|
rowClassName: Function,
|
|
8521
|
+
rowKey: [String, Function],
|
|
8356
8522
|
height: [String, Number],
|
|
8357
8523
|
data: Array
|
|
8358
8524
|
},
|
|
8359
8525
|
data: function data() {
|
|
8360
8526
|
return {
|
|
8361
|
-
|
|
8527
|
+
selection: [],
|
|
8528
|
+
rowKeys: new WeakMap(),
|
|
8362
8529
|
span: 8,
|
|
8363
8530
|
xsSpan: 12,
|
|
8364
8531
|
id: "crud-grid",
|
|
@@ -8366,14 +8533,82 @@
|
|
|
8366
8533
|
};
|
|
8367
8534
|
},
|
|
8368
8535
|
computed: {
|
|
8536
|
+
reserveSelection: function reserveSelection() {
|
|
8537
|
+
return !!this.crud.tableOption.reserveSelection;
|
|
8538
|
+
},
|
|
8539
|
+
checkList: {
|
|
8540
|
+
get: function get() {
|
|
8541
|
+
var _this = this;
|
|
8542
|
+
var selected = new Set(this.selection.map(this.getRowIdentity));
|
|
8543
|
+
return this.data.reduce(function (result, row, index) {
|
|
8544
|
+
if (selected.has(_this.getRowIdentity(row))) result.push(index);
|
|
8545
|
+
return result;
|
|
8546
|
+
}, []);
|
|
8547
|
+
},
|
|
8548
|
+
set: function set(val) {
|
|
8549
|
+
var _this2 = this;
|
|
8550
|
+
var current = new Set(this.data.map(this.getRowIdentity));
|
|
8551
|
+
var selected = new Set(val);
|
|
8552
|
+
var result = this.reserveSelection ? this.selection.filter(function (row) {
|
|
8553
|
+
return !current.has(_this2.getRowIdentity(row));
|
|
8554
|
+
}) : [];
|
|
8555
|
+
this.data.forEach(function (row, index) {
|
|
8556
|
+
if (selected.has(index)) result.push(row);
|
|
8557
|
+
});
|
|
8558
|
+
this.selection = result;
|
|
8559
|
+
}
|
|
8560
|
+
},
|
|
8369
8561
|
styleName: function styleName() {
|
|
8370
8562
|
return {
|
|
8371
8563
|
height: this.crud.tableHeight + "px"
|
|
8372
8564
|
};
|
|
8373
8565
|
}
|
|
8374
8566
|
},
|
|
8567
|
+
watch: {
|
|
8568
|
+
data: {
|
|
8569
|
+
handler: "syncSelection",
|
|
8570
|
+
deep: true
|
|
8571
|
+
},
|
|
8572
|
+
reserveSelection: function reserveSelection() {
|
|
8573
|
+
this.syncSelection(this.data, this.data);
|
|
8574
|
+
}
|
|
8575
|
+
},
|
|
8375
8576
|
methods: {
|
|
8376
8577
|
doLayout: function doLayout() {},
|
|
8578
|
+
getRowKey: function getRowKey(row) {
|
|
8579
|
+
var _this$rowKey;
|
|
8580
|
+
if (typeof this.rowKey === "function") return this.rowKey(row);
|
|
8581
|
+
return (_this$rowKey = this.rowKey) === null || _this$rowKey === void 0 ? void 0 : _this$rowKey.split(".").reduce(function (value, key) {
|
|
8582
|
+
return value === null || value === void 0 ? void 0 : value[key];
|
|
8583
|
+
}, row);
|
|
8584
|
+
},
|
|
8585
|
+
getRowIdentity: function getRowIdentity(row) {
|
|
8586
|
+
var key = this.getRowKey(row);
|
|
8587
|
+
if (key !== undefined && key !== null) return key;
|
|
8588
|
+
if (!this.rowKeys.has(row)) this.rowKeys.set(row, Symbol());
|
|
8589
|
+
return this.rowKeys.get(row);
|
|
8590
|
+
},
|
|
8591
|
+
syncSelection: function syncSelection(data, oldData) {
|
|
8592
|
+
var _this3 = this;
|
|
8593
|
+
if (!this.reserveSelection && data !== oldData) {
|
|
8594
|
+
this.clearSelection();
|
|
8595
|
+
return;
|
|
8596
|
+
}
|
|
8597
|
+
var current = new Map(data.map(function (row) {
|
|
8598
|
+
return [_this3.getRowIdentity(row), row];
|
|
8599
|
+
}));
|
|
8600
|
+
var selection = this.selection.filter(function (row) {
|
|
8601
|
+
return _this3.reserveSelection || current.has(_this3.getRowIdentity(row));
|
|
8602
|
+
}).map(function (row) {
|
|
8603
|
+
return current.get(_this3.getRowIdentity(row)) || row;
|
|
8604
|
+
});
|
|
8605
|
+
if (selection.length !== this.selection.length || selection.some(function (row, index) {
|
|
8606
|
+
return row !== _this3.selection[index];
|
|
8607
|
+
})) {
|
|
8608
|
+
this.selection = selection;
|
|
8609
|
+
this.checkListChange();
|
|
8610
|
+
}
|
|
8611
|
+
},
|
|
8377
8612
|
//表格筛选逻辑
|
|
8378
8613
|
handleFilterMethod: function handleFilterMethod(params) {
|
|
8379
8614
|
var value = params.value,
|
|
@@ -8387,7 +8622,7 @@
|
|
|
8387
8622
|
},
|
|
8388
8623
|
//表格筛选字典
|
|
8389
8624
|
handleFilters: function handleFilters(column) {
|
|
8390
|
-
var
|
|
8625
|
+
var _this4 = this;
|
|
8391
8626
|
if (Array.isArray(column.filters)) return column.filters.map(function (ele) {
|
|
8392
8627
|
return {
|
|
8393
8628
|
text: ele.label,
|
|
@@ -8399,7 +8634,7 @@
|
|
|
8399
8634
|
var list = [];
|
|
8400
8635
|
if (!this.validatenull(DIC)) {
|
|
8401
8636
|
DIC.forEach(function (ele) {
|
|
8402
|
-
var props = column.props ||
|
|
8637
|
+
var props = column.props || _this4.crud.tableOption.props || {};
|
|
8403
8638
|
list.push({
|
|
8404
8639
|
text: ele[props.label || DIC_PROPS.label],
|
|
8405
8640
|
value: ele[props.value || DIC_PROPS.value]
|
|
@@ -8434,40 +8669,51 @@
|
|
|
8434
8669
|
return typeof this.crud.tableOption.selectable === "function" ? !this.crud.tableOption.selectable(row, index) : false;
|
|
8435
8670
|
},
|
|
8436
8671
|
clearSelection: function clearSelection() {
|
|
8437
|
-
this.
|
|
8438
|
-
this.
|
|
8672
|
+
if (!this.selection.length) return;
|
|
8673
|
+
this.selection = [];
|
|
8674
|
+
this.checkListChange();
|
|
8439
8675
|
},
|
|
8440
8676
|
toggleAllSelection: function toggleAllSelection() {
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8677
|
+
var _this5 = this;
|
|
8678
|
+
var selectable = this.data.reduce(function (result, row, index) {
|
|
8679
|
+
if (!_this5.isDisabled(row, index)) result.push(index);
|
|
8680
|
+
return result;
|
|
8681
|
+
}, []);
|
|
8682
|
+
var checked = this.checkList;
|
|
8683
|
+
var allSelected = selectable.every(function (index) {
|
|
8684
|
+
return checked.includes(index);
|
|
8685
|
+
});
|
|
8686
|
+
this.checkList = allSelected ? checked.filter(function (index) {
|
|
8687
|
+
return !selectable.includes(index);
|
|
8688
|
+
}) : _toConsumableArray(new Set([].concat(_toConsumableArray(checked), _toConsumableArray(selectable))));
|
|
8689
|
+
this.checkListChange();
|
|
8690
|
+
this.$emit("select-all", this.selection.slice());
|
|
8449
8691
|
},
|
|
8450
|
-
toggleRowSelection: function toggleRowSelection(
|
|
8451
|
-
var
|
|
8452
|
-
|
|
8692
|
+
toggleRowSelection: function toggleRowSelection(row, selected) {
|
|
8693
|
+
var _this6 = this;
|
|
8694
|
+
var ignoreSelectable = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
8695
|
+
var identity = this.getRowIdentity(row);
|
|
8696
|
+
var dataIndex = this.data.findIndex(function (item) {
|
|
8697
|
+
return _this6.getRowIdentity(item) === identity;
|
|
8453
8698
|
});
|
|
8454
|
-
if (
|
|
8455
|
-
|
|
8699
|
+
if (dataIndex === -1 && !this.reserveSelection) return;
|
|
8700
|
+
row = this.data[dataIndex] || row;
|
|
8701
|
+
if (!ignoreSelectable && this.isDisabled(row, dataIndex)) return;
|
|
8702
|
+
var index = this.selection.findIndex(function (item) {
|
|
8703
|
+
return _this6.getRowIdentity(item) === identity;
|
|
8704
|
+
});
|
|
8705
|
+
var checked = typeof selected === "boolean" ? selected : index === -1;
|
|
8706
|
+
if (checked && index === -1) {
|
|
8707
|
+
this.selection.push(row);
|
|
8708
|
+
} else if (!checked && index !== -1) {
|
|
8709
|
+
this.selection.splice(index, 1);
|
|
8456
8710
|
} else {
|
|
8457
|
-
|
|
8458
|
-
return ele == index;
|
|
8459
|
-
});
|
|
8460
|
-
this.checkList.splice(checkIndex, 1);
|
|
8711
|
+
return;
|
|
8461
8712
|
}
|
|
8462
|
-
this.checkListChange(
|
|
8713
|
+
this.checkListChange();
|
|
8463
8714
|
},
|
|
8464
|
-
checkListChange: function checkListChange(
|
|
8465
|
-
|
|
8466
|
-
var data = this.crud.data;
|
|
8467
|
-
val.forEach(function (ele) {
|
|
8468
|
-
result.push(data[ele]);
|
|
8469
|
-
});
|
|
8470
|
-
this.$emit("selection-change", result);
|
|
8715
|
+
checkListChange: function checkListChange() {
|
|
8716
|
+
this.$emit("selection-change", this.selection.slice());
|
|
8471
8717
|
},
|
|
8472
8718
|
handleRowDblClick: function handleRowDblClick(row, index) {
|
|
8473
8719
|
this.$emit("row-dblclick", row, index);
|
|
@@ -8570,7 +8816,7 @@
|
|
|
8570
8816
|
sm: _ctx.crud.tableOption.gridSpan || _ctx.span,
|
|
8571
8817
|
xs: _ctx.crud.tableOption.gridXsSpan || _ctx.xsSpan,
|
|
8572
8818
|
"class": vue.normalizeClass(_ctx.getRowClass(row, index)),
|
|
8573
|
-
key:
|
|
8819
|
+
key: _ctx.getRowIdentity(row)
|
|
8574
8820
|
}, {
|
|
8575
8821
|
"default": vue.withCtx(function () {
|
|
8576
8822
|
return [vue.createElementVNode("div", {
|
|
@@ -9654,6 +9900,7 @@
|
|
|
9654
9900
|
if (!this.confirmed) this.restoreColumn();
|
|
9655
9901
|
this.destroySortable();
|
|
9656
9902
|
this.data = [];
|
|
9903
|
+
this.triggerRef = null;
|
|
9657
9904
|
},
|
|
9658
9905
|
handleReset: function handleReset() {
|
|
9659
9906
|
var _this5 = this;
|
|
@@ -10469,46 +10716,6 @@
|
|
|
10469
10716
|
script$1f.render = render$1f;
|
|
10470
10717
|
script$1f.__file = "packages/element-plus/crud/dialog/dialog-form.vue";
|
|
10471
10718
|
|
|
10472
|
-
function _arrayWithHoles(r) {
|
|
10473
|
-
if (Array.isArray(r)) return r;
|
|
10474
|
-
}
|
|
10475
|
-
|
|
10476
|
-
function _iterableToArrayLimit(r, l) {
|
|
10477
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
10478
|
-
if (null != t) {
|
|
10479
|
-
var e,
|
|
10480
|
-
n,
|
|
10481
|
-
i,
|
|
10482
|
-
u,
|
|
10483
|
-
a = [],
|
|
10484
|
-
f = true,
|
|
10485
|
-
o = false;
|
|
10486
|
-
try {
|
|
10487
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
10488
|
-
if (Object(t) !== t) return;
|
|
10489
|
-
f = !1;
|
|
10490
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
10491
|
-
} catch (r) {
|
|
10492
|
-
o = true, n = r;
|
|
10493
|
-
} finally {
|
|
10494
|
-
try {
|
|
10495
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
10496
|
-
} finally {
|
|
10497
|
-
if (o) throw n;
|
|
10498
|
-
}
|
|
10499
|
-
}
|
|
10500
|
-
return a;
|
|
10501
|
-
}
|
|
10502
|
-
}
|
|
10503
|
-
|
|
10504
|
-
function _nonIterableRest() {
|
|
10505
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10506
|
-
}
|
|
10507
|
-
|
|
10508
|
-
function _slicedToArray(r, e) {
|
|
10509
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
|
|
10510
|
-
}
|
|
10511
|
-
|
|
10512
10719
|
var dayjs_min$1 = {exports: {}};
|
|
10513
10720
|
|
|
10514
10721
|
var dayjs_min = dayjs_min$1.exports;
|
|
@@ -10640,7 +10847,7 @@
|
|
|
10640
10847
|
list.forEach(function (ele) {
|
|
10641
10848
|
var row = _this.deepClone(ele);
|
|
10642
10849
|
columnOption.forEach(function (column) {
|
|
10643
|
-
var DIC =
|
|
10850
|
+
var DIC = _this.crud.getRowDic(ele, column);
|
|
10644
10851
|
row[column.prop] = detail(row, column, option, DIC);
|
|
10645
10852
|
});
|
|
10646
10853
|
data.push(row);
|
|
@@ -11251,7 +11458,7 @@
|
|
|
11251
11458
|
},
|
|
11252
11459
|
handleDetail: function handleDetail(row, column) {
|
|
11253
11460
|
var result;
|
|
11254
|
-
var DIC =
|
|
11461
|
+
var DIC = this.crud.getRowDic(row, column);
|
|
11255
11462
|
result = detail(row, column, this.crud.tableOption, DIC);
|
|
11256
11463
|
if (!this.validatenull(DIC) && this.crud.tableOption.filterDic != true) {
|
|
11257
11464
|
row["$" + column.prop] = result;
|
|
@@ -11375,7 +11582,7 @@
|
|
|
11375
11582
|
row: row,
|
|
11376
11583
|
tableColumn: tableColumn,
|
|
11377
11584
|
column: $props.column,
|
|
11378
|
-
dic: $options.crud.
|
|
11585
|
+
dic: $options.crud.getRowDic(row, $props.column),
|
|
11379
11586
|
size: $options.crud.size,
|
|
11380
11587
|
index: $index,
|
|
11381
11588
|
disabled: $options.crud.btnDisabledList[$index],
|
|
@@ -11395,7 +11602,7 @@
|
|
|
11395
11602
|
row: row,
|
|
11396
11603
|
label: $options.handleDetail(row, $props.column)
|
|
11397
11604
|
},
|
|
11398
|
-
dic:
|
|
11605
|
+
dic: $options.crud.getRowDic(row, $props.column),
|
|
11399
11606
|
props: $props.column.props || $options.crud.tableOption.props,
|
|
11400
11607
|
readonly: $props.column.readonly,
|
|
11401
11608
|
disabled: $options.crud.disabled || $options.crud.tableOption.disabled || $props.column.disabled || $options.crud.btnDisabledList[$index],
|
|
@@ -11438,7 +11645,7 @@
|
|
|
11438
11645
|
tableColumn: tableColumn,
|
|
11439
11646
|
column: $props.column,
|
|
11440
11647
|
index: $index,
|
|
11441
|
-
dic: $options.crud.
|
|
11648
|
+
dic: $options.crud.getRowDic(row, $props.column),
|
|
11442
11649
|
size: $options.crud.size,
|
|
11443
11650
|
label: $options.handleDetail(row, $props.column)
|
|
11444
11651
|
}) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
@@ -12097,6 +12304,10 @@
|
|
|
12097
12304
|
this.rowDrop();
|
|
12098
12305
|
this.columnDrop();
|
|
12099
12306
|
},
|
|
12307
|
+
beforeUnmount: function beforeUnmount() {
|
|
12308
|
+
this.rowSortable && this.rowSortable.destroy();
|
|
12309
|
+
this.rowSortable = null;
|
|
12310
|
+
},
|
|
12100
12311
|
methods: {
|
|
12101
12312
|
indexMethod: function indexMethod(index) {
|
|
12102
12313
|
return index + 1 + ((this.crud.page.currentPage || 1) - 1) * (this.crud.page.pageSize || 10);
|
|
@@ -12104,16 +12315,48 @@
|
|
|
12104
12315
|
rowDrop: function rowDrop(flag) {
|
|
12105
12316
|
var _this = this;
|
|
12106
12317
|
this.$nextTick(function () {
|
|
12318
|
+
var _this$crud$$refs$tabl;
|
|
12319
|
+
_this.rowSortable && _this.rowSortable.destroy();
|
|
12320
|
+
_this.rowSortable = null;
|
|
12107
12321
|
if (flag == false) {
|
|
12108
|
-
_this.rowSortable && _this.rowSortable.destroy();
|
|
12109
12322
|
return;
|
|
12110
12323
|
}
|
|
12111
|
-
if (!_this.crud.$refs.table.$el) return;
|
|
12324
|
+
if (!((_this$crud$$refs$tabl = _this.crud.$refs.table) !== null && _this$crud$$refs$tabl !== void 0 && _this$crud$$refs$tabl.$el)) return;
|
|
12112
12325
|
var el = _this.crud.$refs.table.$el.querySelectorAll(_this.config.dropRowClass)[0];
|
|
12326
|
+
if (!el) return;
|
|
12113
12327
|
_this.rowSortable = _this.crud.tableDrop('row', el, function (evt) {
|
|
12328
|
+
var _evt$item, _this$crud$$refs$tabl2;
|
|
12114
12329
|
var oldIndex = evt.oldIndex;
|
|
12115
12330
|
var newIndex = evt.newIndex;
|
|
12116
|
-
|
|
12331
|
+
if (oldIndex === newIndex || !Number.isInteger(oldIndex) || !Number.isInteger(newIndex) || oldIndex < 0 || newIndex < 0) return;
|
|
12332
|
+
if (!evt.from || ((_evt$item = evt.item) === null || _evt$item === void 0 ? void 0 : _evt$item.parentNode) !== evt.from) return;
|
|
12333
|
+
// 先还原 Sortable 移动的 DOM,再由 Vue 根据数据更新顺序。
|
|
12334
|
+
evt.from.removeChild(evt.item);
|
|
12335
|
+
evt.from.insertBefore(evt.item, evt.from.children[oldIndex] || null);
|
|
12336
|
+
var list = _this.crud.data;
|
|
12337
|
+
if (oldIndex >= list.length || newIndex >= list.length) return;
|
|
12338
|
+
var tableState = (_this$crud$$refs$tabl2 = _this.crud.$refs.table) === null || _this$crud$$refs$tabl2 === void 0 || (_this$crud$$refs$tabl2 = _this$crud$$refs$tabl2.store) === null || _this$crud$$refs$tabl2 === void 0 ? void 0 : _this$crud$$refs$tabl2.states;
|
|
12339
|
+
var visibleRows = vue.unref(tableState === null || tableState === void 0 ? void 0 : tableState.data);
|
|
12340
|
+
// 筛选、列排序或展开行后,DOM 行号可能不再对应绑定数组。
|
|
12341
|
+
if (vue.unref(tableState === null || tableState === void 0 ? void 0 : tableState.sortingColumn) && vue.unref(tableState === null || tableState === void 0 ? void 0 : tableState.sortOrder) || evt.from.children.length !== list.length || !Array.isArray(visibleRows) || visibleRows.length !== list.length || visibleRows.some(function (row, index) {
|
|
12342
|
+
return row !== list[index];
|
|
12343
|
+
})) return;
|
|
12344
|
+
var original = list.slice();
|
|
12345
|
+
var sorted = list.slice();
|
|
12346
|
+
var row = sorted.splice(oldIndex, 1)[0];
|
|
12347
|
+
sorted.splice(newIndex, 0, row);
|
|
12348
|
+
var sortable = _this.rowSortable;
|
|
12349
|
+
_this.crud.$emit('sortable-change', oldIndex, newIndex, row, sorted);
|
|
12350
|
+
_this.$nextTick(function () {
|
|
12351
|
+
// 等待父组件同步新数组,兼容回调内的替换数组或原地换序。
|
|
12352
|
+
if (_this.rowSortable !== sortable || _this.crud.data !== list) return;
|
|
12353
|
+
if (list.length === original.length && list.every(function (item, index) {
|
|
12354
|
+
return item === original[index];
|
|
12355
|
+
})) {
|
|
12356
|
+
list.splice(oldIndex, 1);
|
|
12357
|
+
list.splice(newIndex, 0, row);
|
|
12358
|
+
}
|
|
12359
|
+
});
|
|
12117
12360
|
});
|
|
12118
12361
|
});
|
|
12119
12362
|
},
|
|
@@ -13072,7 +13315,14 @@
|
|
|
13072
13315
|
onEnd: function onEnd(evt) {
|
|
13073
13316
|
return callback(evt);
|
|
13074
13317
|
},
|
|
13075
|
-
filter:
|
|
13318
|
+
filter: function filter(evt) {
|
|
13319
|
+
// Let Element Plus own the entire column resize interaction.
|
|
13320
|
+
if (type === "column" && document.body.style.cursor === "col-resize") {
|
|
13321
|
+
return true;
|
|
13322
|
+
}
|
|
13323
|
+
return !!evt.target.closest(".el-table-fixed-column--right");
|
|
13324
|
+
},
|
|
13325
|
+
preventOnFilter: type !== "column"
|
|
13076
13326
|
});
|
|
13077
13327
|
},
|
|
13078
13328
|
findData: function findData(id) {
|
|
@@ -16059,13 +16309,30 @@
|
|
|
16059
16309
|
endPlaceholder: String,
|
|
16060
16310
|
rangeSeparator: String,
|
|
16061
16311
|
defaultValue: [String, Array],
|
|
16062
|
-
defaultTime: [String, Array],
|
|
16312
|
+
defaultTime: [String, Date, Array],
|
|
16063
16313
|
type: {
|
|
16064
16314
|
type: String,
|
|
16065
16315
|
"default": "date"
|
|
16066
16316
|
},
|
|
16067
16317
|
valueFormat: String,
|
|
16068
16318
|
format: String
|
|
16319
|
+
},
|
|
16320
|
+
computed: {
|
|
16321
|
+
defaultTimeVal: function defaultTimeVal() {
|
|
16322
|
+
var normalizeTime = function normalizeTime(time) {
|
|
16323
|
+
if (typeof time !== "string") return time;
|
|
16324
|
+
var match = /^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.exec(time);
|
|
16325
|
+
if (!match) return time;
|
|
16326
|
+
var _match$map = match.map(Number),
|
|
16327
|
+
_match$map2 = _slicedToArray(_match$map, 4),
|
|
16328
|
+
hours = _match$map2[1],
|
|
16329
|
+
minutes = _match$map2[2],
|
|
16330
|
+
seconds = _match$map2[3];
|
|
16331
|
+
// Element Plus requires a Date and only uses its local time fields.
|
|
16332
|
+
return new Date(2000, 0, 1, hours, minutes, seconds);
|
|
16333
|
+
};
|
|
16334
|
+
return Array.isArray(this.defaultTime) ? this.defaultTime.map(normalizeTime) : normalizeTime(this.defaultTime);
|
|
16335
|
+
}
|
|
16069
16336
|
}
|
|
16070
16337
|
});
|
|
16071
16338
|
|
|
@@ -16093,7 +16360,7 @@
|
|
|
16093
16360
|
"unlink-panels": _ctx.unlinkPanels,
|
|
16094
16361
|
"single-panel": _ctx.singlePanel,
|
|
16095
16362
|
"default-value": _ctx.defaultValue,
|
|
16096
|
-
"default-time": _ctx.
|
|
16363
|
+
"default-time": _ctx.defaultTimeVal,
|
|
16097
16364
|
"range-separator": _ctx.rangeSeparator,
|
|
16098
16365
|
"start-placeholder": _ctx.startPlaceholder || _ctx.t('date.start'),
|
|
16099
16366
|
"end-placeholder": _ctx.endPlaceholder || _ctx.t('date.end'),
|
|
@@ -35079,7 +35346,7 @@
|
|
|
35079
35346
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35080
35347
|
var components = _objectSpread$3(_objectSpread$3({}, elementComponents), dataComponents);
|
|
35081
35348
|
|
|
35082
|
-
var version = '3.9.
|
|
35349
|
+
var version = '3.9.5';
|
|
35083
35350
|
|
|
35084
35351
|
var GUTTER = 8;
|
|
35085
35352
|
var stateMap = new WeakMap();
|