@element-plus/nightly 0.0.20260119 → 0.0.20260121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.full.js +1149 -572
- package/dist/index.full.min.js +22 -22
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +22 -22
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +1143 -573
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
- package/es/components/autocomplete/src/autocomplete.vue2.mjs +1 -1
- package/es/components/cascader/src/cascader.d.ts +127 -3
- package/es/components/cascader/src/cascader.mjs.map +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +79 -395
- package/es/components/cascader/src/cascader.vue2.mjs +71 -30
- package/es/components/cascader/src/cascader.vue2.mjs.map +1 -1
- package/es/components/cascader-panel/src/config.d.ts +21 -0
- package/es/components/cascader-panel/src/config.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.vue.d.ts +30 -37
- package/es/components/cascader-panel/src/index.vue2.mjs +9 -3
- package/es/components/cascader-panel/src/index.vue2.mjs.map +1 -1
- package/es/components/checkbox/index.mjs +1 -1
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +46 -122
- package/es/components/checkbox/src/checkbox-button.vue2.mjs +26 -7
- package/es/components/checkbox/src/checkbox-button.vue2.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group.d.ts +61 -4
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +41 -91
- package/es/components/checkbox/src/checkbox-group.vue2.mjs +19 -5
- package/es/components/checkbox/src/checkbox-group.vue2.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.d.ts +90 -2
- package/es/components/checkbox/src/checkbox.mjs +15 -2
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.vue.d.ts +46 -122
- package/es/components/checkbox/src/checkbox.vue2.mjs +29 -10
- package/es/components/checkbox/src/checkbox.vue2.mjs.map +1 -1
- package/es/components/checkbox/src/composables/use-checkbox-status.d.ts +1 -1
- package/es/components/checkbox/src/composables/use-checkbox.d.ts +1 -1
- package/es/components/color-picker/index.mjs +1 -1
- package/es/components/color-picker/src/color-picker.d.ts +86 -2
- package/es/components/color-picker/src/color-picker.mjs +12 -1
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker.vue.d.ts +48 -291
- package/es/components/color-picker/src/color-picker.vue2.mjs +33 -14
- package/es/components/color-picker/src/color-picker.vue2.mjs.map +1 -1
- package/es/components/date-picker-panel/src/composables/use-basic-date-table.mjs +6 -3
- package/es/components/date-picker-panel/src/composables/use-basic-date-table.mjs.map +1 -1
- package/es/components/dialog/index.mjs +1 -1
- package/es/components/dialog/src/dialog-content.d.ts +66 -1
- package/es/components/dialog/src/dialog-content.mjs +9 -1
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.vue.d.ts +39 -46
- package/es/components/dialog/src/dialog-content.vue2.mjs +23 -10
- package/es/components/dialog/src/dialog-content.vue2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.d.ts +106 -2
- package/es/components/dialog/src/dialog.mjs +14 -2
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +66 -138
- package/es/components/dialog/src/dialog.vue2.mjs +50 -18
- package/es/components/dialog/src/dialog.vue2.mjs.map +1 -1
- package/es/components/dialog/src/use-dialog.d.ts +3 -3
- package/es/components/drawer/src/composables/useResizable.d.ts +1 -1
- package/es/components/drawer/src/composables/useResizable.mjs.map +1 -1
- package/es/components/drawer/src/drawer.d.ts +34 -2
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +78 -153
- package/es/components/drawer/src/drawer.vue2.mjs +63 -18
- package/es/components/drawer/src/drawer.vue2.mjs.map +1 -1
- package/es/components/form/src/form-item.d.ts +58 -2
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item.vue.d.ts +33 -84
- package/es/components/form/src/form-item.vue2.mjs +15 -3
- package/es/components/form/src/form-item.vue2.mjs.map +1 -1
- package/es/components/form/src/form.d.ts +83 -3
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form.vue.d.ts +42 -69
- package/es/components/form/src/form.vue2.mjs +19 -2
- package/es/components/form/src/form.vue2.mjs.map +1 -1
- package/es/components/index.mjs +6 -6
- package/es/components/notification/src/notification.d.ts +73 -4
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification.vue.d.ts +54 -115
- package/es/components/notification/src/notification.vue2.mjs +32 -15
- package/es/components/notification/src/notification.vue2.mjs.map +1 -1
- package/es/components/notification/src/notify.d.ts +3 -3
- package/es/components/notification/src/notify.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm.d.ts +72 -3
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +45 -67
- package/es/components/popconfirm/src/popconfirm.vue2.mjs +33 -16
- package/es/components/popconfirm/src/popconfirm.vue2.mjs.map +1 -1
- package/es/components/popover/index.mjs +1 -1
- package/es/components/popover/src/popover.d.ts +134 -5
- package/es/components/popover/src/popover.mjs +26 -1
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover.vue.d.ts +75 -326
- package/es/components/popover/src/popover.vue2.mjs +51 -26
- package/es/components/popover/src/popover.vue2.mjs.map +1 -1
- package/es/components/table/src/table-column/index.d.ts +1 -1
- package/es/components/tabs/src/tab-bar.d.ts +34 -23
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar.vue.d.ts +28 -180
- package/es/components/tabs/src/tab-bar.vue2.mjs +4 -2
- package/es/components/tabs/src/tab-bar.vue2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.d.ts +75 -75
- package/es/components/tabs/src/tab-pane.d.ts +29 -2
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane.vue.d.ts +26 -27
- package/es/components/tabs/src/tab-pane.vue2.mjs +7 -2
- package/es/components/tabs/src/tab-pane.vue2.mjs.map +1 -1
- package/es/components/tabs/src/tabs.d.ts +5 -5
- package/es/components/time-select/src/time-select.d.ts +84 -2
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +60 -109
- package/es/components/time-select/src/time-select.vue2.mjs +36 -14
- package/es/components/time-select/src/time-select.vue2.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item.d.ts +46 -3
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item.vue.d.ts +35 -39
- package/es/components/timeline/src/timeline-item.vue2.mjs +18 -9
- package/es/components/timeline/src/timeline-item.vue2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +2 -2
- package/es/components/tooltip/src/content.d.ts +69 -2
- package/es/components/tooltip/src/content.mjs +10 -3
- package/es/components/tooltip/src/content.mjs.map +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +90 -555
- package/es/components/tooltip/src/content.vue2.mjs +59 -22
- package/es/components/tooltip/src/content.vue2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.d.ts +19 -3
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +103 -668
- package/es/components/tooltip/src/tooltip.vue2.mjs +102 -41
- package/es/components/tooltip/src/tooltip.vue2.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.d.ts +34 -2
- package/es/components/tooltip/src/trigger.mjs +9 -1
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.vue.d.ts +27 -120
- package/es/components/tooltip/src/trigger.vue2.mjs +21 -5
- package/es/components/tooltip/src/trigger.vue2.mjs.map +1 -1
- package/es/components/transfer/src/composables/use-check.d.ts +3 -1
- package/es/components/transfer/src/composables/use-check.mjs.map +1 -1
- package/es/components/transfer/src/composables/use-computed-data.d.ts +1 -1
- package/es/components/transfer/src/composables/use-computed-data.mjs.map +1 -1
- package/es/components/transfer/src/composables/use-move.d.ts +1 -1
- package/es/components/transfer/src/composables/use-move.mjs.map +1 -1
- package/es/components/transfer/src/composables/use-props-alias.d.ts +2 -4
- package/es/components/transfer/src/composables/use-props-alias.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel.d.ts +19 -3
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel.vue.d.ts +41 -56
- package/es/components/transfer/src/transfer-panel.vue2.mjs +24 -9
- package/es/components/transfer/src/transfer-panel.vue2.mjs.map +1 -1
- package/es/components/transfer/src/transfer.d.ts +65 -2
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer.vue.d.ts +57 -70
- package/es/components/transfer/src/transfer.vue2.mjs +33 -14
- package/es/components/transfer/src/transfer.vue2.mjs.map +1 -1
- package/es/hooks/index.mjs +1 -1
- package/es/hooks/use-aria/index.d.ts +14 -0
- package/es/hooks/use-aria/index.mjs.map +1 -1
- package/es/hooks/use-delayed-toggle/index.d.ts +26 -4
- package/es/hooks/use-delayed-toggle/index.mjs +6 -1
- package/es/hooks/use-delayed-toggle/index.mjs.map +1 -1
- package/es/hooks/use-empty-values/index.d.ts +17 -4
- package/es/hooks/use-empty-values/index.mjs.map +1 -1
- package/es/index.mjs +7 -7
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue2.js +1 -1
- package/lib/components/cascader/src/cascader.d.ts +127 -3
- package/lib/components/cascader/src/cascader.js.map +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +79 -395
- package/lib/components/cascader/src/cascader.vue2.js +68 -27
- package/lib/components/cascader/src/cascader.vue2.js.map +1 -1
- package/lib/components/cascader-panel/src/config.d.ts +21 -0
- package/lib/components/cascader-panel/src/config.js.map +1 -1
- package/lib/components/cascader-panel/src/index.vue.d.ts +30 -37
- package/lib/components/cascader-panel/src/index.vue2.js +8 -2
- package/lib/components/cascader-panel/src/index.vue2.js.map +1 -1
- package/lib/components/checkbox/index.js +1 -0
- package/lib/components/checkbox/index.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +46 -122
- package/lib/components/checkbox/src/checkbox-button.vue2.js +24 -5
- package/lib/components/checkbox/src/checkbox-button.vue2.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group.d.ts +61 -4
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +41 -91
- package/lib/components/checkbox/src/checkbox-group.vue2.js +18 -4
- package/lib/components/checkbox/src/checkbox-group.vue2.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.d.ts +90 -2
- package/lib/components/checkbox/src/checkbox.js +15 -1
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.vue.d.ts +46 -122
- package/lib/components/checkbox/src/checkbox.vue2.js +27 -8
- package/lib/components/checkbox/src/checkbox.vue2.js.map +1 -1
- package/lib/components/checkbox/src/composables/use-checkbox-status.d.ts +1 -1
- package/lib/components/checkbox/src/composables/use-checkbox.d.ts +1 -1
- package/lib/components/color-picker/index.js +1 -0
- package/lib/components/color-picker/index.js.map +1 -1
- package/lib/components/color-picker/src/color-picker.d.ts +86 -2
- package/lib/components/color-picker/src/color-picker.js +12 -0
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker.vue.d.ts +48 -291
- package/lib/components/color-picker/src/color-picker.vue2.js +31 -12
- package/lib/components/color-picker/src/color-picker.vue2.js.map +1 -1
- package/lib/components/date-picker-panel/src/composables/use-basic-date-table.js +6 -3
- package/lib/components/date-picker-panel/src/composables/use-basic-date-table.js.map +1 -1
- package/lib/components/dialog/index.js +1 -0
- package/lib/components/dialog/index.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.d.ts +66 -1
- package/lib/components/dialog/src/dialog-content.js +9 -0
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.vue.d.ts +39 -46
- package/lib/components/dialog/src/dialog-content.vue2.js +21 -8
- package/lib/components/dialog/src/dialog-content.vue2.js.map +1 -1
- package/lib/components/dialog/src/dialog.d.ts +106 -2
- package/lib/components/dialog/src/dialog.js +13 -0
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +66 -138
- package/lib/components/dialog/src/dialog.vue2.js +48 -16
- package/lib/components/dialog/src/dialog.vue2.js.map +1 -1
- package/lib/components/dialog/src/use-dialog.d.ts +3 -3
- package/lib/components/drawer/src/composables/useResizable.d.ts +1 -1
- package/lib/components/drawer/src/composables/useResizable.js.map +1 -1
- package/lib/components/drawer/src/drawer.d.ts +34 -2
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +78 -153
- package/lib/components/drawer/src/drawer.vue2.js +61 -16
- package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
- package/lib/components/form/src/form-item.d.ts +58 -2
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item.vue.d.ts +33 -84
- package/lib/components/form/src/form-item.vue2.js +15 -3
- package/lib/components/form/src/form-item.vue2.js.map +1 -1
- package/lib/components/form/src/form.d.ts +83 -3
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form.vue.d.ts +42 -69
- package/lib/components/form/src/form.vue2.js +18 -1
- package/lib/components/form/src/form.vue2.js.map +1 -1
- package/lib/components/index.js +6 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/notification/src/notification.d.ts +73 -4
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +54 -115
- package/lib/components/notification/src/notification.vue2.js +30 -13
- package/lib/components/notification/src/notification.vue2.js.map +1 -1
- package/lib/components/notification/src/notify.d.ts +3 -3
- package/lib/components/notification/src/notify.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.d.ts +72 -3
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +45 -67
- package/lib/components/popconfirm/src/popconfirm.vue2.js +32 -15
- package/lib/components/popconfirm/src/popconfirm.vue2.js.map +1 -1
- package/lib/components/popover/index.js +1 -0
- package/lib/components/popover/index.js.map +1 -1
- package/lib/components/popover/src/popover.d.ts +134 -5
- package/lib/components/popover/src/popover.js +26 -0
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover.vue.d.ts +75 -326
- package/lib/components/popover/src/popover.vue2.js +49 -24
- package/lib/components/popover/src/popover.vue2.js.map +1 -1
- package/lib/components/table/src/table-column/index.d.ts +1 -1
- package/lib/components/tabs/src/tab-bar.d.ts +34 -23
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar.vue.d.ts +28 -180
- package/lib/components/tabs/src/tab-bar.vue2.js +4 -2
- package/lib/components/tabs/src/tab-bar.vue2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.d.ts +75 -75
- package/lib/components/tabs/src/tab-pane.d.ts +29 -2
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane.vue.d.ts +26 -27
- package/lib/components/tabs/src/tab-pane.vue2.js +7 -2
- package/lib/components/tabs/src/tab-pane.vue2.js.map +1 -1
- package/lib/components/tabs/src/tabs.d.ts +5 -5
- package/lib/components/time-select/src/time-select.d.ts +84 -2
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +60 -109
- package/lib/components/time-select/src/time-select.vue2.js +36 -14
- package/lib/components/time-select/src/time-select.vue2.js.map +1 -1
- package/lib/components/timeline/src/timeline-item.d.ts +46 -3
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item.vue.d.ts +35 -39
- package/lib/components/timeline/src/timeline-item.vue2.js +18 -9
- package/lib/components/timeline/src/timeline-item.vue2.js.map +1 -1
- package/lib/components/tooltip/index.js +2 -0
- package/lib/components/tooltip/index.js.map +1 -1
- package/lib/components/tooltip/src/content.d.ts +69 -2
- package/lib/components/tooltip/src/content.js +8 -0
- package/lib/components/tooltip/src/content.js.map +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +90 -555
- package/lib/components/tooltip/src/content.vue2.js +58 -21
- package/lib/components/tooltip/src/content.vue2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.d.ts +19 -3
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +103 -668
- package/lib/components/tooltip/src/tooltip.vue2.js +100 -39
- package/lib/components/tooltip/src/tooltip.vue2.js.map +1 -1
- package/lib/components/tooltip/src/trigger.d.ts +34 -2
- package/lib/components/tooltip/src/trigger.js +9 -0
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/tooltip/src/trigger.vue.d.ts +27 -120
- package/lib/components/tooltip/src/trigger.vue2.js +20 -4
- package/lib/components/tooltip/src/trigger.vue2.js.map +1 -1
- package/lib/components/transfer/src/composables/use-check.d.ts +3 -1
- package/lib/components/transfer/src/composables/use-check.js.map +1 -1
- package/lib/components/transfer/src/composables/use-computed-data.d.ts +1 -1
- package/lib/components/transfer/src/composables/use-computed-data.js.map +1 -1
- package/lib/components/transfer/src/composables/use-move.d.ts +1 -1
- package/lib/components/transfer/src/composables/use-move.js.map +1 -1
- package/lib/components/transfer/src/composables/use-props-alias.d.ts +2 -4
- package/lib/components/transfer/src/composables/use-props-alias.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel.d.ts +19 -3
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +41 -56
- package/lib/components/transfer/src/transfer-panel.vue2.js +23 -8
- package/lib/components/transfer/src/transfer-panel.vue2.js.map +1 -1
- package/lib/components/transfer/src/transfer.d.ts +65 -2
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer.vue.d.ts +57 -70
- package/lib/components/transfer/src/transfer.vue2.js +32 -13
- package/lib/components/transfer/src/transfer.vue2.js.map +1 -1
- package/lib/hooks/index.js +1 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-aria/index.d.ts +14 -0
- package/lib/hooks/use-aria/index.js.map +1 -1
- package/lib/hooks/use-delayed-toggle/index.d.ts +26 -4
- package/lib/hooks/use-delayed-toggle/index.js +6 -0
- package/lib/hooks/use-delayed-toggle/index.js.map +1 -1
- package/lib/hooks/use-empty-values/index.d.ts +17 -4
- package/lib/hooks/use-empty-values/index.js.map +1 -1
- package/lib/index.js +7 -0
- package/lib/index.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/theme-chalk/el-collapse-item.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/collapse-item.scss +5 -0
- package/web-types.json +1 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
2
|
import type TabPane from './tab-pane.vue';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Removed after 3.0.0, Use `TabPaneProps` instead.
|
|
5
|
+
*/
|
|
3
6
|
export declare const tabPaneProps: {
|
|
4
7
|
readonly label: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
5
8
|
readonly name: {
|
|
@@ -12,6 +15,30 @@ export declare const tabPaneProps: {
|
|
|
12
15
|
readonly disabled: BooleanConstructor;
|
|
13
16
|
readonly lazy: BooleanConstructor;
|
|
14
17
|
};
|
|
15
|
-
export type TabPaneProps =
|
|
18
|
+
export type TabPaneProps = {
|
|
19
|
+
/**
|
|
20
|
+
* @description title of the tab
|
|
21
|
+
*/
|
|
22
|
+
label?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @description identifier corresponding to the name of Tabs, representing the alias of the tab-pane, the default is ordinal number of the tab-pane in the sequence, e.g. the first tab-pane is '0'
|
|
25
|
+
*/
|
|
26
|
+
name?: string | number;
|
|
27
|
+
/**
|
|
28
|
+
* @description whether Tab is closable
|
|
29
|
+
*/
|
|
30
|
+
closable?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @description whether Tab is disabled
|
|
33
|
+
*/
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @description whether Tab is lazily rendered
|
|
37
|
+
*/
|
|
38
|
+
lazy?: boolean;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Removed after 3.0.0, Use `TabPaneProps` instead.
|
|
42
|
+
*/
|
|
16
43
|
export type TabPanePropsPublic = ExtractPublicPropTypes<typeof tabPaneProps>;
|
|
17
44
|
export type TabPaneInstance = InstanceType<typeof TabPane> & unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-pane.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type {
|
|
1
|
+
{"version":3,"file":"tab-pane.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type TabPane from './tab-pane.vue'\n\n/**\n * @deprecated Removed after 3.0.0, Use `TabPaneProps` instead.\n */\nexport const tabPaneProps = buildProps({\n /**\n * @description title of the tab\n */\n label: {\n type: String,\n default: '',\n },\n /**\n * @description identifier corresponding to the name of Tabs, representing the alias of the tab-pane, the default is ordinal number of the tab-pane in the sequence, e.g. the first tab-pane is '0'\n */\n name: {\n type: [String, Number],\n },\n /**\n * @description whether Tab is closable\n */\n closable: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether Tab is disabled\n */\n disabled: Boolean,\n /**\n * @description whether Tab is lazily rendered\n */\n lazy: Boolean,\n} as const)\n\nexport type TabPaneProps = {\n /**\n * @description title of the tab\n */\n label?: string\n /**\n * @description identifier corresponding to the name of Tabs, representing the alias of the tab-pane, the default is ordinal number of the tab-pane in the sequence, e.g. the first tab-pane is '0'\n */\n name?: string | number\n /**\n * @description whether Tab is closable\n */\n closable?: boolean\n /**\n * @description whether Tab is disabled\n */\n disabled?: boolean\n /**\n * @description whether Tab is lazily rendered\n */\n lazy?: boolean\n}\n/**\n * @deprecated Removed after 3.0.0, Use `TabPaneProps` instead.\n */\nexport type TabPanePropsPublic = ExtractPublicPropTypes<typeof tabPaneProps>\n\nexport type TabPaneInstance = InstanceType<typeof TabPane> & unknown\n"],"names":[],"mappings":";;AAQO,MAAM,eAAe,UAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIrC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM;AAAA,GACvB;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA,EAIV,IAAA,EAAM;AACR,CAAU;;;;"}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
+
import type { TabPaneProps } from './tab-pane';
|
|
1
2
|
declare var __VLS_1: {};
|
|
2
3
|
type __VLS_Slots = {} & {
|
|
3
4
|
default?: (props: typeof __VLS_1) => any;
|
|
4
5
|
};
|
|
5
|
-
declare const __VLS_base: import("vue").DefineComponent<{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
readonly disabled: BooleanConstructor;
|
|
15
|
-
readonly lazy: BooleanConstructor;
|
|
16
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
-
readonly label: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
18
|
-
readonly name: {
|
|
19
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
20
|
-
readonly required: false;
|
|
21
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
|
-
__epPropKey: true;
|
|
23
|
-
};
|
|
24
|
-
readonly closable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
25
|
-
readonly disabled: BooleanConstructor;
|
|
26
|
-
readonly lazy: BooleanConstructor;
|
|
27
|
-
}>>, {
|
|
28
|
-
readonly label: string;
|
|
29
|
-
readonly disabled: boolean;
|
|
30
|
-
readonly closable: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
31
|
-
readonly lazy: boolean;
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<TabPaneProps>, {
|
|
7
|
+
label: string;
|
|
8
|
+
closable: undefined;
|
|
9
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<TabPaneProps>, {
|
|
10
|
+
label: string;
|
|
11
|
+
closable: undefined;
|
|
12
|
+
}>>>, {
|
|
13
|
+
label: string;
|
|
14
|
+
closable: boolean;
|
|
32
15
|
}, {}>;
|
|
33
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
17
|
declare const _default: typeof __VLS_export;
|
|
35
18
|
export default _default;
|
|
19
|
+
type __VLS_TypePropsToOption<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type __VLS_WithDefaultsLocal<P, D> = {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
29
|
+
default: D[K];
|
|
30
|
+
}> : P[K];
|
|
31
|
+
};
|
|
36
32
|
type __VLS_WithSlots<T, S> = T & {
|
|
37
33
|
new (): {
|
|
38
34
|
$slots: S;
|
|
39
35
|
};
|
|
40
36
|
};
|
|
37
|
+
type __VLS_PrettifyLocal<T> = {
|
|
38
|
+
[K in keyof T as K]: T[K];
|
|
39
|
+
} & {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent, getCurrentInstance, useSlots, inject, ref, computed, watch, reactive, onBeforeUnmount, onBeforeUpdate, withDirectives, createCommentVNode, createElementBlock, openBlock, normalizeClass, unref, renderSlot, vShow } from 'vue';
|
|
2
2
|
import { tabsRootContextKey } from './constants.mjs';
|
|
3
|
-
import { tabPaneProps } from './tab-pane.mjs';
|
|
4
3
|
import { throwError } from '../../../utils/error.mjs';
|
|
5
4
|
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
6
5
|
|
|
@@ -11,7 +10,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
10
|
name: COMPONENT_NAME
|
|
12
11
|
},
|
|
13
12
|
__name: "tab-pane",
|
|
14
|
-
props:
|
|
13
|
+
props: {
|
|
14
|
+
label: { type: String, required: false, default: "" },
|
|
15
|
+
name: { type: [String, Number], required: false },
|
|
16
|
+
closable: { type: Boolean, required: false, default: void 0 },
|
|
17
|
+
disabled: { type: Boolean, required: false },
|
|
18
|
+
lazy: { type: Boolean, required: false }
|
|
19
|
+
},
|
|
15
20
|
setup(__props) {
|
|
16
21
|
const props = __props;
|
|
17
22
|
const instance = getCurrentInstance();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-pane.vue2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.vue"],"sourcesContent":["<template>\n <div\n v-if=\"shouldBeRender\"\n v-show=\"active\"\n :id=\"`pane-${paneName}`\"\n ref=\"paneRef\"\n :class=\"ns.b()\"\n role=\"tabpanel\"\n :aria-hidden=\"!active\"\n :aria-labelledby=\"`tab-${paneName}`\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n getCurrentInstance,\n inject,\n onBeforeUnmount,\n onBeforeUpdate,\n reactive,\n ref,\n useSlots,\n watch,\n} from 'vue'\nimport { throwError } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { tabsRootContextKey } from './constants'\nimport {
|
|
1
|
+
{"version":3,"file":"tab-pane.vue2.mjs","sources":["../../../../../../packages/components/tabs/src/tab-pane.vue"],"sourcesContent":["<template>\n <div\n v-if=\"shouldBeRender\"\n v-show=\"active\"\n :id=\"`pane-${paneName}`\"\n ref=\"paneRef\"\n :class=\"ns.b()\"\n role=\"tabpanel\"\n :aria-hidden=\"!active\"\n :aria-labelledby=\"`tab-${paneName}`\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n getCurrentInstance,\n inject,\n onBeforeUnmount,\n onBeforeUpdate,\n reactive,\n ref,\n useSlots,\n watch,\n} from 'vue'\nimport { throwError } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { tabsRootContextKey } from './constants'\n\nimport type { TabPaneProps } from './tab-pane'\n\nconst COMPONENT_NAME = 'ElTabPane'\ndefineOptions({\n name: COMPONENT_NAME,\n})\nconst props = withDefaults(defineProps<TabPaneProps>(), {\n label: '',\n closable: undefined,\n})\n\nconst instance = getCurrentInstance()!\nconst slots = useSlots()\n\nconst tabsRoot = inject(tabsRootContextKey)\nif (!tabsRoot)\n throwError(COMPONENT_NAME, 'usage: <el-tabs><el-tab-pane /></el-tabs/>')\n\nconst ns = useNamespace('tab-pane')\n\nconst paneRef = ref<HTMLDivElement>()\nconst index = ref<string>()\nconst isClosable = computed(() => props.closable ?? tabsRoot.props.closable)\nconst active = computed(\n () => tabsRoot.currentName.value === (props.name ?? index.value)\n)\nconst loaded = ref(active.value)\nconst paneName = computed(() => props.name ?? index.value)\nconst shouldBeRender = computed(\n () => !props.lazy || loaded.value || active.value\n)\n\nconst isFocusInsidePane = () => {\n return paneRef.value?.contains(document.activeElement)\n}\n\nwatch(active, (val) => {\n if (val) loaded.value = true\n})\n\nconst pane = reactive({\n uid: instance.uid,\n getVnode: () => instance.vnode,\n slots,\n props,\n paneName,\n active,\n index,\n isClosable,\n isFocusInsidePane,\n})\n\ntabsRoot.registerPane(pane)\n\nonBeforeUnmount(() => {\n tabsRoot.unregisterPane(pane)\n})\n\nonBeforeUpdate(() => {\n if (slots.label) tabsRoot.nav$.value?.scheduleRender()\n})\n</script>\n"],"names":["_createElementBlock","_normalizeClass","_unref","_renderSlot"],"mappings":";;;;;;AAiCA,MAAM,cAAA,GAAiB,WAAA;;;;;;;;;;;;;;AAIvB,IAAA,MAAM,KAAA,GAAQ,OAAA;AAKd,IAAA,MAAM,WAAW,kBAAA,EAAmB;AACpC,IAAA,MAAM,QAAQ,QAAA,EAAS;AAEvB,IAAA,MAAM,QAAA,GAAW,OAAO,kBAAkB,CAAA;AAC1C,IAAA,IAAI,CAAC,QAAA;AACH,MAAA,UAAA,CAAW,gBAAgB,4CAA4C,CAAA;AAEzE,IAAA,MAAM,EAAA,GAAK,aAAa,UAAU,CAAA;AAElC,IAAA,MAAM,UAAU,GAAA,EAAoB;AACpC,IAAA,MAAM,QAAQ,GAAA,EAAY;AAC1B,IAAA,MAAM,UAAA,GAAa,SAAS,MAAG;;AAAG,MAAA,OAAA,CAAA,EAAA,GAAA,KAAA,CAAM,QAAA,KAAN,IAAA,GAAA,EAAA,GAAkB,QAAA,CAAS,KAAA,CAAM,QAAA;AAAA,IAAA,CAAQ,CAAA;AAC3E,IAAA,MAAM,MAAA,GAAS,QAAA;AAAA,MACb,MAAG;;AAAG,QAAA,OAAA,QAAA,CAAS,WAAA,CAAY,KAAA,MAAA,CAAW,EAAA,GAAA,KAAA,CAAM,IAAA,KAAN,YAAc,KAAA,CAAM,KAAA,CAAA;AAAA,MAAA;AAAA,KAC5D;AACA,IAAA,MAAM,MAAA,GAAS,GAAA,CAAI,MAAA,CAAO,KAAK,CAAA;AAC/B,IAAA,MAAM,QAAA,GAAW,SAAS,MAAG;;AAAG,MAAA,OAAA,CAAA,EAAA,GAAA,KAAA,CAAM,IAAA,KAAN,YAAc,KAAA,CAAM,KAAA;AAAA,IAAA,CAAK,CAAA;AACzD,IAAA,MAAM,cAAA,GAAiB,QAAA;AAAA,MACrB,MAAM,CAAC,KAAA,CAAM,IAAA,IAAQ,MAAA,CAAO,SAAS,MAAA,CAAO;AAAA,KAC9C;AAEA,IAAA,MAAM,oBAAoB,MAAM;;AAC9B,MAAA,OAAA,CAAO,EAAA,GAAA,OAAA,CAAQ,KAAA,KAAR,IAAA,GAAA,MAAA,GAAA,EAAA,CAAe,QAAA,CAAS,QAAA,CAAS,aAAA,CAAA;AAAA,IAC1C,CAAA;AAEA,IAAA,KAAA,CAAM,MAAA,EAAQ,CAAC,GAAA,KAAQ;AACrB,MAAA,IAAI,GAAA,SAAY,KAAA,GAAQ,IAAA;AAAA,IAC1B,CAAC,CAAA;AAED,IAAA,MAAM,OAAO,QAAA,CAAS;AAAA,MACpB,KAAK,QAAA,CAAS,GAAA;AAAA,MACd,QAAA,EAAU,MAAM,QAAA,CAAS,KAAA;AAAA,MACzB,KAAA;AAAA,MACA,KAAA;AAAA,MACA,QAAA;AAAA,MACA,MAAA;AAAA,MACA,KAAA;AAAA,MACA,UAAA;AAAA,MACA;AAAA,KACD,CAAA;AAED,IAAA,QAAA,CAAS,aAAa,IAAI,CAAA;AAE1B,IAAA,eAAA,CAAgB,MAAM;AACpB,MAAA,QAAA,CAAS,eAAe,IAAI,CAAA;AAAA,IAC9B,CAAC,CAAA;AAED,IAAA,cAAA,CAAe,MAAM;;AACnB,MAAA,IAAI,KAAA,CAAM,KAAA,EAAO,CAAA,EAAA,GAAA,QAAA,CAAS,IAAA,CAAK,UAAd,IAAA,GAAA,MAAA,GAAA,EAAA,CAAqB,cAAA,EAAA;AAAA,IACxC,CAAC,CAAA;;aAzFS,eAAA,KAAA,gCADRA,mBAWM,KAAA,EAAA;AAAA;QARH,EAAA,UAAY,QAAA,CAAA,KAAQ,CAAA,CAAA;AAAA,iBACjB,SAAA;AAAA,QAAJ,GAAA,EAAI,OAAA;AAAA,QACH,OAAKC,cAAA,CAAEC,KAAA,CAAA,EAAA,CAAA,CAAG,GAAC,CAAA;AAAA,QACZ,IAAA,EAAK,UAAA;AAAA,QACJ,aAAA,GAAc,MAAA,CAAA,KAAA;AAAA,QACd,iBAAA,SAAwB,QAAA,CAAA,KAAQ,CAAA;AAAA;QAEjCC,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA;AAAA;gBARA,MAAA,CAAA,KAAM;AAAA;;;;;;;"}
|
|
@@ -116,11 +116,11 @@ declare const Tabs: import("vue").DefineComponent<{
|
|
|
116
116
|
getVnode: () => VNode;
|
|
117
117
|
slots: import("vue").Slots;
|
|
118
118
|
props: {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
label?: string | undefined;
|
|
120
|
+
name?: (string | number) | undefined;
|
|
121
|
+
closable?: boolean | undefined;
|
|
122
|
+
disabled?: boolean | undefined;
|
|
123
|
+
lazy?: boolean | undefined;
|
|
124
124
|
};
|
|
125
125
|
paneName: TabPaneName | undefined;
|
|
126
126
|
active: boolean;
|
|
@@ -1,6 +1,89 @@
|
|
|
1
|
+
import type { UseEmptyValuesProps } from '@element-plus/nightly/es/hooks';
|
|
1
2
|
import type { PopperEffect } from '@element-plus/nightly/es/components/popper';
|
|
2
3
|
import type TimeSelect from './time-select.vue';
|
|
3
|
-
import type { CSSProperties, Component,
|
|
4
|
+
import type { CSSProperties, Component, ExtractPublicPropTypes } from 'vue';
|
|
5
|
+
import type { ComponentSize } from '@element-plus/nightly/es/constants';
|
|
6
|
+
export interface TimeSelectProps extends UseEmptyValuesProps {
|
|
7
|
+
/**
|
|
8
|
+
* @description set format of time
|
|
9
|
+
*/
|
|
10
|
+
format?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @description binding value
|
|
13
|
+
*/
|
|
14
|
+
modelValue?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* @description whether TimeSelect is disabled
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @description whether the input is editable
|
|
21
|
+
*/
|
|
22
|
+
editable?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @description Tooltip theme, built-in theme: `dark` / `light`
|
|
25
|
+
*/
|
|
26
|
+
effect?: PopperEffect;
|
|
27
|
+
/**
|
|
28
|
+
* @description whether to show clear button
|
|
29
|
+
*/
|
|
30
|
+
clearable?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @description size of Input
|
|
33
|
+
*/
|
|
34
|
+
size?: ComponentSize;
|
|
35
|
+
/**
|
|
36
|
+
* @description placeholder in non-range mode
|
|
37
|
+
*/
|
|
38
|
+
placeholder?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @description start time
|
|
41
|
+
*/
|
|
42
|
+
start?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @description end time
|
|
45
|
+
*/
|
|
46
|
+
end?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @description time step
|
|
49
|
+
*/
|
|
50
|
+
step?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @description minimum time, any time before this time will be disabled
|
|
53
|
+
*/
|
|
54
|
+
minTime?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* @description maximum time, any time after this time will be disabled
|
|
57
|
+
*/
|
|
58
|
+
maxTime?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* @description whether `end` is included in options
|
|
61
|
+
*/
|
|
62
|
+
includeEndTime?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* @description same as `name` in native input
|
|
65
|
+
*/
|
|
66
|
+
name?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @description custom prefix icon component
|
|
69
|
+
*/
|
|
70
|
+
prefixIcon?: string | Component;
|
|
71
|
+
/**
|
|
72
|
+
* @description custom clear icon component
|
|
73
|
+
*/
|
|
74
|
+
clearIcon?: string | Component;
|
|
75
|
+
/**
|
|
76
|
+
* @description custom class name for TimeSelect's dropdown
|
|
77
|
+
*/
|
|
78
|
+
popperClass?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @description custom style for TimeSelect's dropdown
|
|
81
|
+
*/
|
|
82
|
+
popperStyle?: string | CSSProperties;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated Removed after 3.0.0, Use `TimeSelectProps` instead.
|
|
86
|
+
*/
|
|
4
87
|
export declare const timeSelectProps: {
|
|
5
88
|
readonly emptyValues: ArrayConstructor;
|
|
6
89
|
readonly valueOnClear: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null))[], unknown, unknown, undefined, boolean>;
|
|
@@ -49,6 +132,5 @@ export declare const timeSelectProps: {
|
|
|
49
132
|
__epPropKey: true;
|
|
50
133
|
};
|
|
51
134
|
};
|
|
52
|
-
export type TimeSelectProps = ExtractPropTypes<typeof timeSelectProps>;
|
|
53
135
|
export type TimeSelectPropsPublic = ExtractPublicPropTypes<typeof timeSelectProps>;
|
|
54
136
|
export type TimeSelectInstance = InstanceType<typeof TimeSelect> & unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-select.mjs","sources":["../../../../../../packages/components/time-select/src/time-select.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport { useEmptyValuesProps, useSizeProp } from '@element-plus/hooks'\n\nimport type { PopperEffect } from '@element-plus/components/popper'\nimport type TimeSelect from './time-select.vue'\nimport type {\n
|
|
1
|
+
{"version":3,"file":"time-select.mjs","sources":["../../../../../../packages/components/time-select/src/time-select.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport { useEmptyValuesProps, useSizeProp } from '@element-plus/hooks'\n\nimport type { UseEmptyValuesProps } from '@element-plus/hooks'\nimport type { PopperEffect } from '@element-plus/components/popper'\nimport type TimeSelect from './time-select.vue'\nimport type { CSSProperties, Component, ExtractPublicPropTypes } from 'vue'\nimport type { ComponentSize } from '@element-plus/constants'\n\nexport interface TimeSelectProps extends UseEmptyValuesProps {\n /**\n * @description set format of time\n */\n format?: string\n /**\n * @description binding value\n */\n modelValue?: string | null\n /**\n * @description whether TimeSelect is disabled\n */\n disabled?: boolean\n /**\n * @description whether the input is editable\n */\n editable?: boolean\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect?: PopperEffect\n /**\n * @description whether to show clear button\n */\n clearable?: boolean\n /**\n * @description size of Input\n */\n size?: ComponentSize\n /**\n * @description placeholder in non-range mode\n */\n placeholder?: string\n /**\n * @description start time\n */\n start?: string\n /**\n * @description end time\n */\n end?: string\n /**\n * @description time step\n */\n step?: string\n /**\n * @description minimum time, any time before this time will be disabled\n */\n minTime?: string | null\n /**\n * @description maximum time, any time after this time will be disabled\n */\n maxTime?: string | null\n /**\n * @description whether `end` is included in options\n */\n includeEndTime?: boolean\n /**\n * @description same as `name` in native input\n */\n name?: string\n /**\n * @description custom prefix icon component\n */\n prefixIcon?: string | Component\n /**\n * @description custom clear icon component\n */\n clearIcon?: string | Component\n /**\n * @description custom class name for TimeSelect's dropdown\n */\n popperClass?: string\n /**\n * @description custom style for TimeSelect's dropdown\n */\n popperStyle?: string | CSSProperties\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `TimeSelectProps` instead.\n */\nexport const timeSelectProps = buildProps({\n /**\n * @description set format of time\n */\n format: {\n type: String,\n default: 'HH:mm',\n },\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | null>(String),\n },\n /**\n * @description whether TimeSelect is disabled\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'light',\n },\n /**\n * @description whether to show clear button\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description placeholder in non-range mode\n */\n placeholder: String,\n /**\n * @description start time\n */\n start: {\n type: String,\n default: '09:00',\n },\n /**\n * @description end time\n */\n end: {\n type: String,\n default: '18:00',\n },\n /**\n * @description time step\n */\n step: {\n type: String,\n default: '00:30',\n },\n /**\n * @description minimum time, any time before this time will be disabled\n */\n minTime: {\n type: definePropType<string | null>(String),\n },\n /**\n * @description maximum time, any time after this time will be disabled\n */\n maxTime: {\n type: definePropType<string | null>(String),\n },\n /**\n * @description whether `end` is included in options\n */\n includeEndTime: Boolean,\n /**\n * @description same as `name` in native input\n */\n name: String,\n /**\n * @description custom prefix icon component\n */\n prefixIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: () => Clock,\n },\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: () => CircleClose,\n },\n /**\n * @description custom class name for TimeSelect's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description custom style for TimeSelect's dropdown\n */\n popperStyle: {\n type: definePropType<string | CSSProperties>([String, Object]),\n },\n ...useEmptyValuesProps,\n} as const)\n\nexport type TimeSelectPropsPublic = ExtractPublicPropTypes<\n typeof timeSelectProps\n>\n\nexport type TimeSelectInstance = InstanceType<typeof TimeSelect> & unknown\n"],"names":[],"mappings":";;;;;AA4FO,MAAM,kBAAkB,UAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIxC,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAA,EAAY;AAAA,IACV,IAAA,EAAM,eAA8B,MAAM;AAAA,GAC5C;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,eAA6B,MAAM,CAAA;AAAA,IACzC,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM,WAAA;AAAA;AAAA;AAAA;AAAA,EAIN,WAAA,EAAa,MAAA;AAAA;AAAA;AAAA;AAAA,EAIb,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,GAAA,EAAK;AAAA,IACH,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,eAA8B,MAAM;AAAA,GAC5C;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,eAA8B,MAAM;AAAA,GAC5C;AAAA;AAAA;AAAA;AAAA,EAIA,cAAA,EAAgB,OAAA;AAAA;AAAA;AAAA;AAAA,EAIhB,IAAA,EAAM,MAAA;AAAA;AAAA;AAAA;AAAA,EAIN,UAAA,EAAY;AAAA,IACV,IAAA,EAAM,cAAA,CAAmC,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IACzD,SAAS,MAAM;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,cAAA,CAAmC,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IACzD,SAAS,MAAM;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,cAAA,CAAuC,CAAC,MAAA,EAAQ,MAAM,CAAC;AAAA,GAC/D;AAAA,EACA,GAAG;AACL,CAAU;;;;"}
|
|
@@ -1,51 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
readonly required: false;
|
|
18
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
|
-
__epPropKey: true;
|
|
20
|
-
};
|
|
21
|
-
readonly placeholder: StringConstructor;
|
|
22
|
-
readonly start: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "09:00", boolean>;
|
|
23
|
-
readonly end: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "18:00", boolean>;
|
|
24
|
-
readonly step: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "00:30", boolean>;
|
|
25
|
-
readonly minTime: {
|
|
26
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown>>;
|
|
27
|
-
readonly required: false;
|
|
28
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
29
|
-
__epPropKey: true;
|
|
30
|
-
};
|
|
31
|
-
readonly maxTime: {
|
|
32
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown>>;
|
|
33
|
-
readonly required: false;
|
|
34
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
35
|
-
__epPropKey: true;
|
|
36
|
-
};
|
|
37
|
-
readonly includeEndTime: BooleanConstructor;
|
|
38
|
-
readonly name: StringConstructor;
|
|
39
|
-
readonly prefixIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, () => any, boolean>;
|
|
40
|
-
readonly clearIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, () => any, boolean>;
|
|
41
|
-
readonly popperClass: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
42
|
-
readonly popperStyle: {
|
|
43
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties) | (() => string | import("vue").CSSProperties) | ((new (...args: any[]) => string | import("vue").CSSProperties) | (() => string | import("vue").CSSProperties))[], unknown, unknown>>;
|
|
44
|
-
readonly required: false;
|
|
45
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
|
-
__epPropKey: true;
|
|
47
|
-
};
|
|
48
|
-
}, {
|
|
1
|
+
import type { TimeSelectProps } from './time-select';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<TimeSelectProps>, {
|
|
3
|
+
format: string;
|
|
4
|
+
disabled: undefined;
|
|
5
|
+
editable: boolean;
|
|
6
|
+
effect: string;
|
|
7
|
+
clearable: boolean;
|
|
8
|
+
start: string;
|
|
9
|
+
end: string;
|
|
10
|
+
step: string;
|
|
11
|
+
prefixIcon: () => any;
|
|
12
|
+
clearIcon: () => any;
|
|
13
|
+
popperClass: string;
|
|
14
|
+
valueOnClear: undefined;
|
|
15
|
+
popperStyle: undefined;
|
|
16
|
+
}>, {
|
|
49
17
|
/**
|
|
50
18
|
* @description blur the Input component
|
|
51
19
|
*/
|
|
@@ -60,73 +28,56 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
60
28
|
change: (...args: any[]) => void;
|
|
61
29
|
clear: (...args: any[]) => void;
|
|
62
30
|
blur: (...args: any[]) => void;
|
|
63
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
79
|
-
readonly required: false;
|
|
80
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
81
|
-
__epPropKey: true;
|
|
82
|
-
};
|
|
83
|
-
readonly placeholder: StringConstructor;
|
|
84
|
-
readonly start: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "09:00", boolean>;
|
|
85
|
-
readonly end: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "18:00", boolean>;
|
|
86
|
-
readonly step: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "00:30", boolean>;
|
|
87
|
-
readonly minTime: {
|
|
88
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown>>;
|
|
89
|
-
readonly required: false;
|
|
90
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
91
|
-
__epPropKey: true;
|
|
92
|
-
};
|
|
93
|
-
readonly maxTime: {
|
|
94
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown>>;
|
|
95
|
-
readonly required: false;
|
|
96
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
97
|
-
__epPropKey: true;
|
|
98
|
-
};
|
|
99
|
-
readonly includeEndTime: BooleanConstructor;
|
|
100
|
-
readonly name: StringConstructor;
|
|
101
|
-
readonly prefixIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, () => any, boolean>;
|
|
102
|
-
readonly clearIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, () => any, boolean>;
|
|
103
|
-
readonly popperClass: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
104
|
-
readonly popperStyle: {
|
|
105
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties) | (() => string | import("vue").CSSProperties) | ((new (...args: any[]) => string | import("vue").CSSProperties) | (() => string | import("vue").CSSProperties))[], unknown, unknown>>;
|
|
106
|
-
readonly required: false;
|
|
107
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
108
|
-
__epPropKey: true;
|
|
109
|
-
};
|
|
110
|
-
}>> & {
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<TimeSelectProps>, {
|
|
32
|
+
format: string;
|
|
33
|
+
disabled: undefined;
|
|
34
|
+
editable: boolean;
|
|
35
|
+
effect: string;
|
|
36
|
+
clearable: boolean;
|
|
37
|
+
start: string;
|
|
38
|
+
end: string;
|
|
39
|
+
step: string;
|
|
40
|
+
prefixIcon: () => any;
|
|
41
|
+
clearIcon: () => any;
|
|
42
|
+
popperClass: string;
|
|
43
|
+
valueOnClear: undefined;
|
|
44
|
+
popperStyle: undefined;
|
|
45
|
+
}>>> & {
|
|
111
46
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
112
47
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
113
48
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
114
49
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
115
50
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
116
51
|
}, {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
end: string;
|
|
54
|
+
start: string;
|
|
55
|
+
effect: import("element-plus").PopperEffect;
|
|
56
|
+
valueOnClear: string | number | boolean | Function | null;
|
|
57
|
+
format: string;
|
|
58
|
+
clearIcon: string | import("vue").Component;
|
|
59
|
+
prefixIcon: string | import("vue").Component;
|
|
60
|
+
clearable: boolean;
|
|
61
|
+
popperClass: string;
|
|
62
|
+
popperStyle: string | import("vue").CSSProperties;
|
|
63
|
+
editable: boolean;
|
|
64
|
+
step: string;
|
|
130
65
|
}, {}>;
|
|
131
66
|
declare const _default: typeof __VLS_export;
|
|
132
67
|
export default _default;
|
|
68
|
+
type __VLS_TypePropsToOption<T> = {
|
|
69
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
70
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
71
|
+
} : {
|
|
72
|
+
type: import('vue').PropType<T[K]>;
|
|
73
|
+
required: true;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
type __VLS_WithDefaultsLocal<P, D> = {
|
|
77
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
78
|
+
default: D[K];
|
|
79
|
+
}> : P[K];
|
|
80
|
+
};
|
|
81
|
+
type __VLS_PrettifyLocal<T> = {
|
|
82
|
+
[K in keyof T as K]: T[K];
|
|
83
|
+
} & {};
|
|
@@ -3,7 +3,7 @@ import dayjs from 'dayjs';
|
|
|
3
3
|
import customParseFormat from 'dayjs/plugin/customParseFormat.js';
|
|
4
4
|
import { ElSelect } from '../../select/index.mjs';
|
|
5
5
|
import { ElIcon } from '../../icon/index.mjs';
|
|
6
|
-
import {
|
|
6
|
+
import { CircleClose, Clock } from '@element-plus/icons-vue';
|
|
7
7
|
import { parseTime, formatTime, compareTime, nextTime } from './utils.mjs';
|
|
8
8
|
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
|
9
9
|
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
@@ -15,7 +15,29 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
name: "ElTimeSelect"
|
|
16
16
|
},
|
|
17
17
|
__name: "time-select",
|
|
18
|
-
props:
|
|
18
|
+
props: {
|
|
19
|
+
format: { type: String, required: false, default: "HH:mm" },
|
|
20
|
+
modelValue: { type: [String, null], required: false },
|
|
21
|
+
disabled: { type: Boolean, required: false, default: void 0 },
|
|
22
|
+
editable: { type: Boolean, required: false, default: true },
|
|
23
|
+
effect: { type: null, required: false, default: "light" },
|
|
24
|
+
clearable: { type: Boolean, required: false, default: true },
|
|
25
|
+
size: { type: null, required: false },
|
|
26
|
+
placeholder: { type: String, required: false },
|
|
27
|
+
start: { type: String, required: false, default: "09:00" },
|
|
28
|
+
end: { type: String, required: false, default: "18:00" },
|
|
29
|
+
step: { type: String, required: false, default: "00:30" },
|
|
30
|
+
minTime: { type: [String, null], required: false },
|
|
31
|
+
maxTime: { type: [String, null], required: false },
|
|
32
|
+
includeEndTime: { type: Boolean, required: false },
|
|
33
|
+
name: { type: String, required: false },
|
|
34
|
+
prefixIcon: { type: null, required: false, default: () => Clock },
|
|
35
|
+
clearIcon: { type: null, required: false, default: () => CircleClose },
|
|
36
|
+
popperClass: { type: String, required: false, default: "" },
|
|
37
|
+
popperStyle: { type: [String, Object], required: false, default: void 0 },
|
|
38
|
+
emptyValues: { type: Array, required: false },
|
|
39
|
+
valueOnClear: { type: [String, Number, Boolean, Function, null], required: false, default: void 0 }
|
|
40
|
+
},
|
|
19
41
|
emits: [CHANGE_EVENT, "blur", "focus", "clear", UPDATE_MODEL_EVENT],
|
|
20
42
|
setup(__props, { expose: __expose }) {
|
|
21
43
|
dayjs.extend(customParseFormat);
|
|
@@ -94,17 +116,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
94
116
|
ref: select,
|
|
95
117
|
"model-value": value.value,
|
|
96
118
|
disabled: unref(_disabled),
|
|
97
|
-
clearable:
|
|
98
|
-
"clear-icon":
|
|
99
|
-
size:
|
|
100
|
-
effect:
|
|
101
|
-
placeholder:
|
|
119
|
+
clearable: __props.clearable,
|
|
120
|
+
"clear-icon": __props.clearIcon,
|
|
121
|
+
size: __props.size,
|
|
122
|
+
effect: __props.effect,
|
|
123
|
+
placeholder: __props.placeholder,
|
|
102
124
|
"default-first-option": "",
|
|
103
|
-
filterable:
|
|
104
|
-
"empty-values":
|
|
105
|
-
"value-on-clear":
|
|
106
|
-
"popper-class":
|
|
107
|
-
"popper-style":
|
|
125
|
+
filterable: __props.editable,
|
|
126
|
+
"empty-values": __props.emptyValues,
|
|
127
|
+
"value-on-clear": __props.valueOnClear,
|
|
128
|
+
"popper-class": __props.popperClass,
|
|
129
|
+
"popper-style": __props.popperStyle,
|
|
108
130
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = (event) => _ctx.$emit(unref(UPDATE_MODEL_EVENT), event)),
|
|
109
131
|
onChange: _cache[1] || (_cache[1] = (event) => _ctx.$emit(unref(CHANGE_EVENT), event)),
|
|
110
132
|
onBlur: _cache[2] || (_cache[2] = (event) => _ctx.$emit("blur", event)),
|
|
@@ -112,12 +134,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
134
|
onClear: _cache[4] || (_cache[4] = () => _ctx.$emit("clear"))
|
|
113
135
|
}, {
|
|
114
136
|
prefix: withCtx(() => [
|
|
115
|
-
|
|
137
|
+
__props.prefixIcon ? (openBlock(), createBlock(unref(ElIcon), {
|
|
116
138
|
key: 0,
|
|
117
139
|
class: normalizeClass(unref(nsInput).e("prefix-icon"))
|
|
118
140
|
}, {
|
|
119
141
|
default: withCtx(() => [
|
|
120
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
142
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.prefixIcon)))
|
|
121
143
|
]),
|
|
122
144
|
_: 1
|
|
123
145
|
/* STABLE */
|