@smallwei/avue 3.8.6 → 3.9.1
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 +208 -208
- package/dist/avue.js +2 -2
- package/dist/avue.js.map +1 -1
- package/dist/avue.min.js +2 -2
- package/es/_virtual/_commonjs-dynamic-modules.mjs +6 -0
- package/es/_virtual/_commonjsHelpers.mjs +1 -1
- package/es/_virtual/axios.mjs +8 -0
- package/es/_virtual/axios2.mjs +4 -0
- package/es/_virtual/countUp.min.mjs +28 -0
- package/es/_virtual/countUp.min2.mjs +4 -0
- 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 +18 -0
- package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.mjs +1 -1
- package/es/node_modules/axios/dist/axios.mjs +2147 -0
- package/es/packages/core/common/event.mjs +1 -1
- package/es/packages/core/common/init.mjs +1 -1
- 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 +16 -16
- 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 +7 -7
- 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 +13 -13
- 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 +13 -13
- 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 +7 -7
- 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 +27 -27
- 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 +44 -44
- 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/card/index.mjs +1 -1
- package/es/packages/element-plus/card/index2.mjs +10 -10
- package/es/packages/element-plus/card/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 +11 -10
- 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 +1 -1
- 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 +1 -1
- package/es/packages/element-plus/crud/column/column-slot3.mjs +1 -1
- 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 +1 -1
- 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 +1 -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 +1 -1
- 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 +1 -1
- package/es/packages/element-plus/crud/grid/index3.mjs +1 -1
- 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 +1 -1
- 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 +23 -23
- 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 +1 -1
- package/es/packages/element-plus/date/index3.mjs +1 -1
- 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/flow/index.mjs +1 -1
- package/es/packages/element-plus/flow/index2.mjs +40 -40
- 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/input/index.mjs +1 -1
- package/es/packages/element-plus/input/index2.mjs +155 -155
- 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 +77 -77
- 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 +4 -4
- 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-table/index.mjs +1 -1
- package/es/packages/element-plus/input-table/index2.mjs +4 -4
- 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 +35 -35
- 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/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 +5 -5
- 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 +4 -4
- 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/verify/index.mjs +1 -1
- package/es/packages/element-plus/verify/index2.mjs +1 -1
- package/es/packages/element-plus/verify/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/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 +1 -1
- package/es/src/core/locale.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 +135 -3
- package/es/src/locale/index.mjs +2 -2
- 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 +16 -3
- package/es/src/plugin/export/index.mjs +10 -9
- 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 +10 -10
- package/es/src/ui/data/index.mjs +2 -2
- package/es/src/ui/element-plus/index.mjs +2 -2
- 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/util.mjs +4 -4
- 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/packages/core/common/event.js +1 -1
- package/lib/packages/core/common/init.js +1 -1
- 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 +16 -16
- 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 +7 -7
- 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 +13 -13
- 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 +13 -13
- 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 +7 -7
- 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 +27 -27
- 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 +44 -44
- 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/card/index.js +1 -1
- package/lib/packages/element-plus/card/index2.js +10 -10
- package/lib/packages/element-plus/card/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 +11 -14
- 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 +1 -1
- 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 +1 -1
- package/lib/packages/element-plus/crud/column/column-slot3.js +1 -1
- 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 +1 -1
- 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 +1 -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 +1 -1
- 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 +1 -1
- package/lib/packages/element-plus/crud/grid/index3.js +1 -1
- 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 +1 -1
- 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 +20 -20
- 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 +1 -1
- package/lib/packages/element-plus/date/index3.js +1 -1
- 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/flow/index.js +1 -1
- package/lib/packages/element-plus/flow/index2.js +40 -40
- 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/input/index.js +1 -1
- package/lib/packages/element-plus/input/index2.js +155 -155
- 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 +77 -77
- 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 +4 -4
- 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-table/index.js +1 -1
- package/lib/packages/element-plus/input-table/index2.js +4 -4
- 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 +35 -35
- 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/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 +5 -5
- 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 +4 -4
- 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/verify/index.js +1 -1
- package/lib/packages/element-plus/verify/index2.js +1 -1
- package/lib/packages/element-plus/verify/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/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 +1 -1
- package/lib/src/core/locale.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 +222 -5
- 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 +16 -3
- package/lib/src/plugin/export/index.js +10 -9
- 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 +10 -10
- package/lib/src/ui/data/index.js +68 -45
- package/lib/src/ui/element-plus/index.js +127 -85
- 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/util.js +1 -1
- package/lib/src/utils/validate.js +1 -1
- package/lib/src/version.js +2 -2
- package/package.json +85 -85
- package/types/index.d.ts +215 -46
- package/types/shims-aliases.d.ts +10 -1
- package/types/shims-vue.d.ts +6 -6
- package/es/avue.min.mjs +0 -2
- package/es/avue.mjs +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Avue.js v3.
|
|
1
|
+
/*! Avue.js v3.9.1 | (c) 2017-2026 Smallwei | Released under the MIT License. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -8,33 +8,33 @@ var packages_core_common_props = require('../../core/common/props.js');
|
|
|
8
8
|
var packages_core_common_event = require('../../core/common/event.js');
|
|
9
9
|
var src_core_locale = require('../../../src/core/locale.js');
|
|
10
10
|
|
|
11
|
-
const defaultPhoneCodeOptions = [
|
|
12
|
-
{ code: '+86', flag: '🇨🇳', nameKey: 'input.countries.cn' },
|
|
13
|
-
{ code: '+852', flag: '🇭🇰', nameKey: 'input.countries.hk' },
|
|
14
|
-
{ code: '+853', flag: '🇲🇴', nameKey: 'input.countries.mo' },
|
|
15
|
-
{ code: '+886', flag: '🇹🇼', nameKey: 'input.countries.tw' },
|
|
16
|
-
{ code: '+1', flag: '🇺🇸', nameKey: 'input.countries.usca' },
|
|
17
|
-
{ code: '+44', flag: '🇬🇧', nameKey: 'input.countries.uk' },
|
|
18
|
-
{ code: '+81', flag: '🇯🇵', nameKey: 'input.countries.jp' },
|
|
19
|
-
{ code: '+82', flag: '🇰🇷', nameKey: 'input.countries.kr' },
|
|
20
|
-
{ code: '+65', flag: '🇸🇬', nameKey: 'input.countries.sg' },
|
|
21
|
-
{ code: '+61', flag: '🇦🇺', nameKey: 'input.countries.au' },
|
|
22
|
-
{ code: '+49', flag: '🇩🇪', nameKey: 'input.countries.de' },
|
|
23
|
-
{ code: '+33', flag: '🇫🇷', nameKey: 'input.countries.fr' },
|
|
24
|
-
{ code: '+39', flag: '🇮🇹', nameKey: 'input.countries.it' },
|
|
25
|
-
{ code: '+7', flag: '🇷🇺', nameKey: 'input.countries.ru' },
|
|
26
|
-
{ code: '+91', flag: '🇮🇳', nameKey: 'input.countries.in' },
|
|
27
|
-
{ code: '+55', flag: '🇧🇷', nameKey: 'input.countries.br' },
|
|
28
|
-
{ code: '+34', flag: '🇪🇸', nameKey: 'input.countries.es' },
|
|
29
|
-
{ code: '+31', flag: '🇳🇱', nameKey: 'input.countries.nl' },
|
|
30
|
-
{ code: '+41', flag: '🇨🇭', nameKey: 'input.countries.ch' },
|
|
31
|
-
{ code: '+46', flag: '🇸🇪', nameKey: 'input.countries.se' },
|
|
32
|
-
{ code: '+60', flag: '🇲🇾', nameKey: 'input.countries.my' },
|
|
33
|
-
{ code: '+66', flag: '🇹🇭', nameKey: 'input.countries.th' },
|
|
34
|
-
{ code: '+84', flag: '🇻🇳', nameKey: 'input.countries.vn' },
|
|
35
|
-
{ code: '+62', flag: '🇮🇩', nameKey: 'input.countries.id' },
|
|
36
|
-
{ code: '+63', flag: '🇵🇭', nameKey: 'input.countries.ph' }
|
|
37
|
-
];
|
|
11
|
+
const defaultPhoneCodeOptions = [
|
|
12
|
+
{ code: '+86', flag: '🇨🇳', nameKey: 'input.countries.cn' },
|
|
13
|
+
{ code: '+852', flag: '🇭🇰', nameKey: 'input.countries.hk' },
|
|
14
|
+
{ code: '+853', flag: '🇲🇴', nameKey: 'input.countries.mo' },
|
|
15
|
+
{ code: '+886', flag: '🇹🇼', nameKey: 'input.countries.tw' },
|
|
16
|
+
{ code: '+1', flag: '🇺🇸', nameKey: 'input.countries.usca' },
|
|
17
|
+
{ code: '+44', flag: '🇬🇧', nameKey: 'input.countries.uk' },
|
|
18
|
+
{ code: '+81', flag: '🇯🇵', nameKey: 'input.countries.jp' },
|
|
19
|
+
{ code: '+82', flag: '🇰🇷', nameKey: 'input.countries.kr' },
|
|
20
|
+
{ code: '+65', flag: '🇸🇬', nameKey: 'input.countries.sg' },
|
|
21
|
+
{ code: '+61', flag: '🇦🇺', nameKey: 'input.countries.au' },
|
|
22
|
+
{ code: '+49', flag: '🇩🇪', nameKey: 'input.countries.de' },
|
|
23
|
+
{ code: '+33', flag: '🇫🇷', nameKey: 'input.countries.fr' },
|
|
24
|
+
{ code: '+39', flag: '🇮🇹', nameKey: 'input.countries.it' },
|
|
25
|
+
{ code: '+7', flag: '🇷🇺', nameKey: 'input.countries.ru' },
|
|
26
|
+
{ code: '+91', flag: '🇮🇳', nameKey: 'input.countries.in' },
|
|
27
|
+
{ code: '+55', flag: '🇧🇷', nameKey: 'input.countries.br' },
|
|
28
|
+
{ code: '+34', flag: '🇪🇸', nameKey: 'input.countries.es' },
|
|
29
|
+
{ code: '+31', flag: '🇳🇱', nameKey: 'input.countries.nl' },
|
|
30
|
+
{ code: '+41', flag: '🇨🇭', nameKey: 'input.countries.ch' },
|
|
31
|
+
{ code: '+46', flag: '🇸🇪', nameKey: 'input.countries.se' },
|
|
32
|
+
{ code: '+60', flag: '🇲🇾', nameKey: 'input.countries.my' },
|
|
33
|
+
{ code: '+66', flag: '🇹🇭', nameKey: 'input.countries.th' },
|
|
34
|
+
{ code: '+84', flag: '🇻🇳', nameKey: 'input.countries.vn' },
|
|
35
|
+
{ code: '+62', flag: '🇮🇩', nameKey: 'input.countries.id' },
|
|
36
|
+
{ code: '+63', flag: '🇵🇭', nameKey: 'input.countries.ph' }
|
|
37
|
+
];
|
|
38
38
|
|
|
39
39
|
// 货币符号映射
|
|
40
40
|
const currencySymbols = {
|
|
@@ -50,9 +50,9 @@ const currencySymbols = {
|
|
|
50
50
|
CAD: 'C$'
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
var script = src_core_create.default({
|
|
54
|
-
name: "input",
|
|
55
|
-
mixins: [packages_core_common_props.default(), packages_core_common_event.default(), src_core_locale.default],
|
|
53
|
+
var script = src_core_create.default({
|
|
54
|
+
name: "input",
|
|
55
|
+
mixins: [packages_core_common_props.default(), packages_core_common_event.default(), src_core_locale.default],
|
|
56
56
|
emits: ['update:modelValue', 'click', 'focus', 'blur', 'change', 'id-card-valid', 'code-complete', 'uscc-valid'],
|
|
57
57
|
data() {
|
|
58
58
|
return {
|
|
@@ -72,13 +72,13 @@ var script = src_core_create.default({
|
|
|
72
72
|
// 邮箱相关
|
|
73
73
|
emailDisplay: '',
|
|
74
74
|
emailValid: null,
|
|
75
|
-
showEmailSuggestions: false,
|
|
76
|
-
// 验证码相关
|
|
77
|
-
codeValues: [],
|
|
78
|
-
codeRefs: [],
|
|
79
|
-
// 车牌号相关
|
|
80
|
-
plateProvince: '',
|
|
81
|
-
plateNumber: '',
|
|
75
|
+
showEmailSuggestions: false,
|
|
76
|
+
// 验证码相关
|
|
77
|
+
codeValues: [],
|
|
78
|
+
codeRefs: [],
|
|
79
|
+
// 车牌号相关
|
|
80
|
+
plateProvince: '',
|
|
81
|
+
plateNumber: '',
|
|
82
82
|
// IP地址相关
|
|
83
83
|
ipSegments: ['', '', '', ''],
|
|
84
84
|
ipRefs: [],
|
|
@@ -158,15 +158,15 @@ var script = src_core_create.default({
|
|
|
158
158
|
default: 11
|
|
159
159
|
},
|
|
160
160
|
// 区号选择器占位符
|
|
161
|
-
phoneCodePlaceholder: {
|
|
162
|
-
type: String,
|
|
163
|
-
default: ''
|
|
164
|
-
},
|
|
165
|
-
// 手机号输入框占位符
|
|
166
|
-
phonePlaceholder: {
|
|
167
|
-
type: String,
|
|
168
|
-
default: ''
|
|
169
|
-
},
|
|
161
|
+
phoneCodePlaceholder: {
|
|
162
|
+
type: String,
|
|
163
|
+
default: ''
|
|
164
|
+
},
|
|
165
|
+
// 手机号输入框占位符
|
|
166
|
+
phonePlaceholder: {
|
|
167
|
+
type: String,
|
|
168
|
+
default: ''
|
|
169
|
+
},
|
|
170
170
|
|
|
171
171
|
// ========== 货币相关配置 ==========
|
|
172
172
|
// 货币类型
|
|
@@ -190,10 +190,10 @@ var script = src_core_create.default({
|
|
|
190
190
|
default: 2
|
|
191
191
|
},
|
|
192
192
|
// 货币占位符
|
|
193
|
-
currencyPlaceholder: {
|
|
194
|
-
type: String,
|
|
195
|
-
default: ''
|
|
196
|
-
},
|
|
193
|
+
currencyPlaceholder: {
|
|
194
|
+
type: String,
|
|
195
|
+
default: ''
|
|
196
|
+
},
|
|
197
197
|
// 最小值
|
|
198
198
|
currencyMin: {
|
|
199
199
|
type: Number,
|
|
@@ -222,10 +222,10 @@ var script = src_core_create.default({
|
|
|
222
222
|
default: 19
|
|
223
223
|
},
|
|
224
224
|
// 银行卡占位符
|
|
225
|
-
bankCardPlaceholder: {
|
|
226
|
-
type: String,
|
|
227
|
-
default: ''
|
|
228
|
-
},
|
|
225
|
+
bankCardPlaceholder: {
|
|
226
|
+
type: String,
|
|
227
|
+
default: ''
|
|
228
|
+
},
|
|
229
229
|
// 是否显示银行卡类型
|
|
230
230
|
showBankCardType: {
|
|
231
231
|
type: Boolean,
|
|
@@ -234,10 +234,10 @@ var script = src_core_create.default({
|
|
|
234
234
|
|
|
235
235
|
// ========== 身份证相关配置 ==========
|
|
236
236
|
// 身份证占位符
|
|
237
|
-
idCardPlaceholder: {
|
|
238
|
-
type: String,
|
|
239
|
-
default: ''
|
|
240
|
-
},
|
|
237
|
+
idCardPlaceholder: {
|
|
238
|
+
type: String,
|
|
239
|
+
default: ''
|
|
240
|
+
},
|
|
241
241
|
// 是否显示身份证信息
|
|
242
242
|
showIdCardInfo: {
|
|
243
243
|
type: Boolean,
|
|
@@ -250,10 +250,10 @@ var script = src_core_create.default({
|
|
|
250
250
|
},
|
|
251
251
|
|
|
252
252
|
// ========== 邮箱相关配置 ==========
|
|
253
|
-
emailPlaceholder: {
|
|
254
|
-
type: String,
|
|
255
|
-
default: ''
|
|
256
|
-
},
|
|
253
|
+
emailPlaceholder: {
|
|
254
|
+
type: String,
|
|
255
|
+
default: ''
|
|
256
|
+
},
|
|
257
257
|
// 邮箱后缀建议列表
|
|
258
258
|
emailSuffixes: {
|
|
259
259
|
type: Array,
|
|
@@ -282,26 +282,26 @@ var script = src_core_create.default({
|
|
|
282
282
|
},
|
|
283
283
|
|
|
284
284
|
// ========== 车牌号相关配置 ==========
|
|
285
|
-
platePlaceholder: {
|
|
286
|
-
type: String,
|
|
287
|
-
default: ''
|
|
288
|
-
},
|
|
289
|
-
// 默认省份
|
|
290
|
-
defaultPlateProvince: {
|
|
291
|
-
type: String,
|
|
292
|
-
default: ''
|
|
293
|
-
},
|
|
294
|
-
// 省份列表
|
|
295
|
-
plateProvinceList: {
|
|
296
|
-
type: Array,
|
|
297
|
-
default: () => []
|
|
298
|
-
},
|
|
285
|
+
platePlaceholder: {
|
|
286
|
+
type: String,
|
|
287
|
+
default: ''
|
|
288
|
+
},
|
|
289
|
+
// 默认省份
|
|
290
|
+
defaultPlateProvince: {
|
|
291
|
+
type: String,
|
|
292
|
+
default: ''
|
|
293
|
+
},
|
|
294
|
+
// 省份列表
|
|
295
|
+
plateProvinceList: {
|
|
296
|
+
type: Array,
|
|
297
|
+
default: () => []
|
|
298
|
+
},
|
|
299
299
|
|
|
300
300
|
// ========== IP地址相关配置 ==========
|
|
301
|
-
ipPlaceholder: {
|
|
302
|
-
type: String,
|
|
303
|
-
default: ''
|
|
304
|
-
},
|
|
301
|
+
ipPlaceholder: {
|
|
302
|
+
type: String,
|
|
303
|
+
default: ''
|
|
304
|
+
},
|
|
305
305
|
// IP版本 (4 或 6)
|
|
306
306
|
ipVersion: {
|
|
307
307
|
type: Number,
|
|
@@ -309,10 +309,10 @@ var script = src_core_create.default({
|
|
|
309
309
|
},
|
|
310
310
|
|
|
311
311
|
// ========== MAC地址相关配置 ==========
|
|
312
|
-
macPlaceholder: {
|
|
313
|
-
type: String,
|
|
314
|
-
default: ''
|
|
315
|
-
},
|
|
312
|
+
macPlaceholder: {
|
|
313
|
+
type: String,
|
|
314
|
+
default: ''
|
|
315
|
+
},
|
|
316
316
|
// MAC分隔符
|
|
317
317
|
macSeparator: {
|
|
318
318
|
type: String,
|
|
@@ -320,10 +320,10 @@ var script = src_core_create.default({
|
|
|
320
320
|
},
|
|
321
321
|
|
|
322
322
|
// ========== 社会信用代码相关配置 ==========
|
|
323
|
-
usccPlaceholder: {
|
|
324
|
-
type: String,
|
|
325
|
-
default: ''
|
|
326
|
-
},
|
|
323
|
+
usccPlaceholder: {
|
|
324
|
+
type: String,
|
|
325
|
+
default: ''
|
|
326
|
+
},
|
|
327
327
|
// 是否实时校验
|
|
328
328
|
usccRealtimeValidate: {
|
|
329
329
|
type: Boolean,
|
|
@@ -419,26 +419,26 @@ var script = src_core_create.default({
|
|
|
419
419
|
if (this.isIdCard) return this.idCardSuffixIcon;
|
|
420
420
|
return this.suffixIcon;
|
|
421
421
|
},
|
|
422
|
-
inputPlaceholder() {
|
|
423
|
-
if (this.isCurrency) return this.currencyPlaceholder || this.t('input.currencyPlaceholder');
|
|
424
|
-
if (this.isBankCard) return this.bankCardPlaceholder || this.t('input.bankCardPlaceholder');
|
|
425
|
-
if (this.isIdCard) return this.idCardPlaceholder || this.t('input.idCardPlaceholder');
|
|
426
|
-
if (this.isEmail) return this.emailPlaceholder || this.t('input.emailPlaceholder');
|
|
427
|
-
if (this.isUscc) return this.usccPlaceholder || this.t('input.usccPlaceholder');
|
|
428
|
-
return this.placeholder;
|
|
429
|
-
},
|
|
430
|
-
phoneCodePlaceholderText() {
|
|
431
|
-
return this.phoneCodePlaceholder || this.t('input.phoneCodePlaceholder');
|
|
432
|
-
},
|
|
433
|
-
phonePlaceholderText() {
|
|
434
|
-
return this.phonePlaceholder || this.t('input.phonePlaceholder');
|
|
435
|
-
},
|
|
436
|
-
platePlaceholderText() {
|
|
437
|
-
return this.platePlaceholder || this.t('input.platePlaceholder');
|
|
438
|
-
},
|
|
439
|
-
showPrepend() {
|
|
440
|
-
if (this.isCurrency) return !!this.currencySymbol;
|
|
441
|
-
return !!this.prepend;
|
|
422
|
+
inputPlaceholder() {
|
|
423
|
+
if (this.isCurrency) return this.currencyPlaceholder || this.t('input.currencyPlaceholder');
|
|
424
|
+
if (this.isBankCard) return this.bankCardPlaceholder || this.t('input.bankCardPlaceholder');
|
|
425
|
+
if (this.isIdCard) return this.idCardPlaceholder || this.t('input.idCardPlaceholder');
|
|
426
|
+
if (this.isEmail) return this.emailPlaceholder || this.t('input.emailPlaceholder');
|
|
427
|
+
if (this.isUscc) return this.usccPlaceholder || this.t('input.usccPlaceholder');
|
|
428
|
+
return this.placeholder;
|
|
429
|
+
},
|
|
430
|
+
phoneCodePlaceholderText() {
|
|
431
|
+
return this.phoneCodePlaceholder || this.t('input.phoneCodePlaceholder');
|
|
432
|
+
},
|
|
433
|
+
phonePlaceholderText() {
|
|
434
|
+
return this.phonePlaceholder || this.t('input.phonePlaceholder');
|
|
435
|
+
},
|
|
436
|
+
platePlaceholderText() {
|
|
437
|
+
return this.platePlaceholder || this.t('input.platePlaceholder');
|
|
438
|
+
},
|
|
439
|
+
showPrepend() {
|
|
440
|
+
if (this.isCurrency) return !!this.currencySymbol;
|
|
441
|
+
return !!this.prepend;
|
|
442
442
|
},
|
|
443
443
|
prependText() {
|
|
444
444
|
if (this.isCurrency) return this.currencySymbol;
|
|
@@ -458,30 +458,30 @@ var script = src_core_create.default({
|
|
|
458
458
|
(this.isEmail && this.emailValid !== null) ||
|
|
459
459
|
(this.isUscc && this.usccValid !== null);
|
|
460
460
|
},
|
|
461
|
-
// ========== 原有计算属性 ==========
|
|
462
|
-
// 手机区号列表
|
|
463
|
-
phoneCodeList() {
|
|
464
|
-
const list = this.phoneCodeOptions.length > 0 ? this.phoneCodeOptions : defaultPhoneCodeOptions;
|
|
465
|
-
return list.map((item) => {
|
|
466
|
-
const flag = item.flag || '';
|
|
467
|
-
const name = item.name || (item.nameKey ? this.t(item.nameKey) : item.code);
|
|
468
|
-
return {
|
|
469
|
-
...item,
|
|
470
|
-
name,
|
|
471
|
-
label: item.label || [flag, item.code].filter(Boolean).join(' ')
|
|
472
|
-
};
|
|
473
|
-
});
|
|
474
|
-
},
|
|
475
|
-
localizedPlateProvinces() {
|
|
476
|
-
const provinces = this.t('input.plateProvinces');
|
|
477
|
-
return Array.isArray(provinces) ? provinces : [];
|
|
478
|
-
},
|
|
479
|
-
resolvedPlateProvinceList() {
|
|
480
|
-
return this.plateProvinceList.length > 0 ? this.plateProvinceList : this.localizedPlateProvinces;
|
|
481
|
-
},
|
|
482
|
-
resolvedDefaultPlateProvince() {
|
|
483
|
-
return this.defaultPlateProvince || this.resolvedPlateProvinceList[0] || '';
|
|
484
|
-
},
|
|
461
|
+
// ========== 原有计算属性 ==========
|
|
462
|
+
// 手机区号列表
|
|
463
|
+
phoneCodeList() {
|
|
464
|
+
const list = this.phoneCodeOptions.length > 0 ? this.phoneCodeOptions : defaultPhoneCodeOptions;
|
|
465
|
+
return list.map((item) => {
|
|
466
|
+
const flag = item.flag || '';
|
|
467
|
+
const name = item.name || (item.nameKey ? this.t(item.nameKey) : item.code);
|
|
468
|
+
return {
|
|
469
|
+
...item,
|
|
470
|
+
name,
|
|
471
|
+
label: item.label || [flag, item.code].filter(Boolean).join(' ')
|
|
472
|
+
};
|
|
473
|
+
});
|
|
474
|
+
},
|
|
475
|
+
localizedPlateProvinces() {
|
|
476
|
+
const provinces = this.t('input.plateProvinces');
|
|
477
|
+
return Array.isArray(provinces) ? provinces : [];
|
|
478
|
+
},
|
|
479
|
+
resolvedPlateProvinceList() {
|
|
480
|
+
return this.plateProvinceList.length > 0 ? this.plateProvinceList : this.localizedPlateProvinces;
|
|
481
|
+
},
|
|
482
|
+
resolvedDefaultPlateProvince() {
|
|
483
|
+
return this.defaultPlateProvince || this.resolvedPlateProvinceList[0] || '';
|
|
484
|
+
},
|
|
485
485
|
// 货币符号
|
|
486
486
|
currencySymbol() {
|
|
487
487
|
if (this.currencySymbolCustom) {
|
|
@@ -717,11 +717,11 @@ var script = src_core_create.default({
|
|
|
717
717
|
const bin = cardNumber.slice(0, 6);
|
|
718
718
|
cardNumber.slice(0, 4);
|
|
719
719
|
|
|
720
|
-
// 常见银行卡 BIN 码判断
|
|
721
|
-
if (/^62/.test(bin)) {
|
|
722
|
-
this.bankCardType = this.t('input.bankCardTypes.unionpay');
|
|
723
|
-
} else if (/^4/.test(bin)) {
|
|
724
|
-
this.bankCardType = 'VISA';
|
|
720
|
+
// 常见银行卡 BIN 码判断
|
|
721
|
+
if (/^62/.test(bin)) {
|
|
722
|
+
this.bankCardType = this.t('input.bankCardTypes.unionpay');
|
|
723
|
+
} else if (/^4/.test(bin)) {
|
|
724
|
+
this.bankCardType = 'VISA';
|
|
725
725
|
} else if (/^5[1-5]/.test(bin) || /^2[2-7]/.test(bin)) {
|
|
726
726
|
this.bankCardType = 'MasterCard';
|
|
727
727
|
} else if (/^3[47]/.test(bin)) {
|
|
@@ -811,23 +811,23 @@ var script = src_core_create.default({
|
|
|
811
811
|
const birthDay = idCard.slice(12, 14);
|
|
812
812
|
const genderCode = parseInt(idCard.charAt(16), 10);
|
|
813
813
|
|
|
814
|
-
this.idCardInfo = {
|
|
815
|
-
region: this.getRegionName(regionCode),
|
|
816
|
-
birthday: `${birthYear}-${birthMonth}-${birthDay}`,
|
|
817
|
-
gender: genderCode % 2 === 0 ? this.t('input.genders.female') : this.t('input.genders.male'),
|
|
818
|
-
age: this.calculateAge(birthYear, birthMonth, birthDay)
|
|
819
|
-
};
|
|
814
|
+
this.idCardInfo = {
|
|
815
|
+
region: this.getRegionName(regionCode),
|
|
816
|
+
birthday: `${birthYear}-${birthMonth}-${birthDay}`,
|
|
817
|
+
gender: genderCode % 2 === 0 ? this.t('input.genders.female') : this.t('input.genders.male'),
|
|
818
|
+
age: this.calculateAge(birthYear, birthMonth, birthDay)
|
|
819
|
+
};
|
|
820
820
|
} else {
|
|
821
821
|
this.idCardInfo = null;
|
|
822
822
|
}
|
|
823
823
|
|
|
824
824
|
return valid;
|
|
825
825
|
},
|
|
826
|
-
getRegionName(code) {
|
|
827
|
-
const regions = this.t('input.regions');
|
|
828
|
-
const provinceCode = code.slice(0, 2);
|
|
829
|
-
return (regions && regions[provinceCode]) || this.t('input.unknownRegion');
|
|
830
|
-
},
|
|
826
|
+
getRegionName(code) {
|
|
827
|
+
const regions = this.t('input.regions');
|
|
828
|
+
const provinceCode = code.slice(0, 2);
|
|
829
|
+
return (regions && regions[provinceCode]) || this.t('input.unknownRegion');
|
|
830
|
+
},
|
|
831
831
|
calculateAge(year, month, day) {
|
|
832
832
|
const birthDate = new Date(year, month - 1, day);
|
|
833
833
|
const today = new Date();
|
|
@@ -915,12 +915,12 @@ var script = src_core_create.default({
|
|
|
915
915
|
},
|
|
916
916
|
|
|
917
917
|
// ========== 车牌号相关方法 ==========
|
|
918
|
-
initPlateValue(val) {
|
|
919
|
-
if (!val) {
|
|
920
|
-
this.plateProvince = this.resolvedDefaultPlateProvince;
|
|
921
|
-
this.plateNumber = '';
|
|
922
|
-
return;
|
|
923
|
-
}
|
|
918
|
+
initPlateValue(val) {
|
|
919
|
+
if (!val) {
|
|
920
|
+
this.plateProvince = this.resolvedDefaultPlateProvince;
|
|
921
|
+
this.plateNumber = '';
|
|
922
|
+
return;
|
|
923
|
+
}
|
|
924
924
|
const str = String(val);
|
|
925
925
|
if (str.length > 0) {
|
|
926
926
|
this.plateProvince = str[0];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Avue.js v3.
|
|
1
|
+
/*! Avue.js v3.9.1 | (c) 2017-2026 Smallwei | Released under the MIT License. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -8,33 +8,33 @@ var packages_core_common_props = require('../../core/common/props.js');
|
|
|
8
8
|
var packages_core_common_event = require('../../core/common/event.js');
|
|
9
9
|
var src_core_locale = require('../../../src/core/locale.js');
|
|
10
10
|
|
|
11
|
-
// Cron Tab 子组件
|
|
12
|
-
const CronTab = {
|
|
13
|
-
name: 'CronTab',
|
|
14
|
-
mixins: [src_core_locale.default],
|
|
15
|
-
props: {
|
|
16
|
-
modelValue: Object,
|
|
17
|
-
type: String,
|
|
11
|
+
// Cron Tab 子组件
|
|
12
|
+
const CronTab = {
|
|
13
|
+
name: 'CronTab',
|
|
14
|
+
mixins: [src_core_locale.default],
|
|
15
|
+
props: {
|
|
16
|
+
modelValue: Object,
|
|
17
|
+
type: String,
|
|
18
18
|
max: Number,
|
|
19
19
|
min: { type: Number, default: 0 },
|
|
20
|
-
showNotSpecify: Boolean,
|
|
21
|
-
isWeek: Boolean
|
|
22
|
-
},
|
|
23
|
-
emits: ['update:modelValue'],
|
|
24
|
-
computed: {
|
|
25
|
-
data: {
|
|
26
|
-
get() { return this.modelValue; },
|
|
27
|
-
set(val) { this.$emit('update:modelValue', val); }
|
|
28
|
-
},
|
|
29
|
-
weekLabels() {
|
|
30
|
-
const labels = this.t('cron.weekLabels');
|
|
31
|
-
return Array.isArray(labels) ? labels : [];
|
|
32
|
-
},
|
|
33
|
-
typeLabel() {
|
|
34
|
-
return this.t(`cron.units.${this.type}`);
|
|
35
|
-
},
|
|
36
|
-
options() {
|
|
37
|
-
const list = [];
|
|
20
|
+
showNotSpecify: Boolean,
|
|
21
|
+
isWeek: Boolean
|
|
22
|
+
},
|
|
23
|
+
emits: ['update:modelValue'],
|
|
24
|
+
computed: {
|
|
25
|
+
data: {
|
|
26
|
+
get() { return this.modelValue; },
|
|
27
|
+
set(val) { this.$emit('update:modelValue', val); }
|
|
28
|
+
},
|
|
29
|
+
weekLabels() {
|
|
30
|
+
const labels = this.t('cron.weekLabels');
|
|
31
|
+
return Array.isArray(labels) ? labels : [];
|
|
32
|
+
},
|
|
33
|
+
typeLabel() {
|
|
34
|
+
return this.t(`cron.units.${this.type}`);
|
|
35
|
+
},
|
|
36
|
+
options() {
|
|
37
|
+
const list = [];
|
|
38
38
|
for (let i = this.min; i <= this.max; i++) {
|
|
39
39
|
list.push({
|
|
40
40
|
value: i,
|
|
@@ -49,41 +49,41 @@ const CronTab = {
|
|
|
49
49
|
this.$emit('update:modelValue', { ...this.data, [key]: value });
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
template: `
|
|
53
|
-
<div class="avue-input-cron__tab">
|
|
54
|
-
<el-radio-group :model-value="data.type" @update:model-value="val => updateData('type', val)">
|
|
55
|
-
<div class="avue-input-cron__option">
|
|
56
|
-
<el-radio label="every">{{ t('cron.every', { label: typeLabel }) }}</el-radio>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="avue-input-cron__option" v-if="showNotSpecify">
|
|
59
|
-
<el-radio label="notSpecify">{{ t('cron.notSpecify') }}</el-radio>
|
|
60
|
-
</div>
|
|
61
|
-
<div class="avue-input-cron__option">
|
|
62
|
-
<el-radio label="range">{{ t('cron.range') }}</el-radio>
|
|
63
|
-
<span v-if="data.type === 'range'" class="avue-input-cron__inline">
|
|
64
|
-
{{ t('cron.from') }}
|
|
65
|
-
<el-input-number v-model="data.rangeStart" :min="min" :max="max" size="small" style="width:80px" @change="val => updateData('rangeStart', val)" />
|
|
66
|
-
{{ t('cron.to') }}
|
|
67
|
-
<el-input-number v-model="data.rangeEnd" :min="min" :max="max" size="small" style="width:80px" @change="val => updateData('rangeEnd', val)" />
|
|
68
|
-
{{ typeLabel }}
|
|
69
|
-
</span>
|
|
70
|
-
</div>
|
|
71
|
-
<div class="avue-input-cron__option">
|
|
72
|
-
<el-radio label="step">{{ t('cron.step') }}</el-radio>
|
|
73
|
-
<span v-if="data.type === 'step'" class="avue-input-cron__inline">
|
|
74
|
-
{{ t('cron.startingFrom') }}
|
|
75
|
-
<el-input-number v-model="data.stepStart" :min="min" :max="max" size="small" style="width:80px" @change="val => updateData('stepStart', val)" />
|
|
76
|
-
{{ typeLabel }}
|
|
77
|
-
{{ t('cron.everyInterval') }}
|
|
78
|
-
<el-input-number v-model="data.stepValue" :min="1" :max="max" size="small" style="width:80px" @change="val => updateData('stepValue', val)" />
|
|
79
|
-
{{ typeLabel }}
|
|
80
|
-
</span>
|
|
81
|
-
</div>
|
|
82
|
-
<div class="avue-input-cron__option">
|
|
83
|
-
<el-radio label="specify">{{ t('cron.specify') }}</el-radio>
|
|
84
|
-
</div>
|
|
85
|
-
</el-radio-group>
|
|
86
|
-
<div v-if="data.type === 'specify'" class="avue-input-cron__specify">
|
|
52
|
+
template: `
|
|
53
|
+
<div class="avue-input-cron__tab">
|
|
54
|
+
<el-radio-group :model-value="data.type" @update:model-value="val => updateData('type', val)">
|
|
55
|
+
<div class="avue-input-cron__option">
|
|
56
|
+
<el-radio label="every">{{ t('cron.every', { label: typeLabel }) }}</el-radio>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="avue-input-cron__option" v-if="showNotSpecify">
|
|
59
|
+
<el-radio label="notSpecify">{{ t('cron.notSpecify') }}</el-radio>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="avue-input-cron__option">
|
|
62
|
+
<el-radio label="range">{{ t('cron.range') }}</el-radio>
|
|
63
|
+
<span v-if="data.type === 'range'" class="avue-input-cron__inline">
|
|
64
|
+
{{ t('cron.from') }}
|
|
65
|
+
<el-input-number v-model="data.rangeStart" :min="min" :max="max" size="small" style="width:80px" @change="val => updateData('rangeStart', val)" />
|
|
66
|
+
{{ t('cron.to') }}
|
|
67
|
+
<el-input-number v-model="data.rangeEnd" :min="min" :max="max" size="small" style="width:80px" @change="val => updateData('rangeEnd', val)" />
|
|
68
|
+
{{ typeLabel }}
|
|
69
|
+
</span>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="avue-input-cron__option">
|
|
72
|
+
<el-radio label="step">{{ t('cron.step') }}</el-radio>
|
|
73
|
+
<span v-if="data.type === 'step'" class="avue-input-cron__inline">
|
|
74
|
+
{{ t('cron.startingFrom') }}
|
|
75
|
+
<el-input-number v-model="data.stepStart" :min="min" :max="max" size="small" style="width:80px" @change="val => updateData('stepStart', val)" />
|
|
76
|
+
{{ typeLabel }}
|
|
77
|
+
{{ t('cron.everyInterval') }}
|
|
78
|
+
<el-input-number v-model="data.stepValue" :min="1" :max="max" size="small" style="width:80px" @change="val => updateData('stepValue', val)" />
|
|
79
|
+
{{ typeLabel }}
|
|
80
|
+
</span>
|
|
81
|
+
</div>
|
|
82
|
+
<div class="avue-input-cron__option">
|
|
83
|
+
<el-radio label="specify">{{ t('cron.specify') }}</el-radio>
|
|
84
|
+
</div>
|
|
85
|
+
</el-radio-group>
|
|
86
|
+
<div v-if="data.type === 'specify'" class="avue-input-cron__specify">
|
|
87
87
|
<el-checkbox-group :model-value="data.values" @update:model-value="val => updateData('values', val)">
|
|
88
88
|
<el-checkbox v-for="opt in options" :key="opt.value" :label="opt.value">{{ opt.label }}</el-checkbox>
|
|
89
89
|
</el-checkbox-group>
|
|
@@ -92,13 +92,13 @@ const CronTab = {
|
|
|
92
92
|
`
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
var script = src_core_create.default({
|
|
96
|
-
name: "input-cron",
|
|
97
|
-
components: { CronTab },
|
|
98
|
-
mixins: [packages_core_common_props.default(), packages_core_common_event.default(), src_core_locale.default],
|
|
99
|
-
props: {
|
|
100
|
-
prefixIcon: String,
|
|
101
|
-
suffixIcon: String,
|
|
95
|
+
var script = src_core_create.default({
|
|
96
|
+
name: "input-cron",
|
|
97
|
+
components: { CronTab },
|
|
98
|
+
mixins: [packages_core_common_props.default(), packages_core_common_event.default(), src_core_locale.default],
|
|
99
|
+
props: {
|
|
100
|
+
prefixIcon: String,
|
|
101
|
+
suffixIcon: String,
|
|
102
102
|
dialogWidth: { type: String, default: '700px' }
|
|
103
103
|
},
|
|
104
104
|
data() {
|
|
@@ -223,10 +223,10 @@ var script = src_core_create.default({
|
|
|
223
223
|
},
|
|
224
224
|
calculateNextTimes(cron, count) {
|
|
225
225
|
if (!cron) return [];
|
|
226
|
-
try {
|
|
227
|
-
const times = [];
|
|
228
|
-
const parts = cron.split(/\s+/);
|
|
229
|
-
if (parts.length < 6) return [this.t('cron.invalidFormat')];
|
|
226
|
+
try {
|
|
227
|
+
const times = [];
|
|
228
|
+
const parts = cron.split(/\s+/);
|
|
229
|
+
if (parts.length < 6) return [this.t('cron.invalidFormat')];
|
|
230
230
|
|
|
231
231
|
let current = new Date();
|
|
232
232
|
for (let i = 0; i < count && times.length < count; i++) {
|
|
@@ -237,11 +237,11 @@ var script = src_core_create.default({
|
|
|
237
237
|
} else {
|
|
238
238
|
break;
|
|
239
239
|
}
|
|
240
|
-
}
|
|
241
|
-
return times.length > 0 ? times : [this.t('cron.noNextTimes')];
|
|
242
|
-
} catch (e) {
|
|
243
|
-
return [this.t('cron.parseError')];
|
|
244
|
-
}
|
|
240
|
+
}
|
|
241
|
+
return times.length > 0 ? times : [this.t('cron.noNextTimes')];
|
|
242
|
+
} catch (e) {
|
|
243
|
+
return [this.t('cron.parseError')];
|
|
244
|
+
}
|
|
245
245
|
},
|
|
246
246
|
getNextTime(date, parts) {
|
|
247
247
|
// 简化的下次执行时间计算
|