element-plus 2.5.0 → 2.5.2
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/README.md +0 -5
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +542 -528
- package/dist/index.full.min.js +21 -27
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +21 -27
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +543 -529
- 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/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/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/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/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/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-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/autocomplete/index.d.ts +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/cascader-panel/src/menu.mjs +3 -4
- package/es/components/cascader-panel/src/menu.mjs.map +1 -1
- package/es/components/checkbox/src/composables/use-checkbox-model.mjs +1 -1
- package/es/components/checkbox/src/composables/use-checkbox-model.mjs.map +1 -1
- package/es/components/collapse/index.d.ts +8 -8
- package/es/components/collapse/src/collapse-item.d.ts +1 -1
- package/es/components/collapse/src/collapse-item.mjs +1 -2
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item.vue.d.ts +4 -4
- package/es/components/collapse/src/use-collapse-item.d.ts +1 -1
- package/es/components/collapse/src/use-collapse-item.mjs +11 -6
- package/es/components/collapse/src/use-collapse-item.mjs.map +1 -1
- package/es/components/collection/index.mjs +1 -1
- package/es/components/collection/src/collection.mjs +62 -10
- package/es/components/collection/src/collection.mjs.map +1 -1
- package/es/components/collection/src/collection2.mjs +10 -62
- package/es/components/collection/src/collection2.mjs.map +1 -1
- package/es/components/config-provider/index.d.ts +1 -1
- package/es/components/config-provider/src/config-provider.d.ts +1 -1
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +23 -74
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +74 -23
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/descriptions/index.mjs +2 -2
- package/es/components/descriptions/src/description.mjs +25 -112
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +112 -25
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.mjs +29 -89
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +89 -29
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/drawer/index.d.ts +209 -16
- package/es/components/drawer/src/drawer.vue.d.ts +209 -16
- package/es/components/drawer/src/drawer2.mjs +137 -132
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +1 -1
- package/es/components/dropdown/src/useDropdown.mjs +2 -2
- package/es/components/dropdown/src/useDropdown.mjs.map +1 -1
- package/es/components/image/index.d.ts +37 -11
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/src/image.d.ts +6 -1
- package/es/components/image/src/image.mjs +226 -65
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image.vue.d.ts +37 -11
- package/es/components/image/src/image2.mjs +64 -227
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/image-viewer/index.d.ts +19 -6
- package/es/components/image-viewer/src/image-viewer.d.ts +6 -1
- package/es/components/image-viewer/src/image-viewer.mjs +1 -2
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +19 -6
- package/es/components/image-viewer/src/image-viewer2.mjs +6 -9
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +3 -3
- package/es/components/input/src/input2.mjs +3 -1
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +5 -0
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
- package/es/components/select/index.d.ts +5 -0
- package/es/components/select/src/select.vue.d.ts +5 -0
- package/es/components/select/src/select2.mjs +41 -33
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select/src/useSelect.d.ts +5 -0
- package/es/components/select/src/useSelect.mjs +41 -13
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/index.d.ts +22 -12
- package/es/components/select-v2/src/defaults.d.ts +2 -2
- package/es/components/select-v2/src/defaults.mjs +2 -8
- package/es/components/select-v2/src/defaults.mjs.map +1 -1
- package/es/components/select-v2/src/select-dropdown.d.ts +5 -1
- package/es/components/select-v2/src/select-dropdown.mjs +6 -5
- package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
- package/es/components/select-v2/src/select.mjs +55 -19
- package/es/components/select-v2/src/select.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +11 -6
- package/es/components/select-v2/src/useSelect.d.ts +5 -0
- package/es/components/select-v2/src/useSelect.mjs +42 -3
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/space/src/use-space.mjs +7 -8
- package/es/components/space/src/use-space.mjs.map +1 -1
- package/es/components/table/index.d.ts +10 -10
- package/es/components/table/src/table/defaults.d.ts +2 -2
- package/es/components/table/src/table-body/defaults.d.ts +1 -1
- package/es/components/table/src/table-body/events-helper.mjs +1 -4
- package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/index.d.ts +2 -2
- package/es/components/table/src/table-column/defaults.d.ts +1 -1
- package/es/components/table/src/table-column/index.d.ts +3 -3
- package/es/components/table/src/table.vue.d.ts +4 -4
- package/es/components/table/src/util.d.ts +9 -76
- package/es/components/table/src/util.mjs +36 -105
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/time-select/index.d.ts +20 -0
- package/es/components/time-select/src/time-select.vue.d.ts +10 -0
- package/es/components/tour/index.d.ts +9 -9
- package/es/components/tour/src/helper.d.ts +1 -1
- package/es/components/tour/src/helper.mjs +20 -7
- package/es/components/tour/src/helper.mjs.map +1 -1
- package/es/components/tour/src/step.d.ts +1 -1
- package/es/components/tour/src/step.mjs +1 -1
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step.vue.d.ts +3 -3
- package/es/components/tour/src/tour.vue.d.ts +3 -3
- package/es/components/tour/src/types.d.ts +1 -1
- package/es/components/tree/src/model/tree-store.mjs +12 -5
- package/es/components/tree/src/model/tree-store.mjs.map +1 -1
- package/es/index.mjs +3 -3
- package/es/utils/rand.d.ts +2 -0
- package/es/utils/rand.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.d.ts +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +10 -10
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/cascader-panel/src/menu.js +3 -4
- package/lib/components/cascader-panel/src/menu.js.map +1 -1
- package/lib/components/checkbox/src/composables/use-checkbox-model.js +1 -1
- package/lib/components/checkbox/src/composables/use-checkbox-model.js.map +1 -1
- package/lib/components/collapse/index.d.ts +8 -8
- package/lib/components/collapse/src/collapse-item.d.ts +1 -1
- package/lib/components/collapse/src/collapse-item.js +1 -2
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item.vue.d.ts +4 -4
- package/lib/components/collapse/src/use-collapse-item.d.ts +1 -1
- package/lib/components/collapse/src/use-collapse-item.js +11 -6
- package/lib/components/collapse/src/use-collapse-item.js.map +1 -1
- package/lib/components/collection/index.js +1 -1
- package/lib/components/collection/src/collection.js +62 -9
- package/lib/components/collection/src/collection.js.map +1 -1
- package/lib/components/collection/src/collection2.js +9 -62
- package/lib/components/collection/src/collection2.js.map +1 -1
- package/lib/components/config-provider/index.d.ts +1 -1
- package/lib/components/config-provider/src/config-provider.d.ts +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +24 -74
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +74 -24
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/descriptions/index.js +2 -2
- package/lib/components/descriptions/src/description.js +25 -112
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +112 -25
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.js +29 -88
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +88 -29
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/drawer/index.d.ts +209 -16
- package/lib/components/drawer/src/drawer.vue.d.ts +209 -16
- package/lib/components/drawer/src/drawer2.js +145 -140
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +1 -1
- package/lib/components/dropdown/src/useDropdown.js +2 -2
- package/lib/components/dropdown/src/useDropdown.js.map +1 -1
- package/lib/components/image/index.d.ts +37 -11
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/src/image.d.ts +6 -1
- package/lib/components/image/src/image.js +225 -65
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image.vue.d.ts +37 -11
- package/lib/components/image/src/image2.js +64 -226
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/image-viewer/index.d.ts +19 -6
- package/lib/components/image-viewer/src/image-viewer.d.ts +6 -1
- package/lib/components/image-viewer/src/image-viewer.js +1 -2
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +19 -6
- package/lib/components/image-viewer/src/image-viewer2.js +6 -9
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +3 -3
- package/lib/components/input/src/input2.js +3 -1
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +5 -0
- package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
- package/lib/components/select/index.d.ts +5 -0
- package/lib/components/select/src/select.vue.d.ts +5 -0
- package/lib/components/select/src/select2.js +40 -32
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select/src/useSelect.d.ts +5 -0
- package/lib/components/select/src/useSelect.js +39 -11
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/index.d.ts +22 -12
- package/lib/components/select-v2/src/defaults.d.ts +2 -2
- package/lib/components/select-v2/src/defaults.js +2 -8
- package/lib/components/select-v2/src/defaults.js.map +1 -1
- package/lib/components/select-v2/src/select-dropdown.d.ts +5 -1
- package/lib/components/select-v2/src/select-dropdown.js +6 -5
- package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
- package/lib/components/select-v2/src/select.js +54 -18
- package/lib/components/select-v2/src/select.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +11 -6
- package/lib/components/select-v2/src/useSelect.d.ts +5 -0
- package/lib/components/select-v2/src/useSelect.js +42 -3
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/space/src/use-space.js +7 -8
- package/lib/components/space/src/use-space.js.map +1 -1
- package/lib/components/table/index.d.ts +10 -10
- package/lib/components/table/src/table/defaults.d.ts +2 -2
- package/lib/components/table/src/table-body/defaults.d.ts +1 -1
- package/lib/components/table/src/table-body/events-helper.js +1 -4
- package/lib/components/table/src/table-body/events-helper.js.map +1 -1
- package/lib/components/table/src/table-body/index.d.ts +2 -2
- package/lib/components/table/src/table-column/defaults.d.ts +1 -1
- package/lib/components/table/src/table-column/index.d.ts +3 -3
- package/lib/components/table/src/table.vue.d.ts +4 -4
- package/lib/components/table/src/util.d.ts +9 -76
- package/lib/components/table/src/util.js +35 -108
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/time-select/index.d.ts +20 -0
- package/lib/components/time-select/src/time-select.vue.d.ts +10 -0
- package/lib/components/tour/index.d.ts +9 -9
- package/lib/components/tour/src/helper.d.ts +1 -1
- package/lib/components/tour/src/helper.js +19 -6
- package/lib/components/tour/src/helper.js.map +1 -1
- package/lib/components/tour/src/step.d.ts +1 -1
- package/lib/components/tour/src/step.js +1 -1
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step.vue.d.ts +3 -3
- package/lib/components/tour/src/tour.vue.d.ts +3 -3
- package/lib/components/tour/src/types.d.ts +1 -1
- package/lib/components/tree/src/model/tree-store.js +12 -5
- package/lib/components/tree/src/model/tree-store.js.map +1 -1
- package/lib/index.js +3 -3
- package/lib/utils/rand.d.ts +2 -0
- package/lib/utils/rand.js.map +1 -1
- 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/el-select-dropdown-v2.css +1 -1
- package/theme-chalk/el-select-dropdown.css +1 -1
- package/theme-chalk/el-select-v2.css +1 -1
- package/theme-chalk/el-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/select-dropdown.scss +8 -0
- package/theme-chalk/src/select.scss +2 -1
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.js","sources":["../../../../../../packages/components/collection/src/collection.
|
|
1
|
+
{"version":3,"file":"collection.js","sources":["../../../../../../packages/components/collection/src/collection.ts"],"sourcesContent":["import { inject, onBeforeUnmount, onMounted, provide, ref, unref } from 'vue'\nimport Collection from './collection.vue'\nimport CollectionItem from './collection-item.vue'\n\nimport type { InjectionKey } from 'vue'\nimport type { SetupContext } from '@vue/runtime-core'\nimport type {\n ElCollectionInjectionContext,\n ElCollectionItemInjectionContext,\n} from './tokens'\n\nexport const COLLECTION_ITEM_SIGN = `data-el-collection-item`\n\n// Make sure the first letter of name is capitalized\nexport const createCollectionWithScope = (name: string) => {\n const COLLECTION_NAME = `El${name}Collection`\n const COLLECTION_ITEM_NAME = `${COLLECTION_NAME}Item`\n const COLLECTION_INJECTION_KEY: InjectionKey<ElCollectionInjectionContext> =\n Symbol(COLLECTION_NAME)\n const COLLECTION_ITEM_INJECTION_KEY: InjectionKey<ElCollectionItemInjectionContext> =\n Symbol(COLLECTION_ITEM_NAME)\n\n const ElCollection = {\n ...Collection,\n name: COLLECTION_NAME,\n setup() {\n const collectionRef = ref<HTMLElement | null>(null)\n const itemMap: ElCollectionInjectionContext['itemMap'] = new Map()\n const getItems = () => {\n const collectionEl = unref(collectionRef)\n\n if (!collectionEl) return []\n const orderedNodes = Array.from(\n collectionEl.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`)\n )\n\n const items = [...itemMap.values()]\n\n return items.sort(\n (a, b) => orderedNodes.indexOf(a.ref!) - orderedNodes.indexOf(b.ref!)\n )\n }\n\n provide(COLLECTION_INJECTION_KEY, {\n itemMap,\n getItems,\n collectionRef,\n })\n },\n }\n\n const ElCollectionItem = {\n ...CollectionItem,\n name: COLLECTION_ITEM_NAME,\n setup(_: unknown, { attrs }: SetupContext) {\n const collectionItemRef = ref<HTMLElement | null>(null)\n const collectionInjection = inject(COLLECTION_INJECTION_KEY, undefined)!\n\n provide(COLLECTION_ITEM_INJECTION_KEY, {\n collectionItemRef,\n })\n\n onMounted(() => {\n const collectionItemEl = unref(collectionItemRef)\n if (collectionItemEl) {\n collectionInjection.itemMap.set(collectionItemEl, {\n ref: collectionItemEl,\n ...attrs,\n })\n }\n })\n\n onBeforeUnmount(() => {\n const collectionItemEl = unref(collectionItemRef)!\n collectionInjection.itemMap.delete(collectionItemEl)\n })\n },\n }\n\n return {\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY,\n ElCollection,\n ElCollectionItem,\n }\n}\n"],"names":["Collection","ref","unref","provide","CollectionItem","inject","onMounted","onBeforeUnmount"],"mappings":";;;;;;;;AAGY,MAAC,oBAAoB,GAAG,CAAC,uBAAuB,EAAE;AAClD,MAAC,yBAAyB,GAAG,CAAC,IAAI,KAAK;AACnD,EAAE,MAAM,eAAe,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,EAAE,MAAM,oBAAoB,GAAG,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC;AACxD,EAAE,MAAM,wBAAwB,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AAC3D,EAAE,MAAM,6BAA6B,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;AACrE,EAAE,MAAM,YAAY,GAAG;AACvB,IAAI,GAAGA,qBAAU;AACjB,IAAI,IAAI,EAAE,eAAe;AACzB,IAAI,KAAK,GAAG;AACZ,MAAM,MAAM,aAAa,GAAGC,OAAG,CAAC,IAAI,CAAC,CAAC;AACtC,MAAM,MAAM,OAAO,mBAAmB,IAAI,GAAG,EAAE,CAAC;AAChD,MAAM,MAAM,QAAQ,GAAG,MAAM;AAC7B,QAAQ,MAAM,YAAY,GAAGC,SAAK,CAAC,aAAa,CAAC,CAAC;AAClD,QAAQ,IAAI,CAAC,YAAY;AACzB,UAAU,OAAO,EAAE,CAAC;AACpB,QAAQ,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpG,QAAQ,MAAM,KAAK,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAC5C,QAAQ,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/F,OAAO,CAAC;AACR,MAAMC,WAAO,CAAC,wBAAwB,EAAE;AACxC,QAAQ,OAAO;AACf,QAAQ,QAAQ;AAChB,QAAQ,aAAa;AACrB,OAAO,CAAC,CAAC;AACT,KAAK;AACL,GAAG,CAAC;AACJ,EAAE,MAAM,gBAAgB,GAAG;AAC3B,IAAI,GAAGC,yBAAc;AACrB,IAAI,IAAI,EAAE,oBAAoB;AAC9B,IAAI,KAAK,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE;AACxB,MAAM,MAAM,iBAAiB,GAAGH,OAAG,CAAC,IAAI,CAAC,CAAC;AAC1C,MAAM,MAAM,mBAAmB,GAAGI,UAAM,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC,CAAC;AAC3E,MAAMF,WAAO,CAAC,6BAA6B,EAAE;AAC7C,QAAQ,iBAAiB;AACzB,OAAO,CAAC,CAAC;AACT,MAAMG,aAAS,CAAC,MAAM;AACtB,QAAQ,MAAM,gBAAgB,GAAGJ,SAAK,CAAC,iBAAiB,CAAC,CAAC;AAC1D,QAAQ,IAAI,gBAAgB,EAAE;AAC9B,UAAU,mBAAmB,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE;AAC5D,YAAY,GAAG,EAAE,gBAAgB;AACjC,YAAY,GAAG,KAAK;AACpB,WAAW,CAAC,CAAC;AACb,SAAS;AACT,OAAO,CAAC,CAAC;AACT,MAAMK,mBAAe,CAAC,MAAM;AAC5B,QAAQ,MAAM,gBAAgB,GAAGL,SAAK,CAAC,iBAAiB,CAAC,CAAC;AAC1D,QAAQ,mBAAmB,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAC7D,OAAO,CAAC,CAAC;AACT,KAAK;AACL,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,wBAAwB;AAC5B,IAAI,6BAA6B;AACjC,IAAI,YAAY;AAChB,IAAI,gBAAgB;AACpB,GAAG,CAAC;AACJ;;;;;"}
|
|
@@ -3,68 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var
|
|
7
|
-
var collectionItem = require('./collection-item.js');
|
|
6
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
8
7
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
...collection["default"],
|
|
17
|
-
name: COLLECTION_NAME,
|
|
18
|
-
setup() {
|
|
19
|
-
const collectionRef = vue.ref(null);
|
|
20
|
-
const itemMap = /* @__PURE__ */ new Map();
|
|
21
|
-
const getItems = () => {
|
|
22
|
-
const collectionEl = vue.unref(collectionRef);
|
|
23
|
-
if (!collectionEl)
|
|
24
|
-
return [];
|
|
25
|
-
const orderedNodes = Array.from(collectionEl.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));
|
|
26
|
-
const items = [...itemMap.values()];
|
|
27
|
-
return items.sort((a, b) => orderedNodes.indexOf(a.ref) - orderedNodes.indexOf(b.ref));
|
|
28
|
-
};
|
|
29
|
-
vue.provide(COLLECTION_INJECTION_KEY, {
|
|
30
|
-
itemMap,
|
|
31
|
-
getItems,
|
|
32
|
-
collectionRef
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
const ElCollectionItem = {
|
|
37
|
-
...collectionItem["default"],
|
|
38
|
-
name: COLLECTION_ITEM_NAME,
|
|
39
|
-
setup(_, { attrs }) {
|
|
40
|
-
const collectionItemRef = vue.ref(null);
|
|
41
|
-
const collectionInjection = vue.inject(COLLECTION_INJECTION_KEY, void 0);
|
|
42
|
-
vue.provide(COLLECTION_ITEM_INJECTION_KEY, {
|
|
43
|
-
collectionItemRef
|
|
44
|
-
});
|
|
45
|
-
vue.onMounted(() => {
|
|
46
|
-
const collectionItemEl = vue.unref(collectionItemRef);
|
|
47
|
-
if (collectionItemEl) {
|
|
48
|
-
collectionInjection.itemMap.set(collectionItemEl, {
|
|
49
|
-
ref: collectionItemEl,
|
|
50
|
-
...attrs
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
vue.onBeforeUnmount(() => {
|
|
55
|
-
const collectionItemEl = vue.unref(collectionItemRef);
|
|
56
|
-
collectionInjection.itemMap.delete(collectionItemEl);
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
return {
|
|
61
|
-
COLLECTION_INJECTION_KEY,
|
|
62
|
-
COLLECTION_ITEM_INJECTION_KEY,
|
|
63
|
-
ElCollection,
|
|
64
|
-
ElCollectionItem
|
|
65
|
-
};
|
|
66
|
-
};
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
inheritAttrs: false
|
|
10
|
+
});
|
|
11
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12
|
+
return vue.renderSlot(_ctx.$slots, "default");
|
|
13
|
+
}
|
|
14
|
+
var Collection = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "collection.vue"]]);
|
|
67
15
|
|
|
68
|
-
exports
|
|
69
|
-
exports.createCollectionWithScope = createCollectionWithScope;
|
|
16
|
+
exports["default"] = Collection;
|
|
70
17
|
//# sourceMappingURL=collection2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection2.js","sources":["../../../../../../packages/components/collection/src/collection.
|
|
1
|
+
{"version":3,"file":"collection2.js","sources":["../../../../../../packages/components/collection/src/collection.vue"],"sourcesContent":["<template>\n <slot />\n</template>\n\n<script lang=\"ts\" setup>\ndefineOptions({\n inheritAttrs: false,\n})\n</script>\n"],"names":["DO_defineComponent","_renderSlot"],"mappings":";;;;;;;kCAKcA,mBAAA,CAAA;AAAA,EACZ,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;SANEC,cAAQ,CAAA,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA,CAAA;;;;;;"}
|
|
@@ -71,9 +71,9 @@ export declare const ElConfigProvider: import("element-plus/es/utils").SFCWithIn
|
|
|
71
71
|
readonly zIndex: NumberConstructor;
|
|
72
72
|
readonly namespace: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "el", boolean>;
|
|
73
73
|
}>>, {
|
|
74
|
+
readonly namespace: string;
|
|
74
75
|
readonly a11y: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
75
76
|
readonly keyboardNavigation: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
76
|
-
readonly namespace: string;
|
|
77
77
|
}>> & Record<string, any>;
|
|
78
78
|
export default ElConfigProvider;
|
|
79
79
|
export * from './src/config-provider';
|
|
@@ -73,9 +73,9 @@ declare const ConfigProvider: import("vue").DefineComponent<{
|
|
|
73
73
|
readonly zIndex: NumberConstructor;
|
|
74
74
|
readonly namespace: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "el", boolean>;
|
|
75
75
|
}>>, {
|
|
76
|
+
readonly namespace: string;
|
|
76
77
|
readonly a11y: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
77
78
|
readonly keyboardNavigation: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
78
|
-
readonly namespace: string;
|
|
79
79
|
}>;
|
|
80
80
|
export declare type ConfigProviderInstance = InstanceType<typeof ConfigProvider>;
|
|
81
81
|
export default ConfigProvider;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var countdown$1 = require('./src/
|
|
7
|
-
var countdown = require('./src/
|
|
6
|
+
var countdown$1 = require('./src/countdown2.js');
|
|
7
|
+
var countdown = require('./src/countdown.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const ElCountdown = install.withInstall(countdown$1["default"]);
|
|
@@ -2,83 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var index = require('../../statistic/index.js');
|
|
7
5
|
require('../../../utils/index.js');
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
6
|
+
require('../../../constants/index.js');
|
|
7
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
8
|
+
var event = require('../../../constants/event.js');
|
|
9
|
+
var types = require('../../../utils/types.js');
|
|
12
10
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (timer) {
|
|
28
|
-
raf.cAF(timer);
|
|
29
|
-
timer = void 0;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const startTimer = () => {
|
|
33
|
-
const timestamp = utils.getTime(props.value);
|
|
34
|
-
const frameFunc = () => {
|
|
35
|
-
let diff = timestamp - Date.now();
|
|
36
|
-
emit("change", diff);
|
|
37
|
-
if (diff <= 0) {
|
|
38
|
-
diff = 0;
|
|
39
|
-
stopTimer();
|
|
40
|
-
emit("finish");
|
|
41
|
-
} else {
|
|
42
|
-
timer = raf.rAF(frameFunc);
|
|
43
|
-
}
|
|
44
|
-
rawValue.value = diff;
|
|
45
|
-
};
|
|
46
|
-
timer = raf.rAF(frameFunc);
|
|
47
|
-
};
|
|
48
|
-
vue.watch(() => [props.value, props.format], () => {
|
|
49
|
-
stopTimer();
|
|
50
|
-
startTimer();
|
|
51
|
-
}, {
|
|
52
|
-
immediate: true
|
|
53
|
-
});
|
|
54
|
-
vue.onBeforeUnmount(() => {
|
|
55
|
-
stopTimer();
|
|
56
|
-
});
|
|
57
|
-
expose({
|
|
58
|
-
displayValue
|
|
59
|
-
});
|
|
60
|
-
return (_ctx, _cache) => {
|
|
61
|
-
return vue.openBlock(), vue.createBlock(vue.unref(index.ElStatistic), {
|
|
62
|
-
value: rawValue.value,
|
|
63
|
-
title: _ctx.title,
|
|
64
|
-
prefix: _ctx.prefix,
|
|
65
|
-
suffix: _ctx.suffix,
|
|
66
|
-
"value-style": _ctx.valueStyle,
|
|
67
|
-
formatter
|
|
68
|
-
}, vue.createSlots({ _: 2 }, [
|
|
69
|
-
vue.renderList(_ctx.$slots, (_, name) => {
|
|
70
|
-
return {
|
|
71
|
-
name,
|
|
72
|
-
fn: vue.withCtx(() => [
|
|
73
|
-
vue.renderSlot(_ctx.$slots, name)
|
|
74
|
-
])
|
|
75
|
-
};
|
|
76
|
-
})
|
|
77
|
-
]), 1032, ["value", "title", "prefix", "suffix", "value-style"]);
|
|
78
|
-
};
|
|
11
|
+
const countdownProps = runtime.buildProps({
|
|
12
|
+
format: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "HH:mm:ss"
|
|
15
|
+
},
|
|
16
|
+
prefix: String,
|
|
17
|
+
suffix: String,
|
|
18
|
+
title: String,
|
|
19
|
+
value: {
|
|
20
|
+
type: runtime.definePropType([Number, Object]),
|
|
21
|
+
default: 0
|
|
22
|
+
},
|
|
23
|
+
valueStyle: {
|
|
24
|
+
type: runtime.definePropType([String, Object, Array])
|
|
79
25
|
}
|
|
80
26
|
});
|
|
81
|
-
|
|
27
|
+
const countdownEmits = {
|
|
28
|
+
finish: () => true,
|
|
29
|
+
[event.CHANGE_EVENT]: (value) => types.isNumber(value)
|
|
30
|
+
};
|
|
82
31
|
|
|
83
|
-
exports
|
|
32
|
+
exports.countdownEmits = countdownEmits;
|
|
33
|
+
exports.countdownProps = countdownProps;
|
|
84
34
|
//# sourceMappingURL=countdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countdown.js","sources":["../../../../../../packages/components/countdown/src/countdown.
|
|
1
|
+
{"version":3,"file":"countdown.js","sources":["../../../../../../packages/components/countdown/src/countdown.ts"],"sourcesContent":["import { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport { CHANGE_EVENT } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Countdown from './countdown.vue'\n\nexport const countdownProps = buildProps({\n /**\n * @description Formatting the countdown display\n */\n format: {\n type: String,\n default: 'HH:mm:ss',\n },\n /**\n * @description Sets the prefix of a countdown\n */\n prefix: String,\n /**\n * @description Sets the suffix of a countdown\n */\n suffix: String,\n /**\n * @description countdown titles\n */\n title: String,\n /**\n * @description target time\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Styles countdown values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type CountdownProps = ExtractPropTypes<typeof countdownProps>\n\nexport const countdownEmits = {\n finish: () => true,\n [CHANGE_EVENT]: (value: number) => isNumber(value),\n}\nexport type CountdownEmits = typeof countdownEmits\n\nexport type CountdownInstance = InstanceType<typeof Countdown>\n"],"names":["buildProps","definePropType","CHANGE_EVENT","isNumber"],"mappings":";;;;;;;;;;AAEY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,UAAU;AACvB,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,CAAC,EAAE;AACS,MAAC,cAAc,GAAG;AAC9B,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,CAACC,kBAAY,GAAG,CAAC,KAAK,KAAKC,cAAQ,CAAC,KAAK,CAAC;AAC5C;;;;;"}
|
|
@@ -2,33 +2,83 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index = require('../../statistic/index.js');
|
|
5
7
|
require('../../../utils/index.js');
|
|
6
|
-
require('
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var countdown = require('./countdown.js');
|
|
9
|
+
var utils = require('./utils.js');
|
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
+
var raf = require('../../../utils/raf.js');
|
|
10
12
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
const __default__ = vue.defineComponent({
|
|
14
|
+
name: "ElCountdown"
|
|
15
|
+
});
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
17
|
+
...__default__,
|
|
18
|
+
props: countdown.countdownProps,
|
|
19
|
+
emits: countdown.countdownEmits,
|
|
20
|
+
setup(__props, { expose, emit }) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
let timer;
|
|
23
|
+
const rawValue = vue.ref(utils.getTime(props.value) - Date.now());
|
|
24
|
+
const displayValue = vue.computed(() => utils.formatTime(rawValue.value, props.format));
|
|
25
|
+
const formatter = (val) => utils.formatTime(val, props.format);
|
|
26
|
+
const stopTimer = () => {
|
|
27
|
+
if (timer) {
|
|
28
|
+
raf.cAF(timer);
|
|
29
|
+
timer = void 0;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const startTimer = () => {
|
|
33
|
+
const timestamp = utils.getTime(props.value);
|
|
34
|
+
const frameFunc = () => {
|
|
35
|
+
let diff = timestamp - Date.now();
|
|
36
|
+
emit("change", diff);
|
|
37
|
+
if (diff <= 0) {
|
|
38
|
+
diff = 0;
|
|
39
|
+
stopTimer();
|
|
40
|
+
emit("finish");
|
|
41
|
+
} else {
|
|
42
|
+
timer = raf.rAF(frameFunc);
|
|
43
|
+
}
|
|
44
|
+
rawValue.value = diff;
|
|
45
|
+
};
|
|
46
|
+
timer = raf.rAF(frameFunc);
|
|
47
|
+
};
|
|
48
|
+
vue.watch(() => [props.value, props.format], () => {
|
|
49
|
+
stopTimer();
|
|
50
|
+
startTimer();
|
|
51
|
+
}, {
|
|
52
|
+
immediate: true
|
|
53
|
+
});
|
|
54
|
+
vue.onBeforeUnmount(() => {
|
|
55
|
+
stopTimer();
|
|
56
|
+
});
|
|
57
|
+
expose({
|
|
58
|
+
displayValue
|
|
59
|
+
});
|
|
60
|
+
return (_ctx, _cache) => {
|
|
61
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index.ElStatistic), {
|
|
62
|
+
value: rawValue.value,
|
|
63
|
+
title: _ctx.title,
|
|
64
|
+
prefix: _ctx.prefix,
|
|
65
|
+
suffix: _ctx.suffix,
|
|
66
|
+
"value-style": _ctx.valueStyle,
|
|
67
|
+
formatter
|
|
68
|
+
}, vue.createSlots({ _: 2 }, [
|
|
69
|
+
vue.renderList(_ctx.$slots, (_, name) => {
|
|
70
|
+
return {
|
|
71
|
+
name,
|
|
72
|
+
fn: vue.withCtx(() => [
|
|
73
|
+
vue.renderSlot(_ctx.$slots, name)
|
|
74
|
+
])
|
|
75
|
+
};
|
|
76
|
+
})
|
|
77
|
+
]), 1032, ["value", "title", "prefix", "suffix", "value-style"]);
|
|
78
|
+
};
|
|
25
79
|
}
|
|
26
80
|
});
|
|
27
|
-
|
|
28
|
-
finish: () => true,
|
|
29
|
-
[event.CHANGE_EVENT]: (value) => types.isNumber(value)
|
|
30
|
-
};
|
|
81
|
+
var Countdown = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "countdown.vue"]]);
|
|
31
82
|
|
|
32
|
-
exports
|
|
33
|
-
exports.countdownProps = countdownProps;
|
|
83
|
+
exports["default"] = Countdown;
|
|
34
84
|
//# sourceMappingURL=countdown2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countdown2.js","sources":["../../../../../../packages/components/countdown/src/countdown.
|
|
1
|
+
{"version":3,"file":"countdown2.js","sources":["../../../../../../packages/components/countdown/src/countdown.vue"],"sourcesContent":["<template>\n <el-statistic\n :value=\"rawValue\"\n :title=\"title\"\n :prefix=\"prefix\"\n :suffix=\"suffix\"\n :value-style=\"valueStyle\"\n :formatter=\"formatter\"\n >\n <template v-for=\"(_, name) in $slots\" #[name]>\n <slot :name=\"name\" />\n </template>\n </el-statistic>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport { ElStatistic } from '@element-plus/components/statistic'\nimport { cAF, rAF } from '@element-plus/utils'\nimport { countdownEmits, countdownProps } from './countdown'\nimport { formatTime, getTime } from './utils'\n\ndefineOptions({\n name: 'ElCountdown',\n})\n\nconst props = defineProps(countdownProps)\nconst emit = defineEmits(countdownEmits)\n\nlet timer: ReturnType<typeof rAF> | undefined\nconst rawValue = ref(getTime(props.value) - Date.now())\nconst displayValue = computed(() => formatTime(rawValue.value, props.format))\n\nconst formatter = (val: number) => formatTime(val, props.format)\n\nconst stopTimer = () => {\n if (timer) {\n cAF(timer)\n timer = undefined\n }\n}\n\nconst startTimer = () => {\n const timestamp = getTime(props.value)\n const frameFunc = () => {\n let diff = timestamp - Date.now()\n emit('change', diff)\n if (diff <= 0) {\n diff = 0\n stopTimer()\n emit('finish')\n } else {\n timer = rAF(frameFunc)\n }\n rawValue.value = diff\n }\n timer = rAF(frameFunc)\n}\n\nwatch(\n () => [props.value, props.format],\n () => {\n stopTimer()\n startTimer()\n },\n {\n immediate: true,\n }\n)\n\nonBeforeUnmount(() => {\n stopTimer()\n})\n\ndefineExpose({\n /**\n * @description current display value\n */\n displayValue,\n})\n</script>\n"],"names":["ref","getTime","computed","formatTime","cAF","rAF","watch","onBeforeUnmount"],"mappings":";;;;;;;;;;;;uCAqBc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAI,IAAA,KAAA,CAAA;AACJ,IAAM,MAAA,QAAA,GAAWA,QAAIC,aAAQ,CAAA,KAAA,CAAM,KAAK,CAAI,GAAA,IAAA,CAAK,KAAK,CAAA,CAAA;AACtD,IAAM,MAAA,YAAA,GAAeC,aAAS,MAAMC,gBAAA,CAAW,SAAS,KAAO,EAAA,KAAA,CAAM,MAAM,CAAC,CAAA,CAAA;AAE5E,IAAA,MAAM,YAAY,CAAC,GAAA,KAAgBA,gBAAW,CAAA,GAAA,EAAK,MAAM,MAAM,CAAA,CAAA;AAE/D,IAAA,MAAM,YAAY,MAAM;AACtB,MAAA,IAAI,KAAO,EAAA;AACT,QAAAC,OAAA,CAAI,KAAK,CAAA,CAAA;AACT,QAAQ,KAAA,GAAA,KAAA,CAAA,CAAA;AAAA,OACV;AAAA,KACF,CAAA;AAEA,IAAA,MAAM,aAAa,MAAM;AACvB,MAAM,MAAA,SAAA,GAAYH,aAAQ,CAAA,KAAA,CAAM,KAAK,CAAA,CAAA;AACrC,MAAA,MAAM,YAAY,MAAM;AACtB,QAAI,IAAA,IAAA,GAAO,SAAY,GAAA,IAAA,CAAK,GAAI,EAAA,CAAA;AAChC,QAAA,IAAA,CAAK,UAAU,IAAI,CAAA,CAAA;AACnB,QAAA,IAAI,QAAQ,CAAG,EAAA;AACb,UAAO,IAAA,GAAA,CAAA,CAAA;AACP,UAAU,SAAA,EAAA,CAAA;AACV,UAAA,IAAA,CAAK,QAAQ,CAAA,CAAA;AAAA,SACR,MAAA;AACL,UAAA,KAAA,GAAQI,QAAI,SAAS,CAAA,CAAA;AAAA,SACvB;AACA,QAAA,QAAA,CAAS,KAAQ,GAAA,IAAA,CAAA;AAAA,OACnB,CAAA;AACA,MAAA,KAAA,GAAQA,QAAI,SAAS,CAAA,CAAA;AAAA,KACvB,CAAA;AAEA,IAAAC,SAAA,CACE,MAAM,CAAC,KAAA,CAAM,OAAO,KAAM,CAAA,MAAM,GAChC,MAAM;AACJ,MAAU,SAAA,EAAA,CAAA;AACV,MAAW,UAAA,EAAA,CAAA;AAAA,KAEb,EAAA;AAAA,MACE,SAAW,EAAA,IAAA;AAAA,KAEf,CAAA,CAAA;AAEA,IAAAC,mBAAA,CAAgB,MAAM;AACpB,MAAU,SAAA,EAAA,CAAA;AAAA,KACX,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAIX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var description$1 = require('./src/
|
|
6
|
+
var description$1 = require('./src/description2.js');
|
|
7
7
|
var descriptionItem = require('./src/description-item.js');
|
|
8
|
-
var description = require('./src/
|
|
8
|
+
var description = require('./src/description.js');
|
|
9
9
|
var install = require('../../utils/vue/install.js');
|
|
10
10
|
|
|
11
11
|
const ElDescriptions = install.withInstall(description$1["default"], {
|
|
@@ -2,122 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
5
|
require('../../../utils/index.js');
|
|
7
6
|
require('../../../hooks/index.js');
|
|
8
|
-
require('
|
|
9
|
-
var
|
|
10
|
-
var token = require('./token.js');
|
|
11
|
-
var description = require('./description2.js');
|
|
12
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
13
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
14
|
-
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
15
|
-
var vnode = require('../../../utils/vue/vnode.js');
|
|
7
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
8
|
+
var index = require('../../../hooks/use-size/index.js');
|
|
16
9
|
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
return node;
|
|
41
|
-
};
|
|
42
|
-
const getRows = () => {
|
|
43
|
-
if (!slots.default)
|
|
44
|
-
return [];
|
|
45
|
-
const children = vnode.flattedChildren(slots.default()).filter((node) => {
|
|
46
|
-
var _a;
|
|
47
|
-
return ((_a = node == null ? void 0 : node.type) == null ? void 0 : _a.name) === "ElDescriptionsItem";
|
|
48
|
-
});
|
|
49
|
-
const rows = [];
|
|
50
|
-
let temp = [];
|
|
51
|
-
let count = props.column;
|
|
52
|
-
let totalSpan = 0;
|
|
53
|
-
children.forEach((node, index) => {
|
|
54
|
-
var _a;
|
|
55
|
-
const span = ((_a = node.props) == null ? void 0 : _a.span) || 1;
|
|
56
|
-
if (index < children.length - 1) {
|
|
57
|
-
totalSpan += span > count ? count : span;
|
|
58
|
-
}
|
|
59
|
-
if (index === children.length - 1) {
|
|
60
|
-
const lastSpan = props.column - totalSpan % props.column;
|
|
61
|
-
temp.push(filledNode(node, lastSpan, count, true));
|
|
62
|
-
rows.push(temp);
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
if (span < count) {
|
|
66
|
-
count -= span;
|
|
67
|
-
temp.push(node);
|
|
68
|
-
} else {
|
|
69
|
-
temp.push(filledNode(node, span, count));
|
|
70
|
-
rows.push(temp);
|
|
71
|
-
count = props.column;
|
|
72
|
-
temp = [];
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
return rows;
|
|
76
|
-
};
|
|
77
|
-
return (_ctx, _cache) => {
|
|
78
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
79
|
-
class: vue.normalizeClass(vue.unref(descriptionKls))
|
|
80
|
-
}, [
|
|
81
|
-
_ctx.title || _ctx.extra || _ctx.$slots.title || _ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
82
|
-
key: 0,
|
|
83
|
-
class: vue.normalizeClass(vue.unref(ns).e("header"))
|
|
84
|
-
}, [
|
|
85
|
-
vue.createElementVNode("div", {
|
|
86
|
-
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
|
87
|
-
}, [
|
|
88
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
89
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
90
|
-
])
|
|
91
|
-
], 2),
|
|
92
|
-
vue.createElementVNode("div", {
|
|
93
|
-
class: vue.normalizeClass(vue.unref(ns).e("extra"))
|
|
94
|
-
}, [
|
|
95
|
-
vue.renderSlot(_ctx.$slots, "extra", {}, () => [
|
|
96
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.extra), 1)
|
|
97
|
-
])
|
|
98
|
-
], 2)
|
|
99
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
100
|
-
vue.createElementVNode("div", {
|
|
101
|
-
class: vue.normalizeClass(vue.unref(ns).e("body"))
|
|
102
|
-
}, [
|
|
103
|
-
vue.createElementVNode("table", {
|
|
104
|
-
class: vue.normalizeClass([vue.unref(ns).e("table"), vue.unref(ns).is("bordered", _ctx.border)])
|
|
105
|
-
}, [
|
|
106
|
-
vue.createElementVNode("tbody", null, [
|
|
107
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getRows(), (row, _index) => {
|
|
108
|
-
return vue.openBlock(), vue.createBlock(descriptionsRow["default"], {
|
|
109
|
-
key: _index,
|
|
110
|
-
row
|
|
111
|
-
}, null, 8, ["row"]);
|
|
112
|
-
}), 128))
|
|
113
|
-
])
|
|
114
|
-
], 2)
|
|
115
|
-
], 2)
|
|
116
|
-
], 2);
|
|
117
|
-
};
|
|
10
|
+
const descriptionProps = runtime.buildProps({
|
|
11
|
+
border: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: false
|
|
14
|
+
},
|
|
15
|
+
column: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: 3
|
|
18
|
+
},
|
|
19
|
+
direction: {
|
|
20
|
+
type: String,
|
|
21
|
+
values: ["horizontal", "vertical"],
|
|
22
|
+
default: "horizontal"
|
|
23
|
+
},
|
|
24
|
+
size: index.useSizeProp,
|
|
25
|
+
title: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
28
|
+
},
|
|
29
|
+
extra: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ""
|
|
118
32
|
}
|
|
119
33
|
});
|
|
120
|
-
var Descriptions = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "description.vue"]]);
|
|
121
34
|
|
|
122
|
-
exports
|
|
35
|
+
exports.descriptionProps = descriptionProps;
|
|
123
36
|
//# sourceMappingURL=description.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description.js","sources":["../../../../../../packages/components/descriptions/src/description.
|
|
1
|
+
{"version":3,"file":"description.js","sources":["../../../../../../packages/components/descriptions/src/description.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { useSizeProp } from '@element-plus/hooks'\n\nimport type Description from './description.vue'\n\nexport const descriptionProps = buildProps({\n /**\n * @description with or without border\n */\n border: {\n type: Boolean,\n default: false,\n },\n /**\n * @description numbers of `Descriptions Item` in one line\n */\n column: {\n type: Number,\n default: 3,\n },\n /**\n * @description direction of list\n */\n direction: {\n type: String,\n values: ['horizontal', 'vertical'],\n default: 'horizontal',\n },\n /**\n * @description size of list\n */\n size: useSizeProp,\n /**\n * @description title text, display on the top left\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description extra text, display on the top right\n */\n extra: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type DescriptionInstance = InstanceType<typeof Description>\n"],"names":["buildProps","useSizeProp"],"mappings":";;;;;;;;;AAEY,MAAC,gBAAgB,GAAGA,kBAAU,CAAC;AAC3C,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,IAAI,OAAO,EAAE,YAAY;AACzB,GAAG;AACH,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
|