@element-plus/nightly 0.0.20250901 → 0.0.20250902
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 +7 -7
- package/dist/index.full.min.js +7 -7
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +4 -4
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +7 -7
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/anchor/index.mjs +1 -1
- package/es/components/anchor/src/anchor-link.mjs +5 -81
- package/es/components/anchor/src/anchor-link.mjs.map +1 -1
- package/es/components/anchor/src/anchor-link2.mjs +81 -5
- package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.d.ts +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
- package/es/components/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +8 -56
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -8
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/button/index.mjs +1 -1
- package/es/components/button/src/button-group.mjs +6 -29
- package/es/components/button/src/button-group.mjs.map +1 -1
- package/es/components/button/src/button-group2.mjs +29 -6
- 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 +134 -16
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +16 -134
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/calendar/src/date-table.mjs +89 -31
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/date-table2.mjs +31 -89
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/calendar/src/use-date-table.mjs +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +48 -23
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +23 -48
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +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 +54 -156
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +156 -54
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image-viewer/index.mjs +2 -2
- package/es/components/image-viewer/src/image-viewer.mjs +447 -46
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +46 -447
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +16 -16
- package/es/components/input/src/input.d.ts +1 -1
- package/es/components/input/src/input.mjs +1 -1
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +3 -3
- package/es/components/input-tag/src/input-tag.d.ts +1 -1
- package/es/components/input-tag/src/input-tag.mjs +1 -1
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag.vue.d.ts +3 -3
- package/es/components/mention/src/mention.d.ts +1 -1
- package/es/components/mention/src/mention.vue.d.ts +3 -3
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +73 -140
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +140 -73
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/pagination/src/components/sizes.mjs +71 -23
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes2.mjs +23 -71
- package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/arrow.mjs +7 -30
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +30 -7
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/composables/use-content.mjs +2 -2
- package/es/components/popper/src/composables/use-content.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +1 -1
- package/es/components/radio/src/radio-group.mjs +1 -1
- package/es/components/radio/src/radio.mjs +32 -74
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio2.mjs +74 -32
- 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 +248 -83
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +83 -248
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/steps.mjs +41 -35
- package/es/components/steps/src/steps.mjs.map +1 -1
- package/es/components/steps/src/steps2.mjs +35 -41
- package/es/components/steps/src/steps2.mjs.map +1 -1
- package/es/components/switch/index.mjs +2 -2
- package/es/components/switch/src/switch.mjs +227 -72
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +72 -227
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +8 -18
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +18 -8
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +3 -3
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/content2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +30 -165
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +165 -30
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.mjs +72 -14
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/tooltip/src/trigger2.mjs +14 -72
- package/es/components/tooltip/src/trigger2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
- package/es/components/tooltip-v2/src/trigger.mjs +12 -89
- package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
- package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
- package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/tour.mjs +69 -154
- package/es/components/tour/src/tour.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +154 -69
- package/es/components/tour/src/tour2.mjs.map +1 -1
- package/es/components/transfer/index.mjs +2 -2
- package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +1 -1
- package/es/components/transfer/src/transfer.mjs +68 -164
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +164 -68
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/index.d.ts +16 -16
- package/es/index.mjs +16 -16
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/anchor/index.js +1 -1
- package/lib/components/anchor/src/anchor-link.js +5 -81
- package/lib/components/anchor/src/anchor-link.js.map +1 -1
- package/lib/components/anchor/src/anchor-link2.js +81 -5
- package/lib/components/anchor/src/anchor-link2.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.d.ts +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb-item.js +8 -56
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -8
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/button/index.js +1 -1
- package/lib/components/button/src/button-group.js +6 -29
- package/lib/components/button/src/button-group.js.map +1 -1
- package/lib/components/button/src/button-group2.js +29 -6
- 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 +134 -17
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +17 -134
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/calendar/src/date-table.js +89 -35
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/date-table2.js +35 -89
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/calendar/src/use-date-table.js +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +48 -24
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +24 -48
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +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 +55 -155
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +155 -55
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image-viewer/index.js +2 -2
- package/lib/components/image-viewer/src/image-viewer.js +447 -47
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +47 -447
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +16 -16
- package/lib/components/input/src/input.d.ts +1 -1
- package/lib/components/input/src/input.js +1 -1
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +3 -3
- package/lib/components/input-tag/src/input-tag.d.ts +1 -1
- package/lib/components/input-tag/src/input-tag.js +1 -1
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag.vue.d.ts +3 -3
- package/lib/components/mention/src/mention.d.ts +1 -1
- package/lib/components/mention/src/mention.vue.d.ts +3 -3
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +74 -139
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +139 -74
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/pagination/src/components/sizes.js +71 -23
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes2.js +23 -71
- package/lib/components/pagination/src/components/sizes2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/arrow.js +8 -30
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +30 -8
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/composables/use-content.js +2 -2
- package/lib/components/popper/src/composables/use-content.js.map +1 -1
- package/lib/components/popper/src/content.js +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +1 -1
- package/lib/components/radio/src/radio-group.js +1 -1
- package/lib/components/radio/src/radio.js +33 -73
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio2.js +73 -33
- 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 +247 -83
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +83 -247
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/steps.js +41 -36
- package/lib/components/steps/src/steps.js.map +1 -1
- package/lib/components/steps/src/steps2.js +36 -41
- package/lib/components/steps/src/steps2.js.map +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/switch/src/switch.js +226 -72
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +72 -226
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +8 -18
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +18 -8
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/tooltip/index.js +3 -3
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/content2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +32 -163
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +163 -32
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip/src/trigger.js +72 -14
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/tooltip/src/trigger2.js +14 -72
- package/lib/components/tooltip/src/trigger2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
- package/lib/components/tooltip-v2/src/trigger.js +12 -89
- package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
- package/lib/components/tooltip-v2/src/trigger2.js +89 -12
- package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/tour.js +69 -153
- package/lib/components/tour/src/tour.js.map +1 -1
- package/lib/components/tour/src/tour2.js +153 -69
- package/lib/components/tour/src/tour2.js.map +1 -1
- package/lib/components/transfer/index.js +2 -2
- package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +1 -1
- package/lib/components/transfer/src/transfer.js +72 -164
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +164 -72
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- package/lib/index.d.ts +16 -16
- package/lib/index.js +16 -16
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
@@ -1,452 +1,51 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import ElFocusTrap from '../../focus-trap/src/focus-trap.mjs';
|
5
|
-
import { ElTeleport } from '../../teleport/index.mjs';
|
6
|
-
import { ElIcon } from '../../icon/index.mjs';
|
7
|
-
import { FullScreen, ScaleToOriginal, Close, ArrowLeft, ArrowRight, ZoomOut, ZoomIn, RefreshLeft, RefreshRight } from '@element-plus/icons-vue';
|
8
|
-
import { imageViewerProps, imageViewerEmits } from './image-viewer.mjs';
|
9
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
10
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
11
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
12
|
-
import { useZIndex } from '../../../hooks/use-z-index/index.mjs';
|
13
|
-
import { EVENT_CODE } from '../../../constants/aria.mjs';
|
14
|
-
import { keysOf } from '../../../utils/objects.mjs';
|
1
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
2
|
+
import { mutable } from '../../../utils/typescript.mjs';
|
3
|
+
import { isNumber } from '../../../utils/types.mjs';
|
15
4
|
|
16
|
-
const
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
});
|
54
|
-
const zIndex = ref((_a = props.zIndex) != null ? _a : nextZIndex());
|
55
|
-
const isSingle = computed(() => {
|
56
|
-
const { urlList } = props;
|
57
|
-
return urlList.length <= 1;
|
58
|
-
});
|
59
|
-
const isFirst = computed(() => activeIndex.value === 0);
|
60
|
-
const isLast = computed(() => activeIndex.value === props.urlList.length - 1);
|
61
|
-
const currentImg = computed(() => props.urlList[activeIndex.value]);
|
62
|
-
const arrowPrevKls = computed(() => [
|
63
|
-
ns.e("btn"),
|
64
|
-
ns.e("prev"),
|
65
|
-
ns.is("disabled", !props.infinite && isFirst.value)
|
66
|
-
]);
|
67
|
-
const arrowNextKls = computed(() => [
|
68
|
-
ns.e("btn"),
|
69
|
-
ns.e("next"),
|
70
|
-
ns.is("disabled", !props.infinite && isLast.value)
|
71
|
-
]);
|
72
|
-
const imgStyle = computed(() => {
|
73
|
-
const { scale, deg, offsetX, offsetY, enableTransition } = transform.value;
|
74
|
-
let translateX = offsetX / scale;
|
75
|
-
let translateY = offsetY / scale;
|
76
|
-
const radian = deg * Math.PI / 180;
|
77
|
-
const cosRadian = Math.cos(radian);
|
78
|
-
const sinRadian = Math.sin(radian);
|
79
|
-
translateX = translateX * cosRadian + translateY * sinRadian;
|
80
|
-
translateY = translateY * cosRadian - offsetX / scale * sinRadian;
|
81
|
-
const style = {
|
82
|
-
transform: `scale(${scale}) rotate(${deg}deg) translate(${translateX}px, ${translateY}px)`,
|
83
|
-
transition: enableTransition ? "transform .3s" : ""
|
84
|
-
};
|
85
|
-
if (mode.value.name === modes.CONTAIN.name) {
|
86
|
-
style.maxWidth = style.maxHeight = "100%";
|
87
|
-
}
|
88
|
-
return style;
|
89
|
-
});
|
90
|
-
const progress = computed(() => `${activeIndex.value + 1} / ${props.urlList.length}`);
|
91
|
-
function hide() {
|
92
|
-
unregisterEventListener();
|
93
|
-
stopWheelListener == null ? void 0 : stopWheelListener();
|
94
|
-
document.body.style.overflow = prevOverflow;
|
95
|
-
emit("close");
|
96
|
-
}
|
97
|
-
function registerEventListener() {
|
98
|
-
const keydownHandler = throttle((e) => {
|
99
|
-
switch (e.code) {
|
100
|
-
case EVENT_CODE.esc:
|
101
|
-
props.closeOnPressEscape && hide();
|
102
|
-
break;
|
103
|
-
case EVENT_CODE.space:
|
104
|
-
toggleMode();
|
105
|
-
break;
|
106
|
-
case EVENT_CODE.left:
|
107
|
-
prev();
|
108
|
-
break;
|
109
|
-
case EVENT_CODE.up:
|
110
|
-
handleActions("zoomIn");
|
111
|
-
break;
|
112
|
-
case EVENT_CODE.right:
|
113
|
-
next();
|
114
|
-
break;
|
115
|
-
case EVENT_CODE.down:
|
116
|
-
handleActions("zoomOut");
|
117
|
-
break;
|
118
|
-
}
|
119
|
-
});
|
120
|
-
const mousewheelHandler = throttle((e) => {
|
121
|
-
const delta = e.deltaY || e.deltaX;
|
122
|
-
handleActions(delta < 0 ? "zoomIn" : "zoomOut", {
|
123
|
-
zoomRate: props.zoomRate,
|
124
|
-
enableTransition: false
|
125
|
-
});
|
126
|
-
});
|
127
|
-
scopeEventListener.run(() => {
|
128
|
-
useEventListener(document, "keydown", keydownHandler);
|
129
|
-
useEventListener(document, "wheel", mousewheelHandler);
|
130
|
-
});
|
131
|
-
}
|
132
|
-
function unregisterEventListener() {
|
133
|
-
scopeEventListener.stop();
|
134
|
-
}
|
135
|
-
function handleImgLoad() {
|
136
|
-
loading.value = false;
|
137
|
-
}
|
138
|
-
function handleImgError(e) {
|
139
|
-
loading.value = false;
|
140
|
-
e.target.alt = t("el.image.error");
|
141
|
-
}
|
142
|
-
function handleMouseDown(e) {
|
143
|
-
if (loading.value || e.button !== 0 || !wrapper.value)
|
144
|
-
return;
|
145
|
-
transform.value.enableTransition = false;
|
146
|
-
const { offsetX, offsetY } = transform.value;
|
147
|
-
const startX = e.pageX;
|
148
|
-
const startY = e.pageY;
|
149
|
-
const dragHandler = throttle((ev) => {
|
150
|
-
transform.value = {
|
151
|
-
...transform.value,
|
152
|
-
offsetX: offsetX + ev.pageX - startX,
|
153
|
-
offsetY: offsetY + ev.pageY - startY
|
154
|
-
};
|
155
|
-
});
|
156
|
-
const removeMousemove = useEventListener(document, "mousemove", dragHandler);
|
157
|
-
useEventListener(document, "mouseup", () => {
|
158
|
-
removeMousemove();
|
159
|
-
});
|
160
|
-
e.preventDefault();
|
161
|
-
}
|
162
|
-
function reset() {
|
163
|
-
transform.value = {
|
164
|
-
scale: 1,
|
165
|
-
deg: 0,
|
166
|
-
offsetX: 0,
|
167
|
-
offsetY: 0,
|
168
|
-
enableTransition: false
|
169
|
-
};
|
170
|
-
}
|
171
|
-
function toggleMode() {
|
172
|
-
if (loading.value)
|
173
|
-
return;
|
174
|
-
const modeNames = keysOf(modes);
|
175
|
-
const modeValues = Object.values(modes);
|
176
|
-
const currentMode = mode.value.name;
|
177
|
-
const index = modeValues.findIndex((i) => i.name === currentMode);
|
178
|
-
const nextIndex = (index + 1) % modeNames.length;
|
179
|
-
mode.value = modes[modeNames[nextIndex]];
|
180
|
-
reset();
|
181
|
-
}
|
182
|
-
function setActiveItem(index) {
|
183
|
-
const len = props.urlList.length;
|
184
|
-
activeIndex.value = (index + len) % len;
|
185
|
-
}
|
186
|
-
function prev() {
|
187
|
-
if (isFirst.value && !props.infinite)
|
188
|
-
return;
|
189
|
-
setActiveItem(activeIndex.value - 1);
|
190
|
-
}
|
191
|
-
function next() {
|
192
|
-
if (isLast.value && !props.infinite)
|
193
|
-
return;
|
194
|
-
setActiveItem(activeIndex.value + 1);
|
195
|
-
}
|
196
|
-
function handleActions(action, options = {}) {
|
197
|
-
if (loading.value)
|
198
|
-
return;
|
199
|
-
const { minScale, maxScale } = props;
|
200
|
-
const { zoomRate, rotateDeg, enableTransition } = {
|
201
|
-
zoomRate: props.zoomRate,
|
202
|
-
rotateDeg: 90,
|
203
|
-
enableTransition: true,
|
204
|
-
...options
|
205
|
-
};
|
206
|
-
switch (action) {
|
207
|
-
case "zoomOut":
|
208
|
-
if (transform.value.scale > minScale) {
|
209
|
-
transform.value.scale = Number.parseFloat((transform.value.scale / zoomRate).toFixed(3));
|
210
|
-
}
|
211
|
-
break;
|
212
|
-
case "zoomIn":
|
213
|
-
if (transform.value.scale < maxScale) {
|
214
|
-
transform.value.scale = Number.parseFloat((transform.value.scale * zoomRate).toFixed(3));
|
215
|
-
}
|
216
|
-
break;
|
217
|
-
case "clockwise":
|
218
|
-
transform.value.deg += rotateDeg;
|
219
|
-
emit("rotate", transform.value.deg);
|
220
|
-
break;
|
221
|
-
case "anticlockwise":
|
222
|
-
transform.value.deg -= rotateDeg;
|
223
|
-
emit("rotate", transform.value.deg);
|
224
|
-
break;
|
225
|
-
}
|
226
|
-
transform.value.enableTransition = enableTransition;
|
227
|
-
}
|
228
|
-
function onFocusoutPrevented(event) {
|
229
|
-
var _a2;
|
230
|
-
if (((_a2 = event.detail) == null ? void 0 : _a2.focusReason) === "pointer") {
|
231
|
-
event.preventDefault();
|
232
|
-
}
|
233
|
-
}
|
234
|
-
function onCloseRequested() {
|
235
|
-
if (props.closeOnPressEscape) {
|
236
|
-
hide();
|
237
|
-
}
|
238
|
-
}
|
239
|
-
function wheelHandler(e) {
|
240
|
-
if (!e.ctrlKey)
|
241
|
-
return;
|
242
|
-
if (e.deltaY < 0) {
|
243
|
-
e.preventDefault();
|
244
|
-
return false;
|
245
|
-
} else if (e.deltaY > 0) {
|
246
|
-
e.preventDefault();
|
247
|
-
return false;
|
248
|
-
}
|
249
|
-
}
|
250
|
-
watch(currentImg, () => {
|
251
|
-
nextTick(() => {
|
252
|
-
const $img = imgRefs.value[0];
|
253
|
-
if (!($img == null ? void 0 : $img.complete)) {
|
254
|
-
loading.value = true;
|
255
|
-
}
|
256
|
-
});
|
257
|
-
});
|
258
|
-
watch(activeIndex, (val) => {
|
259
|
-
reset();
|
260
|
-
emit("switch", val);
|
261
|
-
});
|
262
|
-
onMounted(() => {
|
263
|
-
registerEventListener();
|
264
|
-
stopWheelListener = useEventListener("wheel", wheelHandler, {
|
265
|
-
passive: false
|
266
|
-
});
|
267
|
-
prevOverflow = document.body.style.overflow;
|
268
|
-
document.body.style.overflow = "hidden";
|
269
|
-
});
|
270
|
-
expose({
|
271
|
-
setActiveItem
|
272
|
-
});
|
273
|
-
return (_ctx, _cache) => {
|
274
|
-
return openBlock(), createBlock(unref(ElTeleport), {
|
275
|
-
to: "body",
|
276
|
-
disabled: !_ctx.teleported
|
277
|
-
}, {
|
278
|
-
default: withCtx(() => [
|
279
|
-
createVNode(Transition, {
|
280
|
-
name: "viewer-fade",
|
281
|
-
appear: ""
|
282
|
-
}, {
|
283
|
-
default: withCtx(() => [
|
284
|
-
createElementVNode("div", {
|
285
|
-
ref_key: "wrapper",
|
286
|
-
ref: wrapper,
|
287
|
-
tabindex: -1,
|
288
|
-
class: normalizeClass(unref(ns).e("wrapper")),
|
289
|
-
style: normalizeStyle({ zIndex: zIndex.value })
|
290
|
-
}, [
|
291
|
-
createVNode(unref(ElFocusTrap), {
|
292
|
-
loop: "",
|
293
|
-
trapped: "",
|
294
|
-
"focus-trap-el": wrapper.value,
|
295
|
-
"focus-start-el": "container",
|
296
|
-
onFocusoutPrevented,
|
297
|
-
onReleaseRequested: onCloseRequested
|
298
|
-
}, {
|
299
|
-
default: withCtx(() => [
|
300
|
-
createElementVNode("div", {
|
301
|
-
class: normalizeClass(unref(ns).e("mask")),
|
302
|
-
onClick: withModifiers(($event) => _ctx.hideOnClickModal && hide(), ["self"])
|
303
|
-
}, null, 10, ["onClick"]),
|
304
|
-
createCommentVNode(" CLOSE "),
|
305
|
-
createElementVNode("span", {
|
306
|
-
class: normalizeClass([unref(ns).e("btn"), unref(ns).e("close")]),
|
307
|
-
onClick: hide
|
308
|
-
}, [
|
309
|
-
createVNode(unref(ElIcon), null, {
|
310
|
-
default: withCtx(() => [
|
311
|
-
createVNode(unref(Close))
|
312
|
-
]),
|
313
|
-
_: 1
|
314
|
-
})
|
315
|
-
], 2),
|
316
|
-
createCommentVNode(" ARROW "),
|
317
|
-
!unref(isSingle) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
318
|
-
createElementVNode("span", {
|
319
|
-
class: normalizeClass(unref(arrowPrevKls)),
|
320
|
-
onClick: prev
|
321
|
-
}, [
|
322
|
-
createVNode(unref(ElIcon), null, {
|
323
|
-
default: withCtx(() => [
|
324
|
-
createVNode(unref(ArrowLeft))
|
325
|
-
]),
|
326
|
-
_: 1
|
327
|
-
})
|
328
|
-
], 2),
|
329
|
-
createElementVNode("span", {
|
330
|
-
class: normalizeClass(unref(arrowNextKls)),
|
331
|
-
onClick: next
|
332
|
-
}, [
|
333
|
-
createVNode(unref(ElIcon), null, {
|
334
|
-
default: withCtx(() => [
|
335
|
-
createVNode(unref(ArrowRight))
|
336
|
-
]),
|
337
|
-
_: 1
|
338
|
-
})
|
339
|
-
], 2)
|
340
|
-
], 64)) : createCommentVNode("v-if", true),
|
341
|
-
_ctx.$slots.progress || _ctx.showProgress ? (openBlock(), createElementBlock("div", {
|
342
|
-
key: 1,
|
343
|
-
class: normalizeClass([unref(ns).e("btn"), unref(ns).e("progress")])
|
344
|
-
}, [
|
345
|
-
renderSlot(_ctx.$slots, "progress", {
|
346
|
-
activeIndex: activeIndex.value,
|
347
|
-
total: _ctx.urlList.length
|
348
|
-
}, () => [
|
349
|
-
createTextVNode(toDisplayString(unref(progress)), 1)
|
350
|
-
])
|
351
|
-
], 2)) : createCommentVNode("v-if", true),
|
352
|
-
createCommentVNode(" ACTIONS "),
|
353
|
-
createElementVNode("div", {
|
354
|
-
class: normalizeClass([unref(ns).e("btn"), unref(ns).e("actions")])
|
355
|
-
}, [
|
356
|
-
createElementVNode("div", {
|
357
|
-
class: normalizeClass(unref(ns).e("actions__inner"))
|
358
|
-
}, [
|
359
|
-
renderSlot(_ctx.$slots, "toolbar", {
|
360
|
-
actions: handleActions,
|
361
|
-
prev,
|
362
|
-
next,
|
363
|
-
reset: toggleMode,
|
364
|
-
activeIndex: activeIndex.value,
|
365
|
-
setActiveItem
|
366
|
-
}, () => [
|
367
|
-
createVNode(unref(ElIcon), {
|
368
|
-
onClick: ($event) => handleActions("zoomOut")
|
369
|
-
}, {
|
370
|
-
default: withCtx(() => [
|
371
|
-
createVNode(unref(ZoomOut))
|
372
|
-
]),
|
373
|
-
_: 1
|
374
|
-
}, 8, ["onClick"]),
|
375
|
-
createVNode(unref(ElIcon), {
|
376
|
-
onClick: ($event) => handleActions("zoomIn")
|
377
|
-
}, {
|
378
|
-
default: withCtx(() => [
|
379
|
-
createVNode(unref(ZoomIn))
|
380
|
-
]),
|
381
|
-
_: 1
|
382
|
-
}, 8, ["onClick"]),
|
383
|
-
createElementVNode("i", {
|
384
|
-
class: normalizeClass(unref(ns).e("actions__divider"))
|
385
|
-
}, null, 2),
|
386
|
-
createVNode(unref(ElIcon), { onClick: toggleMode }, {
|
387
|
-
default: withCtx(() => [
|
388
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(mode).icon)))
|
389
|
-
]),
|
390
|
-
_: 1
|
391
|
-
}),
|
392
|
-
createElementVNode("i", {
|
393
|
-
class: normalizeClass(unref(ns).e("actions__divider"))
|
394
|
-
}, null, 2),
|
395
|
-
createVNode(unref(ElIcon), {
|
396
|
-
onClick: ($event) => handleActions("anticlockwise")
|
397
|
-
}, {
|
398
|
-
default: withCtx(() => [
|
399
|
-
createVNode(unref(RefreshLeft))
|
400
|
-
]),
|
401
|
-
_: 1
|
402
|
-
}, 8, ["onClick"]),
|
403
|
-
createVNode(unref(ElIcon), {
|
404
|
-
onClick: ($event) => handleActions("clockwise")
|
405
|
-
}, {
|
406
|
-
default: withCtx(() => [
|
407
|
-
createVNode(unref(RefreshRight))
|
408
|
-
]),
|
409
|
-
_: 1
|
410
|
-
}, 8, ["onClick"])
|
411
|
-
])
|
412
|
-
], 2)
|
413
|
-
], 2),
|
414
|
-
createCommentVNode(" CANVAS "),
|
415
|
-
createElementVNode("div", {
|
416
|
-
class: normalizeClass(unref(ns).e("canvas"))
|
417
|
-
}, [
|
418
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.urlList, (url, i) => {
|
419
|
-
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
420
|
-
i === activeIndex.value ? (openBlock(), createElementBlock("img", {
|
421
|
-
key: 0,
|
422
|
-
ref_for: true,
|
423
|
-
ref: (el) => imgRefs.value[i] = el,
|
424
|
-
src: url,
|
425
|
-
style: normalizeStyle(unref(imgStyle)),
|
426
|
-
class: normalizeClass(unref(ns).e("img")),
|
427
|
-
crossorigin: _ctx.crossorigin,
|
428
|
-
onLoad: handleImgLoad,
|
429
|
-
onError: handleImgError,
|
430
|
-
onMousedown: handleMouseDown
|
431
|
-
}, null, 46, ["src", "crossorigin"])) : createCommentVNode("v-if", true)
|
432
|
-
], 64);
|
433
|
-
}), 128))
|
434
|
-
], 2),
|
435
|
-
renderSlot(_ctx.$slots, "default")
|
436
|
-
]),
|
437
|
-
_: 3
|
438
|
-
}, 8, ["focus-trap-el"])
|
439
|
-
], 6)
|
440
|
-
]),
|
441
|
-
_: 3
|
442
|
-
})
|
443
|
-
]),
|
444
|
-
_: 3
|
445
|
-
}, 8, ["disabled"]);
|
446
|
-
};
|
5
|
+
const imageViewerProps = buildProps({
|
6
|
+
urlList: {
|
7
|
+
type: definePropType(Array),
|
8
|
+
default: () => mutable([])
|
9
|
+
},
|
10
|
+
zIndex: {
|
11
|
+
type: Number
|
12
|
+
},
|
13
|
+
initialIndex: {
|
14
|
+
type: Number,
|
15
|
+
default: 0
|
16
|
+
},
|
17
|
+
infinite: {
|
18
|
+
type: Boolean,
|
19
|
+
default: true
|
20
|
+
},
|
21
|
+
hideOnClickModal: Boolean,
|
22
|
+
teleported: Boolean,
|
23
|
+
closeOnPressEscape: {
|
24
|
+
type: Boolean,
|
25
|
+
default: true
|
26
|
+
},
|
27
|
+
zoomRate: {
|
28
|
+
type: Number,
|
29
|
+
default: 1.2
|
30
|
+
},
|
31
|
+
minScale: {
|
32
|
+
type: Number,
|
33
|
+
default: 0.2
|
34
|
+
},
|
35
|
+
maxScale: {
|
36
|
+
type: Number,
|
37
|
+
default: 7
|
38
|
+
},
|
39
|
+
showProgress: Boolean,
|
40
|
+
crossorigin: {
|
41
|
+
type: definePropType(String)
|
447
42
|
}
|
448
43
|
});
|
449
|
-
|
44
|
+
const imageViewerEmits = {
|
45
|
+
close: () => true,
|
46
|
+
switch: (index) => isNumber(index),
|
47
|
+
rotate: (deg) => isNumber(deg)
|
48
|
+
};
|
450
49
|
|
451
|
-
export {
|
50
|
+
export { imageViewerEmits, imageViewerProps };
|
452
51
|
//# sourceMappingURL=image-viewer2.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"image-viewer2.mjs","sources":["../../../../../../packages/components/image-viewer/src/image-viewer.vue"],"sourcesContent":["<template>\n <el-teleport to=\"body\" :disabled=\"!teleported\">\n <transition name=\"viewer-fade\" appear>\n <div\n ref=\"wrapper\"\n :tabindex=\"-1\"\n :class=\"ns.e('wrapper')\"\n :style=\"{ zIndex }\"\n >\n <el-focus-trap\n loop\n trapped\n :focus-trap-el=\"wrapper\"\n focus-start-el=\"container\"\n @focusout-prevented=\"onFocusoutPrevented\"\n @release-requested=\"onCloseRequested\"\n >\n <div :class=\"ns.e('mask')\" @click.self=\"hideOnClickModal && hide()\" />\n\n <!-- CLOSE -->\n <span :class=\"[ns.e('btn'), ns.e('close')]\" @click=\"hide\">\n <el-icon>\n <Close />\n </el-icon>\n </span>\n\n <!-- ARROW -->\n <template v-if=\"!isSingle\">\n <span :class=\"arrowPrevKls\" @click=\"prev\">\n <el-icon>\n <ArrowLeft />\n </el-icon>\n </span>\n <span :class=\"arrowNextKls\" @click=\"next\">\n <el-icon>\n <ArrowRight />\n </el-icon>\n </span>\n </template>\n <div\n v-if=\"$slots.progress || showProgress\"\n :class=\"[ns.e('btn'), ns.e('progress')]\"\n >\n <slot\n name=\"progress\"\n :active-index=\"activeIndex\"\n :total=\"urlList.length\"\n >\n {{ progress }}\n </slot>\n </div>\n <!-- ACTIONS -->\n <div :class=\"[ns.e('btn'), ns.e('actions')]\">\n <div :class=\"ns.e('actions__inner')\">\n <slot\n name=\"toolbar\"\n :actions=\"handleActions\"\n :prev=\"prev\"\n :next=\"next\"\n :reset=\"toggleMode\"\n :active-index=\"activeIndex\"\n :set-active-item=\"setActiveItem\"\n >\n <el-icon @click=\"handleActions('zoomOut')\">\n <ZoomOut />\n </el-icon>\n <el-icon @click=\"handleActions('zoomIn')\">\n <ZoomIn />\n </el-icon>\n <i :class=\"ns.e('actions__divider')\" />\n <el-icon @click=\"toggleMode\">\n <component :is=\"mode.icon\" />\n </el-icon>\n <i :class=\"ns.e('actions__divider')\" />\n <el-icon @click=\"handleActions('anticlockwise')\">\n <RefreshLeft />\n </el-icon>\n <el-icon @click=\"handleActions('clockwise')\">\n <RefreshRight />\n </el-icon>\n </slot>\n </div>\n </div>\n <!-- CANVAS -->\n <div :class=\"ns.e('canvas')\">\n <template v-for=\"(url, i) in urlList\" :key=\"i\">\n <img\n v-if=\"i === activeIndex\"\n :ref=\"(el) => (imgRefs[i] = el as HTMLImageElement)\"\n :src=\"url\"\n :style=\"imgStyle\"\n :class=\"ns.e('img')\"\n :crossorigin=\"crossorigin\"\n @load=\"handleImgLoad\"\n @error=\"handleImgError\"\n @mousedown=\"handleMouseDown\"\n />\n </template>\n </div>\n <slot />\n </el-focus-trap>\n </div>\n </transition>\n </el-teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n effectScope,\n markRaw,\n nextTick,\n onMounted,\n ref,\n shallowRef,\n watch,\n} from 'vue'\nimport { useEventListener } from '@vueuse/core'\nimport { throttle } from 'lodash-unified'\nimport { useLocale, useNamespace, useZIndex } from '@element-plus/hooks'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { keysOf } from '@element-plus/utils'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport ElTeleport from '@element-plus/components/teleport'\nimport ElIcon from '@element-plus/components/icon'\nimport {\n ArrowLeft,\n ArrowRight,\n Close,\n FullScreen,\n RefreshLeft,\n RefreshRight,\n ScaleToOriginal,\n ZoomIn,\n ZoomOut,\n} from '@element-plus/icons-vue'\nimport { imageViewerEmits, imageViewerProps } from './image-viewer'\n\nimport type { CSSProperties } from 'vue'\nimport type { ImageViewerAction, ImageViewerMode } from './image-viewer'\n\nconst modes: Record<'CONTAIN' | 'ORIGINAL', ImageViewerMode> = {\n CONTAIN: {\n name: 'contain',\n icon: markRaw(FullScreen),\n },\n ORIGINAL: {\n name: 'original',\n icon: markRaw(ScaleToOriginal),\n },\n}\n\ndefineOptions({\n name: 'ElImageViewer',\n})\n\nconst props = defineProps(imageViewerProps)\nconst emit = defineEmits(imageViewerEmits)\n\nlet stopWheelListener: (() => void) | undefined\nlet prevOverflow = ''\n\nconst { t } = useLocale()\nconst ns = useNamespace('image-viewer')\nconst { nextZIndex } = useZIndex()\nconst wrapper = ref<HTMLDivElement>()\nconst imgRefs = ref<HTMLImageElement[]>([])\n\nconst scopeEventListener = effectScope()\n\nconst loading = ref(true)\nconst activeIndex = ref(props.initialIndex)\nconst mode = shallowRef<ImageViewerMode>(modes.CONTAIN)\nconst transform = ref({\n scale: 1,\n deg: 0,\n offsetX: 0,\n offsetY: 0,\n enableTransition: false,\n})\nconst zIndex = ref(props.zIndex ?? nextZIndex())\n\nconst isSingle = computed(() => {\n const { urlList } = props\n return urlList.length <= 1\n})\n\nconst isFirst = computed(() => activeIndex.value === 0)\n\nconst isLast = computed(() => activeIndex.value === props.urlList.length - 1)\n\nconst currentImg = computed(() => props.urlList[activeIndex.value])\n\nconst arrowPrevKls = computed(() => [\n ns.e('btn'),\n ns.e('prev'),\n ns.is('disabled', !props.infinite && isFirst.value),\n])\n\nconst arrowNextKls = computed(() => [\n ns.e('btn'),\n ns.e('next'),\n ns.is('disabled', !props.infinite && isLast.value),\n])\n\nconst imgStyle = computed(() => {\n const { scale, deg, offsetX, offsetY, enableTransition } = transform.value\n let translateX = offsetX / scale\n let translateY = offsetY / scale\n\n const radian = (deg * Math.PI) / 180\n const cosRadian = Math.cos(radian)\n const sinRadian = Math.sin(radian)\n translateX = translateX * cosRadian + translateY * sinRadian\n translateY = translateY * cosRadian - (offsetX / scale) * sinRadian\n\n const style: CSSProperties = {\n transform: `scale(${scale}) rotate(${deg}deg) translate(${translateX}px, ${translateY}px)`,\n transition: enableTransition ? 'transform .3s' : '',\n }\n if (mode.value.name === modes.CONTAIN.name) {\n style.maxWidth = style.maxHeight = '100%'\n }\n return style\n})\n\nconst progress = computed(\n () => `${activeIndex.value + 1} / ${props.urlList.length}`\n)\n\nfunction hide() {\n unregisterEventListener()\n stopWheelListener?.()\n document.body.style.overflow = prevOverflow\n emit('close')\n}\n\nfunction registerEventListener() {\n const keydownHandler = throttle((e: KeyboardEvent) => {\n switch (e.code) {\n // ESC\n case EVENT_CODE.esc:\n props.closeOnPressEscape && hide()\n break\n // SPACE\n case EVENT_CODE.space:\n toggleMode()\n break\n // LEFT_ARROW\n case EVENT_CODE.left:\n prev()\n break\n // UP_ARROW\n case EVENT_CODE.up:\n handleActions('zoomIn')\n break\n // RIGHT_ARROW\n case EVENT_CODE.right:\n next()\n break\n // DOWN_ARROW\n case EVENT_CODE.down:\n handleActions('zoomOut')\n break\n }\n })\n const mousewheelHandler = throttle((e: WheelEvent) => {\n const delta = e.deltaY || e.deltaX\n handleActions(delta < 0 ? 'zoomIn' : 'zoomOut', {\n zoomRate: props.zoomRate,\n enableTransition: false,\n })\n })\n\n scopeEventListener.run(() => {\n useEventListener(document, 'keydown', keydownHandler)\n useEventListener(document, 'wheel', mousewheelHandler)\n })\n}\n\nfunction unregisterEventListener() {\n scopeEventListener.stop()\n}\n\nfunction handleImgLoad() {\n loading.value = false\n}\n\nfunction handleImgError(e: Event) {\n loading.value = false\n ;(e.target as HTMLImageElement).alt = t('el.image.error')\n}\n\nfunction handleMouseDown(e: MouseEvent) {\n if (loading.value || e.button !== 0 || !wrapper.value) return\n transform.value.enableTransition = false\n\n const { offsetX, offsetY } = transform.value\n const startX = e.pageX\n const startY = e.pageY\n\n const dragHandler = throttle((ev: MouseEvent) => {\n transform.value = {\n ...transform.value,\n offsetX: offsetX + ev.pageX - startX,\n offsetY: offsetY + ev.pageY - startY,\n }\n })\n const removeMousemove = useEventListener(document, 'mousemove', dragHandler)\n useEventListener(document, 'mouseup', () => {\n removeMousemove()\n })\n\n e.preventDefault()\n}\n\nfunction reset() {\n transform.value = {\n scale: 1,\n deg: 0,\n offsetX: 0,\n offsetY: 0,\n enableTransition: false,\n }\n}\n\nfunction toggleMode() {\n if (loading.value) return\n\n const modeNames = keysOf(modes)\n const modeValues = Object.values(modes)\n const currentMode = mode.value.name\n const index = modeValues.findIndex((i) => i.name === currentMode)\n const nextIndex = (index + 1) % modeNames.length\n mode.value = modes[modeNames[nextIndex]]\n reset()\n}\n\nfunction setActiveItem(index: number) {\n const len = props.urlList.length\n activeIndex.value = (index + len) % len\n}\n\nfunction prev() {\n if (isFirst.value && !props.infinite) return\n setActiveItem(activeIndex.value - 1)\n}\n\nfunction next() {\n if (isLast.value && !props.infinite) return\n setActiveItem(activeIndex.value + 1)\n}\n\nfunction handleActions(action: ImageViewerAction, options = {}) {\n if (loading.value) return\n const { minScale, maxScale } = props\n const { zoomRate, rotateDeg, enableTransition } = {\n zoomRate: props.zoomRate,\n rotateDeg: 90,\n enableTransition: true,\n ...options,\n }\n switch (action) {\n case 'zoomOut':\n if (transform.value.scale > minScale) {\n transform.value.scale = Number.parseFloat(\n (transform.value.scale / zoomRate).toFixed(3)\n )\n }\n break\n case 'zoomIn':\n if (transform.value.scale < maxScale) {\n transform.value.scale = Number.parseFloat(\n (transform.value.scale * zoomRate).toFixed(3)\n )\n }\n break\n case 'clockwise':\n transform.value.deg += rotateDeg\n emit('rotate', transform.value.deg)\n break\n case 'anticlockwise':\n transform.value.deg -= rotateDeg\n emit('rotate', transform.value.deg)\n break\n }\n transform.value.enableTransition = enableTransition\n}\n\nfunction onFocusoutPrevented(event: CustomEvent) {\n if (event.detail?.focusReason === 'pointer') {\n event.preventDefault()\n }\n}\n\nfunction onCloseRequested() {\n if (props.closeOnPressEscape) {\n hide()\n }\n}\n\nfunction wheelHandler(e: WheelEvent) {\n if (!e.ctrlKey) return\n\n if (e.deltaY < 0) {\n e.preventDefault()\n return false\n } else if (e.deltaY > 0) {\n e.preventDefault()\n return false\n }\n}\n\nwatch(currentImg, () => {\n nextTick(() => {\n const $img = imgRefs.value[0]\n if (!$img?.complete) {\n loading.value = true\n }\n })\n})\n\nwatch(activeIndex, (val) => {\n reset()\n emit('switch', val)\n})\n\nonMounted(() => {\n registerEventListener()\n\n stopWheelListener = useEventListener('wheel', wheelHandler, {\n passive: false,\n })\n\n // prevent body scroll\n prevOverflow = document.body.style.overflow\n document.body.style.overflow = 'hidden'\n})\n\ndefineExpose({\n /**\n * @description manually switch image\n */\n setActiveItem,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;mCAwJc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAbA,IAAA,MAAM,KAAyD,GAAA,OAAA,CAAA;AAAA,IAAA,MACpD,KAAA,GAAA;AAAA,MAAA,OACD,EAAA;AAAA,QACN,IAAA,EAAM,SAAkB;AAAA,QAC1B,IAAA,EAAA,OAAA,CAAA,UAAA,CAAA;AAAA,OACU;AAAA,MAAA,QACF,EAAA;AAAA,QACN,IAAA,EAAM,UAAuB;AAAA,QAC/B,IAAA,EAAA,OAAA,CAAA,eAAA,CAAA;AAAA,OACF;AASA,KAAI,CAAA;AACJ,IAAA,IAAI,iBAAe,CAAA;AAEnB,IAAM,IAAA,YAAkB,GAAA,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,CAAA,EAAK,cAA2B,CAAA;AACtC,IAAM,MAAA,EAAE,GAAW,YAAI,CAAU,cAAA,CAAA,CAAA;AACjC,IAAA,MAAM,YAA8B,EAAA,GAAA,SAAA,EAAA,CAAA;AACpC,IAAM,MAAA,OAAA,GAAU,GAAwB,EAAC,CAAC;AAE1C,IAAA,MAAM;AAEN,IAAM,MAAA,kBAAkB,GAAA,WAAA,EAAA,CAAA;AACxB,IAAM,MAAA,OAAA,GAAA,GAAA,CAAc,IAAI,CAAA,CAAA;AACxB,IAAM,MAAA,WAAmC,GAAA,GAAA,CAAA,KAAA,CAAM,YAAO,CAAA,CAAA;AACtD,IAAA,MAAM,iBAAgB,CAAA,KAAA,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"image-viewer2.mjs","sources":["../../../../../../packages/components/image-viewer/src/image-viewer.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\n\nimport type { Component, ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type ImageViewer from './image-viewer.vue'\n\nexport type ImageViewerAction =\n | 'zoomIn'\n | 'zoomOut'\n | 'clockwise'\n | 'anticlockwise'\n\nexport const imageViewerProps = buildProps({\n /**\n * @description preview link list.\n */\n urlList: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description preview backdrop z-index.\n */\n zIndex: {\n type: Number,\n },\n /**\n * @description the initial preview image index, less than or equal to the length of `url-list`.\n */\n initialIndex: {\n type: Number,\n default: 0,\n },\n /**\n * @description whether preview is infinite.\n */\n infinite: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether user can emit close event when clicking backdrop.\n */\n hideOnClickModal: Boolean,\n /**\n * @description whether to append image itself to body. A nested parent element attribute transform should have this attribute set to `true`.\n */\n teleported: Boolean,\n /**\n * @description whether the image-viewer can be closed by pressing ESC.\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the zoom rate of the image viewer zoom event.\n */\n zoomRate: {\n type: Number,\n default: 1.2,\n },\n /**\n * @description the min scale of the image viewer zoom event.\n */\n minScale: {\n type: Number,\n default: 0.2,\n },\n /**\n * @description the max scale of the image viewer zoom event.\n */\n maxScale: {\n type: Number,\n default: 7,\n },\n /**\n * @description show preview image progress content.\n */\n showProgress: Boolean,\n /**\n * @description set HTML attribute: crossorigin.\n */\n crossorigin: {\n type: definePropType<'anonymous' | 'use-credentials' | ''>(String),\n },\n} as const)\nexport type ImageViewerProps = ExtractPropTypes<typeof imageViewerProps>\nexport type ImageViewerPropsPublic = __ExtractPublicPropTypes<\n typeof imageViewerProps\n>\n\nexport const imageViewerEmits = {\n close: () => true,\n switch: (index: number) => isNumber(index),\n rotate: (deg: number) => isNumber(deg),\n}\nexport type ImageViewerEmits = typeof imageViewerEmits\n\nexport interface ImageViewerMode {\n name: string\n icon: Component\n}\n\nexport type ImageViewerInstance = InstanceType<typeof ImageViewer> & unknown\n"],"names":[],"mappings":";;;;AAMY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,gBAAgB,EAAE,OAAO;AAC3B,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,gBAAgB,GAAG;AAChC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,MAAM,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AACpC,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC;AAChC;;;;"}
|
package/es/components/index.mjs
CHANGED
@@ -94,12 +94,12 @@ export { avatarEmits, avatarProps } from './avatar/src/avatar.mjs';
|
|
94
94
|
export { backtopEmits, backtopProps } from './backtop/src/backtop.mjs';
|
95
95
|
export { badgeProps } from './badge/src/badge.mjs';
|
96
96
|
export { breadcrumbProps } from './breadcrumb/src/breadcrumb.mjs';
|
97
|
-
export { breadcrumbItemProps } from './breadcrumb/src/breadcrumb-
|
97
|
+
export { breadcrumbItemProps } from './breadcrumb/src/breadcrumb-item.mjs';
|
98
98
|
export { breadcrumbKey } from './breadcrumb/src/constants.mjs';
|
99
99
|
export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './button/src/button.mjs';
|
100
100
|
export { buttonGroupContextKey } from './button/src/constants.mjs';
|
101
|
-
export { calendarEmits, calendarProps } from './calendar/src/
|
102
|
-
export { cardContextKey, cardProps } from './card/src/
|
101
|
+
export { calendarEmits, calendarProps } from './calendar/src/calendar2.mjs';
|
102
|
+
export { cardContextKey, cardProps } from './card/src/card2.mjs';
|
103
103
|
export { carouselEmits, carouselProps } from './carousel/src/carousel.mjs';
|
104
104
|
export { carouselItemProps } from './carousel/src/carousel-item.mjs';
|
105
105
|
export { CAROUSEL_ITEM_NAME, carouselContextKey } from './carousel/src/constants.mjs';
|
@@ -134,14 +134,14 @@ export { drawerEmits, drawerProps } from './drawer/src/drawer2.mjs';
|
|
134
134
|
export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './dropdown/src/dropdown.mjs';
|
135
135
|
export { DROPDOWN_INJECTION_KEY, DROPDOWN_INSTANCE_INJECTION_KEY } from './dropdown/src/tokens.mjs';
|
136
136
|
export { emptyProps } from './empty/src/empty.mjs';
|
137
|
-
export { formEmits, formMetaProps, formProps } from './form/src/
|
137
|
+
export { formEmits, formMetaProps, formProps } from './form/src/form.mjs';
|
138
138
|
export { formItemProps, formItemValidateStates } from './form/src/form-item.mjs';
|
139
139
|
export { formContextKey, formItemContextKey } from './form/src/constants.mjs';
|
140
140
|
export { useDisabled, useFormDisabled, useFormSize, useSize } from './form/src/hooks/use-form-common-props.mjs';
|
141
141
|
export { useFormItem, useFormItemInputId } from './form/src/hooks/use-form-item.mjs';
|
142
142
|
export { iconProps } from './icon/src/icon.mjs';
|
143
143
|
export { imageEmits, imageProps } from './image/src/image.mjs';
|
144
|
-
export { imageViewerEmits, imageViewerProps } from './image-viewer/src/image-
|
144
|
+
export { imageViewerEmits, imageViewerProps } from './image-viewer/src/image-viewer2.mjs';
|
145
145
|
export { inputEmits, inputProps } from './input/src/input.mjs';
|
146
146
|
export { inputNumberEmits, inputNumberProps } from './input-number/src/input-number.mjs';
|
147
147
|
export { inputTagEmits, inputTagProps } from './input-tag/src/input-tag.mjs';
|
@@ -159,17 +159,17 @@ export { popconfirmEmits, popconfirmProps } from './popconfirm/src/popconfirm.mj
|
|
159
159
|
export { Effect, popperProps, roleTypes, usePopperProps } from './popper/src/popper.mjs';
|
160
160
|
export { popperTriggerProps, usePopperTriggerProps } from './popper/src/trigger.mjs';
|
161
161
|
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './popper/src/content.mjs';
|
162
|
-
export { popperArrowProps, usePopperArrowProps } from './popper/src/
|
162
|
+
export { popperArrowProps, usePopperArrowProps } from './popper/src/arrow.mjs';
|
163
163
|
export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './popper/src/constants.mjs';
|
164
|
-
export { default as ElPopperArrow } from './popper/src/
|
164
|
+
export { default as ElPopperArrow } from './popper/src/arrow2.mjs';
|
165
165
|
export { default as ElPopperTrigger } from './popper/src/trigger2.mjs';
|
166
166
|
export { default as ElPopperContent } from './popper/src/content2.mjs';
|
167
167
|
export { progressProps } from './progress/src/progress.mjs';
|
168
|
-
export { radioEmits, radioProps, radioPropsBase } from './radio/src/
|
168
|
+
export { radioEmits, radioProps, radioPropsBase } from './radio/src/radio.mjs';
|
169
169
|
export { radioGroupEmits, radioGroupProps } from './radio/src/radio-group.mjs';
|
170
170
|
export { radioButtonProps } from './radio/src/radio-button.mjs';
|
171
171
|
export { radioGroupKey } from './radio/src/constants.mjs';
|
172
|
-
export { rateEmits, rateProps } from './rate/src/
|
172
|
+
export { rateEmits, rateProps } from './rate/src/rate2.mjs';
|
173
173
|
export { IconComponentMap, IconMap, resultProps } from './result/src/result.mjs';
|
174
174
|
export { RowAlign, RowJustify, rowProps } from './row/src/row.mjs';
|
175
175
|
export { rowContextKey } from './row/src/constants.mjs';
|
@@ -189,9 +189,9 @@ export { spaceItemProps } from './space/src/item.mjs';
|
|
189
189
|
export { useSpace } from './space/src/use-space.mjs';
|
190
190
|
export { statisticProps } from './statistic/src/statistic.mjs';
|
191
191
|
export { stepProps } from './steps/src/item.mjs';
|
192
|
-
export { stepsEmits, stepsProps } from './steps/src/
|
192
|
+
export { stepsEmits, stepsProps } from './steps/src/steps2.mjs';
|
193
193
|
export { STEPS_INJECTION_KEY } from './steps/src/tokens.mjs';
|
194
|
-
export { switchEmits, switchProps } from './switch/src/
|
194
|
+
export { switchEmits, switchProps } from './switch/src/switch2.mjs';
|
195
195
|
export { Alignment as TableV2Alignment, FixedDir as TableV2FixedDir, SortOrder as TableV2SortOrder } from './table-v2/src/constants.mjs';
|
196
196
|
export { default as TableV2 } from './table-v2/src/table-v2.mjs';
|
197
197
|
export { placeholderSign as TableV2Placeholder } from './table-v2/src/private.mjs';
|
@@ -213,11 +213,11 @@ export { default as TimePickPanel } from './time-picker/src/time-picker-com/pane
|
|
213
213
|
export { timeSelectProps } from './time-select/src/time-select.mjs';
|
214
214
|
export { timelineItemProps } from './timeline/src/timeline-item.mjs';
|
215
215
|
export { TIMELINE_INJECTION_KEY } from './timeline/src/tokens.mjs';
|
216
|
-
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './tooltip/src/
|
217
|
-
export { useTooltipTriggerProps } from './tooltip/src/
|
216
|
+
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './tooltip/src/tooltip.mjs';
|
217
|
+
export { useTooltipTriggerProps } from './tooltip/src/trigger2.mjs';
|
218
218
|
export { useTooltipContentProps } from './tooltip/src/content.mjs';
|
219
219
|
export { TOOLTIP_INJECTION_KEY } from './tooltip/src/constants.mjs';
|
220
|
-
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './transfer/src/
|
220
|
+
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './transfer/src/transfer.mjs';
|
221
221
|
export { NODE_INSTANCE_INJECTION_KEY, ROOT_TREE_INJECTION_KEY, TREE_NODE_MAP_INJECTION_KEY } from './tree/src/tokens.mjs';
|
222
222
|
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './upload/src/upload.mjs';
|
223
223
|
export { uploadContentProps } from './upload/src/upload-content.mjs';
|
@@ -228,7 +228,7 @@ export { default as FixedSizeList } from './virtual-list/src/components/fixed-si
|
|
228
228
|
export { default as DynamicSizeList } from './virtual-list/src/components/dynamic-size-list.mjs';
|
229
229
|
export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps } from './virtual-list/src/props.mjs';
|
230
230
|
export { watermarkProps } from './watermark/src/watermark.mjs';
|
231
|
-
export { tourEmits, tourProps } from './tour/src/
|
231
|
+
export { tourEmits, tourProps } from './tour/src/tour.mjs';
|
232
232
|
export { tourStepEmits, tourStepProps } from './tour/src/step.mjs';
|
233
233
|
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/content.mjs';
|
234
234
|
export { anchorEmits, anchorProps } from './anchor/src/anchor.mjs';
|
@@ -237,6 +237,6 @@ export { mentionEmits, mentionProps } from './mention/src/mention.mjs';
|
|
237
237
|
export { splitterProps } from './splitter/src/splitter.mjs';
|
238
238
|
export { splitterPanelProps } from './splitter/src/split-panel.mjs';
|
239
239
|
export { MESSAGE_DEFAULT_PLACEMENT, messageDefaults, messageEmits, messagePlacement, messageProps, messageTypes } from './message/src/message.mjs';
|
240
|
-
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/
|
240
|
+
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/notification.mjs';
|
241
241
|
export { popoverEmits, popoverProps } from './popover/src/popover.mjs';
|
242
242
|
//# sourceMappingURL=index.mjs.map
|