vxe-pc-ui 4.20.34 → 4.20.36
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 +45718 -45038
- package/dist/all.esm.min.js +3 -3
- package/dist/style.css +307 -1
- package/dist/style.mini.css +1 -1
- package/es/alert/src/alert.js +117 -114
- package/es/anchor/index.d.ts +8 -8
- package/es/anchor/src/anchor-link.js +110 -107
- package/es/anchor/src/anchor.d.ts +1 -1
- package/es/anchor/src/anchor.js +212 -209
- package/es/avatar/index.d.ts +6 -6
- package/es/avatar/src/avatar.d.ts +1 -1
- package/es/avatar/src/avatar.js +132 -129
- package/es/backtop/index.d.ts +42 -42
- package/es/backtop/src/backtop.d.ts +7 -7
- package/es/backtop/src/backtop.js +267 -264
- package/es/badge/index.d.ts +6 -6
- package/es/badge/src/badge.d.ts +1 -1
- package/es/badge/src/badge.js +102 -99
- package/es/breadcrumb/src/breadcrumb-item.js +104 -101
- package/es/breadcrumb/src/breadcrumb.js +70 -67
- package/es/button/index.d.ts +20 -20
- package/es/button/src/button-group.js +88 -85
- package/es/button/src/button.d.ts +3 -3
- package/es/calendar/index.d.ts +20 -20
- package/es/calendar/src/calendar.d.ts +3 -3
- package/es/calendar/src/calendar.js +1371 -1368
- package/es/card/index.d.ts +12 -12
- package/es/card/src/card.d.ts +2 -2
- package/es/card/src/card.js +235 -232
- package/es/carousel/index.d.ts +14 -14
- package/es/carousel/src/carousel-item.js +78 -75
- package/es/carousel/src/carousel.d.ts +2 -2
- package/es/carousel/src/carousel.js +392 -389
- package/es/cascader/index.d.ts +70 -70
- package/es/cascader/src/cascader.d.ts +11 -11
- package/es/cascader/src/cascader.js +1667 -1664
- package/es/checkbox/index.d.ts +14 -14
- package/es/checkbox/src/button.d.ts +2 -2
- package/es/checkbox/src/button.js +198 -195
- package/es/checkbox/src/checkbox.d.ts +2 -2
- package/es/checkbox/src/checkbox.js +181 -178
- package/es/checkbox/src/group.d.ts +4 -4
- package/es/checkbox/src/group.js +210 -207
- package/es/checkbox-button/index.d.ts +14 -14
- package/es/checkbox-group/index.d.ts +26 -26
- package/es/collapse/index.d.ts +14 -14
- package/es/collapse/src/collapse-pane.js +98 -95
- package/es/collapse/src/collapse.d.ts +2 -2
- package/es/collapse/src/collapse.js +340 -337
- package/es/color-picker/index.d.ts +46 -46
- package/es/color-picker/src/color-picker.d.ts +8 -8
- package/es/color-picker/src/color-picker.js +1116 -1113
- package/es/color-picker/src/util.d.ts +9 -1
- package/es/components.d.ts +1 -0
- package/es/components.js +3 -0
- package/es/context-menu/index.d.ts +16 -16
- package/es/context-menu/src/context-menu.d.ts +3 -3
- package/es/context-menu/src/context-menu.js +601 -598
- package/es/countdown/index.d.ts +2 -2
- package/es/countdown/src/countdown.d.ts +1 -1
- package/es/countdown/src/countdown.js +224 -221
- package/es/date-panel/index.d.ts +46 -46
- package/es/date-panel/src/date-panel.d.ts +7 -7
- package/es/date-panel/src/date-panel.js +1905 -1902
- package/es/date-picker/index.d.ts +110 -110
- package/es/date-picker/src/date-picker.d.ts +17 -17
- package/es/date-picker/src/date-picker.js +1537 -1534
- package/es/date-range-picker/index.d.ts +114 -114
- package/es/date-range-picker/src/date-range-picker.d.ts +17 -17
- package/es/date-range-picker/src/date-range-picker.js +1412 -1409
- package/es/divider/index.d.ts +6 -6
- package/es/divider/src/divider.d.ts +1 -1
- package/es/divider/src/divider.js +80 -77
- package/es/drawer/index.d.ts +74 -74
- package/es/drawer/src/drawer.d.ts +13 -13
- package/es/drawer/src/drawer.js +778 -775
- package/es/dynamics/index.d.ts +12 -12
- package/es/empty/src/empty.js +100 -97
- package/es/form/index.d.ts +36 -36
- package/es/form/src/form-config-item.d.ts +7 -7
- package/es/form/src/form-group.d.ts +7 -7
- package/es/form/src/form-group.js +74 -71
- package/es/form/src/form-item.d.ts +7 -7
- package/es/form/src/form-item.js +76 -73
- package/es/form/src/form.d.ts +6 -6
- package/es/form/src/form.js +789 -786
- package/es/form-gather/index.d.ts +42 -42
- package/es/form-group/index.d.ts +42 -42
- package/es/form-item/index.d.ts +42 -42
- package/es/icon/src/icon.js +59 -56
- package/es/icon/style.css +1 -1
- package/es/icon/style.mini.css +1 -1
- package/es/icon-picker/index.d.ts +22 -22
- package/es/icon-picker/src/icon-picker.d.ts +4 -4
- package/es/icon-picker/src/icon-picker.js +719 -716
- package/es/image/index.d.ts +30 -30
- package/es/image/src/group.d.ts +2 -2
- package/es/image/src/group.js +130 -127
- package/es/image/src/image.d.ts +5 -5
- package/es/image/src/image.js +243 -240
- package/es/image/src/preview.d.ts +3 -3
- package/es/image/src/preview.js +627 -624
- package/es/image-group/index.d.ts +8 -8
- package/es/image-preview/index.d.ts +16 -16
- package/es/index.esm.js +2 -0
- package/es/index.js +2 -0
- package/es/input/index.d.ts +160 -160
- package/es/input/src/input.d.ts +25 -25
- package/es/input/src/input.js +2700 -2697
- package/es/layout-aside/src/layout-aside.js +138 -135
- package/es/layout-body/src/layout-body.js +145 -142
- package/es/layout-container/src/layout-container.js +71 -68
- package/es/layout-footer/src/layout-footer.js +60 -57
- package/es/layout-header/src/layout-header.js +58 -55
- package/es/link/src/link.js +131 -128
- package/es/list/src/list.js +2174 -2171
- package/es/loading/index.d.ts +6 -6
- package/es/loading/src/loading.d.ts +1 -1
- package/es/loading/src/loading.js +141 -138
- package/es/mention/src/mention.js +49 -46
- package/es/menu/index.d.ts +32 -32
- package/es/menu/src/menu.d.ts +5 -5
- package/es/menu/src/menu.js +799 -796
- package/es/modal/index.d.ts +92 -92
- package/es/modal/src/modal.d.ts +16 -16
- package/es/modal/src/modal.js +1519 -1527
- package/es/notice-bar/index.d.ts +8 -8
- package/es/notice-bar/src/notice-bar.d.ts +2 -2
- package/es/notice-bar/src/notice-bar.js +168 -165
- package/es/number-input/index.d.ts +134 -134
- package/es/number-input/src/number-input.d.ts +21 -21
- package/es/number-input/src/number-input.js +1094 -1091
- package/es/optgroup/index.d.ts +6 -6
- package/es/option/index.d.ts +6 -6
- package/es/pager/index.d.ts +34 -34
- package/es/pager/src/pager.d.ts +6 -6
- package/es/pager/src/pager.js +767 -764
- package/es/password-input/index.d.ts +72 -72
- package/es/password-input/src/password-input.d.ts +11 -11
- package/es/password-input/src/password-input.js +431 -428
- package/es/print/index.d.ts +6 -6
- package/es/print/src/page-break.js +63 -60
- package/es/print/src/print.d.ts +1 -1
- package/es/print/src/print.js +303 -300
- package/es/pulldown/index.d.ts +22 -22
- package/es/pulldown/src/pulldown.d.ts +4 -4
- package/es/pulldown/src/pulldown.js +403 -400
- package/es/radio/index.d.ts +20 -20
- package/es/radio/src/button.d.ts +3 -3
- package/es/radio/src/button.js +214 -211
- package/es/radio/src/group.d.ts +4 -4
- package/es/radio/src/group.js +195 -192
- package/es/radio/src/radio.d.ts +3 -3
- package/es/radio/src/radio.js +194 -191
- package/es/radio-button/index.d.ts +20 -20
- package/es/radio-group/index.d.ts +26 -26
- package/es/rate/index.d.ts +14 -14
- package/es/rate/src/rate.d.ts +2 -2
- package/es/rate/src/rate.js +164 -161
- package/es/result/src/result.js +116 -113
- package/es/row/index.d.ts +6 -6
- package/es/row/src/col.js +133 -130
- package/es/row/src/row.d.ts +1 -1
- package/es/row/src/row.js +111 -108
- package/es/scrollbar/index.d.ts +30 -30
- package/es/scrollbar/src/scrollbar.d.ts +5 -5
- package/es/scrollbar/src/scrollbar.js +518 -515
- package/es/segmented/index.d.ts +14 -14
- package/es/segmented/src/segmented.d.ts +2 -2
- package/es/segmented/src/segmented.js +240 -237
- package/es/select/index.d.ts +66 -66
- package/es/select/src/optgroup.d.ts +1 -1
- package/es/select/src/optgroup.js +44 -41
- package/es/select/src/option.d.ts +1 -1
- package/es/select/src/option.js +39 -36
- package/es/select/src/select.d.ts +11 -11
- package/es/select/src/select.js +1914 -1896
- package/es/slider/index.d.ts +38 -38
- package/es/slider/src/slider.d.ts +6 -6
- package/es/slider/src/slider.js +419 -416
- package/es/space/index.d.ts +36 -36
- package/es/space/src/space.d.ts +6 -6
- package/es/space/src/space.js +190 -187
- package/es/split/index.d.ts +14 -14
- package/es/split-pane/index.d.ts +18 -18
- package/es/splitter/index.d.ts +14 -14
- package/es/splitter/src/splitter-panel.d.ts +3 -3
- package/es/splitter/src/splitter-panel.js +146 -143
- package/es/splitter/src/splitter.d.ts +3 -3
- package/es/splitter/src/splitter.js +917 -914
- package/es/splitter-panel/index.d.ts +18 -18
- package/es/step-item/index.d.ts +76 -0
- package/es/step-item/index.js +17 -0
- package/es/steps/index.d.ts +288 -34
- package/es/steps/src/step-info.d.ts +6 -0
- package/es/steps/src/step-info.js +20 -0
- package/es/steps/src/step-item.d.ts +14 -0
- package/es/steps/src/step-item.js +39 -0
- package/es/steps/src/steps.d.ts +68 -8
- package/es/steps/src/steps.js +299 -47
- package/es/steps/src/util.d.ts +7 -0
- package/es/steps/src/util.js +44 -0
- package/es/steps/style.css +297 -0
- package/es/steps/style.mini.css +1 -0
- package/es/style.css +307 -1
- package/es/style.mini.css +1 -1
- package/es/switch/index.d.ts +24 -24
- package/es/switch/src/switch.d.ts +4 -4
- package/es/switch/src/switch.js +228 -225
- package/es/table-select/index.d.ts +30 -30
- package/es/table-select/src/table-select.d.ts +5 -5
- package/es/table-select/src/table-select.js +865 -862
- package/es/table-transfer/src/table-transfer.js +61 -58
- package/es/tabs/index.d.ts +26 -26
- package/es/tabs/src/tab-pane.js +102 -99
- package/es/tabs/src/tabs.d.ts +4 -4
- package/es/tabs/src/tabs.js +936 -933
- package/es/tag/index.d.ts +16 -16
- package/es/tag/src/tag.d.ts +3 -3
- package/es/tag/src/tag.js +163 -160
- package/es/text/src/text.js +232 -229
- package/es/text-ellipsis/src/text-ellipsis.js +252 -249
- package/es/textarea/index.d.ts +76 -76
- package/es/textarea/src/textarea.d.ts +12 -12
- package/es/textarea/src/textarea.js +434 -431
- package/es/timeline/index.d.ts +6 -6
- package/es/timeline/src/timeline.d.ts +1 -1
- package/es/timeline/src/timeline.js +74 -36
- package/es/timeline/src/util.js +7 -4
- package/es/tip/index.d.ts +9 -9
- package/es/tip/src/tip.d.ts +1 -1
- package/es/tip/src/tip.js +117 -114
- package/es/tooltip/index.d.ts +72 -72
- package/es/tooltip/src/tooltip.d.ts +14 -14
- package/es/tooltip/src/tooltip.js +552 -549
- package/es/tour/src/tour.js +49 -46
- package/es/transfer/src/transfer.js +95 -92
- package/es/tree/index.d.ts +44 -44
- package/es/tree/src/tree.d.ts +7 -7
- package/es/tree/src/tree.js +3379 -3376
- package/es/tree-select/index.d.ts +74 -74
- package/es/tree-select/src/tree-select.d.ts +12 -12
- package/es/tree-select/src/tree-select.js +969 -966
- package/es/ui/index.js +8 -2
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/vn.d.ts +1 -1
- package/es/upload/index.d.ts +128 -128
- package/es/upload/src/upload.d.ts +21 -21
- package/es/upload/src/upload.js +1791 -1788
- package/es/vxe-icon/style.css +1 -1
- package/es/vxe-icon/style.mini.css +1 -1
- package/es/vxe-steps/style.css +297 -0
- package/es/vxe-steps/style.mini.css +1 -0
- package/es/watermark/index.d.ts +6 -6
- package/es/watermark/src/watermark.d.ts +1 -1
- package/es/watermark/src/watermark.js +158 -155
- package/lib/alert/index.d.ts +170 -0
- package/lib/alert/src/alert.d.ts +35 -0
- package/lib/alert/src/alert.js +117 -114
- package/lib/anchor/index.d.ts +140 -0
- package/lib/anchor/src/anchor-link.d.ts +12 -0
- package/lib/anchor/src/anchor-link.js +110 -107
- package/lib/anchor/src/anchor.d.ts +26 -0
- package/lib/anchor/src/anchor.js +212 -209
- package/lib/anchor/src/util.d.ts +3 -0
- package/lib/anchor-link/index.d.ts +64 -0
- package/lib/avatar/index.d.ts +216 -0
- package/lib/avatar/src/avatar.d.ts +48 -0
- package/lib/avatar/src/avatar.js +132 -129
- package/lib/backtop/index.d.ts +640 -0
- package/lib/backtop/src/backtop.d.ts +146 -0
- package/lib/backtop/src/backtop.js +267 -264
- package/lib/badge/index.d.ts +154 -0
- package/lib/badge/src/badge.d.ts +33 -0
- package/lib/badge/src/badge.js +102 -99
- package/lib/breadcrumb/index.d.ts +108 -0
- package/lib/breadcrumb/src/breadcrumb-item.d.ts +10 -0
- package/lib/breadcrumb/src/breadcrumb-item.js +104 -101
- package/lib/breadcrumb/src/breadcrumb.d.ts +20 -0
- package/lib/breadcrumb/src/breadcrumb.js +70 -67
- package/lib/breadcrumb-item/index.d.ts +56 -0
- package/lib/button/index.d.ts +592 -0
- package/lib/button/src/button-group.d.ts +39 -0
- package/lib/button/src/button-group.js +88 -85
- package/lib/button/src/button.d.ts +235 -0
- package/lib/button-group/index.d.ts +188 -0
- package/lib/calendar/index.d.ts +442 -0
- package/lib/calendar/src/calendar.d.ts +93 -0
- package/lib/calendar/src/calendar.js +1371 -1368
- package/lib/card/index.d.ts +314 -0
- package/lib/card/src/card.d.ts +71 -0
- package/lib/card/src/card.js +235 -232
- package/lib/carousel/index.d.ts +360 -0
- package/lib/carousel/src/carousel-item.d.ts +12 -0
- package/lib/carousel/src/carousel-item.js +78 -75
- package/lib/carousel/src/carousel.d.ts +79 -0
- package/lib/carousel/src/carousel.js +392 -389
- package/lib/carousel/src/util.d.ts +3 -0
- package/lib/carousel-item/index.d.ts +64 -0
- package/lib/cascader/index.d.ts +842 -0
- package/lib/cascader/src/cascader.d.ts +183 -0
- package/lib/cascader/src/cascader.js +1665 -1662
- package/lib/cascader/src/util.d.ts +2 -0
- package/lib/checkbox/index.d.ts +292 -0
- package/lib/checkbox/src/button.d.ts +73 -0
- package/lib/checkbox/src/button.js +198 -195
- package/lib/checkbox/src/checkbox.d.ts +71 -0
- package/lib/checkbox/src/checkbox.js +181 -178
- package/lib/checkbox/src/group.d.ts +68 -0
- package/lib/checkbox/src/group.js +210 -207
- package/lib/checkbox-button/index.d.ts +304 -0
- package/lib/checkbox-group/index.d.ts +320 -0
- package/lib/col/index.d.ts +124 -0
- package/lib/collapse/index.d.ts +224 -0
- package/lib/collapse/src/collapse-pane.d.ts +16 -0
- package/lib/collapse/src/collapse-pane.js +98 -95
- package/lib/collapse/src/collapse.d.ts +45 -0
- package/lib/collapse/src/collapse.js +340 -337
- package/lib/collapse/src/util.d.ts +3 -0
- package/lib/collapse-pane/index.d.ts +80 -0
- package/lib/color-picker/index.d.ts +636 -0
- package/lib/color-picker/src/color-picker.d.ts +159 -0
- package/lib/color-picker/src/color-picker.js +1116 -1113
- package/lib/color-picker/src/util.d.ts +62 -0
- package/lib/components.d.ts +156 -0
- package/lib/components.js +3 -0
- package/lib/context-menu/index.d.ts +338 -0
- package/lib/context-menu/src/context-menu.d.ts +70 -0
- package/lib/context-menu/src/context-menu.js +601 -598
- package/lib/countdown/index.d.ts +148 -0
- package/lib/countdown/src/countdown.d.ts +28 -0
- package/lib/countdown/src/countdown.js +224 -221
- package/lib/date-panel/index.d.ts +520 -0
- package/lib/date-panel/src/date-panel.d.ts +112 -0
- package/lib/date-panel/src/date-panel.js +1905 -1902
- package/lib/date-panel/src/util.d.ts +40 -0
- package/lib/date-picker/index.d.ts +1074 -0
- package/lib/date-picker/src/date-picker.d.ts +262 -0
- package/lib/date-picker/src/date-picker.js +1537 -1534
- package/lib/date-range-picker/index.d.ts +1044 -0
- package/lib/date-range-picker/src/date-range-picker.d.ts +245 -0
- package/lib/date-range-picker/src/date-range-picker.js +1412 -1409
- package/lib/divider/index.d.ts +198 -0
- package/lib/divider/src/divider.d.ts +43 -0
- package/lib/divider/src/divider.js +80 -77
- package/lib/drawer/index.d.ts +1398 -0
- package/lib/drawer/src/drawer.d.ts +317 -0
- package/lib/drawer/src/drawer.js +778 -775
- package/lib/drawer/src/store.d.ts +2 -0
- package/lib/dynamics/index.d.ts +463 -0
- package/lib/empty/index.d.ts +116 -0
- package/lib/empty/src/empty.d.ts +24 -0
- package/lib/empty/src/empty.js +100 -97
- package/lib/form/index.d.ts +836 -0
- package/lib/form/render/index.d.ts +1 -0
- package/lib/form/src/form-config-item.d.ts +187 -0
- package/lib/form/src/form-group.d.ts +188 -0
- package/lib/form/src/form-group.js +74 -71
- package/lib/form/src/form-item.d.ts +271 -0
- package/lib/form/src/form-item.js +76 -73
- package/lib/form/src/form.d.ts +191 -0
- package/lib/form/src/form.js +789 -786
- package/lib/form/src/itemInfo.d.ts +5 -0
- package/lib/form/src/render.d.ts +27 -0
- package/lib/form/src/util.d.ts +13 -0
- package/lib/form-gather/index.d.ts +840 -0
- package/lib/form-group/index.d.ts +828 -0
- package/lib/form-item/index.d.ts +828 -0
- package/lib/icon/index.d.ts +132 -0
- package/lib/icon/src/icon.d.ts +26 -0
- package/lib/icon/src/icon.js +59 -56
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.mini.css +1 -1
- package/lib/icon-picker/index.d.ts +440 -0
- package/lib/icon-picker/src/icon-picker.d.ts +105 -0
- package/lib/icon-picker/src/icon-picker.js +719 -716
- package/lib/image/index.d.ts +442 -0
- package/lib/image/src/group.d.ts +57 -0
- package/lib/image/src/group.js +130 -127
- package/lib/image/src/image.d.ts +96 -0
- package/lib/image/src/image.js +243 -240
- package/lib/image/src/preview.d.ts +73 -0
- package/lib/image/src/preview.js +627 -624
- package/lib/image/src/util.d.ts +2 -0
- package/lib/image-group/index.d.ts +270 -0
- package/lib/image-preview/index.d.ts +352 -0
- package/lib/index.common.js +2 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +2 -0
- package/lib/index.umd.js +47411 -46732
- package/lib/index.umd.min.js +3 -3
- package/lib/input/index.d.ts +1402 -0
- package/lib/input/src/input.d.ts +318 -0
- package/lib/input/src/input.js +2700 -2697
- package/lib/language/ar-EG.d.ts +908 -0
- package/lib/language/de-DE.d.ts +908 -0
- package/lib/language/en-US.d.ts +908 -0
- package/lib/language/es-ES.d.ts +908 -0
- package/lib/language/fr-FR.d.ts +908 -0
- package/lib/language/hu-HU.d.ts +908 -0
- package/lib/language/hy-AM.d.ts +908 -0
- package/lib/language/id-ID.d.ts +908 -0
- package/lib/language/it-IT.d.ts +908 -0
- package/lib/language/ja-JP.d.ts +908 -0
- package/lib/language/ko-KR.d.ts +908 -0
- package/lib/language/ms-MY.d.ts +908 -0
- package/lib/language/nb-NO.d.ts +908 -0
- package/lib/language/pt-BR.d.ts +908 -0
- package/lib/language/ru-RU.d.ts +908 -0
- package/lib/language/th-TH.d.ts +908 -0
- package/lib/language/ug-CN.d.ts +908 -0
- package/lib/language/uk-UA.d.ts +908 -0
- package/lib/language/uz-UZ.d.ts +908 -0
- package/lib/language/vi-VN.d.ts +908 -0
- package/lib/language/zh-CHT.d.ts +908 -0
- package/lib/language/zh-CN.d.ts +908 -0
- package/lib/language/zh-HK.d.ts +908 -0
- package/lib/language/zh-MO.d.ts +908 -0
- package/lib/language/zh-TC.d.ts +908 -0
- package/lib/language/zh-TW.d.ts +908 -0
- package/lib/layout-aside/index.d.ts +178 -0
- package/lib/layout-aside/src/layout-aside.d.ts +39 -0
- package/lib/layout-aside/src/layout-aside.js +138 -135
- package/lib/layout-body/index.d.ts +192 -0
- package/lib/layout-body/src/layout-body.d.ts +42 -0
- package/lib/layout-body/src/layout-body.js +145 -142
- package/lib/layout-container/index.d.ts +130 -0
- package/lib/layout-container/src/layout-container.d.ts +27 -0
- package/lib/layout-container/src/layout-container.js +71 -68
- package/lib/layout-footer/index.d.ts +56 -0
- package/lib/layout-footer/src/layout-footer.d.ts +10 -0
- package/lib/layout-footer/src/layout-footer.js +60 -57
- package/lib/layout-header/index.d.ts +48 -0
- package/lib/layout-header/src/layout-header.d.ts +8 -0
- package/lib/layout-header/src/layout-header.js +58 -55
- package/lib/link/index.d.ts +210 -0
- package/lib/link/src/link.d.ts +51 -0
- package/lib/link/src/link.js +131 -128
- package/lib/list/index.d.ts +538 -0
- package/lib/list/src/list.d.ts +110 -0
- package/lib/list/src/list.js +2173 -2170
- package/lib/list/src/store.d.ts +6 -0
- package/lib/list/src/util.d.ts +2 -0
- package/lib/loading/index.d.ts +257 -0
- package/lib/loading/src/loading.d.ts +56 -0
- package/lib/loading/src/loading.js +141 -138
- package/lib/locale/ar-EG.umd.d.ts +908 -0
- package/lib/locale/de-DE.umd.d.ts +908 -0
- package/lib/locale/en-US.umd.d.ts +908 -0
- package/lib/locale/es-ES.umd.d.ts +908 -0
- package/lib/locale/fr-FR.umd.d.ts +908 -0
- package/lib/locale/hu-HU.umd.d.ts +908 -0
- package/lib/locale/hy-AM.umd.d.ts +908 -0
- package/lib/locale/id-ID.umd.d.ts +908 -0
- package/lib/locale/it-IT.umd.d.ts +908 -0
- package/lib/locale/ja-JP.umd.d.ts +908 -0
- package/lib/locale/ko-KR.umd.d.ts +908 -0
- package/lib/locale/ms-MY.umd.d.ts +908 -0
- package/lib/locale/nb-NO.umd.d.ts +908 -0
- package/lib/locale/pt-BR.umd.d.ts +908 -0
- package/lib/locale/ru-RU.umd.d.ts +908 -0
- package/lib/locale/th-TH.umd.d.ts +908 -0
- package/lib/locale/ug-CN.umd.d.ts +908 -0
- package/lib/locale/uk-UA.umd.d.ts +908 -0
- package/lib/locale/uz-UZ.umd.d.ts +908 -0
- package/lib/locale/vi-VN.umd.d.ts +908 -0
- package/lib/locale/zh-CHT.umd.d.ts +908 -0
- package/lib/locale/zh-CN.umd.d.ts +908 -0
- package/lib/locale/zh-HK.umd.d.ts +908 -0
- package/lib/locale/zh-MO.umd.d.ts +908 -0
- package/lib/locale/zh-TC.umd.d.ts +908 -0
- package/lib/locale/zh-TW.umd.d.ts +908 -0
- package/lib/mention/index.d.ts +84 -0
- package/lib/mention/src/mention.d.ts +16 -0
- package/lib/mention/src/mention.js +49 -46
- package/lib/menu/index.d.ts +446 -0
- package/lib/menu/src/menu.d.ts +98 -0
- package/lib/menu/src/menu.js +799 -796
- package/lib/modal/index.d.ts +1934 -0
- package/lib/modal/src/modal.d.ts +457 -0
- package/lib/modal/src/modal.js +1519 -1527
- package/lib/modal/src/store.d.ts +2 -0
- package/lib/notice-bar/index.d.ts +232 -0
- package/lib/notice-bar/src/notice-bar.d.ts +49 -0
- package/lib/notice-bar/src/notice-bar.js +168 -165
- package/lib/number-input/index.d.ts +1208 -0
- package/lib/number-input/src/number-input.d.ts +268 -0
- package/lib/number-input/src/number-input.js +1094 -1091
- package/lib/number-input/src/util.d.ts +3 -0
- package/lib/optgroup/index.d.ts +150 -0
- package/lib/option/index.d.ts +158 -0
- package/lib/pager/index.d.ts +682 -0
- package/lib/pager/src/pager.d.ts +155 -0
- package/lib/pager/src/pager.js +767 -764
- package/lib/password-input/index.d.ts +572 -0
- package/lib/password-input/src/password-input.d.ts +122 -0
- package/lib/password-input/src/password-input.js +431 -428
- package/lib/print/index.d.ts +454 -0
- package/lib/print/src/page-break.d.ts +9 -0
- package/lib/print/src/page-break.js +63 -60
- package/lib/print/src/print.d.ts +113 -0
- package/lib/print/src/print.js +303 -300
- package/lib/print/src/util.d.ts +6 -0
- package/lib/print-page-break/index.d.ts +60 -0
- package/lib/pulldown/index.d.ts +356 -0
- package/lib/pulldown/src/pulldown.d.ts +99 -0
- package/lib/pulldown/src/pulldown.js +403 -400
- package/lib/radio/index.d.ts +292 -0
- package/lib/radio/src/button.d.ts +73 -0
- package/lib/radio/src/button.js +214 -211
- package/lib/radio/src/group.d.ts +66 -0
- package/lib/radio/src/group.js +195 -192
- package/lib/radio/src/radio.d.ts +71 -0
- package/lib/radio/src/radio.js +194 -191
- package/lib/radio-button/index.d.ts +304 -0
- package/lib/radio-group/index.d.ts +308 -0
- package/lib/rate/index.d.ts +200 -0
- package/lib/rate/src/rate.d.ts +41 -0
- package/lib/rate/src/rate.js +164 -161
- package/lib/result/index.d.ts +96 -0
- package/lib/result/src/result.d.ts +20 -0
- package/lib/result/src/result.js +116 -113
- package/lib/row/index.d.ts +192 -0
- package/lib/row/src/col.d.ts +26 -0
- package/lib/row/src/col.js +133 -130
- package/lib/row/src/row.d.ts +40 -0
- package/lib/row/src/row.js +111 -108
- package/lib/scrollbar/index.d.ts +660 -0
- package/lib/scrollbar/src/scrollbar.d.ts +167 -0
- package/lib/scrollbar/src/scrollbar.js +518 -515
- package/lib/segmented/index.d.ts +210 -0
- package/lib/segmented/src/segmented.d.ts +44 -0
- package/lib/segmented/src/segmented.js +240 -237
- package/lib/select/index.d.ts +1120 -0
- package/lib/select/src/optgroup.d.ts +31 -0
- package/lib/select/src/optgroup.js +44 -41
- package/lib/select/src/option-info.d.ts +5 -0
- package/lib/select/src/option.d.ts +33 -0
- package/lib/select/src/option.js +39 -36
- package/lib/select/src/select.d.ts +303 -0
- package/lib/select/src/select.js +1915 -1897
- package/lib/select/src/util.d.ts +10 -0
- package/lib/slider/index.d.ts +530 -0
- package/lib/slider/src/slider.d.ts +115 -0
- package/lib/slider/src/slider.js +419 -416
- package/lib/space/index.d.ts +548 -0
- package/lib/space/src/space.d.ts +126 -0
- package/lib/space/src/space.js +190 -187
- package/lib/split/index.d.ts +348 -0
- package/lib/split-pane/index.d.ts +230 -0
- package/lib/splitter/index.d.ts +348 -0
- package/lib/splitter/src/splitter-panel.d.ts +51 -0
- package/lib/splitter/src/splitter-panel.js +146 -143
- package/lib/splitter/src/splitter.d.ts +73 -0
- package/lib/splitter/src/splitter.js +917 -914
- package/lib/splitter/src/util.d.ts +3 -0
- package/lib/splitter-panel/index.d.ts +230 -0
- package/lib/step-item/index.d.ts +76 -0
- package/lib/step-item/index.js +47 -0
- package/lib/steps/index.d.ts +314 -0
- package/lib/steps/src/step-info.d.ts +6 -0
- package/lib/steps/src/step-info.js +49 -0
- package/lib/steps/src/step-item.d.ts +14 -0
- package/lib/steps/src/step-item.js +59 -0
- package/lib/steps/src/steps.d.ts +69 -0
- package/lib/steps/src/steps.js +298 -46
- package/lib/steps/src/util.d.ts +7 -0
- package/lib/steps/src/util.js +74 -0
- package/lib/steps/style/style.css +297 -0
- package/lib/steps/style/style.mini.css +1 -0
- package/lib/style.css +307 -1
- package/lib/style.mini.css +1 -1
- package/lib/switch/index.d.ts +332 -0
- package/lib/switch/src/switch.d.ts +71 -0
- package/lib/switch/src/switch.js +228 -225
- package/lib/tab-pane/index.d.ts +96 -0
- package/lib/table-select/index.d.ts +528 -0
- package/lib/table-select/src/table-select.d.ts +122 -0
- package/lib/table-select/src/table-select.js +865 -862
- package/lib/table-transfer/index.d.ts +100 -0
- package/lib/table-transfer/src/table-transfer.d.ts +20 -0
- package/lib/table-transfer/src/table-transfer.js +61 -58
- package/lib/tabs/index.d.ts +488 -0
- package/lib/tabs/src/tab-pane.d.ts +20 -0
- package/lib/tabs/src/tab-pane.js +102 -99
- package/lib/tabs/src/tabs.d.ts +105 -0
- package/lib/tabs/src/tabs.js +936 -933
- package/lib/tabs/src/util.d.ts +3 -0
- package/lib/tag/index.d.ts +332 -0
- package/lib/tag/src/tag.d.ts +71 -0
- package/lib/tag/src/tag.js +163 -160
- package/lib/text/index.d.ts +242 -0
- package/lib/text/src/text.d.ts +48 -0
- package/lib/text/src/text.js +232 -229
- package/lib/text-ellipsis/index.d.ts +218 -0
- package/lib/text-ellipsis/src/text-ellipsis.d.ts +53 -0
- package/lib/text-ellipsis/src/text-ellipsis.js +252 -249
- package/lib/textarea/index.d.ts +738 -0
- package/lib/textarea/src/textarea.d.ts +170 -0
- package/lib/textarea/src/textarea.js +434 -431
- package/lib/timeline/index.d.ts +176 -0
- package/lib/timeline/src/timeline-info.d.ts +6 -0
- package/lib/timeline/src/timeline-item.d.ts +12 -0
- package/lib/timeline/src/timeline.d.ts +38 -0
- package/lib/timeline/src/timeline.js +74 -36
- package/lib/timeline/src/util.d.ts +7 -0
- package/lib/timeline/src/util.js +7 -4
- package/lib/timeline-item/index.d.ts +68 -0
- package/lib/tip/index.d.ts +275 -0
- package/lib/tip/src/tip.d.ts +46 -0
- package/lib/tip/src/tip.js +117 -114
- package/lib/tooltip/index.d.ts +890 -0
- package/lib/tooltip/src/tooltip.d.ts +202 -0
- package/lib/tooltip/src/tooltip.js +552 -549
- package/lib/tour/index.d.ts +84 -0
- package/lib/tour/src/tour.d.ts +16 -0
- package/lib/tour/src/tour.js +49 -46
- package/lib/transfer/index.d.ts +100 -0
- package/lib/transfer/src/transfer.d.ts +20 -0
- package/lib/transfer/src/transfer.js +95 -92
- package/lib/tree/index.d.ts +1402 -0
- package/lib/tree/src/store.d.ts +6 -0
- package/lib/tree/src/tree.d.ts +313 -0
- package/lib/tree/src/tree.js +3379 -3376
- package/lib/tree/src/util.d.ts +3 -0
- package/lib/tree-select/index.d.ts +986 -0
- package/lib/tree-select/src/tree-select.d.ts +255 -0
- package/lib/tree-select/src/tree-select.js +969 -966
- package/lib/ui/index.d.ts +6 -0
- package/lib/ui/index.js +8 -2
- package/lib/ui/src/anime.d.ts +10 -0
- package/lib/ui/src/comp.d.ts +2 -0
- package/lib/ui/src/dom.d.ts +70 -0
- package/lib/ui/src/log.d.ts +6 -0
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/utils.d.ts +23 -0
- package/lib/ui/src/vn.d.ts +6 -0
- package/lib/upload/index.d.ts +1778 -0
- package/lib/upload/src/upload.d.ts +413 -0
- package/lib/upload/src/upload.js +1788 -1785
- package/lib/upload/src/util.d.ts +16 -0
- package/lib/vxe-alert/index.d.ts +3 -0
- package/lib/vxe-anchor/index.d.ts +3 -0
- package/lib/vxe-anchor-link/index.d.ts +3 -0
- package/lib/vxe-avatar/index.d.ts +3 -0
- package/lib/vxe-backtop/index.d.ts +3 -0
- package/lib/vxe-badge/index.d.ts +3 -0
- package/lib/vxe-breadcrumb/index.d.ts +3 -0
- package/lib/vxe-breadcrumb-item/index.d.ts +3 -0
- package/lib/vxe-button/index.d.ts +3 -0
- package/lib/vxe-button-group/index.d.ts +3 -0
- package/lib/vxe-calendar/index.d.ts +3 -0
- package/lib/vxe-card/index.d.ts +3 -0
- package/lib/vxe-carousel/index.d.ts +3 -0
- package/lib/vxe-carousel-item/index.d.ts +3 -0
- package/lib/vxe-cascader/index.d.ts +3 -0
- package/lib/vxe-checkbox/index.d.ts +3 -0
- package/lib/vxe-checkbox-button/index.d.ts +3 -0
- package/lib/vxe-checkbox-group/index.d.ts +3 -0
- package/lib/vxe-col/index.d.ts +3 -0
- package/lib/vxe-collapse/index.d.ts +3 -0
- package/lib/vxe-collapse-pane/index.d.ts +3 -0
- package/lib/vxe-color-picker/index.d.ts +3 -0
- package/lib/vxe-context-menu/index.d.ts +3 -0
- package/lib/vxe-countdown/index.d.ts +3 -0
- package/lib/vxe-date-panel/index.d.ts +3 -0
- package/lib/vxe-date-picker/index.d.ts +3 -0
- package/lib/vxe-date-range-picker/index.d.ts +3 -0
- package/lib/vxe-divider/index.d.ts +3 -0
- package/lib/vxe-drawer/index.d.ts +3 -0
- package/lib/vxe-empty/index.d.ts +3 -0
- package/lib/vxe-form/index.d.ts +3 -0
- package/lib/vxe-form-gather/index.d.ts +3 -0
- package/lib/vxe-form-group/index.d.ts +3 -0
- package/lib/vxe-form-item/index.d.ts +3 -0
- package/lib/vxe-icon/index.d.ts +3 -0
- package/lib/vxe-icon/style/style.css +1 -1
- package/lib/vxe-icon/style/style.mini.css +1 -1
- package/lib/vxe-icon-picker/index.d.ts +3 -0
- package/lib/vxe-image/index.d.ts +3 -0
- package/lib/vxe-image-group/index.d.ts +3 -0
- package/lib/vxe-image-preview/index.d.ts +3 -0
- package/lib/vxe-input/index.d.ts +3 -0
- package/lib/vxe-layout-aside/index.d.ts +3 -0
- package/lib/vxe-layout-body/index.d.ts +3 -0
- package/lib/vxe-layout-container/index.d.ts +3 -0
- package/lib/vxe-layout-footer/index.d.ts +3 -0
- package/lib/vxe-layout-header/index.d.ts +3 -0
- package/lib/vxe-link/index.d.ts +3 -0
- package/lib/vxe-list/index.d.ts +3 -0
- package/lib/vxe-loading/index.d.ts +3 -0
- package/lib/vxe-mention/index.d.ts +3 -0
- package/lib/vxe-menu/index.d.ts +3 -0
- package/lib/vxe-modal/index.d.ts +3 -0
- package/lib/vxe-notice-bar/index.d.ts +3 -0
- package/lib/vxe-number-input/index.d.ts +3 -0
- package/lib/vxe-optgroup/index.d.ts +3 -0
- package/lib/vxe-option/index.d.ts +3 -0
- package/lib/vxe-pager/index.d.ts +3 -0
- package/lib/vxe-password-input/index.d.ts +3 -0
- package/lib/vxe-print/index.d.ts +3 -0
- package/lib/vxe-print-page-break/index.d.ts +3 -0
- package/lib/vxe-pulldown/index.d.ts +3 -0
- package/lib/vxe-radio/index.d.ts +3 -0
- package/lib/vxe-radio-button/index.d.ts +3 -0
- package/lib/vxe-radio-group/index.d.ts +3 -0
- package/lib/vxe-rate/index.d.ts +3 -0
- package/lib/vxe-result/index.d.ts +3 -0
- package/lib/vxe-row/index.d.ts +3 -0
- package/lib/vxe-scrollbar/index.d.ts +3 -0
- package/lib/vxe-segmented/index.d.ts +3 -0
- package/lib/vxe-select/index.d.ts +3 -0
- package/lib/vxe-slider/index.d.ts +3 -0
- package/lib/vxe-space/index.d.ts +3 -0
- package/lib/vxe-split/index.d.ts +3 -0
- package/lib/vxe-split-pane/index.d.ts +3 -0
- package/lib/vxe-splitter/index.d.ts +3 -0
- package/lib/vxe-splitter-panel/index.d.ts +3 -0
- package/lib/vxe-steps/index.d.ts +3 -0
- package/lib/vxe-steps/style/style.css +297 -0
- package/lib/vxe-steps/style/style.mini.css +1 -0
- package/lib/vxe-switch/index.d.ts +3 -0
- package/lib/vxe-tab-pane/index.d.ts +3 -0
- package/lib/vxe-table-select/index.d.ts +3 -0
- package/lib/vxe-table-transfer/index.d.ts +3 -0
- package/lib/vxe-tabs/index.d.ts +3 -0
- package/lib/vxe-tag/index.d.ts +3 -0
- package/lib/vxe-text/index.d.ts +3 -0
- package/lib/vxe-text-ellipsis/index.d.ts +3 -0
- package/lib/vxe-textarea/index.d.ts +3 -0
- package/lib/vxe-timeline/index.d.ts +3 -0
- package/lib/vxe-timeline-item/index.d.ts +3 -0
- package/lib/vxe-tip/index.d.ts +3 -0
- package/lib/vxe-tooltip/index.d.ts +3 -0
- package/lib/vxe-tour/index.d.ts +3 -0
- package/lib/vxe-transfer/index.d.ts +3 -0
- package/lib/vxe-tree/index.d.ts +3 -0
- package/lib/vxe-tree-select/index.d.ts +3 -0
- package/lib/vxe-ui/index.d.ts +3 -0
- package/lib/vxe-upload/index.d.ts +3 -0
- package/lib/vxe-watermark/index.d.ts +3 -0
- package/lib/watermark/index.d.ts +183 -0
- package/lib/watermark/src/util.d.ts +9 -0
- package/lib/watermark/src/watermark.d.ts +39 -0
- package/lib/watermark/src/watermark.js +158 -155
- package/package.json +9 -9
- package/packages/alert/src/alert.ts +2 -2
- package/packages/anchor/src/anchor-link.ts +2 -2
- package/packages/anchor/src/anchor.ts +2 -2
- package/packages/avatar/src/avatar.ts +2 -2
- package/packages/backtop/src/backtop.ts +2 -2
- package/packages/badge/src/badge.ts +2 -2
- package/packages/breadcrumb/src/breadcrumb-item.ts +2 -2
- package/packages/breadcrumb/src/breadcrumb.ts +2 -2
- package/packages/button/src/button-group.ts +2 -2
- package/packages/calendar/src/calendar.ts +2 -2
- package/packages/card/src/card.ts +2 -2
- package/packages/carousel/src/carousel-item.ts +2 -2
- package/packages/carousel/src/carousel.ts +2 -2
- package/packages/cascader/src/cascader.ts +2 -2
- package/packages/checkbox/src/button.ts +3 -15
- package/packages/checkbox/src/checkbox.ts +2 -2
- package/packages/checkbox/src/group.ts +2 -2
- package/packages/collapse/src/collapse-pane.ts +2 -2
- package/packages/collapse/src/collapse.ts +2 -2
- package/packages/color-picker/src/color-picker.ts +2 -2
- package/packages/components.ts +3 -0
- package/packages/context-menu/src/context-menu.ts +3 -16
- package/packages/countdown/src/countdown.ts +2 -2
- package/packages/date-panel/src/date-panel.ts +2 -2
- package/packages/date-picker/src/date-picker.ts +2 -2
- package/packages/date-range-picker/src/date-range-picker.ts +2 -2
- package/packages/divider/src/divider.ts +2 -2
- package/packages/drawer/src/drawer.ts +2 -2
- package/packages/empty/src/empty.ts +2 -2
- package/packages/form/src/form-group.ts +2 -2
- package/packages/form/src/form-item.ts +2 -2
- package/packages/form/src/form.ts +2 -2
- package/packages/icon/src/icon.ts +2 -2
- package/packages/icon-picker/src/icon-picker.ts +2 -2
- package/packages/image/src/group.ts +2 -2
- package/packages/image/src/image.ts +2 -2
- package/packages/image/src/preview.ts +3 -16
- package/packages/index.ts +2 -2
- package/packages/input/src/input.ts +2 -2
- package/packages/layout-aside/src/layout-aside.ts +2 -2
- package/packages/layout-body/src/layout-body.ts +2 -2
- package/packages/layout-container/src/layout-container.ts +3 -14
- package/packages/layout-footer/src/layout-footer.ts +2 -2
- package/packages/layout-header/src/layout-header.ts +2 -2
- package/packages/link/src/link.ts +2 -2
- package/packages/list/src/list.ts +2 -2
- package/packages/loading/src/loading.ts +2 -2
- package/packages/mention/src/mention.ts +2 -2
- package/packages/menu/src/menu.ts +2 -2
- package/packages/modal/src/modal.ts +5 -20
- package/packages/notice-bar/src/notice-bar.ts +2 -2
- package/packages/number-input/src/number-input.ts +3 -17
- package/packages/pager/src/pager.ts +2 -2
- package/packages/password-input/src/password-input.ts +2 -2
- package/packages/print/src/page-break.ts +2 -2
- package/packages/print/src/print.ts +2 -2
- package/packages/pulldown/src/pulldown.ts +2 -2
- package/packages/radio/src/button.ts +3 -16
- package/packages/radio/src/group.ts +3 -17
- package/packages/radio/src/radio.ts +2 -2
- package/packages/rate/src/rate.ts +2 -2
- package/packages/result/src/result.ts +2 -2
- package/packages/row/src/col.ts +2 -2
- package/packages/row/src/row.ts +2 -2
- package/packages/scrollbar/src/scrollbar.ts +3 -4
- package/packages/segmented/src/segmented.ts +2 -2
- package/packages/select/src/optgroup.ts +2 -2
- package/packages/select/src/option.ts +2 -2
- package/packages/select/src/select.ts +33 -19
- package/packages/slider/src/slider.ts +2 -2
- package/packages/space/src/space.ts +2 -2
- package/packages/splitter/src/splitter-panel.ts +2 -2
- package/packages/splitter/src/splitter.ts +2 -2
- package/packages/step-item/index.ts +16 -0
- package/packages/steps/src/step-info.ts +18 -0
- package/packages/steps/src/step-item.ts +41 -0
- package/packages/steps/src/steps.ts +273 -13
- package/packages/steps/src/util.ts +44 -0
- package/packages/switch/src/switch.ts +2 -2
- package/packages/table-select/src/table-select.ts +2 -2
- package/packages/table-transfer/src/table-transfer.ts +3 -15
- package/packages/tabs/src/tab-pane.ts +2 -2
- package/packages/tabs/src/tabs.ts +2 -2
- package/packages/tag/src/tag.ts +2 -2
- package/packages/text/src/text.ts +2 -2
- package/packages/text-ellipsis/src/text-ellipsis.ts +2 -2
- package/packages/textarea/src/textarea.ts +2 -2
- package/packages/timeline/src/timeline-info.ts +17 -17
- package/packages/timeline/src/timeline.ts +93 -49
- package/packages/timeline/src/util.ts +44 -41
- package/packages/tip/src/tip.ts +2 -2
- package/packages/tooltip/src/tooltip.ts +2 -2
- package/packages/tour/src/tour.ts +2 -2
- package/packages/transfer/src/transfer.ts +2 -2
- package/packages/tree/src/tree.ts +2 -2
- package/packages/tree-select/src/tree-select.ts +2 -2
- package/packages/ui/index.ts +8 -1
- package/packages/upload/src/upload.ts +2 -2
- package/packages/watermark/src/watermark.ts +2 -2
- package/styles/all.scss +1 -0
- package/styles/components/step-item.scss +0 -0
- package/styles/components/steps.scss +354 -0
- package/styles/theme/base.scss +9 -0
- package/types/all.d.ts +3 -0
- package/types/components/gantt.d.ts +1 -3
- package/types/components/select.d.ts +1 -13
- package/types/components/step-item.d.ts +72 -0
- package/types/components/steps.d.ts +67 -8
- package/types/components/table.d.ts +7 -66
- package/types/handles/form-design.d.ts +1 -4
- package/types/ui/global-config.d.ts +2 -0
- package/types/ui/global-icon.d.ts +7 -0
- /package/dist/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
- /package/dist/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
- /package/dist/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
- /package/es/icon/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
- /package/es/icon/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
- /package/es/icon/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
- /package/es/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
- /package/es/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
- /package/es/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
- /package/es/vxe-icon/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
- /package/es/vxe-icon/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
- /package/es/vxe-icon/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
- /package/lib/icon/style/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
- /package/lib/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
- /package/lib/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
- /package/lib/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1793330162657.ttf → iconfont.1793683457630.ttf} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1793330162657.woff → iconfont.1793683457630.woff} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1793330162657.woff2 → iconfont.1793683457630.woff2} +0 -0
|
@@ -57,662 +57,665 @@ function createReactData() {
|
|
|
57
57
|
childOffsetX: 0
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
var context_menu_default = (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
60
|
+
var context_menu_default = (
|
|
61
|
+
/* define-vxe-component start */
|
|
62
|
+
(0, import_comp.defineVxeComponent)({
|
|
63
|
+
name: "VxeContextMenu",
|
|
64
|
+
props: {
|
|
65
|
+
modelValue: Boolean,
|
|
66
|
+
className: String,
|
|
67
|
+
size: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: () => getConfig().contextMenu.size || getConfig().size
|
|
70
|
+
},
|
|
71
|
+
options: Array,
|
|
72
|
+
x: [Number, String],
|
|
73
|
+
y: [Number, String],
|
|
74
|
+
autoLocate: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: () => getConfig().contextMenu.autoLocate
|
|
77
|
+
},
|
|
78
|
+
zIndex: [Number, String],
|
|
79
|
+
position: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: () => getConfig().contextMenu.position
|
|
82
|
+
},
|
|
83
|
+
destroyOnClose: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: () => getConfig().contextMenu.destroyOnClose
|
|
86
|
+
},
|
|
87
|
+
transfer: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: () => getConfig().contextMenu.transfer
|
|
90
|
+
}
|
|
84
91
|
},
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
for (let j = 0; j < list.length; j++) {
|
|
111
|
-
const firstItem = list[j];
|
|
112
|
-
if (hasValidItem(firstItem)) {
|
|
113
|
-
firstList.push(firstItem);
|
|
92
|
+
emits: ["update:modelValue", "option-click", "change", "show", "hide"],
|
|
93
|
+
setup(props, context) {
|
|
94
|
+
const { emit } = context;
|
|
95
|
+
const xID = import_xe_utils.default.uniqueId();
|
|
96
|
+
const refElem = (0, import_vue.ref)();
|
|
97
|
+
const { computeSize } = useFns.useSize(props);
|
|
98
|
+
const internalData = createInternalData();
|
|
99
|
+
const reactData = (0, import_vue.reactive)(createReactData());
|
|
100
|
+
const refMaps = {
|
|
101
|
+
refElem
|
|
102
|
+
};
|
|
103
|
+
const computeMenuGroups = (0, import_vue.computed)(() => {
|
|
104
|
+
const { options } = props;
|
|
105
|
+
return options || [];
|
|
106
|
+
});
|
|
107
|
+
const computeAllFirstMenuList = (0, import_vue.computed)(() => {
|
|
108
|
+
const menuGroups = computeMenuGroups.value;
|
|
109
|
+
const firstList = [];
|
|
110
|
+
for (let i = 0; i < menuGroups.length; i++) {
|
|
111
|
+
const list = menuGroups[i];
|
|
112
|
+
for (let j = 0; j < list.length; j++) {
|
|
113
|
+
const firstItem = list[j];
|
|
114
|
+
if (hasValidItem(firstItem)) {
|
|
115
|
+
firstList.push(firstItem);
|
|
116
|
+
}
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
|
-
|
|
117
|
-
return firstList;
|
|
118
|
-
});
|
|
119
|
-
const computeTopAndLeft = (0, import_vue.computed)(() => {
|
|
120
|
-
const { x, y } = props;
|
|
121
|
-
return `${x}${y}`;
|
|
122
|
-
});
|
|
123
|
-
const computeMaps = {};
|
|
124
|
-
const $xeContextMenu = {
|
|
125
|
-
xID,
|
|
126
|
-
props,
|
|
127
|
-
context,
|
|
128
|
-
reactData,
|
|
129
|
-
getRefMaps: () => refMaps,
|
|
130
|
-
getComputeMaps: () => computeMaps
|
|
131
|
-
};
|
|
132
|
-
const dispatchEvent = (type, params, evnt) => {
|
|
133
|
-
emit(type, createEvent(evnt, { $contextMenu: $xeContextMenu }, params));
|
|
134
|
-
};
|
|
135
|
-
const emitModel = (value) => {
|
|
136
|
-
emit("update:modelValue", value);
|
|
137
|
-
};
|
|
138
|
-
const openMenu = () => {
|
|
139
|
-
const { modelValue } = props;
|
|
140
|
-
const { visible } = reactData;
|
|
141
|
-
const value = true;
|
|
142
|
-
reactData.visible = value;
|
|
143
|
-
handleLocate();
|
|
144
|
-
updateZindex();
|
|
145
|
-
if (modelValue !== value) {
|
|
146
|
-
emitModel(value);
|
|
147
|
-
dispatchEvent("change", { value }, null);
|
|
148
|
-
}
|
|
149
|
-
if (visible !== value) {
|
|
150
|
-
dispatchEvent("show", { visible: value }, null);
|
|
151
|
-
}
|
|
152
|
-
return (0, import_vue.nextTick)().then(() => {
|
|
153
|
-
updateLocate();
|
|
119
|
+
return firstList;
|
|
154
120
|
});
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
const
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
if (menuZIndex < (0, import_utils.getLastZIndex)()) {
|
|
185
|
-
popupStyle.zIndex = transfer ? (0, import_utils.nextSubZIndex)() : (0, import_utils.nextZIndex)();
|
|
121
|
+
const computeTopAndLeft = (0, import_vue.computed)(() => {
|
|
122
|
+
const { x, y } = props;
|
|
123
|
+
return `${x}${y}`;
|
|
124
|
+
});
|
|
125
|
+
const computeMaps = {};
|
|
126
|
+
const $xeContextMenu = {
|
|
127
|
+
xID,
|
|
128
|
+
props,
|
|
129
|
+
context,
|
|
130
|
+
reactData,
|
|
131
|
+
getRefMaps: () => refMaps,
|
|
132
|
+
getComputeMaps: () => computeMaps
|
|
133
|
+
};
|
|
134
|
+
const dispatchEvent = (type, params, evnt) => {
|
|
135
|
+
emit(type, createEvent(evnt, { $contextMenu: $xeContextMenu }, params));
|
|
136
|
+
};
|
|
137
|
+
const emitModel = (value) => {
|
|
138
|
+
emit("update:modelValue", value);
|
|
139
|
+
};
|
|
140
|
+
const openMenu = () => {
|
|
141
|
+
const { modelValue } = props;
|
|
142
|
+
const { visible } = reactData;
|
|
143
|
+
const value = true;
|
|
144
|
+
reactData.visible = value;
|
|
145
|
+
handleLocate();
|
|
146
|
+
updateZindex();
|
|
147
|
+
if (modelValue !== value) {
|
|
148
|
+
emitModel(value);
|
|
149
|
+
dispatchEvent("change", { value }, null);
|
|
186
150
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
151
|
+
if (visible !== value) {
|
|
152
|
+
dispatchEvent("show", { visible: value }, null);
|
|
153
|
+
}
|
|
154
|
+
return (0, import_vue.nextTick)().then(() => {
|
|
155
|
+
updateLocate();
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
const closeMenu = () => {
|
|
159
|
+
const { modelValue } = props;
|
|
160
|
+
const { visible } = reactData;
|
|
161
|
+
const value = false;
|
|
162
|
+
reactData.visible = value;
|
|
163
|
+
if (modelValue !== value) {
|
|
164
|
+
emitModel(value);
|
|
165
|
+
dispatchEvent("change", { value }, null);
|
|
166
|
+
}
|
|
167
|
+
if (visible !== value) {
|
|
168
|
+
dispatchEvent("hide", { visible: value }, null);
|
|
169
|
+
}
|
|
170
|
+
return (0, import_vue.nextTick)();
|
|
171
|
+
};
|
|
172
|
+
const handleLocate = () => {
|
|
173
|
+
const { x, y } = props;
|
|
174
|
+
const { popupStyle } = reactData;
|
|
175
|
+
popupStyle.left = (0, import_dom.toCssUnit)(x || 0);
|
|
176
|
+
popupStyle.top = (0, import_dom.toCssUnit)(y || 0);
|
|
177
|
+
updateLocate();
|
|
178
|
+
};
|
|
179
|
+
const updateZindex = () => {
|
|
180
|
+
const { zIndex, transfer } = props;
|
|
181
|
+
const { popupStyle } = reactData;
|
|
182
|
+
const menuZIndex = popupStyle.zIndex;
|
|
183
|
+
if (zIndex) {
|
|
184
|
+
popupStyle.zIndex = import_xe_utils.default.toNumber(zIndex);
|
|
185
|
+
} else {
|
|
186
|
+
if (menuZIndex < (0, import_utils.getLastZIndex)()) {
|
|
187
|
+
popupStyle.zIndex = transfer ? (0, import_utils.nextSubZIndex)() : (0, import_utils.nextZIndex)();
|
|
209
188
|
}
|
|
210
189
|
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
190
|
+
};
|
|
191
|
+
const updateLocate = () => {
|
|
192
|
+
const { autoLocate, position } = props;
|
|
193
|
+
const { popupStyle } = reactData;
|
|
194
|
+
if (autoLocate) {
|
|
195
|
+
const wrapperEl = refElem.value;
|
|
196
|
+
if (wrapperEl) {
|
|
197
|
+
const { visibleWidth, visibleHeight } = (0, import_dom.getDomNode)();
|
|
198
|
+
const wrapperStyle = getComputedStyle(wrapperEl);
|
|
199
|
+
const offsetTop = import_xe_utils.default.toNumber(wrapperStyle.top);
|
|
200
|
+
const offsetLeft = import_xe_utils.default.toNumber(wrapperStyle.left);
|
|
201
|
+
const wrapperWidth = wrapperEl.offsetWidth;
|
|
202
|
+
const wrapperHeight = wrapperEl.offsetHeight;
|
|
203
|
+
if (position === "absolute") {
|
|
204
|
+
} else {
|
|
205
|
+
if (offsetTop + wrapperHeight > visibleHeight) {
|
|
206
|
+
popupStyle.top = `${Math.max(0, offsetTop - wrapperHeight)}px`;
|
|
207
|
+
}
|
|
208
|
+
if (offsetLeft + wrapperWidth > visibleWidth) {
|
|
209
|
+
popupStyle.left = `${Math.max(0, offsetLeft - wrapperWidth)}px`;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
229
212
|
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
|
|
213
|
+
}
|
|
214
|
+
updateChildLocate();
|
|
215
|
+
};
|
|
216
|
+
const updateChildLocate = () => {
|
|
217
|
+
const wrapperEl = refElem.value;
|
|
218
|
+
if (wrapperEl) {
|
|
219
|
+
const { visibleWidth } = (0, import_dom.getDomNode)();
|
|
220
|
+
const owSize = 4;
|
|
221
|
+
const handleStyle = () => {
|
|
222
|
+
const wrapperStyle = getComputedStyle(wrapperEl);
|
|
223
|
+
const offsetLeft = import_xe_utils.default.toNumber(wrapperStyle.left);
|
|
224
|
+
const wrapperWidth = wrapperEl.offsetWidth;
|
|
225
|
+
const childEl = wrapperEl.querySelector(".vxe-context-menu--children-wrapper");
|
|
226
|
+
const childWidth = childEl ? childEl.offsetWidth : wrapperWidth;
|
|
227
|
+
if (offsetLeft + wrapperWidth > visibleWidth - childWidth) {
|
|
228
|
+
reactData.childOffsetX = -childWidth + owSize;
|
|
229
|
+
} else {
|
|
230
|
+
reactData.childOffsetX = wrapperWidth - owSize;
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
233
|
handleStyle();
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
const handleVisible = () => {
|
|
238
|
-
const { modelValue } = props;
|
|
239
|
-
if (modelValue) {
|
|
240
|
-
openMenu();
|
|
241
|
-
} else {
|
|
242
|
-
closeMenu();
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
const tagMethods = {
|
|
246
|
-
dispatchEvent,
|
|
247
|
-
open: openMenu,
|
|
248
|
-
close: closeMenu
|
|
249
|
-
};
|
|
250
|
-
const hasChildMenu = (item) => {
|
|
251
|
-
const { children } = item;
|
|
252
|
-
return children && children.some((child) => child.visible !== false);
|
|
253
|
-
};
|
|
254
|
-
const handleItemClickEvent = (evnt, item) => {
|
|
255
|
-
evnt.preventDefault();
|
|
256
|
-
evnt.stopPropagation();
|
|
257
|
-
if (!item.disabled && !item.loading && !hasChildMenu(item)) {
|
|
258
|
-
dispatchEvent("option-click", { option: item }, evnt);
|
|
259
|
-
closeMenu();
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
const handleItemMouseenterEvent = (evnt, item, parentitem) => {
|
|
263
|
-
const { leaveTime } = internalData;
|
|
264
|
-
if (leaveTime) {
|
|
265
|
-
clearTimeout(leaveTime);
|
|
266
|
-
}
|
|
267
|
-
reactData.activeOption = parentitem || item;
|
|
268
|
-
if (parentitem) {
|
|
269
|
-
reactData.activeOption = parentitem;
|
|
270
|
-
reactData.activeChildOption = item;
|
|
271
|
-
} else {
|
|
272
|
-
reactData.activeOption = item;
|
|
273
|
-
if (hasChildMenu(item)) {
|
|
274
|
-
reactData.activeChildOption = findFirstChildItem(item);
|
|
275
234
|
(0, import_vue.nextTick)(() => {
|
|
276
|
-
|
|
235
|
+
handleStyle();
|
|
277
236
|
});
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
const handleVisible = () => {
|
|
240
|
+
const { modelValue } = props;
|
|
241
|
+
if (modelValue) {
|
|
242
|
+
openMenu();
|
|
278
243
|
} else {
|
|
279
|
-
|
|
244
|
+
closeMenu();
|
|
280
245
|
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
const findNextFirstItem = (allFirstList, firstItem) => {
|
|
298
|
-
for (let i = 0; i < allFirstList.length; i++) {
|
|
299
|
-
const item = allFirstList[i];
|
|
300
|
-
if (firstItem === item) {
|
|
301
|
-
const nextItem = allFirstList[i + 1];
|
|
302
|
-
if (nextItem) {
|
|
303
|
-
return nextItem;
|
|
304
|
-
}
|
|
246
|
+
};
|
|
247
|
+
const tagMethods = {
|
|
248
|
+
dispatchEvent,
|
|
249
|
+
open: openMenu,
|
|
250
|
+
close: closeMenu
|
|
251
|
+
};
|
|
252
|
+
const hasChildMenu = (item) => {
|
|
253
|
+
const { children } = item;
|
|
254
|
+
return children && children.some((child) => child.visible !== false);
|
|
255
|
+
};
|
|
256
|
+
const handleItemClickEvent = (evnt, item) => {
|
|
257
|
+
evnt.preventDefault();
|
|
258
|
+
evnt.stopPropagation();
|
|
259
|
+
if (!item.disabled && !item.loading && !hasChildMenu(item)) {
|
|
260
|
+
dispatchEvent("option-click", { option: item }, evnt);
|
|
261
|
+
closeMenu();
|
|
305
262
|
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
const item = allFirstList[i];
|
|
312
|
-
if (firstItem === item) {
|
|
313
|
-
if (i > 0) {
|
|
314
|
-
return allFirstList[i - 1];
|
|
315
|
-
}
|
|
263
|
+
};
|
|
264
|
+
const handleItemMouseenterEvent = (evnt, item, parentitem) => {
|
|
265
|
+
const { leaveTime } = internalData;
|
|
266
|
+
if (leaveTime) {
|
|
267
|
+
clearTimeout(leaveTime);
|
|
316
268
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
269
|
+
reactData.activeOption = parentitem || item;
|
|
270
|
+
if (parentitem) {
|
|
271
|
+
reactData.activeOption = parentitem;
|
|
272
|
+
reactData.activeChildOption = item;
|
|
273
|
+
} else {
|
|
274
|
+
reactData.activeOption = item;
|
|
275
|
+
if (hasChildMenu(item)) {
|
|
276
|
+
reactData.activeChildOption = findFirstChildItem(item);
|
|
277
|
+
(0, import_vue.nextTick)(() => {
|
|
278
|
+
updateChildLocate();
|
|
279
|
+
});
|
|
280
|
+
} else {
|
|
281
|
+
reactData.activeChildOption = null;
|
|
327
282
|
}
|
|
328
283
|
}
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
284
|
+
};
|
|
285
|
+
const handleItemMouseleaveEvent = () => {
|
|
286
|
+
const { leaveTime } = internalData;
|
|
287
|
+
if (leaveTime) {
|
|
288
|
+
clearTimeout(leaveTime);
|
|
289
|
+
}
|
|
290
|
+
internalData.leaveTime = setTimeout(() => {
|
|
291
|
+
internalData.leaveTime = null;
|
|
292
|
+
reactData.activeOption = null;
|
|
293
|
+
reactData.activeChildOption = null;
|
|
294
|
+
}, 300);
|
|
295
|
+
};
|
|
296
|
+
const hasValidItem = (item) => {
|
|
297
|
+
return !item.loading && !item.disabled && item.visible !== false;
|
|
298
|
+
};
|
|
299
|
+
const findNextFirstItem = (allFirstList, firstItem) => {
|
|
300
|
+
for (let i = 0; i < allFirstList.length; i++) {
|
|
301
|
+
const item = allFirstList[i];
|
|
302
|
+
if (firstItem === item) {
|
|
303
|
+
const nextItem = allFirstList[i + 1];
|
|
304
|
+
if (nextItem) {
|
|
305
|
+
return nextItem;
|
|
306
|
+
}
|
|
340
307
|
}
|
|
341
|
-
|
|
342
|
-
|
|
308
|
+
}
|
|
309
|
+
return import_xe_utils.default.first(allFirstList);
|
|
310
|
+
};
|
|
311
|
+
const findPrevFirstItem = (allFirstList, firstItem) => {
|
|
312
|
+
for (let i = 0; i < allFirstList.length; i++) {
|
|
313
|
+
const item = allFirstList[i];
|
|
314
|
+
if (firstItem === item) {
|
|
315
|
+
if (i > 0) {
|
|
316
|
+
return allFirstList[i - 1];
|
|
317
|
+
}
|
|
343
318
|
}
|
|
344
319
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
320
|
+
return import_xe_utils.default.last(allFirstList);
|
|
321
|
+
};
|
|
322
|
+
const findFirstChildItem = (firstItem) => {
|
|
323
|
+
const { children } = firstItem;
|
|
324
|
+
if (children) {
|
|
325
|
+
for (let i = 0; i < children.length; i++) {
|
|
326
|
+
const item = children[i];
|
|
348
327
|
if (hasValidItem(item)) {
|
|
349
328
|
return item;
|
|
350
329
|
}
|
|
351
330
|
}
|
|
352
331
|
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
332
|
+
return null;
|
|
333
|
+
};
|
|
334
|
+
const findPrevChildItem = (firstItem, childItem) => {
|
|
335
|
+
const { children } = firstItem;
|
|
336
|
+
let prevValidItem = null;
|
|
337
|
+
if (children) {
|
|
338
|
+
for (let i = 0; i < children.length; i++) {
|
|
339
|
+
const item = children[i];
|
|
340
|
+
if (childItem === item) {
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
364
343
|
if (hasValidItem(item)) {
|
|
365
|
-
|
|
344
|
+
prevValidItem = item;
|
|
366
345
|
}
|
|
367
346
|
}
|
|
368
|
-
if (
|
|
369
|
-
|
|
370
|
-
|
|
347
|
+
if (!prevValidItem) {
|
|
348
|
+
for (let len = children.length - 1; len >= 0; len--) {
|
|
349
|
+
const item = children[len];
|
|
350
|
+
if (hasValidItem(item)) {
|
|
351
|
+
return item;
|
|
352
|
+
}
|
|
371
353
|
}
|
|
372
|
-
} else {
|
|
373
|
-
isMetch = childItem === item;
|
|
374
354
|
}
|
|
375
355
|
}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
const isEnter = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
397
|
-
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
398
|
-
if (isEsc) {
|
|
399
|
-
closeMenu();
|
|
400
|
-
return;
|
|
401
|
-
}
|
|
402
|
-
if (isEnter) {
|
|
403
|
-
if (activeOption || activeChildOption) {
|
|
404
|
-
evnt.preventDefault();
|
|
405
|
-
evnt.stopPropagation();
|
|
406
|
-
if (!activeChildOption && hasChildMenu(activeOption)) {
|
|
407
|
-
reactData.activeChildOption = findFirstChildItem(activeOption);
|
|
408
|
-
updateChildLocate();
|
|
409
|
-
return;
|
|
356
|
+
return prevValidItem;
|
|
357
|
+
};
|
|
358
|
+
const findNextChildItem = (firstItem, childItem) => {
|
|
359
|
+
const { children } = firstItem;
|
|
360
|
+
let firstValidItem = null;
|
|
361
|
+
if (children) {
|
|
362
|
+
let isMetch = false;
|
|
363
|
+
for (let i = 0; i < children.length; i++) {
|
|
364
|
+
const item = children[i];
|
|
365
|
+
if (!firstValidItem) {
|
|
366
|
+
if (hasValidItem(item)) {
|
|
367
|
+
firstValidItem = item;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
if (isMetch) {
|
|
371
|
+
if (hasValidItem(item)) {
|
|
372
|
+
return item;
|
|
373
|
+
}
|
|
374
|
+
} else {
|
|
375
|
+
isMetch = childItem === item;
|
|
410
376
|
}
|
|
411
|
-
handleItemClickEvent(evnt, activeChildOption || activeOption);
|
|
412
|
-
return;
|
|
413
377
|
}
|
|
414
378
|
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
updateChildLocate();
|
|
424
|
-
} else if (isLeftArrow) {
|
|
425
|
-
evnt.preventDefault();
|
|
426
|
-
reactData.activeChildOption = null;
|
|
379
|
+
return firstValidItem;
|
|
380
|
+
};
|
|
381
|
+
const handleGlobalMousewheelEvent = (evnt) => {
|
|
382
|
+
const { visible } = reactData;
|
|
383
|
+
if (visible) {
|
|
384
|
+
const el = refElem.value;
|
|
385
|
+
if (!(0, import_dom.getEventTargetNode)(evnt, el, "").flag) {
|
|
386
|
+
closeMenu();
|
|
427
387
|
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
const handleGlobalKeydownEvent = (evnt) => {
|
|
391
|
+
const { visible, activeOption, activeChildOption } = reactData;
|
|
392
|
+
const allFirstMenuList = computeAllFirstMenuList.value;
|
|
393
|
+
if (visible) {
|
|
394
|
+
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
395
|
+
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
396
|
+
const isLeftArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
397
|
+
const isRightArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
398
|
+
const isEnter = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
399
|
+
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
400
|
+
if (isEsc) {
|
|
401
|
+
closeMenu();
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
if (isEnter) {
|
|
405
|
+
if (activeOption || activeChildOption) {
|
|
406
|
+
evnt.preventDefault();
|
|
407
|
+
evnt.stopPropagation();
|
|
408
|
+
if (!activeChildOption && hasChildMenu(activeOption)) {
|
|
437
409
|
reactData.activeChildOption = findFirstChildItem(activeOption);
|
|
438
410
|
updateChildLocate();
|
|
411
|
+
return;
|
|
439
412
|
}
|
|
413
|
+
handleItemClickEvent(evnt, activeChildOption || activeOption);
|
|
414
|
+
return;
|
|
440
415
|
}
|
|
441
416
|
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
417
|
+
if (activeChildOption) {
|
|
418
|
+
if (isUpArrow) {
|
|
419
|
+
evnt.preventDefault();
|
|
420
|
+
reactData.activeChildOption = findPrevChildItem(activeOption, activeChildOption);
|
|
421
|
+
updateChildLocate();
|
|
422
|
+
} else if (isDwArrow) {
|
|
423
|
+
evnt.preventDefault();
|
|
424
|
+
reactData.activeChildOption = findNextChildItem(activeOption, activeChildOption);
|
|
425
|
+
updateChildLocate();
|
|
426
|
+
} else if (isLeftArrow) {
|
|
427
|
+
evnt.preventDefault();
|
|
428
|
+
reactData.activeChildOption = null;
|
|
429
|
+
}
|
|
430
|
+
} else if (activeOption) {
|
|
431
|
+
evnt.preventDefault();
|
|
432
|
+
if (isUpArrow) {
|
|
433
|
+
reactData.activeOption = findPrevFirstItem(allFirstMenuList, activeOption);
|
|
434
|
+
} else if (isDwArrow) {
|
|
435
|
+
reactData.activeOption = findNextFirstItem(allFirstMenuList, activeOption);
|
|
436
|
+
} else {
|
|
437
|
+
if (hasChildMenu(activeOption)) {
|
|
438
|
+
if (isRightArrow) {
|
|
439
|
+
reactData.activeChildOption = findFirstChildItem(activeOption);
|
|
440
|
+
updateChildLocate();
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
} else {
|
|
445
|
+
evnt.preventDefault();
|
|
446
|
+
reactData.activeOption = import_xe_utils.default.first(allFirstMenuList);
|
|
447
|
+
}
|
|
445
448
|
}
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
449
|
+
};
|
|
450
|
+
const handleGlobalMousedownEvent = (evnt) => {
|
|
451
|
+
const { visible } = reactData;
|
|
452
|
+
if (visible) {
|
|
453
|
+
const el = refElem.value;
|
|
454
|
+
if (!(0, import_dom.getEventTargetNode)(evnt, el, "").flag) {
|
|
455
|
+
closeMenu();
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
const handleGlobalBlurEvent = () => {
|
|
460
|
+
const { visible } = reactData;
|
|
461
|
+
if (visible) {
|
|
453
462
|
closeMenu();
|
|
454
463
|
}
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
return
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
{
|
|
481
|
-
"is--disabled": disabled,
|
|
482
|
-
"is--loading": loading
|
|
483
|
-
}
|
|
484
|
-
],
|
|
485
|
-
onClick(evnt) {
|
|
486
|
-
handleItemClickEvent(evnt, item);
|
|
487
|
-
},
|
|
488
|
-
onMouseenter(evnt) {
|
|
489
|
-
handleItemMouseenterEvent(evnt, item, parentItem);
|
|
490
|
-
},
|
|
491
|
-
onMouseleave: handleItemMouseleaveEvent
|
|
492
|
-
},
|
|
493
|
-
[
|
|
494
|
-
(0, import_vue.h)(
|
|
495
|
-
"div",
|
|
496
|
-
{
|
|
497
|
-
class: ["vxe-context-menu--item-prefix", prefixOpts.className || ""]
|
|
498
|
-
},
|
|
499
|
-
loading ? [
|
|
500
|
-
(0, import_vue.h)(
|
|
501
|
-
"span",
|
|
502
|
-
{
|
|
503
|
-
key: "1"
|
|
504
|
-
},
|
|
505
|
-
[
|
|
506
|
-
(0, import_vue.h)("i", {
|
|
507
|
-
class: getIcon().CONTEXT_MENU_OPTION_LOADING
|
|
508
|
-
})
|
|
509
|
-
]
|
|
510
|
-
)
|
|
511
|
-
] : [
|
|
512
|
-
prefixIcon && import_xe_utils.default.isFunction(prefixIcon) ? (0, import_vue.h)(
|
|
513
|
-
"span",
|
|
514
|
-
{
|
|
515
|
-
key: "2"
|
|
516
|
-
},
|
|
517
|
-
(0, import_vn.getSlotVNs)(prefixIcon({}))
|
|
518
|
-
) : (0, import_vue.h)(
|
|
519
|
-
"span",
|
|
520
|
-
{
|
|
521
|
-
key: "3"
|
|
522
|
-
},
|
|
523
|
-
[
|
|
524
|
-
(0, import_vue.h)("i", {
|
|
525
|
-
class: prefixIcon
|
|
526
|
-
})
|
|
527
|
-
]
|
|
528
|
-
),
|
|
529
|
-
prefixOpts.content ? (0, import_vue.h)(
|
|
530
|
-
"span",
|
|
531
|
-
{
|
|
532
|
-
key: "4"
|
|
533
|
-
},
|
|
534
|
-
`${prefixOpts.content || ""}`
|
|
535
|
-
) : renderEmptyElement($xeContextMenu)
|
|
536
|
-
]
|
|
537
|
-
),
|
|
538
|
-
(0, import_vue.h)(
|
|
539
|
-
"div",
|
|
540
|
-
{
|
|
541
|
-
class: "vxe-context-menu--item-label"
|
|
542
|
-
},
|
|
543
|
-
menuContent
|
|
544
|
-
),
|
|
545
|
-
!loading && (suffixIcon || suffixOpts.content) ? (0, import_vue.h)(
|
|
546
|
-
"div",
|
|
547
|
-
{
|
|
548
|
-
class: ["vxe-context-menu--item-suffix", suffixOpts.className || ""]
|
|
464
|
+
};
|
|
465
|
+
const tagPrivateMethods = {};
|
|
466
|
+
Object.assign($xeContextMenu, tagMethods, tagPrivateMethods);
|
|
467
|
+
const renderMenuItem = (item, parentItem, hasChildMenus) => {
|
|
468
|
+
const { visible, disabled, loading } = item;
|
|
469
|
+
if (visible === false) {
|
|
470
|
+
return renderEmptyElement($xeContextMenu);
|
|
471
|
+
}
|
|
472
|
+
const prefixOpts = Object.assign({}, item.prefixConfig);
|
|
473
|
+
const prefixIcon = prefixOpts.icon || item.prefixIcon;
|
|
474
|
+
const suffixOpts = Object.assign({}, item.suffixConfig);
|
|
475
|
+
const suffixIcon = suffixOpts.icon || item.suffixIcon;
|
|
476
|
+
const menuContent = loading ? getI18n("vxe.contextMenu.loadingText") : (0, import_utils.getFuncText)(item.name);
|
|
477
|
+
return (0, import_vue.h)(
|
|
478
|
+
"div",
|
|
479
|
+
{
|
|
480
|
+
class: [
|
|
481
|
+
"vxe-context-menu--item-inner",
|
|
482
|
+
{
|
|
483
|
+
"is--disabled": disabled,
|
|
484
|
+
"is--loading": loading
|
|
485
|
+
}
|
|
486
|
+
],
|
|
487
|
+
onClick(evnt) {
|
|
488
|
+
handleItemClickEvent(evnt, item);
|
|
549
489
|
},
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
"span",
|
|
553
|
-
{
|
|
554
|
-
key: "2"
|
|
555
|
-
},
|
|
556
|
-
(0, import_vn.getSlotVNs)(suffixIcon({}))
|
|
557
|
-
) : (0, import_vue.h)(
|
|
558
|
-
"span",
|
|
559
|
-
{
|
|
560
|
-
key: "3"
|
|
561
|
-
},
|
|
562
|
-
[
|
|
563
|
-
(0, import_vue.h)("i", {
|
|
564
|
-
class: suffixIcon
|
|
565
|
-
})
|
|
566
|
-
]
|
|
567
|
-
),
|
|
568
|
-
suffixOpts.content ? (0, import_vue.h)(
|
|
569
|
-
"span",
|
|
570
|
-
{
|
|
571
|
-
key: "4"
|
|
572
|
-
},
|
|
573
|
-
`${suffixOpts.content || ""}`
|
|
574
|
-
) : renderEmptyElement($xeContextMenu)
|
|
575
|
-
]
|
|
576
|
-
) : renderEmptyElement($xeContextMenu),
|
|
577
|
-
hasChildMenus ? (0, import_vue.h)(
|
|
578
|
-
"div",
|
|
579
|
-
{
|
|
580
|
-
class: "vxe-context-menu--item-subicon"
|
|
490
|
+
onMouseenter(evnt) {
|
|
491
|
+
handleItemMouseenterEvent(evnt, item, parentItem);
|
|
581
492
|
},
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
})
|
|
586
|
-
]
|
|
587
|
-
) : renderEmptyElement($xeContextMenu)
|
|
588
|
-
]
|
|
589
|
-
);
|
|
590
|
-
};
|
|
591
|
-
const renderMenus = () => {
|
|
592
|
-
const { activeOption, activeChildOption, childOffsetX } = reactData;
|
|
593
|
-
const menuGroups = computeMenuGroups.value;
|
|
594
|
-
const mgVNs = [];
|
|
595
|
-
menuGroups.forEach((menuList, gIndex) => {
|
|
596
|
-
const moVNs = [];
|
|
597
|
-
menuList.forEach((firstItem, i) => {
|
|
598
|
-
const { children } = firstItem;
|
|
599
|
-
const hasChildMenus = children && children.some((child) => child.visible !== false);
|
|
600
|
-
const isActiveFirst = activeOption === firstItem;
|
|
601
|
-
const showChild = isActiveFirst && !!activeChildOption;
|
|
602
|
-
moVNs.push(
|
|
493
|
+
onMouseleave: handleItemMouseleaveEvent
|
|
494
|
+
},
|
|
495
|
+
[
|
|
603
496
|
(0, import_vue.h)(
|
|
604
497
|
"div",
|
|
605
498
|
{
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
499
|
+
class: ["vxe-context-menu--item-prefix", prefixOpts.className || ""]
|
|
500
|
+
},
|
|
501
|
+
loading ? [
|
|
502
|
+
(0, import_vue.h)(
|
|
503
|
+
"span",
|
|
610
504
|
{
|
|
611
|
-
"
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
505
|
+
key: "1"
|
|
506
|
+
},
|
|
507
|
+
[
|
|
508
|
+
(0, import_vue.h)("i", {
|
|
509
|
+
class: getIcon().CONTEXT_MENU_OPTION_LOADING
|
|
510
|
+
})
|
|
511
|
+
]
|
|
512
|
+
)
|
|
513
|
+
] : [
|
|
514
|
+
prefixIcon && import_xe_utils.default.isFunction(prefixIcon) ? (0, import_vue.h)(
|
|
515
|
+
"span",
|
|
516
|
+
{
|
|
517
|
+
key: "2"
|
|
518
|
+
},
|
|
519
|
+
(0, import_vn.getSlotVNs)(prefixIcon({}))
|
|
520
|
+
) : (0, import_vue.h)(
|
|
521
|
+
"span",
|
|
522
|
+
{
|
|
523
|
+
key: "3"
|
|
524
|
+
},
|
|
525
|
+
[
|
|
526
|
+
(0, import_vue.h)("i", {
|
|
527
|
+
class: prefixIcon
|
|
528
|
+
})
|
|
529
|
+
]
|
|
530
|
+
),
|
|
531
|
+
prefixOpts.content ? (0, import_vue.h)(
|
|
532
|
+
"span",
|
|
533
|
+
{
|
|
534
|
+
key: "4"
|
|
535
|
+
},
|
|
536
|
+
`${prefixOpts.content || ""}`
|
|
537
|
+
) : renderEmptyElement($xeContextMenu)
|
|
538
|
+
]
|
|
539
|
+
),
|
|
540
|
+
(0, import_vue.h)(
|
|
541
|
+
"div",
|
|
542
|
+
{
|
|
543
|
+
class: "vxe-context-menu--item-label"
|
|
544
|
+
},
|
|
545
|
+
menuContent
|
|
546
|
+
),
|
|
547
|
+
!loading && (suffixIcon || suffixOpts.content) ? (0, import_vue.h)(
|
|
548
|
+
"div",
|
|
549
|
+
{
|
|
550
|
+
class: ["vxe-context-menu--item-suffix", suffixOpts.className || ""]
|
|
615
551
|
},
|
|
616
552
|
[
|
|
617
|
-
|
|
618
|
-
"
|
|
553
|
+
suffixIcon && import_xe_utils.default.isFunction(suffixIcon) ? (0, import_vue.h)(
|
|
554
|
+
"span",
|
|
619
555
|
{
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
556
|
+
key: "2"
|
|
557
|
+
},
|
|
558
|
+
(0, import_vn.getSlotVNs)(suffixIcon({}))
|
|
559
|
+
) : (0, import_vue.h)(
|
|
560
|
+
"span",
|
|
561
|
+
{
|
|
562
|
+
key: "3"
|
|
563
|
+
},
|
|
564
|
+
[
|
|
565
|
+
(0, import_vue.h)("i", {
|
|
566
|
+
class: suffixIcon
|
|
567
|
+
})
|
|
568
|
+
]
|
|
569
|
+
),
|
|
570
|
+
suffixOpts.content ? (0, import_vue.h)(
|
|
571
|
+
"span",
|
|
572
|
+
{
|
|
573
|
+
key: "4"
|
|
624
574
|
},
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
);
|
|
639
|
-
})
|
|
640
|
-
) : renderEmptyElement($xeContextMenu),
|
|
641
|
-
renderMenuItem(firstItem, null, hasChildMenus)
|
|
575
|
+
`${suffixOpts.content || ""}`
|
|
576
|
+
) : renderEmptyElement($xeContextMenu)
|
|
577
|
+
]
|
|
578
|
+
) : renderEmptyElement($xeContextMenu),
|
|
579
|
+
hasChildMenus ? (0, import_vue.h)(
|
|
580
|
+
"div",
|
|
581
|
+
{
|
|
582
|
+
class: "vxe-context-menu--item-subicon"
|
|
583
|
+
},
|
|
584
|
+
[
|
|
585
|
+
(0, import_vue.h)("i", {
|
|
586
|
+
class: getIcon().CONTEXT_MENU_CHILDREN
|
|
587
|
+
})
|
|
642
588
|
]
|
|
589
|
+
) : renderEmptyElement($xeContextMenu)
|
|
590
|
+
]
|
|
591
|
+
);
|
|
592
|
+
};
|
|
593
|
+
const renderMenus = () => {
|
|
594
|
+
const { activeOption, activeChildOption, childOffsetX } = reactData;
|
|
595
|
+
const menuGroups = computeMenuGroups.value;
|
|
596
|
+
const mgVNs = [];
|
|
597
|
+
menuGroups.forEach((menuList, gIndex) => {
|
|
598
|
+
const moVNs = [];
|
|
599
|
+
menuList.forEach((firstItem, i) => {
|
|
600
|
+
const { children } = firstItem;
|
|
601
|
+
const hasChildMenus = children && children.some((child) => child.visible !== false);
|
|
602
|
+
const isActiveFirst = activeOption === firstItem;
|
|
603
|
+
const showChild = isActiveFirst && !!activeChildOption;
|
|
604
|
+
moVNs.push(
|
|
605
|
+
(0, import_vue.h)(
|
|
606
|
+
"div",
|
|
607
|
+
{
|
|
608
|
+
key: `${gIndex}_${i}`,
|
|
609
|
+
class: [
|
|
610
|
+
"vxe-context-menu--item-wrapper vxe-context-menu--first-item",
|
|
611
|
+
firstItem.className || "",
|
|
612
|
+
{
|
|
613
|
+
"is--active": isActiveFirst,
|
|
614
|
+
"is--subactive": isActiveFirst && !!activeChildOption
|
|
615
|
+
}
|
|
616
|
+
]
|
|
617
|
+
},
|
|
618
|
+
[
|
|
619
|
+
hasChildMenus && showChild ? (0, import_vue.h)(
|
|
620
|
+
"div",
|
|
621
|
+
{
|
|
622
|
+
class: "vxe-context-menu--children-wrapper",
|
|
623
|
+
style: {
|
|
624
|
+
transform: `translate(${childOffsetX}px, -2px)`
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
children.map((twoItem) => {
|
|
628
|
+
return (0, import_vue.h)(
|
|
629
|
+
"div",
|
|
630
|
+
{
|
|
631
|
+
class: [
|
|
632
|
+
"vxe-context-menu--item-wrapper vxe-context-menu--child-item",
|
|
633
|
+
twoItem.className || "",
|
|
634
|
+
{
|
|
635
|
+
"is--active": activeChildOption === twoItem
|
|
636
|
+
}
|
|
637
|
+
]
|
|
638
|
+
},
|
|
639
|
+
[renderMenuItem(twoItem, firstItem)]
|
|
640
|
+
);
|
|
641
|
+
})
|
|
642
|
+
) : renderEmptyElement($xeContextMenu),
|
|
643
|
+
renderMenuItem(firstItem, null, hasChildMenus)
|
|
644
|
+
]
|
|
645
|
+
)
|
|
646
|
+
);
|
|
647
|
+
});
|
|
648
|
+
mgVNs.push(
|
|
649
|
+
(0, import_vue.h)(
|
|
650
|
+
"div",
|
|
651
|
+
{
|
|
652
|
+
key: gIndex,
|
|
653
|
+
class: "vxe-context-menu--group-wrapper"
|
|
654
|
+
},
|
|
655
|
+
moVNs
|
|
643
656
|
)
|
|
644
657
|
);
|
|
645
658
|
});
|
|
646
|
-
mgVNs
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
659
|
+
return mgVNs;
|
|
660
|
+
};
|
|
661
|
+
const renderVN = () => {
|
|
662
|
+
const { className, position, destroyOnClose } = props;
|
|
663
|
+
const { visible, popupStyle } = reactData;
|
|
664
|
+
const vSize = computeSize.value;
|
|
665
|
+
return (0, import_vue.h)(
|
|
666
|
+
"div",
|
|
667
|
+
{
|
|
668
|
+
ref: refElem,
|
|
669
|
+
class: [
|
|
670
|
+
"vxe-context-menu vxe-context-menu--wrapper",
|
|
671
|
+
position === "absolute" ? "is--" + position : "is--fixed",
|
|
672
|
+
className || "",
|
|
673
|
+
{
|
|
674
|
+
[`size--${vSize}`]: vSize,
|
|
675
|
+
"is--visible": visible
|
|
676
|
+
}
|
|
677
|
+
],
|
|
678
|
+
style: popupStyle
|
|
679
|
+
},
|
|
680
|
+
(destroyOnClose ? visible : true) ? renderMenus() : []
|
|
655
681
|
);
|
|
682
|
+
};
|
|
683
|
+
(0, import_vue.watch)(computeTopAndLeft, () => {
|
|
684
|
+
handleLocate();
|
|
685
|
+
(0, import_vue.nextTick)(() => {
|
|
686
|
+
updateLocate();
|
|
687
|
+
});
|
|
656
688
|
});
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
const vSize = computeSize.value;
|
|
663
|
-
return (0, import_vue.h)(
|
|
664
|
-
"div",
|
|
665
|
-
{
|
|
666
|
-
ref: refElem,
|
|
667
|
-
class: [
|
|
668
|
-
"vxe-context-menu vxe-context-menu--wrapper",
|
|
669
|
-
position === "absolute" ? "is--" + position : "is--fixed",
|
|
670
|
-
className || "",
|
|
671
|
-
{
|
|
672
|
-
[`size--${vSize}`]: vSize,
|
|
673
|
-
"is--visible": visible
|
|
674
|
-
}
|
|
675
|
-
],
|
|
676
|
-
style: popupStyle
|
|
677
|
-
},
|
|
678
|
-
(destroyOnClose ? visible : true) ? renderMenus() : []
|
|
689
|
+
(0, import_vue.watch)(
|
|
690
|
+
() => props.modelValue,
|
|
691
|
+
() => {
|
|
692
|
+
handleVisible();
|
|
693
|
+
}
|
|
679
694
|
);
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
695
|
+
handleVisible();
|
|
696
|
+
(0, import_vue.onMounted)(() => {
|
|
697
|
+
globalEvents.on($xeContextMenu, "mousewheel", handleGlobalMousewheelEvent);
|
|
698
|
+
globalEvents.on($xeContextMenu, "keydown", handleGlobalKeydownEvent);
|
|
699
|
+
globalEvents.on($xeContextMenu, "mousedown", handleGlobalMousedownEvent);
|
|
700
|
+
globalEvents.on($xeContextMenu, "blur", handleGlobalBlurEvent);
|
|
685
701
|
});
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
globalEvents.off($xeContextMenu, "keydown");
|
|
707
|
-
globalEvents.off($xeContextMenu, "mousedown");
|
|
708
|
-
globalEvents.off($xeContextMenu, "blur");
|
|
709
|
-
import_xe_utils.default.assign(reactData, createReactData());
|
|
710
|
-
import_xe_utils.default.assign(internalData, createInternalData());
|
|
711
|
-
});
|
|
712
|
-
$xeContextMenu.renderVN = renderVN;
|
|
713
|
-
return $xeContextMenu;
|
|
714
|
-
},
|
|
715
|
-
render() {
|
|
716
|
-
return this.renderVN();
|
|
717
|
-
}
|
|
718
|
-
});
|
|
702
|
+
(0, import_vue.onBeforeUnmount)(() => {
|
|
703
|
+
const { leaveTime } = internalData;
|
|
704
|
+
if (leaveTime) {
|
|
705
|
+
clearTimeout(leaveTime);
|
|
706
|
+
}
|
|
707
|
+
globalEvents.off($xeContextMenu, "mousewheel");
|
|
708
|
+
globalEvents.off($xeContextMenu, "keydown");
|
|
709
|
+
globalEvents.off($xeContextMenu, "mousedown");
|
|
710
|
+
globalEvents.off($xeContextMenu, "blur");
|
|
711
|
+
import_xe_utils.default.assign(reactData, createReactData());
|
|
712
|
+
import_xe_utils.default.assign(internalData, createInternalData());
|
|
713
|
+
});
|
|
714
|
+
$xeContextMenu.renderVN = renderVN;
|
|
715
|
+
return $xeContextMenu;
|
|
716
|
+
},
|
|
717
|
+
render() {
|
|
718
|
+
return this.renderVN();
|
|
719
|
+
}
|
|
720
|
+
})
|
|
721
|
+
);
|