element-plus 2.10.0 → 2.10.1
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 +5 -4
- 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 +5 -4
- 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/avatar/index.mjs +2 -2
- package/es/components/avatar/src/avatar.mjs +65 -31
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/avatar/src/avatar2.mjs +31 -65
- package/es/components/avatar/src/avatar2.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +42 -22
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +22 -42
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/check-tag/index.mjs +2 -2
- package/es/components/check-tag/src/check-tag.mjs +38 -14
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +14 -38
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/dialog/index.mjs +2 -2
- package/es/components/dialog/src/dialog.mjs +172 -68
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog2.mjs +68 -172
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/drawer/src/drawer.mjs +1 -1
- package/es/components/form/src/form2.mjs +3 -2
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/index.mjs +13 -13
- package/es/components/input-tag/src/input-tag.mjs +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/trigger.mjs +127 -31
- package/es/components/popper/src/trigger.mjs.map +1 -1
- package/es/components/popper/src/trigger2.mjs +31 -127
- package/es/components/popper/src/trigger2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/splitter/index.mjs +2 -2
- package/es/components/splitter/src/split-panel.mjs +153 -19
- package/es/components/splitter/src/split-panel.mjs.map +1 -1
- package/es/components/splitter/src/split-panel2.mjs +19 -153
- package/es/components/splitter/src/split-panel2.mjs.map +1 -1
- package/es/components/splitter-panel/style/css.d.ts +1 -1
- package/es/components/splitter-panel/style/css.mjs +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +99 -27
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +27 -99
- 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/time-select/index.mjs +2 -2
- package/es/components/time-select/src/time-select.mjs +132 -54
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select2.mjs +54 -132
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/timeline/index.mjs +2 -2
- package/es/components/timeline/src/timeline-item.mjs +72 -33
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +33 -72
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/trigger.mjs +1 -1
- package/es/components/tooltip/src/trigger2.mjs +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/step.mjs +168 -44
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +44 -168
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour.mjs +1 -1
- package/es/components/transfer/index.mjs +2 -2
- package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +1 -1
- package/es/components/transfer/src/transfer.mjs +164 -68
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +68 -164
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +220 -27
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +27 -220
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/index.mjs +13 -13
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/avatar/index.js +2 -2
- package/lib/components/avatar/src/avatar.js +65 -32
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/avatar/src/avatar2.js +32 -65
- package/lib/components/avatar/src/avatar2.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +42 -22
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +22 -42
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/check-tag/index.js +2 -2
- package/lib/components/check-tag/src/check-tag.js +38 -15
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +15 -38
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/dialog/index.js +2 -2
- package/lib/components/dialog/src/dialog.js +172 -69
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog2.js +69 -172
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/drawer/src/drawer.js +1 -1
- package/lib/components/form/src/form2.js +3 -2
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/index.js +13 -13
- package/lib/components/input-tag/src/input-tag.js +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/trigger.js +127 -32
- package/lib/components/popper/src/trigger.js.map +1 -1
- package/lib/components/popper/src/trigger2.js +32 -127
- package/lib/components/popper/src/trigger2.js.map +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/splitter/index.js +2 -2
- package/lib/components/splitter/src/split-panel.js +153 -19
- package/lib/components/splitter/src/split-panel.js.map +1 -1
- package/lib/components/splitter/src/split-panel2.js +19 -153
- package/lib/components/splitter/src/split-panel2.js.map +1 -1
- package/lib/components/splitter-panel/style/css.d.ts +1 -1
- package/lib/components/splitter-panel/style/css.js +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +99 -28
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +28 -99
- 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/time-select/index.js +2 -2
- package/lib/components/time-select/src/time-select.js +137 -54
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select2.js +54 -137
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/timeline/index.js +2 -2
- package/lib/components/timeline/src/timeline-item.js +72 -33
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +33 -72
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/trigger.js +1 -1
- package/lib/components/tooltip/src/trigger2.js +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/step.js +167 -44
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +44 -167
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour.js +1 -1
- package/lib/components/transfer/index.js +2 -2
- package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +1 -1
- package/lib/components/transfer/src/transfer.js +164 -72
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +72 -164
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +220 -27
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +27 -220
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/index.js +13 -13
- 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,158 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isCollapsible, getCollapsible } from './hooks/usePanel.mjs';
|
|
3
|
-
import SplitBar from './split-bar.mjs';
|
|
4
|
-
import { splitterPanelProps } from './split-panel.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';
|
|
1
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
10
2
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
sortPanel,
|
|
29
|
-
unregisterPanel,
|
|
30
|
-
onCollapse,
|
|
31
|
-
onMoveEnd,
|
|
32
|
-
onMoveStart,
|
|
33
|
-
onMoving
|
|
34
|
-
} = splitterContext;
|
|
35
|
-
const panelEl = ref();
|
|
36
|
-
const uid = getCurrentInstance().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 (panel.value) {
|
|
84
|
-
const size = sizeToPx(props.size);
|
|
85
|
-
const maxSize = sizeToPx(props.max);
|
|
86
|
-
const minSize = sizeToPx(props.min);
|
|
87
|
-
const finalSize = Math.min(Math.max(size, minSize || 0), maxSize || size);
|
|
88
|
-
if (finalSize !== size) {
|
|
89
|
-
isSizeUpdating = true;
|
|
90
|
-
emits("update:size", finalSize);
|
|
91
|
-
}
|
|
92
|
-
panel.value.size = finalSize;
|
|
93
|
-
nextTick(() => isSizeUpdating = false);
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
watch(() => {
|
|
97
|
-
var _a;
|
|
98
|
-
return (_a = panel.value) == null ? void 0 : _a.size;
|
|
99
|
-
}, (val) => {
|
|
100
|
-
if (!isSizeUpdating && val !== props.size) {
|
|
101
|
-
emits("update:size", val);
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
watch(() => props.resizable, (val) => {
|
|
105
|
-
if (panel.value) {
|
|
106
|
-
panel.value.resizable = val;
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
const _panel = reactive({
|
|
110
|
-
el: panelEl.value,
|
|
111
|
-
uid,
|
|
112
|
-
setIndex,
|
|
113
|
-
...props,
|
|
114
|
-
collapsible: getCollapsible(props.collapsible)
|
|
115
|
-
});
|
|
116
|
-
registerPanel(_panel);
|
|
117
|
-
onMounted(() => {
|
|
118
|
-
sortPanel(_panel);
|
|
119
|
-
});
|
|
120
|
-
onUnmounted(() => unregisterPanel == null ? void 0 : unregisterPanel(uid));
|
|
121
|
-
return (_ctx, _cache) => {
|
|
122
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
123
|
-
createElementVNode("div", mergeProps({
|
|
124
|
-
ref_key: "panelEl",
|
|
125
|
-
ref: panelEl,
|
|
126
|
-
class: [unref(ns).b()],
|
|
127
|
-
style: { flexBasis: `${unref(panelSize)}px` }
|
|
128
|
-
}, _ctx.$attrs), [
|
|
129
|
-
renderSlot(_ctx.$slots, "default")
|
|
130
|
-
], 16),
|
|
131
|
-
unref(isShowBar) ? (openBlock(), createBlock(SplitBar, {
|
|
132
|
-
key: 0,
|
|
133
|
-
index: index.value,
|
|
134
|
-
layout: unref(layout),
|
|
135
|
-
resizable: unref(isResizable),
|
|
136
|
-
"start-collapsible": unref(startCollapsible),
|
|
137
|
-
"end-collapsible": unref(endCollapsible),
|
|
138
|
-
onMoveStart: unref(onMoveStart),
|
|
139
|
-
onMoving: unref(onMoving),
|
|
140
|
-
onMoveEnd: unref(onMoveEnd),
|
|
141
|
-
onCollapse: unref(onCollapse)
|
|
142
|
-
}, {
|
|
143
|
-
"start-collapsible": withCtx(() => [
|
|
144
|
-
renderSlot(_ctx.$slots, "start-collapsible")
|
|
145
|
-
]),
|
|
146
|
-
"end-collapsible": withCtx(() => [
|
|
147
|
-
renderSlot(_ctx.$slots, "end-collapsible")
|
|
148
|
-
]),
|
|
149
|
-
_: 3
|
|
150
|
-
}, 8, ["index", "layout", "resizable", "start-collapsible", "end-collapsible", "onMoveStart", "onMoving", "onMoveEnd", "onCollapse"])) : createCommentVNode("v-if", true)
|
|
151
|
-
], 64);
|
|
152
|
-
};
|
|
3
|
+
const splitterPanelProps = buildProps({
|
|
4
|
+
min: {
|
|
5
|
+
type: [String, Number]
|
|
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: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
153
20
|
}
|
|
154
21
|
});
|
|
155
|
-
var SplitPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "split-panel.vue"]]);
|
|
156
22
|
|
|
157
|
-
export {
|
|
23
|
+
export { splitterPanelProps };
|
|
158
24
|
//# sourceMappingURL=split-panel2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-panel2.mjs","sources":["../../../../../../packages/components/splitter/src/split-panel.
|
|
1
|
+
{"version":3,"file":"split-panel2.mjs","sources":["../../../../../../packages/components/splitter/src/split-panel.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type SplitterPanel from './split-panel.vue'\n\nexport const splitterPanelProps = buildProps({\n min: {\n type: [String, Number],\n },\n max: {\n type: [String, Number],\n },\n size: {\n type: [String, Number],\n },\n resizable: {\n type: Boolean,\n default: true,\n },\n collapsible: {\n type: Boolean,\n default: false,\n },\n} as const)\n\nexport type SplitterPanelProps = ExtractPropTypes<typeof splitterPanelProps>\nexport type SplitterPanelInstance = InstanceType<typeof SplitterPanel> & unknown\n"],"names":[],"mappings":";;AACY,MAAC,kBAAkB,GAAG,UAAU,CAAC;AAC7C,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'element-plus/es/components/base/style/css';
|
|
2
|
-
import 'element-plus/theme-chalk/splitter-panel.css';
|
|
2
|
+
import 'element-plus/theme-chalk/el-splitter-panel.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Tag from './src/
|
|
2
|
-
export { tagEmits, tagProps } from './src/
|
|
1
|
+
import Tag from './src/tag.mjs';
|
|
2
|
+
export { tagEmits, tagProps } from './src/tag2.mjs';
|
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
4
4
|
|
|
5
5
|
const ElTag = withInstall(Tag);
|
|
@@ -1,31 +1,103 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createElementVNode, renderSlot, createBlock, withModifiers, withCtx, createVNode, createCommentVNode, Transition } from 'vue';
|
|
2
|
+
import { ElIcon } from '../../icon/index.mjs';
|
|
3
|
+
import { Close } from '@element-plus/icons-vue';
|
|
4
|
+
import { tagProps, tagEmits } from './tag2.mjs';
|
|
5
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
6
|
+
import { useFormSize } from '../../form/src/hooks/use-form-common-props.mjs';
|
|
7
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
3
8
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
type: String,
|
|
7
|
-
values: ["primary", "success", "info", "warning", "danger"],
|
|
8
|
-
default: "primary"
|
|
9
|
-
},
|
|
10
|
-
closable: Boolean,
|
|
11
|
-
disableTransitions: Boolean,
|
|
12
|
-
hit: Boolean,
|
|
13
|
-
color: String,
|
|
14
|
-
size: {
|
|
15
|
-
type: String,
|
|
16
|
-
values: componentSizes
|
|
17
|
-
},
|
|
18
|
-
effect: {
|
|
19
|
-
type: String,
|
|
20
|
-
values: ["dark", "light", "plain"],
|
|
21
|
-
default: "light"
|
|
22
|
-
},
|
|
23
|
-
round: Boolean
|
|
9
|
+
const __default__ = defineComponent({
|
|
10
|
+
name: "ElTag"
|
|
24
11
|
});
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
+
...__default__,
|
|
14
|
+
props: tagProps,
|
|
15
|
+
emits: tagEmits,
|
|
16
|
+
setup(__props, { emit }) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const tagSize = useFormSize();
|
|
19
|
+
const ns = useNamespace("tag");
|
|
20
|
+
const containerKls = computed(() => {
|
|
21
|
+
const { type, hit, effect, closable, round } = props;
|
|
22
|
+
return [
|
|
23
|
+
ns.b(),
|
|
24
|
+
ns.is("closable", closable),
|
|
25
|
+
ns.m(type || "primary"),
|
|
26
|
+
ns.m(tagSize.value),
|
|
27
|
+
ns.m(effect),
|
|
28
|
+
ns.is("hit", hit),
|
|
29
|
+
ns.is("round", round)
|
|
30
|
+
];
|
|
31
|
+
});
|
|
32
|
+
const handleClose = (event) => {
|
|
33
|
+
emit("close", event);
|
|
34
|
+
};
|
|
35
|
+
const handleClick = (event) => {
|
|
36
|
+
emit("click", event);
|
|
37
|
+
};
|
|
38
|
+
const handleVNodeMounted = (vnode) => {
|
|
39
|
+
var _a, _b, _c;
|
|
40
|
+
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) {
|
|
41
|
+
vnode.component.subTree.component.bum = null;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return _ctx.disableTransitions ? (openBlock(), createElementBlock("span", {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: normalizeClass(unref(containerKls)),
|
|
48
|
+
style: normalizeStyle({ backgroundColor: _ctx.color }),
|
|
49
|
+
onClick: handleClick
|
|
50
|
+
}, [
|
|
51
|
+
createElementVNode("span", {
|
|
52
|
+
class: normalizeClass(unref(ns).e("content"))
|
|
53
|
+
}, [
|
|
54
|
+
renderSlot(_ctx.$slots, "default")
|
|
55
|
+
], 2),
|
|
56
|
+
_ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: normalizeClass(unref(ns).e("close")),
|
|
59
|
+
onClick: withModifiers(handleClose, ["stop"])
|
|
60
|
+
}, {
|
|
61
|
+
default: withCtx(() => [
|
|
62
|
+
createVNode(unref(Close))
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
|
|
66
|
+
], 6)) : (openBlock(), createBlock(Transition, {
|
|
67
|
+
key: 1,
|
|
68
|
+
name: `${unref(ns).namespace.value}-zoom-in-center`,
|
|
69
|
+
appear: "",
|
|
70
|
+
onVnodeMounted: handleVNodeMounted
|
|
71
|
+
}, {
|
|
72
|
+
default: withCtx(() => [
|
|
73
|
+
createElementVNode("span", {
|
|
74
|
+
class: normalizeClass(unref(containerKls)),
|
|
75
|
+
style: normalizeStyle({ backgroundColor: _ctx.color }),
|
|
76
|
+
onClick: handleClick
|
|
77
|
+
}, [
|
|
78
|
+
createElementVNode("span", {
|
|
79
|
+
class: normalizeClass(unref(ns).e("content"))
|
|
80
|
+
}, [
|
|
81
|
+
renderSlot(_ctx.$slots, "default")
|
|
82
|
+
], 2),
|
|
83
|
+
_ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
|
|
84
|
+
key: 0,
|
|
85
|
+
class: normalizeClass(unref(ns).e("close")),
|
|
86
|
+
onClick: withModifiers(handleClose, ["stop"])
|
|
87
|
+
}, {
|
|
88
|
+
default: withCtx(() => [
|
|
89
|
+
createVNode(unref(Close))
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
|
|
93
|
+
], 6)
|
|
94
|
+
]),
|
|
95
|
+
_: 3
|
|
96
|
+
}, 8, ["name"]));
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
var Tag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "tag.vue"]]);
|
|
29
101
|
|
|
30
|
-
export {
|
|
102
|
+
export { Tag as default };
|
|
31
103
|
//# sourceMappingURL=tag.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.mjs","sources":["../../../../../../packages/components/tag/src/tag.
|
|
1
|
+
{"version":3,"file":"tag.mjs","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 <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\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 <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\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 { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\n\nimport { tagEmits, tagProps } from './tag'\nimport type { VNode } from 'vue'\n\ndefineOptions({\n name: 'ElTag',\n})\nconst props = defineProps(tagProps)\nconst emit = defineEmits(tagEmits)\n\nconst tagSize = useFormSize()\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":[],"mappings":";;;;;;;;mCA6Cc,CAAA;AAAA,EACZ,IAAM,EAAA,OAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,UAAU,WAAY,EAAA,CAAA;AAC5B,IAAM,MAAA,EAAA,GAAK,aAAa,KAAK,CAAA,CAAA;AAC7B,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,MAAM,EAAE,IAAM,EAAA,GAAA,EAAK,MAAQ,EAAA,QAAA,EAAU,OAAU,GAAA,KAAA,CAAA;AAC/C,MAAO,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;AAGD,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAM,MAAA,kBAAA,GAAqB,CAAC,KAAiB,KAAA;AAE3C,MAAA,IAAI,EAAO,EAAA,EAAA,EAAA,EAAA,CAAA;AAET,MAAM,IAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAkB,GAAA,KAAA,IAAA,IAAA,GAAgB,KAAA,CAAA,GAAA,KAAA,CAAA,SAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,OAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,SAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,GAAA,EAAA;AAAA,QAC1C,KAAA,CAAA,SAAA,CAAA,OAAA,CAAA,SAAA,CAAA,GAAA,GAAA,IAAA,CAAA;AAAA,OACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,103 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Close } from '@element-plus/icons-vue';
|
|
4
|
-
import { tagProps, tagEmits } from './tag.mjs';
|
|
5
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
6
|
-
import { useFormSize } from '../../form/src/hooks/use-form-common-props.mjs';
|
|
7
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
2
|
+
import { componentSizes } from '../../../constants/size.mjs';
|
|
8
3
|
|
|
9
|
-
const
|
|
10
|
-
|
|
4
|
+
const tagProps = buildProps({
|
|
5
|
+
type: {
|
|
6
|
+
type: String,
|
|
7
|
+
values: ["primary", "success", "info", "warning", "danger"],
|
|
8
|
+
default: "primary"
|
|
9
|
+
},
|
|
10
|
+
closable: Boolean,
|
|
11
|
+
disableTransitions: Boolean,
|
|
12
|
+
hit: Boolean,
|
|
13
|
+
color: String,
|
|
14
|
+
size: {
|
|
15
|
+
type: String,
|
|
16
|
+
values: componentSizes
|
|
17
|
+
},
|
|
18
|
+
effect: {
|
|
19
|
+
type: String,
|
|
20
|
+
values: ["dark", "light", "plain"],
|
|
21
|
+
default: "light"
|
|
22
|
+
},
|
|
23
|
+
round: Boolean
|
|
11
24
|
});
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
setup(__props, { emit }) {
|
|
17
|
-
const props = __props;
|
|
18
|
-
const tagSize = useFormSize();
|
|
19
|
-
const ns = useNamespace("tag");
|
|
20
|
-
const containerKls = computed(() => {
|
|
21
|
-
const { type, hit, effect, closable, round } = props;
|
|
22
|
-
return [
|
|
23
|
-
ns.b(),
|
|
24
|
-
ns.is("closable", closable),
|
|
25
|
-
ns.m(type || "primary"),
|
|
26
|
-
ns.m(tagSize.value),
|
|
27
|
-
ns.m(effect),
|
|
28
|
-
ns.is("hit", hit),
|
|
29
|
-
ns.is("round", round)
|
|
30
|
-
];
|
|
31
|
-
});
|
|
32
|
-
const handleClose = (event) => {
|
|
33
|
-
emit("close", event);
|
|
34
|
-
};
|
|
35
|
-
const handleClick = (event) => {
|
|
36
|
-
emit("click", event);
|
|
37
|
-
};
|
|
38
|
-
const handleVNodeMounted = (vnode) => {
|
|
39
|
-
var _a, _b, _c;
|
|
40
|
-
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) {
|
|
41
|
-
vnode.component.subTree.component.bum = null;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
return (_ctx, _cache) => {
|
|
45
|
-
return _ctx.disableTransitions ? (openBlock(), createElementBlock("span", {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: normalizeClass(unref(containerKls)),
|
|
48
|
-
style: normalizeStyle({ backgroundColor: _ctx.color }),
|
|
49
|
-
onClick: handleClick
|
|
50
|
-
}, [
|
|
51
|
-
createElementVNode("span", {
|
|
52
|
-
class: normalizeClass(unref(ns).e("content"))
|
|
53
|
-
}, [
|
|
54
|
-
renderSlot(_ctx.$slots, "default")
|
|
55
|
-
], 2),
|
|
56
|
-
_ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
|
|
57
|
-
key: 0,
|
|
58
|
-
class: normalizeClass(unref(ns).e("close")),
|
|
59
|
-
onClick: withModifiers(handleClose, ["stop"])
|
|
60
|
-
}, {
|
|
61
|
-
default: withCtx(() => [
|
|
62
|
-
createVNode(unref(Close))
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
}, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
|
|
66
|
-
], 6)) : (openBlock(), createBlock(Transition, {
|
|
67
|
-
key: 1,
|
|
68
|
-
name: `${unref(ns).namespace.value}-zoom-in-center`,
|
|
69
|
-
appear: "",
|
|
70
|
-
onVnodeMounted: handleVNodeMounted
|
|
71
|
-
}, {
|
|
72
|
-
default: withCtx(() => [
|
|
73
|
-
createElementVNode("span", {
|
|
74
|
-
class: normalizeClass(unref(containerKls)),
|
|
75
|
-
style: normalizeStyle({ backgroundColor: _ctx.color }),
|
|
76
|
-
onClick: handleClick
|
|
77
|
-
}, [
|
|
78
|
-
createElementVNode("span", {
|
|
79
|
-
class: normalizeClass(unref(ns).e("content"))
|
|
80
|
-
}, [
|
|
81
|
-
renderSlot(_ctx.$slots, "default")
|
|
82
|
-
], 2),
|
|
83
|
-
_ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
|
|
84
|
-
key: 0,
|
|
85
|
-
class: normalizeClass(unref(ns).e("close")),
|
|
86
|
-
onClick: withModifiers(handleClose, ["stop"])
|
|
87
|
-
}, {
|
|
88
|
-
default: withCtx(() => [
|
|
89
|
-
createVNode(unref(Close))
|
|
90
|
-
]),
|
|
91
|
-
_: 1
|
|
92
|
-
}, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
|
|
93
|
-
], 6)
|
|
94
|
-
]),
|
|
95
|
-
_: 3
|
|
96
|
-
}, 8, ["name"]));
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
var Tag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "tag.vue"]]);
|
|
25
|
+
const tagEmits = {
|
|
26
|
+
close: (evt) => evt instanceof MouseEvent,
|
|
27
|
+
click: (evt) => evt instanceof MouseEvent
|
|
28
|
+
};
|
|
101
29
|
|
|
102
|
-
export {
|
|
30
|
+
export { tagEmits, tagProps };
|
|
103
31
|
//# sourceMappingURL=tag2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag2.mjs","sources":["../../../../../../packages/components/tag/src/tag.
|
|
1
|
+
{"version":3,"file":"tag2.mjs","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type Tag from './tag.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tagProps = buildProps({\n /**\n * @description type of Tag\n */\n type: {\n type: String,\n values: ['primary', 'success', 'info', 'warning', 'danger'],\n default: 'primary',\n },\n /**\n * @description whether Tag can be removed\n */\n closable: Boolean,\n /**\n * @description whether to disable animations\n */\n disableTransitions: Boolean,\n /**\n * @description whether Tag has a highlighted border\n */\n hit: Boolean,\n /**\n * @description background color of the Tag\n */\n color: String,\n /**\n * @description size of Tag\n */\n size: {\n type: String,\n values: componentSizes,\n },\n /**\n * @description theme of Tag\n */\n effect: {\n type: String,\n values: ['dark', 'light', 'plain'],\n default: 'light',\n },\n /**\n * @description whether Tag is rounded\n */\n round: Boolean,\n} as const)\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n\nexport const tagEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type TagEmits = typeof tagEmits\n\nexport type TagInstance = InstanceType<typeof Tag> & unknown\n"],"names":[],"mappings":";;;AAEY,MAAC,QAAQ,GAAG,UAAU,CAAC;AACnC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC;AAC/D,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,kBAAkB,EAAE,OAAO;AAC7B,EAAE,GAAG,EAAE,OAAO;AACd,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACtC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,EAAE;AACS,MAAC,QAAQ,GAAG;AACxB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Teleport from './src/
|
|
2
|
-
export { teleportProps } from './src/
|
|
1
|
+
import Teleport from './src/teleport.mjs';
|
|
2
|
+
export { teleportProps } from './src/teleport2.mjs';
|
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
4
4
|
|
|
5
5
|
const ElTeleport = withInstall(Teleport);
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, renderSlot, openBlock, createBlock, Teleport as Teleport$1 } from 'vue';
|
|
2
|
+
import { teleportProps } from './teleport2.mjs';
|
|
3
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
2
4
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "teleport",
|
|
7
|
+
props: teleportProps,
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return _ctx.disabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createBlock(Teleport$1, {
|
|
11
|
+
key: 1,
|
|
12
|
+
to: _ctx.to
|
|
13
|
+
}, [
|
|
14
|
+
renderSlot(_ctx.$slots, "default")
|
|
15
|
+
], 8, ["to"]));
|
|
16
|
+
};
|
|
17
|
+
}
|
|
9
18
|
});
|
|
19
|
+
var Teleport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "teleport.vue"]]);
|
|
10
20
|
|
|
11
|
-
export {
|
|
21
|
+
export { Teleport as default };
|
|
12
22
|
//# sourceMappingURL=teleport.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teleport.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"teleport.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { teleportProps } from './teleport.mjs';
|
|
3
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
1
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
4
2
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
key: 1,
|
|
12
|
-
to: _ctx.to
|
|
13
|
-
}, [
|
|
14
|
-
renderSlot(_ctx.$slots, "default")
|
|
15
|
-
], 8, ["to"]));
|
|
16
|
-
};
|
|
17
|
-
}
|
|
3
|
+
const teleportProps = buildProps({
|
|
4
|
+
to: {
|
|
5
|
+
type: definePropType([String, Object]),
|
|
6
|
+
required: true
|
|
7
|
+
},
|
|
8
|
+
disabled: Boolean
|
|
18
9
|
});
|
|
19
|
-
var Teleport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "teleport.vue"]]);
|
|
20
10
|
|
|
21
|
-
export {
|
|
11
|
+
export { teleportProps };
|
|
22
12
|
//# sourceMappingURL=teleport2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teleport2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"teleport2.mjs","sources":["../../../../../../packages/components/teleport/src/teleport.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Teleport from './teleport.vue'\n\nexport const teleportProps = buildProps({\n to: {\n type: definePropType<string | HTMLElement>([String, Object]),\n required: true,\n },\n disabled: Boolean,\n} as const)\n\nexport type TeleportProps = ExtractPropTypes<typeof teleportProps>\nexport type TeleportInstance = InstanceType<typeof Teleport> & unknown\n"],"names":[],"mappings":";;AACY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,CAAC;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import TimeSelect from './src/time-
|
|
2
|
-
export { timeSelectProps } from './src/time-
|
|
1
|
+
import TimeSelect from './src/time-select.mjs';
|
|
2
|
+
export { timeSelectProps } from './src/time-select2.mjs';
|
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
4
4
|
|
|
5
5
|
const ElTimeSelect = withInstall(TimeSelect);
|