@element-plus/nightly 0.0.20241223 → 0.0.20241224
Sign up to get free protection for your applications and to get access to all the features.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +69 -9
- package/dist/index.full.min.js +15 -15
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +15 -15
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +69 -9
- 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/autocomplete/src/autocomplete.vue.d.ts +4 -0
- package/es/components/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb.mjs +10 -37
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +37 -10
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/button/index.mjs +3 -3
- package/es/components/button/src/button-group.mjs +29 -6
- package/es/components/button/src/button-group.mjs.map +1 -1
- package/es/components/button/src/button-group2.mjs +6 -29
- package/es/components/button/src/button-group2.mjs.map +1 -1
- package/es/components/button/src/button.mjs +56 -77
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +77 -56
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +134 -16
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +16 -134
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/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/color-picker/src/color-picker2.mjs +4 -1
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.mjs +87 -26
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +26 -87
- 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/dropdown/src/dropdown.vue.d.ts +4 -0
- package/es/components/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +52 -11
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +11 -52
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/focus-trap/src/utils.mjs +10 -0
- package/es/components/focus-trap/src/utils.mjs.map +1 -1
- package/es/components/image-viewer/index.mjs +2 -2
- package/es/components/image-viewer/src/image-viewer.mjs +412 -45
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +45 -412
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +22 -22
- package/es/components/mention/index.mjs +2 -2
- package/es/components/mention/src/mention.mjs +282 -62
- package/es/components/mention/src/mention.mjs.map +1 -1
- package/es/components/mention/src/mention.vue.d.ts +4 -0
- package/es/components/mention/src/mention2.mjs +62 -282
- package/es/components/mention/src/mention2.mjs.map +1 -1
- package/es/components/pagination/src/components/total.mjs +26 -6
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +6 -26
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +114 -45
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +45 -114
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popper/index.mjs +4 -4
- package/es/components/popper/src/content.mjs +92 -132
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +132 -92
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/popper/src/popper.mjs +22 -32
- package/es/components/popper/src/popper.mjs.map +1 -1
- package/es/components/popper/src/popper2.mjs +32 -22
- package/es/components/popper/src/popper2.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +65 -5
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +5 -65
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +2 -2
- package/es/components/scrollbar/src/scrollbar.mjs +170 -55
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +55 -170
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/select/index.mjs +1 -1
- package/es/components/select/src/select.mjs +419 -113
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +113 -419
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select-v2/src/defaults.d.ts +1 -0
- package/es/components/select-v2/src/defaults.mjs +8 -1
- package/es/components/select-v2/src/defaults.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +3 -0
- package/es/components/select-v2/src/useSelect.mjs +38 -1
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +4 -4
- package/es/components/skeleton/src/skeleton-item.mjs +22 -17
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +17 -22
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton.mjs +21 -48
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +48 -21
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/slider/index.mjs +2 -2
- package/es/components/slider/src/button.mjs +89 -19
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +19 -89
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider.mjs +88 -238
- package/es/components/slider/src/slider.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +238 -88
- package/es/components/slider/src/slider2.mjs.map +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/item.mjs +190 -19
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item2.mjs +19 -190
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/switch/index.mjs +2 -2
- package/es/components/switch/src/switch.mjs +228 -72
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +72 -228
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +4 -0
- package/es/components/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-pane.mjs +71 -13
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +13 -71
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/timeline/index.mjs +2 -2
- package/es/components/timeline/src/timeline-item.mjs +72 -33
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +33 -72
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +4 -0
- package/es/components/tooltip/src/content2.mjs +11 -2
- package/es/components/tooltip/src/content2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +2 -0
- package/es/components/tooltip/src/tooltip2.mjs +2 -4
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +2 -2
- package/es/components/tooltip-v2/src/arrow.mjs +37 -21
- package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
- package/es/components/tooltip-v2/src/arrow2.mjs +21 -37
- package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content.mjs +110 -48
- package/es/components/tooltip-v2/src/content.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content2.mjs +48 -110
- package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +2 -2
- package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
- package/es/components/tour/src/mask.mjs +75 -18
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask2.mjs +18 -75
- package/es/components/tour/src/mask2.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/upload/index.mjs +3 -3
- package/es/components/upload/src/upload-content.mjs +196 -33
- package/es/components/upload/src/upload-content.mjs.map +1 -1
- package/es/components/upload/src/upload-content2.mjs +33 -196
- package/es/components/upload/src/upload-content2.mjs.map +1 -1
- package/es/components/upload/src/upload-list.mjs +1 -1
- package/es/components/upload/src/upload.mjs +125 -97
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +97 -125
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.mjs +1 -1
- 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 +22 -22
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +4 -0
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb.js +10 -37
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +37 -10
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/button/index.js +3 -3
- package/lib/components/button/src/button-group.js +29 -6
- package/lib/components/button/src/button-group.js.map +1 -1
- package/lib/components/button/src/button-group2.js +6 -29
- package/lib/components/button/src/button-group2.js.map +1 -1
- package/lib/components/button/src/button.js +59 -77
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +77 -59
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +134 -17
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +17 -134
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/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/color-picker/src/color-picker2.js +4 -1
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.js +86 -26
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +26 -86
- 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/dropdown/src/dropdown.vue.d.ts +4 -0
- package/lib/components/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +52 -11
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty2.js +11 -52
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/focus-trap/src/utils.js +10 -0
- package/lib/components/focus-trap/src/utils.js.map +1 -1
- package/lib/components/image-viewer/index.js +2 -2
- package/lib/components/image-viewer/src/image-viewer.js +412 -46
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +46 -412
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +22 -22
- package/lib/components/mention/index.js +2 -2
- package/lib/components/mention/src/mention.js +280 -61
- package/lib/components/mention/src/mention.js.map +1 -1
- package/lib/components/mention/src/mention.vue.d.ts +4 -0
- package/lib/components/mention/src/mention2.js +61 -280
- package/lib/components/mention/src/mention2.js.map +1 -1
- package/lib/components/pagination/src/components/total.js +26 -6
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +6 -26
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +114 -46
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +46 -114
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popper/index.js +4 -4
- package/lib/components/popper/src/content.js +97 -132
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +132 -97
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/popper/src/popper.js +25 -32
- package/lib/components/popper/src/popper.js.map +1 -1
- package/lib/components/popper/src/popper2.js +32 -25
- package/lib/components/popper/src/popper2.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +65 -5
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +5 -65
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/src/scrollbar.js +170 -56
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +56 -170
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/select/index.js +1 -1
- package/lib/components/select/src/select.js +419 -113
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select2.js +113 -419
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select-v2/src/defaults.d.ts +1 -0
- package/lib/components/select-v2/src/defaults.js +8 -1
- package/lib/components/select-v2/src/defaults.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +3 -0
- package/lib/components/select-v2/src/useSelect.js +38 -1
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/skeleton/index.js +4 -4
- package/lib/components/skeleton/src/skeleton-item.js +22 -17
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +17 -22
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton.js +21 -48
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +48 -21
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/slider/index.js +2 -2
- package/lib/components/slider/src/button.js +89 -20
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +20 -89
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider.js +89 -238
- package/lib/components/slider/src/slider.js.map +1 -1
- package/lib/components/slider/src/slider2.js +238 -89
- package/lib/components/slider/src/slider2.js.map +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/item.js +190 -19
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item2.js +19 -190
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/switch/src/switch.js +227 -72
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +72 -227
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +4 -0
- package/lib/components/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-pane.js +71 -13
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +13 -71
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/timeline/index.js +2 -2
- package/lib/components/timeline/src/timeline-item.js +72 -33
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +33 -72
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +4 -0
- package/lib/components/tooltip/src/content2.js +11 -2
- package/lib/components/tooltip/src/content2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +2 -0
- package/lib/components/tooltip/src/tooltip2.js +2 -4
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +2 -2
- package/lib/components/tooltip-v2/src/arrow.js +37 -22
- package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
- package/lib/components/tooltip-v2/src/arrow2.js +22 -37
- package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
- package/lib/components/tooltip-v2/src/content.js +110 -48
- package/lib/components/tooltip-v2/src/content.js.map +1 -1
- package/lib/components/tooltip-v2/src/content2.js +48 -110
- package/lib/components/tooltip-v2/src/content2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +2 -2
- package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
- package/lib/components/tour/src/mask.js +75 -18
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask2.js +18 -75
- package/lib/components/tour/src/mask2.js.map +1 -1
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/upload/index.js +3 -3
- package/lib/components/upload/src/upload-content.js +195 -32
- package/lib/components/upload/src/upload-content.js.map +1 -1
- package/lib/components/upload/src/upload-content2.js +32 -195
- package/lib/components/upload/src/upload-content2.js.map +1 -1
- package/lib/components/upload/src/upload-list.js +1 -1
- package/lib/components/upload/src/upload.js +125 -100
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload2.js +100 -125
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/components/upload/src/use-handlers.js +1 -1
- 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 +22 -22
- 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/tags.json +1 -1
- package/theme-chalk/el-input-number.css +1 -1
- package/theme-chalk/el-input.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/input-number.scss +8 -0
- package/theme-chalk/src/input.scss +5 -3
- package/web-types.json +1 -1
@@ -2,40 +2,33 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var constants = require('./constants.js');
|
7
|
-
var popper = require('./popper2.js');
|
8
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
9
6
|
|
10
|
-
const
|
11
|
-
|
12
|
-
|
13
|
-
}
|
14
|
-
const
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
role
|
30
|
-
};
|
31
|
-
expose(popperProvides);
|
32
|
-
vue.provide(constants.POPPER_INJECTION_KEY, popperProvides);
|
33
|
-
return (_ctx, _cache) => {
|
34
|
-
return vue.renderSlot(_ctx.$slots, "default");
|
35
|
-
};
|
7
|
+
const Effect = {
|
8
|
+
LIGHT: "light",
|
9
|
+
DARK: "dark"
|
10
|
+
};
|
11
|
+
const roleTypes = [
|
12
|
+
"dialog",
|
13
|
+
"grid",
|
14
|
+
"group",
|
15
|
+
"listbox",
|
16
|
+
"menu",
|
17
|
+
"navigation",
|
18
|
+
"tooltip",
|
19
|
+
"tree"
|
20
|
+
];
|
21
|
+
const popperProps = runtime.buildProps({
|
22
|
+
role: {
|
23
|
+
type: String,
|
24
|
+
values: roleTypes,
|
25
|
+
default: "tooltip"
|
36
26
|
}
|
37
27
|
});
|
38
|
-
|
28
|
+
const usePopperProps = popperProps;
|
39
29
|
|
40
|
-
exports
|
30
|
+
exports.Effect = Effect;
|
31
|
+
exports.popperProps = popperProps;
|
32
|
+
exports.roleTypes = roleTypes;
|
33
|
+
exports.usePopperProps = usePopperProps;
|
41
34
|
//# sourceMappingURL=popper.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"popper.js","sources":["../../../../../../packages/components/popper/src/popper.
|
1
|
+
{"version":3,"file":"popper.js","sources":["../../../../../../packages/components/popper/src/popper.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n\nimport { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Popper from './popper.vue'\n\nconst effects = ['light', 'dark'] as const\nconst triggers = ['click', 'contextmenu', 'hover', 'focus'] as const\n\nexport const Effect = {\n LIGHT: 'light',\n DARK: 'dark',\n} as const\n\nexport const roleTypes = [\n 'dialog',\n 'grid',\n 'group',\n 'listbox',\n 'menu',\n 'navigation',\n 'tooltip',\n 'tree',\n] as const\n\nexport type PopperEffect =\n | typeof effects[number]\n | (string & NonNullable<unknown>)\nexport type PopperTrigger = typeof triggers[number]\n\nexport const popperProps = buildProps({\n role: {\n type: String,\n values: roleTypes,\n default: 'tooltip',\n },\n} as const)\n\nexport type PopperProps = ExtractPropTypes<typeof popperProps>\n\nexport type PopperInstance = InstanceType<typeof Popper>\n\n/** @deprecated use `popperProps` instead, and it will be deprecated in the next major version */\nexport const usePopperProps = popperProps\n\n/** @deprecated use `PopperProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperProps = PopperProps\n"],"names":["buildProps"],"mappings":";;;;;;AAGY,MAAC,MAAM,GAAG;AACtB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE;AACU,MAAC,SAAS,GAAG;AACzB,EAAE,QAAQ;AACV,EAAE,MAAM;AACR,EAAE,OAAO;AACT,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,YAAY;AACd,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE;AACU,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,SAAS;AACrB,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,cAAc,GAAG;;;;;;;"}
|
@@ -2,33 +2,40 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
5
|
+
var vue = require('vue');
|
6
|
+
var constants = require('./constants.js');
|
7
|
+
var popper = require('./popper.js');
|
8
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
6
9
|
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
};
|
11
|
-
const
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
const
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
10
|
+
const __default__ = vue.defineComponent({
|
11
|
+
name: "ElPopper",
|
12
|
+
inheritAttrs: false
|
13
|
+
});
|
14
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
15
|
+
...__default__,
|
16
|
+
props: popper.popperProps,
|
17
|
+
setup(__props, { expose }) {
|
18
|
+
const props = __props;
|
19
|
+
const triggerRef = vue.ref();
|
20
|
+
const popperInstanceRef = vue.ref();
|
21
|
+
const contentRef = vue.ref();
|
22
|
+
const referenceRef = vue.ref();
|
23
|
+
const role = vue.computed(() => props.role);
|
24
|
+
const popperProvides = {
|
25
|
+
triggerRef,
|
26
|
+
popperInstanceRef,
|
27
|
+
contentRef,
|
28
|
+
referenceRef,
|
29
|
+
role
|
30
|
+
};
|
31
|
+
expose(popperProvides);
|
32
|
+
vue.provide(constants.POPPER_INJECTION_KEY, popperProvides);
|
33
|
+
return (_ctx, _cache) => {
|
34
|
+
return vue.renderSlot(_ctx.$slots, "default");
|
35
|
+
};
|
26
36
|
}
|
27
37
|
});
|
28
|
-
|
38
|
+
var Popper = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "popper.vue"]]);
|
29
39
|
|
30
|
-
exports
|
31
|
-
exports.popperProps = popperProps;
|
32
|
-
exports.roleTypes = roleTypes;
|
33
|
-
exports.usePopperProps = usePopperProps;
|
40
|
+
exports["default"] = Popper;
|
34
41
|
//# sourceMappingURL=popper2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"popper2.js","sources":["../../../../../../packages/components/popper/src/popper.
|
1
|
+
{"version":3,"file":"popper2.js","sources":["../../../../../../packages/components/popper/src/popper.vue"],"sourcesContent":["<template>\n <slot />\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, provide, ref } from 'vue'\nimport { POPPER_INJECTION_KEY } from './constants'\nimport { popperProps } from './popper'\n\nimport type { Instance as PopperInstance } from '@popperjs/core'\nimport type { ElPopperInjectionContext } from './constants'\n\ndefineOptions({\n name: 'ElPopper',\n inheritAttrs: false,\n})\nconst props = defineProps(popperProps)\n\nconst triggerRef = ref<HTMLElement>()\nconst popperInstanceRef = ref<PopperInstance>()\nconst contentRef = ref<HTMLElement>()\nconst referenceRef = ref<HTMLElement>()\nconst role = computed(() => props.role)\n\nconst popperProvides = {\n /**\n * @description trigger element\n */\n triggerRef,\n /**\n * @description popperjs instance\n */\n popperInstanceRef,\n /**\n * @description popper content element\n */\n contentRef,\n /**\n * @description popper reference element\n */\n referenceRef,\n /**\n * @description role determines how aria attributes are distributed\n */\n role,\n} as ElPopperInjectionContext\n\ndefineExpose(popperProvides)\n\nprovide(POPPER_INJECTION_KEY, popperProvides)\n</script>\n"],"names":["ref","computed","provide","POPPER_INJECTION_KEY","_renderSlot","_export_sfc"],"mappings":";;;;;;;;;uCAYc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;AAGA,IAAA,MAAM,aAAaA,OAAiB,EAAA,CAAA;AACpC,IAAA,MAAM,oBAAoBA,OAAoB,EAAA,CAAA;AAC9C,IAAA,MAAM,aAAaA,OAAiB,EAAA,CAAA;AACpC,IAAA,MAAM,eAAeA,OAAiB,EAAA,CAAA;AACtC,IAAA,MAAM,IAAO,GAAAC,YAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAA,CAAA;AAEtC,IAAA,MAAM,cAAiB,GAAA;AAAA,MAAA,UAAA;AAAA,MAAA,iBAAA;AAAA,MAAA,UAAA;AAAA,MAIrB,YAAA;AAAA,MAAA,IAAA;AAAA,KAAA,CAAA;AAAA,IAAA,MAAA,CAAA,cAAA,CAAA,CAAA;AAAA,IAIAC,WAAA,CAAAC,8BAAA,EAAA,cAAA,CAAA,CAAA;AAAA,IAAA,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MAAA,OAAAC,cAAA,CAAA,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA,CAAA;AAAA,KAAA,CAAA;AAAA,GAIA;AAAA,CAAA,CAAA,CAAA;AAAA,aAAA,gBAAAC,iCAAA,CAAA,SAAA,EAAA,CAAA,CAAA,QAAA,EAAA,YAAA,CAAA,CAAA,CAAA;;;;"}
|
@@ -3,11 +3,11 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var radio$1 = require('./src/radio2.js');
|
6
|
-
var radioButton$1 = require('./src/radio-
|
6
|
+
var radioButton$1 = require('./src/radio-button.js');
|
7
7
|
var radioGroup$1 = require('./src/radio-group2.js');
|
8
8
|
var radio = require('./src/radio.js');
|
9
9
|
var radioGroup = require('./src/radio-group.js');
|
10
|
-
var radioButton = require('./src/radio-
|
10
|
+
var radioButton = require('./src/radio-button2.js');
|
11
11
|
var constants = require('./src/constants.js');
|
12
12
|
var install = require('../../utils/vue/install.js');
|
13
13
|
|
@@ -2,12 +2,72 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var
|
5
|
+
var vue = require('vue');
|
6
|
+
var useRadio = require('./use-radio.js');
|
7
|
+
var radioButton = require('./radio-button2.js');
|
8
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
9
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
7
10
|
|
8
|
-
const
|
9
|
-
|
11
|
+
const __default__ = vue.defineComponent({
|
12
|
+
name: "ElRadioButton"
|
10
13
|
});
|
14
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
15
|
+
...__default__,
|
16
|
+
props: radioButton.radioButtonProps,
|
17
|
+
setup(__props) {
|
18
|
+
const props = __props;
|
19
|
+
const ns = index.useNamespace("radio");
|
20
|
+
const { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } = useRadio.useRadio(props);
|
21
|
+
const activeStyle = vue.computed(() => {
|
22
|
+
return {
|
23
|
+
backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
24
|
+
borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
25
|
+
boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
|
26
|
+
color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
|
27
|
+
};
|
28
|
+
});
|
29
|
+
return (_ctx, _cache) => {
|
30
|
+
var _a;
|
31
|
+
return vue.openBlock(), vue.createElementBlock("label", {
|
32
|
+
class: vue.normalizeClass([
|
33
|
+
vue.unref(ns).b("button"),
|
34
|
+
vue.unref(ns).is("active", vue.unref(modelValue) === vue.unref(actualValue)),
|
35
|
+
vue.unref(ns).is("disabled", vue.unref(disabled)),
|
36
|
+
vue.unref(ns).is("focus", vue.unref(focus)),
|
37
|
+
vue.unref(ns).bm("button", vue.unref(size))
|
38
|
+
])
|
39
|
+
}, [
|
40
|
+
vue.withDirectives(vue.createElementVNode("input", {
|
41
|
+
ref_key: "radioRef",
|
42
|
+
ref: radioRef,
|
43
|
+
"onUpdate:modelValue": ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null,
|
44
|
+
class: vue.normalizeClass(vue.unref(ns).be("button", "original-radio")),
|
45
|
+
value: vue.unref(actualValue),
|
46
|
+
type: "radio",
|
47
|
+
name: _ctx.name || ((_a = vue.unref(radioGroup)) == null ? void 0 : _a.name),
|
48
|
+
disabled: vue.unref(disabled),
|
49
|
+
onFocus: ($event) => focus.value = true,
|
50
|
+
onBlur: ($event) => focus.value = false,
|
51
|
+
onClick: vue.withModifiers(() => {
|
52
|
+
}, ["stop"])
|
53
|
+
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
|
54
|
+
[vue.vModelRadio, vue.unref(modelValue)]
|
55
|
+
]),
|
56
|
+
vue.createElementVNode("span", {
|
57
|
+
class: vue.normalizeClass(vue.unref(ns).be("button", "inner")),
|
58
|
+
style: vue.normalizeStyle(vue.unref(modelValue) === vue.unref(actualValue) ? vue.unref(activeStyle) : {}),
|
59
|
+
onKeydown: vue.withModifiers(() => {
|
60
|
+
}, ["stop"])
|
61
|
+
}, [
|
62
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
63
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
64
|
+
])
|
65
|
+
], 46, ["onKeydown"])
|
66
|
+
], 2);
|
67
|
+
};
|
68
|
+
}
|
69
|
+
});
|
70
|
+
var RadioButton = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "radio-button.vue"]]);
|
11
71
|
|
12
|
-
exports
|
72
|
+
exports["default"] = RadioButton;
|
13
73
|
//# sourceMappingURL=radio-button.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"radio-button.js","sources":["../../../../../../packages/components/radio/src/radio-button.
|
1
|
+
{"version":3,"file":"radio-button.js","sources":["../../../../../../packages/components/radio/src/radio-button.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n ns.b('button'),\n ns.is('active', modelValue === actualValue),\n ns.is('disabled', disabled),\n ns.is('focus', focus),\n ns.bm('button', size),\n ]\"\n >\n <input\n ref=\"radioRef\"\n v-model=\"modelValue\"\n :class=\"ns.be('button', 'original-radio')\"\n :value=\"actualValue\"\n type=\"radio\"\n :name=\"name || radioGroup?.name\"\n :disabled=\"disabled\"\n @focus=\"focus = true\"\n @blur=\"focus = false\"\n @click.stop\n />\n <span\n :class=\"ns.be('button', 'inner')\"\n :style=\"modelValue === actualValue ? activeStyle : {}\"\n @keydown.stop\n >\n <slot>\n {{ label }}\n </slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useRadio } from './use-radio'\nimport { radioButtonProps } from './radio-button'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElRadioButton',\n})\n\nconst props = defineProps(radioButtonProps)\n\nconst ns = useNamespace('radio')\nconst { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } =\n useRadio(props)\n\nconst activeStyle = computed<CSSProperties>(() => {\n return {\n backgroundColor: radioGroup?.fill || '',\n borderColor: radioGroup?.fill || '',\n boxShadow: radioGroup?.fill ? `-1px 0 0 0 ${radioGroup.fill}` : '',\n color: radioGroup?.textColor || '',\n }\n})\n</script>\n"],"names":["useNamespace","useRadio","computed"],"mappings":";;;;;;;;;;uCAyCc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAKA,mBAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA,EAAE,QAAU,EAAA,KAAA,EAAO,IAAM,EAAA,QAAA,EAAU,YAAY,UAAY,EAAA,WAAA,EAC/D,GAAAC,iBAAA,CAAS,KAAK,CAAA,CAAA;AAEhB,IAAM,MAAA,WAAA,GAAcC,aAAwB,MAAM;AAChD,MAAO,OAAA;AAAA,QACL,eAAA,EAAiB,eAAoB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,IAAA,KAAA,EAAA;AAAA,QACrC,WAAA,EAAa,eAAoB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,IAAA,KAAA,EAAA;AAAA,QACjC,WAAW,CAAY,UAAA,IAAA,IAAO,GAAc,KAAA,CAAA,GAAA,UAAA,CAAA,QAAoB,CAAA,WAAA,EAAA,UAAA,CAAA,IAAA,CAAA,CAAA,GAAA,EAAA;AAAA,QAChE,KAAA,EAAO,eAAyB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,SAAA,KAAA,EAAA;AAAA,OAClC,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -2,72 +2,12 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var
|
7
|
-
var radioButton = require('./radio-button.js');
|
8
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
9
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
5
|
+
var radio = require('./radio.js');
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
10
7
|
|
11
|
-
const
|
12
|
-
|
8
|
+
const radioButtonProps = runtime.buildProps({
|
9
|
+
...radio.radioPropsBase
|
13
10
|
});
|
14
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
15
|
-
...__default__,
|
16
|
-
props: radioButton.radioButtonProps,
|
17
|
-
setup(__props) {
|
18
|
-
const props = __props;
|
19
|
-
const ns = index.useNamespace("radio");
|
20
|
-
const { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } = useRadio.useRadio(props);
|
21
|
-
const activeStyle = vue.computed(() => {
|
22
|
-
return {
|
23
|
-
backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
24
|
-
borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
25
|
-
boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
|
26
|
-
color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
|
27
|
-
};
|
28
|
-
});
|
29
|
-
return (_ctx, _cache) => {
|
30
|
-
var _a;
|
31
|
-
return vue.openBlock(), vue.createElementBlock("label", {
|
32
|
-
class: vue.normalizeClass([
|
33
|
-
vue.unref(ns).b("button"),
|
34
|
-
vue.unref(ns).is("active", vue.unref(modelValue) === vue.unref(actualValue)),
|
35
|
-
vue.unref(ns).is("disabled", vue.unref(disabled)),
|
36
|
-
vue.unref(ns).is("focus", vue.unref(focus)),
|
37
|
-
vue.unref(ns).bm("button", vue.unref(size))
|
38
|
-
])
|
39
|
-
}, [
|
40
|
-
vue.withDirectives(vue.createElementVNode("input", {
|
41
|
-
ref_key: "radioRef",
|
42
|
-
ref: radioRef,
|
43
|
-
"onUpdate:modelValue": ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null,
|
44
|
-
class: vue.normalizeClass(vue.unref(ns).be("button", "original-radio")),
|
45
|
-
value: vue.unref(actualValue),
|
46
|
-
type: "radio",
|
47
|
-
name: _ctx.name || ((_a = vue.unref(radioGroup)) == null ? void 0 : _a.name),
|
48
|
-
disabled: vue.unref(disabled),
|
49
|
-
onFocus: ($event) => focus.value = true,
|
50
|
-
onBlur: ($event) => focus.value = false,
|
51
|
-
onClick: vue.withModifiers(() => {
|
52
|
-
}, ["stop"])
|
53
|
-
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
|
54
|
-
[vue.vModelRadio, vue.unref(modelValue)]
|
55
|
-
]),
|
56
|
-
vue.createElementVNode("span", {
|
57
|
-
class: vue.normalizeClass(vue.unref(ns).be("button", "inner")),
|
58
|
-
style: vue.normalizeStyle(vue.unref(modelValue) === vue.unref(actualValue) ? vue.unref(activeStyle) : {}),
|
59
|
-
onKeydown: vue.withModifiers(() => {
|
60
|
-
}, ["stop"])
|
61
|
-
}, [
|
62
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
63
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
64
|
-
])
|
65
|
-
], 46, ["onKeydown"])
|
66
|
-
], 2);
|
67
|
-
};
|
68
|
-
}
|
69
|
-
});
|
70
|
-
var RadioButton = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "radio-button.vue"]]);
|
71
11
|
|
72
|
-
exports
|
12
|
+
exports.radioButtonProps = radioButtonProps;
|
73
13
|
//# sourceMappingURL=radio-button2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"radio-button2.js","sources":["../../../../../../packages/components/radio/src/radio-button.
|
1
|
+
{"version":3,"file":"radio-button2.js","sources":["../../../../../../packages/components/radio/src/radio-button.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { radioPropsBase } from './radio'\nimport type { ExtractPropTypes } from 'vue'\nimport type RadioButton from './radio-button.vue'\n\nexport const radioButtonProps = buildProps({\n ...radioPropsBase,\n} as const)\n\nexport type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>\nexport type RadioButtonInstance = InstanceType<typeof RadioButton>\n"],"names":["buildProps","radioPropsBase"],"mappings":";;;;;;;AAEY,MAAC,gBAAgB,GAAGA,kBAAU,CAAC;AAC3C,EAAE,GAAGC,oBAAc;AACnB,CAAC;;;;"}
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var scrollbar$1 = require('./src/
|
5
|
+
var scrollbar$1 = require('./src/scrollbar.js');
|
6
6
|
var util = require('./src/util.js');
|
7
|
-
var scrollbar = require('./src/
|
7
|
+
var scrollbar = require('./src/scrollbar2.js');
|
8
8
|
var thumb = require('./src/thumb.js');
|
9
9
|
var constants = require('./src/constants.js');
|
10
10
|
var install = require('../../utils/vue/install.js');
|
@@ -2,64 +2,178 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var
|
5
|
+
var vue = require('vue');
|
6
|
+
var core = require('@vueuse/core');
|
7
|
+
var bar = require('./bar2.js');
|
8
|
+
var constants = require('./constants.js');
|
9
|
+
var scrollbar = require('./scrollbar2.js');
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
11
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
12
|
+
var style = require('../../../utils/dom/style.js');
|
13
|
+
var shared = require('@vue/shared');
|
7
14
|
var types = require('../../../utils/types.js');
|
15
|
+
var error = require('../../../utils/error.js');
|
8
16
|
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
default: ""
|
13
|
-
},
|
14
|
-
maxHeight: {
|
15
|
-
type: [String, Number],
|
16
|
-
default: ""
|
17
|
-
},
|
18
|
-
native: {
|
19
|
-
type: Boolean,
|
20
|
-
default: false
|
21
|
-
},
|
22
|
-
wrapStyle: {
|
23
|
-
type: runtime.definePropType([String, Object, Array]),
|
24
|
-
default: ""
|
25
|
-
},
|
26
|
-
wrapClass: {
|
27
|
-
type: [String, Array],
|
28
|
-
default: ""
|
29
|
-
},
|
30
|
-
viewClass: {
|
31
|
-
type: [String, Array],
|
32
|
-
default: ""
|
33
|
-
},
|
34
|
-
viewStyle: {
|
35
|
-
type: [String, Array, Object],
|
36
|
-
default: ""
|
37
|
-
},
|
38
|
-
noresize: Boolean,
|
39
|
-
tag: {
|
40
|
-
type: String,
|
41
|
-
default: "div"
|
42
|
-
},
|
43
|
-
always: Boolean,
|
44
|
-
minSize: {
|
45
|
-
type: Number,
|
46
|
-
default: 20
|
47
|
-
},
|
48
|
-
tabindex: {
|
49
|
-
type: [String, Number],
|
50
|
-
default: void 0
|
51
|
-
},
|
52
|
-
id: String,
|
53
|
-
role: String,
|
54
|
-
...index.useAriaProps(["ariaLabel", "ariaOrientation"])
|
17
|
+
const COMPONENT_NAME = "ElScrollbar";
|
18
|
+
const __default__ = vue.defineComponent({
|
19
|
+
name: COMPONENT_NAME
|
55
20
|
});
|
56
|
-
const
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
21
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
22
|
+
...__default__,
|
23
|
+
props: scrollbar.scrollbarProps,
|
24
|
+
emits: scrollbar.scrollbarEmits,
|
25
|
+
setup(__props, { expose, emit }) {
|
26
|
+
const props = __props;
|
27
|
+
const ns = index.useNamespace("scrollbar");
|
28
|
+
let stopResizeObserver = void 0;
|
29
|
+
let stopResizeListener = void 0;
|
30
|
+
let wrapScrollTop = 0;
|
31
|
+
let wrapScrollLeft = 0;
|
32
|
+
const scrollbarRef = vue.ref();
|
33
|
+
const wrapRef = vue.ref();
|
34
|
+
const resizeRef = vue.ref();
|
35
|
+
const barRef = vue.ref();
|
36
|
+
const wrapStyle = vue.computed(() => {
|
37
|
+
const style$1 = {};
|
38
|
+
if (props.height)
|
39
|
+
style$1.height = style.addUnit(props.height);
|
40
|
+
if (props.maxHeight)
|
41
|
+
style$1.maxHeight = style.addUnit(props.maxHeight);
|
42
|
+
return [props.wrapStyle, style$1];
|
43
|
+
});
|
44
|
+
const wrapKls = vue.computed(() => {
|
45
|
+
return [
|
46
|
+
props.wrapClass,
|
47
|
+
ns.e("wrap"),
|
48
|
+
{ [ns.em("wrap", "hidden-default")]: !props.native }
|
49
|
+
];
|
50
|
+
});
|
51
|
+
const resizeKls = vue.computed(() => {
|
52
|
+
return [ns.e("view"), props.viewClass];
|
53
|
+
});
|
54
|
+
const handleScroll = () => {
|
55
|
+
var _a;
|
56
|
+
if (wrapRef.value) {
|
57
|
+
(_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
|
58
|
+
wrapScrollTop = wrapRef.value.scrollTop;
|
59
|
+
wrapScrollLeft = wrapRef.value.scrollLeft;
|
60
|
+
emit("scroll", {
|
61
|
+
scrollTop: wrapRef.value.scrollTop,
|
62
|
+
scrollLeft: wrapRef.value.scrollLeft
|
63
|
+
});
|
64
|
+
}
|
65
|
+
};
|
66
|
+
function scrollTo(arg1, arg2) {
|
67
|
+
if (shared.isObject(arg1)) {
|
68
|
+
wrapRef.value.scrollTo(arg1);
|
69
|
+
} else if (types.isNumber(arg1) && types.isNumber(arg2)) {
|
70
|
+
wrapRef.value.scrollTo(arg1, arg2);
|
71
|
+
}
|
72
|
+
}
|
73
|
+
const setScrollTop = (value) => {
|
74
|
+
if (!types.isNumber(value)) {
|
75
|
+
error.debugWarn(COMPONENT_NAME, "value must be a number");
|
76
|
+
return;
|
77
|
+
}
|
78
|
+
wrapRef.value.scrollTop = value;
|
79
|
+
};
|
80
|
+
const setScrollLeft = (value) => {
|
81
|
+
if (!types.isNumber(value)) {
|
82
|
+
error.debugWarn(COMPONENT_NAME, "value must be a number");
|
83
|
+
return;
|
84
|
+
}
|
85
|
+
wrapRef.value.scrollLeft = value;
|
86
|
+
};
|
87
|
+
const update = () => {
|
88
|
+
var _a;
|
89
|
+
(_a = barRef.value) == null ? void 0 : _a.update();
|
90
|
+
};
|
91
|
+
vue.watch(() => props.noresize, (noresize) => {
|
92
|
+
if (noresize) {
|
93
|
+
stopResizeObserver == null ? void 0 : stopResizeObserver();
|
94
|
+
stopResizeListener == null ? void 0 : stopResizeListener();
|
95
|
+
} else {
|
96
|
+
({ stop: stopResizeObserver } = core.useResizeObserver(resizeRef, update));
|
97
|
+
stopResizeListener = core.useEventListener("resize", update);
|
98
|
+
}
|
99
|
+
}, { immediate: true });
|
100
|
+
vue.watch(() => [props.maxHeight, props.height], () => {
|
101
|
+
if (!props.native)
|
102
|
+
vue.nextTick(() => {
|
103
|
+
var _a;
|
104
|
+
update();
|
105
|
+
if (wrapRef.value) {
|
106
|
+
(_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
|
107
|
+
}
|
108
|
+
});
|
109
|
+
});
|
110
|
+
vue.provide(constants.scrollbarContextKey, vue.reactive({
|
111
|
+
scrollbarElement: scrollbarRef,
|
112
|
+
wrapElement: wrapRef
|
113
|
+
}));
|
114
|
+
vue.onActivated(() => {
|
115
|
+
if (wrapRef.value) {
|
116
|
+
wrapRef.value.scrollTop = wrapScrollTop;
|
117
|
+
wrapRef.value.scrollLeft = wrapScrollLeft;
|
118
|
+
}
|
119
|
+
});
|
120
|
+
vue.onMounted(() => {
|
121
|
+
if (!props.native)
|
122
|
+
vue.nextTick(() => {
|
123
|
+
update();
|
124
|
+
});
|
125
|
+
});
|
126
|
+
vue.onUpdated(() => update());
|
127
|
+
expose({
|
128
|
+
wrapRef,
|
129
|
+
update,
|
130
|
+
scrollTo,
|
131
|
+
setScrollTop,
|
132
|
+
setScrollLeft,
|
133
|
+
handleScroll
|
134
|
+
});
|
135
|
+
return (_ctx, _cache) => {
|
136
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
137
|
+
ref_key: "scrollbarRef",
|
138
|
+
ref: scrollbarRef,
|
139
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
140
|
+
}, [
|
141
|
+
vue.createElementVNode("div", {
|
142
|
+
ref_key: "wrapRef",
|
143
|
+
ref: wrapRef,
|
144
|
+
class: vue.normalizeClass(vue.unref(wrapKls)),
|
145
|
+
style: vue.normalizeStyle(vue.unref(wrapStyle)),
|
146
|
+
tabindex: _ctx.tabindex,
|
147
|
+
onScroll: handleScroll
|
148
|
+
}, [
|
149
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
|
150
|
+
id: _ctx.id,
|
151
|
+
ref_key: "resizeRef",
|
152
|
+
ref: resizeRef,
|
153
|
+
class: vue.normalizeClass(vue.unref(resizeKls)),
|
154
|
+
style: vue.normalizeStyle(_ctx.viewStyle),
|
155
|
+
role: _ctx.role,
|
156
|
+
"aria-label": _ctx.ariaLabel,
|
157
|
+
"aria-orientation": _ctx.ariaOrientation
|
158
|
+
}, {
|
159
|
+
default: vue.withCtx(() => [
|
160
|
+
vue.renderSlot(_ctx.$slots, "default")
|
161
|
+
]),
|
162
|
+
_: 3
|
163
|
+
}, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
|
164
|
+
], 46, ["tabindex"]),
|
165
|
+
!_ctx.native ? (vue.openBlock(), vue.createBlock(bar["default"], {
|
166
|
+
key: 0,
|
167
|
+
ref_key: "barRef",
|
168
|
+
ref: barRef,
|
169
|
+
always: _ctx.always,
|
170
|
+
"min-size": _ctx.minSize
|
171
|
+
}, null, 8, ["always", "min-size"])) : vue.createCommentVNode("v-if", true)
|
172
|
+
], 2);
|
173
|
+
};
|
174
|
+
}
|
175
|
+
});
|
176
|
+
var Scrollbar = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "scrollbar.vue"]]);
|
62
177
|
|
63
|
-
exports
|
64
|
-
exports.scrollbarProps = scrollbarProps;
|
178
|
+
exports["default"] = Scrollbar;
|
65
179
|
//# sourceMappingURL=scrollbar.js.map
|