element-ps 2.0.25 → 2.0.28
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 +69 -180
- package/dist/index.full.min.js +8 -8
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +8 -8
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +69 -180
- package/es/component.mjs +2 -0
- package/es/component.mjs.map +1 -1
- package/es/components/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +19 -82
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +82 -19
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +33 -83
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +83 -33
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/index.d.ts +2 -0
- package/es/components/autocomplete/src/autocomplete.mjs +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +2 -0
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +54 -17
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +17 -54
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/breadcrumb/index.mjs +4 -4
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +46 -11
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +11 -46
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb.mjs +37 -12
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +12 -37
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/button/index.mjs +1 -1
- 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/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/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +35 -15
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +15 -35
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +4 -0
- package/es/components/cascader/src/index.mjs +2 -2
- package/es/components/cascader/src/index.vue.d.ts +2 -0
- package/es/components/check-tag/index.mjs +2 -2
- package/es/components/check-tag/src/check-tag.mjs +20 -7
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +7 -20
- package/es/components/check-tag/src/check-tag2.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/dropdown/src/dropdown.mjs +1 -1
- package/es/components/form/index.mjs +4 -4
- package/es/components/form/src/form-item.mjs +177 -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/image/index.d.ts +0 -5
- package/es/components/image/src/image.vue.d.ts +77 -82
- package/es/components/image/src/image2.mjs +7 -62
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +27 -27
- package/es/components/input/index.d.ts +1 -0
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +295 -85
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +1 -0
- package/es/components/input/src/input2.mjs +85 -296
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.d.ts +2 -0
- package/es/components/input-number/src/input-number.vue.d.ts +2 -0
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item.mjs +65 -15
- package/es/components/menu/src/menu-item.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs +15 -65
- 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 +14 -55
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +55 -14
- 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 +20 -53
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +53 -20
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +230 -57
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +57 -230
- 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 +80 -9
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +9 -80
- package/es/components/radio/src/radio-button2.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/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 +112 -42
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +42 -112
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +2 -2
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/skeleton/index.mjs +4 -4
- package/es/components/skeleton/src/skeleton-item.mjs +18 -23
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton.mjs +49 -22
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +22 -49
- 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 +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 +14 -60
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +60 -14
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +33 -81
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +81 -33
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +18 -43
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +43 -18
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +2 -2
- package/es/components/tooltip/src/tooltip.mjs +51 -64
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +64 -51
- 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/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/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 +1 -1
- package/es/components/upload/src/upload-dragger.mjs +32 -11
- package/es/components/upload/src/upload-dragger.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger2.mjs +11 -32
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/index.mjs +27 -27
- package/lib/component.js +23 -21
- package/lib/component.js.map +1 -1
- package/lib/components/affix/index.js +2 -2
- package/lib/components/affix/src/affix.js +19 -82
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +82 -19
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +33 -82
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +82 -33
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/index.d.ts +2 -0
- package/lib/components/autocomplete/src/autocomplete.js +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +2 -0
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +54 -17
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +17 -54
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/breadcrumb/index.js +4 -4
- package/lib/components/breadcrumb/src/breadcrumb-item.js +46 -11
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +11 -46
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb.js +37 -12
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +12 -37
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/button/index.js +1 -1
- 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/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/card/index.js +2 -2
- package/lib/components/card/src/card.js +35 -15
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +15 -35
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/cascader/index.d.ts +4 -0
- package/lib/components/cascader/src/index.js +2 -2
- package/lib/components/cascader/src/index.vue.d.ts +2 -0
- package/lib/components/check-tag/index.js +2 -2
- package/lib/components/check-tag/src/check-tag.js +20 -7
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +7 -20
- package/lib/components/check-tag/src/check-tag2.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/dropdown/src/dropdown.js +1 -1
- package/lib/components/form/index.js +4 -4
- package/lib/components/form/src/form-item.js +177 -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/image/index.d.ts +0 -5
- package/lib/components/image/src/image.vue.d.ts +77 -82
- package/lib/components/image/src/image2.js +5 -60
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +27 -27
- package/lib/components/input/index.d.ts +1 -0
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +294 -84
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +1 -0
- package/lib/components/input/src/input2.js +84 -295
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.d.ts +2 -0
- package/lib/components/input-number/src/input-number.vue.d.ts +2 -0
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item.js +65 -16
- package/lib/components/menu/src/menu-item.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js +16 -65
- 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 +14 -55
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +55 -14
- 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 +20 -53
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +53 -20
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +230 -57
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js +57 -230
- 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 +80 -9
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +9 -80
- package/lib/components/radio/src/radio-button2.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/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 +112 -42
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +42 -112
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/select/src/select.js +2 -2
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/skeleton/index.js +4 -4
- package/lib/components/skeleton/src/skeleton-item.js +18 -23
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +23 -18
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton.js +49 -22
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +22 -49
- 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 +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 +14 -60
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +60 -14
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +34 -81
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +81 -34
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +18 -43
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +43 -18
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/tooltip/index.js +2 -2
- package/lib/components/tooltip/src/tooltip.js +50 -65
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +65 -50
- 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/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/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 +1 -1
- package/lib/components/upload/src/upload-dragger.js +32 -12
- package/lib/components/upload/src/upload-dragger.js.map +1 -1
- package/lib/components/upload/src/upload-dragger2.js +12 -32
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/index.js +27 -27
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -1,37 +1,85 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createElementVNode, renderSlot, createBlock, withCtx, createVNode, createCommentVNode, Transition } from 'vue';
|
|
2
|
+
import { PsIcon } from '../../icon/index.mjs';
|
|
3
|
+
import { Close } from '@element-plus/icons-vue';
|
|
4
|
+
import '../../../hooks/index.mjs';
|
|
5
|
+
import { tagProps } from './tag.mjs';
|
|
6
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
7
|
+
import { useSize } from '../../../hooks/use-common-props/index.mjs';
|
|
8
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
5
9
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
type: {
|
|
9
|
-
type: String,
|
|
10
|
-
values: ["success", "info", "warning", "danger", ""],
|
|
11
|
-
default: ""
|
|
12
|
-
},
|
|
13
|
-
hit: Boolean,
|
|
14
|
-
disableTransitions: Boolean,
|
|
15
|
-
color: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: ""
|
|
18
|
-
},
|
|
19
|
-
size: {
|
|
20
|
-
type: String,
|
|
21
|
-
values: componentSizes,
|
|
22
|
-
default: ""
|
|
23
|
-
},
|
|
24
|
-
effect: {
|
|
25
|
-
type: String,
|
|
26
|
-
values: ["dark", "light", "plain"],
|
|
27
|
-
default: "light"
|
|
28
|
-
},
|
|
29
|
-
round: Boolean
|
|
30
|
-
});
|
|
31
|
-
const tagEmits = {
|
|
32
|
-
close: (evt) => evt instanceof MouseEvent,
|
|
33
|
-
click: (evt) => evt instanceof MouseEvent
|
|
10
|
+
const __default__ = {
|
|
11
|
+
name: "PsTag"
|
|
34
12
|
};
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
+
...__default__,
|
|
15
|
+
props: tagProps,
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const tagSize = useSize();
|
|
19
|
+
const ns = useNamespace("tag");
|
|
20
|
+
const classes = computed(() => {
|
|
21
|
+
const { type, hit, effect, closable, round } = props;
|
|
22
|
+
return [
|
|
23
|
+
ns.b(),
|
|
24
|
+
ns.is("closable", closable),
|
|
25
|
+
ns.m(type),
|
|
26
|
+
ns.m(tagSize.value),
|
|
27
|
+
ns.m(effect),
|
|
28
|
+
ns.is("hit", hit),
|
|
29
|
+
ns.is("round", round)
|
|
30
|
+
];
|
|
31
|
+
});
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return !_ctx.disableTransitions ? (openBlock(), createElementBlock("span", {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: normalizeClass(unref(classes)),
|
|
36
|
+
style: normalizeStyle({ backgroundColor: _ctx.color })
|
|
37
|
+
}, [
|
|
38
|
+
createElementVNode("span", {
|
|
39
|
+
class: normalizeClass(unref(ns).e("content"))
|
|
40
|
+
}, [
|
|
41
|
+
renderSlot(_ctx.$slots, "default")
|
|
42
|
+
], 2),
|
|
43
|
+
_ctx.closable ? (openBlock(), createBlock(unref(PsIcon), {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: normalizeClass(unref(ns).e("close"))
|
|
46
|
+
}, {
|
|
47
|
+
default: withCtx(() => [
|
|
48
|
+
createVNode(unref(Close))
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
52
|
+
], 6)) : (openBlock(), createBlock(Transition, {
|
|
53
|
+
key: 1,
|
|
54
|
+
name: `${unref(ns).namespace.value}-zoom-in-center`
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [
|
|
57
|
+
createElementVNode("span", {
|
|
58
|
+
class: normalizeClass(unref(classes)),
|
|
59
|
+
style: normalizeStyle({ backgroundColor: _ctx.color })
|
|
60
|
+
}, [
|
|
61
|
+
createElementVNode("span", {
|
|
62
|
+
class: normalizeClass(unref(ns).e("content"))
|
|
63
|
+
}, [
|
|
64
|
+
renderSlot(_ctx.$slots, "default")
|
|
65
|
+
], 2),
|
|
66
|
+
_ctx.closable ? (openBlock(), createBlock(unref(PsIcon), {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: normalizeClass(unref(ns).e("close"))
|
|
69
|
+
}, {
|
|
70
|
+
default: withCtx(() => [
|
|
71
|
+
createVNode(unref(Close))
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
75
|
+
], 6)
|
|
76
|
+
]),
|
|
77
|
+
_: 3
|
|
78
|
+
}, 8, ["name"]));
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
var Tag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/meng/workspace/element-ps/packages/components/tag/src/tag.vue"]]);
|
|
35
83
|
|
|
36
|
-
export {
|
|
84
|
+
export { Tag as default };
|
|
37
85
|
//# sourceMappingURL=tag2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag2.mjs","sources":["../../../../../../packages/components/tag/src/tag.
|
|
1
|
+
{"version":3,"file":"tag2.mjs","sources":["../../../../../../packages/components/tag/src/tag.vue"],"sourcesContent":["<template>\n <span\n v-if=\"!disableTransitions\"\n :class=\"classes\"\n :style=\"{ backgroundColor: color }\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <ps-icon v-if=\"closable\" :class=\"ns.e('close')\">\n <Close />\n </ps-icon>\n </span>\n <transition v-else :name=\"`${ns.namespace.value}-zoom-in-center`\">\n <span\n :class=\"classes\"\n :style=\"{ backgroundColor: color }\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <ps-icon v-if=\"closable\" :class=\"ns.e('close')\">\n <Close />\n </ps-icon>\n </span>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport PsIcon from '@element-ps/components/icon'\nimport { Close } from '@element-plus/icons-vue'\n\nimport { useNamespace, useSize } from '@element-ps/hooks'\nimport { tagEmits, tagProps } from './tag'\n\ndefineOptions({\n name: 'PsTag',\n})\nconst props = defineProps(tagProps)\n\nconst tagSize = useSize()\nconst ns = useNamespace('tag')\nconst classes = computed(() => {\n const { type, hit, effect, closable, round } = props\n return [\n ns.b(),\n ns.is('closable', closable),\n ns.m(type),\n ns.m(tagSize.value),\n ns.m(effect),\n ns.is('hit', hit),\n ns.is('round', round),\n ]\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAyCA,IAAA,MAAA,UAAA,OAAA,EAAA,CAAA;AACA,IAAA,MAAA,EAAA,GAAA,aAAA,KAAA,CAAA,CAAA;AACA,IAAA,MAAA,OAAA,GAAA,SAAA,MAAA;AACA,MAAA,MAAA,EAAA,IAAA,EAAA,GAAA,EAAA,MAAA,EAAA,UAAA,KAAA,EAAA,GAAA,KAAA,CAAA;AACA,MAAA,OAAA;AAAA,QACA,GAAA,CAAA,EAAA;AAAA,QACA,EAAA,CAAA,EAAA,CAAA,UAAA,EAAA,QAAA,CAAA;AAAA,QACA,EAAA,CAAA,EAAA,IAAA,CAAA;AAAA,QACA,EAAA,CAAA,CAAA,CAAA,OAAA,CAAA,KAAA,CAAA;AAAA,QACA,EAAA,CAAA,EAAA,MAAA,CAAA;AAAA,QACA,EAAA,CAAA,EAAA,CAAA,KAAA,EAAA,GAAA,CAAA;AAAA,QACA,EAAA,CAAA,EAAA,CAAA,OAAA,EAAA,KAAA,CAAA;AAAA,OACA,CAAA;AAAA,KACA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
|
-
import Teleport from './src/
|
|
3
|
-
export { teleportProps } from './src/
|
|
2
|
+
import Teleport from './src/teleport2.mjs';
|
|
3
|
+
export { teleportProps } from './src/teleport.mjs';
|
|
4
4
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
5
5
|
|
|
6
6
|
const PsTeleport = withInstall(Teleport);
|
|
@@ -1,48 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '../../../
|
|
3
|
-
import { teleportProps } from './teleport2.mjs';
|
|
4
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
5
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import '../../../utils/index.mjs';
|
|
2
|
+
import { buildProps, definePropType } from '../../../utils/vue/props.mjs';
|
|
6
3
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
] : {};
|
|
23
|
-
});
|
|
24
|
-
expose({
|
|
25
|
-
containerRef
|
|
26
|
-
});
|
|
27
|
-
return (_ctx, _cache) => {
|
|
28
|
-
return _ctx.container ? (openBlock(), createBlock(Teleport$1, {
|
|
29
|
-
key: 0,
|
|
30
|
-
to: _ctx.container,
|
|
31
|
-
disabled: _ctx.disabled
|
|
32
|
-
}, [
|
|
33
|
-
createElementVNode("div", {
|
|
34
|
-
ref_key: "containerRef",
|
|
35
|
-
ref: containerRef,
|
|
36
|
-
class: normalizeClass(unref(ns).b()),
|
|
37
|
-
style: normalizeStyle(unref(containerStyle))
|
|
38
|
-
}, [
|
|
39
|
-
renderSlot(_ctx.$slots, "default")
|
|
40
|
-
], 6)
|
|
41
|
-
], 8, ["to", "disabled"])) : createCommentVNode("v-if", true);
|
|
42
|
-
};
|
|
4
|
+
const teleportProps = buildProps({
|
|
5
|
+
container: {
|
|
6
|
+
type: definePropType(String),
|
|
7
|
+
default: "body"
|
|
8
|
+
},
|
|
9
|
+
disabled: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: false
|
|
12
|
+
},
|
|
13
|
+
style: {
|
|
14
|
+
type: definePropType([String, Array, Object])
|
|
15
|
+
},
|
|
16
|
+
zIndex: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "2000"
|
|
43
19
|
}
|
|
44
20
|
});
|
|
45
|
-
var Teleport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/meng/workspace/element-ps/packages/components/teleport/src/teleport.vue"]]);
|
|
46
21
|
|
|
47
|
-
export {
|
|
22
|
+
export { teleportProps };
|
|
48
23
|
//# sourceMappingURL=teleport.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teleport.mjs","sources":["../../../../../../packages/components/teleport/src/teleport.
|
|
1
|
+
{"version":3,"file":"teleport.mjs","sources":["../../../../../../packages/components/teleport/src/teleport.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-ps/utils'\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type Teleport from './teleport.vue'\n\nexport const teleportProps = buildProps({\n container: {\n type: definePropType<string>(String),\n default: 'body',\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n style: {\n type: definePropType<StyleValue>([String, Array, Object]),\n },\n zIndex: {\n type: String,\n default: '2000',\n },\n} as const)\n\nexport type TeleportProps = ExtractPropTypes<typeof teleportProps>\nexport type TeleportInstance = InstanceType<typeof Teleport>\n"],"names":[],"mappings":";;;AACY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACjD,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -1,23 +1,48 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createBlock, Teleport as Teleport$1, createElementVNode, normalizeClass, unref, normalizeStyle, renderSlot, createCommentVNode } from 'vue';
|
|
2
|
+
import '../../../hooks/index.mjs';
|
|
3
|
+
import { teleportProps } from './teleport.mjs';
|
|
4
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
5
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
3
6
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
props: teleportProps,
|
|
9
|
+
setup(__props, { expose }) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
const ns = useNamespace("teleport");
|
|
12
|
+
const containerRef = ref();
|
|
13
|
+
const containerStyle = computed(() => {
|
|
14
|
+
return props.container === "body" ? [
|
|
15
|
+
props.style,
|
|
16
|
+
{
|
|
17
|
+
position: "absolute",
|
|
18
|
+
top: `0px`,
|
|
19
|
+
left: `0px`,
|
|
20
|
+
zIndex: props.zIndex
|
|
21
|
+
}
|
|
22
|
+
] : {};
|
|
23
|
+
});
|
|
24
|
+
expose({
|
|
25
|
+
containerRef
|
|
26
|
+
});
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return _ctx.container ? (openBlock(), createBlock(Teleport$1, {
|
|
29
|
+
key: 0,
|
|
30
|
+
to: _ctx.container,
|
|
31
|
+
disabled: _ctx.disabled
|
|
32
|
+
}, [
|
|
33
|
+
createElementVNode("div", {
|
|
34
|
+
ref_key: "containerRef",
|
|
35
|
+
ref: containerRef,
|
|
36
|
+
class: normalizeClass(unref(ns).b()),
|
|
37
|
+
style: normalizeStyle(unref(containerStyle))
|
|
38
|
+
}, [
|
|
39
|
+
renderSlot(_ctx.$slots, "default")
|
|
40
|
+
], 6)
|
|
41
|
+
], 8, ["to", "disabled"])) : createCommentVNode("v-if", true);
|
|
42
|
+
};
|
|
19
43
|
}
|
|
20
44
|
});
|
|
45
|
+
var Teleport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/meng/workspace/element-ps/packages/components/teleport/src/teleport.vue"]]);
|
|
21
46
|
|
|
22
|
-
export {
|
|
47
|
+
export { Teleport as default };
|
|
23
48
|
//# sourceMappingURL=teleport2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teleport2.mjs","sources":["../../../../../../packages/components/teleport/src/teleport.
|
|
1
|
+
{"version":3,"file":"teleport2.mjs","sources":["../../../../../../packages/components/teleport/src/teleport.vue"],"sourcesContent":["<template>\n <teleport v-if=\"container\" :to=\"container\" :disabled=\"disabled\">\n <div ref=\"containerRef\" :class=\"ns.b()\" :style=\"containerStyle\">\n <slot />\n </div>\n </teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport { useNamespace } from '@element-ps/hooks'\nimport { teleportProps } from './teleport'\nimport type { StyleValue } from 'vue'\n\nconst props = defineProps(teleportProps)\n\nconst ns = useNamespace('teleport')\nconst containerRef = ref<HTMLElement>()\n\nconst containerStyle = computed<StyleValue>(() => {\n return props.container === 'body'\n ? [\n props.style,\n {\n position: 'absolute',\n top: `0px`,\n left: `0px`,\n zIndex: props.zIndex,\n },\n ]\n : {}\n})\n\ndefineExpose({\n /** @description container element */\n containerRef,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;AAgBA,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAClC,IAAA,MAAM,eAAe,GAAiB,EAAA,CAAA;AAEtC,IAAM,MAAA,cAAA,GAAiB,SAAqB,MAAM;AAChD,MAAO,OAAA,KAAA,CAAM,cAAc,MACvB,GAAA;AAAA,QACE,KAAM,CAAA,KAAA;AAAA,QACN;AAAA,UACE,QAAU,EAAA,UAAA;AAAA,UACV,GAAK,EAAA,CAAA,GAAA,CAAA;AAAA,UACL,IAAM,EAAA,CAAA,GAAA,CAAA;AAAA,UACN,QAAQ,KAAM,CAAA,MAAA;AAAA,SAChB;AAAA,UAEF,EAAC,CAAA;AAAA,KACN,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAEX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
|
-
import Tooltip from './src/
|
|
3
|
-
export { useTooltipContentProps, useTooltipProps, useTooltipTriggerProps } from './src/
|
|
2
|
+
import Tooltip from './src/tooltip.mjs';
|
|
3
|
+
export { useTooltipContentProps, useTooltipProps, useTooltipTriggerProps } from './src/tooltip2.mjs';
|
|
4
4
|
export { TOOLTIP_INJECTION_KEY } from './src/tokens.mjs';
|
|
5
5
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
6
6
|
|
|
@@ -1,71 +1,58 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import { defineComponent, ref, computed, provide, readonly, toRef, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createCommentVNode } from 'vue';
|
|
2
2
|
import '../../popper/index.mjs';
|
|
3
|
+
import '../../../utils/index.mjs';
|
|
3
4
|
import '../../../hooks/index.mjs';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
5
|
+
import PsTooltipTrigger from './trigger.mjs';
|
|
6
|
+
import { useTooltipContentProps, useTooltipTriggerProps, useTooltipProps } from './tooltip2.mjs';
|
|
7
|
+
import { TOOLTIP_INJECTION_KEY } from './tokens.mjs';
|
|
8
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
9
|
+
import { createModelToggleComposable } from '../../../hooks/use-model-toggle/index.mjs';
|
|
10
|
+
import { usePopperArrowProps } from '../../popper/src/arrow.mjs';
|
|
11
|
+
import { usePopperContainer } from '../../../hooks/use-popper-container/index.mjs';
|
|
12
|
+
import { useId } from '../../../hooks/use-id/index.mjs';
|
|
13
|
+
import { isBoolean } from '@vueuse/core';
|
|
9
14
|
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
default: "el-fade-in-linear"
|
|
35
|
-
},
|
|
36
|
-
teleported: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: true
|
|
39
|
-
},
|
|
40
|
-
disabled: {
|
|
41
|
-
type: Boolean
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
const useTooltipTriggerProps = buildProps({
|
|
45
|
-
...usePopperTriggerProps,
|
|
46
|
-
disabled: Boolean,
|
|
47
|
-
trigger: {
|
|
48
|
-
type: definePropType([String, Array]),
|
|
49
|
-
default: "hover"
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
const useTooltipProps = buildProps({
|
|
53
|
-
openDelay: {
|
|
54
|
-
type: Number
|
|
55
|
-
},
|
|
56
|
-
visibleArrow: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: void 0
|
|
59
|
-
},
|
|
60
|
-
hideAfter: {
|
|
61
|
-
type: Number,
|
|
62
|
-
default: 200
|
|
63
|
-
},
|
|
64
|
-
showArrow: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: true
|
|
15
|
+
const { useModelToggleProps } = createModelToggleComposable("visible");
|
|
16
|
+
const _sfc_main = defineComponent({
|
|
17
|
+
name: "PsTooltip",
|
|
18
|
+
components: {
|
|
19
|
+
PsTooltipTrigger
|
|
20
|
+
},
|
|
21
|
+
props: {
|
|
22
|
+
...useModelToggleProps,
|
|
23
|
+
...useTooltipContentProps,
|
|
24
|
+
...useTooltipTriggerProps,
|
|
25
|
+
...usePopperArrowProps,
|
|
26
|
+
...useTooltipProps
|
|
27
|
+
},
|
|
28
|
+
setup(props) {
|
|
29
|
+
usePopperContainer();
|
|
30
|
+
const id = useId();
|
|
31
|
+
const open = ref(false);
|
|
32
|
+
const controlled = computed(() => isBoolean(props.visible));
|
|
33
|
+
provide(TOOLTIP_INJECTION_KEY, {
|
|
34
|
+
controlled,
|
|
35
|
+
id,
|
|
36
|
+
open: readonly(open),
|
|
37
|
+
trigger: toRef(props, "trigger")
|
|
38
|
+
});
|
|
67
39
|
}
|
|
68
40
|
});
|
|
41
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
42
|
+
const _component_ps_tooltip_trigger = resolveComponent("ps-tooltip-trigger");
|
|
43
|
+
return openBlock(), createBlock(_component_ps_tooltip_trigger, {
|
|
44
|
+
disabled: _ctx.disabled,
|
|
45
|
+
trigger: _ctx.trigger,
|
|
46
|
+
"virtual-ref": _ctx.virtualRef,
|
|
47
|
+
"virtual-triggering": _ctx.virtualTriggering
|
|
48
|
+
}, {
|
|
49
|
+
default: withCtx(() => [
|
|
50
|
+
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("v-if", true)
|
|
51
|
+
]),
|
|
52
|
+
_: 3
|
|
53
|
+
}, 8, ["disabled", "trigger", "virtual-ref", "virtual-triggering"]);
|
|
54
|
+
}
|
|
55
|
+
var Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/meng/workspace/element-ps/packages/components/tooltip/src/tooltip.vue"]]);
|
|
69
56
|
|
|
70
|
-
export {
|
|
57
|
+
export { Tooltip as default };
|
|
71
58
|
//# sourceMappingURL=tooltip.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.mjs","sources":["../../../../../../packages/components/tooltip/src/tooltip.
|
|
1
|
+
{"version":3,"file":"tooltip.mjs","sources":["../../../../../../packages/components/tooltip/src/tooltip.vue"],"sourcesContent":["<template>\n <ps-tooltip-trigger\n :disabled=\"disabled\"\n :trigger=\"trigger\"\n :virtual-ref=\"virtualRef\"\n :virtual-triggering=\"virtualTriggering\"\n >\n <slot v-if=\"$slots.default\" />\n </ps-tooltip-trigger>\n</template>\n\n<script lang=\"ts\">\nimport {\n computed,\n defineComponent,\n provide,\n readonly,\n ref,\n toRef,\n unref,\n} from 'vue'\nimport {\n usePopperArrowProps,\n} from '@element-ps/components/popper'\n\nimport { isBoolean } from '@element-ps/utils'\nimport {\n createModelToggleComposable,\n useId,\n usePopperContainer,\n} from '@element-ps/hooks'\nimport PsTooltipTrigger from './trigger.vue'\nimport {\n useTooltipContentProps,\n useTooltipProps,\n useTooltipTriggerProps,\n} from './tooltip'\nimport { TOOLTIP_INJECTION_KEY } from './tokens'\n\nconst { useModelToggleProps } = createModelToggleComposable('visible' as const)\n\nexport default defineComponent({\n name: 'PsTooltip',\n components: {\n PsTooltipTrigger,\n },\n props: {\n ...useModelToggleProps,\n ...useTooltipContentProps,\n ...useTooltipTriggerProps,\n ...usePopperArrowProps,\n ...useTooltipProps,\n },\n setup(props) {\n usePopperContainer()\n\n const id = useId()\n const open = ref(false)\n\n const controlled = computed(() => isBoolean(props.visible))\n\n provide(TOOLTIP_INJECTION_KEY, {\n controlled,\n id,\n open: readonly(open),\n trigger: toRef(props, 'trigger'),\n })\n },\n})\n</script>\n"],"names":["_createBlock","_renderSlot","_createCommentVNode"],"mappings":";;;;;;;;;;;;;;AAuCA,MAAM,EAAE,mBAAwB,EAAA,GAAA,2BAAA,CAA4B,SAAkB,CAAA,CAAA;AAE9E,MAAK,YAAa,eAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,WAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,gBAAA;AAAA,GACF;AAAA,EACA,KAAO,EAAA;AAAA,IACF,GAAA,mBAAA;AAAA,IACA,GAAA,sBAAA;AAAA,IACA,GAAA,sBAAA;AAAA,IACA,GAAA,mBAAA;AAAA,IACA,GAAA,eAAA;AAAA,GACL;AAAA,EACA,MAAM,KAAO,EAAA;AACX,IAAmB,kBAAA,EAAA,CAAA;AAEnB,IAAA,MAAM,KAAK,KAAM,EAAA,CAAA;AACjB,IAAM,MAAA,IAAA,GAAO,IAAI,KAAK,CAAA,CAAA;AAEtB,IAAA,MAAM,aAAa,QAAS,CAAA,MAAM,SAAU,CAAA,KAAA,CAAM,OAAO,CAAC,CAAA,CAAA;AAE1D,IAAA,OAAA,CAAQ,qBAAuB,EAAA;AAAA,MAC7B,UAAA;AAAA,MACA,EAAA;AAAA,MACA,IAAA,EAAM,SAAS,IAAI,CAAA;AAAA,MACnB,OAAA,EAAS,KAAM,CAAA,KAAA,EAAO,SAAS,CAAA;AAAA,KAChC,CAAA,CAAA;AAAA,GACH;AACF,CAAC,CAAA,CAAA;;;sBAnECA,WAOqB,CAAA,6BAAA,EAAA;AAAA,IANlB,QAAU,EAAA,IAAA,CAAA,QAAA;AAAA,IACV,OAAS,EAAA,IAAA,CAAA,OAAA;AAAA,IACT,aAAa,EAAA,IAAA,CAAA,UAAA;AAAA,IACb,oBAAoB,EAAA,IAAA,CAAA,iBAAA;AAAA,GAAA,EAAA;qBAErB,MAA8B;AAAA,MAAlB,IAAA,CAAA,MAAA,CAAO,UAAnBC,UAA8B,CAAA,IAAA,CAAA,MAAA,EAAA,SAAA,EAAA,EAAA,GAAA,EAAA,CAAA,EAAA,CAAA,GAAAC,kBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;;;;;;;;;"}
|
|
@@ -1,58 +1,71 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, provide, readonly, toRef, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createCommentVNode } from 'vue';
|
|
2
|
-
import '../../popper/index.mjs';
|
|
3
1
|
import '../../../utils/index.mjs';
|
|
2
|
+
import '../../popper/index.mjs';
|
|
4
3
|
import '../../../hooks/index.mjs';
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import { usePopperArrowProps } from '../../popper/src/arrow.mjs';
|
|
11
|
-
import { usePopperContainer } from '../../../hooks/use-popper-container/index.mjs';
|
|
12
|
-
import { useId } from '../../../hooks/use-id/index.mjs';
|
|
13
|
-
import { isBoolean } from '@vueuse/core';
|
|
4
|
+
import { buildProps, definePropType } from '../../../utils/vue/props.mjs';
|
|
5
|
+
import { useDelayedToggleProps } from '../../../hooks/use-delayed-toggle/index.mjs';
|
|
6
|
+
import { usePopperContentProps } from '../../popper/src/content.mjs';
|
|
7
|
+
import { POPPER_CONTAINER_SELECTOR } from '../../../hooks/use-popper-container/index.mjs';
|
|
8
|
+
import { usePopperTriggerProps } from '../../popper/src/trigger.mjs';
|
|
14
9
|
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
10
|
+
const triggers = ["hover", "focus", "click", "contextmenu"];
|
|
11
|
+
const useTooltipContentProps = buildProps({
|
|
12
|
+
...useDelayedToggleProps,
|
|
13
|
+
...usePopperContentProps,
|
|
14
|
+
appendTo: {
|
|
15
|
+
type: definePropType([String, Object]),
|
|
16
|
+
default: POPPER_CONTAINER_SELECTOR
|
|
17
|
+
},
|
|
18
|
+
content: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
rawContent: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
},
|
|
26
|
+
persistent: Boolean,
|
|
27
|
+
ariaLabel: String,
|
|
28
|
+
visible: {
|
|
29
|
+
type: definePropType(Boolean),
|
|
30
|
+
default: null
|
|
31
|
+
},
|
|
32
|
+
transition: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "el-fade-in-linear"
|
|
35
|
+
},
|
|
36
|
+
teleported: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: true
|
|
39
|
+
},
|
|
40
|
+
disabled: {
|
|
41
|
+
type: Boolean
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
const useTooltipTriggerProps = buildProps({
|
|
45
|
+
...usePopperTriggerProps,
|
|
46
|
+
disabled: Boolean,
|
|
47
|
+
trigger: {
|
|
48
|
+
type: definePropType([String, Array]),
|
|
49
|
+
default: "hover"
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
const useTooltipProps = buildProps({
|
|
53
|
+
openDelay: {
|
|
54
|
+
type: Number
|
|
55
|
+
},
|
|
56
|
+
visibleArrow: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: void 0
|
|
59
|
+
},
|
|
60
|
+
hideAfter: {
|
|
61
|
+
type: Number,
|
|
62
|
+
default: 200
|
|
63
|
+
},
|
|
64
|
+
showArrow: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: true
|
|
39
67
|
}
|
|
40
68
|
});
|
|
41
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
42
|
-
const _component_ps_tooltip_trigger = resolveComponent("ps-tooltip-trigger");
|
|
43
|
-
return openBlock(), createBlock(_component_ps_tooltip_trigger, {
|
|
44
|
-
disabled: _ctx.disabled,
|
|
45
|
-
trigger: _ctx.trigger,
|
|
46
|
-
"virtual-ref": _ctx.virtualRef,
|
|
47
|
-
"virtual-triggering": _ctx.virtualTriggering
|
|
48
|
-
}, {
|
|
49
|
-
default: withCtx(() => [
|
|
50
|
-
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("v-if", true)
|
|
51
|
-
]),
|
|
52
|
-
_: 3
|
|
53
|
-
}, 8, ["disabled", "trigger", "virtual-ref", "virtual-triggering"]);
|
|
54
|
-
}
|
|
55
|
-
var Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/meng/workspace/element-ps/packages/components/tooltip/src/tooltip.vue"]]);
|
|
56
69
|
|
|
57
|
-
export {
|
|
70
|
+
export { useTooltipContentProps, useTooltipProps, useTooltipTriggerProps };
|
|
58
71
|
//# sourceMappingURL=tooltip2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip2.mjs","sources":["../../../../../../packages/components/tooltip/src/tooltip.
|
|
1
|
+
{"version":3,"file":"tooltip2.mjs","sources":["../../../../../../packages/components/tooltip/src/tooltip.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-ps/utils'\nimport {\n usePopperContentProps,\n usePopperTriggerProps,\n} from '@element-ps/components/popper'\nimport {\n POPPER_CONTAINER_SELECTOR,\n useDelayedToggleProps,\n} from '@element-ps/hooks'\nimport type Tooltip from '../src/tooltip.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nconst triggers = ['hover', 'focus', 'click', 'contextmenu'] as const\n\nexport type Trigger = typeof triggers[number]\n\nexport const useTooltipContentProps = buildProps({\n ...useDelayedToggleProps,\n ...usePopperContentProps,\n appendTo: {\n type: definePropType<string | HTMLElement>([String, Object]),\n default: POPPER_CONTAINER_SELECTOR,\n },\n content: {\n type: String,\n default: '',\n },\n rawContent: {\n type: Boolean,\n default: false,\n },\n persistent: Boolean,\n ariaLabel: String,\n // because model toggle prop is generated dynamically\n // so the typing cannot be evaluated by typescript as type:\n // [name]: { type: Boolean, default: null }\n // so we need to declare that again for type checking.\n visible: {\n type: definePropType<boolean | null>(Boolean),\n default: null,\n },\n transition: {\n type: String,\n default: 'el-fade-in-linear',\n },\n teleported: {\n type: Boolean,\n default: true,\n },\n disabled: {\n type: Boolean,\n },\n} as const)\n\nexport const useTooltipTriggerProps = buildProps({\n ...usePopperTriggerProps,\n disabled: Boolean,\n trigger: {\n type: definePropType<Trigger | Trigger[]>([String, Array]),\n default: 'hover',\n },\n} as const)\n\nexport const useTooltipProps = buildProps({\n openDelay: {\n type: Number,\n },\n visibleArrow: {\n type: Boolean,\n default: undefined,\n },\n hideAfter: {\n type: Number,\n default: 200,\n },\n showArrow: {\n type: Boolean,\n default: true,\n },\n})\n\nexport type PsTooltipContentProps = ExtractPropTypes<\n typeof useTooltipContentProps\n>\n\nexport type PsTooltipTriggerProps = ExtractPropTypes<\n typeof useTooltipTriggerProps\n>\n\nexport type PsTooltipProps = ExtractPropTypes<typeof useTooltipProps> &\n PsTooltipContentProps &\n PsTooltipTriggerProps\n\nexport type TooltipInstance = InstanceType<typeof Tooltip>\n"],"names":[],"mappings":";;;;;;;;;AASA,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;AAChD,MAAC,sBAAsB,GAAG,UAAU,CAAC;AACjD,EAAE,GAAG,qBAAqB;AAC1B,EAAE,GAAG,qBAAqB;AAC1B,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,yBAAyB;AACtC,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC;AACjC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,mBAAmB;AAChC,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,sBAAsB,GAAG,UAAU,CAAC;AACjD,EAAE,GAAG,qBAAqB;AAC1B,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC;;;;"}
|