@element-plus/nightly 0.0.20251221 → 0.0.20251222
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +16 -9
- package/dist/index.full.min.js +11 -11
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11 -11
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +16 -9
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/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/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +135 -39
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +39 -135
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.mjs +1 -1
- package/es/components/cascader/src/cascader.mjs +2 -2
- package/es/components/checkbox/index.mjs +2 -2
- package/es/components/checkbox/src/checkbox-button.mjs +1 -1
- package/es/components/checkbox/src/checkbox-group2.mjs +1 -1
- package/es/components/checkbox/src/checkbox.mjs +134 -62
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +62 -134
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +65 -42
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +42 -65
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker.mjs +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +1 -1
- package/es/components/color-picker-panel/index.mjs +2 -2
- package/es/components/color-picker-panel/src/color-picker-panel.mjs +26 -157
- package/es/components/color-picker-panel/src/color-picker-panel.mjs.map +1 -1
- package/es/components/color-picker-panel/src/color-picker-panel2.mjs +157 -26
- package/es/components/color-picker-panel/src/color-picker-panel2.mjs.map +1 -1
- package/es/components/color-picker-panel/src/composables/use-predefine.mjs +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs +7 -2
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs.map +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +2 -0
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +2 -1
- package/es/components/date-picker-panel/src/date-picker-panel.mjs +2 -1
- package/es/components/date-picker-panel/src/date-picker-panel.mjs.map +1 -1
- package/es/components/date-picker-panel/src/panel-utils.d.ts +6 -0
- package/es/components/dropdown/src/dropdown.mjs +1 -1
- package/es/components/index.mjs +10 -10
- package/es/components/input-tag/src/input-tag.mjs +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/popconfirm/src/popconfirm.mjs +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/scrollbar/index.mjs +1 -1
- package/es/components/scrollbar/src/bar2.mjs +1 -1
- package/es/components/scrollbar/src/thumb.mjs +11 -163
- package/es/components/scrollbar/src/thumb.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb2.mjs +163 -11
- package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +2 -2
- package/es/components/select-v2/src/defaults.mjs +2 -2
- package/es/components/statistic/index.mjs +2 -2
- package/es/components/statistic/src/statistic.mjs +111 -24
- package/es/components/statistic/src/statistic.mjs.map +1 -1
- package/es/components/statistic/src/statistic2.mjs +24 -111
- package/es/components/statistic/src/statistic2.mjs.map +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/item.mjs +257 -18
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item2.mjs +18 -257
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/table/src/filter-panel.mjs +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/time-picker/src/common/picker.mjs +5 -4
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +1 -0
- package/es/components/time-picker/src/common/props.mjs +1 -1
- package/es/components/tooltip/index.mjs +1 -1
- package/es/components/tooltip/src/content.mjs +213 -28
- package/es/components/tooltip/src/content.mjs.map +1 -1
- package/es/components/tooltip/src/content2.mjs +28 -213
- package/es/components/tooltip/src/content2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/upload/index.mjs +2 -2
- package/es/components/upload/src/upload-content.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +1 -1
- package/es/components/upload/src/upload.mjs +138 -101
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +101 -138
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.mjs +1 -1
- package/es/index.mjs +10 -10
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +134 -40
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +40 -134
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.js +1 -1
- package/lib/components/cascader/src/cascader.js +2 -2
- package/lib/components/checkbox/index.js +2 -2
- package/lib/components/checkbox/src/checkbox-button.js +1 -1
- package/lib/components/checkbox/src/checkbox-group2.js +1 -1
- package/lib/components/checkbox/src/checkbox.js +134 -63
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +63 -134
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +65 -42
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +42 -65
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/color-picker/src/color-picker.js +1 -1
- package/lib/components/color-picker/src/color-picker2.js +1 -1
- package/lib/components/color-picker-panel/index.js +2 -2
- package/lib/components/color-picker-panel/src/color-picker-panel.js +29 -157
- package/lib/components/color-picker-panel/src/color-picker-panel.js.map +1 -1
- package/lib/components/color-picker-panel/src/color-picker-panel2.js +157 -29
- package/lib/components/color-picker-panel/src/color-picker-panel2.js.map +1 -1
- package/lib/components/color-picker-panel/src/composables/use-predefine.js +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js +7 -2
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +2 -0
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +2 -1
- package/lib/components/date-picker-panel/src/date-picker-panel.js +2 -1
- package/lib/components/date-picker-panel/src/date-picker-panel.js.map +1 -1
- package/lib/components/date-picker-panel/src/panel-utils.d.ts +6 -0
- package/lib/components/dropdown/src/dropdown.js +1 -1
- package/lib/components/index.js +10 -10
- package/lib/components/input-tag/src/input-tag.js +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/popconfirm/src/popconfirm.js +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/src/bar2.js +1 -1
- package/lib/components/scrollbar/src/thumb.js +11 -163
- package/lib/components/scrollbar/src/thumb.js.map +1 -1
- package/lib/components/scrollbar/src/thumb2.js +163 -11
- package/lib/components/scrollbar/src/thumb2.js.map +1 -1
- package/lib/components/select/src/select.js +2 -2
- package/lib/components/select-v2/src/defaults.js +2 -2
- package/lib/components/statistic/index.js +2 -2
- package/lib/components/statistic/src/statistic.js +111 -24
- package/lib/components/statistic/src/statistic.js.map +1 -1
- package/lib/components/statistic/src/statistic2.js +24 -111
- package/lib/components/statistic/src/statistic2.js.map +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/item.js +257 -18
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item2.js +18 -257
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/table/src/filter-panel.js +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/time-picker/src/common/picker.js +5 -4
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +1 -0
- package/lib/components/time-picker/src/common/props.js +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/src/content.js +213 -28
- package/lib/components/tooltip/src/content.js.map +1 -1
- package/lib/components/tooltip/src/content2.js +28 -213
- package/lib/components/tooltip/src/content2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upload/src/upload-content.js +1 -1
- package/lib/components/upload/src/upload-content2.js +1 -1
- package/lib/components/upload/src/upload-list.js +1 -1
- package/lib/components/upload/src/upload.js +138 -104
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload2.js +104 -138
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/components/upload/src/use-handlers.js +1 -1
- package/lib/index.js +10 -10
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/dark/css-vars.css +1 -1
- package/theme-chalk/el-breadcrumb-item.css +1 -0
- package/theme-chalk/el-breadcrumb.css +1 -1
- package/theme-chalk/el-collapse-item.css +1 -0
- package/theme-chalk/el-collapse-transition.css +1 -0
- package/theme-chalk/el-collapse.css +1 -1
- package/theme-chalk/el-color-picker-panel.css +1 -1
- package/theme-chalk/el-date-picker-panel.css +1 -1
- package/theme-chalk/el-popper.css +1 -1
- package/theme-chalk/el-table-v2.css +1 -1
- package/theme-chalk/el-table.css +1 -1
- package/theme-chalk/el-time-picker.css +1 -1
- package/theme-chalk/el-time-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/breadcrumb-item.scss +58 -0
- package/theme-chalk/src/breadcrumb.scss +0 -53
- package/theme-chalk/src/collapse-item.scss +67 -0
- package/theme-chalk/src/collapse-transition.scss +1 -0
- package/theme-chalk/src/collapse.scss +0 -65
- package/theme-chalk/src/color-picker-panel.scss +10 -1
- package/theme-chalk/src/common/var.scss +15 -2
- package/theme-chalk/src/dark/css-vars.scss +6 -0
- package/theme-chalk/src/date-picker/date-picker.scss +4 -0
- package/theme-chalk/src/date-picker/picker-panel.scss +3 -3
- package/theme-chalk/src/popper.scss +14 -4
- package/web-types.json +1 -1
|
@@ -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":";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J,SAAA,CAAAK,cAAA,CAAA,EAAA,IAAA,EAAA;AAAA,kBAAA,OAAA,EAAAC,YADR,MAAS;AAAA,oBAATF,eAAA,CAASJ,SAAA,CAAAO,cAAA,CAAA,CAAA;AAAA,mBAAA,CAAA;AAAA;;;;;;;;;;;;;;;;"}
|
|
@@ -2,139 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
-
var tag = require('./tag.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');
|
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
6
|
+
var size = require('../../../constants/size.js');
|
|
13
7
|
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
const tagProps = runtime.buildProps({
|
|
9
|
+
type: {
|
|
10
|
+
type: String,
|
|
11
|
+
values: ["primary", "success", "info", "warning", "danger"],
|
|
12
|
+
default: "primary"
|
|
19
13
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
}
|
|
14
|
+
closable: Boolean,
|
|
15
|
+
disableTransitions: Boolean,
|
|
16
|
+
hit: Boolean,
|
|
17
|
+
color: String,
|
|
18
|
+
size: {
|
|
19
|
+
type: String,
|
|
20
|
+
values: size.componentSizes
|
|
21
|
+
},
|
|
22
|
+
effect: {
|
|
23
|
+
type: String,
|
|
24
|
+
values: ["dark", "light", "plain"],
|
|
25
|
+
default: "light"
|
|
26
|
+
},
|
|
27
|
+
round: Boolean
|
|
136
28
|
});
|
|
137
|
-
|
|
29
|
+
const tagEmits = {
|
|
30
|
+
close: (evt) => evt instanceof MouseEvent,
|
|
31
|
+
click: (evt) => evt instanceof MouseEvent
|
|
32
|
+
};
|
|
138
33
|
|
|
139
|
-
exports
|
|
34
|
+
exports.tagEmits = tagEmits;
|
|
35
|
+
exports.tagProps = tagProps;
|
|
140
36
|
//# sourceMappingURL=tag2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag2.js","sources":["../../../../../../packages/components/tag/src/tag.
|
|
1
|
+
{"version":3,"file":"tag2.js","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\n\nimport type Tag from './tag.vue'\nimport type { ExtractPropTypes, ExtractPublicPropTypes } 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>\nexport type TagPropsPublic = ExtractPublicPropTypes<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":["buildProps","componentSizes"],"mappings":";;;;;;;AAMO,MAAM,WAAWA,kBAAW,CAAA;AAAA,EAIjC,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,QAAQ,CAAC,SAAA,EAAW,SAAW,EAAA,MAAA,EAAQ,WAAW,QAAQ,CAAA;AAAA,IAC1D,OAAS,EAAA,SAAA;AAAA,GACX;AAAA,EAIA,QAAU,EAAA,OAAA;AAAA,EAIV,kBAAoB,EAAA,OAAA;AAAA,EAIpB,GAAK,EAAA,OAAA;AAAA,EAIL,KAAO,EAAA,MAAA;AAAA,EAIP,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAAC,mBAAA;AAAA,GACV;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,CAAC,MAAQ,EAAA,OAAA,EAAS,OAAO,CAAA;AAAA,IACjC,OAAS,EAAA,OAAA;AAAA,GACX;AAAA,EAIA,KAAO,EAAA,OAAA;AACT,CAAU,EAAA;AAIH,MAAM,QAAW,GAAA;AAAA,EACtB,KAAA,EAAO,CAAC,GAAA,KAAoB,GAAe,YAAA,UAAA;AAAA,EAC3C,KAAA,EAAO,CAAC,GAAA,KAAoB,GAAe,YAAA,UAAA;AAC7C;;;;;"}
|
|
@@ -202,11 +202,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
202
202
|
const showClearBtn = vue.computed(
|
|
203
203
|
() => props.clearable && !pickerDisabled.value && !props.readonly && !valueIsEmpty.value && (hovering.value || isFocused.value)
|
|
204
204
|
);
|
|
205
|
-
const
|
|
205
|
+
const onClear = (event) => {
|
|
206
206
|
if (props.readonly || pickerDisabled.value)
|
|
207
207
|
return;
|
|
208
208
|
if (showClearBtn.value) {
|
|
209
|
-
event.stopPropagation();
|
|
209
|
+
event == null ? void 0 : event.stopPropagation();
|
|
210
210
|
if (pickerOptions.value.handleClear) {
|
|
211
211
|
pickerOptions.value.handleClear();
|
|
212
212
|
} else {
|
|
@@ -498,7 +498,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
498
498
|
key: 0,
|
|
499
499
|
class: vue.normalizeClass(`${vue.unref(nsInput).e("icon")} clear-icon`),
|
|
500
500
|
onMousedown: vue.withModifiers(vue.unref(shared.NOOP), ["prevent"]),
|
|
501
|
-
onClick:
|
|
501
|
+
onClick: onClear
|
|
502
502
|
}, {
|
|
503
503
|
default: vue.withCtx(() => [
|
|
504
504
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.clearIcon)))
|
|
@@ -565,7 +565,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
565
565
|
key: 0,
|
|
566
566
|
class: vue.normalizeClass(clearIconKls.value),
|
|
567
567
|
onMousedown: vue.withModifiers(vue.unref(shared.NOOP), ["prevent"]),
|
|
568
|
-
onClick:
|
|
568
|
+
onClick: onClear
|
|
569
569
|
}, {
|
|
570
570
|
default: vue.withCtx(() => [
|
|
571
571
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.clearIcon)))
|
|
@@ -595,6 +595,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
595
595
|
onSelectRange: setSelectionRange,
|
|
596
596
|
onSetPickerOption: _cache[2] || (_cache[2] = (...args) => vue.unref(onSetPickerOption) && vue.unref(onSetPickerOption)(...args)),
|
|
597
597
|
onCalendarChange: _cache[3] || (_cache[3] = (...args) => vue.unref(onCalendarChange) && vue.unref(onCalendarChange)(...args)),
|
|
598
|
+
onClear,
|
|
598
599
|
onPanelChange: _cache[4] || (_cache[4] = (...args) => vue.unref(onPanelChange) && vue.unref(onPanelChange)(...args)),
|
|
599
600
|
onMousedown: _cache[5] || (_cache[5] = vue.withModifiers(() => {
|
|
600
601
|
}, ["stop"]))
|