vxe-pc-ui 4.20.24 → 4.20.26
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/dist/all.esm.js +15151 -10366
- package/dist/style.css +1 -1
- package/dist/style.mini.css +1 -1
- package/es/alert/src/alert.js +61 -36
- package/es/anchor/src/anchor-link.js +39 -20
- package/es/anchor/src/anchor.js +74 -45
- package/es/avatar/src/avatar.js +47 -27
- package/es/backtop/src/backtop.js +65 -40
- package/es/badge/src/badge.js +32 -16
- package/es/breadcrumb/src/breadcrumb-item.js +52 -27
- package/es/breadcrumb/src/breadcrumb.js +11 -8
- package/es/button/src/button-group.js +24 -18
- package/es/button/src/button.js +284 -185
- package/es/calendar/src/calendar.js +571 -358
- package/es/card/src/card.js +123 -68
- package/es/carousel/src/carousel-item.js +14 -7
- package/es/carousel/src/carousel.js +174 -112
- package/es/cascader/src/cascader.js +526 -380
- package/es/checkbox/src/button.js +90 -55
- package/es/checkbox/src/checkbox.js +60 -40
- package/es/checkbox/src/group.js +34 -26
- package/es/collapse/src/collapse-pane.js +33 -16
- package/es/collapse/src/collapse.js +133 -79
- package/es/color-picker/src/color-picker.js +489 -350
- package/es/components.d.ts +3 -1
- package/es/components.js +3 -2
- package/es/context-menu/src/context-menu.js +190 -110
- package/es/countdown/src/countdown.js +91 -59
- package/es/date-panel/src/date-panel.js +760 -450
- package/es/date-picker/src/date-picker.js +331 -228
- package/es/date-range-picker/src/date-range-picker.js +366 -265
- package/es/divider/src/divider.js +26 -12
- package/es/drawer/src/drawer.js +254 -154
- package/es/dynamics/index.js +38 -25
- package/es/empty/src/empty.js +53 -29
- package/es/form/render/index.js +66 -41
- package/es/form/src/form-config-item.js +22 -16
- package/es/form/src/form-group.js +23 -14
- package/es/form/src/form-item.js +23 -17
- package/es/form/src/form.js +139 -95
- package/es/form/src/itemInfo.js +2 -1
- package/es/form/src/render.js +207 -127
- package/es/form/src/util.js +8 -4
- package/es/icon/src/icon.js +14 -10
- package/es/icon/style.css +1 -1
- package/es/icon/style.mini.css +1 -1
- package/es/icon-picker/src/icon-picker.js +250 -157
- package/es/image/src/group.js +26 -20
- package/es/image/src/image.js +33 -32
- package/es/image/src/preview.js +182 -122
- package/es/image/src/util.js +6 -3
- package/es/index.d.ts +3 -0
- package/es/index.esm.js +12 -0
- package/es/index.js +12 -0
- package/es/input/src/input.js +820 -507
- package/es/layout-aside/src/layout-aside.js +54 -38
- package/es/layout-body/src/layout-body.js +39 -27
- package/es/layout-container/src/layout-container.js +16 -9
- package/es/layout-footer/src/layout-footer.js +16 -7
- package/es/layout-header/src/layout-header.js +15 -7
- package/es/link/src/link.js +65 -44
- package/es/list/src/list.js +453 -333
- package/es/loading/index.js +8 -5
- package/es/loading/src/loading.js +60 -33
- package/es/mention/src/mention.js +2 -1
- package/es/menu/src/menu.js +341 -210
- package/es/modal/index.js +60 -37
- package/es/modal/src/modal.js +303 -205
- package/es/notice-bar/src/notice-bar.js +64 -37
- package/es/number-input/src/number-input.js +249 -172
- package/es/pager/src/pager.js +346 -202
- package/es/password-input/src/password-input.js +145 -105
- package/es/print/src/page-break.js +2 -1
- package/es/print/src/print.js +184 -99
- package/es/pulldown/src/pulldown.js +113 -71
- package/es/radio/src/button.js +92 -57
- package/es/radio/src/group.js +33 -25
- package/es/radio/src/radio.js +61 -41
- package/es/rate/src/rate.js +48 -36
- package/es/result/src/result.js +67 -35
- package/es/row/src/col.js +30 -16
- package/es/row/src/row.js +21 -14
- package/es/scrollbar/src/scrollbar.js +177 -145
- package/es/segmented/src/segmented.js +93 -60
- package/es/select/src/optgroup.js +7 -3
- package/es/select/src/select.js +483 -340
- package/es/select/src/util.js +6 -3
- package/es/slider/src/slider.js +108 -80
- package/es/space/src/space.js +43 -26
- package/es/splitter/src/splitter-panel.js +50 -25
- package/es/splitter/src/splitter.js +219 -144
- package/es/steps/src/steps.js +10 -5
- package/es/style.css +1 -1
- package/es/style.mini.css +1 -1
- package/es/switch/src/switch.js +115 -64
- package/es/table-select/src/table-select.js +232 -153
- package/es/table-transfer/src/table-transfer.js +10 -5
- package/es/tabs/src/tab-pane.js +33 -16
- package/es/tabs/src/tabs.js +363 -230
- package/es/tag/src/tag.js +61 -43
- package/es/text/src/text.js +89 -65
- package/es/text-ellipsis/src/text-ellipsis.js +82 -51
- package/es/textarea/src/textarea.js +116 -86
- package/es/timeline/src/timeline-item.js +2 -1
- package/es/timeline/src/timeline.js +2 -1
- package/es/tip/src/tip.js +53 -29
- package/es/tooltip/src/tooltip.js +114 -74
- package/es/tour/src/tour.js +2 -1
- package/es/transfer/src/transfer.js +42 -25
- package/es/tree/src/tree.js +709 -492
- package/es/tree-select/src/tree-select.js +320 -225
- package/es/ui/index.d.ts +0 -1
- package/es/ui/index.js +46 -3
- package/es/ui/src/dom.js +9 -6
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/utils.d.ts +1 -1
- package/es/upload/src/upload.js +614 -398
- package/es/vxe-icon/style.css +1 -1
- package/es/vxe-icon/style.mini.css +1 -1
- package/es/watermark/src/util.js +15 -12
- package/es/watermark/src/watermark.js +55 -25
- package/lib/alert/src/alert.js +62 -37
- package/lib/anchor/src/anchor-link.js +39 -20
- package/lib/anchor/src/anchor.js +75 -46
- package/lib/avatar/src/avatar.js +52 -32
- package/lib/backtop/src/backtop.js +81 -56
- package/lib/badge/src/badge.js +35 -19
- package/lib/breadcrumb/src/breadcrumb-item.js +52 -27
- package/lib/breadcrumb/src/breadcrumb.js +13 -10
- package/lib/button/src/button-group.js +27 -21
- package/lib/button/src/button.js +306 -207
- package/lib/calendar/src/calendar.js +575 -362
- package/lib/card/src/card.js +133 -78
- package/lib/carousel/src/carousel-item.js +15 -8
- package/lib/carousel/src/carousel.js +182 -120
- package/lib/cascader/src/cascader.js +555 -409
- package/lib/checkbox/src/button.js +93 -58
- package/lib/checkbox/src/checkbox.js +63 -43
- package/lib/checkbox/src/group.js +37 -29
- package/lib/collapse/src/collapse-pane.js +34 -17
- package/lib/collapse/src/collapse.js +139 -85
- package/lib/color-picker/src/color-picker.js +516 -377
- package/lib/components.js +3 -2
- package/lib/context-menu/src/context-menu.js +212 -132
- package/lib/countdown/src/countdown.js +95 -63
- package/lib/date-panel/src/date-panel.js +776 -466
- package/lib/date-picker/src/date-picker.js +377 -274
- package/lib/date-range-picker/src/date-range-picker.js +401 -300
- package/lib/divider/src/divider.js +31 -17
- package/lib/drawer/src/drawer.js +255 -155
- package/lib/dynamics/index.js +38 -25
- package/lib/empty/src/empty.js +55 -31
- package/lib/form/render/index.js +68 -43
- package/lib/form/src/form-config-item.js +24 -18
- package/lib/form/src/form-group.js +25 -16
- package/lib/form/src/form-item.js +25 -19
- package/lib/form/src/form.js +140 -96
- package/lib/form/src/itemInfo.js +4 -3
- package/lib/form/src/render.js +214 -134
- package/lib/form/src/util.js +9 -5
- package/lib/icon/src/icon.js +17 -13
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.mini.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +251 -158
- package/lib/image/src/group.js +26 -20
- package/lib/image/src/image.js +41 -40
- package/lib/image/src/preview.js +206 -146
- package/lib/image/src/util.js +6 -3
- package/lib/index.common.js +12 -0
- package/lib/index.js +12 -0
- package/lib/index.umd.js +15359 -10558
- package/lib/index.umd.min.js +3 -3
- package/lib/input/src/input.js +878 -565
- package/lib/layout-aside/src/layout-aside.js +61 -45
- package/lib/layout-body/src/layout-body.js +47 -35
- package/lib/layout-container/src/layout-container.js +18 -11
- package/lib/layout-footer/src/layout-footer.js +17 -8
- package/lib/layout-header/src/layout-header.js +16 -8
- package/lib/link/src/link.js +69 -48
- package/lib/list/src/list.js +456 -336
- package/lib/loading/index.js +8 -5
- package/lib/loading/src/loading.js +69 -42
- package/lib/mention/src/mention.js +4 -3
- package/lib/menu/src/menu.js +351 -220
- package/lib/modal/index.js +60 -37
- package/lib/modal/src/modal.js +306 -208
- package/lib/notice-bar/src/notice-bar.js +70 -43
- package/lib/number-input/src/number-input.js +290 -213
- package/lib/pager/src/pager.js +347 -203
- package/lib/password-input/src/password-input.js +155 -115
- package/lib/print/src/page-break.js +3 -2
- package/lib/print/src/print.js +193 -108
- package/lib/pulldown/src/pulldown.js +128 -86
- package/lib/radio/src/button.js +96 -61
- package/lib/radio/src/group.js +37 -29
- package/lib/radio/src/radio.js +65 -45
- package/lib/rate/src/rate.js +50 -38
- package/lib/result/src/result.js +68 -36
- package/lib/row/src/col.js +32 -18
- package/lib/row/src/row.js +25 -18
- package/lib/scrollbar/src/scrollbar.js +178 -146
- package/lib/segmented/src/segmented.js +97 -64
- package/lib/select/src/optgroup.js +7 -3
- package/lib/select/src/select.js +486 -343
- package/lib/select/src/util.js +6 -3
- package/lib/slider/src/slider.js +122 -94
- package/lib/space/src/space.js +57 -40
- package/lib/splitter/src/splitter-panel.js +51 -26
- package/lib/splitter/src/splitter.js +233 -158
- package/lib/steps/src/steps.js +11 -6
- package/lib/style.css +1 -1
- package/lib/style.mini.css +1 -1
- package/lib/switch/src/switch.js +116 -65
- package/lib/table-select/src/table-select.js +234 -155
- package/lib/table-transfer/src/table-transfer.js +12 -7
- package/lib/tabs/src/tab-pane.js +34 -17
- package/lib/tabs/src/tabs.js +365 -232
- package/lib/tag/src/tag.js +67 -49
- package/lib/text/src/text.js +100 -76
- package/lib/text-ellipsis/src/text-ellipsis.js +86 -55
- package/lib/textarea/src/textarea.js +127 -97
- package/lib/timeline/src/timeline-item.js +3 -2
- package/lib/timeline/src/timeline.js +4 -3
- package/lib/tip/src/tip.js +58 -34
- package/lib/tooltip/src/tooltip.js +116 -76
- package/lib/tour/src/tour.js +4 -3
- package/lib/transfer/src/transfer.js +44 -27
- package/lib/tree/src/tree.js +717 -500
- package/lib/tree-select/src/tree-select.js +351 -256
- package/lib/ui/index.js +46 -4
- package/lib/ui/src/dom.js +9 -6
- package/lib/ui/src/log.js +1 -1
- package/lib/upload/src/upload.js +708 -492
- package/lib/vxe-icon/style/style.css +1 -1
- package/lib/vxe-icon/style/style.mini.css +1 -1
- package/lib/watermark/src/util.js +15 -12
- package/lib/watermark/src/watermark.js +60 -30
- package/package.json +10 -4
- package/packages/alert/index.ts +16 -16
- package/packages/alert/src/alert.ts +148 -126
- package/packages/anchor/index.ts +16 -16
- package/packages/anchor/src/anchor-link.ts +139 -121
- package/packages/anchor/src/anchor.ts +266 -237
- package/packages/anchor/src/util.ts +23 -23
- package/packages/anchor-link/index.ts +16 -16
- package/packages/avatar/index.ts +16 -16
- package/packages/avatar/src/avatar.ts +166 -149
- package/packages/backtop/index.ts +16 -16
- package/packages/backtop/src/backtop.ts +337 -313
- package/packages/badge/index.ts +16 -16
- package/packages/badge/src/badge.ts +131 -118
- package/packages/breadcrumb/index.ts +16 -16
- package/packages/breadcrumb/src/breadcrumb-item.ts +129 -106
- package/packages/breadcrumb/src/breadcrumb.ts +94 -92
- package/packages/breadcrumb-item/index.ts +16 -16
- package/packages/button/index.ts +16 -16
- package/packages/button/src/button-group.ts +116 -110
- package/packages/button/src/button.ts +975 -855
- package/packages/button-group/index.ts +16 -16
- package/packages/calendar/index.ts +16 -16
- package/packages/calendar/src/calendar.ts +1566 -1352
- package/packages/card/index.ts +16 -16
- package/packages/card/src/card.ts +285 -236
- package/packages/carousel/index.ts +16 -16
- package/packages/carousel/src/carousel-item.ts +120 -102
- package/packages/carousel/src/carousel.ts +475 -414
- package/packages/carousel/src/util.ts +21 -21
- package/packages/carousel-item/index.ts +16 -16
- package/packages/cascader/index.ts +16 -16
- package/packages/cascader/src/cascader.ts +2074 -1896
- package/packages/cascader/src/util.ts +9 -9
- package/packages/checkbox/index.ts +16 -16
- package/packages/checkbox/src/button.ts +267 -221
- package/packages/checkbox/src/checkbox.ts +219 -199
- package/packages/checkbox/src/group.ts +292 -269
- package/packages/checkbox-button/index.ts +16 -16
- package/packages/checkbox-group/index.ts +16 -16
- package/packages/col/index.ts +16 -16
- package/packages/collapse/index.ts +16 -16
- package/packages/collapse/src/collapse-pane.ts +142 -114
- package/packages/collapse/src/collapse.ts +453 -384
- package/packages/collapse/src/util.ts +21 -21
- package/packages/collapse-pane/index.ts +16 -16
- package/packages/color-picker/index.ts +31 -31
- package/packages/color-picker/src/color-picker.ts +1310 -1147
- package/packages/color-picker/src/util.ts +436 -423
- package/packages/components.ts +350 -349
- package/packages/context-menu/index.ts +54 -54
- package/packages/context-menu/src/context-menu.ts +773 -681
- package/packages/countdown/index.ts +16 -16
- package/packages/countdown/src/countdown.ts +295 -262
- package/packages/date-panel/index.ts +16 -16
- package/packages/date-panel/src/date-panel.ts +2214 -1900
- package/packages/date-panel/src/util.ts +354 -326
- package/packages/date-picker/index.ts +16 -16
- package/packages/date-picker/src/date-picker.ts +1884 -1752
- package/packages/date-range-picker/index.ts +16 -16
- package/packages/date-range-picker/src/date-range-picker.ts +1728 -1604
- package/packages/divider/index.ts +16 -16
- package/packages/divider/src/divider.ts +105 -93
- package/packages/drawer/index.ts +78 -78
- package/packages/drawer/src/drawer.ts +920 -802
- package/packages/drawer/src/store.ts +3 -3
- package/packages/dynamics/index.ts +124 -117
- package/packages/empty/index.ts +16 -16
- package/packages/empty/src/empty.ts +124 -103
- package/packages/form/index.ts +16 -16
- package/packages/form/render/index.ts +646 -614
- package/packages/form/src/form-config-item.ts +85 -80
- package/packages/form/src/form-group.ts +96 -86
- package/packages/form/src/form-item.ts +181 -174
- package/packages/form/src/form.ts +1122 -1069
- package/packages/form/src/itemInfo.ts +84 -82
- package/packages/form/src/render.ts +470 -387
- package/packages/form/src/util.ts +98 -93
- package/packages/form-gather/index.ts +26 -26
- package/packages/form-group/index.ts +16 -16
- package/packages/form-item/index.ts +16 -16
- package/packages/icon/index.ts +16 -16
- package/packages/icon/src/icon.ts +78 -75
- package/packages/icon-picker/index.ts +16 -16
- package/packages/icon-picker/src/icon-picker.ts +922 -809
- package/packages/image/index.ts +16 -16
- package/packages/image/src/group.ts +159 -153
- package/packages/image/src/image.ts +298 -298
- package/packages/image/src/preview.ts +749 -672
- package/packages/image/src/util.ts +62 -59
- package/packages/image-group/index.ts +16 -16
- package/packages/image-preview/index.ts +19 -19
- package/packages/index.ts +20 -4
- package/packages/input/index.ts +16 -16
- package/packages/input/src/input.ts +3201 -2863
- package/packages/language/fr-FR.ts +15 -15
- package/packages/language/it-IT.ts +4 -4
- package/packages/language/uk-UA.ts +1 -1
- package/packages/language/uz-UZ.ts +13 -13
- package/packages/language/zh-CN.ts +907 -907
- package/packages/layout-aside/index.ts +16 -16
- package/packages/layout-aside/src/layout-aside.ts +172 -156
- package/packages/layout-body/index.ts +16 -16
- package/packages/layout-body/src/layout-body.ts +191 -181
- package/packages/layout-container/index.ts +16 -16
- package/packages/layout-container/src/layout-container.ts +108 -92
- package/packages/layout-footer/index.ts +16 -16
- package/packages/layout-footer/src/layout-footer.ts +81 -74
- package/packages/layout-header/index.ts +16 -16
- package/packages/layout-header/src/layout-header.ts +79 -73
- package/packages/link/index.ts +16 -16
- package/packages/link/src/link.ts +180 -161
- package/packages/list/index.ts +16 -16
- package/packages/list/src/list.ts +2690 -2564
- package/packages/list/src/store.ts +10 -10
- package/packages/list/src/util.ts +10 -11
- package/packages/loading/index.ts +39 -36
- package/packages/loading/src/loading.ts +179 -152
- package/packages/mention/index.ts +16 -16
- package/packages/mention/src/mention.ts +69 -71
- package/packages/menu/index.ts +16 -16
- package/packages/menu/src/menu.ts +1000 -857
- package/packages/modal/index.ts +164 -141
- package/packages/modal/src/modal.ts +1803 -1681
- package/packages/modal/src/store.ts +3 -3
- package/packages/notice-bar/index.ts +16 -16
- package/packages/notice-bar/src/notice-bar.ts +207 -181
- package/packages/number-input/index.ts +16 -16
- package/packages/number-input/src/number-input.ts +1322 -1242
- package/packages/number-input/src/util.ts +25 -25
- package/packages/optgroup/index.ts +16 -16
- package/packages/option/index.ts +16 -16
- package/packages/pager/index.ts +16 -16
- package/packages/pager/src/pager.ts +919 -775
- package/packages/password-input/index.ts +16 -16
- package/packages/password-input/src/password-input.ts +523 -482
- package/packages/print/index.ts +18 -18
- package/packages/print/src/page-break.ts +104 -92
- package/packages/print/src/print.ts +366 -281
- package/packages/print/src/util.ts +299 -304
- package/packages/print-page-break/index.ts +16 -16
- package/packages/pulldown/index.ts +16 -16
- package/packages/pulldown/src/pulldown.ts +505 -445
- package/packages/radio/index.ts +16 -16
- package/packages/radio/src/button.ts +290 -243
- package/packages/radio/src/group.ts +275 -252
- package/packages/radio/src/radio.ts +237 -218
- package/packages/radio-button/index.ts +16 -16
- package/packages/radio-group/index.ts +16 -16
- package/packages/rate/index.ts +16 -16
- package/packages/rate/src/rate.ts +203 -192
- package/packages/result/index.ts +16 -16
- package/packages/result/src/result.ts +141 -112
- package/packages/row/index.ts +16 -16
- package/packages/row/src/col.ts +171 -159
- package/packages/row/src/row.ts +143 -138
- package/packages/scrollbar/index.ts +16 -16
- package/packages/scrollbar/src/scrollbar.ts +626 -595
- package/packages/segmented/index.ts +16 -16
- package/packages/segmented/src/segmented.ts +297 -264
- package/packages/select/index.ts +16 -16
- package/packages/select/src/optgroup.ts +53 -49
- package/packages/select/src/option-info.ts +20 -20
- package/packages/select/src/option.ts +47 -47
- package/packages/select/src/select.ts +2390 -2214
- package/packages/select/src/util.ts +50 -47
- package/packages/slider/index.ts +16 -16
- package/packages/slider/src/slider.ts +547 -506
- package/packages/space/index.ts +16 -16
- package/packages/space/src/space.ts +225 -209
- package/packages/split/index.ts +16 -16
- package/packages/split-pane/index.ts +17 -17
- package/packages/splitter/index.ts +16 -16
- package/packages/splitter/src/splitter-panel.ts +199 -163
- package/packages/splitter/src/splitter.ts +1110 -1020
- package/packages/splitter/src/util.ts +21 -21
- package/packages/splitter-panel/index.ts +16 -16
- package/packages/steps/index.ts +16 -16
- package/packages/steps/src/steps.ts +69 -68
- package/packages/switch/index.ts +16 -16
- package/packages/switch/src/switch.ts +300 -245
- package/packages/tab-pane/index.ts +16 -16
- package/packages/table-select/index.ts +16 -16
- package/packages/table-select/src/table-select.ts +1103 -999
- package/packages/table-transfer/index.ts +16 -16
- package/packages/table-transfer/src/table-transfer.ts +104 -91
- package/packages/tabs/index.ts +16 -16
- package/packages/tabs/src/tab-pane.ts +132 -117
- package/packages/tabs/src/tabs.ts +1137 -997
- package/packages/tabs/src/util.ts +21 -21
- package/packages/tag/index.ts +16 -16
- package/packages/tag/src/tag.ts +204 -187
- package/packages/text/index.ts +16 -16
- package/packages/text/src/text.ts +282 -260
- package/packages/text-ellipsis/index.ts +16 -16
- package/packages/text-ellipsis/src/text-ellipsis.ts +312 -282
- package/packages/textarea/index.ts +16 -16
- package/packages/textarea/src/textarea.ts +526 -495
- package/packages/timeline/index.ts +16 -16
- package/packages/timeline/src/timeline-item.ts +65 -67
- package/packages/timeline/src/timeline.ts +70 -71
- package/packages/timeline-item/index.ts +16 -16
- package/packages/tip/index.ts +19 -19
- package/packages/tip/src/tip.ts +150 -129
- package/packages/tooltip/index.ts +72 -72
- package/packages/tooltip/src/tooltip.ts +669 -627
- package/packages/tour/index.ts +16 -16
- package/packages/tour/src/tour.ts +70 -71
- package/packages/transfer/index.ts +16 -16
- package/packages/transfer/src/transfer.ts +130 -117
- package/packages/tree/index.ts +16 -16
- package/packages/tree/src/store.ts +10 -10
- package/packages/tree/src/tree.ts +4077 -3852
- package/packages/tree/src/util.ts +51 -51
- package/packages/tree-select/index.ts +16 -16
- package/packages/tree-select/src/tree-select.ts +1217 -1094
- package/packages/ui/index.ts +836 -793
- package/packages/ui/src/anime.ts +51 -52
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/dom.ts +357 -354
- package/packages/ui/src/log.ts +19 -19
- package/packages/ui/src/utils.ts +79 -79
- package/packages/ui/src/vn.ts +39 -39
- package/packages/upload/index.ts +20 -20
- package/packages/upload/src/upload.ts +2271 -2021
- package/packages/upload/src/util.ts +109 -109
- package/packages/watermark/index.ts +33 -33
- package/packages/watermark/src/util.ts +186 -180
- package/packages/watermark/src/watermark.ts +196 -168
- package/types/all.d.ts +552 -552
- package/types/components/alert.d.ts +83 -87
- package/types/components/anchor-link.d.ts +88 -91
- package/types/components/anchor.d.ts +97 -104
- package/types/components/avatar.d.ts +85 -88
- package/types/components/backtop.d.ts +119 -122
- package/types/components/badge.d.ts +77 -80
- package/types/components/breadcrumb-item.d.ts +77 -80
- package/types/components/breadcrumb.d.ts +83 -87
- package/types/components/button-group.d.ts +118 -120
- package/types/components/button.d.ts +331 -339
- package/types/components/calendar.d.ts +247 -264
- package/types/components/card.d.ts +111 -113
- package/types/components/carousel-item.d.ts +73 -75
- package/types/components/carousel.d.ts +130 -134
- package/types/components/cascader.d.ts +336 -386
- package/types/components/checkbox-button.d.ts +109 -114
- package/types/components/checkbox-group.d.ts +152 -154
- package/types/components/checkbox.d.ts +123 -128
- package/types/components/col.d.ts +77 -80
- package/types/components/colgroup.d.ts +64 -69
- package/types/components/collapse-pane.d.ts +86 -89
- package/types/components/collapse.d.ts +123 -133
- package/types/components/color-picker.d.ts +275 -280
- package/types/components/column.d.ts +834 -851
- package/types/components/context-menu.d.ts +282 -289
- package/types/components/countdown.d.ts +108 -112
- package/types/components/date-panel.d.ts +319 -331
- package/types/components/date-picker.d.ts +361 -384
- package/types/components/date-range-picker.d.ts +351 -371
- package/types/components/divider.d.ts +72 -75
- package/types/components/drawer.d.ts +333 -344
- package/types/components/empty.d.ts +75 -78
- package/types/components/flow-design.d.ts +73 -85
- package/types/components/flow-view.d.ts +73 -85
- package/types/components/form-design.d.ts +370 -376
- package/types/components/form-gather.d.ts +120 -124
- package/types/components/form-group.d.ts +73 -77
- package/types/components/form-item.d.ts +395 -413
- package/types/components/form-view.d.ts +179 -183
- package/types/components/form.d.ts +499 -495
- package/types/components/gantt-module/gantt-view.d.ts +195 -200
- package/types/components/gantt-module/index.d.ts +1 -1
- package/types/components/gantt-plugins/extend-gantt-chart.d.ts +137 -131
- package/types/components/gantt-plugins/index.d.ts +1 -1
- package/types/components/gantt.d.ts +1248 -1399
- package/types/components/grid.d.ts +1289 -1317
- package/types/components/icon-picker.d.ts +242 -253
- package/types/components/icon.d.ts +332 -87
- package/types/components/image-group.d.ts +124 -127
- package/types/components/image-preview.d.ts +167 -167
- package/types/components/image.d.ts +166 -173
- package/types/components/input.d.ts +429 -453
- package/types/components/layout-aside.d.ts +123 -123
- package/types/components/layout-body.d.ts +110 -113
- package/types/components/layout-container.d.ts +73 -75
- package/types/components/layout-footer.d.ts +71 -73
- package/types/components/layout-header.d.ts +67 -69
- package/types/components/link.d.ts +107 -111
- package/types/components/list-design.d.ts +189 -190
- package/types/components/list-view.d.ts +193 -199
- package/types/components/list.d.ts +678 -715
- package/types/components/loading.d.ts +98 -103
- package/types/components/mention.d.ts +70 -77
- package/types/components/menu.d.ts +284 -295
- package/types/components/modal.d.ts +567 -584
- package/types/components/notice-bar.d.ts +102 -106
- package/types/components/number-input.d.ts +359 -365
- package/types/components/optgroup.d.ts +85 -88
- package/types/components/option.d.ts +94 -103
- package/types/components/pager.d.ts +330 -335
- package/types/components/password-input.d.ts +143 -156
- package/types/components/print-page-break.d.ts +65 -69
- package/types/components/print.d.ts +243 -245
- package/types/components/pulldown.d.ts +231 -239
- package/types/components/radio-button.d.ts +113 -118
- package/types/components/radio-group.d.ts +151 -153
- package/types/components/radio.d.ts +129 -134
- package/types/components/rate.d.ts +83 -88
- package/types/components/result.d.ts +81 -84
- package/types/components/row.d.ts +77 -81
- package/types/components/scrollbar.d.ts +299 -305
- package/types/components/segmented.d.ts +119 -123
- package/types/components/select.d.ts +598 -616
- package/types/components/slider.d.ts +137 -151
- package/types/components/space.d.ts +120 -127
- package/types/components/split-pane.d.ts +126 -133
- package/types/components/split.d.ts +301 -312
- package/types/components/splitter-panel.d.ts +123 -130
- package/types/components/splitter.d.ts +290 -301
- package/types/components/steps.d.ts +63 -68
- package/types/components/switch.d.ts +127 -133
- package/types/components/tab-pane.d.ts +111 -114
- package/types/components/table-module/custom.d.ts +123 -123
- package/types/components/table-module/edit.d.ts +297 -276
- package/types/components/table-module/export.d.ts +88 -96
- package/types/components/table-module/filter.d.ts +144 -144
- package/types/components/table-module/index.d.ts +7 -7
- package/types/components/table-module/keyboard.d.ts +26 -26
- package/types/components/table-module/menu.d.ts +46 -46
- package/types/components/table-module/validator.d.ts +53 -53
- package/types/components/table-plugins/extend-cell-area.d.ts +781 -781
- package/types/components/table-plugins/extend-pivot-table.d.ts +59 -58
- package/types/components/table-plugins/filters-combination.d.ts +15 -15
- package/types/components/table-plugins/filters-complex-input.d.ts +9 -9
- package/types/components/table-plugins/index.d.ts +4 -4
- package/types/components/table-select.d.ts +268 -276
- package/types/components/table-transfer.d.ts +80 -84
- package/types/components/table.d.ts +7530 -8000
- package/types/components/tabs.d.ts +314 -352
- package/types/components/tag.d.ts +108 -114
- package/types/components/text-ellipsis.d.ts +107 -112
- package/types/components/text.d.ts +112 -122
- package/types/components/textarea.d.ts +261 -275
- package/types/components/timeline-item.d.ts +66 -75
- package/types/components/timeline.d.ts +70 -77
- package/types/components/tip.d.ts +81 -83
- package/types/components/toolbar.d.ts +327 -336
- package/types/components/tooltip.d.ts +250 -255
- package/types/components/tour.d.ts +70 -77
- package/types/components/transfer.d.ts +80 -84
- package/types/components/tree-select.d.ts +361 -376
- package/types/components/tree.d.ts +994 -1036
- package/types/components/upload.d.ts +477 -518
- package/types/components/watermark.d.ts +116 -120
- package/types/handles/form-design.d.ts +50 -50
- package/types/handles/index.d.ts +3 -3
- package/types/handles/list-design.d.ts +1 -2
- package/types/handles/table.d.ts +15 -15
- package/types/index.d.ts +8 -8
- package/types/ui/commands.d.ts +57 -57
- package/types/ui/formats.d.ts +62 -62
- package/types/ui/global-config.d.ts +269 -269
- package/types/ui/global-icon.d.ts +315 -315
- package/types/ui/hooks.d.ts +13 -13
- package/types/ui/index.d.ts +100 -100
- package/types/ui/interceptor.d.ts +52 -52
- package/types/ui/menus.d.ts +89 -89
- package/types/ui/renderer.d.ts +1033 -1047
- package/types/ui/validators.d.ts +37 -38
- /package/dist/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/dist/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/dist/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
- /package/es/icon/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/es/icon/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/es/icon/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
- /package/es/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/es/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/es/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
- /package/es/vxe-icon/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/es/vxe-icon/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/es/vxe-icon/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/lib/icon/style/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
- /package/lib/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/lib/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/lib/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
package/lib/input/src/input.js
CHANGED
|
@@ -34,13 +34,14 @@ module.exports = __toCommonJS(input_exports);
|
|
|
34
34
|
var import_vue = require("vue");
|
|
35
35
|
var import_comp = require("../../ui/src/comp");
|
|
36
36
|
var import_xe_utils = __toESM(require("xe-utils"));
|
|
37
|
-
var
|
|
37
|
+
var import_core = require("@vxe-ui/core");
|
|
38
38
|
var import_utils = require("../../ui/src/utils");
|
|
39
39
|
var import_dom = require("../../ui/src/dom");
|
|
40
40
|
var import_util = require("../../date-panel/src/util");
|
|
41
41
|
var import_util2 = require("../../number-input/src/util");
|
|
42
42
|
var import_vn = require("../../ui/src/vn");
|
|
43
43
|
var import_log = require("../../ui/src/log");
|
|
44
|
+
const { getConfig, getIcon, getI18n, globalEvents, GLOBAL_EVENT_KEYS, createEvent, useFns, renderEmptyElement } = import_core.VxeUI;
|
|
44
45
|
const { warnLog } = (0, import_log.createComponentLog)("input");
|
|
45
46
|
var input_default = (0, import_comp.defineVxeComponent)({
|
|
46
47
|
name: "VxeInput",
|
|
@@ -58,14 +59,14 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
58
59
|
},
|
|
59
60
|
clearable: {
|
|
60
61
|
type: Boolean,
|
|
61
|
-
default: () =>
|
|
62
|
+
default: () => getConfig().input.clearable
|
|
62
63
|
},
|
|
63
64
|
/**
|
|
64
65
|
* 已废弃
|
|
65
66
|
*/
|
|
66
67
|
delClearable: {
|
|
67
68
|
type: Boolean,
|
|
68
|
-
default: () =>
|
|
69
|
+
default: () => getConfig().input.delClearable
|
|
69
70
|
},
|
|
70
71
|
readonly: {
|
|
71
72
|
type: Boolean,
|
|
@@ -81,15 +82,15 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
81
82
|
},
|
|
82
83
|
floatContent: {
|
|
83
84
|
type: String,
|
|
84
|
-
default: () =>
|
|
85
|
+
default: () => getConfig().input.floatContent
|
|
85
86
|
},
|
|
86
87
|
floatAlign: {
|
|
87
88
|
type: String,
|
|
88
|
-
default: () =>
|
|
89
|
+
default: () => getConfig().input.floatAlign
|
|
89
90
|
},
|
|
90
91
|
maxLength: {
|
|
91
92
|
type: [String, Number],
|
|
92
|
-
default: () =>
|
|
93
|
+
default: () => getConfig().input.maxLength
|
|
93
94
|
},
|
|
94
95
|
autoComplete: {
|
|
95
96
|
type: String,
|
|
@@ -105,11 +106,11 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
105
106
|
width: [String, Number],
|
|
106
107
|
inputClassName: {
|
|
107
108
|
type: String,
|
|
108
|
-
default: () =>
|
|
109
|
+
default: () => getConfig().input.inputClassName
|
|
109
110
|
},
|
|
110
111
|
size: {
|
|
111
112
|
type: String,
|
|
112
|
-
default: () =>
|
|
113
|
+
default: () => getConfig().input.size || getConfig().size
|
|
113
114
|
},
|
|
114
115
|
multiple: Boolean,
|
|
115
116
|
// text
|
|
@@ -127,30 +128,30 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
127
128
|
step: [String, Number],
|
|
128
129
|
trim: {
|
|
129
130
|
type: Boolean,
|
|
130
|
-
default: () =>
|
|
131
|
+
default: () => getConfig().input.trim
|
|
131
132
|
},
|
|
132
133
|
exponential: {
|
|
133
134
|
type: Boolean,
|
|
134
|
-
default: () =>
|
|
135
|
+
default: () => getConfig().input.exponential
|
|
135
136
|
},
|
|
136
137
|
// number、integer、float、password
|
|
137
138
|
controls: {
|
|
138
139
|
type: Boolean,
|
|
139
|
-
default: () =>
|
|
140
|
+
default: () => getConfig().input.controls
|
|
140
141
|
},
|
|
141
142
|
// float
|
|
142
143
|
digits: {
|
|
143
144
|
type: [String, Number],
|
|
144
|
-
default: () =>
|
|
145
|
+
default: () => getConfig().input.digits
|
|
145
146
|
},
|
|
146
147
|
// date、week、month、quarter、year
|
|
147
148
|
startDate: {
|
|
148
149
|
type: [String, Number, Date],
|
|
149
|
-
default: () =>
|
|
150
|
+
default: () => getConfig().input.startDate
|
|
150
151
|
},
|
|
151
152
|
endDate: {
|
|
152
153
|
type: [String, Number, Date],
|
|
153
|
-
default: () =>
|
|
154
|
+
default: () => getConfig().input.endDate
|
|
154
155
|
},
|
|
155
156
|
minDate: [String, Number, Date],
|
|
156
157
|
maxDate: [String, Number, Date],
|
|
@@ -158,7 +159,7 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
158
159
|
startWeek: Number,
|
|
159
160
|
startDay: {
|
|
160
161
|
type: [String, Number],
|
|
161
|
-
default: () =>
|
|
162
|
+
default: () => getConfig().input.startDay
|
|
162
163
|
},
|
|
163
164
|
labelFormat: String,
|
|
164
165
|
valueFormat: String,
|
|
@@ -171,7 +172,7 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
171
172
|
// week
|
|
172
173
|
selectDay: {
|
|
173
174
|
type: [String, Number],
|
|
174
|
-
default: () =>
|
|
175
|
+
default: () => getConfig().input.selectDay
|
|
175
176
|
},
|
|
176
177
|
prefixIcon: String,
|
|
177
178
|
prefixConfig: Object,
|
|
@@ -187,28 +188,7 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
187
188
|
// 已废弃
|
|
188
189
|
autocomplete: String
|
|
189
190
|
},
|
|
190
|
-
emits: [
|
|
191
|
-
"update:modelValue",
|
|
192
|
-
"input",
|
|
193
|
-
"change",
|
|
194
|
-
"keydown",
|
|
195
|
-
"keyup",
|
|
196
|
-
"wheel",
|
|
197
|
-
"click",
|
|
198
|
-
"focus",
|
|
199
|
-
"blur",
|
|
200
|
-
"clear",
|
|
201
|
-
"lazy-change",
|
|
202
|
-
"search-click",
|
|
203
|
-
"toggle-visible",
|
|
204
|
-
"prev-number",
|
|
205
|
-
"next-number",
|
|
206
|
-
"prefix-click",
|
|
207
|
-
"suffix-click",
|
|
208
|
-
"date-prev",
|
|
209
|
-
"date-today",
|
|
210
|
-
"date-next"
|
|
211
|
-
],
|
|
191
|
+
emits: ["update:modelValue", "input", "change", "keydown", "keyup", "wheel", "click", "focus", "blur", "clear", "lazy-change", "search-click", "toggle-visible", "prev-number", "next-number", "prefix-click", "suffix-click", "date-prev", "date-today", "date-next"],
|
|
212
192
|
setup(props, context) {
|
|
213
193
|
const { slots, emit } = context;
|
|
214
194
|
const $xeSelect = (0, import_vue.inject)("$xeSelect", null);
|
|
@@ -219,7 +199,7 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
219
199
|
const $xeForm = (0, import_vue.inject)("$xeForm", null);
|
|
220
200
|
const formItemInfo = (0, import_vue.inject)("xeFormItemInfo", null);
|
|
221
201
|
const xID = import_xe_utils.default.uniqueId();
|
|
222
|
-
const { computeSize } =
|
|
202
|
+
const { computeSize } = useFns.useSize(props);
|
|
223
203
|
const reactData = (0, import_vue.reactive)({
|
|
224
204
|
initialized: false,
|
|
225
205
|
panelIndex: 0,
|
|
@@ -245,8 +225,8 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
245
225
|
dnTimeout: void 0
|
|
246
226
|
};
|
|
247
227
|
const defaultFuncProps = {
|
|
248
|
-
festivalMethod:
|
|
249
|
-
disabledMethod:
|
|
228
|
+
festivalMethod: getConfig().input.festivalMethod,
|
|
229
|
+
disabledMethod: getConfig().input.disabledMethod
|
|
250
230
|
};
|
|
251
231
|
const refElem = (0, import_vue.ref)();
|
|
252
232
|
const refInputTarget = (0, import_vue.ref)();
|
|
@@ -273,15 +253,15 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
273
253
|
return import_xe_utils.default.toStringDate(value, format);
|
|
274
254
|
};
|
|
275
255
|
const computePrefixOpts = (0, import_vue.computed)(() => {
|
|
276
|
-
return Object.assign({},
|
|
256
|
+
return Object.assign({}, getConfig().input.prefixConfig, props.prefixConfig);
|
|
277
257
|
});
|
|
278
258
|
const computeSuffixOpts = (0, import_vue.computed)(() => {
|
|
279
|
-
return Object.assign({},
|
|
259
|
+
return Object.assign({}, getConfig().input.suffixConfig, props.suffixConfig);
|
|
280
260
|
});
|
|
281
261
|
const computeBtnTransfer = (0, import_vue.computed)(() => {
|
|
282
262
|
const { transfer } = props;
|
|
283
263
|
if (transfer === null) {
|
|
284
|
-
const globalTransfer =
|
|
264
|
+
const globalTransfer = getConfig().input.transfer;
|
|
285
265
|
if (import_xe_utils.default.isBoolean(globalTransfer)) {
|
|
286
266
|
return globalTransfer;
|
|
287
267
|
}
|
|
@@ -292,7 +272,7 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
292
272
|
return transfer;
|
|
293
273
|
});
|
|
294
274
|
const computeFormReadonly = (0, import_vue.computed)(() => {
|
|
295
|
-
if (
|
|
275
|
+
if (getConfig().inputReadonly === "obsolete") {
|
|
296
276
|
if ($xeForm) {
|
|
297
277
|
return $xeForm.props.readonly;
|
|
298
278
|
}
|
|
@@ -475,7 +455,7 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
475
455
|
const { labelFormat } = props;
|
|
476
456
|
const isDatePickerType = computeIsDatePickerType.value;
|
|
477
457
|
if (isDatePickerType) {
|
|
478
|
-
return labelFormat ||
|
|
458
|
+
return labelFormat || getI18n(`vxe.input.date.labelFormat.${props.type}`);
|
|
479
459
|
}
|
|
480
460
|
return "";
|
|
481
461
|
});
|
|
@@ -516,12 +496,12 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
516
496
|
month = selectMonth.getMonth() + 1;
|
|
517
497
|
}
|
|
518
498
|
if (datePanelType === "quarter" || datePanelType === "month") {
|
|
519
|
-
y =
|
|
499
|
+
y = getI18n("vxe.datePicker.yearTitle", [year]);
|
|
520
500
|
} else if (datePanelType === "year") {
|
|
521
501
|
y = yearList.length ? `${yearList[0].year} - ${yearList[yearList.length - 1].year}` : "";
|
|
522
502
|
} else {
|
|
523
|
-
y =
|
|
524
|
-
m = month ?
|
|
503
|
+
y = getI18n("vxe.datePicker.yearTitle", [year]);
|
|
504
|
+
m = month ? getI18n(`vxe.input.date.m${month}`) : "-";
|
|
525
505
|
}
|
|
526
506
|
}
|
|
527
507
|
return {
|
|
@@ -557,7 +537,7 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
557
537
|
return weekDatas.map((day) => {
|
|
558
538
|
return {
|
|
559
539
|
value: day,
|
|
560
|
-
label:
|
|
540
|
+
label: getI18n(`vxe.input.date.weeks.w${day}`)
|
|
561
541
|
};
|
|
562
542
|
});
|
|
563
543
|
}
|
|
@@ -567,7 +547,7 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
567
547
|
const isDatePickerType = computeIsDatePickerType.value;
|
|
568
548
|
if (isDatePickerType) {
|
|
569
549
|
const dateHeaders = computeDateHeaders.value;
|
|
570
|
-
return [{ label:
|
|
550
|
+
return [{ label: getI18n("vxe.input.date.weeks.w") }].concat(dateHeaders);
|
|
571
551
|
}
|
|
572
552
|
return [];
|
|
573
553
|
});
|
|
@@ -749,11 +729,11 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
749
729
|
return (0, import_utils.getFuncText)(placeholder);
|
|
750
730
|
}
|
|
751
731
|
if (import_xe_utils.default.eqNull(placeholder)) {
|
|
752
|
-
const globalPlaceholder =
|
|
732
|
+
const globalPlaceholder = getConfig().input.placeholder;
|
|
753
733
|
if (globalPlaceholder) {
|
|
754
734
|
return (0, import_utils.getFuncText)(globalPlaceholder);
|
|
755
735
|
}
|
|
756
|
-
return
|
|
736
|
+
return getI18n("vxe.base.pleaseInput");
|
|
757
737
|
}
|
|
758
738
|
return placeholder;
|
|
759
739
|
});
|
|
@@ -805,7 +785,7 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
805
785
|
return restVal.slice(0, inpMaxLength);
|
|
806
786
|
};
|
|
807
787
|
const dispatchEvent = (type, params, evnt) => {
|
|
808
|
-
emit(type,
|
|
788
|
+
emit(type, createEvent(evnt, { $input: $xeInput }, params));
|
|
809
789
|
};
|
|
810
790
|
const updateDomValue = () => {
|
|
811
791
|
const domValue = computeDomValue.value;
|
|
@@ -1186,8 +1166,8 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
1186
1166
|
dispatchEvent("prev-number", { value: reactData.inputValue }, evnt);
|
|
1187
1167
|
};
|
|
1188
1168
|
const numberKeydownEvent = (evnt) => {
|
|
1189
|
-
const isUpArrow =
|
|
1190
|
-
const isDwArrow =
|
|
1169
|
+
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
1170
|
+
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
1191
1171
|
if (isUpArrow || isDwArrow) {
|
|
1192
1172
|
evnt.preventDefault();
|
|
1193
1173
|
if (isUpArrow) {
|
|
@@ -1205,11 +1185,11 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
1205
1185
|
const isShiftKey = evnt.shiftKey;
|
|
1206
1186
|
const isAltKey = evnt.altKey;
|
|
1207
1187
|
const keyCode = evnt.keyCode;
|
|
1208
|
-
const isEsc =
|
|
1209
|
-
const isUpArrow =
|
|
1210
|
-
const isDwArrow =
|
|
1188
|
+
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
1189
|
+
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
1190
|
+
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
1211
1191
|
if (!isControlKey && !isShiftKey && !isAltKey) {
|
|
1212
|
-
if (
|
|
1192
|
+
if (globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR) || type === "integer" && keyCode === 110 || (!exponential || keyCode !== 69) && keyCode >= 65 && keyCode <= 90 || keyCode >= 186 && keyCode <= 188 || keyCode >= 191) {
|
|
1213
1193
|
evnt.preventDefault();
|
|
1214
1194
|
}
|
|
1215
1195
|
}
|
|
@@ -1537,10 +1517,10 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
1537
1517
|
const { isActivated, datePanelValue, datePanelType } = reactData;
|
|
1538
1518
|
if (isActivated) {
|
|
1539
1519
|
evnt.preventDefault();
|
|
1540
|
-
const isLeftArrow =
|
|
1541
|
-
const isUpArrow =
|
|
1542
|
-
const isRightArrow =
|
|
1543
|
-
const isDwArrow =
|
|
1520
|
+
const isLeftArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
1521
|
+
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
1522
|
+
const isRightArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
1523
|
+
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
1544
1524
|
if (datePanelType === "year") {
|
|
1545
1525
|
let offsetYear = import_xe_utils.default.getWhatYear(datePanelValue || Date.now(), 0, "first");
|
|
1546
1526
|
if (isLeftArrow) {
|
|
@@ -1596,7 +1576,7 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
1596
1576
|
const datePgOffsetEvent = (evnt) => {
|
|
1597
1577
|
const { isActivated } = reactData;
|
|
1598
1578
|
if (isActivated) {
|
|
1599
|
-
const isPgUp =
|
|
1579
|
+
const isPgUp = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.PAGE_UP);
|
|
1600
1580
|
evnt.preventDefault();
|
|
1601
1581
|
if (isPgUp) {
|
|
1602
1582
|
datePrevEvent(evnt);
|
|
@@ -1764,16 +1744,16 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
1764
1744
|
const isDisabled = computeIsDisabled.value;
|
|
1765
1745
|
const isDatePickerType = computeIsDatePickerType.value;
|
|
1766
1746
|
if (!isDisabled) {
|
|
1767
|
-
const isTab =
|
|
1768
|
-
const isDel =
|
|
1769
|
-
const isEsc =
|
|
1770
|
-
const isEnter =
|
|
1771
|
-
const isLeftArrow =
|
|
1772
|
-
const isUpArrow =
|
|
1773
|
-
const isRightArrow =
|
|
1774
|
-
const isDwArrow =
|
|
1775
|
-
const isPgUp =
|
|
1776
|
-
const isPgDn =
|
|
1747
|
+
const isTab = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
|
|
1748
|
+
const isDel = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
1749
|
+
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
1750
|
+
const isEnter = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
1751
|
+
const isLeftArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
1752
|
+
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
1753
|
+
const isRightArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
1754
|
+
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
1755
|
+
const isPgUp = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.PAGE_UP);
|
|
1756
|
+
const isPgDn = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.PAGE_DOWN);
|
|
1777
1757
|
const operArrow = isLeftArrow || isUpArrow || isRightArrow || isDwArrow;
|
|
1778
1758
|
let isActivated = reactData.isActivated;
|
|
1779
1759
|
if (isTab) {
|
|
@@ -1887,32 +1867,55 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
1887
1867
|
const festivalItem = festivalRest ? import_xe_utils.default.isString(festivalRest) ? { label: festivalRest } : festivalRest : {};
|
|
1888
1868
|
const extraItem = festivalItem.extra ? import_xe_utils.default.isString(festivalItem.extra) ? { label: festivalItem.extra } : festivalItem.extra : null;
|
|
1889
1869
|
const labels = [
|
|
1890
|
-
(0, import_vue.h)(
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
},
|
|
1900
|
-
|
|
1870
|
+
(0, import_vue.h)(
|
|
1871
|
+
"span",
|
|
1872
|
+
{
|
|
1873
|
+
class: [
|
|
1874
|
+
"vxe-input--date-label",
|
|
1875
|
+
{
|
|
1876
|
+
"is-notice": festivalItem.notice
|
|
1877
|
+
}
|
|
1878
|
+
]
|
|
1879
|
+
},
|
|
1880
|
+
extraItem && extraItem.label ? [
|
|
1881
|
+
(0, import_vue.h)("span", `${label || ""}`),
|
|
1882
|
+
(0, import_vue.h)(
|
|
1883
|
+
"span",
|
|
1884
|
+
{
|
|
1885
|
+
class: ["vxe-input--date-label--extra", extraItem.important ? "is-important" : "", extraItem.className],
|
|
1886
|
+
style: extraItem.style
|
|
1887
|
+
},
|
|
1888
|
+
import_xe_utils.default.toValueString(extraItem.label)
|
|
1889
|
+
)
|
|
1890
|
+
] : [`${label || ""}`]
|
|
1891
|
+
)
|
|
1901
1892
|
];
|
|
1902
1893
|
const festivalLabel = festivalItem.label;
|
|
1903
1894
|
if (festivalLabel) {
|
|
1904
1895
|
const festivalLabels = import_xe_utils.default.toValueString(festivalLabel).split(",");
|
|
1905
1896
|
labels.push(
|
|
1906
|
-
(0, import_vue.h)(
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1897
|
+
(0, import_vue.h)(
|
|
1898
|
+
"span",
|
|
1899
|
+
{
|
|
1900
|
+
class: ["vxe-input--date-festival", festivalItem.important ? "is-important" : "", festivalItem.className],
|
|
1901
|
+
style: festivalItem.style
|
|
1902
|
+
},
|
|
1903
|
+
[
|
|
1904
|
+
festivalLabels.length > 1 ? (0, import_vue.h)(
|
|
1905
|
+
"span",
|
|
1906
|
+
{
|
|
1907
|
+
class: ["vxe-input--date-festival--overlap", `overlap--${festivalLabels.length}`]
|
|
1908
|
+
},
|
|
1909
|
+
festivalLabels.map((label2) => (0, import_vue.h)("span", label2.substring(0, 3)))
|
|
1910
|
+
) : (0, import_vue.h)(
|
|
1911
|
+
"span",
|
|
1912
|
+
{
|
|
1913
|
+
class: "vxe-input--date-festival--label"
|
|
1914
|
+
},
|
|
1915
|
+
festivalLabels[0].substring(0, 3)
|
|
1916
|
+
)
|
|
1917
|
+
]
|
|
1918
|
+
)
|
|
1916
1919
|
);
|
|
1917
1920
|
}
|
|
1918
1921
|
return labels;
|
|
@@ -1928,35 +1931,52 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
1928
1931
|
const dateListValue = computeDateListValue.value;
|
|
1929
1932
|
const matchFormat = "yyyyMMdd";
|
|
1930
1933
|
return [
|
|
1931
|
-
(0, import_vue.h)(
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
"
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1934
|
+
(0, import_vue.h)(
|
|
1935
|
+
"table",
|
|
1936
|
+
{
|
|
1937
|
+
class: `vxe-input--date-${datePanelType}-view`,
|
|
1938
|
+
cellspacing: 0,
|
|
1939
|
+
cellpadding: 0,
|
|
1940
|
+
border: 0
|
|
1941
|
+
},
|
|
1942
|
+
[
|
|
1943
|
+
(0, import_vue.h)("thead", [
|
|
1944
|
+
(0, import_vue.h)(
|
|
1945
|
+
"tr",
|
|
1946
|
+
dateHeaders.map((item) => {
|
|
1947
|
+
return (0, import_vue.h)("th", item.label);
|
|
1948
|
+
})
|
|
1949
|
+
)
|
|
1950
|
+
]),
|
|
1951
|
+
(0, import_vue.h)(
|
|
1952
|
+
"tbody",
|
|
1953
|
+
dayDatas.map((rows) => {
|
|
1954
|
+
return (0, import_vue.h)(
|
|
1955
|
+
"tr",
|
|
1956
|
+
rows.map((item) => {
|
|
1957
|
+
return (0, import_vue.h)(
|
|
1958
|
+
"td",
|
|
1959
|
+
{
|
|
1960
|
+
class: {
|
|
1961
|
+
"is--prev": item.isPrev,
|
|
1962
|
+
"is--current": item.isCurrent,
|
|
1963
|
+
"is--now": item.isNow,
|
|
1964
|
+
"is--next": item.isNext,
|
|
1965
|
+
"is--disabled": isDateDisabled(item),
|
|
1966
|
+
"is--selected": multiple ? dateListValue.some((val) => import_xe_utils.default.isDateSame(val, item.date, matchFormat)) : import_xe_utils.default.isDateSame(dateValue, item.date, matchFormat),
|
|
1967
|
+
"is--hover": import_xe_utils.default.isDateSame(datePanelValue, item.date, matchFormat)
|
|
1968
|
+
},
|
|
1969
|
+
onClick: () => dateSelectEvent(item),
|
|
1970
|
+
onMouseenter: () => dateMouseenterEvent(item)
|
|
1971
|
+
},
|
|
1972
|
+
renderDateLabel(item, item.label)
|
|
1973
|
+
);
|
|
1974
|
+
})
|
|
1975
|
+
);
|
|
1976
|
+
})
|
|
1977
|
+
)
|
|
1978
|
+
]
|
|
1979
|
+
)
|
|
1960
1980
|
];
|
|
1961
1981
|
};
|
|
1962
1982
|
const renderDateWeekTable = () => {
|
|
@@ -1968,38 +1988,55 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
1968
1988
|
const dateListValue = computeDateListValue.value;
|
|
1969
1989
|
const matchFormat = "yyyyMMdd";
|
|
1970
1990
|
return [
|
|
1971
|
-
(0, import_vue.h)(
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
"
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
1991
|
+
(0, import_vue.h)(
|
|
1992
|
+
"table",
|
|
1993
|
+
{
|
|
1994
|
+
class: `vxe-input--date-${datePanelType}-view`,
|
|
1995
|
+
cellspacing: 0,
|
|
1996
|
+
cellpadding: 0,
|
|
1997
|
+
border: 0
|
|
1998
|
+
},
|
|
1999
|
+
[
|
|
2000
|
+
(0, import_vue.h)("thead", [
|
|
2001
|
+
(0, import_vue.h)(
|
|
2002
|
+
"tr",
|
|
2003
|
+
weekHeaders.map((item) => {
|
|
2004
|
+
return (0, import_vue.h)("th", item.label);
|
|
2005
|
+
})
|
|
2006
|
+
)
|
|
2007
|
+
]),
|
|
2008
|
+
(0, import_vue.h)(
|
|
2009
|
+
"tbody",
|
|
2010
|
+
weekDates.map((rows) => {
|
|
2011
|
+
const isSelected = multiple ? rows.some((item) => dateListValue.some((val) => import_xe_utils.default.isDateSame(val, item.date, matchFormat))) : rows.some((item) => import_xe_utils.default.isDateSame(dateValue, item.date, matchFormat));
|
|
2012
|
+
const isHover = rows.some((item) => import_xe_utils.default.isDateSame(datePanelValue, item.date, matchFormat));
|
|
2013
|
+
return (0, import_vue.h)(
|
|
2014
|
+
"tr",
|
|
2015
|
+
rows.map((item) => {
|
|
2016
|
+
return (0, import_vue.h)(
|
|
2017
|
+
"td",
|
|
2018
|
+
{
|
|
2019
|
+
class: {
|
|
2020
|
+
"is--prev": item.isPrev,
|
|
2021
|
+
"is--current": item.isCurrent,
|
|
2022
|
+
"is--now": item.isNow,
|
|
2023
|
+
"is--next": item.isNext,
|
|
2024
|
+
"is--disabled": isDateDisabled(item),
|
|
2025
|
+
"is--selected": isSelected,
|
|
2026
|
+
"is--hover": isHover
|
|
2027
|
+
},
|
|
2028
|
+
// event
|
|
2029
|
+
onClick: () => dateSelectEvent(item),
|
|
2030
|
+
onMouseenter: () => dateMouseenterEvent(item)
|
|
2031
|
+
},
|
|
2032
|
+
renderDateLabel(item, item.label)
|
|
2033
|
+
);
|
|
2034
|
+
})
|
|
2035
|
+
);
|
|
2036
|
+
})
|
|
2037
|
+
)
|
|
2038
|
+
]
|
|
2039
|
+
)
|
|
2003
2040
|
];
|
|
2004
2041
|
};
|
|
2005
2042
|
const renderDateMonthTable = () => {
|
|
@@ -2010,30 +2047,44 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
2010
2047
|
const dateListValue = computeDateListValue.value;
|
|
2011
2048
|
const matchFormat = "yyyyMM";
|
|
2012
2049
|
return [
|
|
2013
|
-
(0, import_vue.h)(
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
"
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2050
|
+
(0, import_vue.h)(
|
|
2051
|
+
"table",
|
|
2052
|
+
{
|
|
2053
|
+
class: `vxe-input--date-${datePanelType}-view`,
|
|
2054
|
+
cellspacing: 0,
|
|
2055
|
+
cellpadding: 0,
|
|
2056
|
+
border: 0
|
|
2057
|
+
},
|
|
2058
|
+
[
|
|
2059
|
+
(0, import_vue.h)(
|
|
2060
|
+
"tbody",
|
|
2061
|
+
monthDatas.map((rows) => {
|
|
2062
|
+
return (0, import_vue.h)(
|
|
2063
|
+
"tr",
|
|
2064
|
+
rows.map((item) => {
|
|
2065
|
+
return (0, import_vue.h)(
|
|
2066
|
+
"td",
|
|
2067
|
+
{
|
|
2068
|
+
class: {
|
|
2069
|
+
"is--prev": item.isPrev,
|
|
2070
|
+
"is--current": item.isCurrent,
|
|
2071
|
+
"is--now": item.isNow,
|
|
2072
|
+
"is--next": item.isNext,
|
|
2073
|
+
"is--disabled": isDateDisabled(item),
|
|
2074
|
+
"is--selected": multiple ? dateListValue.some((val) => import_xe_utils.default.isDateSame(val, item.date, matchFormat)) : import_xe_utils.default.isDateSame(dateValue, item.date, matchFormat),
|
|
2075
|
+
"is--hover": import_xe_utils.default.isDateSame(datePanelValue, item.date, matchFormat)
|
|
2076
|
+
},
|
|
2077
|
+
onClick: () => dateSelectEvent(item),
|
|
2078
|
+
onMouseenter: () => dateMouseenterEvent(item)
|
|
2079
|
+
},
|
|
2080
|
+
renderDateLabel(item, getI18n(`vxe.input.date.months.m${item.month}`))
|
|
2081
|
+
);
|
|
2082
|
+
})
|
|
2083
|
+
);
|
|
2084
|
+
})
|
|
2085
|
+
)
|
|
2086
|
+
]
|
|
2087
|
+
)
|
|
2037
2088
|
];
|
|
2038
2089
|
};
|
|
2039
2090
|
const renderDateQuarterTable = () => {
|
|
@@ -2044,30 +2095,44 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
2044
2095
|
const dateListValue = computeDateListValue.value;
|
|
2045
2096
|
const matchFormat = "yyyyq";
|
|
2046
2097
|
return [
|
|
2047
|
-
(0, import_vue.h)(
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
"
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2098
|
+
(0, import_vue.h)(
|
|
2099
|
+
"table",
|
|
2100
|
+
{
|
|
2101
|
+
class: `vxe-input--date-${datePanelType}-view`,
|
|
2102
|
+
cellspacing: 0,
|
|
2103
|
+
cellpadding: 0,
|
|
2104
|
+
border: 0
|
|
2105
|
+
},
|
|
2106
|
+
[
|
|
2107
|
+
(0, import_vue.h)(
|
|
2108
|
+
"tbody",
|
|
2109
|
+
quarterDatas.map((rows) => {
|
|
2110
|
+
return (0, import_vue.h)(
|
|
2111
|
+
"tr",
|
|
2112
|
+
rows.map((item) => {
|
|
2113
|
+
return (0, import_vue.h)(
|
|
2114
|
+
"td",
|
|
2115
|
+
{
|
|
2116
|
+
class: {
|
|
2117
|
+
"is--prev": item.isPrev,
|
|
2118
|
+
"is--current": item.isCurrent,
|
|
2119
|
+
"is--now": item.isNow,
|
|
2120
|
+
"is--next": item.isNext,
|
|
2121
|
+
"is--disabled": isDateDisabled(item),
|
|
2122
|
+
"is--selected": multiple ? dateListValue.some((val) => import_xe_utils.default.isDateSame(val, item.date, matchFormat)) : import_xe_utils.default.isDateSame(dateValue, item.date, matchFormat),
|
|
2123
|
+
"is--hover": import_xe_utils.default.isDateSame(datePanelValue, item.date, matchFormat)
|
|
2124
|
+
},
|
|
2125
|
+
onClick: () => dateSelectEvent(item),
|
|
2126
|
+
onMouseenter: () => dateMouseenterEvent(item)
|
|
2127
|
+
},
|
|
2128
|
+
renderDateLabel(item, getI18n(`vxe.input.date.quarters.q${item.quarter}`))
|
|
2129
|
+
);
|
|
2130
|
+
})
|
|
2131
|
+
);
|
|
2132
|
+
})
|
|
2133
|
+
)
|
|
2134
|
+
]
|
|
2135
|
+
)
|
|
2071
2136
|
];
|
|
2072
2137
|
};
|
|
2073
2138
|
const renderDateYearTable = () => {
|
|
@@ -2078,30 +2143,44 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
2078
2143
|
const dateListValue = computeDateListValue.value;
|
|
2079
2144
|
const matchFormat = "yyyy";
|
|
2080
2145
|
return [
|
|
2081
|
-
(0, import_vue.h)(
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
"
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2146
|
+
(0, import_vue.h)(
|
|
2147
|
+
"table",
|
|
2148
|
+
{
|
|
2149
|
+
class: `vxe-input--date-${datePanelType}-view`,
|
|
2150
|
+
cellspacing: 0,
|
|
2151
|
+
cellpadding: 0,
|
|
2152
|
+
border: 0
|
|
2153
|
+
},
|
|
2154
|
+
[
|
|
2155
|
+
(0, import_vue.h)(
|
|
2156
|
+
"tbody",
|
|
2157
|
+
yearDatas.map((rows) => {
|
|
2158
|
+
return (0, import_vue.h)(
|
|
2159
|
+
"tr",
|
|
2160
|
+
rows.map((item) => {
|
|
2161
|
+
return (0, import_vue.h)(
|
|
2162
|
+
"td",
|
|
2163
|
+
{
|
|
2164
|
+
class: {
|
|
2165
|
+
"is--prev": item.isPrev,
|
|
2166
|
+
"is--current": item.isCurrent,
|
|
2167
|
+
"is--now": item.isNow,
|
|
2168
|
+
"is--next": item.isNext,
|
|
2169
|
+
"is--disabled": isDateDisabled(item),
|
|
2170
|
+
"is--selected": multiple ? dateListValue.some((val) => import_xe_utils.default.isDateSame(val, item.date, matchFormat)) : import_xe_utils.default.isDateSame(dateValue, item.date, matchFormat),
|
|
2171
|
+
"is--hover": import_xe_utils.default.isDateSame(datePanelValue, item.date, matchFormat)
|
|
2172
|
+
},
|
|
2173
|
+
onClick: () => dateSelectEvent(item),
|
|
2174
|
+
onMouseenter: () => dateMouseenterEvent(item)
|
|
2175
|
+
},
|
|
2176
|
+
renderDateLabel(item, item.year)
|
|
2177
|
+
);
|
|
2178
|
+
})
|
|
2179
|
+
);
|
|
2180
|
+
})
|
|
2181
|
+
)
|
|
2182
|
+
]
|
|
2183
|
+
)
|
|
2105
2184
|
];
|
|
2106
2185
|
};
|
|
2107
2186
|
const renderDateTable = () => {
|
|
@@ -2125,72 +2204,130 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
2125
2204
|
const isDisabledNextDateBtn = computeIsDisabledNextDateBtn.value;
|
|
2126
2205
|
const selectDatePanelObj = computeSelectDatePanelObj.value;
|
|
2127
2206
|
return [
|
|
2128
|
-
(0, import_vue.h)(
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2207
|
+
(0, import_vue.h)(
|
|
2208
|
+
"div",
|
|
2209
|
+
{
|
|
2210
|
+
class: "vxe-input--date-picker-header"
|
|
2211
|
+
},
|
|
2212
|
+
[
|
|
2213
|
+
(0, import_vue.h)(
|
|
2214
|
+
"div",
|
|
2215
|
+
{
|
|
2216
|
+
class: "vxe-input--date-picker-type-wrapper"
|
|
2217
|
+
},
|
|
2218
|
+
[
|
|
2219
|
+
datePanelType === "year" ? (0, import_vue.h)(
|
|
2220
|
+
"span",
|
|
2221
|
+
{
|
|
2222
|
+
class: "vxe-input--date-picker-label"
|
|
2223
|
+
},
|
|
2224
|
+
selectDatePanelObj.y
|
|
2225
|
+
) : (0, import_vue.h)(
|
|
2226
|
+
"span",
|
|
2227
|
+
{
|
|
2228
|
+
class: "vxe-input--date-picker-btns"
|
|
2229
|
+
},
|
|
2230
|
+
[
|
|
2231
|
+
(0, import_vue.h)(
|
|
2232
|
+
"span",
|
|
2233
|
+
{
|
|
2234
|
+
class: "vxe-input--date-picker-btn",
|
|
2235
|
+
onClick: dateToggleYearTypeEvent
|
|
2236
|
+
},
|
|
2237
|
+
selectDatePanelObj.y
|
|
2238
|
+
),
|
|
2239
|
+
selectDatePanelObj.m ? (0, import_vue.h)(
|
|
2240
|
+
"span",
|
|
2241
|
+
{
|
|
2242
|
+
class: "vxe-input--date-picker-btn",
|
|
2243
|
+
onClick: dateToggleMonthTypeEvent
|
|
2244
|
+
},
|
|
2245
|
+
selectDatePanelObj.m
|
|
2246
|
+
) : renderEmptyElement($xeInput)
|
|
2247
|
+
]
|
|
2248
|
+
)
|
|
2249
|
+
]
|
|
2250
|
+
),
|
|
2251
|
+
(0, import_vue.h)(
|
|
2252
|
+
"div",
|
|
2253
|
+
{
|
|
2254
|
+
class: "vxe-input--date-picker-btn-wrapper"
|
|
2255
|
+
},
|
|
2256
|
+
[
|
|
2257
|
+
(0, import_vue.h)(
|
|
2258
|
+
"span",
|
|
2259
|
+
{
|
|
2260
|
+
class: [
|
|
2261
|
+
"vxe-input--date-picker-btn vxe-input--date-picker-prev-btn",
|
|
2262
|
+
{
|
|
2263
|
+
"is--disabled": isDisabledPrevDateBtn
|
|
2264
|
+
}
|
|
2265
|
+
],
|
|
2266
|
+
onClick: datePrevEvent
|
|
2267
|
+
},
|
|
2268
|
+
[
|
|
2269
|
+
(0, import_vue.h)("i", {
|
|
2270
|
+
class: "vxe-icon-caret-left"
|
|
2271
|
+
})
|
|
2272
|
+
]
|
|
2273
|
+
),
|
|
2274
|
+
(0, import_vue.h)(
|
|
2275
|
+
"span",
|
|
2276
|
+
{
|
|
2277
|
+
class: "vxe-input--date-picker-btn vxe-input--date-picker-current-btn",
|
|
2278
|
+
onClick: dateTodayMonthEvent
|
|
2279
|
+
},
|
|
2280
|
+
[
|
|
2281
|
+
(0, import_vue.h)("i", {
|
|
2282
|
+
class: "vxe-icon-dot"
|
|
2283
|
+
})
|
|
2284
|
+
]
|
|
2285
|
+
),
|
|
2286
|
+
(0, import_vue.h)(
|
|
2287
|
+
"span",
|
|
2288
|
+
{
|
|
2289
|
+
class: [
|
|
2290
|
+
"vxe-input--date-picker-btn vxe-input--date-picker-next-btn",
|
|
2291
|
+
{
|
|
2292
|
+
"is--disabled": isDisabledNextDateBtn
|
|
2293
|
+
}
|
|
2294
|
+
],
|
|
2295
|
+
onClick: dateNextEvent
|
|
2296
|
+
},
|
|
2297
|
+
[
|
|
2298
|
+
(0, import_vue.h)("i", {
|
|
2299
|
+
class: "vxe-icon-caret-right"
|
|
2300
|
+
})
|
|
2301
|
+
]
|
|
2302
|
+
),
|
|
2303
|
+
multiple && computeSupportMultiples.value ? (0, import_vue.h)(
|
|
2304
|
+
"span",
|
|
2305
|
+
{
|
|
2306
|
+
class: "vxe-input--date-picker-btn vxe-input--date-picker-confirm-btn"
|
|
2307
|
+
},
|
|
2308
|
+
[
|
|
2309
|
+
(0, import_vue.h)(
|
|
2310
|
+
"button",
|
|
2311
|
+
{
|
|
2312
|
+
class: "vxe-input--date-picker-confirm",
|
|
2313
|
+
type: "button",
|
|
2314
|
+
onClick: dateConfirmEvent
|
|
2315
|
+
},
|
|
2316
|
+
getI18n("vxe.button.confirm")
|
|
2317
|
+
)
|
|
2318
|
+
]
|
|
2319
|
+
) : null
|
|
2320
|
+
]
|
|
2321
|
+
)
|
|
2322
|
+
]
|
|
2323
|
+
),
|
|
2324
|
+
(0, import_vue.h)(
|
|
2325
|
+
"div",
|
|
2326
|
+
{
|
|
2327
|
+
class: "vxe-input--date-picker-body"
|
|
2328
|
+
},
|
|
2329
|
+
renderDateTable()
|
|
2330
|
+
)
|
|
2194
2331
|
];
|
|
2195
2332
|
};
|
|
2196
2333
|
const renderTimePanel = () => {
|
|
@@ -2202,60 +2339,104 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
2202
2339
|
const hasTimeSecond = computeHasTimeSecond.value;
|
|
2203
2340
|
const secondList = computeSecondList.value;
|
|
2204
2341
|
return [
|
|
2205
|
-
(0, import_vue.h)(
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2342
|
+
(0, import_vue.h)(
|
|
2343
|
+
"div",
|
|
2344
|
+
{
|
|
2345
|
+
class: "vxe-input--time-picker-header"
|
|
2346
|
+
},
|
|
2347
|
+
[
|
|
2348
|
+
hasTimeMinute ? (0, import_vue.h)(
|
|
2349
|
+
"span",
|
|
2350
|
+
{
|
|
2351
|
+
class: "vxe-input--time-picker-title"
|
|
2352
|
+
},
|
|
2353
|
+
dateTimeLabel
|
|
2354
|
+
) : (0, import_vue.createCommentVNode)(),
|
|
2355
|
+
(0, import_vue.h)(
|
|
2356
|
+
"div",
|
|
2357
|
+
{
|
|
2358
|
+
class: "vxe-input--time-picker-btn"
|
|
2359
|
+
},
|
|
2360
|
+
[
|
|
2361
|
+
(0, import_vue.h)(
|
|
2362
|
+
"button",
|
|
2363
|
+
{
|
|
2364
|
+
class: "vxe-input--time-picker-confirm",
|
|
2365
|
+
type: "button",
|
|
2366
|
+
onClick: dateConfirmEvent
|
|
2367
|
+
},
|
|
2368
|
+
getI18n("vxe.button.confirm")
|
|
2369
|
+
)
|
|
2370
|
+
]
|
|
2371
|
+
)
|
|
2372
|
+
]
|
|
2373
|
+
),
|
|
2374
|
+
(0, import_vue.h)(
|
|
2375
|
+
"div",
|
|
2376
|
+
{
|
|
2377
|
+
ref: refInputTimeBody,
|
|
2378
|
+
class: "vxe-input--time-picker-body"
|
|
2379
|
+
},
|
|
2380
|
+
[
|
|
2381
|
+
(0, import_vue.h)(
|
|
2382
|
+
"ul",
|
|
2383
|
+
{
|
|
2384
|
+
class: "vxe-input--time-picker-hour-list"
|
|
2232
2385
|
},
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2386
|
+
hourList.map((item, index) => {
|
|
2387
|
+
return (0, import_vue.h)(
|
|
2388
|
+
"li",
|
|
2389
|
+
{
|
|
2390
|
+
key: index,
|
|
2391
|
+
class: {
|
|
2392
|
+
"is--selected": datetimePanelValue && datetimePanelValue.getHours() === item.value
|
|
2393
|
+
},
|
|
2394
|
+
onClick: (evnt) => dateHourEvent(evnt, item)
|
|
2395
|
+
},
|
|
2396
|
+
item.label
|
|
2397
|
+
);
|
|
2398
|
+
})
|
|
2399
|
+
),
|
|
2400
|
+
hasTimeMinute ? (0, import_vue.h)(
|
|
2401
|
+
"ul",
|
|
2402
|
+
{
|
|
2403
|
+
class: "vxe-input--time-picker-minute-list"
|
|
2243
2404
|
},
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2405
|
+
minuteList.map((item, index) => {
|
|
2406
|
+
return (0, import_vue.h)(
|
|
2407
|
+
"li",
|
|
2408
|
+
{
|
|
2409
|
+
key: index,
|
|
2410
|
+
class: {
|
|
2411
|
+
"is--selected": datetimePanelValue && datetimePanelValue.getMinutes() === item.value
|
|
2412
|
+
},
|
|
2413
|
+
onClick: (evnt) => dateMinuteEvent(evnt, item)
|
|
2414
|
+
},
|
|
2415
|
+
item.label
|
|
2416
|
+
);
|
|
2417
|
+
})
|
|
2418
|
+
) : (0, import_vue.createCommentVNode)(),
|
|
2419
|
+
hasTimeMinute && hasTimeSecond ? (0, import_vue.h)(
|
|
2420
|
+
"ul",
|
|
2421
|
+
{
|
|
2422
|
+
class: "vxe-input--time-picker-second-list"
|
|
2254
2423
|
},
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2424
|
+
secondList.map((item, index) => {
|
|
2425
|
+
return (0, import_vue.h)(
|
|
2426
|
+
"li",
|
|
2427
|
+
{
|
|
2428
|
+
key: index,
|
|
2429
|
+
class: {
|
|
2430
|
+
"is--selected": datetimePanelValue && datetimePanelValue.getSeconds() === item.value
|
|
2431
|
+
},
|
|
2432
|
+
onClick: (evnt) => dateSecondEvent(evnt, item)
|
|
2433
|
+
},
|
|
2434
|
+
item.label
|
|
2435
|
+
);
|
|
2436
|
+
})
|
|
2437
|
+
) : (0, import_vue.createCommentVNode)()
|
|
2438
|
+
]
|
|
2439
|
+
)
|
|
2259
2440
|
];
|
|
2260
2441
|
};
|
|
2261
2442
|
const renderPanel = () => {
|
|
@@ -2268,121 +2449,187 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
2268
2449
|
if (isDatePickerType) {
|
|
2269
2450
|
if (type === "datetime") {
|
|
2270
2451
|
renders.push(
|
|
2271
|
-
(0, import_vue.h)(
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2452
|
+
(0, import_vue.h)(
|
|
2453
|
+
"div",
|
|
2454
|
+
{
|
|
2455
|
+
key: type,
|
|
2456
|
+
ref: refPanelWrapper,
|
|
2457
|
+
class: "vxe-input--panel-layout-wrapper"
|
|
2458
|
+
},
|
|
2459
|
+
[
|
|
2460
|
+
(0, import_vue.h)(
|
|
2461
|
+
"div",
|
|
2462
|
+
{
|
|
2463
|
+
class: "vxe-input--panel-left-wrapper"
|
|
2464
|
+
},
|
|
2465
|
+
renderDatePanel()
|
|
2466
|
+
),
|
|
2467
|
+
(0, import_vue.h)(
|
|
2468
|
+
"div",
|
|
2469
|
+
{
|
|
2470
|
+
class: "vxe-input--panel-right-wrapper"
|
|
2471
|
+
},
|
|
2472
|
+
renderTimePanel()
|
|
2473
|
+
)
|
|
2474
|
+
]
|
|
2475
|
+
)
|
|
2283
2476
|
);
|
|
2284
2477
|
} else if (type === "time") {
|
|
2285
2478
|
renders.push(
|
|
2286
|
-
(0, import_vue.h)(
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2479
|
+
(0, import_vue.h)(
|
|
2480
|
+
"div",
|
|
2481
|
+
{
|
|
2482
|
+
key: type,
|
|
2483
|
+
ref: refPanelWrapper,
|
|
2484
|
+
class: "vxe-input--panel-wrapper"
|
|
2485
|
+
},
|
|
2486
|
+
renderTimePanel()
|
|
2487
|
+
)
|
|
2291
2488
|
);
|
|
2292
2489
|
} else {
|
|
2293
2490
|
renders.push(
|
|
2294
|
-
(0, import_vue.h)(
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2491
|
+
(0, import_vue.h)(
|
|
2492
|
+
"div",
|
|
2493
|
+
{
|
|
2494
|
+
key: type || "default",
|
|
2495
|
+
ref: refPanelWrapper,
|
|
2496
|
+
class: "vxe-input--panel-wrapper"
|
|
2497
|
+
},
|
|
2498
|
+
renderDatePanel()
|
|
2499
|
+
)
|
|
2299
2500
|
);
|
|
2300
2501
|
}
|
|
2301
|
-
return (0, import_vue.h)(
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
"
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2502
|
+
return (0, import_vue.h)(
|
|
2503
|
+
import_vue.Teleport,
|
|
2504
|
+
{
|
|
2505
|
+
to: "body",
|
|
2506
|
+
disabled: btnTransfer ? !initialized : true
|
|
2507
|
+
},
|
|
2508
|
+
[
|
|
2509
|
+
(0, import_vue.h)(
|
|
2510
|
+
"div",
|
|
2511
|
+
{
|
|
2512
|
+
ref: refInputPanel,
|
|
2513
|
+
class: [
|
|
2514
|
+
"vxe-table--ignore-clear vxe-input--panel",
|
|
2515
|
+
`type--${type}`,
|
|
2516
|
+
{
|
|
2517
|
+
[`size--${vSize}`]: vSize,
|
|
2518
|
+
"is--transfer": btnTransfer,
|
|
2519
|
+
"ani--leave": isAniVisible,
|
|
2520
|
+
"ani--enter": visiblePanel
|
|
2521
|
+
}
|
|
2522
|
+
],
|
|
2523
|
+
placement: panelPlacement,
|
|
2524
|
+
style: panelStyle
|
|
2525
|
+
},
|
|
2526
|
+
visiblePanel || isAniVisible ? renders : []
|
|
2527
|
+
)
|
|
2528
|
+
]
|
|
2529
|
+
);
|
|
2317
2530
|
}
|
|
2318
2531
|
return (0, import_vue.createCommentVNode)();
|
|
2319
2532
|
};
|
|
2320
2533
|
const renderNumberIcon = () => {
|
|
2321
2534
|
const isDisabledAddNumber = computeIsDisabledAddNumber.value;
|
|
2322
2535
|
const isDisabledSubtractNumber = computeIsDisabledSubtractNumber.value;
|
|
2323
|
-
return (0, import_vue.h)(
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
(0, import_vue.h)(
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2536
|
+
return (0, import_vue.h)(
|
|
2537
|
+
"div",
|
|
2538
|
+
{
|
|
2539
|
+
class: "vxe-input--control-icon"
|
|
2540
|
+
},
|
|
2541
|
+
[
|
|
2542
|
+
(0, import_vue.h)(
|
|
2543
|
+
"div",
|
|
2544
|
+
{
|
|
2545
|
+
class: "vxe-input--number-icon"
|
|
2546
|
+
},
|
|
2547
|
+
[
|
|
2548
|
+
(0, import_vue.h)(
|
|
2549
|
+
"div",
|
|
2550
|
+
{
|
|
2551
|
+
class: [
|
|
2552
|
+
"vxe-input--number-btn is--prev",
|
|
2553
|
+
{
|
|
2554
|
+
"is--disabled": isDisabledAddNumber
|
|
2555
|
+
}
|
|
2556
|
+
],
|
|
2557
|
+
onMousedown: numberMousedownEvent,
|
|
2558
|
+
onMouseup: numberStopDown,
|
|
2559
|
+
onMouseleave: numberStopDown
|
|
2560
|
+
},
|
|
2561
|
+
[
|
|
2562
|
+
(0, import_vue.h)("i", {
|
|
2563
|
+
class: getIcon().INPUT_PLUS_NUM
|
|
2564
|
+
})
|
|
2565
|
+
]
|
|
2566
|
+
),
|
|
2567
|
+
(0, import_vue.h)(
|
|
2568
|
+
"div",
|
|
2569
|
+
{
|
|
2570
|
+
class: [
|
|
2571
|
+
"vxe-input--number-btn is--next",
|
|
2572
|
+
{
|
|
2573
|
+
"is--disabled": isDisabledSubtractNumber
|
|
2574
|
+
}
|
|
2575
|
+
],
|
|
2576
|
+
onMousedown: numberMousedownEvent,
|
|
2577
|
+
onMouseup: numberStopDown,
|
|
2578
|
+
onMouseleave: numberStopDown
|
|
2579
|
+
},
|
|
2580
|
+
[
|
|
2581
|
+
(0, import_vue.h)("i", {
|
|
2582
|
+
class: getIcon().INPUT_MINUS_NUM
|
|
2583
|
+
})
|
|
2584
|
+
]
|
|
2585
|
+
)
|
|
2586
|
+
]
|
|
2587
|
+
)
|
|
2588
|
+
]
|
|
2589
|
+
);
|
|
2355
2590
|
};
|
|
2356
2591
|
const renderDatePickerIcon = () => {
|
|
2357
|
-
return (0, import_vue.h)(
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2592
|
+
return (0, import_vue.h)(
|
|
2593
|
+
"div",
|
|
2594
|
+
{
|
|
2595
|
+
class: "vxe-input--control-icon",
|
|
2596
|
+
onClick: datePickerOpenEvent
|
|
2597
|
+
},
|
|
2598
|
+
[
|
|
2599
|
+
(0, import_vue.h)("i", {
|
|
2600
|
+
class: ["vxe-input--date-picker-icon", getIcon().DATE_PICKER_DATE]
|
|
2601
|
+
})
|
|
2602
|
+
]
|
|
2603
|
+
);
|
|
2365
2604
|
};
|
|
2366
2605
|
const renderSearchIcon = () => {
|
|
2367
|
-
return (0, import_vue.h)(
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2606
|
+
return (0, import_vue.h)(
|
|
2607
|
+
"div",
|
|
2608
|
+
{
|
|
2609
|
+
class: "vxe-input--control-icon",
|
|
2610
|
+
onClick: searchEvent
|
|
2611
|
+
},
|
|
2612
|
+
[
|
|
2613
|
+
(0, import_vue.h)("i", {
|
|
2614
|
+
class: ["vxe-input--search-icon", getIcon().INPUT_SEARCH]
|
|
2615
|
+
})
|
|
2616
|
+
]
|
|
2617
|
+
);
|
|
2375
2618
|
};
|
|
2376
2619
|
const renderPasswordIcon = () => {
|
|
2377
2620
|
const { showPwd } = reactData;
|
|
2378
|
-
return (0, import_vue.h)(
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2621
|
+
return (0, import_vue.h)(
|
|
2622
|
+
"div",
|
|
2623
|
+
{
|
|
2624
|
+
class: "vxe-input--control-icon",
|
|
2625
|
+
onClick: passwordToggleEvent
|
|
2626
|
+
},
|
|
2627
|
+
[
|
|
2628
|
+
(0, import_vue.h)("i", {
|
|
2629
|
+
class: ["vxe-input--password-icon", showPwd ? getIcon().PASSWORD_INPUT_SHOW_PWD : getIcon().PASSWORD_INPUT_HIDE_PWD]
|
|
2630
|
+
})
|
|
2631
|
+
]
|
|
2632
|
+
);
|
|
2386
2633
|
};
|
|
2387
2634
|
const renderPrefixIcon = () => {
|
|
2388
2635
|
const { prefixIcon } = props;
|
|
@@ -2390,21 +2637,33 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
2390
2637
|
const prefixSlot = slots.prefix;
|
|
2391
2638
|
const preIcon = prefixIcon || prefixOpts.icon;
|
|
2392
2639
|
const sufContent = prefixOpts.content;
|
|
2393
|
-
return prefixSlot || preIcon || sufContent ? (0, import_vue.h)(
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2640
|
+
return prefixSlot || preIcon || sufContent ? (0, import_vue.h)(
|
|
2641
|
+
"div",
|
|
2642
|
+
{
|
|
2643
|
+
class: "vxe-input--prefix",
|
|
2644
|
+
onClick: clickPrefixEvent
|
|
2645
|
+
},
|
|
2646
|
+
[
|
|
2647
|
+
(0, import_vue.h)(
|
|
2648
|
+
"div",
|
|
2649
|
+
{
|
|
2650
|
+
class: "vxe-input--prefix-icon"
|
|
2651
|
+
},
|
|
2652
|
+
prefixSlot ? (0, import_vn.getSlotVNs)(prefixSlot({})) : [
|
|
2653
|
+
preIcon ? (0, import_vue.h)("i", {
|
|
2654
|
+
class: preIcon
|
|
2655
|
+
}) : renderEmptyElement($xeInput),
|
|
2656
|
+
sufContent ? (0, import_vue.h)(
|
|
2657
|
+
"span",
|
|
2658
|
+
{
|
|
2659
|
+
class: "vxe-input--prefix-text"
|
|
2660
|
+
},
|
|
2661
|
+
`${sufContent}`
|
|
2662
|
+
) : renderEmptyElement($xeInput)
|
|
2663
|
+
]
|
|
2664
|
+
)
|
|
2665
|
+
]
|
|
2666
|
+
) : renderEmptyElement($xeInput);
|
|
2408
2667
|
};
|
|
2409
2668
|
const renderSuffixIcon = () => {
|
|
2410
2669
|
const { suffixIcon } = props;
|
|
@@ -2420,32 +2679,51 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
2420
2679
|
const isExtraBtn = isPawdType || isNumType || isDatePickerType || isSearchType;
|
|
2421
2680
|
const sufIcon = suffixIcon || suffixOpts.icon;
|
|
2422
2681
|
const sufContent = suffixOpts.content;
|
|
2423
|
-
return isClearable || suffixSlot || sufIcon || sufContent || isExtraBtn ? (0, import_vue.h)(
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2682
|
+
return isClearable || suffixSlot || sufIcon || sufContent || isExtraBtn ? (0, import_vue.h)(
|
|
2683
|
+
"div",
|
|
2684
|
+
{
|
|
2685
|
+
class: [
|
|
2686
|
+
"vxe-input--suffix",
|
|
2687
|
+
{
|
|
2688
|
+
"is--clear": isClearable && !isDisabled && !(inputValue === "" || import_xe_utils.default.eqNull(inputValue))
|
|
2689
|
+
}
|
|
2690
|
+
]
|
|
2691
|
+
},
|
|
2692
|
+
[
|
|
2693
|
+
isClearable ? (0, import_vue.h)(
|
|
2694
|
+
"div",
|
|
2695
|
+
{
|
|
2696
|
+
class: "vxe-input--clear-icon",
|
|
2697
|
+
onClick: clearValueEvent
|
|
2698
|
+
},
|
|
2699
|
+
[
|
|
2700
|
+
(0, import_vue.h)("i", {
|
|
2701
|
+
class: getIcon().INPUT_CLEAR
|
|
2702
|
+
})
|
|
2703
|
+
]
|
|
2704
|
+
) : renderEmptyElement($xeInput),
|
|
2705
|
+
isExtraBtn ? renderExtraSuffixIcon() : renderEmptyElement($xeInput),
|
|
2706
|
+
suffixSlot || sufIcon || sufContent ? (0, import_vue.h)(
|
|
2707
|
+
"div",
|
|
2708
|
+
{
|
|
2709
|
+
class: "vxe-input--suffix-icon",
|
|
2710
|
+
onClick: clickSuffixEvent
|
|
2711
|
+
},
|
|
2712
|
+
suffixSlot ? (0, import_vn.getSlotVNs)(suffixSlot({})) : [
|
|
2713
|
+
sufIcon ? (0, import_vue.h)("i", {
|
|
2714
|
+
class: sufIcon
|
|
2715
|
+
}) : renderEmptyElement($xeInput),
|
|
2716
|
+
sufContent ? (0, import_vue.h)(
|
|
2717
|
+
"span",
|
|
2718
|
+
{
|
|
2719
|
+
class: "vxe-input--suffix-text"
|
|
2720
|
+
},
|
|
2721
|
+
`${sufContent}`
|
|
2722
|
+
) : renderEmptyElement($xeInput)
|
|
2723
|
+
]
|
|
2724
|
+
) : renderEmptyElement($xeInput)
|
|
2725
|
+
]
|
|
2726
|
+
) : renderEmptyElement($xeInput);
|
|
2449
2727
|
};
|
|
2450
2728
|
const renderExtraSuffixIcon = () => {
|
|
2451
2729
|
const { controls } = props;
|
|
@@ -2476,10 +2754,14 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
2476
2754
|
const isDisabled = computeIsDisabled.value;
|
|
2477
2755
|
const formReadonly = computeFormReadonly.value;
|
|
2478
2756
|
if (formReadonly) {
|
|
2479
|
-
return (0, import_vue.h)(
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2757
|
+
return (0, import_vue.h)(
|
|
2758
|
+
"div",
|
|
2759
|
+
{
|
|
2760
|
+
ref: refElem,
|
|
2761
|
+
class: ["vxe-input--readonly", `type--${type}`, className]
|
|
2762
|
+
},
|
|
2763
|
+
inputValue
|
|
2764
|
+
);
|
|
2483
2765
|
}
|
|
2484
2766
|
const currStyle = computeCurrStyle.value;
|
|
2485
2767
|
const isCountError = computeIsCountError.value;
|
|
@@ -2493,78 +2775,109 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
2493
2775
|
const prefix = renderPrefixIcon();
|
|
2494
2776
|
const suffix = renderSuffixIcon();
|
|
2495
2777
|
const floatSlot = slots.float;
|
|
2496
|
-
return (0, import_vue.h)(
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2778
|
+
return (0, import_vue.h)(
|
|
2779
|
+
"div",
|
|
2780
|
+
{
|
|
2781
|
+
ref: refElem,
|
|
2782
|
+
class: [
|
|
2783
|
+
"vxe-input",
|
|
2784
|
+
`type--${type}`,
|
|
2785
|
+
floatContent ? `fla--${floatAlign || "center"}` : "",
|
|
2786
|
+
className,
|
|
2787
|
+
{
|
|
2788
|
+
[`size--${vSize}`]: vSize,
|
|
2789
|
+
[`is--${align}`]: align,
|
|
2790
|
+
"is--controls": controls,
|
|
2791
|
+
"is--prefix": !!prefix,
|
|
2792
|
+
"is--suffix": !!suffix,
|
|
2793
|
+
"is--visible": visiblePanel,
|
|
2794
|
+
"is--clear": isClearable,
|
|
2795
|
+
"is--count": isWordCount,
|
|
2796
|
+
"is--disabled": isDisabled,
|
|
2797
|
+
"is--active": isActivated,
|
|
2798
|
+
"show--clear": isClearable && !isDisabled && !(inputValue === "" || import_xe_utils.default.eqNull(inputValue))
|
|
2799
|
+
}
|
|
2800
|
+
],
|
|
2801
|
+
style: currStyle,
|
|
2802
|
+
spellcheck: false
|
|
2803
|
+
},
|
|
2804
|
+
[
|
|
2805
|
+
prefix || (0, import_vue.createCommentVNode)(),
|
|
2806
|
+
(0, import_vue.h)(
|
|
2807
|
+
"div",
|
|
2808
|
+
{
|
|
2809
|
+
class: "vxe-input--wrapper",
|
|
2810
|
+
title: title || null
|
|
2811
|
+
},
|
|
2812
|
+
[
|
|
2813
|
+
(0, import_vue.h)("input", {
|
|
2814
|
+
ref: refInputTarget,
|
|
2815
|
+
class: ["vxe-input--inner", inputClassName || ""],
|
|
2816
|
+
name,
|
|
2817
|
+
type: inputType,
|
|
2818
|
+
placeholder: inpPlaceholder,
|
|
2819
|
+
maxlength: inpMaxLength,
|
|
2820
|
+
readonly: inputReadonly,
|
|
2821
|
+
disabled: isDisabled,
|
|
2822
|
+
autocomplete: autoComplete || autocomplete,
|
|
2823
|
+
onKeydown: keydownEvent,
|
|
2824
|
+
onKeyup: keyupEvent,
|
|
2825
|
+
onClick: clickEvent,
|
|
2826
|
+
onInput: inputEvent,
|
|
2827
|
+
onChange: changeEvent,
|
|
2828
|
+
onFocus: focusEvent,
|
|
2829
|
+
onBlur: blurEvent
|
|
2830
|
+
}),
|
|
2831
|
+
floatContent || floatSlot ? (0, import_vue.h)(
|
|
2832
|
+
"span",
|
|
2833
|
+
{
|
|
2834
|
+
class: "vxe-input--float-wrapper"
|
|
2835
|
+
},
|
|
2836
|
+
floatSlot ? floatSlot({}) : (0, import_utils.getText)(floatContent)
|
|
2837
|
+
) : renderEmptyElement($xeInput)
|
|
2838
|
+
]
|
|
2839
|
+
),
|
|
2840
|
+
suffix || (0, import_vue.createCommentVNode)(),
|
|
2841
|
+
// 下拉面板
|
|
2842
|
+
renderPanel(),
|
|
2843
|
+
// 字数统计
|
|
2844
|
+
isWordCount ? (0, import_vue.h)(
|
|
2845
|
+
"span",
|
|
2846
|
+
{
|
|
2847
|
+
class: [
|
|
2848
|
+
"vxe-input--count",
|
|
2849
|
+
{
|
|
2850
|
+
"is--error": isCountError
|
|
2851
|
+
}
|
|
2852
|
+
]
|
|
2853
|
+
},
|
|
2854
|
+
countMethod ? `${countMethod({ value: inputValue })}` : `${inputCount}${inpMaxLength ? `/${inpMaxLength}` : ""}`
|
|
2855
|
+
) : (0, import_vue.createCommentVNode)()
|
|
2856
|
+
]
|
|
2857
|
+
);
|
|
2858
|
+
};
|
|
2859
|
+
(0, import_vue.watch)(
|
|
2860
|
+
() => props.modelValue,
|
|
2861
|
+
(val) => {
|
|
2862
|
+
reactData.inputValue = val;
|
|
2863
|
+
changeValue();
|
|
2864
|
+
}
|
|
2865
|
+
);
|
|
2866
|
+
(0, import_vue.watch)(
|
|
2867
|
+
() => props.type,
|
|
2868
|
+
() => {
|
|
2869
|
+
Object.assign(reactData, {
|
|
2870
|
+
inputValue: props.modelValue,
|
|
2871
|
+
datetimePanelValue: null,
|
|
2872
|
+
datePanelValue: null,
|
|
2873
|
+
datePanelLabel: "",
|
|
2874
|
+
datePanelType: "day",
|
|
2875
|
+
selectMonth: null,
|
|
2876
|
+
currentDate: null
|
|
2877
|
+
});
|
|
2878
|
+
initValue();
|
|
2879
|
+
}
|
|
2880
|
+
);
|
|
2568
2881
|
(0, import_vue.watch)(computeDateLabelFormat, () => {
|
|
2569
2882
|
const isDatePickerType = computeIsDatePickerType.value;
|
|
2570
2883
|
if (isDatePickerType) {
|
|
@@ -2598,10 +2911,10 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
2598
2911
|
if (inputElem) {
|
|
2599
2912
|
inputElem.addEventListener("wheel", wheelEvent, { passive: false });
|
|
2600
2913
|
}
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2914
|
+
globalEvents.on($xeInput, "mousewheel", handleGlobalMousewheelEvent);
|
|
2915
|
+
globalEvents.on($xeInput, "mousedown", handleGlobalMousedownEvent);
|
|
2916
|
+
globalEvents.on($xeInput, "keydown", handleGlobalKeydownEvent);
|
|
2917
|
+
globalEvents.on($xeInput, "blur", handleGlobalBlurEvent);
|
|
2605
2918
|
updateDomValue();
|
|
2606
2919
|
});
|
|
2607
2920
|
(0, import_vue.onBeforeUnmount)(() => {
|
|
@@ -2611,10 +2924,10 @@ var input_default = (0, import_comp.defineVxeComponent)({
|
|
|
2611
2924
|
if (inputElem) {
|
|
2612
2925
|
inputElem.removeEventListener("wheel", wheelEvent);
|
|
2613
2926
|
}
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2927
|
+
globalEvents.off($xeInput, "mousewheel");
|
|
2928
|
+
globalEvents.off($xeInput, "mousedown");
|
|
2929
|
+
globalEvents.off($xeInput, "keydown");
|
|
2930
|
+
globalEvents.off($xeInput, "blur");
|
|
2618
2931
|
});
|
|
2619
2932
|
initValue();
|
|
2620
2933
|
$xeInput.renderVN = renderVN;
|