element-ps 2.0.34 → 2.0.37
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/index.full.js +71 -375
- package/dist/index.full.min.js +5 -5
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +5 -5
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +71 -375
- package/es/components/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +82 -19
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +19 -82
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +11 -46
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +46 -11
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/button/index.mjs +3 -3
- package/es/components/button/src/button-group.mjs +5 -30
- package/es/components/button/src/button-group.mjs.map +1 -1
- package/es/components/button/src/button-group2.mjs +30 -5
- package/es/components/button/src/button-group2.mjs.map +1 -1
- package/es/components/button/src/button.mjs +96 -48
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +48 -96
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +188 -9
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +9 -188
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +4 -4
- package/es/components/carousel/src/carousel-item.mjs +7 -148
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +148 -7
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/carousel/src/carousel.mjs +43 -201
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +201 -43
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/cascader-panel/src/config.mjs +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -1
- package/es/components/cascader-panel/src/menu.mjs +1 -1
- package/es/components/cascader-panel/src/node.mjs +200 -120
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs +120 -200
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/src/store.mjs +1 -1
- package/es/components/collection/index.mjs +1 -1
- package/es/components/collection/src/collection.mjs +30 -10
- package/es/components/collection/src/collection.mjs.map +1 -1
- package/es/components/collection/src/collection2.mjs +10 -30
- package/es/components/collection/src/collection2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.mjs +34 -79
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +79 -34
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/divider/index.mjs +2 -2
- package/es/components/divider/src/divider.mjs +34 -17
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider2.mjs +17 -34
- package/es/components/divider/src/divider2.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +117 -23
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +23 -117
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/index.mjs +2 -2
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +100 -109
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +109 -100
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/form/index.mjs +4 -4
- package/es/components/form/src/form-item.mjs +171 -46
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item2.mjs +46 -177
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form.mjs +45 -40
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +40 -45
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/src/icon.mjs +35 -8
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +8 -35
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/src/image.mjs +50 -127
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +127 -50
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +23 -23
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item.mjs +15 -74
- package/es/components/menu/src/menu-item.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs +74 -15
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +53 -20
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +22 -53
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/trigger.mjs +17 -28
- package/es/components/popper/src/trigger.mjs.map +1 -1
- package/es/components/popper/src/trigger2.mjs +28 -17
- package/es/components/popper/src/trigger2.mjs.map +1 -1
- package/es/components/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +57 -230
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +230 -57
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/roving-focus-group/index.mjs +3 -3
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +29 -27
- package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -29
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton-item.mjs +23 -18
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +18 -23
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +1 -1
- package/es/components/tabs/index.mjs +3 -3
- package/es/components/tabs/src/tab-bar.mjs +76 -7
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +7 -76
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/tabs/src/tab-pane.mjs +15 -61
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +61 -15
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/timeline/index.mjs +2 -2
- package/es/components/timeline/src/timeline-item.mjs +39 -73
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +73 -39
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +4 -2
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.mjs +1 -1
- package/es/components/tooltip-v2/index.mjs +3 -3
- package/es/components/tooltip-v2/src/content.mjs +50 -113
- package/es/components/tooltip-v2/src/content.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content2.mjs +113 -50
- package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root.mjs +17 -81
- package/es/components/tooltip-v2/src/root.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root2.mjs +81 -17
- package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +3 -3
- package/es/components/tooltip-v2/src/tooltip2.mjs +6 -6
- package/es/components/tooltip-v2/src/trigger.mjs +11 -89
- package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
- package/es/components/tooltip-v2/src/trigger2.mjs +89 -11
- package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-content.mjs +46 -15
- package/es/components/upload/src/upload-content.mjs.map +1 -1
- package/es/components/upload/src/upload-content2.mjs +15 -46
- package/es/components/upload/src/upload-content2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/index.mjs +23 -23
- package/lib/components/affix/index.js +2 -2
- package/lib/components/affix/src/affix.js +82 -19
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +19 -82
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb-item.js +11 -46
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +46 -11
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/button/index.js +3 -3
- package/lib/components/button/src/button-group.js +5 -30
- package/lib/components/button/src/button-group.js.map +1 -1
- package/lib/components/button/src/button-group2.js +30 -5
- package/lib/components/button/src/button-group2.js.map +1 -1
- package/lib/components/button/src/button.js +96 -50
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +50 -96
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +192 -9
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +9 -192
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/carousel/index.js +4 -4
- package/lib/components/carousel/src/carousel-item.js +7 -148
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +148 -7
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/carousel/src/carousel.js +43 -201
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +201 -43
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/cascader-panel/src/config.js +1 -1
- package/lib/components/cascader-panel/src/index.js +1 -1
- package/lib/components/cascader-panel/src/menu.js +1 -1
- package/lib/components/cascader-panel/src/node.js +200 -121
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js +121 -200
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/src/store.js +1 -1
- package/lib/components/collection/index.js +1 -1
- package/lib/components/collection/src/collection.js +30 -9
- package/lib/components/collection/src/collection.js.map +1 -1
- package/lib/components/collection/src/collection2.js +9 -30
- package/lib/components/collection/src/collection2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.js +33 -78
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +78 -33
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/divider/index.js +2 -2
- package/lib/components/divider/src/divider.js +34 -17
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider2.js +17 -34
- package/lib/components/divider/src/divider2.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +117 -23
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +23 -117
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/index.js +2 -2
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-item.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +109 -109
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown2.js +109 -109
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/form/index.js +4 -4
- package/lib/components/form/src/form-item.js +171 -47
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item2.js +47 -177
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form.js +45 -40
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +40 -45
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/src/icon.js +35 -8
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +8 -35
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/src/image.js +50 -127
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +127 -50
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +23 -23
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item.js +16 -74
- package/lib/components/menu/src/menu-item.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js +74 -16
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +53 -20
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +22 -53
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/trigger.js +17 -28
- package/lib/components/popper/src/trigger.js.map +1 -1
- package/lib/components/popper/src/trigger2.js +28 -17
- package/lib/components/popper/src/trigger2.js.map +1 -1
- package/lib/components/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +57 -230
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js +230 -57
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/roving-focus-group/index.js +2 -2
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +33 -27
- package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -33
- package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton-item.js +23 -18
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +18 -23
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +1 -1
- package/lib/components/tabs/index.js +3 -3
- package/lib/components/tabs/src/tab-bar.js +76 -7
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +7 -76
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/tabs/src/tab-pane.js +15 -61
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +61 -15
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/timeline/index.js +2 -2
- package/lib/components/timeline/src/timeline-item.js +39 -73
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +73 -39
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +3 -1
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip/src/trigger.js +1 -1
- package/lib/components/tooltip-v2/index.js +3 -3
- package/lib/components/tooltip-v2/src/content.js +50 -113
- package/lib/components/tooltip-v2/src/content.js.map +1 -1
- package/lib/components/tooltip-v2/src/content2.js +113 -50
- package/lib/components/tooltip-v2/src/content2.js.map +1 -1
- package/lib/components/tooltip-v2/src/root.js +17 -81
- package/lib/components/tooltip-v2/src/root.js.map +1 -1
- package/lib/components/tooltip-v2/src/root2.js +81 -17
- package/lib/components/tooltip-v2/src/root2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +3 -3
- package/lib/components/tooltip-v2/src/tooltip2.js +6 -6
- package/lib/components/tooltip-v2/src/trigger.js +11 -89
- package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
- package/lib/components/tooltip-v2/src/trigger2.js +89 -11
- package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-content.js +46 -15
- package/lib/components/upload/src/upload-content.js.map +1 -1
- package/lib/components/upload/src/upload-content2.js +15 -46
- package/lib/components/upload/src/upload-content2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/index.js +23 -23
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -2,53 +2,211 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var core = require('@vueuse/core');
|
|
5
7
|
require('../../../utils/index.js');
|
|
6
|
-
var
|
|
8
|
+
var index$1 = require('../../icon/index.js');
|
|
9
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
10
|
+
require('../../../hooks/index.js');
|
|
11
|
+
require('../../../tokens/index.js');
|
|
12
|
+
var carousel = require('./carousel.js');
|
|
13
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
15
|
+
var shared = require('@vue/shared');
|
|
16
|
+
var error = require('../../../utils/error.js');
|
|
17
|
+
var carousel$1 = require('../../../tokens/carousel.js');
|
|
7
18
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return
|
|
19
|
+
const _hoisted_1 = { key: 0 };
|
|
20
|
+
const __default__ = {
|
|
21
|
+
name: "PsCarousel"
|
|
22
|
+
};
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
24
|
+
...__default__,
|
|
25
|
+
props: carousel.carouselProps,
|
|
26
|
+
setup(__props, { expose }) {
|
|
27
|
+
const props = __props;
|
|
28
|
+
const ns = index.useNamespace("carousel");
|
|
29
|
+
const COMPONENT_NAME = "PsCarousel";
|
|
30
|
+
const THROTTLE_TIME = 300;
|
|
31
|
+
const activeIndex = vue.ref(-1);
|
|
32
|
+
const timer = vue.ref(null);
|
|
33
|
+
const hover = vue.ref(false);
|
|
34
|
+
const root = vue.ref();
|
|
35
|
+
const items = vue.ref([]);
|
|
36
|
+
const arrowDisplay = vue.computed(() => props.arrow !== "never" && !vue.unref(isVertical));
|
|
37
|
+
const hasLabel = vue.computed(() => {
|
|
38
|
+
return items.value.some((item) => item.props.label.toString().length > 0);
|
|
39
|
+
});
|
|
40
|
+
const carouselClasses = vue.computed(() => {
|
|
41
|
+
const classes = [ns.b(), ns.m(props.direction)];
|
|
42
|
+
if (vue.unref(isCardType)) {
|
|
43
|
+
classes.push(ns.m("card"));
|
|
44
|
+
}
|
|
45
|
+
return classes;
|
|
46
|
+
});
|
|
47
|
+
const indicatorsClasses = vue.computed(() => {
|
|
48
|
+
const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
|
|
49
|
+
if (hasLabel.value) {
|
|
50
|
+
classes.push(ns.em("indicators", "labels"));
|
|
51
|
+
}
|
|
52
|
+
if (props.indicatorPosition === "outside" || vue.unref(isCardType)) {
|
|
53
|
+
classes.push(ns.em("indicators", "outside"));
|
|
54
|
+
}
|
|
55
|
+
return classes;
|
|
56
|
+
});
|
|
57
|
+
const isCardType = vue.computed(() => props.type === "card");
|
|
58
|
+
const isVertical = vue.computed(() => props.direction === "vertical");
|
|
59
|
+
function pauseTimer() {
|
|
60
|
+
if (timer.value) {
|
|
61
|
+
clearInterval(timer.value);
|
|
62
|
+
timer.value = null;
|
|
63
|
+
}
|
|
45
64
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
65
|
+
function startTimer() {
|
|
66
|
+
if (props.interval <= 0 || !props.autoplay || timer.value)
|
|
67
|
+
return;
|
|
68
|
+
timer.value = setInterval(() => playSlides(), props.interval);
|
|
69
|
+
}
|
|
70
|
+
const playSlides = () => {
|
|
71
|
+
if (activeIndex.value < items.value.length - 1) {
|
|
72
|
+
activeIndex.value = activeIndex.value + 1;
|
|
73
|
+
} else if (props.loop) {
|
|
74
|
+
activeIndex.value = 0;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
function setActiveItem(index) {
|
|
78
|
+
if (shared.isString(index)) {
|
|
79
|
+
const filteredItems = items.value.filter((item) => item.props.name === index);
|
|
80
|
+
if (filteredItems.length > 0) {
|
|
81
|
+
index = items.value.indexOf(filteredItems[0]);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
index = Number(index);
|
|
85
|
+
if (Number.isNaN(index) || index !== Math.floor(index)) {
|
|
86
|
+
error.debugWarn(COMPONENT_NAME, "index must be integer.");
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const itemCount = items.value.length;
|
|
90
|
+
const oldIndex = activeIndex.value;
|
|
91
|
+
if (index < 0) {
|
|
92
|
+
activeIndex.value = props.loop ? itemCount - 1 : 0;
|
|
93
|
+
} else if (index >= itemCount) {
|
|
94
|
+
activeIndex.value = props.loop ? 0 : itemCount - 1;
|
|
95
|
+
} else {
|
|
96
|
+
activeIndex.value = index;
|
|
97
|
+
}
|
|
98
|
+
if (oldIndex === activeIndex.value) {
|
|
99
|
+
resetItemPosition(oldIndex);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
function resetItemPosition(oldIndex) {
|
|
103
|
+
items.value.forEach((item, index) => {
|
|
104
|
+
item.translateItem(index, activeIndex.value, oldIndex);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function addItem(item) {
|
|
108
|
+
items.value.push(item);
|
|
109
|
+
}
|
|
110
|
+
function removeItem(uid) {
|
|
111
|
+
const index = items.value.findIndex((item) => item.uid === uid);
|
|
112
|
+
if (index !== -1) {
|
|
113
|
+
items.value.splice(index, 1);
|
|
114
|
+
if (activeIndex.value === index)
|
|
115
|
+
next();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function next() {
|
|
119
|
+
setActiveItem(activeIndex.value + 1);
|
|
120
|
+
}
|
|
121
|
+
const resizeObserver = vue.shallowRef();
|
|
122
|
+
vue.onMounted(async () => {
|
|
123
|
+
await vue.nextTick();
|
|
124
|
+
resizeObserver.value = core.useResizeObserver(root.value, () => {
|
|
125
|
+
resetItemPosition();
|
|
126
|
+
});
|
|
127
|
+
if (props.initialIndex < items.value.length && props.initialIndex >= 0) {
|
|
128
|
+
activeIndex.value = props.initialIndex;
|
|
129
|
+
}
|
|
130
|
+
startTimer();
|
|
131
|
+
});
|
|
132
|
+
vue.onBeforeUnmount(() => {
|
|
133
|
+
pauseTimer();
|
|
134
|
+
if (root.value && resizeObserver.value)
|
|
135
|
+
resizeObserver.value.stop();
|
|
136
|
+
});
|
|
137
|
+
vue.provide(carousel$1.carouselContextKey, {
|
|
138
|
+
root,
|
|
139
|
+
isCardType,
|
|
140
|
+
isVertical,
|
|
141
|
+
items,
|
|
142
|
+
loop: props.loop,
|
|
143
|
+
addItem,
|
|
144
|
+
removeItem,
|
|
145
|
+
setActiveItem
|
|
146
|
+
});
|
|
147
|
+
expose({
|
|
148
|
+
setActiveItem
|
|
149
|
+
});
|
|
150
|
+
return (_ctx, _cache) => {
|
|
151
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
152
|
+
ref_key: "root",
|
|
153
|
+
ref: root,
|
|
154
|
+
class: vue.normalizeClass(vue.unref(carouselClasses))
|
|
155
|
+
}, [
|
|
156
|
+
vue.createElementVNode("div", {
|
|
157
|
+
class: vue.normalizeClass(vue.unref(ns).e("container")),
|
|
158
|
+
style: vue.normalizeStyle({ height: _ctx.height })
|
|
159
|
+
}, [
|
|
160
|
+
vue.createElementVNode("button", {
|
|
161
|
+
type: "button",
|
|
162
|
+
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "left")])
|
|
163
|
+
}, [
|
|
164
|
+
vue.createVNode(vue.unref(index$1.PsIcon), null, {
|
|
165
|
+
default: vue.withCtx(() => [
|
|
166
|
+
vue.createVNode(vue.unref(iconsVue.ArrowLeft))
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
})
|
|
170
|
+
], 2),
|
|
171
|
+
vue.createElementVNode("button", {
|
|
172
|
+
type: "button",
|
|
173
|
+
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "right")])
|
|
174
|
+
}, [
|
|
175
|
+
vue.createVNode(vue.unref(index$1.PsIcon), null, {
|
|
176
|
+
default: vue.withCtx(() => [
|
|
177
|
+
vue.createVNode(vue.unref(iconsVue.ArrowRight))
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
})
|
|
181
|
+
], 2),
|
|
182
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
183
|
+
], 6),
|
|
184
|
+
_ctx.indicatorPosition !== "none" ? (vue.openBlock(), vue.createElementBlock("ul", {
|
|
185
|
+
key: 0,
|
|
186
|
+
class: vue.normalizeClass(vue.unref(indicatorsClasses))
|
|
187
|
+
}, [
|
|
188
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items.value, (item, index) => {
|
|
189
|
+
return vue.openBlock(), vue.createElementBlock("li", {
|
|
190
|
+
key: index,
|
|
191
|
+
class: vue.normalizeClass([
|
|
192
|
+
vue.unref(ns).e("indicator"),
|
|
193
|
+
vue.unref(ns).em("indicator", _ctx.direction),
|
|
194
|
+
vue.unref(ns).is("active", index === activeIndex.value)
|
|
195
|
+
])
|
|
196
|
+
}, [
|
|
197
|
+
vue.createElementVNode("button", {
|
|
198
|
+
class: vue.normalizeClass(vue.unref(ns).e("button"))
|
|
199
|
+
}, [
|
|
200
|
+
vue.unref(hasLabel) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1, vue.toDisplayString(item.props.label), 1)) : vue.createCommentVNode("v-if", true)
|
|
201
|
+
], 2)
|
|
202
|
+
], 2);
|
|
203
|
+
}), 128))
|
|
204
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
205
|
+
], 2);
|
|
206
|
+
};
|
|
50
207
|
}
|
|
51
208
|
});
|
|
209
|
+
var Carousel = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/meng/workspace/element-ps/packages/components/carousel/src/carousel.vue"]]);
|
|
52
210
|
|
|
53
|
-
exports
|
|
211
|
+
exports["default"] = Carousel;
|
|
54
212
|
//# sourceMappingURL=carousel2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel2.js","sources":["../../../../../../packages/components/carousel/src/carousel.ts"],"sourcesContent":["import { buildProps } from '@element-ps/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Carousel from './carousel.vue'\n\nexport const carouselProps = buildProps({\n initialIndex: {\n type: Number,\n default: 0,\n },\n height: { type: String, default: '' },\n trigger: {\n type: String,\n default: 'hover',\n },\n autoplay: {\n type: Boolean,\n default: true,\n },\n interval: {\n type: Number,\n default: 3000,\n },\n indicatorPosition: { type: String, default: '' },\n indicator: {\n type: Boolean,\n default: true,\n },\n arrow: {\n type: String,\n default: 'hover',\n },\n type: { type: String, default: '' },\n loop: {\n type: Boolean,\n default: true,\n },\n direction: {\n type: String,\n default: 'horizontal',\n validator(val: string) {\n return ['horizontal', 'vertical'].includes(val)\n },\n },\n pauseOnHover: {\n type: Boolean,\n default: true,\n },\n} as const)\n\nexport type CarouselProps = ExtractPropTypes<typeof carouselProps>\n\nexport type CarouselInstance = InstanceType<typeof Carousel>\n"],"names":["buildProps"],"mappings":";;;;;;;AACY,MAAC,aAAa,GAAGA,gBAAU,CAAC;AACxC,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACvC,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,iBAAiB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AAClD,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,SAAS,CAAC,GAAG,EAAE;AACnB,MAAM,OAAO,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AACtD,KAAK;AACL,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"carousel2.js","sources":["../../../../../../packages/components/carousel/src/carousel.vue"],"sourcesContent":["<template>\n <div\n ref=\"root\"\n :class=\"carouselClasses\"\n >\n <div :class=\"ns.e('container')\" :style=\"{ height: height }\">\n <button\n type=\"button\"\n :class=\"[ns.e('arrow'), ns.em('arrow', 'left')]\"\n >\n <PsIcon>\n <ArrowLeft />\n </PsIcon>\n </button>\n <button\n type=\"button\"\n :class=\"[ns.e('arrow'), ns.em('arrow', 'right')]\"\n >\n <PsIcon>\n <ArrowRight />\n </PsIcon>\n </button>\n <slot />\n </div>\n <ul v-if=\"indicatorPosition !== 'none'\" :class=\"indicatorsClasses\">\n <li\n v-for=\"(item, index) in items\"\n :key=\"index\"\n :class=\"[\n ns.e('indicator'),\n ns.em('indicator', direction),\n ns.is('active', index === activeIndex),\n ]\"\n >\n <button :class=\"ns.e('button')\">\n <span v-if=\"hasLabel\">{{ item.props.label }}</span>\n </button>\n </li>\n </ul>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onBeforeUnmount,\n onMounted,\n provide,\n ref,\n shallowRef,\n unref,\n} from 'vue'\nimport { useResizeObserver } from '@vueuse/core'\nimport { debugWarn, isString } from '@element-ps/utils'\nimport { PsIcon } from '@element-ps/components/icon'\nimport { ArrowLeft, ArrowRight } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-ps/hooks'\nimport { carouselContextKey } from '@element-ps/tokens'\nimport { carouselProps } from './carousel'\nimport type { CarouselItemContext } from '@element-ps/tokens'\n\ndefineOptions({\n name: 'PsCarousel',\n})\n\nconst props = defineProps(carouselProps)\nconst ns = useNamespace('carousel')\nconst COMPONENT_NAME = 'PsCarousel'\nconst THROTTLE_TIME = 300\n\n// refs\nconst activeIndex = ref(-1)\nconst timer = ref<ReturnType<typeof setInterval> | null>(null)\nconst hover = ref(false)\nconst root = ref<HTMLDivElement>()\nconst items = ref<Array<CarouselItemContext>>([])\n\n// computed\nconst arrowDisplay = computed(\n () => props.arrow !== 'never' && !unref(isVertical)\n)\n\nconst hasLabel = computed(() => {\n return items.value.some((item) => item.props.label.toString().length > 0)\n})\n\nconst carouselClasses = computed(() => {\n const classes = [ns.b(), ns.m(props.direction)]\n if (unref(isCardType)) {\n classes.push(ns.m('card'))\n }\n return classes\n})\n\nconst indicatorsClasses = computed(() => {\n const classes = [ns.e('indicators'), ns.em('indicators', props.direction)]\n if (hasLabel.value) {\n classes.push(ns.em('indicators', 'labels'))\n }\n if (props.indicatorPosition === 'outside' || unref(isCardType)) {\n classes.push(ns.em('indicators', 'outside'))\n }\n return classes\n})\n\nconst isCardType = computed(() => props.type === 'card')\nconst isVertical = computed(() => props.direction === 'vertical')\n\nfunction pauseTimer() {\n if (timer.value) {\n clearInterval(timer.value)\n timer.value = null\n }\n}\n\nfunction startTimer() {\n if (props.interval <= 0 || !props.autoplay || timer.value) return\n timer.value = setInterval(() => playSlides(), props.interval)\n}\n\nconst playSlides = () => {\n if (activeIndex.value < items.value.length - 1) {\n activeIndex.value = activeIndex.value + 1\n } else if (props.loop) {\n activeIndex.value = 0\n }\n}\n\nfunction setActiveItem(index: number | string) {\n if (isString(index)) {\n const filteredItems = items.value.filter(\n (item) => item.props.name === index\n )\n if (filteredItems.length > 0) {\n index = items.value.indexOf(filteredItems[0])\n }\n }\n index = Number(index)\n if (Number.isNaN(index) || index !== Math.floor(index)) {\n debugWarn(COMPONENT_NAME, 'index must be integer.')\n return\n }\n const itemCount = items.value.length\n const oldIndex = activeIndex.value\n if (index < 0) {\n activeIndex.value = props.loop ? itemCount - 1 : 0\n } else if (index >= itemCount) {\n activeIndex.value = props.loop ? 0 : itemCount - 1\n } else {\n activeIndex.value = index\n }\n if (oldIndex === activeIndex.value) {\n resetItemPosition(oldIndex)\n }\n}\n\nfunction resetItemPosition(oldIndex?: number) {\n items.value.forEach((item, index) => {\n item.translateItem(index, activeIndex.value, oldIndex)\n })\n}\n\nfunction addItem(item: CarouselItemContext) {\n items.value.push(item)\n}\n\nfunction removeItem(uid?: number) {\n const index = items.value.findIndex((item) => item.uid === uid)\n if (index !== -1) {\n items.value.splice(index, 1)\n if (activeIndex.value === index) next()\n }\n}\n\nfunction next() {\n setActiveItem(activeIndex.value + 1)\n}\n\nconst resizeObserver = shallowRef<ReturnType<typeof useResizeObserver>>()\n// lifecycle\nonMounted(async () => {\n await nextTick()\n\n resizeObserver.value = useResizeObserver(root.value, () => {\n resetItemPosition()\n })\n if (props.initialIndex < items.value.length && props.initialIndex >= 0) {\n activeIndex.value = props.initialIndex\n }\n startTimer()\n})\n\nonBeforeUnmount(() => {\n pauseTimer()\n if (root.value && resizeObserver.value) resizeObserver.value.stop()\n})\n\n// provide\nprovide(carouselContextKey, {\n root,\n isCardType,\n isVertical,\n items,\n loop: props.loop,\n addItem,\n removeItem,\n setActiveItem,\n})\n\ndefineExpose({\n /** @description manually switch slide */\n setActiveItem,\n})\n</script>\n"],"names":["useNamespace","ref","computed","unref","isString","debugWarn","shallowRef","onMounted","nextTick","useResizeObserver","onBeforeUnmount","provide","carouselContextKey"],"mappings":"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"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var shared = require('@vue/shared');
|
|
7
|
-
var node = require('./
|
|
7
|
+
var node = require('./node2.js');
|
|
8
8
|
|
|
9
9
|
const CommonProps = {
|
|
10
10
|
modelValue: [Number, String, Array],
|
|
@@ -10,7 +10,7 @@ require('../../../constants/index.js');
|
|
|
10
10
|
require('../../../hooks/index.js');
|
|
11
11
|
var menu = require('./menu.js');
|
|
12
12
|
var store = require('./store.js');
|
|
13
|
-
var node = require('./
|
|
13
|
+
var node = require('./node2.js');
|
|
14
14
|
var config = require('./config.js');
|
|
15
15
|
var utils = require('./utils.js');
|
|
16
16
|
var types$1 = require('./types.js');
|
|
@@ -8,7 +8,7 @@ require('../../../hooks/index.js');
|
|
|
8
8
|
require('../../../utils/index.js');
|
|
9
9
|
var iconsVue = require('@element-plus/icons-vue');
|
|
10
10
|
var index = require('../../icon/index.js');
|
|
11
|
-
var node = require('./
|
|
11
|
+
var node = require('./node.js');
|
|
12
12
|
var types = require('./types.js');
|
|
13
13
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
14
|
var index$2 = require('../../../hooks/use-namespace/index.js');
|
|
@@ -2,130 +2,209 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('
|
|
7
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index = require('../../checkbox/index.js');
|
|
7
|
+
var index$1 = require('../../radio/index.js');
|
|
8
|
+
var index$2 = require('../../icon/index.js');
|
|
9
|
+
require('../../../hooks/index.js');
|
|
10
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
11
|
+
var nodeContent = require('./node-content.js');
|
|
12
|
+
var types = require('./types.js');
|
|
13
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
|
+
var index$3 = require('../../../hooks/use-namespace/index.js');
|
|
8
15
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
this.level = root ? 0 : parent ? parent.level + 1 : 1;
|
|
38
|
-
this.value = data[valueKey];
|
|
39
|
-
this.label = data[labelKey];
|
|
40
|
-
this.pathNodes = pathNodes;
|
|
41
|
-
this.pathValues = pathNodes.map((node) => node.value);
|
|
42
|
-
this.pathLabels = pathNodes.map((node) => node.label);
|
|
43
|
-
this.childrenData = childrenData;
|
|
44
|
-
this.children = (childrenData || []).map((child) => new Node(child, config, this));
|
|
45
|
-
this.loaded = !config.lazy || this.isLeaf || !types.isEmpty(childrenData);
|
|
46
|
-
}
|
|
47
|
-
get isDisabled() {
|
|
48
|
-
const { data, parent, config } = this;
|
|
49
|
-
const { disabled, checkStrictly } = config;
|
|
50
|
-
const isDisabled = shared.isFunction(disabled) ? disabled(data, this) : !!data[disabled];
|
|
51
|
-
return isDisabled || !checkStrictly && (parent == null ? void 0 : parent.isDisabled);
|
|
52
|
-
}
|
|
53
|
-
get isLeaf() {
|
|
54
|
-
const { data, config, childrenData, loaded } = this;
|
|
55
|
-
const { lazy, leaf } = config;
|
|
56
|
-
const isLeaf = shared.isFunction(leaf) ? leaf(data, this) : data[leaf];
|
|
57
|
-
return types.isUndefined(isLeaf) ? lazy && !loaded ? false : !(Array.isArray(childrenData) && childrenData.length) : !!isLeaf;
|
|
58
|
-
}
|
|
59
|
-
get valueByOption() {
|
|
60
|
-
return this.config.emitPath ? this.pathValues : this.value;
|
|
61
|
-
}
|
|
62
|
-
appendChild(childData) {
|
|
63
|
-
const { childrenData, children } = this;
|
|
64
|
-
const node = new Node(childData, this.config, this);
|
|
65
|
-
if (Array.isArray(childrenData)) {
|
|
66
|
-
childrenData.push(childData);
|
|
67
|
-
} else {
|
|
68
|
-
this.childrenData = [childData];
|
|
69
|
-
}
|
|
70
|
-
children.push(node);
|
|
71
|
-
return node;
|
|
72
|
-
}
|
|
73
|
-
calcText(allLevels, separator) {
|
|
74
|
-
const text = allLevels ? this.pathLabels.join(separator) : this.label;
|
|
75
|
-
this.text = text;
|
|
76
|
-
return text;
|
|
77
|
-
}
|
|
78
|
-
broadcast(event, ...args) {
|
|
79
|
-
const handlerName = `onParent${shared.capitalize(event)}`;
|
|
80
|
-
this.children.forEach((child) => {
|
|
81
|
-
if (child) {
|
|
82
|
-
child.broadcast(event, ...args);
|
|
83
|
-
child[handlerName] && child[handlerName](...args);
|
|
84
|
-
}
|
|
16
|
+
const _sfc_main = vue.defineComponent({
|
|
17
|
+
name: "PsCascaderNode",
|
|
18
|
+
components: {
|
|
19
|
+
PsCheckbox: index.PsCheckbox,
|
|
20
|
+
PsRadio: index$1.PsRadio,
|
|
21
|
+
NodeContent: nodeContent["default"],
|
|
22
|
+
PsIcon: index$2.PsIcon,
|
|
23
|
+
Check: iconsVue.Check,
|
|
24
|
+
Loading: iconsVue.Loading,
|
|
25
|
+
ArrowRight: iconsVue.ArrowRight
|
|
26
|
+
},
|
|
27
|
+
props: {
|
|
28
|
+
node: {
|
|
29
|
+
type: Object,
|
|
30
|
+
required: true
|
|
31
|
+
},
|
|
32
|
+
menuId: String
|
|
33
|
+
},
|
|
34
|
+
emits: ["expand"],
|
|
35
|
+
setup(props, { emit }) {
|
|
36
|
+
const panel = vue.inject(types.CASCADER_PANEL_INJECTION_KEY);
|
|
37
|
+
const ns = index$3.useNamespace("cascader-node");
|
|
38
|
+
const isHoverMenu = vue.computed(() => panel.isHoverMenu);
|
|
39
|
+
const multiple = vue.computed(() => panel.config.multiple);
|
|
40
|
+
const checkStrictly = vue.computed(() => panel.config.checkStrictly);
|
|
41
|
+
const checkedNodeId = vue.computed(() => {
|
|
42
|
+
var _a;
|
|
43
|
+
return (_a = panel.checkedNodes[0]) == null ? void 0 : _a.uid;
|
|
85
44
|
});
|
|
45
|
+
const isDisabled = vue.computed(() => props.node.isDisabled);
|
|
46
|
+
const isLeaf = vue.computed(() => props.node.isLeaf);
|
|
47
|
+
const expandable = vue.computed(() => checkStrictly.value && !isLeaf.value || !isDisabled.value);
|
|
48
|
+
const inExpandingPath = vue.computed(() => isInPath(panel.expandingNode));
|
|
49
|
+
const inCheckedPath = vue.computed(() => checkStrictly.value && panel.checkedNodes.some(isInPath));
|
|
50
|
+
const isInPath = (node) => {
|
|
51
|
+
var _a;
|
|
52
|
+
const { level, uid } = props.node;
|
|
53
|
+
return ((_a = node == null ? void 0 : node.pathNodes[level - 1]) == null ? void 0 : _a.uid) === uid;
|
|
54
|
+
};
|
|
55
|
+
const doExpand = () => {
|
|
56
|
+
if (inExpandingPath.value)
|
|
57
|
+
return;
|
|
58
|
+
panel.expandNode(props.node);
|
|
59
|
+
};
|
|
60
|
+
const doCheck = (checked) => {
|
|
61
|
+
const { node } = props;
|
|
62
|
+
if (checked === node.checked)
|
|
63
|
+
return;
|
|
64
|
+
panel.handleCheckChange(node, checked);
|
|
65
|
+
};
|
|
66
|
+
const doLoad = () => {
|
|
67
|
+
panel.lazyLoad(props.node, () => {
|
|
68
|
+
if (!isLeaf.value)
|
|
69
|
+
doExpand();
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
const handleHoverExpand = (e) => {
|
|
73
|
+
if (!isHoverMenu.value)
|
|
74
|
+
return;
|
|
75
|
+
handleExpand();
|
|
76
|
+
!isLeaf.value && emit("expand", e);
|
|
77
|
+
};
|
|
78
|
+
const handleExpand = () => {
|
|
79
|
+
const { node } = props;
|
|
80
|
+
if (!expandable.value || node.loading)
|
|
81
|
+
return;
|
|
82
|
+
node.loaded ? doExpand() : doLoad();
|
|
83
|
+
};
|
|
84
|
+
const handleClick = () => {
|
|
85
|
+
if (isHoverMenu.value && !isLeaf.value)
|
|
86
|
+
return;
|
|
87
|
+
if (isLeaf.value && !isDisabled.value && !checkStrictly.value && !multiple.value) {
|
|
88
|
+
handleCheck(true);
|
|
89
|
+
} else {
|
|
90
|
+
handleExpand();
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
const handleSelectCheck = (checked) => {
|
|
94
|
+
if (checkStrictly.value) {
|
|
95
|
+
doCheck(checked);
|
|
96
|
+
if (props.node.loaded) {
|
|
97
|
+
doExpand();
|
|
98
|
+
}
|
|
99
|
+
} else {
|
|
100
|
+
handleCheck(checked);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
const handleCheck = (checked) => {
|
|
104
|
+
if (!props.node.loaded) {
|
|
105
|
+
doLoad();
|
|
106
|
+
} else {
|
|
107
|
+
doCheck(checked);
|
|
108
|
+
!checkStrictly.value && doExpand();
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
return {
|
|
112
|
+
panel,
|
|
113
|
+
isHoverMenu,
|
|
114
|
+
multiple,
|
|
115
|
+
checkStrictly,
|
|
116
|
+
checkedNodeId,
|
|
117
|
+
isDisabled,
|
|
118
|
+
isLeaf,
|
|
119
|
+
expandable,
|
|
120
|
+
inExpandingPath,
|
|
121
|
+
inCheckedPath,
|
|
122
|
+
ns,
|
|
123
|
+
handleHoverExpand,
|
|
124
|
+
handleExpand,
|
|
125
|
+
handleClick,
|
|
126
|
+
handleCheck,
|
|
127
|
+
handleSelectCheck
|
|
128
|
+
};
|
|
86
129
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
|
|
130
|
+
});
|
|
131
|
+
const _hoisted_1 = ["id", "aria-haspopup", "aria-owns", "aria-expanded", "tabindex"];
|
|
132
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("span", null, null, -1);
|
|
133
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
134
|
+
const _component_ps_checkbox = vue.resolveComponent("ps-checkbox");
|
|
135
|
+
const _component_ps_radio = vue.resolveComponent("ps-radio");
|
|
136
|
+
const _component_check = vue.resolveComponent("check");
|
|
137
|
+
const _component_ps_icon = vue.resolveComponent("ps-icon");
|
|
138
|
+
const _component_node_content = vue.resolveComponent("node-content");
|
|
139
|
+
const _component_loading = vue.resolveComponent("loading");
|
|
140
|
+
const _component_arrow_right = vue.resolveComponent("arrow-right");
|
|
141
|
+
return vue.openBlock(), vue.createElementBlock("li", {
|
|
142
|
+
id: `${_ctx.menuId}-${_ctx.node.uid}`,
|
|
143
|
+
role: "menuitem",
|
|
144
|
+
"aria-haspopup": !_ctx.isLeaf,
|
|
145
|
+
"aria-owns": _ctx.isLeaf ? null : _ctx.menuId,
|
|
146
|
+
"aria-expanded": _ctx.inExpandingPath,
|
|
147
|
+
tabindex: _ctx.expandable ? -1 : void 0,
|
|
148
|
+
class: vue.normalizeClass([
|
|
149
|
+
_ctx.ns.b(),
|
|
150
|
+
_ctx.ns.is("selectable", _ctx.checkStrictly),
|
|
151
|
+
_ctx.ns.is("active", _ctx.node.checked),
|
|
152
|
+
_ctx.ns.is("disabled", !_ctx.expandable),
|
|
153
|
+
_ctx.inExpandingPath && "in-active-path",
|
|
154
|
+
_ctx.inCheckedPath && "in-checked-path"
|
|
155
|
+
])
|
|
156
|
+
}, [
|
|
157
|
+
vue.createCommentVNode(" prefix "),
|
|
158
|
+
_ctx.multiple ? (vue.openBlock(), vue.createBlock(_component_ps_checkbox, {
|
|
159
|
+
key: 0,
|
|
160
|
+
"model-value": _ctx.node.checked,
|
|
161
|
+
indeterminate: _ctx.node.indeterminate,
|
|
162
|
+
disabled: _ctx.isDisabled
|
|
163
|
+
}, null, 8, ["model-value", "indeterminate", "disabled"])) : _ctx.checkStrictly ? (vue.openBlock(), vue.createBlock(_component_ps_radio, {
|
|
164
|
+
key: 1,
|
|
165
|
+
"model-value": _ctx.checkedNodeId,
|
|
166
|
+
label: _ctx.node.uid,
|
|
167
|
+
disabled: _ctx.isDisabled
|
|
168
|
+
}, {
|
|
169
|
+
default: vue.withCtx(() => [
|
|
170
|
+
vue.createCommentVNode("\n Add an empty element to avoid render label,\n do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485\n "),
|
|
171
|
+
_hoisted_2
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
}, 8, ["model-value", "label", "disabled"])) : _ctx.isLeaf && _ctx.node.checked ? (vue.openBlock(), vue.createBlock(_component_ps_icon, {
|
|
175
|
+
key: 2,
|
|
176
|
+
class: vue.normalizeClass(_ctx.ns.e("prefix"))
|
|
177
|
+
}, {
|
|
178
|
+
default: vue.withCtx(() => [
|
|
179
|
+
vue.createVNode(_component_check)
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
183
|
+
vue.createCommentVNode(" content "),
|
|
184
|
+
vue.createVNode(_component_node_content),
|
|
185
|
+
vue.createCommentVNode(" postfix "),
|
|
186
|
+
!_ctx.isLeaf ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
|
|
187
|
+
_ctx.node.loading ? (vue.openBlock(), vue.createBlock(_component_ps_icon, {
|
|
188
|
+
key: 0,
|
|
189
|
+
class: vue.normalizeClass([_ctx.ns.is("loading"), _ctx.ns.e("postfix")])
|
|
190
|
+
}, {
|
|
191
|
+
default: vue.withCtx(() => [
|
|
192
|
+
vue.createVNode(_component_loading)
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
}, 8, ["class"])) : (vue.openBlock(), vue.createBlock(_component_ps_icon, {
|
|
196
|
+
key: 1,
|
|
197
|
+
class: vue.normalizeClass(["arrow-right", _ctx.ns.e("postfix")])
|
|
198
|
+
}, {
|
|
199
|
+
default: vue.withCtx(() => [
|
|
200
|
+
vue.createVNode(_component_arrow_right)
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}, 8, ["class"]))
|
|
204
|
+
], 2112)) : vue.createCommentVNode("v-if", true)
|
|
205
|
+
], 10, _hoisted_1);
|
|
127
206
|
}
|
|
207
|
+
var PsCascaderNode = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/meng/workspace/element-ps/packages/components/cascader-panel/src/node.vue"]]);
|
|
128
208
|
|
|
129
|
-
exports
|
|
130
|
-
exports["default"] = Node;
|
|
209
|
+
exports["default"] = PsCascaderNode;
|
|
131
210
|
//# sourceMappingURL=node.js.map
|