element-ps 2.0.35 → 2.0.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/index.full.js +3 -1
- package/dist/index.full.min.js +1 -1
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +1 -1
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +3 -1
- 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/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +18 -59
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +59 -18
- package/es/components/backtop/src/backtop2.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 +48 -96
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +96 -48
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +1 -1
- package/es/components/calendar/src/date-table.mjs +27 -146
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/date-table2.mjs +146 -27
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +2 -2
- 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/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 +10 -30
- package/es/components/collection/src/collection.mjs.map +1 -1
- package/es/components/collection/src/collection2.mjs +30 -10
- package/es/components/collection/src/collection2.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +23 -117
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +117 -23
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +1 -1
- package/es/components/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +56 -11
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +11 -56
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/form/index.mjs +2 -2
- package/es/components/form/src/form-item2.mjs +1 -1
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form.mjs +40 -45
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +45 -40
- 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 +8 -35
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +35 -8
- 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 +127 -50
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +50 -127
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +30 -30
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +85 -295
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +295 -85
- package/es/components/input/src/input2.mjs.map +1 -1
- 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/page-header/index.mjs +2 -2
- package/es/components/page-header/src/page-header.mjs +55 -14
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +14 -55
- package/es/components/page-header/src/page-header2.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 +20 -53
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popper/index.mjs +4 -4
- package/es/components/popper/src/arrow.mjs +7 -31
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +31 -7
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +52 -64
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +64 -52
- package/es/components/popper/src/content2.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/radio/index.mjs +4 -4
- package/es/components/radio/src/radio-button.mjs +1 -1
- package/es/components/radio/src/radio-button2.mjs +1 -1
- package/es/components/radio/src/radio-group.mjs +18 -37
- package/es/components/radio/src/radio-group.mjs.map +1 -1
- package/es/components/radio/src/radio-group2.mjs +37 -18
- package/es/components/radio/src/radio-group2.mjs.map +1 -1
- package/es/components/radio/src/radio.mjs +62 -74
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio2.mjs +74 -62
- package/es/components/radio/src/radio2.mjs.map +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +169 -84
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +84 -169
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +28 -73
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +73 -28
- package/es/components/result/src/result2.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/scrollbar/index.mjs +2 -2
- package/es/components/scrollbar/src/scrollbar.mjs +42 -112
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +112 -42
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +4 -4
- 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/skeleton.mjs +22 -49
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +49 -22
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/switch/index.mjs +2 -2
- package/es/components/switch/src/switch.mjs +176 -81
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +81 -176
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +3 -3
- package/es/components/tabs/src/tab-bar.mjs +7 -76
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +76 -7
- 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/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +5 -3
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +3 -3
- package/es/components/tooltip-v2/src/arrow.mjs +38 -22
- package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
- package/es/components/tooltip-v2/src/arrow2.mjs +22 -38
- package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
- 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/tooltip.mjs +3 -3
- package/es/components/tooltip-v2/src/tooltip2.mjs +6 -6
- package/es/components/tooltip-v2/src/trigger.mjs +89 -11
- package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
- package/es/components/tooltip-v2/src/trigger2.mjs +11 -89
- 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-list.mjs +26 -155
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list2.mjs +155 -26
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/index.mjs +30 -30
- 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/backtop/index.js +2 -2
- package/lib/components/backtop/src/backtop.js +18 -59
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +59 -18
- package/lib/components/backtop/src/backtop2.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 +50 -96
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +96 -50
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +1 -1
- package/lib/components/calendar/src/date-table.js +30 -151
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/date-table2.js +151 -30
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- 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/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 +9 -30
- package/lib/components/collection/src/collection.js.map +1 -1
- package/lib/components/collection/src/collection2.js +30 -9
- package/lib/components/collection/src/collection2.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +23 -117
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +117 -23
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown2.js +1 -1
- package/lib/components/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +56 -11
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty2.js +11 -56
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/form/index.js +2 -2
- package/lib/components/form/src/form-item2.js +1 -1
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form.js +40 -45
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +45 -40
- 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 +8 -35
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +35 -8
- 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 +127 -50
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +50 -127
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +30 -30
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +84 -294
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +294 -84
- package/lib/components/input/src/input2.js.map +1 -1
- 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/page-header/index.js +2 -2
- package/lib/components/page-header/src/page-header.js +55 -14
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +14 -55
- package/lib/components/page-header/src/page-header2.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 +20 -53
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popper/index.js +4 -4
- package/lib/components/popper/src/arrow.js +7 -31
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +31 -7
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/content.js +52 -65
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +65 -52
- package/lib/components/popper/src/content2.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/radio/index.js +4 -4
- package/lib/components/radio/src/radio-button.js +1 -1
- package/lib/components/radio/src/radio-button2.js +1 -1
- package/lib/components/radio/src/radio-group.js +18 -37
- package/lib/components/radio/src/radio-group.js.map +1 -1
- package/lib/components/radio/src/radio-group2.js +37 -18
- package/lib/components/radio/src/radio-group2.js.map +1 -1
- package/lib/components/radio/src/radio.js +64 -73
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio2.js +73 -64
- package/lib/components/radio/src/radio2.js.map +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +169 -84
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +84 -169
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +30 -73
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +73 -30
- package/lib/components/result/src/result2.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/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/src/scrollbar.js +42 -112
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +112 -42
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/skeleton/index.js +4 -4
- 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/skeleton.js +22 -49
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +49 -22
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/switch/src/switch.js +176 -81
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +81 -176
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/tabs/index.js +3 -3
- package/lib/components/tabs/src/tab-bar.js +7 -76
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +76 -7
- 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/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +4 -2
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +3 -3
- package/lib/components/tooltip-v2/src/arrow.js +38 -23
- package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
- package/lib/components/tooltip-v2/src/arrow2.js +23 -38
- package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
- 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/tooltip.js +3 -3
- package/lib/components/tooltip-v2/src/tooltip2.js +6 -6
- package/lib/components/tooltip-v2/src/trigger.js +89 -11
- package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
- package/lib/components/tooltip-v2/src/trigger2.js +11 -89
- 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-list.js +27 -155
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list2.js +155 -27
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/index.js +30 -30
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -1,69 +1,57 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../../../
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent, inject, ref, provide, computed, unref, openBlock, createElementBlock, normalizeStyle, normalizeClass, renderSlot } from 'vue';
|
|
2
|
+
import '../../../hooks/index.mjs';
|
|
3
|
+
import '../../../tokens/index.mjs';
|
|
4
|
+
import { usePopperContentProps } from './content2.mjs';
|
|
5
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
6
|
+
import { POPPER_INJECTION_KEY, POPPER_CONTENT_INJECTION_KEY } from '../../../tokens/popper.mjs';
|
|
7
|
+
import { useZIndex } from '../../../hooks/use-z-index/index.mjs';
|
|
8
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
4
9
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
10
|
+
const __default__ = {
|
|
11
|
+
name: "PsPopperContent"
|
|
12
|
+
};
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
+
...__default__,
|
|
15
|
+
props: usePopperContentProps,
|
|
16
|
+
setup(__props, { expose }) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const { popperInstanceRef } = inject(POPPER_INJECTION_KEY, void 0);
|
|
19
|
+
const { nextZIndex } = useZIndex();
|
|
20
|
+
const ns = useNamespace("popper");
|
|
21
|
+
const popperContentRef = ref();
|
|
22
|
+
const arrowRef = ref();
|
|
23
|
+
const arrowOffset = ref();
|
|
24
|
+
provide(POPPER_CONTENT_INJECTION_KEY, {
|
|
25
|
+
arrowRef,
|
|
26
|
+
arrowOffset
|
|
27
|
+
});
|
|
28
|
+
const contentZIndex = ref(props.zIndex || nextZIndex());
|
|
29
|
+
const contentStyle = computed(() => [{ zIndex: unref(contentZIndex) }, props.popperStyle]);
|
|
30
|
+
const contentClass = computed(() => [
|
|
31
|
+
ns.b(),
|
|
32
|
+
ns.is("pure", props.pure),
|
|
33
|
+
ns.is(props.effect),
|
|
34
|
+
props.popperClass
|
|
35
|
+
]);
|
|
36
|
+
expose({
|
|
37
|
+
popperContentRef,
|
|
38
|
+
popperInstanceRef,
|
|
39
|
+
contentStyle
|
|
40
|
+
});
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createElementBlock("div", {
|
|
43
|
+
ref_key: "popperContentRef",
|
|
44
|
+
ref: popperContentRef,
|
|
45
|
+
style: normalizeStyle(unref(contentStyle)),
|
|
46
|
+
class: normalizeClass(unref(contentClass)),
|
|
47
|
+
role: "tooltip"
|
|
48
|
+
}, [
|
|
49
|
+
renderSlot(_ctx.$slots, "default")
|
|
50
|
+
], 6);
|
|
51
|
+
};
|
|
36
52
|
}
|
|
37
53
|
});
|
|
38
|
-
|
|
39
|
-
...usePopperCoreConfigProps,
|
|
40
|
-
style: { type: definePropType([String, Array, Object]) },
|
|
41
|
-
className: { type: definePropType([String, Array, Object]) },
|
|
42
|
-
effect: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: "dark"
|
|
45
|
-
},
|
|
46
|
-
visible: Boolean,
|
|
47
|
-
enterable: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: true
|
|
50
|
-
},
|
|
51
|
-
pure: Boolean,
|
|
52
|
-
popperClass: {
|
|
53
|
-
type: definePropType([String, Array, Object])
|
|
54
|
-
},
|
|
55
|
-
popperStyle: {
|
|
56
|
-
type: definePropType([String, Array, Object])
|
|
57
|
-
},
|
|
58
|
-
referenceEl: {
|
|
59
|
-
type: definePropType(Object)
|
|
60
|
-
},
|
|
61
|
-
stopPopperMouseEvent: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: true
|
|
64
|
-
},
|
|
65
|
-
zIndex: Number
|
|
66
|
-
});
|
|
54
|
+
var content = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/meng/workspace/element-ps/packages/components/popper/src/content.vue"]]);
|
|
67
55
|
|
|
68
|
-
export {
|
|
56
|
+
export { content as default };
|
|
69
57
|
//# sourceMappingURL=content.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.mjs","sources":["../../../../../../packages/components/popper/src/content.
|
|
1
|
+
{"version":3,"file":"content.mjs","sources":["../../../../../../packages/components/popper/src/content.vue"],"sourcesContent":["<template>\n <div\n ref=\"popperContentRef\"\n :style=\"contentStyle\"\n :class=\"contentClass\"\n role=\"tooltip\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, provide, ref, unref } from 'vue'\nimport { useNamespace, useZIndex } from '@element-ps/hooks'\nimport {\n POPPER_CONTENT_INJECTION_KEY,\n POPPER_INJECTION_KEY,\n} from '@element-ps/tokens'\nimport { usePopperContentProps } from './content'\n\ndefineOptions({\n name: 'PsPopperContent',\n})\n\nconst props = defineProps(usePopperContentProps)\n\nconst { popperInstanceRef } = inject(\n POPPER_INJECTION_KEY,\n undefined\n)!\nconst { nextZIndex } = useZIndex()\nconst ns = useNamespace('popper')\nconst popperContentRef = ref<HTMLElement>()\nconst arrowRef = ref<HTMLElement>()\nconst arrowOffset = ref<number>()\nprovide(POPPER_CONTENT_INJECTION_KEY, {\n arrowRef,\n arrowOffset,\n})\nconst contentZIndex = ref(props.zIndex || nextZIndex())\n\nconst contentStyle = computed(\n () => [{ zIndex: unref(contentZIndex) }, props.popperStyle] as any\n)\n\nconst contentClass = computed(() => [\n ns.b(),\n ns.is('pure', props.pure),\n ns.is(props.effect),\n props.popperClass,\n])\n\ndefineExpose({\n /**\n * @description popper content element\n */\n popperContentRef,\n /**\n * @description popperjs instance\n */\n popperInstanceRef,\n /**\n * @description content style\n */\n contentStyle,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA0BA,IAAA,MAAA,EAAA,iBAAA,EAAA,GAAA,MACA,CAAA,oBAAA,EACA,KACA,CAAA,CAAA,CAAA;AACA,IAAA,MAAA,EAAA,eAAA,SAAA,EAAA,CAAA;AACA,IAAA,MAAA,EAAA,GAAA,aAAA,QAAA,CAAA,CAAA;AACA,IAAA,MAAA,mBAAA,GAAA,EAAA,CAAA;AACA,IAAA,MAAA,WAAA,GAAA,EAAA,CAAA;AACA,IAAA,MAAA,cAAA,GAAA,EAAA,CAAA;AACA,IAAA,OAAA,CAAA,4BAAA,EAAA;AAAA,MACA,QAAA;AAAA,MACA,WAAA;AAAA,KACA,CAAA,CAAA;AACA,IAAA,MAAA,aAAA,GAAA,GAAA,CAAA,KAAA,CAAA,MAAA,IAAA,YAAA,CAAA,CAAA;AAEA,IAAA,MAAA,YAAA,GAAA,QAAA,CACA,MAAA,CAAA,EAAA,MAAA,EAAA,KAAA,CAAA,aAAA,CAAA,EAAA,EAAA,KAAA,CAAA,WAAA,CACA,CAAA,CAAA;AAEA,IAAA,MAAA,YAAA,GAAA,SAAA,MAAA;AAAA,MACA,GAAA,CAAA,EAAA;AAAA,MACA,EAAA,CAAA,EAAA,CAAA,MAAA,EAAA,KAAA,CAAA,IAAA,CAAA;AAAA,MACA,EAAA,CAAA,EAAA,CAAA,KAAA,CAAA,MAAA,CAAA;AAAA,MACA,KAAA,CAAA,WAAA;AAAA,KACA,CAAA,CAAA;AAEA,IAAA,MAAA,CAAA;AAAA,MAIA,gBAAA;AAAA,MAIA,iBAAA;AAAA,MAIA,YAAA;AAAA,KACA,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,57 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../../../
|
|
3
|
-
import '../../../
|
|
4
|
-
import { usePopperContentProps } from './content.mjs';
|
|
5
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
6
|
-
import { POPPER_INJECTION_KEY, POPPER_CONTENT_INJECTION_KEY } from '../../../tokens/popper.mjs';
|
|
7
|
-
import { useZIndex } from '../../../hooks/use-z-index/index.mjs';
|
|
8
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import { placements } from '@popperjs/core';
|
|
2
|
+
import '../../../utils/index.mjs';
|
|
3
|
+
import { buildProps, definePropType } from '../../../utils/vue/props.mjs';
|
|
9
4
|
|
|
10
|
-
const
|
|
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
|
-
return (_ctx, _cache) => {
|
|
42
|
-
return openBlock(), createElementBlock("div", {
|
|
43
|
-
ref_key: "popperContentRef",
|
|
44
|
-
ref: popperContentRef,
|
|
45
|
-
style: normalizeStyle(unref(contentStyle)),
|
|
46
|
-
class: normalizeClass(unref(contentClass)),
|
|
47
|
-
role: "tooltip"
|
|
48
|
-
}, [
|
|
49
|
-
renderSlot(_ctx.$slots, "default")
|
|
50
|
-
], 6);
|
|
51
|
-
};
|
|
5
|
+
const POSITIONING_STRATEGIES = ["fixed", "absolute"];
|
|
6
|
+
const usePopperCoreConfigProps = buildProps({
|
|
7
|
+
boundariesPadding: {
|
|
8
|
+
type: Number,
|
|
9
|
+
default: 0
|
|
10
|
+
},
|
|
11
|
+
fallbackPlacements: {
|
|
12
|
+
type: definePropType(Array),
|
|
13
|
+
default: () => []
|
|
14
|
+
},
|
|
15
|
+
gpuAcceleration: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: true
|
|
18
|
+
},
|
|
19
|
+
offset: {
|
|
20
|
+
type: Number,
|
|
21
|
+
default: 12
|
|
22
|
+
},
|
|
23
|
+
placement: {
|
|
24
|
+
type: String,
|
|
25
|
+
values: placements,
|
|
26
|
+
default: "bottom"
|
|
27
|
+
},
|
|
28
|
+
popperOptions: {
|
|
29
|
+
type: definePropType(Object),
|
|
30
|
+
default: () => ({})
|
|
31
|
+
},
|
|
32
|
+
strategy: {
|
|
33
|
+
type: String,
|
|
34
|
+
values: POSITIONING_STRATEGIES,
|
|
35
|
+
default: "absolute"
|
|
52
36
|
}
|
|
53
37
|
});
|
|
54
|
-
|
|
38
|
+
const usePopperContentProps = buildProps({
|
|
39
|
+
...usePopperCoreConfigProps,
|
|
40
|
+
style: { type: definePropType([String, Array, Object]) },
|
|
41
|
+
className: { type: definePropType([String, Array, Object]) },
|
|
42
|
+
effect: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "dark"
|
|
45
|
+
},
|
|
46
|
+
visible: Boolean,
|
|
47
|
+
enterable: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: true
|
|
50
|
+
},
|
|
51
|
+
pure: Boolean,
|
|
52
|
+
popperClass: {
|
|
53
|
+
type: definePropType([String, Array, Object])
|
|
54
|
+
},
|
|
55
|
+
popperStyle: {
|
|
56
|
+
type: definePropType([String, Array, Object])
|
|
57
|
+
},
|
|
58
|
+
referenceEl: {
|
|
59
|
+
type: definePropType(Object)
|
|
60
|
+
},
|
|
61
|
+
stopPopperMouseEvent: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: true
|
|
64
|
+
},
|
|
65
|
+
zIndex: Number
|
|
66
|
+
});
|
|
55
67
|
|
|
56
|
-
export {
|
|
68
|
+
export { usePopperContentProps, usePopperCoreConfigProps };
|
|
57
69
|
//# sourceMappingURL=content2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content2.mjs","sources":["../../../../../../packages/components/popper/src/content.
|
|
1
|
+
{"version":3,"file":"content2.mjs","sources":["../../../../../../packages/components/popper/src/content.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { buildProps, definePropType } from '@element-ps/utils'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Options, Placement } from '@popperjs/core'\n\ntype ClassObjectType = Record<string, boolean>\ntype ClassType = string | ClassObjectType | ClassType[]\n\nconst POSITIONING_STRATEGIES = ['fixed', 'absolute'] as const\nexport const usePopperCoreConfigProps = buildProps({\n boundariesPadding: {\n type: Number,\n default: 0,\n },\n fallbackPlacements: {\n type: definePropType<Placement[]>(Array),\n default: () => [],\n },\n gpuAcceleration: {\n type: Boolean,\n default: true,\n },\n offset: {\n type: Number,\n default: 12,\n },\n placement: {\n type: String,\n values: placements,\n default: 'bottom',\n },\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n strategy: {\n type: String,\n values: POSITIONING_STRATEGIES,\n default: 'absolute',\n },\n} as const)\n\nexport const usePopperContentProps = buildProps({\n ...usePopperCoreConfigProps,\n style: { type: definePropType<StyleValue>([String, Array, Object]) },\n className: { type: definePropType<ClassType>([String, Array, Object]) },\n effect: {\n type: String,\n default: 'dark',\n },\n visible: Boolean,\n enterable: {\n type: Boolean,\n default: true,\n },\n pure: Boolean,\n popperClass: {\n type: definePropType<ClassType>([String, Array, Object]),\n },\n popperStyle: {\n type: definePropType<StyleValue>([String, Array, Object]),\n },\n referenceEl: {\n type: definePropType<HTMLElement>(Object),\n },\n stopPopperMouseEvent: {\n type: Boolean,\n default: true,\n },\n zIndex: Number,\n} as const)\n\nexport type UsePopperContentProps = ExtractPropTypes<\n typeof usePopperContentProps\n>\n\nexport type UsePopperCoreConfigProps = ExtractPropTypes<\n typeof usePopperCoreConfigProps\n>\n"],"names":[],"mappings":";;;;AAEA,MAAM,sBAAsB,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AACzC,MAAC,wBAAwB,GAAG,UAAU,CAAC;AACnD,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,UAAU;AACtB,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO,EAAE,CAAC;AACvB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,sBAAsB;AAClC,IAAI,OAAO,EAAE,UAAU;AACvB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,GAAG,wBAAwB;AAC7B,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AAC1D,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AAC9D,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACjD,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACjD,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,oBAAoB,EAAE;AACxB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,CAAC;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
|
-
import Progress from './src/
|
|
3
|
-
export { progressProps } from './src/
|
|
2
|
+
import Progress from './src/progress2.mjs';
|
|
3
|
+
export { progressProps } from './src/progress.mjs';
|
|
4
4
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
5
5
|
|
|
6
6
|
const PsProgress = withInstall(Progress);
|
|
@@ -1,236 +1,63 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { CircleCheck, CircleClose, Check, Close, WarningFilled } from '@element-plus/icons-vue';
|
|
4
|
-
import '../../../hooks/index.mjs';
|
|
5
|
-
import { progressProps } from './progress2.mjs';
|
|
6
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
7
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import '../../../utils/index.mjs';
|
|
2
|
+
import { buildProps, definePropType } from '../../../utils/vue/props.mjs';
|
|
8
3
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
CircleClose,
|
|
15
|
-
Check,
|
|
16
|
-
Close,
|
|
17
|
-
WarningFilled
|
|
4
|
+
const progressProps = buildProps({
|
|
5
|
+
type: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "line",
|
|
8
|
+
values: ["line", "circle", "dashboard"]
|
|
18
9
|
},
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
break;
|
|
69
|
-
case "exception":
|
|
70
|
-
ret = "#ff4949";
|
|
71
|
-
break;
|
|
72
|
-
case "warning":
|
|
73
|
-
ret = "#e6a23c";
|
|
74
|
-
break;
|
|
75
|
-
default:
|
|
76
|
-
ret = "#20a0ff";
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return ret;
|
|
80
|
-
});
|
|
81
|
-
const statusIcon = computed(() => {
|
|
82
|
-
if (props.status === "warning") {
|
|
83
|
-
return WarningFilled;
|
|
84
|
-
}
|
|
85
|
-
if (props.type === "line") {
|
|
86
|
-
return props.status === "success" ? CircleCheck : CircleClose;
|
|
87
|
-
} else {
|
|
88
|
-
return props.status === "success" ? Check : Close;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
const progressTextSize = computed(() => {
|
|
92
|
-
return props.type === "line" ? 12 + props.strokeWidth * 0.4 : props.width * 0.111111 + 2;
|
|
93
|
-
});
|
|
94
|
-
const content = computed(() => props.format(props.percentage));
|
|
95
|
-
const getCurrentColor = (percentage) => {
|
|
96
|
-
var _a;
|
|
97
|
-
const { color } = props;
|
|
98
|
-
if (typeof color === "function") {
|
|
99
|
-
return color(percentage);
|
|
100
|
-
} else if (typeof color === "string") {
|
|
101
|
-
return color;
|
|
102
|
-
} else {
|
|
103
|
-
const span = 100 / color.length;
|
|
104
|
-
const seriesColors = color.map((seriesColor, index) => {
|
|
105
|
-
if (typeof seriesColor === "string") {
|
|
106
|
-
return {
|
|
107
|
-
color: seriesColor,
|
|
108
|
-
percentage: (index + 1) * span
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
return seriesColor;
|
|
112
|
-
});
|
|
113
|
-
const colors = seriesColors.sort((a, b) => a.percentage - b.percentage);
|
|
114
|
-
for (const color2 of colors) {
|
|
115
|
-
if (color2.percentage > percentage)
|
|
116
|
-
return color2.color;
|
|
117
|
-
}
|
|
118
|
-
return (_a = colors[colors.length - 1]) == null ? void 0 : _a.color;
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
const slotData = computed(() => {
|
|
122
|
-
return {
|
|
123
|
-
percentage: props.percentage
|
|
124
|
-
};
|
|
125
|
-
});
|
|
126
|
-
return {
|
|
127
|
-
ns,
|
|
128
|
-
barStyle,
|
|
129
|
-
relativeStrokeWidth,
|
|
130
|
-
radius,
|
|
131
|
-
trackPath,
|
|
132
|
-
perimeter,
|
|
133
|
-
rate,
|
|
134
|
-
strokeDashoffset,
|
|
135
|
-
trailPathStyle,
|
|
136
|
-
circlePathStyle,
|
|
137
|
-
stroke,
|
|
138
|
-
statusIcon,
|
|
139
|
-
progressTextSize,
|
|
140
|
-
content,
|
|
141
|
-
slotData
|
|
142
|
-
};
|
|
10
|
+
percentage: {
|
|
11
|
+
type: Number,
|
|
12
|
+
default: 0,
|
|
13
|
+
validator: (val) => val >= 0 && val <= 100
|
|
14
|
+
},
|
|
15
|
+
status: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "",
|
|
18
|
+
values: ["", "success", "exception", "warning"]
|
|
19
|
+
},
|
|
20
|
+
indeterminate: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
24
|
+
duration: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 3
|
|
27
|
+
},
|
|
28
|
+
strokeWidth: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: 6
|
|
31
|
+
},
|
|
32
|
+
strokeLinecap: {
|
|
33
|
+
type: definePropType(String),
|
|
34
|
+
default: "round"
|
|
35
|
+
},
|
|
36
|
+
textInside: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
39
|
+
},
|
|
40
|
+
width: {
|
|
41
|
+
type: Number,
|
|
42
|
+
default: 126
|
|
43
|
+
},
|
|
44
|
+
showText: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: true
|
|
47
|
+
},
|
|
48
|
+
color: {
|
|
49
|
+
type: definePropType([
|
|
50
|
+
String,
|
|
51
|
+
Array,
|
|
52
|
+
Function
|
|
53
|
+
]),
|
|
54
|
+
default: ""
|
|
55
|
+
},
|
|
56
|
+
format: {
|
|
57
|
+
type: definePropType(Function),
|
|
58
|
+
default: (percentage) => `${percentage}%`
|
|
143
59
|
}
|
|
144
60
|
});
|
|
145
|
-
const _hoisted_1 = ["aria-valuenow"];
|
|
146
|
-
const _hoisted_2 = { viewBox: "0 0 100 100" };
|
|
147
|
-
const _hoisted_3 = ["d", "stroke-width"];
|
|
148
|
-
const _hoisted_4 = ["d", "stroke", "stroke-linecap", "stroke-width"];
|
|
149
|
-
const _hoisted_5 = { key: 0 };
|
|
150
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
151
|
-
const _component_ps_icon = resolveComponent("ps-icon");
|
|
152
|
-
return openBlock(), createElementBlock("div", {
|
|
153
|
-
class: normalizeClass([
|
|
154
|
-
_ctx.ns.b(),
|
|
155
|
-
_ctx.ns.m(_ctx.type),
|
|
156
|
-
_ctx.ns.is(_ctx.status),
|
|
157
|
-
{
|
|
158
|
-
[_ctx.ns.m("without-text")]: !_ctx.showText,
|
|
159
|
-
[_ctx.ns.m("text-inside")]: _ctx.textInside
|
|
160
|
-
}
|
|
161
|
-
]),
|
|
162
|
-
role: "progressbar",
|
|
163
|
-
"aria-valuenow": _ctx.percentage,
|
|
164
|
-
"aria-valuemin": "0",
|
|
165
|
-
"aria-valuemax": "100"
|
|
166
|
-
}, [
|
|
167
|
-
_ctx.type === "line" ? (openBlock(), createElementBlock("div", {
|
|
168
|
-
key: 0,
|
|
169
|
-
class: normalizeClass(_ctx.ns.b("bar"))
|
|
170
|
-
}, [
|
|
171
|
-
createElementVNode("div", {
|
|
172
|
-
class: normalizeClass(_ctx.ns.be("bar", "outer")),
|
|
173
|
-
style: normalizeStyle({ height: `${_ctx.strokeWidth}px` })
|
|
174
|
-
}, [
|
|
175
|
-
createElementVNode("div", {
|
|
176
|
-
class: normalizeClass([
|
|
177
|
-
_ctx.ns.be("bar", "inner"),
|
|
178
|
-
{ [_ctx.ns.bem("bar", "inner", "indeterminate")]: _ctx.indeterminate }
|
|
179
|
-
]),
|
|
180
|
-
style: normalizeStyle(_ctx.barStyle)
|
|
181
|
-
}, [
|
|
182
|
-
(_ctx.showText || _ctx.$slots.default) && _ctx.textInside ? (openBlock(), createElementBlock("div", {
|
|
183
|
-
key: 0,
|
|
184
|
-
class: normalizeClass(_ctx.ns.be("bar", "innerText"))
|
|
185
|
-
}, [
|
|
186
|
-
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(_ctx.slotData)), () => [
|
|
187
|
-
createElementVNode("span", null, toDisplayString(_ctx.content), 1)
|
|
188
|
-
])
|
|
189
|
-
], 2)) : createCommentVNode("v-if", true)
|
|
190
|
-
], 6)
|
|
191
|
-
], 6)
|
|
192
|
-
], 2)) : (openBlock(), createElementBlock("div", {
|
|
193
|
-
key: 1,
|
|
194
|
-
class: normalizeClass(_ctx.ns.b("circle")),
|
|
195
|
-
style: normalizeStyle({ height: `${_ctx.width}px`, width: `${_ctx.width}px` })
|
|
196
|
-
}, [
|
|
197
|
-
(openBlock(), createElementBlock("svg", _hoisted_2, [
|
|
198
|
-
createElementVNode("path", {
|
|
199
|
-
class: normalizeClass(_ctx.ns.be("circle", "track")),
|
|
200
|
-
d: _ctx.trackPath,
|
|
201
|
-
stroke: "var(--el-fill-color-light, #e5e9f2)",
|
|
202
|
-
"stroke-width": _ctx.relativeStrokeWidth,
|
|
203
|
-
fill: "none",
|
|
204
|
-
style: normalizeStyle(_ctx.trailPathStyle)
|
|
205
|
-
}, null, 14, _hoisted_3),
|
|
206
|
-
createElementVNode("path", {
|
|
207
|
-
class: normalizeClass(_ctx.ns.be("circle", "path")),
|
|
208
|
-
d: _ctx.trackPath,
|
|
209
|
-
stroke: _ctx.stroke,
|
|
210
|
-
fill: "none",
|
|
211
|
-
"stroke-linecap": _ctx.strokeLinecap,
|
|
212
|
-
"stroke-width": _ctx.percentage ? _ctx.relativeStrokeWidth : 0,
|
|
213
|
-
style: normalizeStyle(_ctx.circlePathStyle)
|
|
214
|
-
}, null, 14, _hoisted_4)
|
|
215
|
-
]))
|
|
216
|
-
], 6)),
|
|
217
|
-
(_ctx.showText || _ctx.$slots.default) && !_ctx.textInside ? (openBlock(), createElementBlock("div", {
|
|
218
|
-
key: 2,
|
|
219
|
-
class: normalizeClass(_ctx.ns.e("text")),
|
|
220
|
-
style: normalizeStyle({ fontSize: `${_ctx.progressTextSize}px` })
|
|
221
|
-
}, [
|
|
222
|
-
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(_ctx.slotData)), () => [
|
|
223
|
-
!_ctx.status ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(_ctx.content), 1)) : (openBlock(), createBlock(_component_ps_icon, { key: 1 }, {
|
|
224
|
-
default: withCtx(() => [
|
|
225
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.statusIcon)))
|
|
226
|
-
]),
|
|
227
|
-
_: 1
|
|
228
|
-
}))
|
|
229
|
-
])
|
|
230
|
-
], 6)) : createCommentVNode("v-if", true)
|
|
231
|
-
], 10, _hoisted_1);
|
|
232
|
-
}
|
|
233
|
-
var Progress = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/meng/workspace/element-ps/packages/components/progress/src/progress.vue"]]);
|
|
234
61
|
|
|
235
|
-
export {
|
|
62
|
+
export { progressProps };
|
|
236
63
|
//# sourceMappingURL=progress.mjs.map
|