@element-plus/nightly 0.0.20240724 → 0.0.20240725
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.full.js +37 -105
- package/dist/index.full.min.js +6 -6
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +6 -6
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +37 -105
- 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 +80 -80
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +80 -80
- package/es/components/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +21 -54
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +54 -21
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +38 -89
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +89 -38
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/breadcrumb/index.d.ts +8 -8
- package/es/components/breadcrumb/src/breadcrumb-item.d.ts +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +1 -4
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item.vue.d.ts +4 -4
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/src/button-group.mjs +1 -1
- package/es/components/button/src/button.mjs +57 -77
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +77 -57
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +1 -1
- package/es/components/calendar/src/date-table.mjs +87 -33
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/date-table2.mjs +33 -87
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/calendar/src/use-date-table.mjs +1 -1
- package/es/components/carousel/index.d.ts +4 -0
- package/es/components/carousel/src/carousel.d.ts +1 -0
- package/es/components/carousel/src/carousel.mjs +4 -0
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +4 -0
- package/es/components/carousel/src/constants.d.ts +1 -0
- package/es/components/carousel/src/constants.mjs.map +1 -1
- package/es/components/carousel/src/use-carousel-item.mjs +5 -6
- package/es/components/carousel/src/use-carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/use-carousel.mjs +1 -0
- package/es/components/carousel/src/use-carousel.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +160 -160
- package/es/components/cascader/src/cascader.vue.d.ts +80 -80
- package/es/components/cascader/src/cascader2.mjs +1 -1
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/check-tag/index.d.ts +4 -4
- package/es/components/check-tag/src/check-tag.d.ts +1 -1
- package/es/components/check-tag/src/check-tag.mjs +1 -4
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag.vue.d.ts +4 -4
- package/es/components/color-picker/index.d.ts +44 -44
- package/es/components/color-picker/src/color-picker.vue.d.ts +44 -44
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +23 -77
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +77 -23
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/date-picker/index.d.ts +2 -2
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +20 -20
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +20 -20
- package/es/components/date-picker/src/date-picker.d.ts +1 -1
- package/es/components/date-picker/src/panel-utils.d.ts +40 -40
- package/es/components/descriptions/index.d.ts +4 -4
- package/es/components/descriptions/src/description.d.ts +1 -1
- package/es/components/descriptions/src/description.mjs +1 -4
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description.vue.d.ts +4 -4
- package/es/components/dialog/index.d.ts +7 -7
- package/es/components/dialog/src/dialog.d.ts +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -4
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +7 -7
- package/es/components/drawer/index.d.ts +7 -7
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.d.ts +1 -1
- package/es/components/drawer/src/drawer.mjs +27 -181
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +7 -7
- package/es/components/drawer/src/drawer2.mjs +181 -27
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/index.d.ts +16 -16
- package/es/components/dropdown/src/dropdown.vue.d.ts +16 -16
- package/es/components/index.mjs +6 -6
- package/es/components/input/index.d.ts +20 -20
- package/es/components/input/src/input.d.ts +5 -5
- package/es/components/input/src/input.mjs +5 -20
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +20 -20
- package/es/components/input-number/index.d.ts +57 -57
- package/es/components/input-number/src/input-number.vue.d.ts +57 -57
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.mjs +1 -4
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification.vue.d.ts +4 -4
- package/es/components/overlay/index.d.ts +3 -3
- package/es/components/overlay/src/overlay.d.ts +4 -4
- package/es/components/overlay/src/overlay.mjs +1 -4
- package/es/components/overlay/src/overlay.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +20 -20
- package/es/components/pagination/src/components/sizes.vue.d.ts +32 -32
- package/es/components/popconfirm/index.d.ts +24 -24
- package/es/components/popconfirm/src/popconfirm.mjs +1 -1
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +24 -24
- package/es/components/popover/index.d.ts +24 -24
- package/es/components/popover/src/popover.vue.d.ts +24 -24
- package/es/components/progress/index.d.ts +8 -8
- package/es/components/progress/src/progress.d.ts +2 -2
- package/es/components/progress/src/progress.mjs +2 -8
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress.vue.d.ts +8 -8
- package/es/components/rate/index.d.ts +4 -4
- package/es/components/rate/src/rate.d.ts +1 -1
- package/es/components/rate/src/rate.mjs +1 -4
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate.vue.d.ts +4 -4
- package/es/components/select/index.d.ts +32 -32
- package/es/components/select/src/select.vue.d.ts +32 -32
- package/es/components/select/src/useSelect.d.ts +32 -32
- package/es/components/select-v2/index.d.ts +64 -64
- package/es/components/select-v2/src/select.vue.d.ts +32 -32
- package/es/components/select-v2/src/useSelect.d.ts +32 -32
- package/es/components/slider/index.d.ts +97 -97
- package/es/components/slider/src/button.vue.d.ts +8 -8
- package/es/components/slider/src/composables/use-slide.d.ts +32 -32
- package/es/components/slider/src/slider.vue.d.ts +97 -97
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/item.mjs +19 -191
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item2.mjs +191 -19
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/switch/index.d.ts +12 -12
- package/es/components/switch/src/switch.d.ts +3 -3
- package/es/components/switch/src/switch.mjs +3 -12
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch.vue.d.ts +12 -12
- package/es/components/table/src/filter-panel.vue.d.ts +16 -16
- package/es/components/teleport/index.d.ts +4 -4
- package/es/components/teleport/src/teleport.d.ts +1 -1
- package/es/components/teleport/src/teleport.mjs +1 -4
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport.vue.d.ts +4 -4
- package/es/components/time-picker/index.d.ts +2 -2
- package/es/components/time-picker/src/common/picker.vue.d.ts +45 -45
- package/es/components/time-picker/src/time-picker.d.ts +1 -1
- package/es/components/time-select/index.d.ts +64 -64
- package/es/components/time-select/src/time-select.vue.d.ts +64 -64
- package/es/components/timeline/index.d.ts +24 -24
- package/es/components/timeline/src/timeline-item.d.ts +3 -3
- package/es/components/timeline/src/timeline-item.mjs +3 -12
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item.vue.d.ts +12 -12
- package/es/components/tooltip/index.d.ts +8 -8
- package/es/components/tooltip/src/content.d.ts +1 -1
- package/es/components/tooltip/src/content.mjs +1 -4
- package/es/components/tooltip/src/content.mjs.map +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +4 -4
- package/es/components/tooltip/src/tooltip.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +8 -8
- package/es/components/tooltip-v2/index.d.ts +13 -13
- package/es/components/tooltip-v2/src/content.d.ts +1 -1
- package/es/components/tooltip-v2/src/content.mjs +1 -4
- package/es/components/tooltip-v2/src/content.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content.vue.d.ts +4 -4
- package/es/components/tooltip-v2/src/tooltip.d.ts +1 -1
- package/es/components/tooltip-v2/src/tooltip.vue.d.ts +13 -13
- package/es/components/transfer/index.d.ts +100 -100
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +19 -128
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel.vue.d.ts +20 -20
- package/es/components/transfer/src/transfer-panel2.mjs +128 -19
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer.vue.d.ts +100 -100
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/components/upload/index.d.ts +38 -38
- package/es/components/upload/src/upload-content.d.ts +2 -2
- package/es/components/upload/src/upload-content.vue.d.ts +8 -8
- package/es/components/upload/src/upload-list.vue.d.ts +8 -8
- package/es/components/upload/src/upload.d.ts +8 -16
- package/es/components/upload/src/upload.mjs +2 -8
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload.vue.d.ts +38 -38
- package/es/index.mjs +6 -6
- 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 +80 -80
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +80 -80
- package/lib/components/backtop/index.js +2 -2
- package/lib/components/backtop/src/backtop.js +22 -54
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +54 -22
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +38 -89
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +89 -38
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/breadcrumb/index.d.ts +8 -8
- package/lib/components/breadcrumb/src/breadcrumb-item.d.ts +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item.js +1 -4
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item.vue.d.ts +4 -4
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/src/button-group.js +1 -1
- package/lib/components/button/src/button.js +60 -77
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +77 -60
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +1 -1
- package/lib/components/calendar/src/date-table.js +87 -37
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/date-table2.js +37 -87
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/calendar/src/use-date-table.js +1 -1
- package/lib/components/carousel/index.d.ts +4 -0
- package/lib/components/carousel/src/carousel.d.ts +1 -0
- package/lib/components/carousel/src/carousel.js +4 -0
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +4 -0
- package/lib/components/carousel/src/constants.d.ts +1 -0
- package/lib/components/carousel/src/constants.js.map +1 -1
- package/lib/components/carousel/src/use-carousel-item.js +5 -6
- package/lib/components/carousel/src/use-carousel-item.js.map +1 -1
- package/lib/components/carousel/src/use-carousel.js +1 -0
- package/lib/components/carousel/src/use-carousel.js.map +1 -1
- package/lib/components/cascader/index.d.ts +160 -160
- package/lib/components/cascader/src/cascader.vue.d.ts +80 -80
- package/lib/components/cascader/src/cascader2.js +1 -1
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/check-tag/index.d.ts +4 -4
- package/lib/components/check-tag/src/check-tag.d.ts +1 -1
- package/lib/components/check-tag/src/check-tag.js +1 -4
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag.vue.d.ts +4 -4
- package/lib/components/color-picker/index.d.ts +44 -44
- package/lib/components/color-picker/src/color-picker.vue.d.ts +44 -44
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +24 -77
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +77 -24
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/date-picker/index.d.ts +2 -2
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +20 -20
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +20 -20
- package/lib/components/date-picker/src/date-picker.d.ts +1 -1
- package/lib/components/date-picker/src/panel-utils.d.ts +40 -40
- package/lib/components/descriptions/index.d.ts +4 -4
- package/lib/components/descriptions/src/description.d.ts +1 -1
- package/lib/components/descriptions/src/description.js +1 -4
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description.vue.d.ts +4 -4
- package/lib/components/dialog/index.d.ts +7 -7
- package/lib/components/dialog/src/dialog.d.ts +1 -1
- package/lib/components/dialog/src/dialog.js +1 -4
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +7 -7
- package/lib/components/drawer/index.d.ts +7 -7
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.d.ts +1 -1
- package/lib/components/drawer/src/drawer.js +28 -181
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +7 -7
- package/lib/components/drawer/src/drawer2.js +181 -28
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/index.d.ts +16 -16
- package/lib/components/dropdown/src/dropdown.vue.d.ts +16 -16
- package/lib/components/index.js +6 -6
- package/lib/components/input/index.d.ts +20 -20
- package/lib/components/input/src/input.d.ts +5 -5
- package/lib/components/input/src/input.js +5 -20
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +20 -20
- package/lib/components/input-number/index.d.ts +57 -57
- package/lib/components/input-number/src/input-number.vue.d.ts +57 -57
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.js +1 -4
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +4 -4
- package/lib/components/overlay/index.d.ts +3 -3
- package/lib/components/overlay/src/overlay.d.ts +4 -4
- package/lib/components/overlay/src/overlay.js +1 -4
- package/lib/components/overlay/src/overlay.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +20 -20
- package/lib/components/pagination/src/components/sizes.vue.d.ts +32 -32
- package/lib/components/popconfirm/index.d.ts +24 -24
- package/lib/components/popconfirm/src/popconfirm.js +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +24 -24
- package/lib/components/popover/index.d.ts +24 -24
- package/lib/components/popover/src/popover.vue.d.ts +24 -24
- package/lib/components/progress/index.d.ts +8 -8
- package/lib/components/progress/src/progress.d.ts +2 -2
- package/lib/components/progress/src/progress.js +2 -8
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress.vue.d.ts +8 -8
- package/lib/components/rate/index.d.ts +4 -4
- package/lib/components/rate/src/rate.d.ts +1 -1
- package/lib/components/rate/src/rate.js +1 -4
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +4 -4
- package/lib/components/select/index.d.ts +32 -32
- package/lib/components/select/src/select.vue.d.ts +32 -32
- package/lib/components/select/src/useSelect.d.ts +32 -32
- package/lib/components/select-v2/index.d.ts +64 -64
- package/lib/components/select-v2/src/select.vue.d.ts +32 -32
- package/lib/components/select-v2/src/useSelect.d.ts +32 -32
- package/lib/components/slider/index.d.ts +97 -97
- package/lib/components/slider/src/button.vue.d.ts +8 -8
- package/lib/components/slider/src/composables/use-slide.d.ts +32 -32
- package/lib/components/slider/src/slider.vue.d.ts +97 -97
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/item.js +19 -191
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item2.js +191 -19
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/switch/index.d.ts +12 -12
- package/lib/components/switch/src/switch.d.ts +3 -3
- package/lib/components/switch/src/switch.js +3 -12
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +12 -12
- package/lib/components/table/src/filter-panel.vue.d.ts +16 -16
- package/lib/components/teleport/index.d.ts +4 -4
- package/lib/components/teleport/src/teleport.d.ts +1 -1
- package/lib/components/teleport/src/teleport.js +1 -4
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport.vue.d.ts +4 -4
- package/lib/components/time-picker/index.d.ts +2 -2
- package/lib/components/time-picker/src/common/picker.vue.d.ts +45 -45
- package/lib/components/time-picker/src/time-picker.d.ts +1 -1
- package/lib/components/time-select/index.d.ts +64 -64
- package/lib/components/time-select/src/time-select.vue.d.ts +64 -64
- package/lib/components/timeline/index.d.ts +24 -24
- package/lib/components/timeline/src/timeline-item.d.ts +3 -3
- package/lib/components/timeline/src/timeline-item.js +3 -12
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item.vue.d.ts +12 -12
- package/lib/components/tooltip/index.d.ts +8 -8
- package/lib/components/tooltip/src/content.d.ts +1 -1
- package/lib/components/tooltip/src/content.js +1 -4
- package/lib/components/tooltip/src/content.js.map +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +4 -4
- package/lib/components/tooltip/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +8 -8
- package/lib/components/tooltip-v2/index.d.ts +13 -13
- package/lib/components/tooltip-v2/src/content.d.ts +1 -1
- package/lib/components/tooltip-v2/src/content.js +1 -4
- package/lib/components/tooltip-v2/src/content.js.map +1 -1
- package/lib/components/tooltip-v2/src/content.vue.d.ts +4 -4
- package/lib/components/tooltip-v2/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +13 -13
- package/lib/components/transfer/index.d.ts +100 -100
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +21 -128
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +20 -20
- package/lib/components/transfer/src/transfer-panel2.js +128 -21
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer.vue.d.ts +100 -100
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/components/upload/index.d.ts +38 -38
- package/lib/components/upload/src/upload-content.d.ts +2 -2
- package/lib/components/upload/src/upload-content.vue.d.ts +8 -8
- package/lib/components/upload/src/upload-list.vue.d.ts +8 -8
- package/lib/components/upload/src/upload.d.ts +8 -16
- package/lib/components/upload/src/upload.js +2 -8
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +38 -38
- package/lib/index.js +6 -6
- 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/web-types.json +1 -1
|
@@ -447,8 +447,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
447
447
|
pure: boolean;
|
|
448
448
|
virtualTriggering: boolean;
|
|
449
449
|
content: string;
|
|
450
|
-
rawContent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
451
450
|
teleported: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
451
|
+
rawContent: boolean;
|
|
452
452
|
persistent: boolean;
|
|
453
453
|
disabled: boolean;
|
|
454
454
|
open: boolean;
|
|
@@ -522,7 +522,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
522
522
|
__epPropKey: true;
|
|
523
523
|
};
|
|
524
524
|
content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
525
|
-
rawContent:
|
|
525
|
+
rawContent: BooleanConstructor;
|
|
526
526
|
persistent: BooleanConstructor;
|
|
527
527
|
visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
528
528
|
transition: StringConstructor;
|
|
@@ -781,7 +781,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
781
781
|
role: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "group" | "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "navigation" | "tree", unknown, "tooltip", boolean>;
|
|
782
782
|
}>> & {
|
|
783
783
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
784
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "offset" | "effect" | "placement" | "showAfter" | "hideAfter" | "autoClose" | "boundariesPadding" | "fallbackPlacements" | "gpuAcceleration" | "popperOptions" | "strategy" | "enterable" | "focusOnShow" | "trapping" | "stopPopperMouseEvent" | "visible" | "pure" | "virtualTriggering" | "content" | "
|
|
784
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "offset" | "effect" | "placement" | "showAfter" | "hideAfter" | "autoClose" | "boundariesPadding" | "fallbackPlacements" | "gpuAcceleration" | "popperOptions" | "strategy" | "enterable" | "focusOnShow" | "trapping" | "stopPopperMouseEvent" | "visible" | "pure" | "virtualTriggering" | "content" | "teleported" | "rawContent" | "persistent" | "disabled" | "open" | "role" | "trigger" | "triggerKeys" | "arrowOffset" | "showArrow">;
|
|
785
785
|
$attrs: {
|
|
786
786
|
[x: string]: unknown;
|
|
787
787
|
};
|
|
@@ -860,7 +860,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
860
860
|
__epPropKey: true;
|
|
861
861
|
};
|
|
862
862
|
content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
863
|
-
rawContent:
|
|
863
|
+
rawContent: BooleanConstructor;
|
|
864
864
|
persistent: BooleanConstructor;
|
|
865
865
|
visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
866
866
|
transition: StringConstructor;
|
|
@@ -1185,7 +1185,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1185
1185
|
__epPropKey: true;
|
|
1186
1186
|
};
|
|
1187
1187
|
content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1188
|
-
rawContent:
|
|
1188
|
+
rawContent: BooleanConstructor;
|
|
1189
1189
|
persistent: BooleanConstructor;
|
|
1190
1190
|
visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
1191
1191
|
transition: StringConstructor;
|
|
@@ -1978,7 +1978,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1978
1978
|
__epPropKey: true;
|
|
1979
1979
|
};
|
|
1980
1980
|
readonly content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1981
|
-
readonly rawContent:
|
|
1981
|
+
readonly rawContent: BooleanConstructor;
|
|
1982
1982
|
readonly persistent: BooleanConstructor;
|
|
1983
1983
|
readonly visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
1984
1984
|
readonly transition: StringConstructor;
|
|
@@ -2241,7 +2241,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2241
2241
|
__epPropKey: true;
|
|
2242
2242
|
};
|
|
2243
2243
|
readonly content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
2244
|
-
readonly rawContent:
|
|
2244
|
+
readonly rawContent: BooleanConstructor;
|
|
2245
2245
|
readonly persistent: BooleanConstructor;
|
|
2246
2246
|
readonly visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
2247
2247
|
readonly transition: StringConstructor;
|
|
@@ -3419,7 +3419,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3419
3419
|
__epPropKey: true;
|
|
3420
3420
|
};
|
|
3421
3421
|
readonly content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
3422
|
-
readonly rawContent:
|
|
3422
|
+
readonly rawContent: BooleanConstructor;
|
|
3423
3423
|
readonly persistent: BooleanConstructor;
|
|
3424
3424
|
readonly visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
3425
3425
|
readonly transition: StringConstructor;
|
|
@@ -3692,8 +3692,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3692
3692
|
readonly pure: boolean;
|
|
3693
3693
|
readonly virtualTriggering: boolean;
|
|
3694
3694
|
readonly content: string;
|
|
3695
|
-
readonly rawContent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3696
3695
|
readonly teleported: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3696
|
+
readonly rawContent: boolean;
|
|
3697
3697
|
readonly persistent: boolean;
|
|
3698
3698
|
readonly disabled: boolean;
|
|
3699
3699
|
}>;
|
|
@@ -3717,8 +3717,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3717
3717
|
pure: boolean;
|
|
3718
3718
|
virtualTriggering: boolean;
|
|
3719
3719
|
content: string;
|
|
3720
|
-
rawContent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3721
3720
|
teleported: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3721
|
+
rawContent: boolean;
|
|
3722
3722
|
persistent: boolean;
|
|
3723
3723
|
disabled: boolean;
|
|
3724
3724
|
open: boolean;
|
|
@@ -3812,7 +3812,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3812
3812
|
__epPropKey: true;
|
|
3813
3813
|
};
|
|
3814
3814
|
content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
3815
|
-
rawContent:
|
|
3815
|
+
rawContent: BooleanConstructor;
|
|
3816
3816
|
persistent: BooleanConstructor;
|
|
3817
3817
|
visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
3818
3818
|
transition: StringConstructor;
|
|
@@ -4137,7 +4137,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4137
4137
|
__epPropKey: true;
|
|
4138
4138
|
};
|
|
4139
4139
|
content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
4140
|
-
rawContent:
|
|
4140
|
+
rawContent: BooleanConstructor;
|
|
4141
4141
|
persistent: BooleanConstructor;
|
|
4142
4142
|
visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
4143
4143
|
transition: StringConstructor;
|
|
@@ -4930,7 +4930,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4930
4930
|
__epPropKey: true;
|
|
4931
4931
|
};
|
|
4932
4932
|
readonly content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
4933
|
-
readonly rawContent:
|
|
4933
|
+
readonly rawContent: BooleanConstructor;
|
|
4934
4934
|
readonly persistent: BooleanConstructor;
|
|
4935
4935
|
readonly visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
4936
4936
|
readonly transition: StringConstructor;
|
|
@@ -5193,7 +5193,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5193
5193
|
__epPropKey: true;
|
|
5194
5194
|
};
|
|
5195
5195
|
readonly content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
5196
|
-
readonly rawContent:
|
|
5196
|
+
readonly rawContent: BooleanConstructor;
|
|
5197
5197
|
readonly persistent: BooleanConstructor;
|
|
5198
5198
|
readonly visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
5199
5199
|
readonly transition: StringConstructor;
|
|
@@ -6371,7 +6371,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6371
6371
|
__epPropKey: true;
|
|
6372
6372
|
};
|
|
6373
6373
|
readonly content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
6374
|
-
readonly rawContent:
|
|
6374
|
+
readonly rawContent: BooleanConstructor;
|
|
6375
6375
|
readonly persistent: BooleanConstructor;
|
|
6376
6376
|
readonly visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
6377
6377
|
readonly transition: StringConstructor;
|
|
@@ -6644,8 +6644,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6644
6644
|
readonly pure: boolean;
|
|
6645
6645
|
readonly virtualTriggering: boolean;
|
|
6646
6646
|
readonly content: string;
|
|
6647
|
-
readonly rawContent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
6648
6647
|
readonly teleported: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
6648
|
+
readonly rawContent: boolean;
|
|
6649
6649
|
readonly persistent: boolean;
|
|
6650
6650
|
readonly disabled: boolean;
|
|
6651
6651
|
}>;
|
|
@@ -7073,7 +7073,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7073
7073
|
__epPropKey: true;
|
|
7074
7074
|
};
|
|
7075
7075
|
content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
7076
|
-
rawContent:
|
|
7076
|
+
rawContent: BooleanConstructor;
|
|
7077
7077
|
persistent: BooleanConstructor;
|
|
7078
7078
|
visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
7079
7079
|
transition: StringConstructor;
|
|
@@ -7396,7 +7396,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7396
7396
|
__epPropKey: true;
|
|
7397
7397
|
};
|
|
7398
7398
|
content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
7399
|
-
rawContent:
|
|
7399
|
+
rawContent: BooleanConstructor;
|
|
7400
7400
|
persistent: BooleanConstructor;
|
|
7401
7401
|
visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
7402
7402
|
transition: StringConstructor;
|
|
@@ -8189,7 +8189,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8189
8189
|
__epPropKey: true;
|
|
8190
8190
|
};
|
|
8191
8191
|
readonly content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
8192
|
-
readonly rawContent:
|
|
8192
|
+
readonly rawContent: BooleanConstructor;
|
|
8193
8193
|
readonly persistent: BooleanConstructor;
|
|
8194
8194
|
readonly visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
8195
8195
|
readonly transition: StringConstructor;
|
|
@@ -8452,7 +8452,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8452
8452
|
__epPropKey: true;
|
|
8453
8453
|
};
|
|
8454
8454
|
readonly content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
8455
|
-
readonly rawContent:
|
|
8455
|
+
readonly rawContent: BooleanConstructor;
|
|
8456
8456
|
readonly persistent: BooleanConstructor;
|
|
8457
8457
|
readonly visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
8458
8458
|
readonly transition: StringConstructor;
|
|
@@ -9630,7 +9630,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9630
9630
|
__epPropKey: true;
|
|
9631
9631
|
};
|
|
9632
9632
|
readonly content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
9633
|
-
readonly rawContent:
|
|
9633
|
+
readonly rawContent: BooleanConstructor;
|
|
9634
9634
|
readonly persistent: BooleanConstructor;
|
|
9635
9635
|
readonly visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
9636
9636
|
readonly transition: StringConstructor;
|
|
@@ -9903,8 +9903,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9903
9903
|
readonly pure: boolean;
|
|
9904
9904
|
readonly virtualTriggering: boolean;
|
|
9905
9905
|
readonly content: string;
|
|
9906
|
-
readonly rawContent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
9907
9906
|
readonly teleported: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
9907
|
+
readonly rawContent: boolean;
|
|
9908
9908
|
readonly persistent: boolean;
|
|
9909
9909
|
readonly disabled: boolean;
|
|
9910
9910
|
}>;
|
|
@@ -9973,7 +9973,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9973
9973
|
__epPropKey: true;
|
|
9974
9974
|
};
|
|
9975
9975
|
content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
9976
|
-
rawContent:
|
|
9976
|
+
rawContent: BooleanConstructor;
|
|
9977
9977
|
persistent: BooleanConstructor;
|
|
9978
9978
|
visible: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null) | ((new (...args: any[]) => (boolean | null) & {}) | (() => boolean | null))[], unknown, unknown, null, boolean>;
|
|
9979
9979
|
transition: StringConstructor;
|
|
@@ -10252,8 +10252,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10252
10252
|
pure: boolean;
|
|
10253
10253
|
virtualTriggering: boolean;
|
|
10254
10254
|
content: string;
|
|
10255
|
-
rawContent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
10256
10255
|
teleported: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
10256
|
+
rawContent: boolean;
|
|
10257
10257
|
persistent: boolean;
|
|
10258
10258
|
disabled: boolean;
|
|
10259
10259
|
open: boolean;
|
|
@@ -10319,10 +10319,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10319
10319
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
10320
10320
|
__epPropKey: true;
|
|
10321
10321
|
};
|
|
10322
|
-
readonly readonly:
|
|
10323
|
-
readonly clearable:
|
|
10324
|
-
readonly showPassword:
|
|
10325
|
-
readonly showWordLimit:
|
|
10322
|
+
readonly readonly: BooleanConstructor;
|
|
10323
|
+
readonly clearable: BooleanConstructor;
|
|
10324
|
+
readonly showPassword: BooleanConstructor;
|
|
10325
|
+
readonly showWordLimit: BooleanConstructor;
|
|
10326
10326
|
readonly suffixIcon: {
|
|
10327
10327
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
10328
10328
|
readonly required: false;
|
|
@@ -10340,7 +10340,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10340
10340
|
readonly tabindex: import("@element-plus/nightly/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
|
10341
10341
|
readonly validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
10342
10342
|
readonly inputStyle: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("@element-plus/nightly/es/utils").Mutable<{}>, boolean>;
|
|
10343
|
-
readonly autofocus:
|
|
10343
|
+
readonly autofocus: BooleanConstructor;
|
|
10344
10344
|
readonly rows: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 2, boolean>;
|
|
10345
10345
|
}, {
|
|
10346
10346
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -10399,10 +10399,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10399
10399
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
10400
10400
|
__epPropKey: true;
|
|
10401
10401
|
};
|
|
10402
|
-
readonly readonly:
|
|
10403
|
-
readonly clearable:
|
|
10404
|
-
readonly showPassword:
|
|
10405
|
-
readonly showWordLimit:
|
|
10402
|
+
readonly readonly: BooleanConstructor;
|
|
10403
|
+
readonly clearable: BooleanConstructor;
|
|
10404
|
+
readonly showPassword: BooleanConstructor;
|
|
10405
|
+
readonly showWordLimit: BooleanConstructor;
|
|
10406
10406
|
readonly suffixIcon: {
|
|
10407
10407
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
10408
10408
|
readonly required: false;
|
|
@@ -10420,7 +10420,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10420
10420
|
readonly tabindex: import("@element-plus/nightly/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
|
10421
10421
|
readonly validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
10422
10422
|
readonly inputStyle: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("@element-plus/nightly/es/utils").Mutable<{}>, boolean>;
|
|
10423
|
-
readonly autofocus:
|
|
10423
|
+
readonly autofocus: BooleanConstructor;
|
|
10424
10424
|
readonly rows: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 2, boolean>;
|
|
10425
10425
|
}>> & {
|
|
10426
10426
|
onChange?: ((value: string) => any) | undefined;
|
|
@@ -10666,10 +10666,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10666
10666
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
10667
10667
|
__epPropKey: true;
|
|
10668
10668
|
};
|
|
10669
|
-
readonly readonly:
|
|
10670
|
-
readonly clearable:
|
|
10671
|
-
readonly showPassword:
|
|
10672
|
-
readonly showWordLimit:
|
|
10669
|
+
readonly readonly: BooleanConstructor;
|
|
10670
|
+
readonly clearable: BooleanConstructor;
|
|
10671
|
+
readonly showPassword: BooleanConstructor;
|
|
10672
|
+
readonly showWordLimit: BooleanConstructor;
|
|
10673
10673
|
readonly suffixIcon: {
|
|
10674
10674
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
10675
10675
|
readonly required: false;
|
|
@@ -10687,7 +10687,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10687
10687
|
readonly tabindex: import("@element-plus/nightly/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
|
10688
10688
|
readonly validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
10689
10689
|
readonly inputStyle: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("@element-plus/nightly/es/utils").Mutable<{}>, boolean>;
|
|
10690
|
-
readonly autofocus:
|
|
10690
|
+
readonly autofocus: BooleanConstructor;
|
|
10691
10691
|
readonly rows: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 2, boolean>;
|
|
10692
10692
|
}>> & {
|
|
10693
10693
|
onChange?: ((value: string) => any) | undefined;
|
|
@@ -10707,19 +10707,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10707
10707
|
readonly modelValue: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown>;
|
|
10708
10708
|
readonly id: string;
|
|
10709
10709
|
readonly disabled: boolean;
|
|
10710
|
-
readonly clearable:
|
|
10710
|
+
readonly clearable: boolean;
|
|
10711
10711
|
readonly autosize: import("@element-plus/nightly/es/components/input").InputAutoSize;
|
|
10712
10712
|
readonly autocomplete: string;
|
|
10713
|
-
readonly readonly: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
10714
|
-
readonly showPassword: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
10715
|
-
readonly showWordLimit: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
10716
10713
|
readonly containerRole: string;
|
|
10717
10714
|
readonly label: string;
|
|
10718
10715
|
readonly tabindex: import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
10719
10716
|
readonly validateEvent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
10720
10717
|
readonly inputStyle: import("vue").StyleValue;
|
|
10721
|
-
readonly autofocus: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
10722
10718
|
readonly rows: number;
|
|
10719
|
+
readonly readonly: boolean;
|
|
10720
|
+
readonly showPassword: boolean;
|
|
10721
|
+
readonly showWordLimit: boolean;
|
|
10722
|
+
readonly autofocus: boolean;
|
|
10723
10723
|
}>> & Record<string, any>;
|
|
10724
10724
|
ArrowDown: any;
|
|
10725
10725
|
Close: any;
|
|
@@ -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,86 +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.onMounted(() => {
|
|
49
|
-
rawValue.value = utils.getTime(props.value) - Date.now();
|
|
50
|
-
vue.watch(() => [props.value, props.format], () => {
|
|
51
|
-
stopTimer();
|
|
52
|
-
startTimer();
|
|
53
|
-
}, {
|
|
54
|
-
immediate: true
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
vue.onBeforeUnmount(() => {
|
|
58
|
-
stopTimer();
|
|
59
|
-
});
|
|
60
|
-
expose({
|
|
61
|
-
displayValue
|
|
62
|
-
});
|
|
63
|
-
return (_ctx, _cache) => {
|
|
64
|
-
return vue.openBlock(), vue.createBlock(vue.unref(index.ElStatistic), {
|
|
65
|
-
value: rawValue.value,
|
|
66
|
-
title: _ctx.title,
|
|
67
|
-
prefix: _ctx.prefix,
|
|
68
|
-
suffix: _ctx.suffix,
|
|
69
|
-
"value-style": _ctx.valueStyle,
|
|
70
|
-
formatter
|
|
71
|
-
}, vue.createSlots({ _: 2 }, [
|
|
72
|
-
vue.renderList(_ctx.$slots, (_, name) => {
|
|
73
|
-
return {
|
|
74
|
-
name,
|
|
75
|
-
fn: vue.withCtx(() => [
|
|
76
|
-
vue.renderSlot(_ctx.$slots, name)
|
|
77
|
-
])
|
|
78
|
-
};
|
|
79
|
-
})
|
|
80
|
-
]), 1032, ["value", "title", "prefix", "suffix", "value-style"]);
|
|
81
|
-
};
|
|
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])
|
|
82
25
|
}
|
|
83
26
|
});
|
|
84
|
-
|
|
27
|
+
const countdownEmits = {
|
|
28
|
+
finish: () => true,
|
|
29
|
+
[event.CHANGE_EVENT]: (value) => types.isNumber(value)
|
|
30
|
+
};
|
|
85
31
|
|
|
86
|
-
exports
|
|
32
|
+
exports.countdownEmits = countdownEmits;
|
|
33
|
+
exports.countdownProps = countdownProps;
|
|
87
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,86 @@
|
|
|
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(0);
|
|
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.onMounted(() => {
|
|
49
|
+
rawValue.value = utils.getTime(props.value) - Date.now();
|
|
50
|
+
vue.watch(() => [props.value, props.format], () => {
|
|
51
|
+
stopTimer();
|
|
52
|
+
startTimer();
|
|
53
|
+
}, {
|
|
54
|
+
immediate: true
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
vue.onBeforeUnmount(() => {
|
|
58
|
+
stopTimer();
|
|
59
|
+
});
|
|
60
|
+
expose({
|
|
61
|
+
displayValue
|
|
62
|
+
});
|
|
63
|
+
return (_ctx, _cache) => {
|
|
64
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index.ElStatistic), {
|
|
65
|
+
value: rawValue.value,
|
|
66
|
+
title: _ctx.title,
|
|
67
|
+
prefix: _ctx.prefix,
|
|
68
|
+
suffix: _ctx.suffix,
|
|
69
|
+
"value-style": _ctx.valueStyle,
|
|
70
|
+
formatter
|
|
71
|
+
}, vue.createSlots({ _: 2 }, [
|
|
72
|
+
vue.renderList(_ctx.$slots, (_, name) => {
|
|
73
|
+
return {
|
|
74
|
+
name,
|
|
75
|
+
fn: vue.withCtx(() => [
|
|
76
|
+
vue.renderSlot(_ctx.$slots, name)
|
|
77
|
+
])
|
|
78
|
+
};
|
|
79
|
+
})
|
|
80
|
+
]), 1032, ["value", "title", "prefix", "suffix", "value-style"]);
|
|
81
|
+
};
|
|
25
82
|
}
|
|
26
83
|
});
|
|
27
|
-
|
|
28
|
-
finish: () => true,
|
|
29
|
-
[event.CHANGE_EVENT]: (value) => types.isNumber(value)
|
|
30
|
-
};
|
|
84
|
+
var Countdown = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "countdown.vue"]]);
|
|
31
85
|
|
|
32
|
-
exports
|
|
33
|
-
exports.countdownProps = countdownProps;
|
|
86
|
+
exports["default"] = Countdown;
|
|
34
87
|
//# 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, onMounted, 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<number>(0)\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\nonMounted(() => {\n rawValue.value = getTime(props.value) - Date.now()\n\n watch(\n () => [props.value, props.format],\n () => {\n stopTimer()\n startTimer()\n },\n {\n immediate: true,\n }\n )\n})\n\nonBeforeUnmount(() => {\n stopTimer()\n})\n\ndefineExpose({\n /**\n * @description current display value\n */\n displayValue,\n})\n</script>\n"],"names":["ref","computed","formatTime","cAF","getTime","rAF","onMounted","watch","onBeforeUnmount"],"mappings":";;;;;;;;;;;;uCAqBc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAI,IAAA,KAAA,CAAA;AACJ,IAAM,MAAA,QAAA,GAAWA,QAAY,CAAC,CAAA,CAAA;AAC9B,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,GAAYC,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,GAAQC,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,aAAA,CAAU,MAAM;AACd,MAAA,QAAA,CAAS,QAAQF,aAAQ,CAAA,KAAA,CAAM,KAAK,CAAA,GAAI,KAAK,GAAI,EAAA,CAAA;AAEjD,MAAAG,SAAA,CACE,MAAM,CAAC,KAAA,CAAM,OAAO,KAAM,CAAA,MAAM,GAChC,MAAM;AACJ,QAAU,SAAA,EAAA,CAAA;AACV,QAAW,UAAA,EAAA,CAAA;AAAA,OAEb,EAAA;AAAA,QACE,SAAW,EAAA,IAAA;AAAA,OAEf,CAAA,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAAC,mBAAA,CAAgB,MAAM;AACpB,MAAU,SAAA,EAAA,CAAA;AAAA,KACX,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAIX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|