@element-plus/nightly 0.0.20260105 → 0.0.20260106
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 +4 -5
- package/dist/index.full.min.js +10 -10
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +10 -10
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +4 -5
- 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/affix/src/affix.mjs +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +39 -135
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +135 -39
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +60 -486
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +486 -60
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +83 -31
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +31 -83
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +196 -23
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +23 -196
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/dialog/src/dialog-content.mjs +38 -112
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +112 -38
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +2 -2
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/divider/index.mjs +2 -2
- package/es/components/divider/src/divider.mjs +43 -15
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider2.mjs +15 -43
- package/es/components/divider/src/divider2.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +31 -225
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +225 -31
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/index.mjs +20 -20
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +586 -124
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +124 -586
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag.mjs +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/pagination/src/components/jumper.mjs +69 -7
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +7 -69
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/components/pager.mjs +229 -15
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +15 -229
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popover/index.mjs +2 -2
- package/es/components/popover/src/popover.mjs +120 -65
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover2.mjs +65 -120
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/arrow.mjs +38 -7
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +7 -38
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +1 -1
- package/es/components/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +256 -52
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +52 -256
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +295 -85
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +85 -295
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +96 -29
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +29 -96
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +2 -2
- package/es/components/scrollbar/src/scrollbar.mjs +244 -56
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +56 -244
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +2 -2
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton.mjs +67 -17
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +17 -67
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/splitter/index.mjs +2 -2
- package/es/components/splitter/src/splitter.mjs +14 -114
- package/es/components/splitter/src/splitter.mjs.map +1 -1
- package/es/components/splitter/src/splitter2.mjs +114 -14
- package/es/components/splitter/src/splitter2.mjs.map +1 -1
- package/es/components/table/src/store/current.mjs +2 -4
- package/es/components/table/src/store/current.mjs.map +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +131 -26
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +26 -131
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +18 -8
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +8 -18
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +66 -20
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +20 -66
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/time-select/index.mjs +2 -2
- package/es/components/time-select/src/time-select.mjs +138 -66
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select2.mjs +66 -138
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/step.mjs +255 -43
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +43 -255
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour.mjs +1 -1
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +173 -20
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +20 -173
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/index.mjs +20 -20
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix.js +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +40 -134
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +134 -40
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +59 -484
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +484 -59
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +83 -31
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +31 -83
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +196 -24
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +24 -196
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/dialog/src/dialog-content.js +38 -111
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +111 -38
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +2 -2
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/divider/index.js +2 -2
- package/lib/components/divider/src/divider.js +43 -15
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider2.js +15 -43
- package/lib/components/divider/src/divider2.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +32 -225
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +225 -32
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/index.js +20 -20
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +582 -121
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +121 -582
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-tag/src/input-tag.js +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/pagination/src/components/jumper.js +69 -7
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +7 -69
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/components/pager.js +229 -15
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +15 -229
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popover/index.js +2 -2
- package/lib/components/popover/src/popover.js +120 -66
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover2.js +66 -120
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/arrow.js +38 -8
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +8 -38
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/content.js +1 -1
- package/lib/components/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +256 -52
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js +52 -256
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +294 -85
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +85 -294
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +96 -31
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +31 -96
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/src/scrollbar.js +244 -57
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +57 -244
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/select/src/select.js +2 -2
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton.js +67 -17
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +17 -67
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/splitter/index.js +2 -2
- package/lib/components/splitter/src/splitter.js +15 -114
- package/lib/components/splitter/src/splitter.js.map +1 -1
- package/lib/components/splitter/src/splitter2.js +114 -15
- package/lib/components/splitter/src/splitter2.js.map +1 -1
- package/lib/components/table/src/store/current.js +2 -4
- package/lib/components/table/src/store/current.js.map +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +131 -27
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +27 -131
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +18 -8
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +8 -18
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +66 -20
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +20 -66
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/time-select/index.js +2 -2
- package/lib/components/time-select/src/time-select.js +143 -66
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select2.js +66 -143
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/step.js +254 -43
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +43 -254
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour.js +1 -1
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +173 -22
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +22 -173
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/index.js +20 -20
- 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
|
@@ -2,122 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var splitter = require('./splitter2.js');
|
|
7
|
-
var type = require('./type.js');
|
|
8
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
9
|
-
var useContainer = require('./hooks/useContainer.js');
|
|
10
|
-
var useSize = require('./hooks/useSize.js');
|
|
11
|
-
var useResize = require('./hooks/useResize.js');
|
|
12
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
13
|
-
var index$1 = require('../../../hooks/use-ordered-children/index.js');
|
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
14
6
|
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
const splitterProps = runtime.buildProps({
|
|
8
|
+
layout: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: "horizontal",
|
|
11
|
+
values: ["horizontal", "vertical"]
|
|
18
12
|
},
|
|
19
|
-
|
|
20
|
-
props: splitter.splitterProps,
|
|
21
|
-
emits: splitter.splitterEmits,
|
|
22
|
-
setup(__props, { emit: __emit }) {
|
|
23
|
-
const ns = index.useNamespace("splitter");
|
|
24
|
-
const emits = __emit;
|
|
25
|
-
const props = __props;
|
|
26
|
-
const layout = vue.toRef(props, "layout");
|
|
27
|
-
const lazy = vue.toRef(props, "lazy");
|
|
28
|
-
const { containerEl, containerSize } = useContainer.useContainer(layout);
|
|
29
|
-
const {
|
|
30
|
-
removeChild: unregisterPanel,
|
|
31
|
-
children: panels,
|
|
32
|
-
addChild: registerPanel,
|
|
33
|
-
ChildrenSorter: PanelsSorter
|
|
34
|
-
} = index$1.useOrderedChildren(vue.getCurrentInstance(), "ElSplitterPanel");
|
|
35
|
-
vue.watch(panels, () => {
|
|
36
|
-
movingIndex.value = null;
|
|
37
|
-
panels.value.forEach((instance, index) => {
|
|
38
|
-
instance.setIndex(index);
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
const { percentSizes, pxSizes } = useSize.useSize(panels, containerSize);
|
|
42
|
-
const {
|
|
43
|
-
lazyOffset,
|
|
44
|
-
movingIndex,
|
|
45
|
-
onMoveStart,
|
|
46
|
-
onMoving,
|
|
47
|
-
onMoveEnd,
|
|
48
|
-
onCollapse
|
|
49
|
-
} = useResize.useResize(panels, containerSize, pxSizes, lazy);
|
|
50
|
-
const splitterStyles = vue.computed(() => {
|
|
51
|
-
return {
|
|
52
|
-
[ns.cssVarBlockName("bar-offset")]: lazy.value ? `${lazyOffset.value}px` : void 0
|
|
53
|
-
};
|
|
54
|
-
});
|
|
55
|
-
const onResizeStart = (index) => {
|
|
56
|
-
onMoveStart(index);
|
|
57
|
-
emits("resizeStart", index, pxSizes.value);
|
|
58
|
-
};
|
|
59
|
-
const onResize = (index, offset) => {
|
|
60
|
-
onMoving(index, offset);
|
|
61
|
-
if (!lazy.value) {
|
|
62
|
-
emits("resize", index, pxSizes.value);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
const onResizeEnd = async (index) => {
|
|
66
|
-
onMoveEnd();
|
|
67
|
-
await vue.nextTick();
|
|
68
|
-
emits("resizeEnd", index, pxSizes.value);
|
|
69
|
-
};
|
|
70
|
-
const onCollapsible = (index, type) => {
|
|
71
|
-
onCollapse(index, type);
|
|
72
|
-
emits("collapse", index, type, pxSizes.value);
|
|
73
|
-
};
|
|
74
|
-
vue.provide(
|
|
75
|
-
type.splitterRootContextKey,
|
|
76
|
-
vue.reactive({
|
|
77
|
-
panels,
|
|
78
|
-
percentSizes,
|
|
79
|
-
pxSizes,
|
|
80
|
-
layout,
|
|
81
|
-
lazy,
|
|
82
|
-
movingIndex,
|
|
83
|
-
containerSize,
|
|
84
|
-
onMoveStart: onResizeStart,
|
|
85
|
-
onMoving: onResize,
|
|
86
|
-
onMoveEnd: onResizeEnd,
|
|
87
|
-
onCollapse: onCollapsible,
|
|
88
|
-
registerPanel,
|
|
89
|
-
unregisterPanel
|
|
90
|
-
})
|
|
91
|
-
);
|
|
92
|
-
return (_ctx, _cache) => {
|
|
93
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
94
|
-
"div",
|
|
95
|
-
{
|
|
96
|
-
ref_key: "containerEl",
|
|
97
|
-
ref: containerEl,
|
|
98
|
-
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).e(layout.value)]),
|
|
99
|
-
style: vue.normalizeStyle(splitterStyles.value)
|
|
100
|
-
},
|
|
101
|
-
[
|
|
102
|
-
vue.renderSlot(_ctx.$slots, "default"),
|
|
103
|
-
vue.createVNode(vue.unref(PanelsSorter)),
|
|
104
|
-
vue.createCommentVNode(" Prevent iframe touch events from breaking "),
|
|
105
|
-
vue.unref(movingIndex) ? (vue.openBlock(), vue.createElementBlock(
|
|
106
|
-
"div",
|
|
107
|
-
{
|
|
108
|
-
key: 0,
|
|
109
|
-
class: vue.normalizeClass([vue.unref(ns).e("mask"), vue.unref(ns).e(`mask-${layout.value}`)])
|
|
110
|
-
},
|
|
111
|
-
null,
|
|
112
|
-
2
|
|
113
|
-
)) : vue.createCommentVNode("v-if", true)
|
|
114
|
-
],
|
|
115
|
-
6
|
|
116
|
-
);
|
|
117
|
-
};
|
|
118
|
-
}
|
|
13
|
+
lazy: Boolean
|
|
119
14
|
});
|
|
120
|
-
|
|
15
|
+
const splitterEmits = {
|
|
16
|
+
resizeStart: (index, sizes) => true,
|
|
17
|
+
resize: (index, sizes) => true,
|
|
18
|
+
resizeEnd: (index, sizes) => true,
|
|
19
|
+
collapse: (index, type, sizes) => true
|
|
20
|
+
};
|
|
121
21
|
|
|
122
|
-
exports
|
|
22
|
+
exports.splitterEmits = splitterEmits;
|
|
23
|
+
exports.splitterProps = splitterProps;
|
|
123
24
|
//# sourceMappingURL=splitter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitter.js","sources":["../../../../../../packages/components/splitter/src/splitter.
|
|
1
|
+
{"version":3,"file":"splitter.js","sources":["../../../../../../packages/components/splitter/src/splitter.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type Splitter from './splitter.vue'\n\nexport const splitterProps = buildProps({\n layout: {\n type: String,\n default: 'horizontal',\n values: ['horizontal', 'vertical'] as const,\n },\n lazy: Boolean,\n} as const)\n\nexport type SplitterProps = ExtractPropTypes<typeof splitterProps>\nexport type SplitterPropsPublic = ExtractPublicPropTypes<typeof splitterProps>\nexport type SplitterInstance = InstanceType<typeof Splitter> & unknown\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\nexport const splitterEmits = {\n resizeStart: (index: number, sizes: number[]) => true,\n resize: (index: number, sizes: number[]) => true,\n resizeEnd: (index: number, sizes: number[]) => true,\n collapse: (index: number, type: 'start' | 'end', sizes: number[]) => true,\n}\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\nexport type SplitterEmits = typeof splitterEmits\n"],"names":["buildProps"],"mappings":";;;;;;AAKO,MAAM,gBAAgBA,kBAAW,CAAA;AAAA,EACtC,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,YAAA;AAAA,IACT,MAAA,EAAQ,CAAC,YAAA,EAAc,UAAU,CAAA;AAAA,GACnC;AAAA,EACA,IAAM,EAAA,OAAA;AACR,CAAU,EAAA;AAOH,MAAM,aAAgB,GAAA;AAAA,EAC3B,WAAA,EAAa,CAAC,KAAA,EAAe,KAAoB,KAAA,IAAA;AAAA,EACjD,MAAA,EAAQ,CAAC,KAAA,EAAe,KAAoB,KAAA,IAAA;AAAA,EAC5C,SAAA,EAAW,CAAC,KAAA,EAAe,KAAoB,KAAA,IAAA;AAAA,EAC/C,QAAU,EAAA,CAAC,KAAe,EAAA,IAAA,EAAuB,KAAoB,KAAA,IAAA;AACvE;;;;;"}
|
|
@@ -2,23 +2,122 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var splitter = require('./splitter.js');
|
|
7
|
+
var type = require('./type.js');
|
|
8
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
9
|
+
var useContainer = require('./hooks/useContainer.js');
|
|
10
|
+
var useSize = require('./hooks/useSize.js');
|
|
11
|
+
var useResize = require('./hooks/useResize.js');
|
|
12
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
13
|
+
var index$1 = require('../../../hooks/use-ordered-children/index.js');
|
|
6
14
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
default: "horizontal",
|
|
11
|
-
values: ["horizontal", "vertical"]
|
|
15
|
+
const _sfc_main = vue.defineComponent({
|
|
16
|
+
...{
|
|
17
|
+
name: "ElSplitter"
|
|
12
18
|
},
|
|
13
|
-
|
|
19
|
+
__name: "splitter",
|
|
20
|
+
props: splitter.splitterProps,
|
|
21
|
+
emits: splitter.splitterEmits,
|
|
22
|
+
setup(__props, { emit: __emit }) {
|
|
23
|
+
const ns = index.useNamespace("splitter");
|
|
24
|
+
const emits = __emit;
|
|
25
|
+
const props = __props;
|
|
26
|
+
const layout = vue.toRef(props, "layout");
|
|
27
|
+
const lazy = vue.toRef(props, "lazy");
|
|
28
|
+
const { containerEl, containerSize } = useContainer.useContainer(layout);
|
|
29
|
+
const {
|
|
30
|
+
removeChild: unregisterPanel,
|
|
31
|
+
children: panels,
|
|
32
|
+
addChild: registerPanel,
|
|
33
|
+
ChildrenSorter: PanelsSorter
|
|
34
|
+
} = index$1.useOrderedChildren(vue.getCurrentInstance(), "ElSplitterPanel");
|
|
35
|
+
vue.watch(panels, () => {
|
|
36
|
+
movingIndex.value = null;
|
|
37
|
+
panels.value.forEach((instance, index) => {
|
|
38
|
+
instance.setIndex(index);
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
const { percentSizes, pxSizes } = useSize.useSize(panels, containerSize);
|
|
42
|
+
const {
|
|
43
|
+
lazyOffset,
|
|
44
|
+
movingIndex,
|
|
45
|
+
onMoveStart,
|
|
46
|
+
onMoving,
|
|
47
|
+
onMoveEnd,
|
|
48
|
+
onCollapse
|
|
49
|
+
} = useResize.useResize(panels, containerSize, pxSizes, lazy);
|
|
50
|
+
const splitterStyles = vue.computed(() => {
|
|
51
|
+
return {
|
|
52
|
+
[ns.cssVarBlockName("bar-offset")]: lazy.value ? `${lazyOffset.value}px` : void 0
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
const onResizeStart = (index) => {
|
|
56
|
+
onMoveStart(index);
|
|
57
|
+
emits("resizeStart", index, pxSizes.value);
|
|
58
|
+
};
|
|
59
|
+
const onResize = (index, offset) => {
|
|
60
|
+
onMoving(index, offset);
|
|
61
|
+
if (!lazy.value) {
|
|
62
|
+
emits("resize", index, pxSizes.value);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
const onResizeEnd = async (index) => {
|
|
66
|
+
onMoveEnd();
|
|
67
|
+
await vue.nextTick();
|
|
68
|
+
emits("resizeEnd", index, pxSizes.value);
|
|
69
|
+
};
|
|
70
|
+
const onCollapsible = (index, type) => {
|
|
71
|
+
onCollapse(index, type);
|
|
72
|
+
emits("collapse", index, type, pxSizes.value);
|
|
73
|
+
};
|
|
74
|
+
vue.provide(
|
|
75
|
+
type.splitterRootContextKey,
|
|
76
|
+
vue.reactive({
|
|
77
|
+
panels,
|
|
78
|
+
percentSizes,
|
|
79
|
+
pxSizes,
|
|
80
|
+
layout,
|
|
81
|
+
lazy,
|
|
82
|
+
movingIndex,
|
|
83
|
+
containerSize,
|
|
84
|
+
onMoveStart: onResizeStart,
|
|
85
|
+
onMoving: onResize,
|
|
86
|
+
onMoveEnd: onResizeEnd,
|
|
87
|
+
onCollapse: onCollapsible,
|
|
88
|
+
registerPanel,
|
|
89
|
+
unregisterPanel
|
|
90
|
+
})
|
|
91
|
+
);
|
|
92
|
+
return (_ctx, _cache) => {
|
|
93
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
ref_key: "containerEl",
|
|
97
|
+
ref: containerEl,
|
|
98
|
+
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).e(layout.value)]),
|
|
99
|
+
style: vue.normalizeStyle(splitterStyles.value)
|
|
100
|
+
},
|
|
101
|
+
[
|
|
102
|
+
vue.renderSlot(_ctx.$slots, "default"),
|
|
103
|
+
vue.createVNode(vue.unref(PanelsSorter)),
|
|
104
|
+
vue.createCommentVNode(" Prevent iframe touch events from breaking "),
|
|
105
|
+
vue.unref(movingIndex) ? (vue.openBlock(), vue.createElementBlock(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
key: 0,
|
|
109
|
+
class: vue.normalizeClass([vue.unref(ns).e("mask"), vue.unref(ns).e(`mask-${layout.value}`)])
|
|
110
|
+
},
|
|
111
|
+
null,
|
|
112
|
+
2
|
|
113
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
114
|
+
],
|
|
115
|
+
6
|
|
116
|
+
);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
14
119
|
});
|
|
15
|
-
|
|
16
|
-
resizeStart: (index, sizes) => true,
|
|
17
|
-
resize: (index, sizes) => true,
|
|
18
|
-
resizeEnd: (index, sizes) => true,
|
|
19
|
-
collapse: (index, type, sizes) => true
|
|
20
|
-
};
|
|
120
|
+
var Splitter = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/splitter/src/splitter.vue"]]);
|
|
21
121
|
|
|
22
|
-
exports
|
|
23
|
-
exports.splitterProps = splitterProps;
|
|
122
|
+
exports["default"] = Splitter;
|
|
24
123
|
//# sourceMappingURL=splitter2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitter2.js","sources":["../../../../../../packages/components/splitter/src/splitter.
|
|
1
|
+
{"version":3,"file":"splitter2.js","sources":["../../../../../../packages/components/splitter/src/splitter.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport {\n computed,\n getCurrentInstance,\n nextTick,\n provide,\n reactive,\n toRef,\n watch,\n} from 'vue'\nimport { useNamespace, useOrderedChildren } from '@element-plus/hooks'\nimport { useContainer, useResize, useSize } from './hooks'\nimport { splitterEmits, splitterProps } from './splitter'\nimport { splitterRootContextKey } from './type'\n\nimport type { PanelItemState } from './type'\n\nconst ns = useNamespace('splitter')\n\ndefineOptions({\n name: 'ElSplitter',\n})\n\nconst emits = defineEmits(splitterEmits)\n\nconst props = defineProps(splitterProps)\nconst layout = toRef(props, 'layout')\nconst lazy = toRef(props, 'lazy')\n\nconst { containerEl, containerSize } = useContainer(layout)\n\nconst {\n removeChild: unregisterPanel,\n children: panels,\n addChild: registerPanel,\n ChildrenSorter: PanelsSorter,\n} = useOrderedChildren<PanelItemState>(getCurrentInstance()!, 'ElSplitterPanel')\n\nwatch(panels, () => {\n movingIndex.value = null\n panels.value.forEach((instance: PanelItemState, index: number) => {\n instance.setIndex(index)\n })\n})\n\nconst { percentSizes, pxSizes } = useSize(panels, containerSize)\n\nconst {\n lazyOffset,\n movingIndex,\n onMoveStart,\n onMoving,\n onMoveEnd,\n onCollapse,\n} = useResize(panels, containerSize, pxSizes, lazy)\n\nconst splitterStyles = computed(() => {\n return {\n [ns.cssVarBlockName('bar-offset')]: lazy.value\n ? `${lazyOffset.value}px`\n : undefined,\n }\n})\n\nconst onResizeStart = (index: number) => {\n onMoveStart(index)\n emits('resizeStart', index, pxSizes.value)\n}\n\nconst onResize = (index: number, offset: number) => {\n onMoving(index, offset)\n\n if (!lazy.value) {\n emits('resize', index, pxSizes.value)\n }\n}\n\nconst onResizeEnd = async (index: number) => {\n onMoveEnd()\n await nextTick()\n emits('resizeEnd', index, pxSizes.value)\n}\n\nconst onCollapsible = (index: number, type: 'start' | 'end') => {\n onCollapse(index, type)\n emits('collapse', index, type, pxSizes.value)\n}\n\nprovide(\n splitterRootContextKey,\n reactive({\n panels,\n percentSizes,\n pxSizes,\n layout,\n lazy,\n movingIndex,\n containerSize,\n onMoveStart: onResizeStart,\n onMoving: onResize,\n onMoveEnd: onResizeEnd,\n onCollapse: onCollapsible,\n registerPanel,\n unregisterPanel,\n })\n)\n</script>\n\n<template>\n <div\n ref=\"containerEl\"\n :class=\"[ns.b(), ns.e(layout)]\"\n :style=\"splitterStyles\"\n >\n <slot />\n <panels-sorter />\n <!-- Prevent iframe touch events from breaking -->\n <div v-if=\"movingIndex\" :class=\"[ns.e('mask'), ns.e(`mask-${layout}`)]\" />\n </div>\n</template>\n"],"names":["useNamespace","toRef","useContainer","useOrderedChildren","getCurrentInstance","watch","useSize","useResize","computed","nextTick","provide","splitterRootContextKey","reactive","_openBlock","_createElementBlock","_normalizeClass","_unref","_normalizeStyle","_renderSlot","_createVNode","_createCommentVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiBM,IAAA,MAAA,EAAA,GAAKA,mBAAa,UAAU,CAAA,CAAA;AAMlC,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACR,IAAA,MAAA,MAAA,GAASC,SAAM,CAAA,KAAA,EAAO,QAAQ,CAAA,CAAA;AAC9B,IAAA,MAAA,IAAA,GAAOA,SAAM,CAAA,KAAA,EAAO,MAAM,CAAA,CAAA;AAEhC,IAAA,MAAM,EAAE,WAAA,EAAa,aAAc,EAAA,GAAIC,0BAAa,MAAM,CAAA,CAAA;AAEpD,IAAA,MAAA;AAAA,MACJ,WAAa,EAAA,eAAA;AAAA,MACb,QAAU,EAAA,MAAA;AAAA,MACV,QAAU,EAAA,aAAA;AAAA,MACV,cAAgB,EAAA,YAAA;AAAA,KACd,GAAAC,0BAAA,CAAmCC,sBAAmB,EAAA,EAAI,iBAAiB,CAAA,CAAA;AAE/E,IAAAC,SAAA,CAAM,QAAQ,MAAM;AAClB,MAAA,WAAA,CAAY,KAAQ,GAAA,IAAA,CAAA;AACpB,MAAA,MAAA,CAAO,KAAM,CAAA,OAAA,CAAQ,CAAC,QAAA,EAA0B,KAAkB,KAAA;AAChE,QAAA,QAAA,CAAS,SAAS,KAAK,CAAA,CAAA;AAAA,OACxB,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAED,IAAA,MAAM,EAAE,YAAc,EAAA,OAAA,EAAY,GAAAC,eAAA,CAAQ,QAAQ,aAAa,CAAA,CAAA;AAEzD,IAAA,MAAA;AAAA,MACJ,UAAA;AAAA,MACA,WAAA;AAAA,MACA,WAAA;AAAA,MACA,QAAA;AAAA,MACA,SAA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|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var lodashUnified = require('lodash-unified');
|
|
7
6
|
var util = require('../util.js');
|
|
8
7
|
|
|
9
8
|
function useCurrent(watcherData) {
|
|
@@ -21,6 +20,7 @@ function useCurrent(watcherData) {
|
|
|
21
20
|
const setCurrentRowByKey = (key) => {
|
|
22
21
|
var _a;
|
|
23
22
|
const { data, rowKey } = watcherData;
|
|
23
|
+
const oldCurrentRow = currentRow.value;
|
|
24
24
|
let _currentRow = null;
|
|
25
25
|
if (rowKey.value) {
|
|
26
26
|
_currentRow = (_a = (vue.unref(data) || []).find(
|
|
@@ -28,7 +28,7 @@ function useCurrent(watcherData) {
|
|
|
28
28
|
)) != null ? _a : null;
|
|
29
29
|
}
|
|
30
30
|
currentRow.value = _currentRow != null ? _currentRow : null;
|
|
31
|
-
instance.emit("current-change", currentRow.value,
|
|
31
|
+
instance.emit("current-change", currentRow.value, oldCurrentRow);
|
|
32
32
|
};
|
|
33
33
|
const updateCurrentRow = (_currentRow) => {
|
|
34
34
|
const oldCurrentRow = currentRow.value;
|
|
@@ -52,8 +52,6 @@ function useCurrent(watcherData) {
|
|
|
52
52
|
setCurrentRowByKey(currentRowKey);
|
|
53
53
|
} else {
|
|
54
54
|
currentRow.value = null;
|
|
55
|
-
}
|
|
56
|
-
if (lodashUnified.isNull(currentRow.value)) {
|
|
57
55
|
instance.emit("current-change", null, oldCurrentRow);
|
|
58
56
|
}
|
|
59
57
|
} else if (_currentRowKey.value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"current.js","sources":["../../../../../../../packages/components/table/src/store/current.ts"],"sourcesContent":["import { getCurrentInstance, ref, unref } from 'vue'\nimport {
|
|
1
|
+
{"version":3,"file":"current.js","sources":["../../../../../../../packages/components/table/src/store/current.ts"],"sourcesContent":["import { getCurrentInstance, ref, unref } from 'vue'\nimport { getRowIdentity } from '../util'\n\nimport type { Ref } from 'vue'\nimport type { DefaultRow, Table } from '../table/defaults'\nimport type { WatcherPropsData } from '.'\n\nfunction useCurrent<T extends DefaultRow>(watcherData: WatcherPropsData<T>) {\n const instance = getCurrentInstance() as Table<T>\n const _currentRowKey: Ref<string | null> = ref(null)\n const currentRow: Ref<T | null> = ref(null)\n\n const setCurrentRowKey = (key: string) => {\n instance.store.assertRowKey()\n _currentRowKey.value = key\n setCurrentRowByKey(key)\n }\n\n const restoreCurrentRowKey = () => {\n _currentRowKey.value = null\n }\n\n const setCurrentRowByKey = (key: string) => {\n const { data, rowKey } = watcherData\n const oldCurrentRow = currentRow.value\n let _currentRow: T | null = null\n if (rowKey.value) {\n _currentRow =\n (unref(data) || []).find(\n (item) => getRowIdentity(item, rowKey.value) === key\n ) ?? null\n }\n currentRow.value = _currentRow ?? null\n instance.emit('current-change', currentRow.value, oldCurrentRow)\n }\n\n const updateCurrentRow = (_currentRow: T) => {\n const oldCurrentRow = currentRow.value\n if (_currentRow && _currentRow !== oldCurrentRow) {\n currentRow.value = _currentRow\n instance.emit('current-change', currentRow.value, oldCurrentRow)\n return\n }\n if (!_currentRow && oldCurrentRow) {\n currentRow.value = null\n instance.emit('current-change', null, oldCurrentRow)\n }\n }\n\n const updateCurrentRowData = () => {\n const rowKey = watcherData.rowKey.value\n // data 为 null 时,解构时的默认值会被忽略\n const data = watcherData.data.value || []\n const oldCurrentRow = currentRow.value\n // 当 currentRow 不在 data 中时尝试更新数据\n if (oldCurrentRow && !data.includes(oldCurrentRow)) {\n if (rowKey) {\n const currentRowKey = getRowIdentity(oldCurrentRow, rowKey)\n setCurrentRowByKey(currentRowKey)\n } else {\n currentRow.value = null\n instance.emit('current-change', null, oldCurrentRow)\n }\n } else if (_currentRowKey.value) {\n // 把初始时下设置的 rowKey 转化成 rowData\n setCurrentRowByKey(_currentRowKey.value)\n restoreCurrentRowKey()\n }\n }\n\n return {\n setCurrentRowKey,\n restoreCurrentRowKey,\n setCurrentRowByKey,\n updateCurrentRow,\n updateCurrentRowData,\n states: {\n _currentRowKey,\n currentRow,\n },\n }\n}\n\nexport default useCurrent\n"],"names":["getCurrentInstance","ref","unref","getRowIdentity"],"mappings":";;;;;;;AAOA,SAAS,WAAiC,WAAkC,EAAA;AAC1E,EAAA,MAAM,WAAWA,sBAAmB,EAAA,CAAA;AACpC,EAAM,MAAA,cAAA,GAAqCC,QAAI,IAAI,CAAA,CAAA;AACnD,EAAM,MAAA,UAAA,GAA4BA,QAAI,IAAI,CAAA,CAAA;AAE1C,EAAM,MAAA,gBAAA,GAAmB,CAAC,GAAgB,KAAA;AACxC,IAAA,QAAA,CAAS,MAAM,YAAa,EAAA,CAAA;AAC5B,IAAA,cAAA,CAAe,KAAQ,GAAA,GAAA,CAAA;AACvB,IAAA,kBAAA,CAAmB,GAAG,CAAA,CAAA;AAAA,GACxB,CAAA;AAEA,EAAA,MAAM,uBAAuB,MAAM;AACjC,IAAA,cAAA,CAAe,KAAQ,GAAA,IAAA,CAAA;AAAA,GACzB,CAAA;AAEA,EAAM,MAAA,kBAAA,GAAqB,CAAC,GAAgB,KAAA;AAtB9C,IAAA,IAAA,EAAA,CAAA;AAuBI,IAAM,MAAA,EAAE,IAAM,EAAA,MAAA,EAAW,GAAA,WAAA,CAAA;AACzB,IAAA,MAAM,gBAAgB,UAAW,CAAA,KAAA,CAAA;AACjC,IAAA,IAAI,WAAwB,GAAA,IAAA,CAAA;AAC5B,IAAA,IAAI,OAAO,KAAO,EAAA;AAChB,MAAA,WAAA,GAAA,CACG,EAAM,GAAA,CAAAC,SAAA,CAAA,IAAI,CAAK,IAAA,EAAI,EAAA,IAAA;AAAA,QAClB,CAAC,IAAS,KAAAC,mBAAA,CAAe,IAAM,EAAA,MAAA,CAAO,KAAK,CAAM,KAAA,GAAA;AAAA,YADlD,IAEI,GAAA,EAAA,GAAA,IAAA,CAAA;AAAA,KACT;AACA,IAAA,UAAA,CAAW,QAAQ,WAAe,IAAA,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AAkB,EAAA,IAAA,EAAM,aAAa,CAAA,CAAA;AAAA,OACrD;AAAA,KACF,MAAA,IAAW,eAAe,KAAO,EAAA;AAE/B,MAAA,kBAAA,CAAmB,eAAe,KAAK,CAAA,CAAA;AACvC,MAAqB,oBAAA,EAAA,CAAA;AAAA,KACvB;AAAA,GACF,CAAA;AAEA,EAAO,OAAA;AAAA,IACL,gBAAA;AAAA,IACA,oBAAA;AAAA,IACA,kBAAA;AAAA,IACA,gBAAA;AAAA,IACA,oBAAA;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,cAAA;AAAA,MACA,UAAA;AAAA,KACF;AAAA,GACF,CAAA;AACF;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tag$1 = require('./src/
|
|
6
|
-
var tag = require('./src/
|
|
5
|
+
var tag$1 = require('./src/tag.js');
|
|
6
|
+
var tag = require('./src/tag2.js');
|
|
7
7
|
var install = require('../../utils/vue/install.js');
|
|
8
8
|
|
|
9
9
|
const ElTag = install.withInstall(tag$1["default"]);
|
|
@@ -2,35 +2,139 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$2 = require('../../icon/index.js');
|
|
7
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
var tag = require('./tag2.js');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
11
|
+
var index = require('../../../hooks/use-locale/index.js');
|
|
12
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
7
13
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
const _hoisted_1 = ["aria-label"];
|
|
15
|
+
const _hoisted_2 = ["aria-label"];
|
|
16
|
+
const _sfc_main = vue.defineComponent({
|
|
17
|
+
...{
|
|
18
|
+
name: "ElTag"
|
|
13
19
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
__name: "tag",
|
|
21
|
+
props: tag.tagProps,
|
|
22
|
+
emits: tag.tagEmits,
|
|
23
|
+
setup(__props, { emit: __emit }) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const emit = __emit;
|
|
26
|
+
const tagSize = useFormCommonProps.useFormSize();
|
|
27
|
+
const { t } = index.useLocale();
|
|
28
|
+
const ns = index$1.useNamespace("tag");
|
|
29
|
+
const containerKls = vue.computed(() => {
|
|
30
|
+
const { type, hit, effect, closable, round } = props;
|
|
31
|
+
return [
|
|
32
|
+
ns.b(),
|
|
33
|
+
ns.is("closable", closable),
|
|
34
|
+
ns.m(type || "primary"),
|
|
35
|
+
ns.m(tagSize.value),
|
|
36
|
+
ns.m(effect),
|
|
37
|
+
ns.is("hit", hit),
|
|
38
|
+
ns.is("round", round)
|
|
39
|
+
];
|
|
40
|
+
});
|
|
41
|
+
const handleClose = (event) => {
|
|
42
|
+
emit("close", event);
|
|
43
|
+
};
|
|
44
|
+
const handleClick = (event) => {
|
|
45
|
+
emit("click", event);
|
|
46
|
+
};
|
|
47
|
+
const handleVNodeMounted = (vnode) => {
|
|
48
|
+
var _a, _b, _c;
|
|
49
|
+
if ((_c = (_b = (_a = vnode == null ? void 0 : vnode.component) == null ? void 0 : _a.subTree) == null ? void 0 : _b.component) == null ? void 0 : _c.bum) {
|
|
50
|
+
vnode.component.subTree.component.bum = null;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return _ctx.disableTransitions ? (vue.openBlock(), vue.createElementBlock(
|
|
55
|
+
"span",
|
|
56
|
+
{
|
|
57
|
+
key: 0,
|
|
58
|
+
class: vue.normalizeClass(containerKls.value),
|
|
59
|
+
style: vue.normalizeStyle({ backgroundColor: _ctx.color }),
|
|
60
|
+
onClick: handleClick
|
|
61
|
+
},
|
|
62
|
+
[
|
|
63
|
+
vue.createElementVNode(
|
|
64
|
+
"span",
|
|
65
|
+
{
|
|
66
|
+
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
67
|
+
},
|
|
68
|
+
[
|
|
69
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
70
|
+
],
|
|
71
|
+
2
|
|
72
|
+
),
|
|
73
|
+
_ctx.closable ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
74
|
+
key: 0,
|
|
75
|
+
"aria-label": vue.unref(t)("el.tag.close"),
|
|
76
|
+
class: vue.normalizeClass(vue.unref(ns).e("close")),
|
|
77
|
+
type: "button",
|
|
78
|
+
onClick: vue.withModifiers(handleClose, ["stop"])
|
|
79
|
+
}, [
|
|
80
|
+
vue.createVNode(vue.unref(index$2.ElIcon), null, {
|
|
81
|
+
default: vue.withCtx(() => [
|
|
82
|
+
vue.createVNode(vue.unref(iconsVue.Close))
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
})
|
|
86
|
+
], 10, _hoisted_1)) : vue.createCommentVNode("v-if", true)
|
|
87
|
+
],
|
|
88
|
+
6
|
|
89
|
+
)) : (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
90
|
+
key: 1,
|
|
91
|
+
name: `${vue.unref(ns).namespace.value}-zoom-in-center`,
|
|
92
|
+
appear: "",
|
|
93
|
+
onVnodeMounted: handleVNodeMounted
|
|
94
|
+
}, {
|
|
95
|
+
default: vue.withCtx(() => [
|
|
96
|
+
vue.createElementVNode(
|
|
97
|
+
"span",
|
|
98
|
+
{
|
|
99
|
+
class: vue.normalizeClass(containerKls.value),
|
|
100
|
+
style: vue.normalizeStyle({ backgroundColor: _ctx.color }),
|
|
101
|
+
onClick: handleClick
|
|
102
|
+
},
|
|
103
|
+
[
|
|
104
|
+
vue.createElementVNode(
|
|
105
|
+
"span",
|
|
106
|
+
{
|
|
107
|
+
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
108
|
+
},
|
|
109
|
+
[
|
|
110
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
111
|
+
],
|
|
112
|
+
2
|
|
113
|
+
),
|
|
114
|
+
_ctx.closable ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
115
|
+
key: 0,
|
|
116
|
+
"aria-label": vue.unref(t)("el.tag.close"),
|
|
117
|
+
class: vue.normalizeClass(vue.unref(ns).e("close")),
|
|
118
|
+
type: "button",
|
|
119
|
+
onClick: vue.withModifiers(handleClose, ["stop"])
|
|
120
|
+
}, [
|
|
121
|
+
vue.createVNode(vue.unref(index$2.ElIcon), null, {
|
|
122
|
+
default: vue.withCtx(() => [
|
|
123
|
+
vue.createVNode(vue.unref(iconsVue.Close))
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
})
|
|
127
|
+
], 10, _hoisted_2)) : vue.createCommentVNode("v-if", true)
|
|
128
|
+
],
|
|
129
|
+
6
|
|
130
|
+
)
|
|
131
|
+
]),
|
|
132
|
+
_: 3
|
|
133
|
+
}, 8, ["name"]));
|
|
134
|
+
};
|
|
135
|
+
}
|
|
28
136
|
});
|
|
29
|
-
|
|
30
|
-
close: (evt) => evt instanceof MouseEvent,
|
|
31
|
-
click: (evt) => evt instanceof MouseEvent
|
|
32
|
-
};
|
|
137
|
+
var Tag = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);
|
|
33
138
|
|
|
34
|
-
exports
|
|
35
|
-
exports.tagProps = tagProps;
|
|
139
|
+
exports["default"] = Tag;
|
|
36
140
|
//# sourceMappingURL=tag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.js","sources":["../../../../../../packages/components/tag/src/tag.
|
|
1
|
+
{"version":3,"file":"tag.js","sources":["../../../../../../packages/components/tag/src/tag.vue"],"sourcesContent":["<template>\n <span\n v-if=\"disableTransitions\"\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <button\n v-if=\"closable\"\n :aria-label=\"t('el.tag.close')\"\n :class=\"ns.e('close')\"\n type=\"button\"\n @click.stop=\"handleClose\"\n >\n <el-icon>\n <Close />\n </el-icon>\n </button>\n </span>\n <transition\n v-else\n :name=\"`${ns.namespace.value}-zoom-in-center`\"\n appear\n @vue:mounted=\"handleVNodeMounted\"\n >\n <span\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <button\n v-if=\"closable\"\n :aria-label=\"t('el.tag.close')\"\n :class=\"ns.e('close')\"\n type=\"button\"\n @click.stop=\"handleClose\"\n >\n <el-icon>\n <Close />\n </el-icon>\n </button>\n </span>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { Close } from '@element-plus/icons-vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\nimport { tagEmits, tagProps } from './tag'\n\nimport type { VNode } from 'vue'\n\ndefineOptions({\n name: 'ElTag',\n})\nconst props = defineProps(tagProps)\nconst emit = defineEmits(tagEmits)\n\nconst tagSize = useFormSize()\nconst { t } = useLocale()\nconst ns = useNamespace('tag')\nconst containerKls = computed(() => {\n const { type, hit, effect, closable, round } = props\n return [\n ns.b(),\n ns.is('closable', closable),\n ns.m(type || 'primary'),\n ns.m(tagSize.value),\n ns.m(effect),\n ns.is('hit', hit),\n ns.is('round', round),\n ]\n})\n\n// methods\nconst handleClose = (event: MouseEvent) => {\n emit('close', event)\n}\n\nconst handleClick = (event: MouseEvent) => {\n emit('click', event)\n}\n\nconst handleVNodeMounted = (vnode: VNode) => {\n // @ts-ignore\n if (vnode?.component?.subTree?.component?.bum) {\n // @ts-ignore\n vnode.component.subTree.component.bum = null\n }\n}\n</script>\n"],"names":["useFormSize","useLocale","useNamespace","computed","disableTransitions","_openBlock","_createElementBlock","_normalizeClass","_normalizeStyle","color","_createElementVNode","_unref","_renderSlot","closable","_withModifiers","_createVNode","ElIcon","_withCtx","Close","_createBlock","_Transition"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgEA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAA,MAAM,UAAUA,8BAAY,EAAA,CAAA;AACtB,IAAA,MAAA,EAAE,CAAE,EAAA,GAAIC,eAAU,EAAA,CAAA;AAClB,IAAA,MAAA,EAAA,GAAKC,qBAAa,KAAK,CAAA,CAAA;AACvB,IAAA,MAAA,YAAA,GAAeC,aAAS,MAAM;AAClC,MAAA,MAAM,EAAE,IAAM,EAAA,GAAA,EAAK,MAAQ,EAAA,QAAA,EAAU,OAAU,GAAA,KAAA,CAAA;AACxC,MAAA,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL,EAAA,CAAG,EAAG,CAAA,UAAA,EAAY,QAAQ,CAAA;AAAA,QAC1B,EAAA,CAAG,CAAE,CAAA,IAAA,IAAQ,SAAS,CAAA;AAAA,QACtB,EAAA,CAAG,CAAE,CAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,QAClB,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,QACX,EAAA,CAAG,EAAG,CAAA,KAAA,EAAO,GAAG,CAAA;AAAA,QAChB,EAAA,CAAG,EAAG,CAAA,OAAA,EAAS,KAAK,CAAA;AAAA,OACtB,CAAA;AAAA,KACD,CAAA,CAAA;AAGK,IA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