@element-plus/nightly 0.0.20220831 → 0.0.20220903
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.full.js +869 -6231
- package/dist/index.full.min.js +37 -63
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +37 -63
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +871 -6232
- 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.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/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/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/affix/index.d.ts +1 -1
- package/es/components/affix/src/affix.vue.d.ts +1 -1
- package/es/components/alert/index.d.ts +2 -2
- package/es/components/alert/src/alert.vue.d.ts +2 -2
- package/es/components/autocomplete/index.d.ts +19 -19
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +19 -19
- package/es/components/avatar/index.d.ts +2 -2
- package/es/components/avatar/src/avatar.vue.d.ts +2 -2
- package/es/components/backtop/index.d.ts +2 -2
- package/es/components/backtop/src/backtop.vue.d.ts +2 -2
- package/es/components/badge/index.d.ts +1 -1
- package/es/components/badge/src/badge.vue.d.ts +1 -1
- package/es/components/breadcrumb/index.d.ts +5 -5
- package/es/components/breadcrumb/src/breadcrumb-item.vue.d.ts +2 -2
- package/es/components/breadcrumb/src/breadcrumb.vue.d.ts +1 -1
- package/es/components/button/index.d.ts +4 -4
- package/es/components/button/src/button-group.vue.d.ts +1 -1
- package/es/components/button/src/button.vue.d.ts +2 -2
- package/es/components/button/src/button2.mjs +1 -1
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/calendar/index.d.ts +10 -7
- package/es/components/calendar/src/calendar.vue.d.ts +10 -7
- package/es/components/calendar/src/calendar2.mjs +17 -7
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/calendar/src/date-table.vue.d.ts +2 -2
- package/es/components/calendar/src/date-table2.mjs +1 -1
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/card/index.d.ts +1 -1
- package/es/components/card/src/card.vue.d.ts +1 -1
- package/es/components/carousel/index.d.ts +4 -4
- package/es/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +2 -2
- package/es/components/cascader/index.d.ts +120 -120
- package/es/components/cascader/src/index.vue.d.ts +60 -60
- package/es/components/cascader-panel/index.d.ts +2 -2
- package/es/components/cascader-panel/index.mjs +1 -1
- package/es/components/cascader-panel/src/config.d.ts +1 -2
- package/es/components/cascader-panel/src/config.mjs +1 -2
- package/es/components/cascader-panel/src/config.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +2 -2
- package/es/components/cascader-panel/src/index.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.vue.d.ts +4 -4
- package/es/components/cascader-panel/src/menu.vue.d.ts +1 -1
- package/es/components/cascader-panel/src/node-content.d.ts +1 -1
- package/es/components/cascader-panel/src/node.d.ts +1 -4
- package/es/components/cascader-panel/src/node.mjs +1 -6
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/cascader-panel/src/node.vue.d.ts +1 -1
- package/es/components/cascader-panel/src/types.d.ts +2 -27
- package/es/components/cascader-panel/src/types.mjs +1 -6
- package/es/components/cascader-panel/src/types.mjs.map +1 -1
- package/es/components/check-tag/index.d.ts +1 -1
- package/es/components/check-tag/src/check-tag.vue.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +5 -5
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +1 -1
- package/es/components/checkbox/src/checkbox.vue.d.ts +1 -1
- package/es/components/col/index.d.ts +1 -1
- package/es/components/col/src/col.vue.d.ts +1 -1
- package/es/components/collapse/index.d.ts +7 -7
- package/es/components/collapse/src/collapse-item.vue.d.ts +3 -3
- package/es/components/collapse/src/collapse.vue.d.ts +1 -1
- package/es/components/collapse-transition/index.d.ts +2 -2
- package/es/components/collapse-transition/src/collapse-transition.vue.d.ts +1 -1
- package/es/components/color-picker/index.d.ts +14 -14
- package/es/components/color-picker/src/components/alpha-slider.vue.d.ts +1 -1
- package/es/components/color-picker/src/components/hue-slider.vue.d.ts +1 -1
- package/es/components/color-picker/src/components/predefine.vue.d.ts +1 -1
- package/es/components/color-picker/src/components/sv-panel.vue.d.ts +1 -1
- package/es/components/color-picker/src/index.vue.d.ts +7 -7
- package/es/components/container/index.d.ts +9 -9
- package/es/components/container/src/aside.vue.d.ts +1 -1
- package/es/components/container/src/container.vue.d.ts +1 -1
- package/es/components/container/src/footer.vue.d.ts +1 -1
- package/es/components/container/src/header.vue.d.ts +1 -1
- package/es/components/container/src/main.vue.d.ts +1 -1
- package/es/components/date-picker/src/composables/use-range-picker.d.ts +2 -2
- package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-month-table.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-year-table.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs +2 -0
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +59 -59
- package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs +4 -0
- package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +57 -57
- package/es/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +4 -4
- package/es/components/date-picker/src/date-picker.mjs +8 -0
- package/es/components/date-picker/src/date-picker.mjs.map +1 -1
- package/es/components/date-picker/src/panel-utils.d.ts +120 -120
- package/es/components/descriptions/index.d.ts +1 -1
- package/es/components/descriptions/index.mjs +2 -2
- package/es/components/descriptions/src/description.mjs +121 -26
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description.vue.d.ts +1 -1
- package/es/components/descriptions/src/description2.mjs +26 -121
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/dialog/index.d.ts +3 -3
- package/es/components/dialog/src/dialog-content.vue.d.ts +2 -2
- package/es/components/dialog/src/dialog.vue.d.ts +3 -3
- package/es/components/divider/index.d.ts +1 -1
- package/es/components/divider/src/divider.vue.d.ts +1 -1
- package/es/components/drawer/index.d.ts +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +1 -1
- package/es/components/dropdown/index.d.ts +9 -9
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +9 -9
- package/es/components/dropdown/src/dropdown2.mjs +1 -1
- package/es/components/empty/index.d.ts +2 -2
- package/es/components/empty/src/empty.vue.d.ts +2 -2
- package/es/components/empty/src/img-empty.vue.d.ts +1 -1
- package/es/components/form/index.d.ts +3 -3
- package/es/components/form/src/form-item.vue.d.ts +1 -1
- package/es/components/form/src/form.vue.d.ts +1 -1
- package/es/components/icon/index.d.ts +1 -1
- package/es/components/icon/src/icon.vue.d.ts +1 -1
- package/es/components/image/index.d.ts +3 -3
- package/es/components/image/src/image.vue.d.ts +3 -3
- package/es/components/image-viewer/index.d.ts +2 -2
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
- package/es/components/index.mjs +2 -2
- package/es/components/input/index.d.ts +3 -3
- package/es/components/input/src/input.vue.d.ts +3 -3
- package/es/components/input-number/index.d.ts +11 -11
- package/es/components/input-number/src/input-number.vue.d.ts +11 -11
- package/es/components/link/index.d.ts +2 -2
- package/es/components/link/src/link.vue.d.ts +2 -2
- package/es/components/menu/index.d.ts +6 -6
- package/es/components/menu/src/menu-item-group.vue.d.ts +1 -1
- package/es/components/menu/src/menu-item.vue.d.ts +2 -2
- package/es/components/message/src/message.vue.d.ts +3 -3
- package/es/components/message-box/src/index.vue.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +2 -2
- package/es/components/page-header/index.d.ts +3 -3
- package/es/components/page-header/src/page-header.vue.d.ts +3 -3
- package/es/components/pagination/src/components/jumper.vue.d.ts +4 -4
- package/es/components/pagination/src/components/next.vue.d.ts +1 -1
- package/es/components/pagination/src/components/pager.vue.d.ts +2 -2
- package/es/components/pagination/src/components/prev.vue.d.ts +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +13 -13
- package/es/components/pagination/src/components/total.vue.d.ts +1 -1
- package/es/components/popconfirm/index.d.ts +9 -9
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +9 -9
- package/es/components/popover/index.d.ts +5 -5
- package/es/components/popover/src/popover.vue.d.ts +5 -5
- package/es/components/popper/src/arrow.vue.d.ts +1 -1
- package/es/components/popper/src/content.vue.d.ts +1 -1
- package/es/components/progress/index.d.ts +2 -2
- package/es/components/progress/src/progress.vue.d.ts +2 -2
- package/es/components/radio/index.d.ts +5 -5
- package/es/components/radio/src/radio-button.vue.d.ts +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +1 -1
- package/es/components/radio/src/radio.vue.d.ts +1 -1
- package/es/components/rate/index.d.ts +2 -2
- package/es/components/rate/src/rate.vue.d.ts +2 -2
- package/es/components/result/index.d.ts +1 -1
- package/es/components/result/src/result.vue.d.ts +1 -1
- package/es/components/roving-focus-group/index.mjs +3 -3
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
- package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
- package/es/components/row/index.d.ts +1 -1
- package/es/components/row/src/row.vue.d.ts +1 -1
- package/es/components/scrollbar/index.d.ts +4 -4
- package/es/components/scrollbar/src/bar.vue.d.ts +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +4 -4
- package/es/components/scrollbar/src/thumb.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +13 -13
- package/es/components/select/src/option-group.vue.d.ts +1 -1
- package/es/components/select/src/option.vue.d.ts +1 -1
- package/es/components/select/src/select-dropdown.vue.d.ts +1 -1
- package/es/components/select/src/select.vue.d.ts +9 -9
- package/es/components/select/src/useSelect.d.ts +8 -8
- package/es/components/select-v2/index.d.ts +20 -20
- package/es/components/select-v2/src/group-item.vue.d.ts +1 -1
- package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +10 -10
- package/es/components/select-v2/src/useSelect.d.ts +10 -10
- package/es/components/select-v2/src/useSelect.mjs +2 -2
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/skeleton/index.d.ts +4 -4
- package/es/components/skeleton/src/skeleton-item.vue.d.ts +1 -1
- package/es/components/skeleton/src/skeleton.vue.d.ts +2 -2
- package/es/components/slider/index.d.ts +37 -37
- package/es/components/slider/src/button.vue.d.ts +5 -5
- package/es/components/slider/src/composables/use-slide.d.ts +20 -20
- package/es/components/slider/src/slider.vue.d.ts +37 -37
- package/es/components/steps/index.d.ts +5 -5
- package/es/components/steps/src/item.vue.d.ts +2 -2
- package/es/components/steps/src/steps.vue.d.ts +1 -1
- package/es/components/switch/index.d.ts +2 -2
- package/es/components/switch/src/switch.vue.d.ts +2 -2
- package/es/components/table/index.d.ts +2 -2
- package/es/components/table/src/filter-panel.vue.d.ts +9 -9
- package/es/components/table/src/store/watcher.mjs.map +1 -1
- package/es/components/table/src/table/utils-helper.d.ts +1 -1
- package/es/components/table/src/table/utils-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/index.d.ts +1 -1
- package/es/components/table/src/table-footer/index.d.ts +1 -1
- package/es/components/table/src/table-header/index.d.ts +1 -1
- package/es/components/table/src/table.vue.d.ts +2 -2
- package/es/components/table-v2/src/table-v2.mjs +10 -7
- package/es/components/table-v2/src/table-v2.mjs.map +1 -1
- package/es/components/tabs/index.d.ts +2 -2
- package/es/components/tabs/src/tab-bar.vue.d.ts +1 -1
- package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/es/components/tag/index.d.ts +2 -2
- package/es/components/tag/src/tag.vue.d.ts +2 -2
- package/es/components/teleport/index.d.ts +1 -1
- package/es/components/teleport/src/teleport.vue.d.ts +1 -1
- package/es/components/time-picker/src/common/picker.mjs +10 -2
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +13 -11
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +38 -38
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +47 -47
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +48 -48
- package/es/components/time-picker/src/time-picker.mjs +8 -0
- package/es/components/time-picker/src/time-picker.mjs.map +1 -1
- package/es/components/time-select/index.d.ts +50 -50
- package/es/components/time-select/src/time-select.vue.d.ts +25 -25
- package/es/components/timeline/index.d.ts +4 -4
- package/es/components/timeline/src/timeline-item.vue.d.ts +2 -2
- package/es/components/tooltip/index.d.ts +4 -4
- package/es/components/tooltip/src/content.vue.d.ts +2 -2
- package/es/components/tooltip/src/tooltip.vue.d.ts +4 -4
- package/es/components/tooltip/src/trigger.vue.d.ts +1 -1
- package/es/components/tooltip-v2/index.d.ts +3 -3
- package/es/components/tooltip-v2/src/arrow.vue.d.ts +1 -1
- package/es/components/tooltip-v2/src/content.vue.d.ts +1 -1
- package/es/components/tooltip-v2/src/root.vue.d.ts +1 -1
- package/es/components/tooltip-v2/src/tooltip.vue.d.ts +3 -3
- package/es/components/transfer/index.d.ts +45 -45
- package/es/components/transfer/src/transfer-panel.vue.d.ts +8 -8
- package/es/components/transfer/src/transfer-panel2.mjs +5 -1
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer.vue.d.ts +45 -45
- package/es/components/tree/index.d.ts +2 -2
- package/es/components/tree/src/tree-node-content.mjs +3 -1
- package/es/components/tree/src/tree-node-content.mjs.map +1 -1
- package/es/components/tree/src/tree-node.vue.d.ts +1 -1
- package/es/components/tree/src/tree.mjs +13 -0
- package/es/components/tree/src/tree.mjs.map +1 -1
- package/es/components/tree/src/tree.vue.d.ts +1 -1
- package/es/components/tree-select/src/tree-select-option.d.ts +6 -6
- package/es/components/tree-v2/index.d.ts +1 -1
- package/es/components/tree-v2/src/composables/useTree.mjs +2 -2
- package/es/components/tree-v2/src/composables/useTree.mjs.map +1 -1
- package/es/components/tree-v2/src/tree-node.vue.d.ts +1 -1
- package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/es/components/upload/index.d.ts +12 -12
- package/es/components/upload/src/upload-content.vue.d.ts +2 -2
- package/es/components/upload/src/upload-dragger.vue.d.ts +1 -1
- package/es/components/upload/src/upload-list.vue.d.ts +6 -6
- package/es/components/upload/src/upload.vue.d.ts +12 -12
- package/es/components/upload/src/upload2.mjs +4 -5
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/components/virtual-list/src/builders/build-list.d.ts +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +1 -1
- package/es/hooks/use-lockscreen/index.mjs +6 -4
- package/es/hooks/use-lockscreen/index.mjs.map +1 -1
- package/es/hooks/use-namespace/index.d.ts +1 -1
- package/es/hooks/use-namespace/index.mjs +8 -10
- package/es/hooks/use-namespace/index.mjs.map +1 -1
- package/es/index.mjs +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/global.d.ts +1 -0
- package/lib/components/affix/index.d.ts +1 -1
- package/lib/components/affix/src/affix.vue.d.ts +1 -1
- package/lib/components/alert/index.d.ts +2 -2
- package/lib/components/alert/src/alert.vue.d.ts +2 -2
- package/lib/components/autocomplete/index.d.ts +19 -19
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +19 -19
- package/lib/components/avatar/index.d.ts +2 -2
- package/lib/components/avatar/src/avatar.vue.d.ts +2 -2
- package/lib/components/backtop/index.d.ts +2 -2
- package/lib/components/backtop/src/backtop.vue.d.ts +2 -2
- package/lib/components/badge/index.d.ts +1 -1
- package/lib/components/badge/src/badge.vue.d.ts +1 -1
- package/lib/components/breadcrumb/index.d.ts +5 -5
- package/lib/components/breadcrumb/src/breadcrumb-item.vue.d.ts +2 -2
- package/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +1 -1
- package/lib/components/button/index.d.ts +4 -4
- package/lib/components/button/src/button-group.vue.d.ts +1 -1
- package/lib/components/button/src/button.vue.d.ts +2 -2
- package/lib/components/button/src/button2.js +1 -1
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/calendar/index.d.ts +10 -7
- package/lib/components/calendar/src/calendar.vue.d.ts +10 -7
- package/lib/components/calendar/src/calendar2.js +21 -11
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/calendar/src/date-table.vue.d.ts +2 -2
- package/lib/components/calendar/src/date-table2.js +1 -1
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/card/index.d.ts +1 -1
- package/lib/components/card/src/card.vue.d.ts +1 -1
- package/lib/components/carousel/index.d.ts +4 -4
- package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +2 -2
- package/lib/components/cascader/index.d.ts +120 -120
- package/lib/components/cascader/src/index.vue.d.ts +60 -60
- package/lib/components/cascader-panel/index.d.ts +2 -2
- package/lib/components/cascader-panel/index.js +0 -1
- package/lib/components/cascader-panel/index.js.map +1 -1
- package/lib/components/cascader-panel/src/config.d.ts +1 -2
- package/lib/components/cascader-panel/src/config.js +1 -2
- package/lib/components/cascader-panel/src/config.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +1 -1
- package/lib/components/cascader-panel/src/index.js.map +1 -1
- package/lib/components/cascader-panel/src/index.vue.d.ts +4 -4
- package/lib/components/cascader-panel/src/menu.vue.d.ts +1 -1
- package/lib/components/cascader-panel/src/node-content.d.ts +1 -1
- package/lib/components/cascader-panel/src/node.d.ts +1 -4
- package/lib/components/cascader-panel/src/node.js +0 -6
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/cascader-panel/src/node.vue.d.ts +1 -1
- package/lib/components/cascader-panel/src/types.d.ts +2 -27
- package/lib/components/cascader-panel/src/types.js +0 -6
- package/lib/components/cascader-panel/src/types.js.map +1 -1
- package/lib/components/check-tag/index.d.ts +1 -1
- package/lib/components/check-tag/src/check-tag.vue.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +5 -5
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox.vue.d.ts +1 -1
- package/lib/components/col/index.d.ts +1 -1
- package/lib/components/col/src/col.vue.d.ts +1 -1
- package/lib/components/collapse/index.d.ts +7 -7
- package/lib/components/collapse/src/collapse-item.vue.d.ts +3 -3
- package/lib/components/collapse/src/collapse.vue.d.ts +1 -1
- package/lib/components/collapse-transition/index.d.ts +2 -2
- package/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +1 -1
- package/lib/components/color-picker/index.d.ts +14 -14
- package/lib/components/color-picker/src/components/alpha-slider.vue.d.ts +1 -1
- package/lib/components/color-picker/src/components/hue-slider.vue.d.ts +1 -1
- package/lib/components/color-picker/src/components/predefine.vue.d.ts +1 -1
- package/lib/components/color-picker/src/components/sv-panel.vue.d.ts +1 -1
- package/lib/components/color-picker/src/index.vue.d.ts +7 -7
- package/lib/components/container/index.d.ts +9 -9
- package/lib/components/container/src/aside.vue.d.ts +1 -1
- package/lib/components/container/src/container.vue.d.ts +1 -1
- package/lib/components/container/src/footer.vue.d.ts +1 -1
- package/lib/components/container/src/header.vue.d.ts +1 -1
- package/lib/components/container/src/main.vue.d.ts +1 -1
- package/lib/components/date-picker/src/composables/use-range-picker.d.ts +2 -2
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.js +2 -2
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-year-table.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js +2 -0
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +59 -59
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.js +4 -0
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +57 -57
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +4 -4
- package/lib/components/date-picker/src/date-picker.js +8 -0
- package/lib/components/date-picker/src/date-picker.js.map +1 -1
- package/lib/components/date-picker/src/panel-utils.d.ts +120 -120
- package/lib/components/descriptions/index.d.ts +1 -1
- package/lib/components/descriptions/index.js +2 -2
- package/lib/components/descriptions/src/description.js +121 -26
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description.vue.d.ts +1 -1
- package/lib/components/descriptions/src/description2.js +26 -121
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/dialog/index.d.ts +3 -3
- package/lib/components/dialog/src/dialog-content.vue.d.ts +2 -2
- package/lib/components/dialog/src/dialog.vue.d.ts +3 -3
- package/lib/components/divider/index.d.ts +1 -1
- package/lib/components/divider/src/divider.vue.d.ts +1 -1
- package/lib/components/drawer/index.d.ts +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +1 -1
- package/lib/components/dropdown/index.d.ts +9 -9
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +9 -9
- package/lib/components/dropdown/src/dropdown2.js +1 -1
- package/lib/components/empty/index.d.ts +2 -2
- package/lib/components/empty/src/empty.vue.d.ts +2 -2
- package/lib/components/empty/src/img-empty.vue.d.ts +1 -1
- package/lib/components/form/index.d.ts +3 -3
- package/lib/components/form/src/form-item.vue.d.ts +1 -1
- package/lib/components/form/src/form.vue.d.ts +1 -1
- package/lib/components/icon/index.d.ts +1 -1
- package/lib/components/icon/src/icon.vue.d.ts +1 -1
- package/lib/components/image/index.d.ts +3 -3
- package/lib/components/image/src/image.vue.d.ts +3 -3
- package/lib/components/image-viewer/index.d.ts +2 -2
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
- package/lib/components/index.js +1 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/index.d.ts +3 -3
- package/lib/components/input/src/input.vue.d.ts +3 -3
- package/lib/components/input-number/index.d.ts +11 -11
- package/lib/components/input-number/src/input-number.vue.d.ts +11 -11
- package/lib/components/link/index.d.ts +2 -2
- package/lib/components/link/src/link.vue.d.ts +2 -2
- package/lib/components/menu/index.d.ts +6 -6
- package/lib/components/menu/src/menu-item-group.vue.d.ts +1 -1
- package/lib/components/menu/src/menu-item.vue.d.ts +2 -2
- package/lib/components/message/src/message.vue.d.ts +3 -3
- package/lib/components/message-box/src/index.vue.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +2 -2
- package/lib/components/page-header/index.d.ts +3 -3
- package/lib/components/page-header/src/page-header.vue.d.ts +3 -3
- package/lib/components/pagination/src/components/jumper.vue.d.ts +4 -4
- package/lib/components/pagination/src/components/next.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/pager.vue.d.ts +2 -2
- package/lib/components/pagination/src/components/prev.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +13 -13
- package/lib/components/pagination/src/components/total.vue.d.ts +1 -1
- package/lib/components/popconfirm/index.d.ts +9 -9
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +9 -9
- package/lib/components/popover/index.d.ts +5 -5
- package/lib/components/popover/src/popover.vue.d.ts +5 -5
- package/lib/components/popper/src/arrow.vue.d.ts +1 -1
- package/lib/components/popper/src/content.vue.d.ts +1 -1
- package/lib/components/progress/index.d.ts +2 -2
- package/lib/components/progress/src/progress.vue.d.ts +2 -2
- package/lib/components/radio/index.d.ts +5 -5
- package/lib/components/radio/src/radio-button.vue.d.ts +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +1 -1
- package/lib/components/radio/src/radio.vue.d.ts +1 -1
- package/lib/components/rate/index.d.ts +2 -2
- package/lib/components/rate/src/rate.vue.d.ts +2 -2
- package/lib/components/result/index.d.ts +1 -1
- package/lib/components/result/src/result.vue.d.ts +1 -1
- package/lib/components/roving-focus-group/index.js +2 -2
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
- package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
- package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
- package/lib/components/row/index.d.ts +1 -1
- package/lib/components/row/src/row.vue.d.ts +1 -1
- package/lib/components/scrollbar/index.d.ts +4 -4
- package/lib/components/scrollbar/src/bar.vue.d.ts +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +4 -4
- package/lib/components/scrollbar/src/thumb.vue.d.ts +1 -1
- package/lib/components/select/index.d.ts +13 -13
- package/lib/components/select/src/option-group.vue.d.ts +1 -1
- package/lib/components/select/src/option.vue.d.ts +1 -1
- package/lib/components/select/src/select-dropdown.vue.d.ts +1 -1
- package/lib/components/select/src/select.vue.d.ts +9 -9
- package/lib/components/select/src/useSelect.d.ts +8 -8
- package/lib/components/select-v2/index.d.ts +20 -20
- package/lib/components/select-v2/src/group-item.vue.d.ts +1 -1
- package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +10 -10
- package/lib/components/select-v2/src/useSelect.d.ts +10 -10
- package/lib/components/select-v2/src/useSelect.js +1 -1
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/skeleton/index.d.ts +4 -4
- package/lib/components/skeleton/src/skeleton-item.vue.d.ts +1 -1
- package/lib/components/skeleton/src/skeleton.vue.d.ts +2 -2
- package/lib/components/slider/index.d.ts +37 -37
- package/lib/components/slider/src/button.vue.d.ts +5 -5
- package/lib/components/slider/src/composables/use-slide.d.ts +20 -20
- package/lib/components/slider/src/slider.vue.d.ts +37 -37
- package/lib/components/steps/index.d.ts +5 -5
- package/lib/components/steps/src/item.vue.d.ts +2 -2
- package/lib/components/steps/src/steps.vue.d.ts +1 -1
- package/lib/components/switch/index.d.ts +2 -2
- package/lib/components/switch/src/switch.vue.d.ts +2 -2
- package/lib/components/table/index.d.ts +2 -2
- package/lib/components/table/src/filter-panel.vue.d.ts +9 -9
- package/lib/components/table/src/store/watcher.js.map +1 -1
- package/lib/components/table/src/table/utils-helper.d.ts +1 -1
- package/lib/components/table/src/table/utils-helper.js.map +1 -1
- package/lib/components/table/src/table-body/index.d.ts +1 -1
- package/lib/components/table/src/table-footer/index.d.ts +1 -1
- package/lib/components/table/src/table-header/index.d.ts +1 -1
- package/lib/components/table/src/table.vue.d.ts +2 -2
- package/lib/components/table-v2/src/table-v2.js +10 -7
- package/lib/components/table-v2/src/table-v2.js.map +1 -1
- package/lib/components/tabs/index.d.ts +2 -2
- package/lib/components/tabs/src/tab-bar.vue.d.ts +1 -1
- package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/lib/components/tag/index.d.ts +2 -2
- package/lib/components/tag/src/tag.vue.d.ts +2 -2
- package/lib/components/teleport/index.d.ts +1 -1
- package/lib/components/teleport/src/teleport.vue.d.ts +1 -1
- package/lib/components/time-picker/src/common/picker.js +10 -2
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +13 -11
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +38 -38
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +47 -47
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +48 -48
- package/lib/components/time-picker/src/time-picker.js +8 -0
- package/lib/components/time-picker/src/time-picker.js.map +1 -1
- package/lib/components/time-select/index.d.ts +50 -50
- package/lib/components/time-select/src/time-select.vue.d.ts +25 -25
- package/lib/components/timeline/index.d.ts +4 -4
- package/lib/components/timeline/src/timeline-item.vue.d.ts +2 -2
- package/lib/components/tooltip/index.d.ts +4 -4
- package/lib/components/tooltip/src/content.vue.d.ts +2 -2
- package/lib/components/tooltip/src/tooltip.vue.d.ts +4 -4
- package/lib/components/tooltip/src/trigger.vue.d.ts +1 -1
- package/lib/components/tooltip-v2/index.d.ts +3 -3
- package/lib/components/tooltip-v2/src/arrow.vue.d.ts +1 -1
- package/lib/components/tooltip-v2/src/content.vue.d.ts +1 -1
- package/lib/components/tooltip-v2/src/root.vue.d.ts +1 -1
- package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +3 -3
- package/lib/components/transfer/index.d.ts +45 -45
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +8 -8
- package/lib/components/transfer/src/transfer-panel2.js +5 -1
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer.vue.d.ts +45 -45
- package/lib/components/tree/index.d.ts +2 -2
- package/lib/components/tree/src/tree-node-content.js +3 -1
- package/lib/components/tree/src/tree-node-content.js.map +1 -1
- package/lib/components/tree/src/tree-node.vue.d.ts +1 -1
- package/lib/components/tree/src/tree.js +13 -0
- package/lib/components/tree/src/tree.js.map +1 -1
- package/lib/components/tree/src/tree.vue.d.ts +1 -1
- package/lib/components/tree-select/src/tree-select-option.d.ts +6 -6
- package/lib/components/tree-v2/index.d.ts +1 -1
- package/lib/components/tree-v2/src/composables/useTree.js +2 -2
- package/lib/components/tree-v2/src/composables/useTree.js.map +1 -1
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +1 -1
- package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/lib/components/upload/index.d.ts +12 -12
- package/lib/components/upload/src/upload-content.vue.d.ts +2 -2
- package/lib/components/upload/src/upload-dragger.vue.d.ts +1 -1
- package/lib/components/upload/src/upload-list.vue.d.ts +6 -6
- package/lib/components/upload/src/upload.vue.d.ts +12 -12
- package/lib/components/upload/src/upload2.js +3 -4
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/components/virtual-list/src/builders/build-list.d.ts +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +1 -1
- package/lib/hooks/use-lockscreen/index.js +6 -4
- package/lib/hooks/use-lockscreen/index.js.map +1 -1
- package/lib/hooks/use-namespace/index.d.ts +1 -1
- package/lib/hooks/use-namespace/index.js +8 -10
- package/lib/hooks/use-namespace/index.js.map +1 -1
- package/lib/index.js +1 -2
- 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/web-types.json +1 -1
|
@@ -46,7 +46,7 @@ declare const component: import("vue").DefineComponent<{}, any, {}, {}, {
|
|
|
46
46
|
};
|
|
47
47
|
}>>, {
|
|
48
48
|
ns: {
|
|
49
|
-
namespace: import("vue").
|
|
49
|
+
namespace: import("vue").Ref<string>;
|
|
50
50
|
b: (blockSuffix?: string) => string;
|
|
51
51
|
e: (element?: string | undefined) => string;
|
|
52
52
|
m: (modifier?: string | undefined) => string;
|
|
@@ -114,7 +114,7 @@ declare const component: import("vue").DefineComponent<{}, any, {}, {}, {
|
|
|
114
114
|
};
|
|
115
115
|
}>> & import("vue").ShallowUnwrapRef<{
|
|
116
116
|
ns: {
|
|
117
|
-
namespace: import("vue").
|
|
117
|
+
namespace: import("vue").Ref<string>;
|
|
118
118
|
b: (blockSuffix?: string) => string;
|
|
119
119
|
e: (element?: string | undefined) => string;
|
|
120
120
|
m: (modifier?: string | undefined) => string;
|
|
@@ -163,7 +163,7 @@ declare const component: import("vue").DefineComponent<{}, any, {}, {}, {
|
|
|
163
163
|
};
|
|
164
164
|
}>>, {
|
|
165
165
|
ns: {
|
|
166
|
-
namespace: import("vue").
|
|
166
|
+
namespace: import("vue").Ref<string>;
|
|
167
167
|
b: (blockSuffix?: string) => string;
|
|
168
168
|
e: (element?: string | undefined) => string;
|
|
169
169
|
m: (modifier?: string | undefined) => string;
|
|
@@ -245,7 +245,7 @@ declare const component: import("vue").DefineComponent<{}, any, {}, {}, {
|
|
|
245
245
|
};
|
|
246
246
|
}>>, {
|
|
247
247
|
ns: {
|
|
248
|
-
namespace: import("vue").
|
|
248
|
+
namespace: import("vue").Ref<string>;
|
|
249
249
|
b: (blockSuffix?: string) => string;
|
|
250
250
|
e: (element?: string | undefined) => string;
|
|
251
251
|
m: (modifier?: string | undefined) => string;
|
|
@@ -313,7 +313,7 @@ declare const component: import("vue").DefineComponent<{}, any, {}, {}, {
|
|
|
313
313
|
};
|
|
314
314
|
}>> & import("vue").ShallowUnwrapRef<{
|
|
315
315
|
ns: {
|
|
316
|
-
namespace: import("vue").
|
|
316
|
+
namespace: import("vue").Ref<string>;
|
|
317
317
|
b: (blockSuffix?: string) => string;
|
|
318
318
|
e: (element?: string | undefined) => string;
|
|
319
319
|
m: (modifier?: string | undefined) => string;
|
|
@@ -362,7 +362,7 @@ declare const component: import("vue").DefineComponent<{}, any, {}, {}, {
|
|
|
362
362
|
};
|
|
363
363
|
}>>, {
|
|
364
364
|
ns: {
|
|
365
|
-
namespace: import("vue").
|
|
365
|
+
namespace: import("vue").Ref<string>;
|
|
366
366
|
b: (blockSuffix?: string) => string;
|
|
367
367
|
e: (element?: string | undefined) => string;
|
|
368
368
|
m: (modifier?: string | undefined) => string;
|
|
@@ -44,7 +44,7 @@ export declare const ElTreeV2: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
44
44
|
}, {
|
|
45
45
|
t: import("../..").Translator;
|
|
46
46
|
ns: {
|
|
47
|
-
namespace: import("vue").
|
|
47
|
+
namespace: import("vue").Ref<string>;
|
|
48
48
|
b: (blockSuffix?: string) => string;
|
|
49
49
|
e: (element?: string | undefined) => string;
|
|
50
50
|
m: (modifier?: string | undefined) => string;
|
|
@@ -179,8 +179,8 @@ function useTree(props, emit) {
|
|
|
179
179
|
if (tree.value && props.accordion) {
|
|
180
180
|
const { treeNodeMap } = tree.value;
|
|
181
181
|
keySet.forEach((key) => {
|
|
182
|
-
const
|
|
183
|
-
if (
|
|
182
|
+
const treeNode = treeNodeMap.get(key);
|
|
183
|
+
if (node && node.level === treeNode.level) {
|
|
184
184
|
keySet.delete(key);
|
|
185
185
|
}
|
|
186
186
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTree.mjs","sources":["../../../../../../../packages/components/tree-v2/src/composables/useTree.ts"],"sourcesContent":["// @ts-nocheck\nimport { computed, nextTick, ref, shallowRef, watch } from 'vue'\nimport { isObject } from '@element-plus/utils'\nimport {\n CURRENT_CHANGE,\n NODE_CLICK,\n NODE_COLLAPSE,\n NODE_EXPAND,\n TreeOptionsEnum,\n} from '../virtual-tree'\nimport { useCheck } from './useCheck'\nimport { useFilter } from './useFilter'\nimport type {\n Tree,\n TreeData,\n TreeKey,\n TreeNode,\n TreeNodeData,\n TreeProps,\n} from '../types'\n\nexport function useTree(props: TreeProps, emit) {\n const expandedKeySet = ref<Set<TreeKey>>(new Set(props.defaultExpandedKeys))\n const currentKey = ref<TreeKey | undefined>()\n const tree = shallowRef<Tree | undefined>()\n\n watch(\n () => props.currentNodeKey,\n (key) => {\n currentKey.value = key\n },\n {\n immediate: true,\n }\n )\n\n watch(\n () => props.data,\n (data: TreeData) => {\n setData(data)\n },\n {\n immediate: true,\n }\n )\n\n const {\n isIndeterminate,\n isChecked,\n toggleCheckbox,\n getCheckedKeys,\n getCheckedNodes,\n getHalfCheckedKeys,\n getHalfCheckedNodes,\n setChecked,\n setCheckedKeys,\n } = useCheck(props, tree)\n\n const { doFilter, hiddenNodeKeySet, isForceHiddenExpandIcon } = useFilter(\n props,\n tree\n )\n\n const valueKey = computed(() => {\n return props.props?.value || TreeOptionsEnum.KEY\n })\n const childrenKey = computed(() => {\n return props.props?.children || TreeOptionsEnum.CHILDREN\n })\n const disabledKey = computed(() => {\n return props.props?.disabled || TreeOptionsEnum.DISABLED\n })\n const labelKey = computed(() => {\n return props.props?.label || TreeOptionsEnum.LABEL\n })\n\n const flattenTree = computed(() => {\n const expandedKeys = expandedKeySet.value\n const hiddenKeys = hiddenNodeKeySet.value\n const flattenNodes: TreeNode[] = []\n const nodes = (tree.value && tree.value.treeNodes) || []\n function traverse() {\n const stack: TreeNode[] = []\n for (let i = nodes.length - 1; i >= 0; --i) {\n stack.push(nodes[i])\n }\n while (stack.length) {\n const node = stack.pop()\n if (!node) continue\n if (!hiddenKeys.has(node.key)) {\n flattenNodes.push(node)\n }\n // Only \"visible\" nodes will be rendered\n if (expandedKeys.has(node.key)) {\n const children = node.children\n if (children) {\n const length = children.length\n for (let i = length - 1; i >= 0; --i) {\n stack.push(children[i])\n }\n }\n }\n }\n }\n traverse()\n return flattenNodes\n })\n\n const isNotEmpty = computed(() => {\n return flattenTree.value.length > 0\n })\n\n function createTree(data: TreeData): Tree {\n const treeNodeMap: Map<TreeKey, TreeNode> = new Map()\n const levelTreeNodeMap: Map<number, TreeNode[]> = new Map()\n let maxLevel = 1\n function traverse(\n nodes: TreeData,\n level = 1,\n parent: TreeNode | undefined = undefined\n ) {\n const siblings: TreeNode[] = []\n for (const rawNode of nodes) {\n const value = getKey(rawNode)\n const node: TreeNode = {\n level,\n key: value,\n data: rawNode,\n }\n node.label = getLabel(rawNode)\n node.parent = parent\n const children = getChildren(rawNode)\n node.disabled = getDisabled(rawNode)\n node.isLeaf = !children || children.length === 0\n if (children && children.length) {\n node.children = traverse(children, level + 1, node)\n }\n siblings.push(node)\n treeNodeMap.set(value, node)\n if (!levelTreeNodeMap.has(level)) {\n levelTreeNodeMap.set(level, [])\n }\n levelTreeNodeMap.get(level)?.push(node)\n }\n if (level > maxLevel) {\n maxLevel = level\n }\n return siblings\n }\n const treeNodes: TreeNode[] = traverse(data)\n return {\n treeNodeMap,\n levelTreeNodeMap,\n maxLevel,\n treeNodes,\n }\n }\n\n function filter(query: string) {\n const keys = doFilter(query)\n if (keys) {\n expandedKeySet.value = keys\n }\n }\n\n function getChildren(node: TreeNodeData): TreeNodeData[] {\n return node[childrenKey.value]\n }\n\n function getKey(node: TreeNodeData): TreeKey {\n if (!node) {\n return ''\n }\n return node[valueKey.value]\n }\n\n function getDisabled(node: TreeNodeData): boolean {\n return node[disabledKey.value]\n }\n\n function getLabel(node: TreeNodeData): string {\n return node[labelKey.value]\n }\n\n function toggleExpand(node: TreeNode) {\n const expandedKeys = expandedKeySet.value\n if (expandedKeys.has(node.key)) {\n collapseNode(node)\n } else {\n expandNode(node)\n }\n }\n\n function setExpandedKeys(keys: TreeKey[]) {\n expandedKeySet.value = new Set(keys)\n }\n\n function handleNodeClick(node: TreeNode, e: MouseEvent) {\n emit(NODE_CLICK, node.data, node, e)\n handleCurrentChange(node)\n if (props.expandOnClickNode) {\n toggleExpand(node)\n }\n if (props.showCheckbox && props.checkOnClickNode && !node.disabled) {\n toggleCheckbox(node, !isChecked(node), true)\n }\n }\n\n function handleCurrentChange(node: TreeNode) {\n if (!isCurrent(node)) {\n currentKey.value = node.key\n emit(CURRENT_CHANGE, node.data, node)\n }\n }\n\n function handleNodeCheck(node: TreeNode, checked: boolean) {\n toggleCheckbox(node, checked)\n }\n\n function expandNode(node: TreeNode) {\n const keySet = expandedKeySet.value\n if (tree.value && props.accordion) {\n // whether only one node among the same level can be expanded at one time\n const { treeNodeMap } = tree.value\n keySet.forEach((key) => {\n const node = treeNodeMap.get(key)\n if (node && node.level === node.level) {\n keySet.delete(key)\n }\n })\n }\n keySet.add(node.key)\n emit(NODE_EXPAND, node.data, node)\n }\n\n function collapseNode(node: TreeNode) {\n expandedKeySet.value.delete(node.key)\n emit(NODE_COLLAPSE, node.data, node)\n }\n\n function isExpanded(node: TreeNode): boolean {\n return expandedKeySet.value.has(node.key)\n }\n\n function isDisabled(node: TreeNode): boolean {\n return !!node.disabled\n }\n\n function isCurrent(node: TreeNode): boolean {\n const current = currentKey.value\n return !!current && current === node.key\n }\n\n function getCurrentNode(): TreeNodeData | undefined {\n if (!currentKey.value) return undefined\n return tree.value?.treeNodeMap.get(currentKey.value)?.data\n }\n\n function getCurrentKey(): TreeKey | undefined {\n return currentKey.value\n }\n\n function setCurrentKey(key: TreeKey): void {\n currentKey.value = key\n }\n\n function setData(data: TreeData) {\n nextTick(() => (tree.value = createTree(data)))\n }\n\n function getNode(data: TreeKey | TreeNodeData) {\n const key = isObject(data) ? getKey(data) : data\n return tree.value?.treeNodeMap.get(key)\n }\n\n return {\n tree,\n flattenTree,\n isNotEmpty,\n getKey,\n getChildren,\n toggleExpand,\n toggleCheckbox,\n isExpanded,\n isChecked,\n isIndeterminate,\n isDisabled,\n isCurrent,\n isForceHiddenExpandIcon,\n handleNodeClick,\n handleNodeCheck,\n // expose\n getCurrentNode,\n getCurrentKey,\n setCurrentKey,\n getCheckedKeys,\n getCheckedNodes,\n getHalfCheckedKeys,\n getHalfCheckedNodes,\n setChecked,\n setCheckedKeys,\n filter,\n setData,\n getNode,\n expandNode,\n collapseNode,\n setExpandedKeys,\n }\n}\n"],"names":[],"mappings":";;;;;;;AAWO,SAAS,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE;AACrC,EAAE,MAAM,cAAc,GAAG,GAAG,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC;AACjE,EAAE,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC;AAC3B,EAAE,MAAM,IAAI,GAAG,UAAU,EAAE,CAAC;AAC5B,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,cAAc,EAAE,CAAC,GAAG,KAAK;AAC7C,IAAI,UAAU,CAAC,KAAK,GAAG,GAAG,CAAC;AAC3B,GAAG,EAAE;AACL,IAAI,SAAS,EAAE,IAAI;AACnB,GAAG,CAAC,CAAC;AACL,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,KAAK;AACpC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;AAClB,GAAG,E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
1
|
+
{"version":3,"file":"useTree.mjs","sources":["../../../../../../../packages/components/tree-v2/src/composables/useTree.ts"],"sourcesContent":["// @ts-nocheck\nimport { computed, nextTick, ref, shallowRef, watch } from 'vue'\nimport { isObject } from '@element-plus/utils'\nimport {\n CURRENT_CHANGE,\n NODE_CLICK,\n NODE_COLLAPSE,\n NODE_EXPAND,\n TreeOptionsEnum,\n} from '../virtual-tree'\nimport { useCheck } from './useCheck'\nimport { useFilter } from './useFilter'\nimport type {\n Tree,\n TreeData,\n TreeKey,\n TreeNode,\n TreeNodeData,\n TreeProps,\n} from '../types'\n\nexport function useTree(props: TreeProps, emit) {\n const expandedKeySet = ref<Set<TreeKey>>(new Set(props.defaultExpandedKeys))\n const currentKey = ref<TreeKey | undefined>()\n const tree = shallowRef<Tree | undefined>()\n\n watch(\n () => props.currentNodeKey,\n (key) => {\n currentKey.value = key\n },\n {\n immediate: true,\n }\n )\n\n watch(\n () => props.data,\n (data: TreeData) => {\n setData(data)\n },\n {\n immediate: true,\n }\n )\n\n const {\n isIndeterminate,\n isChecked,\n toggleCheckbox,\n getCheckedKeys,\n getCheckedNodes,\n getHalfCheckedKeys,\n getHalfCheckedNodes,\n setChecked,\n setCheckedKeys,\n } = useCheck(props, tree)\n\n const { doFilter, hiddenNodeKeySet, isForceHiddenExpandIcon } = useFilter(\n props,\n tree\n )\n\n const valueKey = computed(() => {\n return props.props?.value || TreeOptionsEnum.KEY\n })\n const childrenKey = computed(() => {\n return props.props?.children || TreeOptionsEnum.CHILDREN\n })\n const disabledKey = computed(() => {\n return props.props?.disabled || TreeOptionsEnum.DISABLED\n })\n const labelKey = computed(() => {\n return props.props?.label || TreeOptionsEnum.LABEL\n })\n\n const flattenTree = computed(() => {\n const expandedKeys = expandedKeySet.value\n const hiddenKeys = hiddenNodeKeySet.value\n const flattenNodes: TreeNode[] = []\n const nodes = (tree.value && tree.value.treeNodes) || []\n function traverse() {\n const stack: TreeNode[] = []\n for (let i = nodes.length - 1; i >= 0; --i) {\n stack.push(nodes[i])\n }\n while (stack.length) {\n const node = stack.pop()\n if (!node) continue\n if (!hiddenKeys.has(node.key)) {\n flattenNodes.push(node)\n }\n // Only \"visible\" nodes will be rendered\n if (expandedKeys.has(node.key)) {\n const children = node.children\n if (children) {\n const length = children.length\n for (let i = length - 1; i >= 0; --i) {\n stack.push(children[i])\n }\n }\n }\n }\n }\n traverse()\n return flattenNodes\n })\n\n const isNotEmpty = computed(() => {\n return flattenTree.value.length > 0\n })\n\n function createTree(data: TreeData): Tree {\n const treeNodeMap: Map<TreeKey, TreeNode> = new Map()\n const levelTreeNodeMap: Map<number, TreeNode[]> = new Map()\n let maxLevel = 1\n function traverse(\n nodes: TreeData,\n level = 1,\n parent: TreeNode | undefined = undefined\n ) {\n const siblings: TreeNode[] = []\n for (const rawNode of nodes) {\n const value = getKey(rawNode)\n const node: TreeNode = {\n level,\n key: value,\n data: rawNode,\n }\n node.label = getLabel(rawNode)\n node.parent = parent\n const children = getChildren(rawNode)\n node.disabled = getDisabled(rawNode)\n node.isLeaf = !children || children.length === 0\n if (children && children.length) {\n node.children = traverse(children, level + 1, node)\n }\n siblings.push(node)\n treeNodeMap.set(value, node)\n if (!levelTreeNodeMap.has(level)) {\n levelTreeNodeMap.set(level, [])\n }\n levelTreeNodeMap.get(level)?.push(node)\n }\n if (level > maxLevel) {\n maxLevel = level\n }\n return siblings\n }\n const treeNodes: TreeNode[] = traverse(data)\n return {\n treeNodeMap,\n levelTreeNodeMap,\n maxLevel,\n treeNodes,\n }\n }\n\n function filter(query: string) {\n const keys = doFilter(query)\n if (keys) {\n expandedKeySet.value = keys\n }\n }\n\n function getChildren(node: TreeNodeData): TreeNodeData[] {\n return node[childrenKey.value]\n }\n\n function getKey(node: TreeNodeData): TreeKey {\n if (!node) {\n return ''\n }\n return node[valueKey.value]\n }\n\n function getDisabled(node: TreeNodeData): boolean {\n return node[disabledKey.value]\n }\n\n function getLabel(node: TreeNodeData): string {\n return node[labelKey.value]\n }\n\n function toggleExpand(node: TreeNode) {\n const expandedKeys = expandedKeySet.value\n if (expandedKeys.has(node.key)) {\n collapseNode(node)\n } else {\n expandNode(node)\n }\n }\n\n function setExpandedKeys(keys: TreeKey[]) {\n expandedKeySet.value = new Set(keys)\n }\n\n function handleNodeClick(node: TreeNode, e: MouseEvent) {\n emit(NODE_CLICK, node.data, node, e)\n handleCurrentChange(node)\n if (props.expandOnClickNode) {\n toggleExpand(node)\n }\n if (props.showCheckbox && props.checkOnClickNode && !node.disabled) {\n toggleCheckbox(node, !isChecked(node), true)\n }\n }\n\n function handleCurrentChange(node: TreeNode) {\n if (!isCurrent(node)) {\n currentKey.value = node.key\n emit(CURRENT_CHANGE, node.data, node)\n }\n }\n\n function handleNodeCheck(node: TreeNode, checked: boolean) {\n toggleCheckbox(node, checked)\n }\n\n function expandNode(node: TreeNode) {\n const keySet = expandedKeySet.value\n if (tree.value && props.accordion) {\n // whether only one node among the same level can be expanded at one time\n const { treeNodeMap } = tree.value\n keySet.forEach((key) => {\n const treeNode = treeNodeMap.get(key)\n if (node && node.level === treeNode.level) {\n keySet.delete(key)\n }\n })\n }\n keySet.add(node.key)\n emit(NODE_EXPAND, node.data, node)\n }\n\n function collapseNode(node: TreeNode) {\n expandedKeySet.value.delete(node.key)\n emit(NODE_COLLAPSE, node.data, node)\n }\n\n function isExpanded(node: TreeNode): boolean {\n return expandedKeySet.value.has(node.key)\n }\n\n function isDisabled(node: TreeNode): boolean {\n return !!node.disabled\n }\n\n function isCurrent(node: TreeNode): boolean {\n const current = currentKey.value\n return !!current && current === node.key\n }\n\n function getCurrentNode(): TreeNodeData | undefined {\n if (!currentKey.value) return undefined\n return tree.value?.treeNodeMap.get(currentKey.value)?.data\n }\n\n function getCurrentKey(): TreeKey | undefined {\n return currentKey.value\n }\n\n function setCurrentKey(key: TreeKey): void {\n currentKey.value = key\n }\n\n function setData(data: TreeData) {\n nextTick(() => (tree.value = createTree(data)))\n }\n\n function getNode(data: TreeKey | TreeNodeData) {\n const key = isObject(data) ? getKey(data) : data\n return tree.value?.treeNodeMap.get(key)\n }\n\n return {\n tree,\n flattenTree,\n isNotEmpty,\n getKey,\n getChildren,\n toggleExpand,\n toggleCheckbox,\n isExpanded,\n isChecked,\n isIndeterminate,\n isDisabled,\n isCurrent,\n isForceHiddenExpandIcon,\n handleNodeClick,\n handleNodeCheck,\n // expose\n getCurrentNode,\n getCurrentKey,\n setCurrentKey,\n getCheckedKeys,\n getCheckedNodes,\n getHalfCheckedKeys,\n getHalfCheckedNodes,\n setChecked,\n setCheckedKeys,\n filter,\n setData,\n getNode,\n expandNode,\n collapseNode,\n setExpandedKeys,\n }\n}\n"],"names":[],"mappings":";;;;;;;AAWO,SAAS,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE;AACrC,EAAE,MAAM,cAAc,GAAG,GAAG,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC;AACjE,EAAE,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC;AAC3B,EAAE,MAAM,IAAI,GAAG,UAAU,EAAE,CAAC;AAC5B,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,cAAc,EAAE,CAAC,GAAG,KAAK;AAC7C,IAAI,UAAU,CAAC,KAAK,GAAG,GAAG,CAAC;AAC3B,GAAG,EAAE;AACL,IAAI,SAAS,EAAE,IAAI;AACnB,GAAG,CAAC,CAAC;AACL,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,KAAK;AACpC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;AAClB,GAAG,EAAE;AACL,IAAI,SAAS,EAAE,IAAI;AACnB,GAAG,CAAC,CAAC;AACL,EAAE,MAAM;AACR,IAAI,eAAe;AACnB,IAAI,SAAS;AACb,IAAI,cAAc;AAClB,IAAI,cAAc;AAClB,IAAI,eAAe;AACnB,IAAI,kBAAkB;AACtB,IAAI,mBAAmB;AACvB,IAAI,UAAU;AACd,IAAI,cAAc;AAClB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MAAM,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;AAClD,GAAG;AACH,EAAE,SAAS,OAAO,CAAC,IAAI,EAAE;AACzB,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AACrD,IAAI,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACxE,GAAG;AACH,EAAE,OAAO;AACT,IAAI,IAAI;AACR,IAAI,WAAW;AACf,IAAI,UAAU;AACd,IAAI,MAAM;AACV,IAAI,WAAW;AACf,IAAI,YAAY;AAChB,IAAI,cAAc;AAClB,IAAI,UAAU;AACd,IAAI,SAAS;AACb,IAAI,eAAe;AACnB,IAAI,UAAU;AACd,IAAI,SAAS;AACb,IAAI,uBAAuB;AAC3B,IAAI,eAAe;AACnB,IAAI,eAAe;AACnB,IAAI,cAAc;AAClB,IAAI,aAAa;AACjB,IAAI,aAAa;AACjB,IAAI,cAAc;AAClB,IAAI,eAAe;AACnB,IAAI,kBAAkB;AACtB,IAAI,mBAAmB;AACvB,IAAI,UAAU;AACd,IAAI,cAAc;AAClB,IAAI,MAAM;AACV,IAAI,OAAO;AACX,IAAI,OAAO;AACX,IAAI,UAAU;AACd,IAAI,YAAY;AAChB,IAAI,eAAe;AACnB,GAAG,CAAC;AACJ;;;;"}
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
readonly hiddenExpandIcon: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
14
14
|
}, {
|
|
15
15
|
ns: {
|
|
16
|
-
namespace: import("vue").
|
|
16
|
+
namespace: import("vue").Ref<string>;
|
|
17
17
|
b: (blockSuffix?: string) => string;
|
|
18
18
|
e: (element?: string | undefined) => string;
|
|
19
19
|
m: (modifier?: string | undefined) => string;
|
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
}, {
|
|
45
45
|
t: import("element-plus/es/hooks").Translator;
|
|
46
46
|
ns: {
|
|
47
|
-
namespace: import("vue").
|
|
47
|
+
namespace: import("vue").Ref<string>;
|
|
48
48
|
b: (blockSuffix?: string) => string;
|
|
49
49
|
e: (element?: string | undefined) => string;
|
|
50
50
|
m: (modifier?: string | undefined) => string;
|
|
@@ -552,7 +552,7 @@ export declare const ElUpload: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
552
552
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
553
553
|
}>>;
|
|
554
554
|
ns: {
|
|
555
|
-
namespace: import("vue").
|
|
555
|
+
namespace: import("vue").Ref<string>;
|
|
556
556
|
b: (blockSuffix?: string) => string;
|
|
557
557
|
e: (element?: string | undefined) => string;
|
|
558
558
|
m: (modifier?: string | undefined) => string;
|
|
@@ -590,7 +590,7 @@ export declare const ElUpload: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
590
590
|
emit: (event: "file", file: File[]) => void;
|
|
591
591
|
uploaderContext: import("../..").UploadContext;
|
|
592
592
|
ns: {
|
|
593
|
-
namespace: import("vue").
|
|
593
|
+
namespace: import("vue").Ref<string>;
|
|
594
594
|
b: (blockSuffix?: string) => string;
|
|
595
595
|
e: (element?: string | undefined) => string;
|
|
596
596
|
m: (modifier?: string | undefined) => string;
|
|
@@ -855,7 +855,7 @@ export declare const ElUpload: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
855
855
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
856
856
|
}>>;
|
|
857
857
|
ns: {
|
|
858
|
-
namespace: import("vue").
|
|
858
|
+
namespace: import("vue").Ref<string>;
|
|
859
859
|
b: (blockSuffix?: string) => string;
|
|
860
860
|
e: (element?: string | undefined) => string;
|
|
861
861
|
m: (modifier?: string | undefined) => string;
|
|
@@ -893,7 +893,7 @@ export declare const ElUpload: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
893
893
|
emit: (event: "file", file: File[]) => void;
|
|
894
894
|
uploaderContext: import("../..").UploadContext;
|
|
895
895
|
ns: {
|
|
896
|
-
namespace: import("vue").
|
|
896
|
+
namespace: import("vue").Ref<string>;
|
|
897
897
|
b: (blockSuffix?: string) => string;
|
|
898
898
|
e: (element?: string | undefined) => string;
|
|
899
899
|
m: (modifier?: string | undefined) => string;
|
|
@@ -983,7 +983,7 @@ export declare const ElUpload: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
983
983
|
emit: (event: "remove", file: import("./src/upload").UploadFile) => void;
|
|
984
984
|
t: import("../..").Translator;
|
|
985
985
|
nsUpload: {
|
|
986
|
-
namespace: import("vue").
|
|
986
|
+
namespace: import("vue").Ref<string>;
|
|
987
987
|
b: (blockSuffix?: string) => string;
|
|
988
988
|
e: (element?: string | undefined) => string;
|
|
989
989
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1001,7 +1001,7 @@ export declare const ElUpload: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
1001
1001
|
cssVarBlockName: (name: string) => string;
|
|
1002
1002
|
};
|
|
1003
1003
|
nsIcon: {
|
|
1004
|
-
namespace: import("vue").
|
|
1004
|
+
namespace: import("vue").Ref<string>;
|
|
1005
1005
|
b: (blockSuffix?: string) => string;
|
|
1006
1006
|
e: (element?: string | undefined) => string;
|
|
1007
1007
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1019,7 +1019,7 @@ export declare const ElUpload: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
1019
1019
|
cssVarBlockName: (name: string) => string;
|
|
1020
1020
|
};
|
|
1021
1021
|
nsList: {
|
|
1022
|
-
namespace: import("vue").
|
|
1022
|
+
namespace: import("vue").Ref<string>;
|
|
1023
1023
|
b: (blockSuffix?: string) => string;
|
|
1024
1024
|
e: (element?: string | undefined) => string;
|
|
1025
1025
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1069,7 +1069,7 @@ export declare const ElUpload: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
1069
1069
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
1070
1070
|
}>>;
|
|
1071
1071
|
ns: {
|
|
1072
|
-
namespace: import("vue").
|
|
1072
|
+
namespace: import("vue").Ref<string>;
|
|
1073
1073
|
b: (blockSuffix?: string) => string;
|
|
1074
1074
|
e: (element?: string | undefined) => string;
|
|
1075
1075
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1160,7 +1160,7 @@ export declare const ElUpload: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
1160
1160
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
1161
1161
|
}>>;
|
|
1162
1162
|
ns: {
|
|
1163
|
-
namespace: import("vue").
|
|
1163
|
+
namespace: import("vue").Ref<string>;
|
|
1164
1164
|
b: (blockSuffix?: string) => string;
|
|
1165
1165
|
e: (element?: string | undefined) => string;
|
|
1166
1166
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1223,7 +1223,7 @@ export declare const ElUpload: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
1223
1223
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
1224
1224
|
}>>;
|
|
1225
1225
|
ns: {
|
|
1226
|
-
namespace: import("vue").
|
|
1226
|
+
namespace: import("vue").Ref<string>;
|
|
1227
1227
|
b: (blockSuffix?: string) => string;
|
|
1228
1228
|
e: (element?: string | undefined) => string;
|
|
1229
1229
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1506,7 +1506,7 @@ export declare const ElUpload: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
1506
1506
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
1507
1507
|
}>>;
|
|
1508
1508
|
ns: {
|
|
1509
|
-
namespace: import("vue").
|
|
1509
|
+
namespace: import("vue").Ref<string>;
|
|
1510
1510
|
b: (blockSuffix?: string) => string;
|
|
1511
1511
|
e: (element?: string | undefined) => string;
|
|
1512
1512
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1544,7 +1544,7 @@ export declare const ElUpload: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
1544
1544
|
emit: (event: "file", file: File[]) => void;
|
|
1545
1545
|
uploaderContext: import("../..").UploadContext;
|
|
1546
1546
|
ns: {
|
|
1547
|
-
namespace: import("vue").
|
|
1547
|
+
namespace: import("vue").Ref<string>;
|
|
1548
1548
|
b: (blockSuffix?: string) => string;
|
|
1549
1549
|
e: (element?: string | undefined) => string;
|
|
1550
1550
|
m: (modifier?: string | undefined) => string;
|
|
@@ -192,7 +192,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
192
192
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
193
193
|
}>>;
|
|
194
194
|
ns: {
|
|
195
|
-
namespace: import("vue").
|
|
195
|
+
namespace: import("vue").Ref<string>;
|
|
196
196
|
b: (blockSuffix?: string) => string;
|
|
197
197
|
e: (element?: string | undefined) => string;
|
|
198
198
|
m: (modifier?: string | undefined) => string;
|
|
@@ -230,7 +230,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
230
230
|
emit: (event: "file", file: File[]) => void;
|
|
231
231
|
uploaderContext: import("../../..").UploadContext;
|
|
232
232
|
ns: {
|
|
233
|
-
namespace: import("vue").
|
|
233
|
+
namespace: import("vue").Ref<string>;
|
|
234
234
|
b: (blockSuffix?: string) => string;
|
|
235
235
|
e: (element?: string | undefined) => string;
|
|
236
236
|
m: (modifier?: string | undefined) => string;
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
emit: (event: "file", file: File[]) => void;
|
|
11
11
|
uploaderContext: import("element-plus/es/tokens").UploadContext;
|
|
12
12
|
ns: {
|
|
13
|
-
namespace: import("vue").
|
|
13
|
+
namespace: import("vue").Ref<string>;
|
|
14
14
|
b: (blockSuffix?: string) => string;
|
|
15
15
|
e: (element?: string | undefined) => string;
|
|
16
16
|
m: (modifier?: string | undefined) => string;
|
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
emit: (event: "remove", file: UploadFile) => void;
|
|
17
17
|
t: import("element-plus/es/hooks").Translator;
|
|
18
18
|
nsUpload: {
|
|
19
|
-
namespace: import("vue").
|
|
19
|
+
namespace: import("vue").Ref<string>;
|
|
20
20
|
b: (blockSuffix?: string) => string;
|
|
21
21
|
e: (element?: string | undefined) => string;
|
|
22
22
|
m: (modifier?: string | undefined) => string;
|
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
cssVarBlockName: (name: string) => string;
|
|
35
35
|
};
|
|
36
36
|
nsIcon: {
|
|
37
|
-
namespace: import("vue").
|
|
37
|
+
namespace: import("vue").Ref<string>;
|
|
38
38
|
b: (blockSuffix?: string) => string;
|
|
39
39
|
e: (element?: string | undefined) => string;
|
|
40
40
|
m: (modifier?: string | undefined) => string;
|
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
cssVarBlockName: (name: string) => string;
|
|
53
53
|
};
|
|
54
54
|
nsList: {
|
|
55
|
-
namespace: import("vue").
|
|
55
|
+
namespace: import("vue").Ref<string>;
|
|
56
56
|
b: (blockSuffix?: string) => string;
|
|
57
57
|
e: (element?: string | undefined) => string;
|
|
58
58
|
m: (modifier?: string | undefined) => string;
|
|
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
102
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
103
103
|
}>>;
|
|
104
104
|
ns: {
|
|
105
|
-
namespace: import("vue").
|
|
105
|
+
namespace: import("vue").Ref<string>;
|
|
106
106
|
b: (blockSuffix?: string) => string;
|
|
107
107
|
e: (element?: string | undefined) => string;
|
|
108
108
|
m: (modifier?: string | undefined) => string;
|
|
@@ -193,7 +193,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
193
193
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
194
194
|
}>>;
|
|
195
195
|
ns: {
|
|
196
|
-
namespace: import("vue").
|
|
196
|
+
namespace: import("vue").Ref<string>;
|
|
197
197
|
b: (blockSuffix?: string) => string;
|
|
198
198
|
e: (element?: string | undefined) => string;
|
|
199
199
|
m: (modifier?: string | undefined) => string;
|
|
@@ -256,7 +256,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
256
256
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
257
257
|
}>>;
|
|
258
258
|
ns: {
|
|
259
|
-
namespace: import("vue").
|
|
259
|
+
namespace: import("vue").Ref<string>;
|
|
260
260
|
b: (blockSuffix?: string) => string;
|
|
261
261
|
e: (element?: string | undefined) => string;
|
|
262
262
|
m: (modifier?: string | undefined) => string;
|
|
@@ -553,7 +553,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
553
553
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
554
554
|
}>>;
|
|
555
555
|
ns: {
|
|
556
|
-
namespace: import("vue").
|
|
556
|
+
namespace: import("vue").Ref<string>;
|
|
557
557
|
b: (blockSuffix?: string) => string;
|
|
558
558
|
e: (element?: string | undefined) => string;
|
|
559
559
|
m: (modifier?: string | undefined) => string;
|
|
@@ -591,7 +591,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
591
591
|
emit: (event: "file", file: File[]) => void;
|
|
592
592
|
uploaderContext: import("element-plus/es/tokens").UploadContext;
|
|
593
593
|
ns: {
|
|
594
|
-
namespace: import("vue").
|
|
594
|
+
namespace: import("vue").Ref<string>;
|
|
595
595
|
b: (blockSuffix?: string) => string;
|
|
596
596
|
e: (element?: string | undefined) => string;
|
|
597
597
|
m: (modifier?: string | undefined) => string;
|
|
@@ -856,7 +856,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
856
856
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
857
857
|
}>>;
|
|
858
858
|
ns: {
|
|
859
|
-
namespace: import("vue").
|
|
859
|
+
namespace: import("vue").Ref<string>;
|
|
860
860
|
b: (blockSuffix?: string) => string;
|
|
861
861
|
e: (element?: string | undefined) => string;
|
|
862
862
|
m: (modifier?: string | undefined) => string;
|
|
@@ -894,7 +894,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
894
894
|
emit: (event: "file", file: File[]) => void;
|
|
895
895
|
uploaderContext: import("element-plus/es/tokens").UploadContext;
|
|
896
896
|
ns: {
|
|
897
|
-
namespace: import("vue").
|
|
897
|
+
namespace: import("vue").Ref<string>;
|
|
898
898
|
b: (blockSuffix?: string) => string;
|
|
899
899
|
e: (element?: string | undefined) => string;
|
|
900
900
|
m: (modifier?: string | undefined) => string;
|
|
@@ -984,7 +984,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
984
984
|
emit: (event: "remove", file: import("./upload").UploadFile) => void;
|
|
985
985
|
t: import("element-plus/es/hooks").Translator;
|
|
986
986
|
nsUpload: {
|
|
987
|
-
namespace: import("vue").
|
|
987
|
+
namespace: import("vue").Ref<string>;
|
|
988
988
|
b: (blockSuffix?: string) => string;
|
|
989
989
|
e: (element?: string | undefined) => string;
|
|
990
990
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1002,7 +1002,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1002
1002
|
cssVarBlockName: (name: string) => string;
|
|
1003
1003
|
};
|
|
1004
1004
|
nsIcon: {
|
|
1005
|
-
namespace: import("vue").
|
|
1005
|
+
namespace: import("vue").Ref<string>;
|
|
1006
1006
|
b: (blockSuffix?: string) => string;
|
|
1007
1007
|
e: (element?: string | undefined) => string;
|
|
1008
1008
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1020,7 +1020,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1020
1020
|
cssVarBlockName: (name: string) => string;
|
|
1021
1021
|
};
|
|
1022
1022
|
nsList: {
|
|
1023
|
-
namespace: import("vue").
|
|
1023
|
+
namespace: import("vue").Ref<string>;
|
|
1024
1024
|
b: (blockSuffix?: string) => string;
|
|
1025
1025
|
e: (element?: string | undefined) => string;
|
|
1026
1026
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1070,7 +1070,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1070
1070
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
1071
1071
|
}>>;
|
|
1072
1072
|
ns: {
|
|
1073
|
-
namespace: import("vue").
|
|
1073
|
+
namespace: import("vue").Ref<string>;
|
|
1074
1074
|
b: (blockSuffix?: string) => string;
|
|
1075
1075
|
e: (element?: string | undefined) => string;
|
|
1076
1076
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1161,7 +1161,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1161
1161
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
1162
1162
|
}>>;
|
|
1163
1163
|
ns: {
|
|
1164
|
-
namespace: import("vue").
|
|
1164
|
+
namespace: import("vue").Ref<string>;
|
|
1165
1165
|
b: (blockSuffix?: string) => string;
|
|
1166
1166
|
e: (element?: string | undefined) => string;
|
|
1167
1167
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1224,7 +1224,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1224
1224
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
1225
1225
|
}>>;
|
|
1226
1226
|
ns: {
|
|
1227
|
-
namespace: import("vue").
|
|
1227
|
+
namespace: import("vue").Ref<string>;
|
|
1228
1228
|
b: (blockSuffix?: string) => string;
|
|
1229
1229
|
e: (element?: string | undefined) => string;
|
|
1230
1230
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1507,7 +1507,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1507
1507
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
1508
1508
|
}>>;
|
|
1509
1509
|
ns: {
|
|
1510
|
-
namespace: import("vue").
|
|
1510
|
+
namespace: import("vue").Ref<string>;
|
|
1511
1511
|
b: (blockSuffix?: string) => string;
|
|
1512
1512
|
e: (element?: string | undefined) => string;
|
|
1513
1513
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1545,7 +1545,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1545
1545
|
emit: (event: "file", file: File[]) => void;
|
|
1546
1546
|
uploaderContext: import("element-plus/es/tokens").UploadContext;
|
|
1547
1547
|
ns: {
|
|
1548
|
-
namespace: import("vue").
|
|
1548
|
+
namespace: import("vue").Ref<string>;
|
|
1549
1549
|
b: (blockSuffix?: string) => string;
|
|
1550
1550
|
e: (element?: string | undefined) => string;
|
|
1551
1551
|
m: (modifier?: string | undefined) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useSlots, shallowRef, computed, onBeforeUnmount, provide, toRef, openBlock, createElementBlock, unref, createBlock, createSlots, withCtx, mergeProps, renderSlot, createCommentVNode } from 'vue';
|
|
1
|
+
import { defineComponent, useSlots, shallowRef, computed, onBeforeUnmount, provide, toRef, openBlock, createElementBlock, unref, createBlock, createSlots, withCtx, createVNode, mergeProps, renderSlot, createCommentVNode } from 'vue';
|
|
2
2
|
import '../../../tokens/index.mjs';
|
|
3
3
|
import '../../../hooks/index.mjs';
|
|
4
4
|
import UploadList from './upload-list2.mjs';
|
|
@@ -68,8 +68,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
68
|
onRemove: unref(handleRemove)
|
|
69
69
|
}, createSlots({
|
|
70
70
|
append: withCtx(() => [
|
|
71
|
-
|
|
72
|
-
key: 0,
|
|
71
|
+
createVNode(UploadContent, mergeProps({
|
|
73
72
|
ref_key: "uploadRef",
|
|
74
73
|
ref: uploadRef
|
|
75
74
|
}, unref(uploadContentProps)), {
|
|
@@ -78,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
77
|
!unref(slots).trigger && unref(slots).default ? renderSlot(_ctx.$slots, "default", { key: 1 }) : createCommentVNode("v-if", true)
|
|
79
78
|
]),
|
|
80
79
|
_: 3
|
|
81
|
-
}, 16)
|
|
80
|
+
}, 16)
|
|
82
81
|
]),
|
|
83
82
|
_: 2
|
|
84
83
|
}, [
|
|
@@ -89,7 +88,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
89
88
|
])
|
|
90
89
|
} : void 0
|
|
91
90
|
]), 1032, ["disabled", "list-type", "files", "handle-preview", "onRemove"])) : createCommentVNode("v-if", true),
|
|
92
|
-
_ctx.
|
|
91
|
+
!unref(isPictureCard) || unref(isPictureCard) && !_ctx.showFileList ? (openBlock(), createBlock(UploadContent, mergeProps({
|
|
93
92
|
key: 1,
|
|
94
93
|
ref_key: "uploadRef",
|
|
95
94
|
ref: uploadRef
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload2.mjs","sources":["../../../../../../packages/components/upload/src/upload.vue"],"sourcesContent":["<template>\n <div>\n <upload-list\n v-if=\"isPictureCard && showFileList\"\n :disabled=\"disabled\"\n :list-type=\"listType\"\n :files=\"uploadFiles\"\n :handle-preview=\"onPreview\"\n @remove=\"handleRemove\"\n >\n <template v-if=\"$slots.file\" #default=\"{ file }\">\n <slot name=\"file\" :file=\"file\" />\n </template>\n <template #append>\n <upload-content
|
|
1
|
+
{"version":3,"file":"upload2.mjs","sources":["../../../../../../packages/components/upload/src/upload.vue"],"sourcesContent":["<template>\n <div>\n <upload-list\n v-if=\"isPictureCard && showFileList\"\n :disabled=\"disabled\"\n :list-type=\"listType\"\n :files=\"uploadFiles\"\n :handle-preview=\"onPreview\"\n @remove=\"handleRemove\"\n >\n <template v-if=\"$slots.file\" #default=\"{ file }\">\n <slot name=\"file\" :file=\"file\" />\n </template>\n <template #append>\n <upload-content ref=\"uploadRef\" v-bind=\"uploadContentProps\">\n <slot v-if=\"slots.trigger\" name=\"trigger\" />\n <slot v-if=\"!slots.trigger && slots.default\" />\n </upload-content>\n </template>\n </upload-list>\n\n <upload-content\n v-if=\"!isPictureCard || (isPictureCard && !showFileList)\"\n ref=\"uploadRef\"\n v-bind=\"uploadContentProps\"\n >\n <slot v-if=\"slots.trigger\" name=\"trigger\" />\n <slot v-if=\"!slots.trigger && slots.default\" />\n </upload-content>\n\n <slot v-if=\"$slots.trigger\" />\n <slot name=\"tip\" />\n <upload-list\n v-if=\"!isPictureCard && showFileList\"\n :disabled=\"disabled\"\n :list-type=\"listType\"\n :files=\"uploadFiles\"\n :handle-preview=\"onPreview\"\n @remove=\"handleRemove\"\n >\n <template v-if=\"$slots.file\" #default=\"{ file }\">\n <slot name=\"file\" :file=\"file\" />\n </template>\n </upload-list>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n onBeforeUnmount,\n provide,\n shallowRef,\n toRef,\n useSlots,\n} from 'vue'\nimport { uploadContextKey } from '@element-plus/tokens'\nimport { useDisabled } from '@element-plus/hooks'\n\nimport UploadList from './upload-list.vue'\nimport UploadContent from './upload-content.vue'\nimport { useHandlers } from './use-handlers'\nimport { uploadProps } from './upload'\nimport type {\n UploadContentInstance,\n UploadContentProps,\n} from './upload-content'\n\ndefineOptions({\n name: 'ElUpload',\n})\n\nconst props = defineProps(uploadProps)\n\nconst slots = useSlots()\nconst disabled = useDisabled()\n\nconst uploadRef = shallowRef<UploadContentInstance>()\nconst {\n abort,\n submit,\n clearFiles,\n uploadFiles,\n handleStart,\n handleError,\n handleRemove,\n handleSuccess,\n handleProgress,\n} = useHandlers(props, uploadRef)\n\nconst isPictureCard = computed(() => props.listType === 'picture-card')\n\nconst uploadContentProps = computed<UploadContentProps>(() => ({\n ...props,\n fileList: uploadFiles.value,\n onStart: handleStart,\n onProgress: handleProgress,\n onSuccess: handleSuccess,\n onError: handleError,\n onRemove: handleRemove,\n}))\n\nonBeforeUnmount(() => {\n uploadFiles.value.forEach(({ url }) => {\n if (url?.startsWith('blob:')) URL.revokeObjectURL(url)\n })\n})\n\nprovide(uploadContextKey, {\n accept: toRef(props, 'accept'),\n})\n\ndefineExpose({\n /** @description cancel upload request */\n abort,\n /** @description upload the file list manually */\n submit,\n /** @description clear the file list */\n clearFiles,\n /** @description select the file manually */\n handleStart,\n /** @description remove the file manually */\n handleRemove,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AA0EA,IAAA,MAAA,QAAA,QAAA,EAAA,CAAA;AACA,IAAA,MAAA,WAAA,WAAA,EAAA,CAAA;AAEA,IAAA,MAAA,YAAA,UAAA,EAAA,CAAA;AACA,IAAA,MAAA;AAAA,MACA,KAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA;AAAA,MACA,WAAA;AAAA,MACA,WAAA;AAAA,MACA,YAAA;AAAA,MACA,aAAA;AAAA,MACA,cAAA;AAAA,KACA,GAAA,WAAA,CAAA,OAAA,SAAA,CAAA,CAAA;AAEA,IAAA,MAAA,aAAA,GAAA,QAAA,CAAA,MAAA,KAAA,CAAA,aAAA,cAAA,CAAA,CAAA;AAEA,IAAA,MAAA,kBAAA,GAAA,SAAA,OAAA;AAAA,MACA,GAAA,KAAA;AAAA,MACA,UAAA,WAAA,CAAA,KAAA;AAAA,MACA,OAAA,EAAA,WAAA;AAAA,MACA,UAAA,EAAA,cAAA;AAAA,MACA,SAAA,EAAA,aAAA;AAAA,MACA,OAAA,EAAA,WAAA;AAAA,MACA,QAAA,EAAA,YAAA;AAAA,KACA,CAAA,CAAA,CAAA;AAEA,IAAA,eAAA,CAAA,MAAA;AACA,MAAA,WAAA,CAAA,KAAA,CAAA,OAAA,CAAA,CAAA,EAAA,GAAA,EAAA,KAAA;AACA,QAAA,IAAA,GAAA,gBAAA,CAAA,GAAA,GAAA,CAAA,UAAA,CAAA,OAAA,CAAA;AAAA,UAAA,GAAA,CAAA,gBAAA,GAAA,CAAA,CAAA;AAAA,OACA,CAAA,CAAA;AAAA,KACA,CAAA,CAAA;AAEA,IAAA,OAAA,CAAA,gBAAA,EAAA;AAAA,MACA,MAAA,EAAA,KAAA,CAAA,KAAA,EAAA,QAAA,CAAA;AAAA,KACA,CAAA,CAAA;AAEA,IAAA,MAAA,CAAA;AAAA,MAEA,KAAA;AAAA,MAEA,MAAA;AAAA,MAEA,UAAA;AAAA,MAEA,WAAA;AAAA,MAEA,YAAA;AAAA,KACA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -51,7 +51,7 @@ declare const createList: ({ name, getOffset, getItemSize, getItemOffset, getEst
|
|
|
51
51
|
};
|
|
52
52
|
}, {
|
|
53
53
|
ns: {
|
|
54
|
-
namespace: import("vue").
|
|
54
|
+
namespace: import("vue").Ref<string>;
|
|
55
55
|
b: (blockSuffix?: string) => string;
|
|
56
56
|
e: (element?: string | undefined) => string;
|
|
57
57
|
m: (modifier?: string | undefined) => string;
|
|
@@ -49,7 +49,7 @@ declare const DynamicSizeList: import("vue").DefineComponent<{
|
|
|
49
49
|
};
|
|
50
50
|
}, {
|
|
51
51
|
ns: {
|
|
52
|
-
namespace: import("vue").
|
|
52
|
+
namespace: import("vue").Ref<string>;
|
|
53
53
|
b: (blockSuffix?: string) => string;
|
|
54
54
|
e: (element?: string | undefined) => string;
|
|
55
55
|
m: (modifier?: string | undefined) => string;
|
|
@@ -48,7 +48,7 @@ declare const FixedSizeList: import("vue").DefineComponent<{
|
|
|
48
48
|
};
|
|
49
49
|
}, {
|
|
50
50
|
ns: {
|
|
51
|
-
namespace: import("vue").
|
|
51
|
+
namespace: import("vue").Ref<string>;
|
|
52
52
|
b: (blockSuffix?: string) => string;
|
|
53
53
|
e: (element?: string | undefined) => string;
|
|
54
54
|
m: (modifier?: string | undefined) => string;
|
|
@@ -20,10 +20,12 @@ const useLockscreen = (trigger) => {
|
|
|
20
20
|
let withoutHiddenClass = false;
|
|
21
21
|
let bodyWidth = "0";
|
|
22
22
|
const cleanup = () => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
setTimeout(() => {
|
|
24
|
+
removeClass(document.body, hiddenCls.value);
|
|
25
|
+
if (withoutHiddenClass) {
|
|
26
|
+
document.body.style.width = bodyWidth;
|
|
27
|
+
}
|
|
28
|
+
}, 200);
|
|
27
29
|
};
|
|
28
30
|
watch(trigger, (val) => {
|
|
29
31
|
if (!val) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-lockscreen/index.ts"],"sourcesContent":["import { isRef, onScopeDispose, watch } from 'vue'\
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-lockscreen/index.ts"],"sourcesContent":["import { isRef, onScopeDispose, watch } from 'vue'\nimport { computed } from '@vue/reactivity'\nimport { isClient } from '@vueuse/core'\nimport {\n addClass,\n getScrollBarWidth,\n getStyle,\n hasClass,\n removeClass,\n throwError,\n} from '@element-plus/utils'\nimport { useNamespace } from '../use-namespace'\n\nimport type { Ref } from 'vue'\n\n/**\n * Hook that monitoring the ref value to lock or unlock the screen.\n * When the trigger became true, it assumes modal is now opened and vice versa.\n * @param trigger {Ref<boolean>}\n */\nexport const useLockscreen = (trigger: Ref<boolean>) => {\n if (!isRef(trigger)) {\n throwError(\n '[useLockscreen]',\n 'You need to pass a ref param to this function'\n )\n }\n\n const ns = useNamespace('popup')\n\n const hiddenCls = computed(() => ns.bm('parent', 'hidden'))\n\n if (!isClient || hasClass(document.body, hiddenCls.value)) {\n return\n }\n\n let scrollBarWidth = 0\n let withoutHiddenClass = false\n let bodyWidth = '0'\n\n const cleanup = () => {\n setTimeout(() => {\n removeClass(document.body, hiddenCls.value)\n if (withoutHiddenClass) {\n document.body.style.width = bodyWidth\n }\n }, 200)\n }\n watch(trigger, (val) => {\n if (!val) {\n cleanup()\n return\n }\n\n withoutHiddenClass = !hasClass(document.body, hiddenCls.value)\n if (withoutHiddenClass) {\n bodyWidth = document.body.style.width\n }\n scrollBarWidth = getScrollBarWidth(ns.namespace.value)\n const bodyHasOverflow =\n document.documentElement.clientHeight < document.body.scrollHeight\n const bodyOverflowY = getStyle(document.body, 'overflowY')\n if (\n scrollBarWidth > 0 &&\n (bodyHasOverflow || bodyOverflowY === 'scroll') &&\n withoutHiddenClass\n ) {\n document.body.style.width = `calc(100% - ${scrollBarWidth}px)`\n }\n addClass(document.body, hiddenCls.value)\n })\n onScopeDispose(() => cleanup())\n}\n"],"names":[],"mappings":";;;;;;;;;AAYY,MAAC,aAAa,GAAG,CAAC,OAAO,KAAK;AAC1C,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;AACvB,IAAI,UAAU,CAAC,iBAAiB,EAAE,+CAA+C,CAAC,CAAC;AACnF,GAAG;AACH,EAAE,MAAM,EAAE,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;AACnC,EAAE,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC9D,EAAE,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE;AAC7D,IAAI,OAAO;AACX,GAAG;AACH,EAAE,IAAI,cAAc,GAAG,CAAC,CAAC;AACzB,EAAE,IAAI,kBAAkB,GAAG,KAAK,CAAC;AACjC,EAAE,IAA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AC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;AAC7C,GAAG,CAAC,CAAC;AACL,EAAE,cAAc,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC;AAClC;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const defaultNamespace = "el";
|
|
2
2
|
export declare const useNamespace: (block: string) => {
|
|
3
|
-
namespace: import("vue").
|
|
3
|
+
namespace: import("vue").Ref<string>;
|
|
4
4
|
b: (blockSuffix?: string) => string;
|
|
5
5
|
e: (element?: string | undefined) => string;
|
|
6
6
|
m: (modifier?: string | undefined) => string;
|