@element-plus/nightly 0.0.20241228 → 0.0.20241230
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.full.js +5 -3
- package/dist/index.full.min.js +10 -10
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +10 -10
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +5 -3
- 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/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/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/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +25 -118
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +118 -25
- package/es/components/affix/src/affix2.mjs.map +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/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +42 -20
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +20 -42
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/check-tag/index.mjs +2 -2
- package/es/components/check-tag/src/check-tag.mjs +14 -38
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +38 -14
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/checkbox/index.mjs +2 -2
- package/es/components/checkbox/src/checkbox-group.mjs +71 -29
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group2.mjs +29 -71
- package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
- package/es/components/index.mjs +19 -19
- package/es/components/link/index.mjs +2 -2
- package/es/components/link/src/link.mjs +24 -49
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link2.mjs +49 -24
- package/es/components/link/src/link2.mjs.map +1 -1
- package/es/components/pagination/src/components/next.mjs +35 -18
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +18 -35
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- 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 +2 -2
- package/es/components/popover/index.mjs +2 -2
- package/es/components/popover/src/popover.mjs +110 -64
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover2.mjs +64 -110
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/arrow.mjs +7 -36
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +36 -7
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +5 -65
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +65 -5
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +83 -258
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +258 -83
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +2 -2
- package/es/components/scrollbar/src/bar.mjs +64 -10
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar2.mjs +10 -64
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.mjs +55 -170
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +170 -55
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/segmented/index.mjs +2 -2
- package/es/components/segmented/src/segmented.mjs +167 -33
- package/es/components/segmented/src/segmented.mjs.map +1 -1
- package/es/components/segmented/src/segmented2.mjs +33 -167
- package/es/components/segmented/src/segmented2.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton-item.mjs +17 -22
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +22 -17
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +1 -1
- package/es/components/slider/index.mjs +2 -2
- package/es/components/slider/src/button.mjs +19 -89
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +89 -19
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider.mjs +238 -88
- package/es/components/slider/src/slider.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +88 -238
- package/es/components/slider/src/slider2.mjs.map +1 -1
- package/es/components/table/src/table-body/events-helper.mjs +4 -2
- package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +36 -21
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +21 -36
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/time-select/index.mjs +2 -2
- package/es/components/time-select/src/time-select.mjs +123 -50
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select2.mjs +50 -123
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tooltip-v2/index.mjs +5 -5
- package/es/components/tooltip-v2/src/content.mjs +48 -110
- package/es/components/tooltip-v2/src/content.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content2.mjs +110 -48
- package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root.mjs +79 -17
- package/es/components/tooltip-v2/src/root.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root2.mjs +17 -79
- package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +78 -20
- package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +20 -78
- package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/trigger.mjs +89 -12
- package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
- package/es/components/tooltip-v2/src/trigger2.mjs +12 -89
- package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
- package/es/components/tour/index.mjs +1 -1
- package/es/components/tour/src/content.mjs +67 -43
- package/es/components/tour/src/content.mjs.map +1 -1
- package/es/components/tour/src/content2.mjs +43 -67
- package/es/components/tour/src/content2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +1 -1
- package/es/components/tour/src/tour.mjs +1 -1
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/upload/index.mjs +2 -2
- package/es/components/upload/src/upload-content.mjs +33 -196
- package/es/components/upload/src/upload-content.mjs.map +1 -1
- package/es/components/upload/src/upload-content2.mjs +196 -33
- package/es/components/upload/src/upload-content2.mjs.map +1 -1
- package/es/components/upload/src/upload-list.mjs +28 -173
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list2.mjs +173 -28
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +2 -2
- package/es/directives/click-outside/index.mjs +1 -1
- package/es/hooks/use-focus-controller/index.mjs +1 -1
- package/es/hooks/use-lockscreen/index.mjs +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/affix/index.js +2 -2
- package/lib/components/affix/src/affix.js +26 -118
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +118 -26
- package/lib/components/affix/src/affix2.js.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/card/index.js +2 -2
- package/lib/components/card/src/card.js +42 -20
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +20 -42
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/check-tag/index.js +2 -2
- package/lib/components/check-tag/src/check-tag.js +15 -38
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +38 -15
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/checkbox/index.js +2 -2
- package/lib/components/checkbox/src/checkbox-group.js +71 -30
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group2.js +30 -71
- package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
- package/lib/components/index.js +19 -19
- package/lib/components/link/index.js +2 -2
- package/lib/components/link/src/link.js +25 -49
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link2.js +49 -25
- package/lib/components/link/src/link2.js.map +1 -1
- package/lib/components/pagination/src/components/next.js +35 -18
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +18 -35
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- 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 +2 -2
- package/lib/components/popover/index.js +2 -2
- package/lib/components/popover/src/popover.js +110 -65
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover2.js +65 -110
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/arrow.js +8 -36
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +36 -8
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +5 -65
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +65 -5
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +83 -257
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +257 -83
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/src/bar.js +64 -10
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar2.js +10 -64
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.js +56 -170
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +170 -56
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/segmented/index.js +2 -2
- package/lib/components/segmented/src/segmented.js +167 -34
- package/lib/components/segmented/src/segmented.js.map +1 -1
- package/lib/components/segmented/src/segmented2.js +34 -167
- package/lib/components/segmented/src/segmented2.js.map +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton-item.js +17 -22
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +22 -17
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +1 -1
- package/lib/components/slider/index.js +2 -2
- package/lib/components/slider/src/button.js +20 -89
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +89 -20
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider.js +238 -89
- package/lib/components/slider/src/slider.js.map +1 -1
- package/lib/components/slider/src/slider2.js +89 -238
- package/lib/components/slider/src/slider2.js.map +1 -1
- package/lib/components/table/src/table-body/events-helper.js +3 -1
- package/lib/components/table/src/table-body/events-helper.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +36 -21
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +21 -36
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/time-select/index.js +2 -2
- package/lib/components/time-select/src/time-select.js +128 -50
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select2.js +50 -128
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tooltip-v2/index.js +5 -5
- package/lib/components/tooltip-v2/src/content.js +48 -110
- package/lib/components/tooltip-v2/src/content.js.map +1 -1
- package/lib/components/tooltip-v2/src/content2.js +110 -48
- package/lib/components/tooltip-v2/src/content2.js.map +1 -1
- package/lib/components/tooltip-v2/src/root.js +79 -17
- package/lib/components/tooltip-v2/src/root.js.map +1 -1
- package/lib/components/tooltip-v2/src/root2.js +17 -79
- package/lib/components/tooltip-v2/src/root2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +78 -20
- package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +20 -78
- package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip-v2/src/trigger.js +89 -12
- package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
- package/lib/components/tooltip-v2/src/trigger2.js +12 -89
- package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
- package/lib/components/tour/index.js +1 -1
- package/lib/components/tour/src/content.js +67 -46
- package/lib/components/tour/src/content.js.map +1 -1
- package/lib/components/tour/src/content2.js +46 -67
- package/lib/components/tour/src/content2.js.map +1 -1
- package/lib/components/tour/src/step.js +1 -1
- package/lib/components/tour/src/tour.js +1 -1
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upload/src/upload-content.js +31 -194
- package/lib/components/upload/src/upload-content.js.map +1 -1
- package/lib/components/upload/src/upload-content2.js +194 -31
- package/lib/components/upload/src/upload-content2.js.map +1 -1
- package/lib/components/upload/src/upload-list.js +29 -173
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list2.js +173 -29
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +2 -2
- package/lib/directives/click-outside/index.js +1 -1
- package/lib/hooks/use-focus-controller/index.js +1 -1
- package/lib/hooks/use-lockscreen/index.js +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
@@ -1,23 +1,40 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, unref, toDisplayString, createBlock, withCtx, resolveDynamicComponent } from 'vue';
|
2
|
+
import { ElIcon } from '../../../icon/index.mjs';
|
3
|
+
import { paginationNextProps } from './next2.mjs';
|
4
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
5
|
+
import { useLocale } from '../../../../hooks/use-locale/index.mjs';
|
3
6
|
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
7
|
+
const __default__ = defineComponent({
|
8
|
+
name: "ElPaginationNext"
|
9
|
+
});
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
|
+
...__default__,
|
12
|
+
props: paginationNextProps,
|
13
|
+
emits: ["click"],
|
14
|
+
setup(__props) {
|
15
|
+
const props = __props;
|
16
|
+
const { t } = useLocale();
|
17
|
+
const internalDisabled = computed(() => props.disabled || props.currentPage === props.pageCount || props.pageCount === 0);
|
18
|
+
return (_ctx, _cache) => {
|
19
|
+
return openBlock(), createElementBlock("button", {
|
20
|
+
type: "button",
|
21
|
+
class: "btn-next",
|
22
|
+
disabled: unref(internalDisabled),
|
23
|
+
"aria-label": _ctx.nextText || unref(t)("el.pagination.next"),
|
24
|
+
"aria-disabled": unref(internalDisabled),
|
25
|
+
onClick: ($event) => _ctx.$emit("click", $event)
|
26
|
+
}, [
|
27
|
+
_ctx.nextText ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.nextText), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
|
28
|
+
default: withCtx(() => [
|
29
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.nextIcon)))
|
30
|
+
]),
|
31
|
+
_: 1
|
32
|
+
}))
|
33
|
+
], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
|
34
|
+
};
|
19
35
|
}
|
20
36
|
});
|
37
|
+
var Next = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "next.vue"]]);
|
21
38
|
|
22
|
-
export {
|
39
|
+
export { Next as default };
|
23
40
|
//# 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,40 +1,23 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { paginationNextProps } from './next.mjs';
|
4
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
5
|
-
import { useLocale } from '../../../../hooks/use-locale/index.mjs';
|
1
|
+
import { buildProps } from '../../../../utils/vue/props/runtime.mjs';
|
2
|
+
import { iconPropType } from '../../../../utils/vue/icon.mjs';
|
6
3
|
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
disabled: unref(internalDisabled),
|
23
|
-
"aria-label": _ctx.nextText || unref(t)("el.pagination.next"),
|
24
|
-
"aria-disabled": unref(internalDisabled),
|
25
|
-
onClick: ($event) => _ctx.$emit("click", $event)
|
26
|
-
}, [
|
27
|
-
_ctx.nextText ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.nextText), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
|
28
|
-
default: withCtx(() => [
|
29
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.nextIcon)))
|
30
|
-
]),
|
31
|
-
_: 1
|
32
|
-
}))
|
33
|
-
], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
|
34
|
-
};
|
4
|
+
const paginationNextProps = buildProps({
|
5
|
+
disabled: Boolean,
|
6
|
+
currentPage: {
|
7
|
+
type: Number,
|
8
|
+
default: 1
|
9
|
+
},
|
10
|
+
pageCount: {
|
11
|
+
type: Number,
|
12
|
+
default: 50
|
13
|
+
},
|
14
|
+
nextText: {
|
15
|
+
type: String
|
16
|
+
},
|
17
|
+
nextIcon: {
|
18
|
+
type: iconPropType
|
35
19
|
}
|
36
20
|
});
|
37
|
-
var Next = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "next.vue"]]);
|
38
21
|
|
39
|
-
export {
|
22
|
+
export { paginationNextProps };
|
40
23
|
//# 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;;;;"}
|
@@ -1,27 +1,75 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
1
|
+
import { defineComponent, ref, watch, computed, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, Fragment, renderList, createBlock } from 'vue';
|
2
|
+
import { isEqual } from 'lodash-unified';
|
3
|
+
import { ElSelect, ElOption } from '../../../select/index.mjs';
|
4
|
+
import { usePagination } from '../usePagination.mjs';
|
5
|
+
import { paginationSizesProps } from './sizes2.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';
|
9
|
+
import { isArray } from '@vue/shared';
|
4
10
|
|
5
|
-
const
|
6
|
-
|
7
|
-
type: Number,
|
8
|
-
required: true
|
9
|
-
},
|
10
|
-
pageSizes: {
|
11
|
-
type: definePropType(Array),
|
12
|
-
default: () => mutable([10, 20, 30, 40, 50, 100])
|
13
|
-
},
|
14
|
-
popperClass: {
|
15
|
-
type: String
|
16
|
-
},
|
17
|
-
disabled: Boolean,
|
18
|
-
teleported: Boolean,
|
19
|
-
size: {
|
20
|
-
type: String,
|
21
|
-
values: componentSizes
|
22
|
-
},
|
23
|
-
appendSizeTo: String
|
11
|
+
const __default__ = defineComponent({
|
12
|
+
name: "ElPaginationSizes"
|
24
13
|
});
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
15
|
+
...__default__,
|
16
|
+
props: paginationSizesProps,
|
17
|
+
emits: ["page-size-change"],
|
18
|
+
setup(__props, { emit }) {
|
19
|
+
const props = __props;
|
20
|
+
const { t } = useLocale();
|
21
|
+
const ns = useNamespace("pagination");
|
22
|
+
const pagination = usePagination();
|
23
|
+
const innerPageSize = ref(props.pageSize);
|
24
|
+
watch(() => props.pageSizes, (newVal, oldVal) => {
|
25
|
+
if (isEqual(newVal, oldVal))
|
26
|
+
return;
|
27
|
+
if (isArray(newVal)) {
|
28
|
+
const pageSize = newVal.includes(props.pageSize) ? props.pageSize : props.pageSizes[0];
|
29
|
+
emit("page-size-change", pageSize);
|
30
|
+
}
|
31
|
+
});
|
32
|
+
watch(() => props.pageSize, (newVal) => {
|
33
|
+
innerPageSize.value = newVal;
|
34
|
+
});
|
35
|
+
const innerPageSizes = computed(() => props.pageSizes);
|
36
|
+
function handleChange(val) {
|
37
|
+
var _a;
|
38
|
+
if (val !== innerPageSize.value) {
|
39
|
+
innerPageSize.value = val;
|
40
|
+
(_a = pagination.handleSizeChange) == null ? void 0 : _a.call(pagination, Number(val));
|
41
|
+
}
|
42
|
+
}
|
43
|
+
return (_ctx, _cache) => {
|
44
|
+
return openBlock(), createElementBlock("span", {
|
45
|
+
class: normalizeClass(unref(ns).e("sizes"))
|
46
|
+
}, [
|
47
|
+
createVNode(unref(ElSelect), {
|
48
|
+
"model-value": innerPageSize.value,
|
49
|
+
disabled: _ctx.disabled,
|
50
|
+
"popper-class": _ctx.popperClass,
|
51
|
+
size: _ctx.size,
|
52
|
+
teleported: _ctx.teleported,
|
53
|
+
"validate-event": false,
|
54
|
+
"append-to": _ctx.appendSizeTo,
|
55
|
+
onChange: handleChange
|
56
|
+
}, {
|
57
|
+
default: withCtx(() => [
|
58
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(innerPageSizes), (item) => {
|
59
|
+
return openBlock(), createBlock(unref(ElOption), {
|
60
|
+
key: item,
|
61
|
+
value: item,
|
62
|
+
label: item + unref(t)("el.pagination.pagesize")
|
63
|
+
}, null, 8, ["value", "label"]);
|
64
|
+
}), 128))
|
65
|
+
]),
|
66
|
+
_: 1
|
67
|
+
}, 8, ["model-value", "disabled", "popper-class", "size", "teleported", "append-to"])
|
68
|
+
], 2);
|
69
|
+
};
|
70
|
+
}
|
71
|
+
});
|
72
|
+
var Sizes = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "sizes.vue"]]);
|
25
73
|
|
26
|
-
export {
|
74
|
+
export { Sizes as default };
|
27
75
|
//# sourceMappingURL=sizes.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sizes.mjs","sources":["../../../../../../../packages/components/pagination/src/components/sizes.
|
1
|
+
{"version":3,"file":"sizes.mjs","sources":["../../../../../../../packages/components/pagination/src/components/sizes.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('sizes')\">\n <el-select\n :model-value=\"innerPageSize\"\n :disabled=\"disabled\"\n :popper-class=\"popperClass\"\n :size=\"size\"\n :teleported=\"teleported\"\n :validate-event=\"false\"\n :append-to=\"appendSizeTo\"\n @change=\"handleChange\"\n >\n <el-option\n v-for=\"item in innerPageSizes\"\n :key=\"item\"\n :value=\"item\"\n :label=\"item + t('el.pagination.pagesize')\"\n />\n </el-select>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, watch } from 'vue'\nimport { isEqual } from 'lodash-unified'\nimport { ElOption, ElSelect } from '@element-plus/components/select'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { isArray } from '@element-plus/utils'\nimport { usePagination } from '../usePagination'\nimport { paginationSizesProps } from './sizes'\n\ndefineOptions({\n name: 'ElPaginationSizes',\n})\n\nconst props = defineProps(paginationSizesProps)\nconst emit = defineEmits(['page-size-change'])\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst pagination = usePagination()\nconst innerPageSize = ref<number>(props.pageSize!)\n\nwatch(\n () => props.pageSizes,\n (newVal, oldVal) => {\n if (isEqual(newVal, oldVal)) return\n if (isArray(newVal)) {\n const pageSize = newVal.includes(props.pageSize!)\n ? props.pageSize\n : props.pageSizes[0]\n emit('page-size-change', pageSize)\n }\n }\n)\n\nwatch(\n () => props.pageSize,\n (newVal) => {\n innerPageSize.value = newVal!\n }\n)\n\nconst innerPageSizes = computed(() => props.pageSizes)\nfunction handleChange(val: number) {\n if (val !== innerPageSize.value) {\n innerPageSize.value = val\n pagination.handleSizeChange?.(Number(val))\n }\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref"],"mappings":";;;;;;;;;;mCA+Bc,CAAA;AAAA,EACZ,IAAM,EAAA,mBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAa,aAAc,EAAA,CAAA;AACjC,IAAM,MAAA,aAAA,GAAgB,GAAY,CAAA,KAAA,CAAM,QAAS,CAAA,CAAA;AAEjD,IAAA,KAAA,CAAA,MAAA,KAAA,CAAA,SAAA,EAAA,CAAA,MAAA,EAAA,MAAA,KAAA;AAAA,MACE,WAAY,CAAA,MAAA,EAAA,MAAA,CAAA;AAAA,eACH;AACP,MAAI,IAAA,OAAA,CAAA,MAAgB,CAAA,EAAA;AACpB,QAAI,MAAA,iBAAiB,CAAA,QAAA,CAAA,KAAA,CAAA,QAAA,CAAA,GAAA,KAAA,CAAA,QAAA,GAAA,KAAA,CAAA,SAAA,CAAA,CAAA,CAAA,CAAA;AACnB,QAAM,IAAA,CAAA,kBAAkB,EAAA,QAAA,CAAA,CAAS;AAGjC,OAAA;AAAiC,KACnC,CAAA,CAAA;AAAA,IACF,KAAA,CAAA,MAAA,KAAA,CAAA,QAAA,EAAA,CAAA,MAAA,KAAA;AAAA,MACF,aAAA,CAAA,KAAA,GAAA,MAAA,CAAA;AAEA,KAAA,CAAA,CAAA;AAAA,IAAA,oBACc,GAAA,QAAA,CAAA,MAAA,KAAA,CAAA,SAAA,CAAA,CAAA;AAAA,IAAA,SACA,YAAA,CAAA,GAAA,EAAA;AACV,MAAA,IAAA,EAAA,CAAA;AAAsB,MACxB,IAAA,GAAA,KAAA,aAAA,CAAA,KAAA,EAAA;AAAA,QACF,aAAA,CAAA,KAAA,GAAA,GAAA,CAAA;AAEA,QAAA,CAAA,EAAuB,GAAA,UAAA,CAAA,gBAAe,KAAA,IAAe,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,UAAA,EAAA,MAAA,CAAA,GAAA,CAAA,CAAA,CAAA;AACrD,OAAA;AACE,KAAI;AACF,IAAA,OAAA,CAAA,IAAA,EAAA,MAAsB,KAAA;AACtB,MAAW,OAAAA,SAAA,EAAA,EAAAC,kBAA0B,CAAA,MAAI,EAAA;AAAA,QAC3C,KAAA,EAAAC,cAAA,CAAAC,KAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA;AAAA,OACF,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,75 +1,27 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import { usePagination } from '../usePagination.mjs';
|
5
|
-
import { paginationSizesProps } from './sizes.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';
|
9
|
-
import { isArray } from '@vue/shared';
|
1
|
+
import { buildProps, definePropType } from '../../../../utils/vue/props/runtime.mjs';
|
2
|
+
import { mutable } from '../../../../utils/typescript.mjs';
|
3
|
+
import { componentSizes } from '../../../../constants/size.mjs';
|
10
4
|
|
11
|
-
const
|
12
|
-
|
5
|
+
const paginationSizesProps = buildProps({
|
6
|
+
pageSize: {
|
7
|
+
type: Number,
|
8
|
+
required: true
|
9
|
+
},
|
10
|
+
pageSizes: {
|
11
|
+
type: definePropType(Array),
|
12
|
+
default: () => mutable([10, 20, 30, 40, 50, 100])
|
13
|
+
},
|
14
|
+
popperClass: {
|
15
|
+
type: String
|
16
|
+
},
|
17
|
+
disabled: Boolean,
|
18
|
+
teleported: Boolean,
|
19
|
+
size: {
|
20
|
+
type: String,
|
21
|
+
values: componentSizes
|
22
|
+
},
|
23
|
+
appendSizeTo: String
|
13
24
|
});
|
14
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
15
|
-
...__default__,
|
16
|
-
props: paginationSizesProps,
|
17
|
-
emits: ["page-size-change"],
|
18
|
-
setup(__props, { emit }) {
|
19
|
-
const props = __props;
|
20
|
-
const { t } = useLocale();
|
21
|
-
const ns = useNamespace("pagination");
|
22
|
-
const pagination = usePagination();
|
23
|
-
const innerPageSize = ref(props.pageSize);
|
24
|
-
watch(() => props.pageSizes, (newVal, oldVal) => {
|
25
|
-
if (isEqual(newVal, oldVal))
|
26
|
-
return;
|
27
|
-
if (isArray(newVal)) {
|
28
|
-
const pageSize = newVal.includes(props.pageSize) ? props.pageSize : props.pageSizes[0];
|
29
|
-
emit("page-size-change", pageSize);
|
30
|
-
}
|
31
|
-
});
|
32
|
-
watch(() => props.pageSize, (newVal) => {
|
33
|
-
innerPageSize.value = newVal;
|
34
|
-
});
|
35
|
-
const innerPageSizes = computed(() => props.pageSizes);
|
36
|
-
function handleChange(val) {
|
37
|
-
var _a;
|
38
|
-
if (val !== innerPageSize.value) {
|
39
|
-
innerPageSize.value = val;
|
40
|
-
(_a = pagination.handleSizeChange) == null ? void 0 : _a.call(pagination, Number(val));
|
41
|
-
}
|
42
|
-
}
|
43
|
-
return (_ctx, _cache) => {
|
44
|
-
return openBlock(), createElementBlock("span", {
|
45
|
-
class: normalizeClass(unref(ns).e("sizes"))
|
46
|
-
}, [
|
47
|
-
createVNode(unref(ElSelect), {
|
48
|
-
"model-value": innerPageSize.value,
|
49
|
-
disabled: _ctx.disabled,
|
50
|
-
"popper-class": _ctx.popperClass,
|
51
|
-
size: _ctx.size,
|
52
|
-
teleported: _ctx.teleported,
|
53
|
-
"validate-event": false,
|
54
|
-
"append-to": _ctx.appendSizeTo,
|
55
|
-
onChange: handleChange
|
56
|
-
}, {
|
57
|
-
default: withCtx(() => [
|
58
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(innerPageSizes), (item) => {
|
59
|
-
return openBlock(), createBlock(unref(ElOption), {
|
60
|
-
key: item,
|
61
|
-
value: item,
|
62
|
-
label: item + unref(t)("el.pagination.pagesize")
|
63
|
-
}, null, 8, ["value", "label"]);
|
64
|
-
}), 128))
|
65
|
-
]),
|
66
|
-
_: 1
|
67
|
-
}, 8, ["model-value", "disabled", "popper-class", "size", "teleported", "append-to"])
|
68
|
-
], 2);
|
69
|
-
};
|
70
|
-
}
|
71
|
-
});
|
72
|
-
var Sizes = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "sizes.vue"]]);
|
73
25
|
|
74
|
-
export {
|
26
|
+
export { paginationSizesProps };
|
75
27
|
//# sourceMappingURL=sizes2.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sizes2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/sizes.
|
1
|
+
{"version":3,"file":"sizes2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/sizes.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type Sizes from './sizes.vue'\n\nexport const paginationSizesProps = buildProps({\n pageSize: {\n type: Number,\n required: true,\n },\n pageSizes: {\n type: definePropType<number[]>(Array),\n default: () => mutable([10, 20, 30, 40, 50, 100] as const),\n },\n popperClass: {\n type: String,\n },\n disabled: Boolean,\n teleported: Boolean,\n size: {\n type: String,\n values: componentSizes,\n },\n appendSizeTo: String,\n} as const)\n\nexport type PaginationSizesProps = ExtractPropTypes<typeof paginationSizesProps>\n\nexport type SizesInstance = InstanceType<typeof Sizes>\n"],"names":[],"mappings":";;;;AAEY,MAAC,oBAAoB,GAAG,UAAU,CAAC;AAC/C,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;AACrD,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,GAAG;AACH,EAAE,YAAY,EAAE,MAAM;AACtB,CAAC;;;;"}
|
@@ -2,8 +2,8 @@ import { defineComponent, getCurrentInstance, computed, ref, watch, provide, h }
|
|
2
2
|
import { ArrowLeft, ArrowRight } from '@element-plus/icons-vue';
|
3
3
|
import { elPaginationKey } from './constants.mjs';
|
4
4
|
import Prev from './components/prev2.mjs';
|
5
|
-
import Next from './components/
|
6
|
-
import Sizes from './components/
|
5
|
+
import Next from './components/next.mjs';
|
6
|
+
import Sizes from './components/sizes.mjs';
|
7
7
|
import Jumper from './components/jumper.mjs';
|
8
8
|
import Total from './components/total2.mjs';
|
9
9
|
import Pager from './components/pager2.mjs';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import Popover from './src/
|
1
|
+
import Popover from './src/popover.mjs';
|
2
2
|
import PopoverDirective, { VPopover } from './src/directive.mjs';
|
3
|
-
export { popoverEmits, popoverProps } from './src/
|
3
|
+
export { popoverEmits, popoverProps } from './src/popover2.mjs';
|
4
4
|
import { withInstallDirective, withInstall } from '../../utils/vue/install.mjs';
|
5
5
|
|
6
6
|
const ElPopoverDirective = withInstallDirective(PopoverDirective, VPopover);
|
@@ -1,69 +1,115 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import
|
5
|
-
import {
|
1
|
+
import { defineComponent, computed, ref, unref, openBlock, createBlock, mergeProps, withCtx, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, renderSlot, createTextVNode } from 'vue';
|
2
|
+
import { ElTooltip } from '../../tooltip/index.mjs';
|
3
|
+
import { popoverProps, popoverEmits } from './popover2.mjs';
|
4
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
5
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
6
|
+
import { addUnit } from '../../../utils/dom/style.mjs';
|
6
7
|
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
8
|
+
const updateEventKeyRaw = `onUpdate:visible`;
|
9
|
+
const __default__ = defineComponent({
|
10
|
+
name: "ElPopover"
|
11
|
+
});
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
13
|
+
...__default__,
|
14
|
+
props: popoverProps,
|
15
|
+
emits: popoverEmits,
|
16
|
+
setup(__props, { expose, emit }) {
|
17
|
+
const props = __props;
|
18
|
+
const onUpdateVisible = computed(() => {
|
19
|
+
return props[updateEventKeyRaw];
|
20
|
+
});
|
21
|
+
const ns = useNamespace("popover");
|
22
|
+
const tooltipRef = ref();
|
23
|
+
const popperRef = computed(() => {
|
24
|
+
var _a;
|
25
|
+
return (_a = unref(tooltipRef)) == null ? void 0 : _a.popperRef;
|
26
|
+
});
|
27
|
+
const style = computed(() => {
|
28
|
+
return [
|
29
|
+
{
|
30
|
+
width: addUnit(props.width)
|
31
|
+
},
|
32
|
+
props.popperStyle
|
33
|
+
];
|
34
|
+
});
|
35
|
+
const kls = computed(() => {
|
36
|
+
return [ns.b(), props.popperClass, { [ns.m("plain")]: !!props.content }];
|
37
|
+
});
|
38
|
+
const gpuAcceleration = computed(() => {
|
39
|
+
return props.transition === `${ns.namespace.value}-fade-in-linear`;
|
40
|
+
});
|
41
|
+
const hide = () => {
|
42
|
+
var _a;
|
43
|
+
(_a = tooltipRef.value) == null ? void 0 : _a.hide();
|
44
|
+
};
|
45
|
+
const beforeEnter = () => {
|
46
|
+
emit("before-enter");
|
47
|
+
};
|
48
|
+
const beforeLeave = () => {
|
49
|
+
emit("before-leave");
|
50
|
+
};
|
51
|
+
const afterEnter = () => {
|
52
|
+
emit("after-enter");
|
53
|
+
};
|
54
|
+
const afterLeave = () => {
|
55
|
+
emit("update:visible", false);
|
56
|
+
emit("after-leave");
|
57
|
+
};
|
58
|
+
expose({
|
59
|
+
popperRef,
|
60
|
+
hide
|
61
|
+
});
|
62
|
+
return (_ctx, _cache) => {
|
63
|
+
return openBlock(), createBlock(unref(ElTooltip), mergeProps({
|
64
|
+
ref_key: "tooltipRef",
|
65
|
+
ref: tooltipRef
|
66
|
+
}, _ctx.$attrs, {
|
67
|
+
trigger: _ctx.trigger,
|
68
|
+
placement: _ctx.placement,
|
69
|
+
disabled: _ctx.disabled,
|
70
|
+
visible: _ctx.visible,
|
71
|
+
transition: _ctx.transition,
|
72
|
+
"popper-options": _ctx.popperOptions,
|
73
|
+
tabindex: _ctx.tabindex,
|
74
|
+
content: _ctx.content,
|
75
|
+
offset: _ctx.offset,
|
76
|
+
"show-after": _ctx.showAfter,
|
77
|
+
"hide-after": _ctx.hideAfter,
|
78
|
+
"auto-close": _ctx.autoClose,
|
79
|
+
"show-arrow": _ctx.showArrow,
|
80
|
+
"aria-label": _ctx.title,
|
81
|
+
effect: _ctx.effect,
|
82
|
+
enterable: _ctx.enterable,
|
83
|
+
"popper-class": unref(kls),
|
84
|
+
"popper-style": unref(style),
|
85
|
+
teleported: _ctx.teleported,
|
86
|
+
persistent: _ctx.persistent,
|
87
|
+
"gpu-acceleration": unref(gpuAcceleration),
|
88
|
+
"onUpdate:visible": unref(onUpdateVisible),
|
89
|
+
onBeforeShow: beforeEnter,
|
90
|
+
onBeforeHide: beforeLeave,
|
91
|
+
onShow: afterEnter,
|
92
|
+
onHide: afterLeave
|
93
|
+
}), {
|
94
|
+
content: withCtx(() => [
|
95
|
+
_ctx.title ? (openBlock(), createElementBlock("div", {
|
96
|
+
key: 0,
|
97
|
+
class: normalizeClass(unref(ns).e("title")),
|
98
|
+
role: "title"
|
99
|
+
}, toDisplayString(_ctx.title), 3)) : createCommentVNode("v-if", true),
|
100
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
101
|
+
createTextVNode(toDisplayString(_ctx.content), 1)
|
102
|
+
])
|
103
|
+
]),
|
104
|
+
default: withCtx(() => [
|
105
|
+
_ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
|
106
|
+
]),
|
107
|
+
_: 3
|
108
|
+
}, 16, ["trigger", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "persistent", "gpu-acceleration", "onUpdate:visible"]);
|
109
|
+
};
|
58
110
|
}
|
59
111
|
});
|
60
|
-
|
61
|
-
"update:visible": (value) => isBoolean(value),
|
62
|
-
"before-enter": () => true,
|
63
|
-
"before-leave": () => true,
|
64
|
-
"after-enter": () => true,
|
65
|
-
"after-leave": () => true
|
66
|
-
};
|
112
|
+
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "popover.vue"]]);
|
67
113
|
|
68
|
-
export {
|
114
|
+
export { Popover as default };
|
69
115
|
//# sourceMappingURL=popover.mjs.map
|