@element-plus/nightly 0.0.20241004 → 0.0.20241006
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 +2 -2
- package/dist/index.full.min.js +2 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +2 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2 -2
- 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/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/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/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/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/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-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 +81 -6
- package/es/components/anchor/src/anchor-link.mjs.map +1 -1
- package/es/components/anchor/src/anchor-link2.mjs +6 -81
- package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
- package/es/components/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +57 -9
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +9 -57
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +4 -4
- package/es/components/carousel/src/carousel-item.mjs +70 -8
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +8 -70
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/carousel/src/carousel.mjs +62 -205
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +205 -62
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +23 -79
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +79 -23
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +1 -1
- package/es/components/descriptions/src/descriptions-row.mjs +7 -63
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row2.mjs +63 -7
- package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.mjs +89 -26
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +26 -89
- 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/form/index.mjs +2 -2
- package/es/components/form/src/form-item.mjs +48 -321
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item2.mjs +321 -48
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/src/icon.mjs +36 -8
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +8 -36
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/index.mjs +19 -19
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +445 -103
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +103 -445
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/pagination/src/components/jumper.mjs +59 -9
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +9 -59
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/components/next.mjs +36 -19
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +19 -36
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/content.mjs +137 -93
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +93 -137
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +1 -1
- package/es/components/scrollbar/src/bar.mjs +11 -64
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar2.mjs +64 -11
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
- package/es/components/scrollbar/src/thumb.mjs +130 -11
- package/es/components/scrollbar/src/thumb.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb2.mjs +11 -130
- package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
- package/es/components/segmented/index.mjs +2 -2
- package/es/components/segmented/src/segmented.mjs +158 -30
- package/es/components/segmented/src/segmented.mjs.map +1 -1
- package/es/components/segmented/src/segmented2.mjs +30 -158
- package/es/components/segmented/src/segmented2.mjs.map +1 -1
- package/es/components/slider/index.mjs +2 -2
- package/es/components/slider/src/slider.mjs +240 -90
- package/es/components/slider/src/slider.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +90 -240
- package/es/components/slider/src/slider2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +1 -1
- package/es/components/tabs/src/tab-bar.mjs +96 -7
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +7 -96
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +38 -22
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +22 -38
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/timeline/index.mjs +2 -2
- package/es/components/timeline/src/timeline-item.mjs +73 -34
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +34 -73
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +2 -2
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/content2.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +168 -31
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +31 -168
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +1 -1
- package/es/components/tooltip-v2/src/content.mjs +111 -49
- package/es/components/tooltip-v2/src/content.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content2.mjs +49 -111
- package/es/components/tooltip-v2/src/content2.mjs.map +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/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +128 -19
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +19 -128
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/components/upload/index.mjs +2 -2
- package/es/components/upload/src/upload-content.mjs +198 -33
- package/es/components/upload/src/upload-content.mjs.map +1 -1
- package/es/components/upload/src/upload-content2.mjs +33 -198
- package/es/components/upload/src/upload-content2.mjs.map +1 -1
- package/es/components/upload/src/upload-list.mjs +29 -175
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list2.mjs +175 -29
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +2 -2
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +209 -28
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +28 -209
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/index.mjs +19 -19
- 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 +81 -6
- package/lib/components/anchor/src/anchor-link.js.map +1 -1
- package/lib/components/anchor/src/anchor-link2.js +6 -81
- package/lib/components/anchor/src/anchor-link2.js.map +1 -1
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb-item.js +57 -9
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +9 -57
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/carousel/index.js +4 -4
- package/lib/components/carousel/src/carousel-item.js +70 -8
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +8 -70
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/carousel/src/carousel.js +63 -205
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +205 -63
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +24 -79
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +79 -24
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +1 -1
- package/lib/components/descriptions/src/descriptions-row.js +7 -63
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row2.js +63 -7
- package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.js +88 -26
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +26 -88
- 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/form/index.js +2 -2
- package/lib/components/form/src/form-item.js +49 -325
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item2.js +325 -49
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/src/icon.js +36 -8
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +8 -36
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/index.js +19 -19
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +444 -103
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +103 -444
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/pagination/src/components/jumper.js +59 -9
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +9 -59
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/components/next.js +36 -19
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +19 -36
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/content.js +137 -98
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +98 -137
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/src/bar.js +11 -64
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar2.js +64 -11
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +1 -1
- package/lib/components/scrollbar/src/thumb.js +130 -11
- package/lib/components/scrollbar/src/thumb.js.map +1 -1
- package/lib/components/scrollbar/src/thumb2.js +11 -130
- package/lib/components/scrollbar/src/thumb2.js.map +1 -1
- package/lib/components/segmented/index.js +2 -2
- package/lib/components/segmented/src/segmented.js +157 -30
- package/lib/components/segmented/src/segmented.js.map +1 -1
- package/lib/components/segmented/src/segmented2.js +30 -157
- package/lib/components/segmented/src/segmented2.js.map +1 -1
- package/lib/components/slider/index.js +2 -2
- package/lib/components/slider/src/slider.js +240 -91
- package/lib/components/slider/src/slider.js.map +1 -1
- package/lib/components/slider/src/slider2.js +91 -240
- package/lib/components/slider/src/slider2.js.map +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/tabs/src/tab-bar.js +96 -7
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +7 -96
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +38 -22
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +22 -38
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/timeline/index.js +2 -2
- package/lib/components/timeline/src/timeline-item.js +73 -34
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +34 -73
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/tooltip/index.js +2 -2
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/content2.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +168 -35
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +35 -168
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +1 -1
- package/lib/components/tooltip-v2/src/content.js +111 -49
- package/lib/components/tooltip-v2/src/content.js.map +1 -1
- package/lib/components/tooltip-v2/src/content2.js +49 -111
- package/lib/components/tooltip-v2/src/content2.js.map +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/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +128 -21
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +21 -128
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upload/src/upload-content.js +196 -31
- package/lib/components/upload/src/upload-content.js.map +1 -1
- package/lib/components/upload/src/upload-content2.js +31 -196
- package/lib/components/upload/src/upload-content2.js.map +1 -1
- package/lib/components/upload/src/upload-list.js +30 -175
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list2.js +175 -30
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +2 -2
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +209 -28
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +28 -209
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/index.js +19 -19
- 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
|
@@ -10,7 +10,7 @@ import { mentionProps, mentionEmits } from './mention.mjs';
|
|
|
10
10
|
import { getCursorPosition, getMentionCtx } from './helper.mjs';
|
|
11
11
|
import ElMentionDropdown from './mention-dropdown2.mjs';
|
|
12
12
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
13
|
-
import { inputProps } from '../../input/src/
|
|
13
|
+
import { inputProps } from '../../input/src/input2.mjs';
|
|
14
14
|
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
15
15
|
import { useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
|
|
16
16
|
import { useId } from '../../../hooks/use-id/index.mjs';
|
|
@@ -1,14 +1,64 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '../../../../
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, toDisplayString, createVNode } from 'vue';
|
|
2
|
+
import '../../../../hooks/index.mjs';
|
|
3
|
+
import { ElInput } from '../../../input/index.mjs';
|
|
4
|
+
import { usePagination } from '../usePagination.mjs';
|
|
5
|
+
import { paginationJumperProps } from './jumper2.mjs';
|
|
6
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
|
7
|
+
import { useLocale } from '../../../../hooks/use-locale/index.mjs';
|
|
8
|
+
import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
|
|
5
9
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
const __default__ = defineComponent({
|
|
11
|
+
name: "ElPaginationJumper"
|
|
12
|
+
});
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
+
...__default__,
|
|
15
|
+
props: paginationJumperProps,
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const { t } = useLocale();
|
|
18
|
+
const ns = useNamespace("pagination");
|
|
19
|
+
const { pageCount, disabled, currentPage, changeEvent } = usePagination();
|
|
20
|
+
const userInput = ref();
|
|
21
|
+
const innerValue = computed(() => {
|
|
22
|
+
var _a;
|
|
23
|
+
return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
|
|
24
|
+
});
|
|
25
|
+
function handleInput(val) {
|
|
26
|
+
userInput.value = val ? +val : "";
|
|
27
|
+
}
|
|
28
|
+
function handleChange(val) {
|
|
29
|
+
val = Math.trunc(+val);
|
|
30
|
+
changeEvent == null ? void 0 : changeEvent(val);
|
|
31
|
+
userInput.value = void 0;
|
|
32
|
+
}
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
return openBlock(), createElementBlock("span", {
|
|
35
|
+
class: normalizeClass(unref(ns).e("jump")),
|
|
36
|
+
disabled: unref(disabled)
|
|
37
|
+
}, [
|
|
38
|
+
createElementVNode("span", {
|
|
39
|
+
class: normalizeClass([unref(ns).e("goto")])
|
|
40
|
+
}, toDisplayString(unref(t)("el.pagination.goto")), 3),
|
|
41
|
+
createVNode(unref(ElInput), {
|
|
42
|
+
size: _ctx.size,
|
|
43
|
+
class: normalizeClass([unref(ns).e("editor"), unref(ns).is("in-pagination")]),
|
|
44
|
+
min: 1,
|
|
45
|
+
max: unref(pageCount),
|
|
46
|
+
disabled: unref(disabled),
|
|
47
|
+
"model-value": unref(innerValue),
|
|
48
|
+
"validate-event": false,
|
|
49
|
+
"aria-label": unref(t)("el.pagination.page"),
|
|
50
|
+
type: "number",
|
|
51
|
+
"onUpdate:modelValue": handleInput,
|
|
52
|
+
onChange: handleChange
|
|
53
|
+
}, null, 8, ["size", "class", "max", "disabled", "model-value", "aria-label"]),
|
|
54
|
+
createElementVNode("span", {
|
|
55
|
+
class: normalizeClass([unref(ns).e("classifier")])
|
|
56
|
+
}, toDisplayString(unref(t)("el.pagination.pageClassifier")), 3)
|
|
57
|
+
], 10, ["disabled"]);
|
|
58
|
+
};
|
|
10
59
|
}
|
|
11
60
|
});
|
|
61
|
+
var Jumper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "jumper.vue"]]);
|
|
12
62
|
|
|
13
|
-
export {
|
|
63
|
+
export { Jumper as default };
|
|
14
64
|
//# sourceMappingURL=jumper.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jumper.mjs","sources":["../../../../../../../packages/components/pagination/src/components/jumper.
|
|
1
|
+
{"version":3,"file":"jumper.mjs","sources":["../../../../../../../packages/components/pagination/src/components/jumper.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('jump')\" :disabled=\"disabled\">\n <span :class=\"[ns.e('goto')]\">{{ t('el.pagination.goto') }}</span>\n <el-input\n :size=\"size\"\n :class=\"[ns.e('editor'), ns.is('in-pagination')]\"\n :min=\"1\"\n :max=\"pageCount\"\n :disabled=\"disabled\"\n :model-value=\"innerValue\"\n :validate-event=\"false\"\n :aria-label=\"t('el.pagination.page')\"\n type=\"number\"\n @update:model-value=\"handleInput\"\n @change=\"handleChange\"\n />\n <span :class=\"[ns.e('classifier')]\">{{\n t('el.pagination.pageClassifier')\n }}</span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport ElInput from '@element-plus/components/input'\nimport { usePagination } from '../usePagination'\nimport { paginationJumperProps } from './jumper'\n\ndefineOptions({\n name: 'ElPaginationJumper',\n})\n\ndefineProps(paginationJumperProps)\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst { pageCount, disabled, currentPage, changeEvent } = usePagination()\nconst userInput = ref<number | string>()\nconst innerValue = computed(() => userInput.value ?? currentPage?.value)\n\nfunction handleInput(val: number | string) {\n userInput.value = val ? +val : ''\n}\n\nfunction handleChange(val: number | string) {\n val = Math.trunc(+val)\n changeEvent?.(val)\n userInput.value = undefined\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;mCA6Bc,CAAA;AAAA,EACZ,IAAM,EAAA,oBAAA;AACR,CAAA,CAAA,CAAA;;;;;AAGA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,EAAE,SAAW,EAAA,QAAA,EAAU,WAAa,EAAA,WAAA,KAAgB,aAAc,EAAA,CAAA;AACxE,IAAA,MAAM,YAAY,GAAqB,EAAA,CAAA;AACvC,IAAA,MAAM,aAAa,QAAS,CAAA,MAAM;AAElC,MAAA,IAAA,EAAA,CAAS;AACP,MAAU,OAAA,CAAA,EAAA,GAAA,SAAc,CAAA,KAAO,KAAA,IAAA,GAAA,EAAA,GAAA,WAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,CAAA,KAAA,CAAA;AAAA,KACjC,CAAA,CAAA;AAEA,IAAA,SAAS,eAAmC,EAAA;AAC1C,MAAM,SAAA,CAAA,KAAW,GAAC,GAAG,GAAA,CAAA,GAAA,GAAA,EAAA,CAAA;AACrB,KAAA;AACA,IAAA,SAAA,YAAkB,CAAA,GAAA,EAAA;AAAA,MACpB,GAAA,GAAA,IAAA,CAAA,KAAA,CAAA,CAAA,GAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,64 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '../../../../
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { paginationJumperProps } from './jumper.mjs';
|
|
6
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
|
7
|
-
import { useLocale } from '../../../../hooks/use-locale/index.mjs';
|
|
8
|
-
import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import '../../../../utils/index.mjs';
|
|
2
|
+
import '../../../../constants/index.mjs';
|
|
3
|
+
import { buildProps } from '../../../../utils/vue/props/runtime.mjs';
|
|
4
|
+
import { componentSizes } from '../../../../constants/size.mjs';
|
|
9
5
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
...__default__,
|
|
15
|
-
props: paginationJumperProps,
|
|
16
|
-
setup(__props) {
|
|
17
|
-
const { t } = useLocale();
|
|
18
|
-
const ns = useNamespace("pagination");
|
|
19
|
-
const { pageCount, disabled, currentPage, changeEvent } = usePagination();
|
|
20
|
-
const userInput = ref();
|
|
21
|
-
const innerValue = computed(() => {
|
|
22
|
-
var _a;
|
|
23
|
-
return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
|
|
24
|
-
});
|
|
25
|
-
function handleInput(val) {
|
|
26
|
-
userInput.value = val ? +val : "";
|
|
27
|
-
}
|
|
28
|
-
function handleChange(val) {
|
|
29
|
-
val = Math.trunc(+val);
|
|
30
|
-
changeEvent == null ? void 0 : changeEvent(val);
|
|
31
|
-
userInput.value = void 0;
|
|
32
|
-
}
|
|
33
|
-
return (_ctx, _cache) => {
|
|
34
|
-
return openBlock(), createElementBlock("span", {
|
|
35
|
-
class: normalizeClass(unref(ns).e("jump")),
|
|
36
|
-
disabled: unref(disabled)
|
|
37
|
-
}, [
|
|
38
|
-
createElementVNode("span", {
|
|
39
|
-
class: normalizeClass([unref(ns).e("goto")])
|
|
40
|
-
}, toDisplayString(unref(t)("el.pagination.goto")), 3),
|
|
41
|
-
createVNode(unref(ElInput), {
|
|
42
|
-
size: _ctx.size,
|
|
43
|
-
class: normalizeClass([unref(ns).e("editor"), unref(ns).is("in-pagination")]),
|
|
44
|
-
min: 1,
|
|
45
|
-
max: unref(pageCount),
|
|
46
|
-
disabled: unref(disabled),
|
|
47
|
-
"model-value": unref(innerValue),
|
|
48
|
-
"validate-event": false,
|
|
49
|
-
"aria-label": unref(t)("el.pagination.page"),
|
|
50
|
-
type: "number",
|
|
51
|
-
"onUpdate:modelValue": handleInput,
|
|
52
|
-
onChange: handleChange
|
|
53
|
-
}, null, 8, ["size", "class", "max", "disabled", "model-value", "aria-label"]),
|
|
54
|
-
createElementVNode("span", {
|
|
55
|
-
class: normalizeClass([unref(ns).e("classifier")])
|
|
56
|
-
}, toDisplayString(unref(t)("el.pagination.pageClassifier")), 3)
|
|
57
|
-
], 10, ["disabled"]);
|
|
58
|
-
};
|
|
6
|
+
const paginationJumperProps = buildProps({
|
|
7
|
+
size: {
|
|
8
|
+
type: String,
|
|
9
|
+
values: componentSizes
|
|
59
10
|
}
|
|
60
11
|
});
|
|
61
|
-
var Jumper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "jumper.vue"]]);
|
|
62
12
|
|
|
63
|
-
export {
|
|
13
|
+
export { paginationJumperProps };
|
|
64
14
|
//# sourceMappingURL=jumper2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jumper2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/jumper.
|
|
1
|
+
{"version":3,"file":"jumper2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/jumper.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type Jumper from './jumper.vue'\n\nexport const paginationJumperProps = buildProps({\n size: {\n type: String,\n values: componentSizes,\n },\n} as const)\n\nexport type PaginationJumperProps = ExtractPropTypes<\n typeof paginationJumperProps\n>\n\nexport type PaginationJumperInstance = InstanceType<typeof Jumper>\n"],"names":[],"mappings":";;;;;AAEY,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,GAAG;AACH,CAAC;;;;"}
|
|
@@ -1,24 +1,41 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, unref, toDisplayString, createBlock, withCtx, resolveDynamicComponent } from 'vue';
|
|
2
|
+
import '../../../../hooks/index.mjs';
|
|
3
|
+
import { ElIcon } from '../../../icon/index.mjs';
|
|
4
|
+
import { paginationNextProps } from './next2.mjs';
|
|
5
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
|
6
|
+
import { useLocale } from '../../../../hooks/use-locale/index.mjs';
|
|
4
7
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
const __default__ = defineComponent({
|
|
9
|
+
name: "ElPaginationNext"
|
|
10
|
+
});
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
...__default__,
|
|
13
|
+
props: paginationNextProps,
|
|
14
|
+
emits: ["click"],
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const { t } = useLocale();
|
|
18
|
+
const internalDisabled = computed(() => props.disabled || props.currentPage === props.pageCount || props.pageCount === 0);
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return openBlock(), createElementBlock("button", {
|
|
21
|
+
type: "button",
|
|
22
|
+
class: "btn-next",
|
|
23
|
+
disabled: unref(internalDisabled),
|
|
24
|
+
"aria-label": _ctx.nextText || unref(t)("el.pagination.next"),
|
|
25
|
+
"aria-disabled": unref(internalDisabled),
|
|
26
|
+
onClick: ($event) => _ctx.$emit("click", $event)
|
|
27
|
+
}, [
|
|
28
|
+
_ctx.nextText ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.nextText), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
|
|
29
|
+
default: withCtx(() => [
|
|
30
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.nextIcon)))
|
|
31
|
+
]),
|
|
32
|
+
_: 1
|
|
33
|
+
}))
|
|
34
|
+
], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
|
|
35
|
+
};
|
|
20
36
|
}
|
|
21
37
|
});
|
|
38
|
+
var Next = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "next.vue"]]);
|
|
22
39
|
|
|
23
|
-
export {
|
|
40
|
+
export { Next as default };
|
|
24
41
|
//# sourceMappingURL=next.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.mjs","sources":["../../../../../../../packages/components/pagination/src/components/next.
|
|
1
|
+
{"version":3,"file":"next.mjs","sources":["../../../../../../../packages/components/pagination/src/components/next.vue"],"sourcesContent":["<template>\n <button\n type=\"button\"\n class=\"btn-next\"\n :disabled=\"internalDisabled\"\n :aria-label=\"nextText || t('el.pagination.next')\"\n :aria-disabled=\"internalDisabled\"\n @click=\"$emit('click', $event)\"\n >\n <span v-if=\"nextText\">{{ nextText }}</span>\n <el-icon v-else>\n <component :is=\"nextIcon\" />\n </el-icon>\n </button>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useLocale } from '@element-plus/hooks'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { paginationNextProps } from './next'\n\ndefineOptions({\n name: 'ElPaginationNext',\n})\n\nconst props = defineProps(paginationNextProps)\n\ndefineEmits(['click'])\n\nconst { t } = useLocale()\n\nconst internalDisabled = computed(\n () =>\n props.disabled ||\n props.currentPage === props.pageCount ||\n props.pageCount === 0\n)\n</script>\n"],"names":["_openBlock","_createElementBlock"],"mappings":";;;;;;;mCAsBc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAMA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AAExB,IAAA,MAAM,gBAAmB,GAAA,QAAA,CAAA,MAAA,KAAA,CAAA,QAAA,IAAA,KAAA,CAAA,WAAA,KAAA,KAAA,CAAA,SAAA,IAAA,KAAA,CAAA,SAAA,KAAA,CAAA,CAAA,CAAA;AAAA,IACvB,OAAA,CACE,MAAM,MACN,KAAA;AACoB,MACxB,OAAAA,SAAA,EAAA,EAAAC,kBAAA,CAAA,QAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,41 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '../../../../
|
|
3
|
-
import {
|
|
4
|
-
import { paginationNextProps } from './next.mjs';
|
|
5
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
|
6
|
-
import { useLocale } from '../../../../hooks/use-locale/index.mjs';
|
|
1
|
+
import '../../../../utils/index.mjs';
|
|
2
|
+
import { buildProps } from '../../../../utils/vue/props/runtime.mjs';
|
|
3
|
+
import { iconPropType } from '../../../../utils/vue/icon.mjs';
|
|
7
4
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
disabled: unref(internalDisabled),
|
|
24
|
-
"aria-label": _ctx.nextText || unref(t)("el.pagination.next"),
|
|
25
|
-
"aria-disabled": unref(internalDisabled),
|
|
26
|
-
onClick: ($event) => _ctx.$emit("click", $event)
|
|
27
|
-
}, [
|
|
28
|
-
_ctx.nextText ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.nextText), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
|
|
29
|
-
default: withCtx(() => [
|
|
30
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.nextIcon)))
|
|
31
|
-
]),
|
|
32
|
-
_: 1
|
|
33
|
-
}))
|
|
34
|
-
], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
|
|
35
|
-
};
|
|
5
|
+
const paginationNextProps = buildProps({
|
|
6
|
+
disabled: Boolean,
|
|
7
|
+
currentPage: {
|
|
8
|
+
type: Number,
|
|
9
|
+
default: 1
|
|
10
|
+
},
|
|
11
|
+
pageCount: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 50
|
|
14
|
+
},
|
|
15
|
+
nextText: {
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
nextIcon: {
|
|
19
|
+
type: iconPropType
|
|
36
20
|
}
|
|
37
21
|
});
|
|
38
|
-
var Next = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "next.vue"]]);
|
|
39
22
|
|
|
40
|
-
export {
|
|
23
|
+
export { paginationNextProps };
|
|
41
24
|
//# sourceMappingURL=next2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/next.
|
|
1
|
+
{"version":3,"file":"next2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/next.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Next from './next.vue'\n\nexport const paginationNextProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n default: 50,\n },\n nextText: {\n type: String,\n },\n nextIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport type PaginationNextProps = ExtractPropTypes<typeof paginationNextProps>\n\nexport type NextInstance = InstanceType<typeof Next>\n"],"names":[],"mappings":";;;;AACY,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -4,9 +4,9 @@ import '../../../utils/index.mjs';
|
|
|
4
4
|
import '../../../hooks/index.mjs';
|
|
5
5
|
import { elPaginationKey } from './constants.mjs';
|
|
6
6
|
import Prev from './components/prev2.mjs';
|
|
7
|
-
import Next from './components/
|
|
7
|
+
import Next from './components/next.mjs';
|
|
8
8
|
import Sizes from './components/sizes2.mjs';
|
|
9
|
-
import Jumper from './components/
|
|
9
|
+
import Jumper from './components/jumper.mjs';
|
|
10
10
|
import Total from './components/total2.mjs';
|
|
11
11
|
import Pager from './components/pager2.mjs';
|
|
12
12
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
@@ -2,10 +2,10 @@ import '../../utils/index.mjs';
|
|
|
2
2
|
import Popper from './src/popper2.mjs';
|
|
3
3
|
export { default as ElPopperArrow } from './src/arrow2.mjs';
|
|
4
4
|
export { default as ElPopperTrigger } from './src/trigger2.mjs';
|
|
5
|
-
export { default as ElPopperContent } from './src/
|
|
5
|
+
export { default as ElPopperContent } from './src/content.mjs';
|
|
6
6
|
export { Effect, popperProps, roleTypes, usePopperProps } from './src/popper.mjs';
|
|
7
7
|
export { popperTriggerProps, usePopperTriggerProps } from './src/trigger.mjs';
|
|
8
|
-
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './src/
|
|
8
|
+
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './src/content2.mjs';
|
|
9
9
|
export { popperArrowProps, usePopperArrowProps } from './src/arrow.mjs';
|
|
10
10
|
export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './src/constants.mjs';
|
|
11
11
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
@@ -1,99 +1,143 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, inject, ref, provide, onMounted, watch, unref, onBeforeUnmount, openBlock, createElementBlock, mergeProps, createVNode, withCtx, renderSlot } from 'vue';
|
|
2
|
+
import { isNil } from 'lodash-unified';
|
|
2
3
|
import '../../../utils/index.mjs';
|
|
3
|
-
import '
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
4
|
+
import '../../focus-trap/index.mjs';
|
|
5
|
+
import '../../form/index.mjs';
|
|
6
|
+
import { POPPER_CONTENT_INJECTION_KEY } from './constants.mjs';
|
|
7
|
+
import { popperContentProps, popperContentEmits } from './content2.mjs';
|
|
8
|
+
import './composables/index.mjs';
|
|
9
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
10
|
+
import { usePopperContentFocusTrap } from './composables/use-focus-trap.mjs';
|
|
11
|
+
import { usePopperContent } from './composables/use-content.mjs';
|
|
12
|
+
import { usePopperContentDOM } from './composables/use-content-dom.mjs';
|
|
13
|
+
import { formItemContextKey } from '../../form/src/constants.mjs';
|
|
14
|
+
import { NOOP } from '@vue/shared';
|
|
15
|
+
import { isElement } from '../../../utils/types.mjs';
|
|
16
|
+
import ElFocusTrap from '../../focus-trap/src/focus-trap.mjs';
|
|
6
17
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
boundariesPadding: {
|
|
10
|
-
type: Number,
|
|
11
|
-
default: 0
|
|
12
|
-
},
|
|
13
|
-
fallbackPlacements: {
|
|
14
|
-
type: definePropType(Array),
|
|
15
|
-
default: void 0
|
|
16
|
-
},
|
|
17
|
-
gpuAcceleration: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: true
|
|
20
|
-
},
|
|
21
|
-
offset: {
|
|
22
|
-
type: Number,
|
|
23
|
-
default: 12
|
|
24
|
-
},
|
|
25
|
-
placement: {
|
|
26
|
-
type: String,
|
|
27
|
-
values: placements,
|
|
28
|
-
default: "bottom"
|
|
29
|
-
},
|
|
30
|
-
popperOptions: {
|
|
31
|
-
type: definePropType(Object),
|
|
32
|
-
default: () => ({})
|
|
33
|
-
},
|
|
34
|
-
strategy: {
|
|
35
|
-
type: String,
|
|
36
|
-
values: POSITIONING_STRATEGIES,
|
|
37
|
-
default: "absolute"
|
|
38
|
-
}
|
|
18
|
+
const __default__ = defineComponent({
|
|
19
|
+
name: "ElPopperContent"
|
|
39
20
|
});
|
|
40
|
-
const
|
|
41
|
-
...
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
|
+
...__default__,
|
|
23
|
+
props: popperContentProps,
|
|
24
|
+
emits: popperContentEmits,
|
|
25
|
+
setup(__props, { expose, emit }) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const {
|
|
28
|
+
focusStartRef,
|
|
29
|
+
trapped,
|
|
30
|
+
onFocusAfterReleased,
|
|
31
|
+
onFocusAfterTrapped,
|
|
32
|
+
onFocusInTrap,
|
|
33
|
+
onFocusoutPrevented,
|
|
34
|
+
onReleaseRequested
|
|
35
|
+
} = usePopperContentFocusTrap(props, emit);
|
|
36
|
+
const { attributes, arrowRef, contentRef, styles, instanceRef, role, update } = usePopperContent(props);
|
|
37
|
+
const {
|
|
38
|
+
ariaModal,
|
|
39
|
+
arrowStyle,
|
|
40
|
+
contentAttrs,
|
|
41
|
+
contentClass,
|
|
42
|
+
contentStyle,
|
|
43
|
+
updateZIndex
|
|
44
|
+
} = usePopperContentDOM(props, {
|
|
45
|
+
styles,
|
|
46
|
+
attributes,
|
|
47
|
+
role
|
|
48
|
+
});
|
|
49
|
+
const formItemContext = inject(formItemContextKey, void 0);
|
|
50
|
+
const arrowOffset = ref();
|
|
51
|
+
provide(POPPER_CONTENT_INJECTION_KEY, {
|
|
52
|
+
arrowStyle,
|
|
53
|
+
arrowRef,
|
|
54
|
+
arrowOffset
|
|
55
|
+
});
|
|
56
|
+
if (formItemContext) {
|
|
57
|
+
provide(formItemContextKey, {
|
|
58
|
+
...formItemContext,
|
|
59
|
+
addInputId: NOOP,
|
|
60
|
+
removeInputId: NOOP
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
let triggerTargetAriaStopWatch = void 0;
|
|
64
|
+
const updatePopper = (shouldUpdateZIndex = true) => {
|
|
65
|
+
update();
|
|
66
|
+
shouldUpdateZIndex && updateZIndex();
|
|
67
|
+
};
|
|
68
|
+
const togglePopperAlive = () => {
|
|
69
|
+
updatePopper(false);
|
|
70
|
+
if (props.visible && props.focusOnShow) {
|
|
71
|
+
trapped.value = true;
|
|
72
|
+
} else if (props.visible === false) {
|
|
73
|
+
trapped.value = false;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
onMounted(() => {
|
|
77
|
+
watch(() => props.triggerTargetEl, (triggerTargetEl, prevTriggerTargetEl) => {
|
|
78
|
+
triggerTargetAriaStopWatch == null ? void 0 : triggerTargetAriaStopWatch();
|
|
79
|
+
triggerTargetAriaStopWatch = void 0;
|
|
80
|
+
const el = unref(triggerTargetEl || contentRef.value);
|
|
81
|
+
const prevEl = unref(prevTriggerTargetEl || contentRef.value);
|
|
82
|
+
if (isElement(el)) {
|
|
83
|
+
triggerTargetAriaStopWatch = watch([role, () => props.ariaLabel, ariaModal, () => props.id], (watches) => {
|
|
84
|
+
;
|
|
85
|
+
["role", "aria-label", "aria-modal", "id"].forEach((key, idx) => {
|
|
86
|
+
isNil(watches[idx]) ? el.removeAttribute(key) : el.setAttribute(key, watches[idx]);
|
|
87
|
+
});
|
|
88
|
+
}, { immediate: true });
|
|
89
|
+
}
|
|
90
|
+
if (prevEl !== el && isElement(prevEl)) {
|
|
91
|
+
;
|
|
92
|
+
["role", "aria-label", "aria-modal", "id"].forEach((key) => {
|
|
93
|
+
prevEl.removeAttribute(key);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}, { immediate: true });
|
|
97
|
+
watch(() => props.visible, togglePopperAlive, { immediate: true });
|
|
98
|
+
});
|
|
99
|
+
onBeforeUnmount(() => {
|
|
100
|
+
triggerTargetAriaStopWatch == null ? void 0 : triggerTargetAriaStopWatch();
|
|
101
|
+
triggerTargetAriaStopWatch = void 0;
|
|
102
|
+
});
|
|
103
|
+
expose({
|
|
104
|
+
popperContentRef: contentRef,
|
|
105
|
+
popperInstanceRef: instanceRef,
|
|
106
|
+
updatePopper,
|
|
107
|
+
contentStyle
|
|
108
|
+
});
|
|
109
|
+
return (_ctx, _cache) => {
|
|
110
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
111
|
+
ref_key: "contentRef",
|
|
112
|
+
ref: contentRef
|
|
113
|
+
}, unref(contentAttrs), {
|
|
114
|
+
style: unref(contentStyle),
|
|
115
|
+
class: unref(contentClass),
|
|
116
|
+
tabindex: "-1",
|
|
117
|
+
onMouseenter: (e) => _ctx.$emit("mouseenter", e),
|
|
118
|
+
onMouseleave: (e) => _ctx.$emit("mouseleave", e)
|
|
119
|
+
}), [
|
|
120
|
+
createVNode(unref(ElFocusTrap), {
|
|
121
|
+
trapped: unref(trapped),
|
|
122
|
+
"trap-on-focus-in": true,
|
|
123
|
+
"focus-trap-el": unref(contentRef),
|
|
124
|
+
"focus-start-el": unref(focusStartRef),
|
|
125
|
+
onFocusAfterTrapped: unref(onFocusAfterTrapped),
|
|
126
|
+
onFocusAfterReleased: unref(onFocusAfterReleased),
|
|
127
|
+
onFocusin: unref(onFocusInTrap),
|
|
128
|
+
onFocusoutPrevented: unref(onFocusoutPrevented),
|
|
129
|
+
onReleaseRequested: unref(onReleaseRequested)
|
|
130
|
+
}, {
|
|
131
|
+
default: withCtx(() => [
|
|
132
|
+
renderSlot(_ctx.$slots, "default")
|
|
133
|
+
]),
|
|
134
|
+
_: 3
|
|
135
|
+
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
|
|
136
|
+
], 16, ["onMouseenter", "onMouseleave"]);
|
|
137
|
+
};
|
|
138
|
+
}
|
|
86
139
|
});
|
|
87
|
-
|
|
88
|
-
mouseenter: (evt) => evt instanceof MouseEvent,
|
|
89
|
-
mouseleave: (evt) => evt instanceof MouseEvent,
|
|
90
|
-
focus: () => true,
|
|
91
|
-
blur: () => true,
|
|
92
|
-
close: () => true
|
|
93
|
-
};
|
|
94
|
-
const usePopperCoreConfigProps = popperCoreConfigProps;
|
|
95
|
-
const usePopperContentProps = popperContentProps;
|
|
96
|
-
const usePopperContentEmits = popperContentEmits;
|
|
140
|
+
var ElPopperContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "content.vue"]]);
|
|
97
141
|
|
|
98
|
-
export {
|
|
142
|
+
export { ElPopperContent as default };
|
|
99
143
|
//# sourceMappingURL=content.mjs.map
|