@fecp/designer 5.4.107 → 5.4.108
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/es/_virtual/index2.mjs +2 -5
- package/es/designer/package.json.mjs +1 -1
- package/es/node_modules/@vxe-ui/core/es/index.esm.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/clipboard.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/commands.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/config.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/event.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/formats.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/i18n.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/icon.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/interceptor.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/menus.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/permission.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/renderer.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/resize.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/store.mjs +1 -2
- package/es/node_modules/@vxe-ui/core/es/src/vm.mjs +1 -2
- package/es/node_modules/crypto-js/index.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/alert/src/alert.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/anchor/src/anchor-link.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/anchor/src/anchor.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/anchor/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/avatar/src/avatar.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/backtop/src/backtop.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/badge/src/badge.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/breadcrumb/src/breadcrumb-item.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/breadcrumb/src/breadcrumb.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/button/src/button-group.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/button/src/button.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/calendar/src/calendar.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/card/src/card.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/carousel/src/carousel-item.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/carousel/src/carousel.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/carousel/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/cascader/src/cascader.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/checkbox/src/button.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/checkbox/src/checkbox.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/checkbox/src/group.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/collapse/src/collapse-pane.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/collapse/src/collapse.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/collapse/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/color-picker/src/color-picker.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/color-picker/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/context-menu/src/context-menu.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/countdown/src/countdown.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/date-panel/src/date-panel.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/date-panel/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/date-picker/src/date-picker.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/date-range-picker/src/date-range-picker.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/drawer/index.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/drawer/src/drawer.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/empty/src/empty.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/form/render/index.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/form/src/form-config-item.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/form/src/form-group.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/form/src/form-item.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/form/src/form.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/form/src/itemInfo.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/form/src/render.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/form/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/icon/src/icon.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/icon-picker/src/icon-picker.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/image/src/group.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/image/src/image.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/image/src/preview.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/image/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/input/src/input.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/layout-aside/src/layout-aside.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/layout-body/src/layout-body.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/layout-container/src/layout-container.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/layout-footer/src/layout-footer.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/layout-header/src/layout-header.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/link/src/link.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/list/src/list.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/loading/src/loading.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/menu/src/menu.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/modal/index.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/modal/src/modal.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/notice-bar/src/notice-bar.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/number-input/src/number-input.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/number-input/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/pager/src/pager.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/password-input/src/password-input.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/print/src/page-break.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/print/src/print.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/print/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/pulldown/src/pulldown.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/radio/src/button.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/radio/src/group.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/radio/src/radio.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/rate/src/rate.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/result/src/result.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/row/src/col.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/row/src/row.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/segmented/src/segmented.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/select/src/option-info.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/select/src/select.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/select/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/slider/src/slider.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/splitter/src/splitter-panel.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/splitter/src/splitter.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/splitter/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/steps/src/steps.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/switch/src/switch.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/table-select/src/table-select.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/tabs/src/tab-pane.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/tabs/src/tabs.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/tabs/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/tag/src/tag.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/text/src/text.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/text-ellipsis/src/text-ellipsis.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/textarea/src/textarea.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/timeline/src/timeline-item.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/timeline/src/timeline.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/tip/src/tip.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/tooltip/src/tooltip.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/tour/src/tour.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/tree/src/tree.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/tree/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/tree-select/src/tree-select.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/ui/src/anime.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/ui/src/dom.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/ui/src/utils.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/ui/src/vn.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/upload/src/upload.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/upload/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/watermark/src/util.mjs +1 -1
- package/es/node_modules/vxe-pc-ui/es/watermark/src/watermark.mjs +1 -1
- package/es/packages/mobile/src/components/dataDisplay/table/Table.vue.mjs +1 -2
- package/es/packages/mobile/src/components/form/field/Field.vue.mjs +1 -1
- package/es/packages/mobile/src/utils/formatterUtil.mjs +1 -1
- package/es/packages/mobile/src/utils/optionUtil.mjs +1 -1
- package/es/packages/vue/src/components/table/CustomButtons.vue.mjs +1 -2
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +1 -2
- package/es/packages/vue/src/components/table/Table.vue.mjs +2 -3
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +1 -2
- package/lib/_virtual/index2.js +3 -6
- package/lib/designer/package.json.js +1 -1
- package/lib/node_modules/@vxe-ui/core/es/index.esm.js +4 -5
- package/lib/node_modules/@vxe-ui/core/es/src/clipboard.js +2 -3
- package/lib/node_modules/@vxe-ui/core/es/src/commands.js +7 -8
- package/lib/node_modules/@vxe-ui/core/es/src/config.js +3 -4
- package/lib/node_modules/@vxe-ui/core/es/src/event.js +6 -7
- package/lib/node_modules/@vxe-ui/core/es/src/formats.js +7 -8
- package/lib/node_modules/@vxe-ui/core/es/src/i18n.js +2 -3
- package/lib/node_modules/@vxe-ui/core/es/src/icon.js +3 -4
- package/lib/node_modules/@vxe-ui/core/es/src/interceptor.js +5 -6
- package/lib/node_modules/@vxe-ui/core/es/src/menus.js +7 -8
- package/lib/node_modules/@vxe-ui/core/es/src/permission.js +2 -3
- package/lib/node_modules/@vxe-ui/core/es/src/renderer.js +5 -6
- package/lib/node_modules/@vxe-ui/core/es/src/resize.js +3 -4
- package/lib/node_modules/@vxe-ui/core/es/src/store.js +6 -7
- package/lib/node_modules/@vxe-ui/core/es/src/vm.js +2 -3
- package/lib/node_modules/crypto-js/index.js +1 -1
- package/lib/node_modules/vxe-pc-ui/es/alert/src/alert.js +4 -4
- package/lib/node_modules/vxe-pc-ui/es/anchor/src/anchor-link.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/anchor/src/anchor.js +6 -6
- package/lib/node_modules/vxe-pc-ui/es/anchor/src/util.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/avatar/src/avatar.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/backtop/src/backtop.js +9 -9
- package/lib/node_modules/vxe-pc-ui/es/badge/src/badge.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/breadcrumb/src/breadcrumb-item.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/breadcrumb/src/breadcrumb.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/button/src/button-group.js +5 -5
- package/lib/node_modules/vxe-pc-ui/es/button/src/button.js +15 -15
- package/lib/node_modules/vxe-pc-ui/es/calendar/src/calendar.js +80 -80
- package/lib/node_modules/vxe-pc-ui/es/card/src/card.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/carousel/src/carousel-item.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/carousel/src/carousel.js +12 -12
- package/lib/node_modules/vxe-pc-ui/es/carousel/src/util.js +5 -5
- package/lib/node_modules/vxe-pc-ui/es/cascader/src/cascader.js +16 -16
- package/lib/node_modules/vxe-pc-ui/es/checkbox/src/button.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/checkbox/src/checkbox.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/checkbox/src/group.js +7 -7
- package/lib/node_modules/vxe-pc-ui/es/collapse/src/collapse-pane.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/collapse/src/collapse.js +4 -4
- package/lib/node_modules/vxe-pc-ui/es/collapse/src/util.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/color-picker/src/color-picker.js +15 -15
- package/lib/node_modules/vxe-pc-ui/es/color-picker/src/util.js +4 -4
- package/lib/node_modules/vxe-pc-ui/es/context-menu/src/context-menu.js +13 -13
- package/lib/node_modules/vxe-pc-ui/es/countdown/src/countdown.js +9 -9
- package/lib/node_modules/vxe-pc-ui/es/date-panel/src/date-panel.js +120 -120
- package/lib/node_modules/vxe-pc-ui/es/date-panel/src/util.js +29 -29
- package/lib/node_modules/vxe-pc-ui/es/date-picker/src/date-picker.js +15 -15
- package/lib/node_modules/vxe-pc-ui/es/date-range-picker/src/date-range-picker.js +17 -17
- package/lib/node_modules/vxe-pc-ui/es/drawer/index.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/drawer/src/drawer.js +8 -8
- package/lib/node_modules/vxe-pc-ui/es/empty/src/empty.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/form/render/index.js +31 -31
- package/lib/node_modules/vxe-pc-ui/es/form/src/form-config-item.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/form/src/form-group.js +4 -4
- package/lib/node_modules/vxe-pc-ui/es/form/src/form-item.js +4 -4
- package/lib/node_modules/vxe-pc-ui/es/form/src/form.js +43 -43
- package/lib/node_modules/vxe-pc-ui/es/form/src/itemInfo.js +4 -4
- package/lib/node_modules/vxe-pc-ui/es/form/src/render.js +25 -25
- package/lib/node_modules/vxe-pc-ui/es/form/src/util.js +6 -6
- package/lib/node_modules/vxe-pc-ui/es/icon/src/icon.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/icon-picker/src/icon-picker.js +8 -8
- package/lib/node_modules/vxe-pc-ui/es/image/src/group.js +7 -7
- package/lib/node_modules/vxe-pc-ui/es/image/src/image.js +7 -7
- package/lib/node_modules/vxe-pc-ui/es/image/src/preview.js +9 -9
- package/lib/node_modules/vxe-pc-ui/es/image/src/util.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/input/src/input.js +146 -146
- package/lib/node_modules/vxe-pc-ui/es/layout-aside/src/layout-aside.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/layout-body/src/layout-body.js +6 -6
- package/lib/node_modules/vxe-pc-ui/es/layout-container/src/layout-container.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/layout-footer/src/layout-footer.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/layout-header/src/layout-header.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/link/src/link.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/list/src/list.js +12 -12
- package/lib/node_modules/vxe-pc-ui/es/loading/src/loading.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/menu/src/menu.js +10 -10
- package/lib/node_modules/vxe-pc-ui/es/modal/index.js +5 -5
- package/lib/node_modules/vxe-pc-ui/es/modal/src/modal.js +36 -36
- package/lib/node_modules/vxe-pc-ui/es/notice-bar/src/notice-bar.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/number-input/src/number-input.js +30 -30
- package/lib/node_modules/vxe-pc-ui/es/number-input/src/util.js +4 -4
- package/lib/node_modules/vxe-pc-ui/es/pager/src/pager.js +13 -13
- package/lib/node_modules/vxe-pc-ui/es/password-input/src/password-input.js +5 -5
- package/lib/node_modules/vxe-pc-ui/es/print/src/page-break.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/print/src/print.js +13 -13
- package/lib/node_modules/vxe-pc-ui/es/print/src/util.js +11 -11
- package/lib/node_modules/vxe-pc-ui/es/pulldown/src/pulldown.js +7 -7
- package/lib/node_modules/vxe-pc-ui/es/radio/src/button.js +6 -6
- package/lib/node_modules/vxe-pc-ui/es/radio/src/group.js +7 -7
- package/lib/node_modules/vxe-pc-ui/es/radio/src/radio.js +6 -6
- package/lib/node_modules/vxe-pc-ui/es/rate/src/rate.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/result/src/result.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/row/src/col.js +5 -5
- package/lib/node_modules/vxe-pc-ui/es/row/src/row.js +5 -5
- package/lib/node_modules/vxe-pc-ui/es/segmented/src/segmented.js +6 -6
- package/lib/node_modules/vxe-pc-ui/es/select/src/option-info.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/select/src/select.js +27 -27
- package/lib/node_modules/vxe-pc-ui/es/select/src/util.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/slider/src/slider.js +14 -14
- package/lib/node_modules/vxe-pc-ui/es/splitter/src/splitter-panel.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/splitter/src/splitter.js +28 -28
- package/lib/node_modules/vxe-pc-ui/es/splitter/src/util.js +5 -5
- package/lib/node_modules/vxe-pc-ui/es/steps/src/steps.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/switch/src/switch.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/table-select/src/table-select.js +18 -18
- package/lib/node_modules/vxe-pc-ui/es/tabs/src/tab-pane.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/tabs/src/tabs.js +22 -22
- package/lib/node_modules/vxe-pc-ui/es/tabs/src/util.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/tag/src/tag.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/text/src/text.js +3 -3
- package/lib/node_modules/vxe-pc-ui/es/text-ellipsis/src/text-ellipsis.js +7 -7
- package/lib/node_modules/vxe-pc-ui/es/textarea/src/textarea.js +12 -12
- package/lib/node_modules/vxe-pc-ui/es/timeline/src/timeline-item.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/timeline/src/timeline.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/tip/src/tip.js +4 -4
- package/lib/node_modules/vxe-pc-ui/es/tooltip/src/tooltip.js +9 -9
- package/lib/node_modules/vxe-pc-ui/es/tour/src/tour.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/tree/src/tree.js +61 -61
- package/lib/node_modules/vxe-pc-ui/es/tree/src/util.js +4 -4
- package/lib/node_modules/vxe-pc-ui/es/tree-select/src/tree-select.js +27 -27
- package/lib/node_modules/vxe-pc-ui/es/ui/src/anime.js +4 -4
- package/lib/node_modules/vxe-pc-ui/es/ui/src/dom.js +9 -9
- package/lib/node_modules/vxe-pc-ui/es/ui/src/utils.js +4 -4
- package/lib/node_modules/vxe-pc-ui/es/ui/src/vn.js +2 -2
- package/lib/node_modules/vxe-pc-ui/es/upload/src/upload.js +63 -63
- package/lib/node_modules/vxe-pc-ui/es/upload/src/util.js +4 -4
- package/lib/node_modules/vxe-pc-ui/es/watermark/src/util.js +11 -11
- package/lib/node_modules/vxe-pc-ui/es/watermark/src/watermark.js +5 -5
- package/lib/packages/mobile/src/components/dataDisplay/table/Table.vue.js +2 -3
- package/lib/packages/mobile/src/components/form/field/Field.vue.js +1 -1
- package/lib/packages/mobile/src/utils/formatterUtil.js +21 -21
- package/lib/packages/mobile/src/utils/optionUtil.js +5 -5
- package/lib/packages/vue/src/components/table/CustomButtons.vue.js +4 -5
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +26 -27
- package/lib/packages/vue/src/components/table/Table.vue.js +8 -9
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +16 -17
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const comp = require("../../ui/src/comp.js");
|
|
5
|
-
const
|
|
5
|
+
const XEUtils = require("xe-utils");
|
|
6
6
|
require("../../ui/index.js");
|
|
7
7
|
const utils = require("../../ui/src/utils.js");
|
|
8
8
|
const dom = require("../../ui/src/dom.js");
|
|
@@ -176,7 +176,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
176
176
|
const $xeTable = vue.inject("$xeTable", null);
|
|
177
177
|
const $xeForm = vue.inject("$xeForm", null);
|
|
178
178
|
const formItemInfo = vue.inject("xeFormItemInfo", null);
|
|
179
|
-
const xID =
|
|
179
|
+
const xID = XEUtils.uniqueId();
|
|
180
180
|
const { computeSize } = useFns.useSize(props);
|
|
181
181
|
const reactData = vue.reactive({
|
|
182
182
|
initialized: false,
|
|
@@ -225,13 +225,13 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
225
225
|
if (type === "time") {
|
|
226
226
|
return util.toStringTimeDate(value);
|
|
227
227
|
}
|
|
228
|
-
return
|
|
228
|
+
return XEUtils.toStringDate(value, format);
|
|
229
229
|
};
|
|
230
230
|
const computeBtnTransfer = vue.computed(() => {
|
|
231
231
|
const { transfer } = props;
|
|
232
232
|
if (transfer === null) {
|
|
233
233
|
const globalTransfer = config.getConfig().input.transfer;
|
|
234
|
-
if (
|
|
234
|
+
if (XEUtils.isBoolean(globalTransfer)) {
|
|
235
235
|
return globalTransfer;
|
|
236
236
|
}
|
|
237
237
|
if ($xeTable || $xeModal || $xeDrawer || $xeForm) {
|
|
@@ -271,7 +271,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
271
271
|
const maxLen = maxLength || maxlength;
|
|
272
272
|
const isNumType = computeIsNumType.value;
|
|
273
273
|
if (isNumType) {
|
|
274
|
-
if (!
|
|
274
|
+
if (!XEUtils.toNumber(maxLen)) {
|
|
275
275
|
return 16;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
@@ -285,12 +285,12 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
285
285
|
return ["number", "integer", "float"].indexOf(props.type) > -1;
|
|
286
286
|
});
|
|
287
287
|
const computeInputCount = vue.computed(() => {
|
|
288
|
-
return
|
|
288
|
+
return XEUtils.getSize(reactData.inputValue);
|
|
289
289
|
});
|
|
290
290
|
const computeIsCountError = vue.computed(() => {
|
|
291
291
|
const inputCount = computeInputCount.value;
|
|
292
292
|
const inpMaxLength = computeInpMaxLength.value;
|
|
293
|
-
return inpMaxLength && inputCount >
|
|
293
|
+
return inpMaxLength && inputCount > XEUtils.toNumber(inpMaxLength);
|
|
294
294
|
});
|
|
295
295
|
const computeIsDatePickerType = vue.computed(() => {
|
|
296
296
|
const isDateTimeType = computeIsDateTimeType.value;
|
|
@@ -303,18 +303,18 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
303
303
|
return props.type === "search";
|
|
304
304
|
});
|
|
305
305
|
const computeDigitsValue = vue.computed(() => {
|
|
306
|
-
return
|
|
306
|
+
return XEUtils.toInteger(props.digits) || 1;
|
|
307
307
|
});
|
|
308
308
|
const computeStepValue = vue.computed(() => {
|
|
309
309
|
const { type } = props;
|
|
310
310
|
const digitsValue = computeDigitsValue.value;
|
|
311
311
|
const step = props.step;
|
|
312
312
|
if (type === "integer") {
|
|
313
|
-
return
|
|
313
|
+
return XEUtils.toInteger(step) || 1;
|
|
314
314
|
} else if (type === "float") {
|
|
315
|
-
return
|
|
315
|
+
return XEUtils.toNumber(step) || 1 / Math.pow(10, digitsValue);
|
|
316
316
|
}
|
|
317
|
-
return
|
|
317
|
+
return XEUtils.toNumber(step) || 1;
|
|
318
318
|
});
|
|
319
319
|
const computeIsClearable = vue.computed(() => {
|
|
320
320
|
const { type } = props;
|
|
@@ -324,10 +324,10 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
324
324
|
return props.clearable && (isPawdType || isNumType || isDatePickerType || type === "text" || type === "search");
|
|
325
325
|
});
|
|
326
326
|
const computeDateStartTime = vue.computed(() => {
|
|
327
|
-
return props.startDate ?
|
|
327
|
+
return props.startDate ? XEUtils.toStringDate(props.startDate) : null;
|
|
328
328
|
});
|
|
329
329
|
const computeDateEndTime = vue.computed(() => {
|
|
330
|
-
return props.endDate ?
|
|
330
|
+
return props.endDate ? XEUtils.toStringDate(props.endDate) : null;
|
|
331
331
|
});
|
|
332
332
|
const computeSupportMultiples = vue.computed(() => {
|
|
333
333
|
return ["date", "week", "month", "quarter", "year"].indexOf(props.type) > -1;
|
|
@@ -337,9 +337,9 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
337
337
|
const isDatePickerType = computeIsDatePickerType.value;
|
|
338
338
|
const dateValueFormat = computeDateValueFormat.value;
|
|
339
339
|
if (multiple && modelValue && isDatePickerType) {
|
|
340
|
-
return
|
|
340
|
+
return XEUtils.toValueString(modelValue).split(",").map((item) => {
|
|
341
341
|
const date = parseDate(item, dateValueFormat);
|
|
342
|
-
if (
|
|
342
|
+
if (XEUtils.isValidDate(date)) {
|
|
343
343
|
return date;
|
|
344
344
|
}
|
|
345
345
|
return null;
|
|
@@ -350,12 +350,12 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
350
350
|
const computeDateMultipleValue = vue.computed(() => {
|
|
351
351
|
const dateListValue = computeDateListValue.value;
|
|
352
352
|
const dateValueFormat = computeDateValueFormat.value;
|
|
353
|
-
return dateListValue.map((date) =>
|
|
353
|
+
return dateListValue.map((date) => XEUtils.toDateString(date, dateValueFormat));
|
|
354
354
|
});
|
|
355
355
|
const computeDateMultipleLabel = vue.computed(() => {
|
|
356
356
|
const dateListValue = computeDateListValue.value;
|
|
357
357
|
const dateLabelFormat = computeDateLabelFormat.value;
|
|
358
|
-
return dateListValue.map((date) =>
|
|
358
|
+
return dateListValue.map((date) => XEUtils.toDateString(date, dateLabelFormat)).join(", ");
|
|
359
359
|
});
|
|
360
360
|
const computeDateValueFormat = vue.computed(() => {
|
|
361
361
|
const { type, valueFormat } = props;
|
|
@@ -377,7 +377,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
377
377
|
let val = null;
|
|
378
378
|
if (modelValue && isDatePickerType) {
|
|
379
379
|
const date = parseDate(modelValue, dateValueFormat);
|
|
380
|
-
if (
|
|
380
|
+
if (XEUtils.isValidDate(date)) {
|
|
381
381
|
val = date;
|
|
382
382
|
}
|
|
383
383
|
}
|
|
@@ -403,7 +403,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
403
403
|
const { datetimePanelValue } = reactData;
|
|
404
404
|
const hasTimeSecond = computeHasTimeSecond.value;
|
|
405
405
|
if (datetimePanelValue) {
|
|
406
|
-
return
|
|
406
|
+
return XEUtils.toDateString(datetimePanelValue, hasTimeSecond ? "HH:mm:ss" : "HH:mm");
|
|
407
407
|
}
|
|
408
408
|
return "";
|
|
409
409
|
});
|
|
@@ -428,15 +428,15 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
428
428
|
const currFullYear = currentDate.getFullYear();
|
|
429
429
|
const selectFullYear = selectMonth.getFullYear();
|
|
430
430
|
const startYearDate = new Date(selectFullYear - selectFullYear % yearSize, 0, 1);
|
|
431
|
-
for (let index
|
|
432
|
-
const date =
|
|
431
|
+
for (let index = -4; index < yearSize + 4; index++) {
|
|
432
|
+
const date = XEUtils.getWhatYear(startYearDate, index, "first");
|
|
433
433
|
const itemFullYear = date.getFullYear();
|
|
434
434
|
years.push({
|
|
435
435
|
date,
|
|
436
436
|
isCurrent: true,
|
|
437
|
-
isPrev: index
|
|
437
|
+
isPrev: index < 0,
|
|
438
438
|
isNow: currFullYear === itemFullYear,
|
|
439
|
-
isNext: index
|
|
439
|
+
isNext: index >= yearSize,
|
|
440
440
|
year: itemFullYear
|
|
441
441
|
});
|
|
442
442
|
}
|
|
@@ -472,7 +472,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
472
472
|
});
|
|
473
473
|
const computeFirstDayOfWeek = vue.computed(() => {
|
|
474
474
|
const { startDay, startWeek } = props;
|
|
475
|
-
return
|
|
475
|
+
return XEUtils.toNumber(XEUtils.isNumber(startDay) || XEUtils.isString(startDay) ? startDay : startWeek);
|
|
476
476
|
});
|
|
477
477
|
const computeWeekDatas = vue.computed(() => {
|
|
478
478
|
const weeks = [];
|
|
@@ -480,7 +480,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
480
480
|
if (isDatePickerType) {
|
|
481
481
|
let sWeek = computeFirstDayOfWeek.value;
|
|
482
482
|
weeks.push(sWeek);
|
|
483
|
-
for (let
|
|
483
|
+
for (let index = 0; index < 6; index++) {
|
|
484
484
|
if (sWeek >= 6) {
|
|
485
485
|
sWeek = 0;
|
|
486
486
|
} else {
|
|
@@ -514,7 +514,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
514
514
|
});
|
|
515
515
|
const computeYearDatas = vue.computed(() => {
|
|
516
516
|
const yearList = computeYearList.value;
|
|
517
|
-
return
|
|
517
|
+
return XEUtils.chunk(yearList, 4);
|
|
518
518
|
});
|
|
519
519
|
const computeQuarterList = vue.computed(() => {
|
|
520
520
|
const { selectMonth, currentDate } = reactData;
|
|
@@ -523,10 +523,10 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
523
523
|
if (selectMonth && currentDate) {
|
|
524
524
|
const currFullYear = currentDate.getFullYear();
|
|
525
525
|
const currQuarter = util.getDateQuarter(currentDate);
|
|
526
|
-
const firstYear =
|
|
526
|
+
const firstYear = XEUtils.getWhatYear(selectMonth, 0, "first");
|
|
527
527
|
const selFullYear = firstYear.getFullYear();
|
|
528
|
-
for (let index
|
|
529
|
-
const date =
|
|
528
|
+
for (let index = -2; index < quarterSize - 2; index++) {
|
|
529
|
+
const date = XEUtils.getWhatQuarter(firstYear, index);
|
|
530
530
|
const itemFullYear = date.getFullYear();
|
|
531
531
|
const itemQuarter = util.getDateQuarter(date);
|
|
532
532
|
const isPrev = itemFullYear < selFullYear;
|
|
@@ -544,7 +544,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
544
544
|
});
|
|
545
545
|
const computeQuarterDatas = vue.computed(() => {
|
|
546
546
|
const quarterList = computeQuarterList.value;
|
|
547
|
-
return
|
|
547
|
+
return XEUtils.chunk(quarterList, 2);
|
|
548
548
|
});
|
|
549
549
|
const computeMonthList = vue.computed(() => {
|
|
550
550
|
const { selectMonth, currentDate } = reactData;
|
|
@@ -553,9 +553,9 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
553
553
|
if (selectMonth && currentDate) {
|
|
554
554
|
const currFullYear = currentDate.getFullYear();
|
|
555
555
|
const currMonth = currentDate.getMonth();
|
|
556
|
-
const selFullYear =
|
|
557
|
-
for (let index
|
|
558
|
-
const date =
|
|
556
|
+
const selFullYear = XEUtils.getWhatYear(selectMonth, 0, "first").getFullYear();
|
|
557
|
+
for (let index = -4; index < monthSize - 4; index++) {
|
|
558
|
+
const date = XEUtils.getWhatYear(selectMonth, 0, index);
|
|
559
559
|
const itemFullYear = date.getFullYear();
|
|
560
560
|
const itemMonth = date.getMonth();
|
|
561
561
|
const isPrev = itemFullYear < selFullYear;
|
|
@@ -573,7 +573,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
573
573
|
});
|
|
574
574
|
const computeMonthDatas = vue.computed(() => {
|
|
575
575
|
const monthList = computeMonthList.value;
|
|
576
|
-
return
|
|
576
|
+
return XEUtils.chunk(monthList, 4);
|
|
577
577
|
});
|
|
578
578
|
const computeDayList = vue.computed(() => {
|
|
579
579
|
const { selectMonth, currentDate } = reactData;
|
|
@@ -588,9 +588,9 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
588
588
|
const selMonth = selectMonth.getMonth();
|
|
589
589
|
const selDay = selectMonth.getDay();
|
|
590
590
|
const prevOffsetDate = -weekDatas.indexOf(selDay);
|
|
591
|
-
const startDayDate = new Date(
|
|
592
|
-
for (let index
|
|
593
|
-
const date =
|
|
591
|
+
const startDayDate = new Date(XEUtils.getWhatDay(selectMonth, prevOffsetDate).getTime() + dateHMSTime);
|
|
592
|
+
for (let index = 0; index < 42; index++) {
|
|
593
|
+
const date = XEUtils.getWhatDay(startDayDate, index);
|
|
594
594
|
const itemFullYear = date.getFullYear();
|
|
595
595
|
const itemMonth = date.getMonth();
|
|
596
596
|
const itemDate = date.getDate();
|
|
@@ -609,7 +609,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
609
609
|
});
|
|
610
610
|
const computeDayDatas = vue.computed(() => {
|
|
611
611
|
const dayList = computeDayList.value;
|
|
612
|
-
return
|
|
612
|
+
return XEUtils.chunk(dayList, 7);
|
|
613
613
|
});
|
|
614
614
|
const computeWeekDates = vue.computed(() => {
|
|
615
615
|
const dayDatas = computeDayDatas.value;
|
|
@@ -623,7 +623,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
623
623
|
isCurrent: false,
|
|
624
624
|
isNow: false,
|
|
625
625
|
isNext: false,
|
|
626
|
-
label:
|
|
626
|
+
label: XEUtils.getYearWeek(firstItem.date, firstDayOfWeek)
|
|
627
627
|
};
|
|
628
628
|
return [item].concat(list);
|
|
629
629
|
});
|
|
@@ -632,10 +632,10 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
632
632
|
const list = [];
|
|
633
633
|
const isDateTimeType = computeIsDateTimeType.value;
|
|
634
634
|
if (isDateTimeType) {
|
|
635
|
-
for (let
|
|
635
|
+
for (let index = 0; index < 24; index++) {
|
|
636
636
|
list.push({
|
|
637
|
-
value:
|
|
638
|
-
label: ("" +
|
|
637
|
+
value: index,
|
|
638
|
+
label: ("" + index).padStart(2, "0"),
|
|
639
639
|
disabled: false
|
|
640
640
|
});
|
|
641
641
|
}
|
|
@@ -646,10 +646,10 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
646
646
|
const list = [];
|
|
647
647
|
const isDateTimeType = computeIsDateTimeType.value;
|
|
648
648
|
if (isDateTimeType) {
|
|
649
|
-
for (let
|
|
649
|
+
for (let index = 0; index < 60; index++) {
|
|
650
650
|
list.push({
|
|
651
|
-
value:
|
|
652
|
-
label: ("" +
|
|
651
|
+
value: index,
|
|
652
|
+
label: ("" + index).padStart(2, "0"),
|
|
653
653
|
disabled: false
|
|
654
654
|
});
|
|
655
655
|
}
|
|
@@ -688,7 +688,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
688
688
|
if (placeholder) {
|
|
689
689
|
return utils.getFuncText(placeholder);
|
|
690
690
|
}
|
|
691
|
-
if (
|
|
691
|
+
if (XEUtils.eqNull(placeholder)) {
|
|
692
692
|
const globalPlaceholder = config.getConfig().input.placeholder;
|
|
693
693
|
if (globalPlaceholder) {
|
|
694
694
|
return utils.getFuncText(globalPlaceholder);
|
|
@@ -706,7 +706,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
706
706
|
const { inputValue } = reactData;
|
|
707
707
|
const isNumType = computeIsNumType.value;
|
|
708
708
|
if (isNumType) {
|
|
709
|
-
return type === "integer" ?
|
|
709
|
+
return type === "integer" ? XEUtils.toInteger(util$1.handleNumber(inputValue)) : XEUtils.toNumber(util$1.handleNumber(inputValue));
|
|
710
710
|
}
|
|
711
711
|
return 0;
|
|
712
712
|
});
|
|
@@ -716,7 +716,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
716
716
|
const isNumType = computeIsNumType.value;
|
|
717
717
|
const numValue = computeNumValue.value;
|
|
718
718
|
if ((inputValue || inputValue === 0) && isNumType && min !== null) {
|
|
719
|
-
return numValue <=
|
|
719
|
+
return numValue <= XEUtils.toNumber(min);
|
|
720
720
|
}
|
|
721
721
|
return false;
|
|
722
722
|
});
|
|
@@ -726,7 +726,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
726
726
|
const isNumType = computeIsNumType.value;
|
|
727
727
|
const numValue = computeNumValue.value;
|
|
728
728
|
if ((inputValue || inputValue === 0) && isNumType && max !== null) {
|
|
729
|
-
return numValue >=
|
|
729
|
+
return numValue >= XEUtils.toNumber(max);
|
|
730
730
|
}
|
|
731
731
|
return false;
|
|
732
732
|
});
|
|
@@ -734,8 +734,8 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
734
734
|
const { type, exponential } = props;
|
|
735
735
|
const inpMaxLength = computeInpMaxLength.value;
|
|
736
736
|
const digitsValue = computeDigitsValue.value;
|
|
737
|
-
const restVal = type === "float" ? util$1.toFloatValueFixed(val, digitsValue) :
|
|
738
|
-
if (exponential && (val === restVal ||
|
|
737
|
+
const restVal = type === "float" ? util$1.toFloatValueFixed(val, digitsValue) : XEUtils.toValueString(val);
|
|
738
|
+
if (exponential && (val === restVal || XEUtils.toValueString(val).toLowerCase() === XEUtils.toNumber(restVal).toExponential())) {
|
|
739
739
|
return val;
|
|
740
740
|
}
|
|
741
741
|
return restVal.slice(0, inpMaxLength);
|
|
@@ -754,7 +754,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
754
754
|
reactData.inputValue = value;
|
|
755
755
|
emitModel(value);
|
|
756
756
|
inputMethods.dispatchEvent("input", { value }, evnt);
|
|
757
|
-
if (
|
|
757
|
+
if (XEUtils.toValueString(props.modelValue) !== value) {
|
|
758
758
|
inputMethods.dispatchEvent("change", { value }, evnt);
|
|
759
759
|
if (!$xeSelect && !$xeTreeSelect) {
|
|
760
760
|
if ($xeForm && formItemInfo) {
|
|
@@ -811,7 +811,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
811
811
|
const isDatePickerType = computeIsDatePickerType.value;
|
|
812
812
|
reactData.isActivated = true;
|
|
813
813
|
if (isNumType) {
|
|
814
|
-
reactData.inputValue = utils.eqEmptyValue(inputValue) ? "" : `${
|
|
814
|
+
reactData.inputValue = utils.eqEmptyValue(inputValue) ? "" : `${XEUtils.toNumber(inputValue)}`;
|
|
815
815
|
} else if (isDatePickerType) {
|
|
816
816
|
datePickerOpenEvent(evnt);
|
|
817
817
|
}
|
|
@@ -866,11 +866,11 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
866
866
|
if (value) {
|
|
867
867
|
dValue = parseDate(value, dateValueFormat);
|
|
868
868
|
}
|
|
869
|
-
if (
|
|
870
|
-
dLabel =
|
|
869
|
+
if (XEUtils.isValidDate(dValue)) {
|
|
870
|
+
dLabel = XEUtils.toDateString(dValue, dateLabelFormat, { firstDay: firstDayOfWeek });
|
|
871
871
|
if (dateLabelFormat && type === "week") {
|
|
872
|
-
const weekNum =
|
|
873
|
-
const weekDate =
|
|
872
|
+
const weekNum = XEUtils.getYearWeek(dValue, firstDayOfWeek);
|
|
873
|
+
const weekDate = XEUtils.getWhatWeek(dValue, 0, weekNum === 1 ? (6 + firstDayOfWeek) % 7 : firstDayOfWeek, firstDayOfWeek);
|
|
874
874
|
const weekFullYear = weekDate.getFullYear();
|
|
875
875
|
if (weekFullYear !== dValue.getFullYear()) {
|
|
876
876
|
const yyIndex = dateLabelFormat.indexOf("yyyy");
|
|
@@ -913,20 +913,20 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
913
913
|
}
|
|
914
914
|
};
|
|
915
915
|
const validMaxNum = (num) => {
|
|
916
|
-
return props.max === null || props.max === "" ||
|
|
916
|
+
return props.max === null || props.max === "" || XEUtils.toNumber(num) <= XEUtils.toNumber(props.max);
|
|
917
917
|
};
|
|
918
918
|
const validMinNum = (num) => {
|
|
919
|
-
return props.min === null || props.min === "" ||
|
|
919
|
+
return props.min === null || props.min === "" || XEUtils.toNumber(num) >= XEUtils.toNumber(props.min);
|
|
920
920
|
};
|
|
921
921
|
const dateRevert = () => {
|
|
922
922
|
reactData.inputValue = props.multiple ? computeDateMultipleLabel.value : reactData.datePanelLabel;
|
|
923
923
|
};
|
|
924
924
|
const dateCheckMonth = (date) => {
|
|
925
925
|
const firstDayOfWeek = computeFirstDayOfWeek.value;
|
|
926
|
-
const weekNum =
|
|
927
|
-
const weekStartDate =
|
|
928
|
-
const month =
|
|
929
|
-
if (!
|
|
926
|
+
const weekNum = XEUtils.getYearWeek(date, firstDayOfWeek);
|
|
927
|
+
const weekStartDate = XEUtils.getWhatWeek(date, 0, firstDayOfWeek, firstDayOfWeek);
|
|
928
|
+
const month = XEUtils.getWhatMonth(weekNum === 1 ? XEUtils.getWhatDay(weekStartDate, 6) : date, 0, "first");
|
|
929
|
+
if (!XEUtils.isEqual(month, reactData.selectMonth)) {
|
|
930
930
|
reactData.selectMonth = month;
|
|
931
931
|
}
|
|
932
932
|
};
|
|
@@ -937,21 +937,21 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
937
937
|
const dateValueFormat = computeDateValueFormat.value;
|
|
938
938
|
const firstDayOfWeek = computeFirstDayOfWeek.value;
|
|
939
939
|
if (props.type === "week") {
|
|
940
|
-
const sWeek =
|
|
941
|
-
date =
|
|
940
|
+
const sWeek = XEUtils.toNumber(props.selectDay);
|
|
941
|
+
date = XEUtils.getWhatWeek(date, 0, sWeek, firstDayOfWeek);
|
|
942
942
|
} else if (isDateTimeType) {
|
|
943
943
|
date.setHours(datetimePanelValue.getHours());
|
|
944
944
|
date.setMinutes(datetimePanelValue.getMinutes());
|
|
945
945
|
date.setSeconds(datetimePanelValue.getSeconds());
|
|
946
946
|
}
|
|
947
|
-
const inpVal =
|
|
947
|
+
const inpVal = XEUtils.toDateString(date, dateValueFormat, { firstDay: firstDayOfWeek });
|
|
948
948
|
dateCheckMonth(date);
|
|
949
949
|
if (multiple) {
|
|
950
950
|
const dateMultipleValue = computeDateMultipleValue.value;
|
|
951
951
|
if (isDateTimeType) {
|
|
952
952
|
const dateListValue = [...computeDateListValue.value];
|
|
953
953
|
const datetimeRest = [];
|
|
954
|
-
const eqIndex =
|
|
954
|
+
const eqIndex = XEUtils.findIndexOf(dateListValue, (val) => XEUtils.isDateSame(date, val, "yyyyMMdd"));
|
|
955
955
|
if (eqIndex === -1) {
|
|
956
956
|
dateListValue.push(date);
|
|
957
957
|
} else {
|
|
@@ -965,16 +965,16 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
965
965
|
datetimeRest.push(item);
|
|
966
966
|
}
|
|
967
967
|
});
|
|
968
|
-
handleChange(datetimeRest.map((date2) =>
|
|
968
|
+
handleChange(datetimeRest.map((date2) => XEUtils.toDateString(date2, dateValueFormat)).join(","), { type: "update" });
|
|
969
969
|
} else {
|
|
970
|
-
if (dateMultipleValue.some((val) =>
|
|
971
|
-
handleChange(dateMultipleValue.filter((val) => !
|
|
970
|
+
if (dateMultipleValue.some((val) => XEUtils.isEqual(val, inpVal))) {
|
|
971
|
+
handleChange(dateMultipleValue.filter((val) => !XEUtils.isEqual(val, inpVal)).join(","), { type: "update" });
|
|
972
972
|
} else {
|
|
973
973
|
handleChange(dateMultipleValue.concat([inpVal]).join(","), { type: "update" });
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
976
|
} else {
|
|
977
|
-
if (!
|
|
977
|
+
if (!XEUtils.isEqual(modelValue, inpVal)) {
|
|
978
978
|
handleChange(inpVal, { type: "update" });
|
|
979
979
|
}
|
|
980
980
|
}
|
|
@@ -991,15 +991,15 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
991
991
|
if (inputValue) {
|
|
992
992
|
const inpVal = `${util$1.handleNumber(inputValue)}`;
|
|
993
993
|
if (inpVal) {
|
|
994
|
-
let inpNumVal = type === "integer" ?
|
|
994
|
+
let inpNumVal = type === "integer" ? XEUtils.toInteger(inpVal) : XEUtils.toNumber(inpVal);
|
|
995
995
|
if (!validMinNum(inpNumVal)) {
|
|
996
996
|
inpNumVal = min;
|
|
997
997
|
} else if (!validMaxNum(inpNumVal)) {
|
|
998
998
|
inpNumVal = max;
|
|
999
999
|
}
|
|
1000
1000
|
if (exponential) {
|
|
1001
|
-
const inpStringVal =
|
|
1002
|
-
if (inpStringVal ===
|
|
1001
|
+
const inpStringVal = XEUtils.toValueString(inputValue).toLowerCase();
|
|
1002
|
+
if (inpStringVal === XEUtils.toNumber(inpNumVal).toExponential()) {
|
|
1003
1003
|
inpNumVal = inpStringVal;
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
@@ -1015,9 +1015,9 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1015
1015
|
} else if (isDatePickerType) {
|
|
1016
1016
|
if (inputValue) {
|
|
1017
1017
|
let inpDateVal = parseDate(inputValue, dateLabelFormat);
|
|
1018
|
-
if (
|
|
1018
|
+
if (XEUtils.isValidDate(inpDateVal)) {
|
|
1019
1019
|
if (type === "time") {
|
|
1020
|
-
inpDateVal =
|
|
1020
|
+
inpDateVal = XEUtils.toDateString(inpDateVal, dateLabelFormat);
|
|
1021
1021
|
if (inputValue !== inpDateVal) {
|
|
1022
1022
|
handleChange(inpDateVal, { type: "check" });
|
|
1023
1023
|
}
|
|
@@ -1027,7 +1027,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1027
1027
|
const firstDayOfWeek = computeFirstDayOfWeek.value;
|
|
1028
1028
|
if (type === "datetime") {
|
|
1029
1029
|
const dateValue = computeDateValue.value;
|
|
1030
|
-
if (inputValue !==
|
|
1030
|
+
if (inputValue !== XEUtils.toDateString(dateValue, dateLabelFormat) || inputValue !== XEUtils.toDateString(inpDateVal, dateLabelFormat)) {
|
|
1031
1031
|
isChange = true;
|
|
1032
1032
|
datetimePanelValue.setHours(inpDateVal.getHours());
|
|
1033
1033
|
datetimePanelValue.setMinutes(inpDateVal.getMinutes());
|
|
@@ -1036,7 +1036,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1036
1036
|
} else {
|
|
1037
1037
|
isChange = true;
|
|
1038
1038
|
}
|
|
1039
|
-
reactData.inputValue =
|
|
1039
|
+
reactData.inputValue = XEUtils.toDateString(inpDateVal, dateLabelFormat, { firstDay: firstDayOfWeek });
|
|
1040
1040
|
if (isChange) {
|
|
1041
1041
|
dateChange(inpDateVal);
|
|
1042
1042
|
}
|
|
@@ -1066,8 +1066,8 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1066
1066
|
const { min, max, type } = props;
|
|
1067
1067
|
const { inputValue } = reactData;
|
|
1068
1068
|
const stepValue = computeStepValue.value;
|
|
1069
|
-
const numValue = type === "integer" ?
|
|
1070
|
-
const newValue = isPlus ?
|
|
1069
|
+
const numValue = type === "integer" ? XEUtils.toInteger(util$1.handleNumber(inputValue)) : XEUtils.toNumber(util$1.handleNumber(inputValue));
|
|
1070
|
+
const newValue = isPlus ? XEUtils.add(numValue, stepValue) : XEUtils.subtract(numValue, stepValue);
|
|
1071
1071
|
let restNum;
|
|
1072
1072
|
if (!validMinNum(newValue)) {
|
|
1073
1073
|
restNum = min;
|
|
@@ -1193,13 +1193,13 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1193
1193
|
};
|
|
1194
1194
|
const dateMonthHandle = (date, offsetMonth) => {
|
|
1195
1195
|
const firstDayOfWeek = computeFirstDayOfWeek.value;
|
|
1196
|
-
const weekNum =
|
|
1197
|
-
const weekStartDate =
|
|
1198
|
-
const month =
|
|
1196
|
+
const weekNum = XEUtils.getYearWeek(date, firstDayOfWeek);
|
|
1197
|
+
const weekStartDate = XEUtils.getWhatWeek(date, 0, firstDayOfWeek, firstDayOfWeek);
|
|
1198
|
+
const month = XEUtils.getWhatMonth(weekNum === 1 ? XEUtils.getWhatDay(weekStartDate, 6) : date, offsetMonth, "first");
|
|
1199
1199
|
reactData.selectMonth = month;
|
|
1200
1200
|
};
|
|
1201
1201
|
const dateNowHandle = () => {
|
|
1202
|
-
const currentDate =
|
|
1202
|
+
const currentDate = XEUtils.getWhatDay(Date.now(), 0, "first");
|
|
1203
1203
|
reactData.currentDate = currentDate;
|
|
1204
1204
|
dateMonthHandle(currentDate, 0);
|
|
1205
1205
|
};
|
|
@@ -1224,20 +1224,20 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1224
1224
|
if (!isDisabledPrevDateBtn) {
|
|
1225
1225
|
let viewDate;
|
|
1226
1226
|
if (type === "year") {
|
|
1227
|
-
viewDate =
|
|
1227
|
+
viewDate = XEUtils.getWhatYear(selectMonth, -yearSize, "first");
|
|
1228
1228
|
} else if (type === "month" || type === "quarter") {
|
|
1229
1229
|
if (datePanelType === "year") {
|
|
1230
|
-
viewDate =
|
|
1230
|
+
viewDate = XEUtils.getWhatYear(selectMonth, -yearSize, "first");
|
|
1231
1231
|
} else {
|
|
1232
|
-
viewDate =
|
|
1232
|
+
viewDate = XEUtils.getWhatYear(selectMonth, -1, "first");
|
|
1233
1233
|
}
|
|
1234
1234
|
} else {
|
|
1235
1235
|
if (datePanelType === "year") {
|
|
1236
|
-
viewDate =
|
|
1236
|
+
viewDate = XEUtils.getWhatYear(selectMonth, -yearSize, "first");
|
|
1237
1237
|
} else if (datePanelType === "month") {
|
|
1238
|
-
viewDate =
|
|
1238
|
+
viewDate = XEUtils.getWhatYear(selectMonth, -1, "first");
|
|
1239
1239
|
} else {
|
|
1240
|
-
viewDate =
|
|
1240
|
+
viewDate = XEUtils.getWhatMonth(selectMonth, -1, "first");
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
1243
|
reactData.selectMonth = viewDate;
|
|
@@ -1261,20 +1261,20 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1261
1261
|
if (!isDisabledNextDateBtn) {
|
|
1262
1262
|
let viewDate;
|
|
1263
1263
|
if (type === "year") {
|
|
1264
|
-
viewDate =
|
|
1264
|
+
viewDate = XEUtils.getWhatYear(selectMonth, yearSize, "first");
|
|
1265
1265
|
} else if (type === "month" || type === "quarter") {
|
|
1266
1266
|
if (datePanelType === "year") {
|
|
1267
|
-
viewDate =
|
|
1267
|
+
viewDate = XEUtils.getWhatYear(selectMonth, yearSize, "first");
|
|
1268
1268
|
} else {
|
|
1269
|
-
viewDate =
|
|
1269
|
+
viewDate = XEUtils.getWhatYear(selectMonth, 1, "first");
|
|
1270
1270
|
}
|
|
1271
1271
|
} else {
|
|
1272
1272
|
if (datePanelType === "year") {
|
|
1273
|
-
viewDate =
|
|
1273
|
+
viewDate = XEUtils.getWhatYear(selectMonth, yearSize, "first");
|
|
1274
1274
|
} else if (datePanelType === "month") {
|
|
1275
|
-
viewDate =
|
|
1275
|
+
viewDate = XEUtils.getWhatYear(selectMonth, 1, "first");
|
|
1276
1276
|
} else {
|
|
1277
|
-
viewDate =
|
|
1277
|
+
viewDate = XEUtils.getWhatMonth(selectMonth, 1, "first");
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
1280
|
reactData.selectMonth = viewDate;
|
|
@@ -1352,7 +1352,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1352
1352
|
const dateMoveDay = (offsetDay) => {
|
|
1353
1353
|
if (!isDateDisabled({ date: offsetDay })) {
|
|
1354
1354
|
const dayList = computeDayList.value;
|
|
1355
|
-
if (!dayList.some((item) =>
|
|
1355
|
+
if (!dayList.some((item) => XEUtils.isDateSame(item.date, offsetDay, "yyyyMMdd"))) {
|
|
1356
1356
|
dateCheckMonth(offsetDay);
|
|
1357
1357
|
}
|
|
1358
1358
|
dateParseValue(offsetDay);
|
|
@@ -1361,7 +1361,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1361
1361
|
const dateMoveYear = (offsetYear) => {
|
|
1362
1362
|
if (!isDateDisabled({ date: offsetYear })) {
|
|
1363
1363
|
const yearList = computeYearList.value;
|
|
1364
|
-
if (!yearList.some((item) =>
|
|
1364
|
+
if (!yearList.some((item) => XEUtils.isDateSame(item.date, offsetYear, "yyyy"))) {
|
|
1365
1365
|
dateCheckMonth(offsetYear);
|
|
1366
1366
|
}
|
|
1367
1367
|
dateParseValue(offsetYear);
|
|
@@ -1370,7 +1370,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1370
1370
|
const dateMoveQuarter = (offsetQuarter) => {
|
|
1371
1371
|
if (!isDateDisabled({ date: offsetQuarter })) {
|
|
1372
1372
|
const quarterList = computeQuarterList.value;
|
|
1373
|
-
if (!quarterList.some((item) =>
|
|
1373
|
+
if (!quarterList.some((item) => XEUtils.isDateSame(item.date, offsetQuarter, "yyyyq"))) {
|
|
1374
1374
|
dateCheckMonth(offsetQuarter);
|
|
1375
1375
|
}
|
|
1376
1376
|
dateParseValue(offsetQuarter);
|
|
@@ -1379,7 +1379,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1379
1379
|
const dateMoveMonth = (offsetMonth) => {
|
|
1380
1380
|
if (!isDateDisabled({ date: offsetMonth })) {
|
|
1381
1381
|
const monthList = computeMonthList.value;
|
|
1382
|
-
if (!monthList.some((item) =>
|
|
1382
|
+
if (!monthList.some((item) => XEUtils.isDateSame(item.date, offsetMonth, "yyyyMM"))) {
|
|
1383
1383
|
dateCheckMonth(offsetMonth);
|
|
1384
1384
|
}
|
|
1385
1385
|
dateParseValue(offsetMonth);
|
|
@@ -1434,7 +1434,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1434
1434
|
datetimeRest.push(item);
|
|
1435
1435
|
}
|
|
1436
1436
|
});
|
|
1437
|
-
handleChange(datetimeRest.map((date) =>
|
|
1437
|
+
handleChange(datetimeRest.map((date) => XEUtils.toDateString(date, dateValueFormat)).join(","), { type: "update" });
|
|
1438
1438
|
} else {
|
|
1439
1439
|
handleChange(dateMultipleValue.join(","), { type: "update" });
|
|
1440
1440
|
}
|
|
@@ -1461,52 +1461,52 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1461
1461
|
const isRightArrow = event.globalEvents.hasKey(evnt, event.GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
1462
1462
|
const isDwArrow = event.globalEvents.hasKey(evnt, event.GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
1463
1463
|
if (datePanelType === "year") {
|
|
1464
|
-
let offsetYear =
|
|
1464
|
+
let offsetYear = XEUtils.getWhatYear(datePanelValue || Date.now(), 0, "first");
|
|
1465
1465
|
if (isLeftArrow) {
|
|
1466
|
-
offsetYear =
|
|
1466
|
+
offsetYear = XEUtils.getWhatYear(offsetYear, -1);
|
|
1467
1467
|
} else if (isUpArrow) {
|
|
1468
|
-
offsetYear =
|
|
1468
|
+
offsetYear = XEUtils.getWhatYear(offsetYear, -4);
|
|
1469
1469
|
} else if (isRightArrow) {
|
|
1470
|
-
offsetYear =
|
|
1470
|
+
offsetYear = XEUtils.getWhatYear(offsetYear, 1);
|
|
1471
1471
|
} else if (isDwArrow) {
|
|
1472
|
-
offsetYear =
|
|
1472
|
+
offsetYear = XEUtils.getWhatYear(offsetYear, 4);
|
|
1473
1473
|
}
|
|
1474
1474
|
dateMoveYear(offsetYear);
|
|
1475
1475
|
} else if (datePanelType === "quarter") {
|
|
1476
|
-
let offsetQuarter =
|
|
1476
|
+
let offsetQuarter = XEUtils.getWhatQuarter(datePanelValue || Date.now(), 0, "first");
|
|
1477
1477
|
if (isLeftArrow) {
|
|
1478
|
-
offsetQuarter =
|
|
1478
|
+
offsetQuarter = XEUtils.getWhatQuarter(offsetQuarter, -1);
|
|
1479
1479
|
} else if (isUpArrow) {
|
|
1480
|
-
offsetQuarter =
|
|
1480
|
+
offsetQuarter = XEUtils.getWhatQuarter(offsetQuarter, -2);
|
|
1481
1481
|
} else if (isRightArrow) {
|
|
1482
|
-
offsetQuarter =
|
|
1482
|
+
offsetQuarter = XEUtils.getWhatQuarter(offsetQuarter, 1);
|
|
1483
1483
|
} else if (isDwArrow) {
|
|
1484
|
-
offsetQuarter =
|
|
1484
|
+
offsetQuarter = XEUtils.getWhatQuarter(offsetQuarter, 2);
|
|
1485
1485
|
}
|
|
1486
1486
|
dateMoveQuarter(offsetQuarter);
|
|
1487
1487
|
} else if (datePanelType === "month") {
|
|
1488
|
-
let offsetMonth =
|
|
1488
|
+
let offsetMonth = XEUtils.getWhatMonth(datePanelValue || Date.now(), 0, "first");
|
|
1489
1489
|
if (isLeftArrow) {
|
|
1490
|
-
offsetMonth =
|
|
1490
|
+
offsetMonth = XEUtils.getWhatMonth(offsetMonth, -1);
|
|
1491
1491
|
} else if (isUpArrow) {
|
|
1492
|
-
offsetMonth =
|
|
1492
|
+
offsetMonth = XEUtils.getWhatMonth(offsetMonth, -4);
|
|
1493
1493
|
} else if (isRightArrow) {
|
|
1494
|
-
offsetMonth =
|
|
1494
|
+
offsetMonth = XEUtils.getWhatMonth(offsetMonth, 1);
|
|
1495
1495
|
} else if (isDwArrow) {
|
|
1496
|
-
offsetMonth =
|
|
1496
|
+
offsetMonth = XEUtils.getWhatMonth(offsetMonth, 4);
|
|
1497
1497
|
}
|
|
1498
1498
|
dateMoveMonth(offsetMonth);
|
|
1499
1499
|
} else {
|
|
1500
|
-
let offsetDay = datePanelValue ||
|
|
1500
|
+
let offsetDay = datePanelValue || XEUtils.getWhatDay(Date.now(), 0, "first");
|
|
1501
1501
|
const firstDayOfWeek = computeFirstDayOfWeek.value;
|
|
1502
1502
|
if (isLeftArrow) {
|
|
1503
|
-
offsetDay =
|
|
1503
|
+
offsetDay = XEUtils.getWhatDay(offsetDay, -1);
|
|
1504
1504
|
} else if (isUpArrow) {
|
|
1505
|
-
offsetDay =
|
|
1505
|
+
offsetDay = XEUtils.getWhatWeek(offsetDay, -1, firstDayOfWeek);
|
|
1506
1506
|
} else if (isRightArrow) {
|
|
1507
|
-
offsetDay =
|
|
1507
|
+
offsetDay = XEUtils.getWhatDay(offsetDay, 1);
|
|
1508
1508
|
} else if (isDwArrow) {
|
|
1509
|
-
offsetDay =
|
|
1509
|
+
offsetDay = XEUtils.getWhatWeek(offsetDay, 1, firstDayOfWeek);
|
|
1510
1510
|
}
|
|
1511
1511
|
dateMoveDay(offsetDay);
|
|
1512
1512
|
}
|
|
@@ -1533,7 +1533,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1533
1533
|
} else {
|
|
1534
1534
|
reactData.datePanelType = "day";
|
|
1535
1535
|
}
|
|
1536
|
-
reactData.currentDate =
|
|
1536
|
+
reactData.currentDate = XEUtils.getWhatDay(Date.now(), 0, "first");
|
|
1537
1537
|
if (dateValue) {
|
|
1538
1538
|
dateMonthHandle(dateValue, 0);
|
|
1539
1539
|
dateParseValue(dateValue);
|
|
@@ -1541,10 +1541,10 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1541
1541
|
dateNowHandle();
|
|
1542
1542
|
}
|
|
1543
1543
|
if (isDateTimeType) {
|
|
1544
|
-
reactData.datetimePanelValue = reactData.datePanelValue ||
|
|
1544
|
+
reactData.datetimePanelValue = reactData.datePanelValue || XEUtils.getWhatDay(Date.now(), 0, "first");
|
|
1545
1545
|
vue.nextTick(() => {
|
|
1546
1546
|
const timeBodyElem = refInputTimeBody.value;
|
|
1547
|
-
|
|
1547
|
+
XEUtils.arrayEach(timeBodyElem.querySelectorAll("li.is--selected"), (elem) => {
|
|
1548
1548
|
updateTimePos(elem);
|
|
1549
1549
|
});
|
|
1550
1550
|
});
|
|
@@ -1777,8 +1777,8 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1777
1777
|
if (festivalMethod) {
|
|
1778
1778
|
const { datePanelType } = reactData;
|
|
1779
1779
|
const festivalRest = festivalMethod({ type: datePanelType, viewType: datePanelType, date: item.date, $input: $xeInput });
|
|
1780
|
-
const festivalItem = festivalRest ?
|
|
1781
|
-
const extraItem = festivalItem.extra ?
|
|
1780
|
+
const festivalItem = festivalRest ? XEUtils.isString(festivalRest) ? { label: festivalRest } : festivalRest : {};
|
|
1781
|
+
const extraItem = festivalItem.extra ? XEUtils.isString(festivalItem.extra) ? { label: festivalItem.extra } : festivalItem.extra : null;
|
|
1782
1782
|
const labels = [
|
|
1783
1783
|
vue.h("span", {
|
|
1784
1784
|
class: ["vxe-input--date-label", {
|
|
@@ -1789,12 +1789,12 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1789
1789
|
vue.h("span", {
|
|
1790
1790
|
class: ["vxe-input--date-label--extra", extraItem.important ? "is-important" : "", extraItem.className],
|
|
1791
1791
|
style: extraItem.style
|
|
1792
|
-
},
|
|
1792
|
+
}, XEUtils.toValueString(extraItem.label))
|
|
1793
1793
|
] : [`${label || ""}`])
|
|
1794
1794
|
];
|
|
1795
1795
|
const festivalLabel = festivalItem.label;
|
|
1796
1796
|
if (festivalLabel) {
|
|
1797
|
-
const festivalLabels =
|
|
1797
|
+
const festivalLabels = XEUtils.toValueString(festivalLabel).split(",");
|
|
1798
1798
|
labels.push(vue.h("span", {
|
|
1799
1799
|
class: ["vxe-input--date-festival", festivalItem.important ? "is-important" : "", festivalItem.className],
|
|
1800
1800
|
style: festivalItem.style
|
|
@@ -1839,8 +1839,8 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1839
1839
|
"is--now": item.isNow,
|
|
1840
1840
|
"is--next": item.isNext,
|
|
1841
1841
|
"is--disabled": isDateDisabled(item),
|
|
1842
|
-
"is--selected": multiple ? dateListValue.some((val) =>
|
|
1843
|
-
"is--hover":
|
|
1842
|
+
"is--selected": multiple ? dateListValue.some((val) => XEUtils.isDateSame(val, item.date, matchFormat)) : XEUtils.isDateSame(dateValue, item.date, matchFormat),
|
|
1843
|
+
"is--hover": XEUtils.isDateSame(datePanelValue, item.date, matchFormat)
|
|
1844
1844
|
},
|
|
1845
1845
|
onClick: () => dateSelectEvent(item),
|
|
1846
1846
|
onMouseenter: () => dateMouseenterEvent(item)
|
|
@@ -1871,8 +1871,8 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1871
1871
|
}))
|
|
1872
1872
|
]),
|
|
1873
1873
|
vue.h("tbody", weekDates.map((rows) => {
|
|
1874
|
-
const isSelected = multiple ? rows.some((item) => dateListValue.some((val) =>
|
|
1875
|
-
const isHover = rows.some((item) =>
|
|
1874
|
+
const isSelected = multiple ? rows.some((item) => dateListValue.some((val) => XEUtils.isDateSame(val, item.date, matchFormat))) : rows.some((item) => XEUtils.isDateSame(dateValue, item.date, matchFormat));
|
|
1875
|
+
const isHover = rows.some((item) => XEUtils.isDateSame(datePanelValue, item.date, matchFormat));
|
|
1876
1876
|
return vue.h("tr", rows.map((item) => {
|
|
1877
1877
|
return vue.h("td", {
|
|
1878
1878
|
class: {
|
|
@@ -1916,8 +1916,8 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1916
1916
|
"is--now": item.isNow,
|
|
1917
1917
|
"is--next": item.isNext,
|
|
1918
1918
|
"is--disabled": isDateDisabled(item),
|
|
1919
|
-
"is--selected": multiple ? dateListValue.some((val) =>
|
|
1920
|
-
"is--hover":
|
|
1919
|
+
"is--selected": multiple ? dateListValue.some((val) => XEUtils.isDateSame(val, item.date, matchFormat)) : XEUtils.isDateSame(dateValue, item.date, matchFormat),
|
|
1920
|
+
"is--hover": XEUtils.isDateSame(datePanelValue, item.date, matchFormat)
|
|
1921
1921
|
},
|
|
1922
1922
|
onClick: () => dateSelectEvent(item),
|
|
1923
1923
|
onMouseenter: () => dateMouseenterEvent(item)
|
|
@@ -1950,8 +1950,8 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1950
1950
|
"is--now": item.isNow,
|
|
1951
1951
|
"is--next": item.isNext,
|
|
1952
1952
|
"is--disabled": isDateDisabled(item),
|
|
1953
|
-
"is--selected": multiple ? dateListValue.some((val) =>
|
|
1954
|
-
"is--hover":
|
|
1953
|
+
"is--selected": multiple ? dateListValue.some((val) => XEUtils.isDateSame(val, item.date, matchFormat)) : XEUtils.isDateSame(dateValue, item.date, matchFormat),
|
|
1954
|
+
"is--hover": XEUtils.isDateSame(datePanelValue, item.date, matchFormat)
|
|
1955
1955
|
},
|
|
1956
1956
|
onClick: () => dateSelectEvent(item),
|
|
1957
1957
|
onMouseenter: () => dateMouseenterEvent(item)
|
|
@@ -1984,8 +1984,8 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
1984
1984
|
"is--now": item.isNow,
|
|
1985
1985
|
"is--next": item.isNext,
|
|
1986
1986
|
"is--disabled": isDateDisabled(item),
|
|
1987
|
-
"is--selected": multiple ? dateListValue.some((val) =>
|
|
1988
|
-
"is--hover":
|
|
1987
|
+
"is--selected": multiple ? dateListValue.some((val) => XEUtils.isDateSame(val, item.date, matchFormat)) : XEUtils.isDateSame(dateValue, item.date, matchFormat),
|
|
1988
|
+
"is--hover": XEUtils.isDateSame(datePanelValue, item.date, matchFormat)
|
|
1989
1989
|
},
|
|
1990
1990
|
onClick: () => dateSelectEvent(item),
|
|
1991
1991
|
onMouseenter: () => dateMouseenterEvent(item)
|
|
@@ -2115,9 +2115,9 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
2115
2115
|
}, [
|
|
2116
2116
|
vue.h("ul", {
|
|
2117
2117
|
class: "vxe-input--time-picker-hour-list"
|
|
2118
|
-
}, hourList.map((item,
|
|
2118
|
+
}, hourList.map((item, index) => {
|
|
2119
2119
|
return vue.h("li", {
|
|
2120
|
-
key:
|
|
2120
|
+
key: index,
|
|
2121
2121
|
class: {
|
|
2122
2122
|
"is--selected": datetimePanelValue && datetimePanelValue.getHours() === item.value
|
|
2123
2123
|
},
|
|
@@ -2126,9 +2126,9 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
2126
2126
|
})),
|
|
2127
2127
|
hasTimeMinute ? vue.h("ul", {
|
|
2128
2128
|
class: "vxe-input--time-picker-minute-list"
|
|
2129
|
-
}, minuteList.map((item,
|
|
2129
|
+
}, minuteList.map((item, index) => {
|
|
2130
2130
|
return vue.h("li", {
|
|
2131
|
-
key:
|
|
2131
|
+
key: index,
|
|
2132
2132
|
class: {
|
|
2133
2133
|
"is--selected": datetimePanelValue && datetimePanelValue.getMinutes() === item.value
|
|
2134
2134
|
},
|
|
@@ -2137,9 +2137,9 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
2137
2137
|
})) : vue.createCommentVNode(),
|
|
2138
2138
|
hasTimeMinute && hasTimeSecond ? vue.h("ul", {
|
|
2139
2139
|
class: "vxe-input--time-picker-second-list"
|
|
2140
|
-
}, secondList.map((item,
|
|
2140
|
+
}, secondList.map((item, index) => {
|
|
2141
2141
|
return vue.h("li", {
|
|
2142
|
-
key:
|
|
2142
|
+
key: index,
|
|
2143
2143
|
class: {
|
|
2144
2144
|
"is--selected": datetimePanelValue && datetimePanelValue.getSeconds() === item.value
|
|
2145
2145
|
},
|
|
@@ -2298,7 +2298,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
2298
2298
|
const isExtraBtn = isPawdType || isNumType || isDatePickerType || isSearchType;
|
|
2299
2299
|
return isClearable || suffixSlot || suffixIcon || isExtraBtn ? vue.h("div", {
|
|
2300
2300
|
class: ["vxe-input--suffix", {
|
|
2301
|
-
"is--clear": isClearable && !isDisabled && !(inputValue === "" ||
|
|
2301
|
+
"is--clear": isClearable && !isDisabled && !(inputValue === "" || XEUtils.eqNull(inputValue))
|
|
2302
2302
|
}]
|
|
2303
2303
|
}, [
|
|
2304
2304
|
isClearable ? vue.h("div", {
|
|
@@ -2404,7 +2404,7 @@ const VxeInputComponent = comp.defineVxeComponent({
|
|
|
2404
2404
|
"is--count": isWordCount,
|
|
2405
2405
|
"is--disabled": isDisabled,
|
|
2406
2406
|
"is--active": isActivated,
|
|
2407
|
-
"show--clear": isClearable && !isDisabled && !(inputValue === "" ||
|
|
2407
|
+
"show--clear": isClearable && !isDisabled && !(inputValue === "" || XEUtils.eqNull(inputValue))
|
|
2408
2408
|
}],
|
|
2409
2409
|
spellcheck: false
|
|
2410
2410
|
}, [
|