@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload2.mjs","sources":["../../../../../../packages/components/upload/src/upload.
|
|
1
|
+
{"version":3,"file":"upload2.mjs","sources":["../../../../../../packages/components/upload/src/upload.ts"],"sourcesContent":["import { NOOP, buildProps, definePropType, mutable } from '@element-plus/utils'\nimport { ajaxUpload } from './ajax'\n\nimport type { Awaitable, Mutable } from '@element-plus/utils'\nimport type { UploadAjaxError } from './ajax'\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type Upload from './upload.vue'\n\nexport const uploadListTypes = ['text', 'picture', 'picture-card'] as const\n\nlet fileId = 1\nexport const genFileId = () => Date.now() + fileId++\n\nexport type UploadStatus = 'ready' | 'uploading' | 'success' | 'fail'\nexport interface UploadProgressEvent extends ProgressEvent {\n percent: number\n}\n\nexport interface UploadRequestOptions {\n action: string\n method: string\n data: Record<string, string | Blob | [Blob, string]>\n filename: string\n file: UploadRawFile\n headers: Headers | Record<string, string | number | null | undefined>\n onError: (evt: UploadAjaxError) => void\n onProgress: (evt: UploadProgressEvent) => void\n onSuccess: (response: any) => void\n withCredentials: boolean\n}\nexport interface UploadFile {\n name: string\n percentage?: number\n status: UploadStatus\n size?: number\n response?: unknown\n uid: number\n url?: string\n raw?: UploadRawFile\n}\nexport type UploadUserFile = Omit<UploadFile, 'status' | 'uid'> &\n Partial<Pick<UploadFile, 'status' | 'uid'>>\n\nexport type UploadFiles = UploadFile[]\nexport interface UploadRawFile extends File {\n uid: number\n isDirectory?: boolean\n}\nexport type UploadRequestHandler = (\n options: UploadRequestOptions\n) => XMLHttpRequest | Promise<unknown>\nexport interface UploadHooks {\n beforeUpload: (\n rawFile: UploadRawFile\n ) => Awaitable<void | undefined | null | boolean | File | Blob>\n beforeRemove: (\n uploadFile: UploadFile,\n uploadFiles: UploadFiles\n ) => Awaitable<boolean>\n onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void\n onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void\n onPreview: (uploadFile: UploadFile) => void\n onSuccess: (\n response: any,\n uploadFile: UploadFile,\n uploadFiles: UploadFiles\n ) => void\n onProgress: (\n evt: UploadProgressEvent,\n uploadFile: UploadFile,\n uploadFiles: UploadFiles\n ) => void\n onError: (\n error: Error,\n uploadFile: UploadFile,\n uploadFiles: UploadFiles\n ) => void\n onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void\n}\n\nexport type UploadData = Mutable<Record<string, any>>\n\nexport const uploadBaseProps = buildProps({\n /**\n * @description request URL\n */\n action: {\n type: String,\n default: '#',\n },\n /**\n * @description request headers\n */\n headers: {\n type: definePropType<Headers | Record<string, any>>(Object),\n },\n /**\n * @description set upload request method\n */\n method: {\n type: String,\n default: 'post',\n },\n /**\n * @description additions options of request\n */\n data: {\n type: definePropType<\n | Awaitable<UploadData>\n | ((rawFile: UploadRawFile) => Awaitable<UploadData>)\n >([Object, Function, Promise]),\n default: () => mutable({} as const),\n },\n /**\n * @description whether uploading multiple files is permitted\n */\n multiple: Boolean,\n /**\n * @description key name for uploaded file\n */\n name: {\n type: String,\n default: 'file',\n },\n /**\n * @description whether to activate drag and drop mode\n */\n drag: Boolean,\n /**\n * @description whether cookies are sent\n */\n withCredentials: Boolean,\n /**\n * @description whether to show the uploaded file list\n */\n showFileList: {\n type: Boolean,\n default: true,\n },\n /**\n * @description accepted [file types](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept), will not work when `thumbnail-mode === true`\n */\n accept: {\n type: String,\n default: '',\n },\n /**\n * @description default uploaded files\n */\n fileList: {\n type: definePropType<UploadUserFile[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description whether to auto upload file\n */\n autoUpload: {\n type: Boolean,\n default: true,\n },\n /**\n * @description type of file list\n */\n listType: {\n type: String,\n values: uploadListTypes,\n default: 'text',\n },\n /**\n * @description override default xhr behavior, allowing you to implement your own upload-file's request\n */\n httpRequest: {\n type: definePropType<UploadRequestHandler>(Function),\n default: ajaxUpload,\n },\n /**\n * @description whether to disable upload\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description maximum number of uploads allowed\n */\n limit: Number,\n} as const)\n\nexport const uploadProps = buildProps({\n ...uploadBaseProps,\n /**\n * @description hook function before uploading with the file to be uploaded as its parameter. If `false` is returned or a `Promise` is returned and then is rejected, uploading will be aborted\n */\n beforeUpload: {\n type: definePropType<UploadHooks['beforeUpload']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function before removing a file with the file and file list as its parameters. If `false` is returned or a `Promise` is returned and then is rejected, removing will be aborted\n */\n beforeRemove: {\n type: definePropType<UploadHooks['beforeRemove']>(Function),\n },\n /**\n * @description hook function when files are removed\n */\n onRemove: {\n type: definePropType<UploadHooks['onRemove']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function when select file or upload file success or upload file fail\n */\n onChange: {\n type: definePropType<UploadHooks['onChange']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function when clicking the uploaded files\n */\n onPreview: {\n type: definePropType<UploadHooks['onPreview']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function when uploaded successfully\n */\n onSuccess: {\n type: definePropType<UploadHooks['onSuccess']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function when some progress occurs\n */\n onProgress: {\n type: definePropType<UploadHooks['onProgress']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function when some errors occurs\n */\n onError: {\n type: definePropType<UploadHooks['onError']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function when limit is exceeded\n */\n onExceed: {\n type: definePropType<UploadHooks['onExceed']>(Function),\n default: NOOP,\n },\n /**\n * @description set HTML attribute: crossorigin.\n */\n crossorigin: {\n type: definePropType<'anonymous' | 'use-credentials' | ''>(String),\n },\n} as const)\n\nexport type UploadProps = ExtractPropTypes<typeof uploadProps>\nexport type UploadPropsPublic = ExtractPublicPropTypes<typeof uploadProps>\n\nexport type UploadInstance = InstanceType<typeof Up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AS,EAAA;AAAA,IACP,IAAA,EAAM,eAAuC,QAAQ,CAAA;AAAA,IACrD,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAA,EAAM,eAAwC,QAAQ,CAAA;AAAA,IACtD,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAA,EAAM,eAAqD,MAAM,CAAA;AAAA,GACnE;AACF,CAAU;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { watch, nextTick } from 'vue';
|
|
2
2
|
import { isNil } from 'lodash-unified';
|
|
3
3
|
import { useVModel } from '@vueuse/core';
|
|
4
|
-
import { genFileId } from './
|
|
4
|
+
import { genFileId } from './upload2.mjs';
|
|
5
5
|
import { debugWarn, throwError } from '../../../utils/error.mjs';
|
|
6
6
|
|
|
7
7
|
const SCOPE = "ElUpload";
|
package/es/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ export { makeInstaller } from './make-installer.mjs';
|
|
|
4
4
|
export { default as dayjs } from 'dayjs';
|
|
5
5
|
export { affixEmits, affixProps } from './components/affix/src/affix2.mjs';
|
|
6
6
|
export { ElAffix } from './components/affix/index.mjs';
|
|
7
|
-
export { alertEffects, alertEmits, alertProps } from './components/alert/src/
|
|
7
|
+
export { alertEffects, alertEmits, alertProps } from './components/alert/src/alert2.mjs';
|
|
8
8
|
export { ElAlert } from './components/alert/index.mjs';
|
|
9
9
|
export { autocompleteEmits, autocompleteProps } from './components/autocomplete/src/autocomplete.mjs';
|
|
10
10
|
export { ElAutocomplete } from './components/autocomplete/index.mjs';
|
|
@@ -37,17 +37,17 @@ export { ElCascaderPanel } from './components/cascader-panel/index.mjs';
|
|
|
37
37
|
export { checkTagEmits, checkTagProps } from './components/check-tag/src/check-tag.mjs';
|
|
38
38
|
export { ElCheckTag } from './components/check-tag/index.mjs';
|
|
39
39
|
export { checkboxDefaultProps, checkboxGroupEmits, checkboxGroupProps } from './components/checkbox/src/checkbox-group.mjs';
|
|
40
|
-
export { checkboxEmits, checkboxProps } from './components/checkbox/src/
|
|
40
|
+
export { checkboxEmits, checkboxProps } from './components/checkbox/src/checkbox2.mjs';
|
|
41
41
|
export { checkboxGroupContextKey } from './components/checkbox/src/constants.mjs';
|
|
42
42
|
export { ElCheckbox, ElCheckboxButton, ElCheckboxGroup } from './components/checkbox/index.mjs';
|
|
43
|
-
export { colProps } from './components/col/src/
|
|
43
|
+
export { colProps } from './components/col/src/col2.mjs';
|
|
44
44
|
export { ElCol } from './components/col/index.mjs';
|
|
45
45
|
export { collapseEmits, collapseProps, emitChangeFn } from './components/collapse/src/collapse.mjs';
|
|
46
46
|
export { collapseItemProps } from './components/collapse/src/collapse-item.mjs';
|
|
47
47
|
export { collapseContextKey } from './components/collapse/src/constants.mjs';
|
|
48
48
|
export { ElCollapse, ElCollapseItem } from './components/collapse/index.mjs';
|
|
49
49
|
export { ElCollapseTransition } from './components/collapse-transition/index.mjs';
|
|
50
|
-
export { ROOT_COMMON_COLOR_INJECTION_KEY, colorPickerPanelContextKey, colorPickerPanelEmits, colorPickerPanelProps } from './components/color-picker-panel/src/color-picker-
|
|
50
|
+
export { ROOT_COMMON_COLOR_INJECTION_KEY, colorPickerPanelContextKey, colorPickerPanelEmits, colorPickerPanelProps } from './components/color-picker-panel/src/color-picker-panel.mjs';
|
|
51
51
|
export { ElColorPickerPanel } from './components/color-picker-panel/index.mjs';
|
|
52
52
|
export { colorPickerEmits, colorPickerProps } from './components/color-picker/src/color-picker.mjs';
|
|
53
53
|
export { ElColorPicker } from './components/color-picker/index.mjs';
|
|
@@ -140,7 +140,7 @@ export { rowContextKey } from './components/row/src/constants.mjs';
|
|
|
140
140
|
export { ElRow } from './components/row/index.mjs';
|
|
141
141
|
export { BAR_MAP, GAP, renderThumbStyle } from './components/scrollbar/src/util.mjs';
|
|
142
142
|
export { scrollbarEmits, scrollbarProps } from './components/scrollbar/src/scrollbar.mjs';
|
|
143
|
-
export { thumbProps } from './components/scrollbar/src/
|
|
143
|
+
export { thumbProps } from './components/scrollbar/src/thumb.mjs';
|
|
144
144
|
export { scrollbarContextKey } from './components/scrollbar/src/constants.mjs';
|
|
145
145
|
export { ElScrollbar } from './components/scrollbar/index.mjs';
|
|
146
146
|
export { selectGroupKey, selectKey } from './components/select/src/token.mjs';
|
|
@@ -158,9 +158,9 @@ export { spaceProps } from './components/space/src/space.mjs';
|
|
|
158
158
|
export { spaceItemProps } from './components/space/src/item.mjs';
|
|
159
159
|
export { useSpace } from './components/space/src/use-space.mjs';
|
|
160
160
|
export { ElSpace } from './components/space/index.mjs';
|
|
161
|
-
export { statisticProps } from './components/statistic/src/
|
|
161
|
+
export { statisticProps } from './components/statistic/src/statistic2.mjs';
|
|
162
162
|
export { ElStatistic } from './components/statistic/index.mjs';
|
|
163
|
-
export { stepProps } from './components/steps/src/
|
|
163
|
+
export { stepProps } from './components/steps/src/item2.mjs';
|
|
164
164
|
export { stepsEmits, stepsProps } from './components/steps/src/steps.mjs';
|
|
165
165
|
export { STEPS_INJECTION_KEY } from './components/steps/src/tokens.mjs';
|
|
166
166
|
export { ElStep, ElSteps } from './components/steps/index.mjs';
|
|
@@ -180,7 +180,7 @@ export { tabNavEmits, tabNavProps } from './components/tabs/src/tab-nav.mjs';
|
|
|
180
180
|
export { tabPaneProps } from './components/tabs/src/tab-pane.mjs';
|
|
181
181
|
export { tabsRootContextKey } from './components/tabs/src/constants.mjs';
|
|
182
182
|
export { ElTabPane, ElTabs } from './components/tabs/index.mjs';
|
|
183
|
-
export { tagEmits, tagProps } from './components/tag/src/
|
|
183
|
+
export { tagEmits, tagProps } from './components/tag/src/tag2.mjs';
|
|
184
184
|
export { ElTag } from './components/tag/index.mjs';
|
|
185
185
|
export { textProps } from './components/text/src/text.mjs';
|
|
186
186
|
export { ElText } from './components/text/index.mjs';
|
|
@@ -197,7 +197,7 @@ export { TIMELINE_INJECTION_KEY } from './components/timeline/src/tokens.mjs';
|
|
|
197
197
|
export { ElTimeline, ElTimelineItem } from './components/timeline/index.mjs';
|
|
198
198
|
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './components/tooltip/src/tooltip.mjs';
|
|
199
199
|
export { useTooltipTriggerProps } from './components/tooltip/src/trigger.mjs';
|
|
200
|
-
export { useTooltipContentProps } from './components/tooltip/src/
|
|
200
|
+
export { useTooltipContentProps } from './components/tooltip/src/content2.mjs';
|
|
201
201
|
export { TOOLTIP_INJECTION_KEY } from './components/tooltip/src/constants.mjs';
|
|
202
202
|
export { ElTooltip } from './components/tooltip/index.mjs';
|
|
203
203
|
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './components/transfer/src/transfer.mjs';
|
|
@@ -207,7 +207,7 @@ export { treeEmits, treeProps } from './components/tree/src/tree.mjs';
|
|
|
207
207
|
export { ElTree } from './components/tree/index.mjs';
|
|
208
208
|
export { ElTreeSelect } from './components/tree-select/index.mjs';
|
|
209
209
|
export { ElTreeV2 } from './components/tree-v2/index.mjs';
|
|
210
|
-
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './components/upload/src/
|
|
210
|
+
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './components/upload/src/upload2.mjs';
|
|
211
211
|
export { uploadContentProps } from './components/upload/src/upload-content.mjs';
|
|
212
212
|
export { uploadListEmits, uploadListProps } from './components/upload/src/upload-list.mjs';
|
|
213
213
|
export { uploadDraggerEmits, uploadDraggerProps } from './components/upload/src/upload-dragger.mjs';
|
package/es/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.20251222";
|
package/es/version.mjs
CHANGED
package/es/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20251222'\n"],"names":[],"mappings":"AAAO,MAAM,OAAU,GAAA;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var alert$1 = require('./src/
|
|
6
|
-
var alert = require('./src/
|
|
5
|
+
var alert$1 = require('./src/alert.js');
|
|
6
|
+
var alert = require('./src/alert2.js');
|
|
7
7
|
var install = require('../../utils/vue/install.js');
|
|
8
8
|
|
|
9
9
|
const ElAlert = install.withInstall(alert$1["default"]);
|
|
@@ -2,49 +2,143 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$1 = require('../../icon/index.js');
|
|
7
|
+
var alert = require('./alert2.js');
|
|
8
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
5
9
|
var icon = require('../../../utils/vue/icon.js');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
11
|
+
var error = require('../../../utils/error.js');
|
|
8
12
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
type: String,
|
|
13
|
-
default: ""
|
|
13
|
+
const _sfc_main = vue.defineComponent({
|
|
14
|
+
...{
|
|
15
|
+
name: "ElAlert"
|
|
14
16
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
type
|
|
26
|
-
default
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
17
|
+
__name: "alert",
|
|
18
|
+
props: alert.alertProps,
|
|
19
|
+
emits: alert.alertEmits,
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
21
|
+
const { Close } = icon.TypeComponents;
|
|
22
|
+
const props = __props;
|
|
23
|
+
const emit = __emit;
|
|
24
|
+
const slots = vue.useSlots();
|
|
25
|
+
const ns = index.useNamespace("alert");
|
|
26
|
+
const visible = vue.ref(true);
|
|
27
|
+
const iconComponent = vue.computed(() => icon.TypeComponentsMap[props.type]);
|
|
28
|
+
const hasDesc = vue.computed(() => !!(props.description || slots.default));
|
|
29
|
+
const close = (evt) => {
|
|
30
|
+
visible.value = false;
|
|
31
|
+
emit("close", evt);
|
|
32
|
+
};
|
|
33
|
+
if (props.showAfter || props.hideAfter || props.autoClose) {
|
|
34
|
+
error.debugWarn(
|
|
35
|
+
"el-alert",
|
|
36
|
+
"The `show-after`, `hide-after`, and `auto-close` attributes were removed after 2.11.8. Please use `v-if` and `v-show` to manually replace them, visit: https://github.com/element-plus/element-plus/pull/22560"
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
41
|
+
name: vue.unref(ns).b("fade"),
|
|
42
|
+
persisted: ""
|
|
43
|
+
}, {
|
|
44
|
+
default: vue.withCtx(() => [
|
|
45
|
+
vue.withDirectives(vue.createElementVNode(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).m(_ctx.type), vue.unref(ns).is("center", _ctx.center), vue.unref(ns).is(_ctx.effect)]),
|
|
49
|
+
role: "alert"
|
|
50
|
+
},
|
|
51
|
+
[
|
|
52
|
+
_ctx.showIcon && (_ctx.$slots.icon || iconComponent.value) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(ns).is("big", hasDesc.value)])
|
|
55
|
+
}, {
|
|
56
|
+
default: vue.withCtx(() => [
|
|
57
|
+
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
58
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(iconComponent.value)))
|
|
59
|
+
])
|
|
60
|
+
]),
|
|
61
|
+
_: 3
|
|
62
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
63
|
+
vue.createElementVNode(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
67
|
+
},
|
|
68
|
+
[
|
|
69
|
+
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock(
|
|
70
|
+
"span",
|
|
71
|
+
{
|
|
72
|
+
key: 0,
|
|
73
|
+
class: vue.normalizeClass([vue.unref(ns).e("title"), { "with-description": hasDesc.value }])
|
|
74
|
+
},
|
|
75
|
+
[
|
|
76
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
77
|
+
vue.createTextVNode(
|
|
78
|
+
vue.toDisplayString(_ctx.title),
|
|
79
|
+
1
|
|
80
|
+
)
|
|
81
|
+
])
|
|
82
|
+
],
|
|
83
|
+
2
|
|
84
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
85
|
+
hasDesc.value ? (vue.openBlock(), vue.createElementBlock(
|
|
86
|
+
"p",
|
|
87
|
+
{
|
|
88
|
+
key: 1,
|
|
89
|
+
class: vue.normalizeClass(vue.unref(ns).e("description"))
|
|
90
|
+
},
|
|
91
|
+
[
|
|
92
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
93
|
+
vue.createTextVNode(
|
|
94
|
+
vue.toDisplayString(_ctx.description),
|
|
95
|
+
1
|
|
96
|
+
)
|
|
97
|
+
])
|
|
98
|
+
],
|
|
99
|
+
2
|
|
100
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
101
|
+
_ctx.closable ? (vue.openBlock(), vue.createElementBlock(
|
|
102
|
+
vue.Fragment,
|
|
103
|
+
{ key: 2 },
|
|
104
|
+
[
|
|
105
|
+
_ctx.closeText ? (vue.openBlock(), vue.createElementBlock(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
key: 0,
|
|
109
|
+
class: vue.normalizeClass([vue.unref(ns).e("close-btn"), vue.unref(ns).is("customed")]),
|
|
110
|
+
onClick: close
|
|
111
|
+
},
|
|
112
|
+
vue.toDisplayString(_ctx.closeText),
|
|
113
|
+
3
|
|
114
|
+
)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
115
|
+
key: 1,
|
|
116
|
+
class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
|
|
117
|
+
onClick: close
|
|
118
|
+
}, {
|
|
119
|
+
default: vue.withCtx(() => [
|
|
120
|
+
vue.createVNode(vue.unref(Close))
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["class"]))
|
|
124
|
+
],
|
|
125
|
+
64
|
|
126
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
127
|
+
],
|
|
128
|
+
2
|
|
129
|
+
)
|
|
130
|
+
],
|
|
131
|
+
2
|
|
132
|
+
), [
|
|
133
|
+
[vue.vShow, visible.value]
|
|
134
|
+
])
|
|
135
|
+
]),
|
|
136
|
+
_: 3
|
|
137
|
+
}, 8, ["name"]);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
42
140
|
});
|
|
43
|
-
|
|
44
|
-
close: (evt) => evt instanceof MouseEvent
|
|
45
|
-
};
|
|
141
|
+
var Alert = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);
|
|
46
142
|
|
|
47
|
-
exports
|
|
48
|
-
exports.alertEmits = alertEmits;
|
|
49
|
-
exports.alertProps = alertProps;
|
|
143
|
+
exports["default"] = Alert;
|
|
50
144
|
//# sourceMappingURL=alert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","sources":["../../../../../../packages/components/alert/src/alert.
|
|
1
|
+
{"version":3,"file":"alert.js","sources":["../../../../../../packages/components/alert/src/alert.vue"],"sourcesContent":["<template>\n <transition :name=\"ns.b('fade')\">\n <div\n v-show=\"visible\"\n :class=\"[ns.b(), ns.m(type), ns.is('center', center), ns.is(effect)]\"\n role=\"alert\"\n >\n <el-icon\n v-if=\"showIcon && ($slots.icon || iconComponent)\"\n :class=\"[ns.e('icon'), ns.is('big', hasDesc)]\"\n >\n <slot name=\"icon\">\n <component :is=\"iconComponent\" />\n </slot>\n </el-icon>\n\n <div :class=\"ns.e('content')\">\n <span\n v-if=\"title || $slots.title\"\n :class=\"[ns.e('title'), { 'with-description': hasDesc }]\"\n >\n <slot name=\"title\">{{ title }}</slot>\n </span>\n <p v-if=\"hasDesc\" :class=\"ns.e('description')\">\n <slot>\n {{ description }}\n </slot>\n </p>\n <template v-if=\"closable\">\n <div\n v-if=\"closeText\"\n :class=\"[ns.e('close-btn'), ns.is('customed')]\"\n @click=\"close\"\n >\n {{ closeText }}\n </div>\n <el-icon v-else :class=\"ns.e('close-btn')\" @click=\"close\">\n <Close />\n </el-icon>\n </template>\n </div>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, useSlots } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n TypeComponents,\n TypeComponentsMap,\n debugWarn,\n} from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { alertEmits, alertProps } from './alert'\n\nconst { Close } = TypeComponents\n\ndefineOptions({\n name: 'ElAlert',\n})\n\nconst props = defineProps(alertProps)\nconst emit = defineEmits(alertEmits)\nconst slots = useSlots()\n\nconst ns = useNamespace('alert')\n\nconst visible = ref(true)\n\nconst iconComponent = computed(() => TypeComponentsMap[props.type])\n\nconst hasDesc = computed(() => !!(props.description || slots.default))\n\nconst close = (evt: MouseEvent) => {\n visible.value = false\n emit('close', evt)\n}\n\nif (props.showAfter || props.hideAfter || props.autoClose) {\n debugWarn(\n 'el-alert',\n 'The `show-after`, `hide-after`, and `auto-close` attributes were removed after 2.11.8. Please use `v-if` and `v-show` to manually replace them, visit: https://github.com/element-plus/element-plus/pull/22560'\n )\n}\n</script>\n"],"names":["TypeComponents","useSlots","useNamespace","ref","computed","TypeComponentsMap","debugWarn","_createBlock","_Transition","_unref","_withDirectives","_createElementVNode","_normalizeClass","type","center","effect","showIcon","$slots","_openBlock","ElIcon","_renderSlot","_resolveDynamicComponent","title","_createElementBlock","_createTextVNode","description","closable","_Fragment","closeText","_createVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;AAwDM,IAAA,MAAA,EAAE,OAAU,GAAAA,mBAAA,CAAA;AAMlB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AACb,IAAA,MAAM,QAAQC,YAAS,EAAA,CAAA;AAEjB,IAAA,MAAA,EAAA,GAAKC,mBAAa,OAAO,CAAA,CAAA;AAEzB,IAAA,MAAA,OAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AAExB,IAAA,MAAM,aAAgB,GAAAC,YAAA,CAAS,MAAMC,sBAAA,CAAkB,MAAM,IAAK,CAAA,CAAA,CAAA;AAE5D,IAAA,MAAA,OAAA,GAAUD,aAAS,MAAM,CAAC,EAAE,KAAM,CAAA,WAAA,IAAe,MAAM,OAAQ,CAAA,CAAA,CAAA;AAE/D,IAAA,MAAA,KAAA,GAAQ,CAAC,GAAoB,KAAA;AACjC,MAAA,OAAA,CAAQ,KAAQ,GAAA,KAAA,CAAA;AAChB,MAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AAAA,KACnB,CAAA;AAEA,IAAA,IAAI,KAAM,CAAA,SAA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aAAA,EAAA,EAAAK,sBAAA;AAAA,wBAMM,KAAA;AAAA,wBAAA;AAAA,0BAAA,GAAA,EAAA,CAAA;AAAA,0BAJH,KAAK,EAAAX,kBAAA,CAAG,CAAAH,SAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,WAAA,CAAA,EAAeA,cAAG,EAAE,CAAA,UAAA,CAAA,CAAA,CAAA;AAAA,0BAChC,OAAO,EAAA,KAAA;AAAA,yBAAA;AAAA,4CAELmB,KAAS,SAAA,CAAA;AAAA,wBAAA,CAAA;AAAA,4BAAAV,aAAA,EAAA,EAEdX,eAEU,CAAAE,SAAA,CAAAU,cAAA,CAAA,EAAA;AAAA,wBAAA,GAAA,EAAA,CAAA;AAAA,wBAFO,OAAKP,kBAAE,CAAAH,SAAA,IAAG,CAAA,CAAA,CAAC,WAAA,CAAA,CAAA;AAAA,wBAAgB,OAAO,EAAA,KAAA;AAAA,uBAAA,EAAA;AAAA,6CACjD,MAAS;AAAA,0BAAToB,eAAA,CAASpB,SAAA,CAAA,KAAA,CAAA,CAAA;AAAA,yBAAA,CAAA;AAAA;;;;;;;;;;;sBAlCP,EAAA,OAAA,CAAO,KAAA,CAAA;AAAA,WAAA,CAAA;AAAA;;;;;;;;;;"}
|
|
@@ -2,143 +2,49 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var index$1 = require('../../icon/index.js');
|
|
7
|
-
var alert = require('./alert.js');
|
|
8
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
9
5
|
var icon = require('../../../utils/vue/icon.js');
|
|
10
|
-
var
|
|
11
|
-
var
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
7
|
+
var objects = require('../../../utils/objects.js');
|
|
12
8
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
const alertEffects = ["light", "dark"];
|
|
10
|
+
const alertProps = runtime.buildProps({
|
|
11
|
+
title: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
16
14
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
default: vue.withCtx(() => [
|
|
45
|
-
vue.withDirectives(vue.createElementVNode(
|
|
46
|
-
"div",
|
|
47
|
-
{
|
|
48
|
-
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).m(_ctx.type), vue.unref(ns).is("center", _ctx.center), vue.unref(ns).is(_ctx.effect)]),
|
|
49
|
-
role: "alert"
|
|
50
|
-
},
|
|
51
|
-
[
|
|
52
|
-
_ctx.showIcon && (_ctx.$slots.icon || iconComponent.value) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
53
|
-
key: 0,
|
|
54
|
-
class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(ns).is("big", hasDesc.value)])
|
|
55
|
-
}, {
|
|
56
|
-
default: vue.withCtx(() => [
|
|
57
|
-
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
58
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(iconComponent.value)))
|
|
59
|
-
])
|
|
60
|
-
]),
|
|
61
|
-
_: 3
|
|
62
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
63
|
-
vue.createElementVNode(
|
|
64
|
-
"div",
|
|
65
|
-
{
|
|
66
|
-
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
67
|
-
},
|
|
68
|
-
[
|
|
69
|
-
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock(
|
|
70
|
-
"span",
|
|
71
|
-
{
|
|
72
|
-
key: 0,
|
|
73
|
-
class: vue.normalizeClass([vue.unref(ns).e("title"), { "with-description": hasDesc.value }])
|
|
74
|
-
},
|
|
75
|
-
[
|
|
76
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
77
|
-
vue.createTextVNode(
|
|
78
|
-
vue.toDisplayString(_ctx.title),
|
|
79
|
-
1
|
|
80
|
-
)
|
|
81
|
-
])
|
|
82
|
-
],
|
|
83
|
-
2
|
|
84
|
-
)) : vue.createCommentVNode("v-if", true),
|
|
85
|
-
hasDesc.value ? (vue.openBlock(), vue.createElementBlock(
|
|
86
|
-
"p",
|
|
87
|
-
{
|
|
88
|
-
key: 1,
|
|
89
|
-
class: vue.normalizeClass(vue.unref(ns).e("description"))
|
|
90
|
-
},
|
|
91
|
-
[
|
|
92
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
93
|
-
vue.createTextVNode(
|
|
94
|
-
vue.toDisplayString(_ctx.description),
|
|
95
|
-
1
|
|
96
|
-
)
|
|
97
|
-
])
|
|
98
|
-
],
|
|
99
|
-
2
|
|
100
|
-
)) : vue.createCommentVNode("v-if", true),
|
|
101
|
-
_ctx.closable ? (vue.openBlock(), vue.createElementBlock(
|
|
102
|
-
vue.Fragment,
|
|
103
|
-
{ key: 2 },
|
|
104
|
-
[
|
|
105
|
-
_ctx.closeText ? (vue.openBlock(), vue.createElementBlock(
|
|
106
|
-
"div",
|
|
107
|
-
{
|
|
108
|
-
key: 0,
|
|
109
|
-
class: vue.normalizeClass([vue.unref(ns).e("close-btn"), vue.unref(ns).is("customed")]),
|
|
110
|
-
onClick: close
|
|
111
|
-
},
|
|
112
|
-
vue.toDisplayString(_ctx.closeText),
|
|
113
|
-
3
|
|
114
|
-
)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
115
|
-
key: 1,
|
|
116
|
-
class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
|
|
117
|
-
onClick: close
|
|
118
|
-
}, {
|
|
119
|
-
default: vue.withCtx(() => [
|
|
120
|
-
vue.createVNode(vue.unref(Close))
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
}, 8, ["class"]))
|
|
124
|
-
],
|
|
125
|
-
64
|
|
126
|
-
)) : vue.createCommentVNode("v-if", true)
|
|
127
|
-
],
|
|
128
|
-
2
|
|
129
|
-
)
|
|
130
|
-
],
|
|
131
|
-
2
|
|
132
|
-
), [
|
|
133
|
-
[vue.vShow, visible.value]
|
|
134
|
-
])
|
|
135
|
-
]),
|
|
136
|
-
_: 3
|
|
137
|
-
}, 8, ["name"]);
|
|
138
|
-
};
|
|
139
|
-
}
|
|
15
|
+
description: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ""
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
type: String,
|
|
21
|
+
values: objects.keysOf(icon.TypeComponentsMap),
|
|
22
|
+
default: "info"
|
|
23
|
+
},
|
|
24
|
+
closable: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: true
|
|
27
|
+
},
|
|
28
|
+
closeText: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: ""
|
|
31
|
+
},
|
|
32
|
+
showIcon: Boolean,
|
|
33
|
+
center: Boolean,
|
|
34
|
+
effect: {
|
|
35
|
+
type: String,
|
|
36
|
+
values: alertEffects,
|
|
37
|
+
default: "light"
|
|
38
|
+
},
|
|
39
|
+
showAfter: Number,
|
|
40
|
+
hideAfter: Number,
|
|
41
|
+
autoClose: Number
|
|
140
42
|
});
|
|
141
|
-
|
|
43
|
+
const alertEmits = {
|
|
44
|
+
close: (evt) => evt instanceof MouseEvent
|
|
45
|
+
};
|
|
142
46
|
|
|
143
|
-
exports
|
|
47
|
+
exports.alertEffects = alertEffects;
|
|
48
|
+
exports.alertEmits = alertEmits;
|
|
49
|
+
exports.alertProps = alertProps;
|
|
144
50
|
//# sourceMappingURL=alert2.js.map
|