@element-plus/nightly 0.0.20250917 → 0.0.20250918
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +2 -2
- package/dist/index.full.min.js +2 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +2 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2 -2
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +71 -32
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +32 -71
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse-item.mjs +95 -18
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +18 -95
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/dropdown/index.mjs +2 -2
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +114 -282
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +282 -114
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/src/image.mjs +69 -234
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +234 -69
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +12 -12
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +83 -270
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +270 -83
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/link/index.mjs +2 -2
- package/es/components/link/src/link.mjs +25 -71
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link2.mjs +71 -25
- package/es/components/link/src/link2.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown.mjs +166 -15
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown2.mjs +15 -166
- package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +73 -140
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +140 -73
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/pagination/src/components/sizes.mjs +71 -23
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes2.mjs +23 -71
- package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
- package/es/components/pagination/src/components/total.mjs +6 -26
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +26 -6
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +50 -137
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +137 -50
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton.mjs +18 -48
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +48 -18
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/splitter/index.mjs +2 -2
- package/es/components/splitter/src/split-panel.mjs +157 -17
- package/es/components/splitter/src/split-panel.mjs.map +1 -1
- package/es/components/splitter/src/split-panel2.mjs +17 -157
- package/es/components/splitter/src/split-panel2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +2 -2
- package/es/components/tooltip/src/tooltip.mjs +166 -30
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +30 -166
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +3 -3
- 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/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 +3 -3
- package/es/components/tooltip-v2/src/tooltip2.mjs +6 -6
- package/es/components/tour/index.mjs +1 -1
- package/es/components/tour/src/content.mjs +43 -67
- package/es/components/tour/src/content.mjs.map +1 -1
- package/es/components/tour/src/content2.mjs +67 -43
- 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/index.mjs +12 -12
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +71 -32
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +32 -71
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse-item.js +95 -18
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +18 -95
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/dropdown/index.js +2 -2
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-item.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +123 -282
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown2.js +282 -123
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/src/image.js +69 -233
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +233 -69
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +12 -12
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +82 -268
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +268 -82
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/link/index.js +2 -2
- package/lib/components/link/src/link.js +26 -71
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link2.js +71 -26
- package/lib/components/link/src/link2.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown.js +166 -16
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown2.js +16 -166
- package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +74 -139
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +139 -74
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/pagination/src/components/sizes.js +71 -23
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes2.js +23 -71
- package/lib/components/pagination/src/components/sizes2.js.map +1 -1
- package/lib/components/pagination/src/components/total.js +6 -26
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +26 -6
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +51 -137
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +137 -51
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton.js +18 -48
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +48 -18
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/splitter/index.js +2 -2
- package/lib/components/splitter/src/split-panel.js +157 -17
- package/lib/components/splitter/src/split-panel.js.map +1 -1
- package/lib/components/splitter/src/split-panel2.js +17 -157
- package/lib/components/splitter/src/split-panel2.js.map +1 -1
- package/lib/components/tooltip/index.js +2 -2
- package/lib/components/tooltip/src/tooltip.js +166 -34
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +34 -166
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +3 -3
- 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/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 +3 -3
- package/lib/components/tooltip-v2/src/tooltip2.js +6 -6
- package/lib/components/tour/index.js +1 -1
- package/lib/components/tour/src/content.js +46 -67
- package/lib/components/tour/src/content.js.map +1 -1
- package/lib/components/tour/src/content2.js +67 -46
- 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/index.js +12 -12
- 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,55 +1,142 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
1
|
+
import { defineComponent, ref, computed, unref, openBlock, createBlock, mergeProps, withCtx, createVNode, createElementVNode, normalizeClass, normalizeStyle, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, renderSlot } from 'vue';
|
2
|
+
import { ElButton } from '../../button/index.mjs';
|
3
|
+
import { ElIcon } from '../../icon/index.mjs';
|
4
|
+
import { ElTooltip } from '../../tooltip/index.mjs';
|
5
|
+
import { popconfirmProps, popconfirmEmits } from './popconfirm.mjs';
|
6
|
+
import ElFocusTrap from '../../focus-trap/src/focus-trap.mjs';
|
7
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
8
|
+
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
9
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
10
|
+
import { addUnit } from '../../../utils/dom/style.mjs';
|
6
11
|
|
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
|
-
|
12
|
+
const __default__ = defineComponent({
|
13
|
+
name: "ElPopconfirm"
|
14
|
+
});
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
16
|
+
...__default__,
|
17
|
+
props: popconfirmProps,
|
18
|
+
emits: popconfirmEmits,
|
19
|
+
setup(__props, { expose, emit }) {
|
20
|
+
const props = __props;
|
21
|
+
const { t } = useLocale();
|
22
|
+
const ns = useNamespace("popconfirm");
|
23
|
+
const tooltipRef = ref();
|
24
|
+
const popperRef = computed(() => {
|
25
|
+
var _a;
|
26
|
+
return (_a = unref(tooltipRef)) == null ? void 0 : _a.popperRef;
|
27
|
+
});
|
28
|
+
const hidePopper = () => {
|
29
|
+
var _a, _b;
|
30
|
+
(_b = (_a = tooltipRef.value) == null ? void 0 : _a.onClose) == null ? void 0 : _b.call(_a);
|
31
|
+
};
|
32
|
+
const style = computed(() => {
|
33
|
+
return {
|
34
|
+
width: addUnit(props.width)
|
35
|
+
};
|
36
|
+
});
|
37
|
+
const confirm = (e) => {
|
38
|
+
emit("confirm", e);
|
39
|
+
hidePopper();
|
40
|
+
};
|
41
|
+
const cancel = (e) => {
|
42
|
+
emit("cancel", e);
|
43
|
+
hidePopper();
|
44
|
+
};
|
45
|
+
const onCloseRequested = (event) => {
|
46
|
+
if (props.closeOnPressEscape) {
|
47
|
+
cancel(event);
|
48
|
+
}
|
49
|
+
};
|
50
|
+
const finalConfirmButtonText = computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
|
51
|
+
const finalCancelButtonText = computed(() => props.cancelButtonText || t("el.popconfirm.cancelButtonText"));
|
52
|
+
expose({
|
53
|
+
popperRef,
|
54
|
+
hide: hidePopper
|
55
|
+
});
|
56
|
+
return (_ctx, _cache) => {
|
57
|
+
return openBlock(), createBlock(unref(ElTooltip), mergeProps({
|
58
|
+
ref_key: "tooltipRef",
|
59
|
+
ref: tooltipRef,
|
60
|
+
trigger: "click",
|
61
|
+
effect: _ctx.effect
|
62
|
+
}, _ctx.$attrs, {
|
63
|
+
"popper-class": `${unref(ns).namespace.value}-popover`,
|
64
|
+
"popper-style": unref(style),
|
65
|
+
teleported: _ctx.teleported,
|
66
|
+
"fallback-placements": ["bottom", "top", "right", "left"],
|
67
|
+
"hide-after": _ctx.hideAfter,
|
68
|
+
persistent: _ctx.persistent
|
69
|
+
}), {
|
70
|
+
content: withCtx(() => [
|
71
|
+
createVNode(unref(ElFocusTrap), {
|
72
|
+
loop: "",
|
73
|
+
trapped: "",
|
74
|
+
onReleaseRequested: onCloseRequested
|
75
|
+
}, {
|
76
|
+
default: withCtx(() => [
|
77
|
+
createElementVNode("div", {
|
78
|
+
class: normalizeClass(unref(ns).b())
|
79
|
+
}, [
|
80
|
+
createElementVNode("div", {
|
81
|
+
class: normalizeClass(unref(ns).e("main"))
|
82
|
+
}, [
|
83
|
+
!_ctx.hideIcon && _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
|
84
|
+
key: 0,
|
85
|
+
class: normalizeClass(unref(ns).e("icon")),
|
86
|
+
style: normalizeStyle({ color: _ctx.iconColor })
|
87
|
+
}, {
|
88
|
+
default: withCtx(() => [
|
89
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
|
90
|
+
]),
|
91
|
+
_: 1
|
92
|
+
}, 8, ["class", "style"])) : createCommentVNode("v-if", true),
|
93
|
+
createTextVNode(" " + toDisplayString(_ctx.title), 1)
|
94
|
+
], 2),
|
95
|
+
createElementVNode("div", {
|
96
|
+
class: normalizeClass(unref(ns).e("action"))
|
97
|
+
}, [
|
98
|
+
renderSlot(_ctx.$slots, "actions", {
|
99
|
+
confirm,
|
100
|
+
cancel
|
101
|
+
}, () => [
|
102
|
+
createVNode(unref(ElButton), {
|
103
|
+
size: "small",
|
104
|
+
type: _ctx.cancelButtonType === "text" ? "" : _ctx.cancelButtonType,
|
105
|
+
text: _ctx.cancelButtonType === "text",
|
106
|
+
onClick: cancel
|
107
|
+
}, {
|
108
|
+
default: withCtx(() => [
|
109
|
+
createTextVNode(toDisplayString(unref(finalCancelButtonText)), 1)
|
110
|
+
]),
|
111
|
+
_: 1
|
112
|
+
}, 8, ["type", "text"]),
|
113
|
+
createVNode(unref(ElButton), {
|
114
|
+
size: "small",
|
115
|
+
type: _ctx.confirmButtonType === "text" ? "" : _ctx.confirmButtonType,
|
116
|
+
text: _ctx.confirmButtonType === "text",
|
117
|
+
onClick: confirm
|
118
|
+
}, {
|
119
|
+
default: withCtx(() => [
|
120
|
+
createTextVNode(toDisplayString(unref(finalConfirmButtonText)), 1)
|
121
|
+
]),
|
122
|
+
_: 1
|
123
|
+
}, 8, ["type", "text"])
|
124
|
+
])
|
125
|
+
], 2)
|
126
|
+
], 2)
|
127
|
+
]),
|
128
|
+
_: 3
|
129
|
+
})
|
130
|
+
]),
|
131
|
+
default: withCtx(() => [
|
132
|
+
_ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
|
133
|
+
]),
|
134
|
+
_: 3
|
135
|
+
}, 16, ["effect", "popper-class", "popper-style", "teleported", "hide-after", "persistent"]);
|
136
|
+
};
|
47
137
|
}
|
48
138
|
});
|
49
|
-
|
50
|
-
confirm: (e) => e instanceof MouseEvent,
|
51
|
-
cancel: (e) => e instanceof MouseEvent || e instanceof KeyboardEvent
|
52
|
-
};
|
139
|
+
var Popconfirm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "popconfirm.vue"]]);
|
53
140
|
|
54
|
-
export {
|
141
|
+
export { Popconfirm as default };
|
55
142
|
//# sourceMappingURL=popconfirm2.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"popconfirm2.mjs","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.
|
1
|
+
{"version":3,"file":"popconfirm2.mjs","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.vue"],"sourcesContent":["<template>\n <el-tooltip\n ref=\"tooltipRef\"\n trigger=\"click\"\n :effect=\"effect\"\n v-bind=\"$attrs\"\n :popper-class=\"`${ns.namespace.value}-popover`\"\n :popper-style=\"style\"\n :teleported=\"teleported\"\n :fallback-placements=\"['bottom', 'top', 'right', 'left']\"\n :hide-after=\"hideAfter\"\n :persistent=\"persistent\"\n >\n <template #content>\n <el-focus-trap loop trapped @release-requested=\"onCloseRequested\">\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('main')\">\n <el-icon\n v-if=\"!hideIcon && icon\"\n :class=\"ns.e('icon')\"\n :style=\"{ color: iconColor }\"\n >\n <component :is=\"icon\" />\n </el-icon>\n {{ title }}\n </div>\n <div :class=\"ns.e('action')\">\n <slot name=\"actions\" :confirm=\"confirm\" :cancel=\"cancel\">\n <el-button\n size=\"small\"\n :type=\"cancelButtonType === 'text' ? '' : cancelButtonType\"\n :text=\"cancelButtonType === 'text'\"\n @click=\"cancel\"\n >\n {{ finalCancelButtonText }}\n </el-button>\n <el-button\n size=\"small\"\n :type=\"confirmButtonType === 'text' ? '' : confirmButtonType\"\n :text=\"confirmButtonType === 'text'\"\n @click=\"confirm\"\n >\n {{ finalConfirmButtonText }}\n </el-button>\n </slot>\n </div>\n </div>\n </el-focus-trap>\n </template>\n <template v-if=\"$slots.reference\">\n <slot name=\"reference\" />\n </template>\n </el-tooltip>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, unref } from 'vue'\nimport ElButton from '@element-plus/components/button'\nimport ElIcon from '@element-plus/components/icon'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { addUnit } from '@element-plus/utils'\nimport { popconfirmEmits, popconfirmProps } from './popconfirm'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\n\nimport type { TooltipInstance } from '@element-plus/components/tooltip'\n\ndefineOptions({\n name: 'ElPopconfirm',\n})\n\nconst props = defineProps(popconfirmProps)\nconst emit = defineEmits(popconfirmEmits)\n\nconst { t } = useLocale()\nconst ns = useNamespace('popconfirm')\nconst tooltipRef = ref<TooltipInstance>()\nconst popperRef = computed(() => {\n return unref(tooltipRef)?.popperRef\n})\n\nconst hidePopper = () => {\n tooltipRef.value?.onClose?.()\n}\n\nconst style = computed(() => {\n return {\n width: addUnit(props.width),\n }\n})\n\nconst confirm = (e: MouseEvent) => {\n emit('confirm', e)\n hidePopper()\n}\nconst cancel = (e: MouseEvent | KeyboardEvent) => {\n emit('cancel', e)\n hidePopper()\n}\n\nconst onCloseRequested = (event: KeyboardEvent) => {\n if (props.closeOnPressEscape) {\n cancel(event)\n }\n}\n\nconst finalConfirmButtonText = computed(\n () => props.confirmButtonText || t('el.popconfirm.confirmButtonText')\n)\nconst finalCancelButtonText = computed(\n () => props.cancelButtonText || t('el.popconfirm.cancelButtonText')\n)\n\ndefineExpose({\n popperRef,\n hide: hidePopper,\n})\n</script>\n"],"names":["_openBlock","_createBlock","_unref","_mergeProps"],"mappings":";;;;;;;;;;;mCAmEc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAa,GAAqB,EAAA,CAAA;AACxC,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAC/B,MAAO,IAAA,EAAA,CAAA;AAAmB,MAC3B,OAAA,CAAA,EAAA,GAAA,KAAA,CAAA,UAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,SAAA,CAAA;AAED,KAAA,CAAA,CAAA;AACE,IAAA,MAAA,mBAA4B;AAAA,MAC9B,IAAA,EAAA,EAAA,EAAA,CAAA;AAEA,MAAM,CAAA,EAAA,GAAA,CAAA,EAAA,GAAQ,UAAe,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,OAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,EAAA,CAAA,CAAA;AAC3B,KAAO,CAAA;AAAA,IACL,MAAA,KAAO,GAAQ,QAAA,CAAA,MAAW;AAAA,MAC5B,OAAA;AAAA,QACD,KAAA,EAAA,OAAA,CAAA,KAAA,CAAA,KAAA,CAAA;AAED,OAAM,CAAA;AACJ,KAAA,CAAA,CAAA;AACA,IAAW,MAAA,OAAA,GAAA,CAAA,CAAA,KAAA;AAAA,MACb,IAAA,CAAA,SAAA,EAAA,CAAA,CAAA,CAAA;AACA,MAAM,UAAA,EAAA,CAAS;AACb,KAAA,CAAA;AACA,IAAW,MAAA,MAAA,GAAA,CAAA,CAAA,KAAA;AAAA,MACb,IAAA,CAAA,QAAA,EAAA,CAAA,CAAA,CAAA;AAEA,MAAM,UAAA,EAAA,CAAA;AACJ,KAAA,CAAA;AACE,IAAA,MAAA,gBAAY,GAAA,CAAA,KAAA,KAAA;AAAA,MACd,IAAA,KAAA,CAAA,kBAAA,EAAA;AAAA,QACF,MAAA,CAAA,KAAA,CAAA,CAAA;AAEA,OAAA;AAA+B,KAAA,CAC7B;AAAoE,IACtE,MAAA,sBAAA,GAAA,QAAA,CAAA,MAAA,KAAA,CAAA,iBAAA,IAAA,CAAA,CAAA,iCAAA,CAAA,CAAA,CAAA;AACA,IAAA,MAAM,qBAAwB,GAAA,QAAA,CAAA,MAAA,KAAA,CAAA,gBAAA,IAAA,CAAA,CAAA,gCAAA,CAAA,CAAA,CAAA;AAAA,IAAA,MACtB,CAAA;AAA4D,MACpE,SAAA;AAEA,MAAa,IAAA,EAAA,UAAA;AAAA,KACX,CAAA,CAAA;AAAA,IAAA,OACM,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MACP,OAAAA,SAAA,EAAA,EAAAC,WAAA,CAAAC,KAAA,CAAA,SAAA,CAAA,EAAAC,UAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { dropdownProps } from '../../dropdown/src/
|
1
|
+
import { dropdownProps } from '../../dropdown/src/dropdown.mjs';
|
2
2
|
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
3
3
|
import { useTooltipTriggerProps } from '../../tooltip/src/trigger.mjs';
|
4
4
|
import { useTooltipContentProps } from '../../tooltip/src/content.mjs';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import Skeleton from './src/
|
1
|
+
import Skeleton from './src/skeleton2.mjs';
|
2
2
|
import SkeletonItem from './src/skeleton-item2.mjs';
|
3
|
-
export { skeletonProps } from './src/
|
3
|
+
export { skeletonProps } from './src/skeleton.mjs';
|
4
4
|
export { skeletonItemProps } from './src/skeleton-item.mjs';
|
5
5
|
import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
|
6
6
|
|
@@ -1,53 +1,23 @@
|
|
1
|
-
import {
|
2
|
-
import { skeletonProps } from './skeleton2.mjs';
|
3
|
-
import SkeletonItem from './skeleton-item2.mjs';
|
4
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
5
|
-
import { useThrottleRender } from '../../../hooks/use-throttle-render/index.mjs';
|
6
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
1
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
7
2
|
|
8
|
-
const
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
class: [unref(ns).b(), unref(ns).is("animated", _ctx.animated)]
|
25
|
-
}, _ctx.$attrs), [
|
26
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (i) => {
|
27
|
-
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
28
|
-
unref(uiLoading) ? renderSlot(_ctx.$slots, "template", { key: i }, () => [
|
29
|
-
createVNode(SkeletonItem, {
|
30
|
-
class: normalizeClass(unref(ns).is("first")),
|
31
|
-
variant: "p"
|
32
|
-
}, null, 8, ["class"]),
|
33
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.rows, (item) => {
|
34
|
-
return openBlock(), createBlock(SkeletonItem, {
|
35
|
-
key: item,
|
36
|
-
class: normalizeClass([
|
37
|
-
unref(ns).e("paragraph"),
|
38
|
-
unref(ns).is("last", item === _ctx.rows && _ctx.rows > 1)
|
39
|
-
]),
|
40
|
-
variant: "p"
|
41
|
-
}, null, 8, ["class"]);
|
42
|
-
}), 128))
|
43
|
-
]) : createCommentVNode("v-if", true)
|
44
|
-
], 64);
|
45
|
-
}), 128))
|
46
|
-
], 16)) : renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 1 }, _ctx.$attrs)));
|
47
|
-
};
|
3
|
+
const skeletonProps = buildProps({
|
4
|
+
animated: Boolean,
|
5
|
+
count: {
|
6
|
+
type: Number,
|
7
|
+
default: 1
|
8
|
+
},
|
9
|
+
rows: {
|
10
|
+
type: Number,
|
11
|
+
default: 3
|
12
|
+
},
|
13
|
+
loading: {
|
14
|
+
type: Boolean,
|
15
|
+
default: true
|
16
|
+
},
|
17
|
+
throttle: {
|
18
|
+
type: definePropType([Number, Object])
|
48
19
|
}
|
49
20
|
});
|
50
|
-
var Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "skeleton.vue"]]);
|
51
21
|
|
52
|
-
export {
|
22
|
+
export { skeletonProps };
|
53
23
|
//# sourceMappingURL=skeleton.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"skeleton.mjs","sources":["../../../../../../packages/components/skeleton/src/skeleton.
|
1
|
+
{"version":3,"file":"skeleton.mjs","sources":["../../../../../../packages/components/skeleton/src/skeleton.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type Skeleton from './skeleton.vue'\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type { ThrottleType } from '@element-plus/hooks'\n\nexport const skeletonProps = buildProps({\n /**\n * @description whether showing the animation\n */\n animated: Boolean,\n /**\n * @description how many fake items to render to the DOM\n */\n count: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether showing the real DOM\n */\n rows: {\n type: Number,\n default: 3,\n },\n /**\n * @description numbers of the row, only useful when no template slot were given\n */\n loading: {\n type: Boolean,\n default: true,\n },\n /**\n * @description rendering delay in milliseconds\n */\n throttle: {\n type: definePropType<ThrottleType>([Number, Object]),\n },\n} as const)\nexport type SkeletonProps = ExtractPropTypes<typeof skeletonProps>\nexport type SkeletonPropsPublic = __ExtractPublicPropTypes<typeof skeletonProps>\n\nexport type SkeletonInstance = InstanceType<typeof Skeleton> & unknown\n"],"names":[],"mappings":";;AACY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,GAAG;AACH,CAAC;;;;"}
|
@@ -1,23 +1,53 @@
|
|
1
|
-
import {
|
1
|
+
import { defineComponent, toRef, unref, openBlock, createElementBlock, mergeProps, Fragment, renderList, renderSlot, createVNode, normalizeClass, createBlock, createCommentVNode, normalizeProps } from 'vue';
|
2
|
+
import { skeletonProps } from './skeleton.mjs';
|
3
|
+
import SkeletonItem from './skeleton-item2.mjs';
|
4
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
5
|
+
import { useThrottleRender } from '../../../hooks/use-throttle-render/index.mjs';
|
6
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
2
7
|
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
8
|
+
const __default__ = defineComponent({
|
9
|
+
name: "ElSkeleton"
|
10
|
+
});
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
12
|
+
...__default__,
|
13
|
+
props: skeletonProps,
|
14
|
+
setup(__props, { expose }) {
|
15
|
+
const props = __props;
|
16
|
+
const ns = useNamespace("skeleton");
|
17
|
+
const uiLoading = useThrottleRender(toRef(props, "loading"), props.throttle);
|
18
|
+
expose({
|
19
|
+
uiLoading
|
20
|
+
});
|
21
|
+
return (_ctx, _cache) => {
|
22
|
+
return unref(uiLoading) ? (openBlock(), createElementBlock("div", mergeProps({
|
23
|
+
key: 0,
|
24
|
+
class: [unref(ns).b(), unref(ns).is("animated", _ctx.animated)]
|
25
|
+
}, _ctx.$attrs), [
|
26
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (i) => {
|
27
|
+
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
28
|
+
unref(uiLoading) ? renderSlot(_ctx.$slots, "template", { key: i }, () => [
|
29
|
+
createVNode(SkeletonItem, {
|
30
|
+
class: normalizeClass(unref(ns).is("first")),
|
31
|
+
variant: "p"
|
32
|
+
}, null, 8, ["class"]),
|
33
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.rows, (item) => {
|
34
|
+
return openBlock(), createBlock(SkeletonItem, {
|
35
|
+
key: item,
|
36
|
+
class: normalizeClass([
|
37
|
+
unref(ns).e("paragraph"),
|
38
|
+
unref(ns).is("last", item === _ctx.rows && _ctx.rows > 1)
|
39
|
+
]),
|
40
|
+
variant: "p"
|
41
|
+
}, null, 8, ["class"]);
|
42
|
+
}), 128))
|
43
|
+
]) : createCommentVNode("v-if", true)
|
44
|
+
], 64);
|
45
|
+
}), 128))
|
46
|
+
], 16)) : renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 1 }, _ctx.$attrs)));
|
47
|
+
};
|
19
48
|
}
|
20
49
|
});
|
50
|
+
var Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "skeleton.vue"]]);
|
21
51
|
|
22
|
-
export {
|
52
|
+
export { Skeleton as default };
|
23
53
|
//# sourceMappingURL=skeleton2.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"skeleton2.mjs","sources":["../../../../../../packages/components/skeleton/src/skeleton.
|
1
|
+
{"version":3,"file":"skeleton2.mjs","sources":["../../../../../../packages/components/skeleton/src/skeleton.vue"],"sourcesContent":["<template>\n <template v-if=\"uiLoading\">\n <div :class=\"[ns.b(), ns.is('animated', animated)]\" v-bind=\"$attrs\">\n <template v-for=\"i in count\" :key=\"i\">\n <slot v-if=\"uiLoading\" :key=\"i\" name=\"template\">\n <el-skeleton-item :class=\"ns.is('first')\" variant=\"p\" />\n <el-skeleton-item\n v-for=\"item in rows\"\n :key=\"item\"\n :class=\"[\n ns.e('paragraph'),\n ns.is('last', item === rows && rows > 1),\n ]\"\n variant=\"p\"\n />\n </slot>\n </template>\n </div>\n </template>\n <template v-else>\n <slot v-bind=\"$attrs\" />\n </template>\n</template>\n\n<script lang=\"ts\" setup>\nimport { toRef } from 'vue'\nimport { useNamespace, useThrottleRender } from '@element-plus/hooks'\nimport { skeletonProps } from './skeleton'\nimport ElSkeletonItem from './skeleton-item.vue'\n\ndefineOptions({\n name: 'ElSkeleton',\n})\nconst props = defineProps(skeletonProps)\n\nconst ns = useNamespace('skeleton')\nconst uiLoading = useThrottleRender(toRef(props, 'loading'), props.throttle)\n\ndefineExpose({\n /** @description loading state */\n uiLoading,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;mCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAClC,IAAA,MAAM,YAAY,iBAAkB,CAAA,KAAA,CAAM,OAAO,SAAS,CAAA,EAAG,MAAM,QAAQ,CAAA,CAAA;AAE3E,IAAa,MAAA,CAAA;AAAA,MAAA,SAAA;AAAA,KAEX,CAAA,CAAA;AAAA,IACF,OAAC,CAAA,IAAA,EAAA,MAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import Splitter from './src/splitter2.mjs';
|
2
|
-
import SplitPanel from './src/split-
|
2
|
+
import SplitPanel from './src/split-panel.mjs';
|
3
3
|
export { splitterProps } from './src/splitter.mjs';
|
4
|
-
export { splitterPanelProps } from './src/split-
|
4
|
+
export { splitterPanelProps } from './src/split-panel2.mjs';
|
5
5
|
import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
|
6
6
|
|
7
7
|
const ElSplitter = withInstall(Splitter, {
|
@@ -1,21 +1,161 @@
|
|
1
|
-
import {
|
1
|
+
import { defineComponent, inject, toRefs, ref, getCurrentInstance, computed, watch, nextTick, reactive, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, mergeProps, unref, renderSlot, createBlock, withCtx, createCommentVNode } from 'vue';
|
2
|
+
import { isCollapsible, getCollapsible } from './hooks/usePanel.mjs';
|
3
|
+
import SplitBar from './split-bar.mjs';
|
4
|
+
import { splitterPanelProps } from './split-panel2.mjs';
|
5
|
+
import { splitterRootContextKey } from './type.mjs';
|
6
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
7
|
+
import { isPct, getPct, isPx, getPx } from './hooks/useSize.mjs';
|
8
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
9
|
+
import { throwError } from '../../../utils/error.mjs';
|
2
10
|
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
},
|
7
|
-
max: {
|
8
|
-
type: [String, Number]
|
9
|
-
},
|
10
|
-
size: {
|
11
|
-
type: [String, Number]
|
12
|
-
},
|
13
|
-
resizable: {
|
14
|
-
type: Boolean,
|
15
|
-
default: true
|
16
|
-
},
|
17
|
-
collapsible: Boolean
|
11
|
+
const COMPONENT_NAME = "ElSplitterPanel";
|
12
|
+
const __default__ = defineComponent({
|
13
|
+
name: COMPONENT_NAME
|
18
14
|
});
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
16
|
+
...__default__,
|
17
|
+
props: splitterPanelProps,
|
18
|
+
emits: ["update:size"],
|
19
|
+
setup(__props, { emit: emits }) {
|
20
|
+
const props = __props;
|
21
|
+
const ns = useNamespace("splitter-panel");
|
22
|
+
const splitterContext = inject(splitterRootContextKey);
|
23
|
+
if (!splitterContext)
|
24
|
+
throwError(COMPONENT_NAME, "usage: <el-splitter><el-splitter-panel /></el-splitter/>");
|
25
|
+
const { panels, layout, lazy, containerSize, pxSizes } = toRefs(splitterContext);
|
26
|
+
const {
|
27
|
+
registerPanel,
|
28
|
+
unregisterPanel,
|
29
|
+
onCollapse,
|
30
|
+
onMoveEnd,
|
31
|
+
onMoveStart,
|
32
|
+
onMoving
|
33
|
+
} = splitterContext;
|
34
|
+
const panelEl = ref();
|
35
|
+
const instance = getCurrentInstance();
|
36
|
+
const uid = instance.uid;
|
37
|
+
const index = ref(0);
|
38
|
+
const panel = computed(() => panels.value[index.value]);
|
39
|
+
const setIndex = (val) => {
|
40
|
+
index.value = val;
|
41
|
+
};
|
42
|
+
const panelSize = computed(() => {
|
43
|
+
var _a;
|
44
|
+
if (!panel.value)
|
45
|
+
return 0;
|
46
|
+
return (_a = pxSizes.value[index.value]) != null ? _a : 0;
|
47
|
+
});
|
48
|
+
const nextSize = computed(() => {
|
49
|
+
var _a;
|
50
|
+
if (!panel.value)
|
51
|
+
return 0;
|
52
|
+
return (_a = pxSizes.value[index.value + 1]) != null ? _a : 0;
|
53
|
+
});
|
54
|
+
const nextPanel = computed(() => {
|
55
|
+
if (panel.value) {
|
56
|
+
return panels.value[index.value + 1];
|
57
|
+
}
|
58
|
+
return null;
|
59
|
+
});
|
60
|
+
const isResizable = computed(() => {
|
61
|
+
var _a;
|
62
|
+
if (!nextPanel.value)
|
63
|
+
return false;
|
64
|
+
return props.resizable && ((_a = nextPanel.value) == null ? void 0 : _a.resizable) && (panelSize.value !== 0 || !props.min) && (nextSize.value !== 0 || !nextPanel.value.min);
|
65
|
+
});
|
66
|
+
const isShowBar = computed(() => {
|
67
|
+
if (!panel.value)
|
68
|
+
return false;
|
69
|
+
return index.value !== panels.value.length - 1;
|
70
|
+
});
|
71
|
+
const startCollapsible = computed(() => isCollapsible(panel.value, panelSize.value, nextPanel.value, nextSize.value));
|
72
|
+
const endCollapsible = computed(() => isCollapsible(nextPanel.value, nextSize.value, panel.value, panelSize.value));
|
73
|
+
function sizeToPx(str) {
|
74
|
+
if (isPct(str)) {
|
75
|
+
return getPct(str) * containerSize.value || 0;
|
76
|
+
} else if (isPx(str)) {
|
77
|
+
return getPx(str);
|
78
|
+
}
|
79
|
+
return str != null ? str : 0;
|
80
|
+
}
|
81
|
+
let isSizeUpdating = false;
|
82
|
+
watch(() => props.size, () => {
|
83
|
+
if (!isSizeUpdating && panel.value) {
|
84
|
+
if (!containerSize.value) {
|
85
|
+
panel.value.size = props.size;
|
86
|
+
return;
|
87
|
+
}
|
88
|
+
const size = sizeToPx(props.size);
|
89
|
+
const maxSize = sizeToPx(props.max);
|
90
|
+
const minSize = sizeToPx(props.min);
|
91
|
+
const finalSize = Math.min(Math.max(size, minSize || 0), maxSize || size);
|
92
|
+
if (finalSize !== size) {
|
93
|
+
emits("update:size", finalSize);
|
94
|
+
}
|
95
|
+
panel.value.size = finalSize;
|
96
|
+
}
|
97
|
+
});
|
98
|
+
watch(() => {
|
99
|
+
var _a;
|
100
|
+
return (_a = panel.value) == null ? void 0 : _a.size;
|
101
|
+
}, (val) => {
|
102
|
+
if (val !== props.size) {
|
103
|
+
isSizeUpdating = true;
|
104
|
+
emits("update:size", val);
|
105
|
+
nextTick(() => isSizeUpdating = false);
|
106
|
+
}
|
107
|
+
});
|
108
|
+
watch(() => props.resizable, (val) => {
|
109
|
+
if (panel.value) {
|
110
|
+
panel.value.resizable = val;
|
111
|
+
}
|
112
|
+
});
|
113
|
+
const _panel = reactive({
|
114
|
+
el: panelEl.value,
|
115
|
+
uid,
|
116
|
+
getVnode: () => instance.vnode,
|
117
|
+
setIndex,
|
118
|
+
...props,
|
119
|
+
collapsible: computed(() => getCollapsible(props.collapsible))
|
120
|
+
});
|
121
|
+
registerPanel(_panel);
|
122
|
+
onBeforeUnmount(() => unregisterPanel(_panel));
|
123
|
+
return (_ctx, _cache) => {
|
124
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
125
|
+
createElementVNode("div", mergeProps({
|
126
|
+
ref_key: "panelEl",
|
127
|
+
ref: panelEl,
|
128
|
+
class: [unref(ns).b()],
|
129
|
+
style: { flexBasis: `${unref(panelSize)}px` }
|
130
|
+
}, _ctx.$attrs), [
|
131
|
+
renderSlot(_ctx.$slots, "default")
|
132
|
+
], 16),
|
133
|
+
unref(isShowBar) ? (openBlock(), createBlock(SplitBar, {
|
134
|
+
key: 0,
|
135
|
+
index: index.value,
|
136
|
+
layout: unref(layout),
|
137
|
+
lazy: unref(lazy),
|
138
|
+
resizable: unref(isResizable),
|
139
|
+
"start-collapsible": unref(startCollapsible),
|
140
|
+
"end-collapsible": unref(endCollapsible),
|
141
|
+
onMoveStart: unref(onMoveStart),
|
142
|
+
onMoving: unref(onMoving),
|
143
|
+
onMoveEnd: unref(onMoveEnd),
|
144
|
+
onCollapse: unref(onCollapse)
|
145
|
+
}, {
|
146
|
+
"start-collapsible": withCtx(() => [
|
147
|
+
renderSlot(_ctx.$slots, "start-collapsible")
|
148
|
+
]),
|
149
|
+
"end-collapsible": withCtx(() => [
|
150
|
+
renderSlot(_ctx.$slots, "end-collapsible")
|
151
|
+
]),
|
152
|
+
_: 3
|
153
|
+
}, 8, ["index", "layout", "lazy", "resizable", "start-collapsible", "end-collapsible", "onMoveStart", "onMoving", "onMoveEnd", "onCollapse"])) : createCommentVNode("v-if", true)
|
154
|
+
], 64);
|
155
|
+
};
|
156
|
+
}
|
157
|
+
});
|
158
|
+
var SplitPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "split-panel.vue"]]);
|
19
159
|
|
20
|
-
export {
|
160
|
+
export { SplitPanel as default };
|
21
161
|
//# sourceMappingURL=split-panel.mjs.map
|