@element-plus/nightly 0.0.20220322 → 0.0.20220325
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +1596 -802
- package/dist/index.full.min.js +7 -7
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +9 -9
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +1589 -804
- 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/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/component.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/index.d.ts +324 -240
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +324 -240
- package/es/components/autocomplete/src/autocomplete2.mjs +1 -0
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/avatar/src/avatar2.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/button/index.d.ts +14 -14
- package/es/components/button/src/button-group.d.ts +1 -1
- package/es/components/button/src/button-group.vue.d.ts +4 -4
- package/es/components/button/src/button.d.ts +1 -1
- package/es/components/button/src/button.vue.d.ts +6 -6
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/calendar/src/date-table2.mjs +1 -1
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +416 -310
- package/es/components/cascader/src/index.mjs.map +1 -1
- package/es/components/cascader/src/index.vue.d.ts +209 -156
- package/es/components/cascader-panel/src/config.d.ts +1 -1
- package/es/components/cascader-panel/src/config.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -1
- package/es/components/cascader-panel/src/index.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.vue.d.ts +1 -1
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/src/store.d.ts +1 -1
- package/es/components/cascader-panel/src/store.mjs.map +1 -1
- package/es/components/cascader-panel/src/types.d.ts +1 -1
- package/es/components/cascader-panel/src/types.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/checkbox/index.d.ts +10 -10
- package/es/components/checkbox/src/checkbox-button.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
- package/es/components/checkbox/src/checkbox.vue.d.ts +4 -4
- package/es/components/checkbox/src/useCheckbox.d.ts +3 -3
- package/es/components/checkbox/src/useCheckbox.mjs.map +1 -1
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/collection/src/collection.d.ts +2 -2
- package/es/components/collection/src/collection.mjs.map +1 -1
- package/es/components/color-picker/index.d.ts +6 -6
- package/es/components/color-picker/src/components/alpha-slider.mjs.map +1 -1
- package/es/components/color-picker/src/components/hue-slider.mjs.map +1 -1
- package/es/components/color-picker/src/components/predefine.mjs.map +1 -1
- package/es/components/color-picker/src/components/sv-panel.mjs.map +1 -1
- package/es/components/color-picker/src/draggable.mjs.map +1 -1
- package/es/components/color-picker/src/index.mjs.map +1 -1
- package/es/components/color-picker/src/index.vue.d.ts +3 -3
- package/es/components/config-provider/index.d.ts +12 -3
- package/es/components/config-provider/src/config-provider.d.ts +20 -5
- package/es/components/config-provider/src/config-provider.mjs +12 -1
- package/es/components/config-provider/src/config-provider.mjs.map +1 -1
- package/es/components/container/src/container.mjs.map +1 -1
- package/es/components/date-picker/index.d.ts +4 -4
- package/es/components/date-picker/src/date-picker-com/basic-cell-render.mjs.map +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-month-table.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-year-table.mjs.map +1 -1
- 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-range.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-month-range.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +2 -2
- package/es/components/date-picker/src/date-picker.mjs +8 -8
- package/es/components/date-picker/src/date-picker.mjs.map +1 -1
- package/es/components/descriptions/index.d.ts +2 -2
- package/es/components/descriptions/src/index.mjs.map +1 -1
- package/es/components/descriptions/src/index.vue.d.ts +2 -2
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/dialog/src/use-dialog.mjs.map +1 -1
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/index.d.ts +199 -143
- package/es/components/dropdown/src/dropdown-menu.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.d.ts +4 -2
- package/es/components/dropdown/src/dropdown.mjs +3 -0
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +199 -143
- package/es/components/dropdown/src/dropdown2.mjs +8 -10
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/dropdown/src/useDropdown.mjs.map +1 -1
- package/es/components/focus-trap/src/focus-trap.mjs.map +1 -1
- package/es/components/form/index.d.ts +19 -15
- package/es/components/form/src/form-item.d.ts +1 -1
- package/es/components/form/src/form-item.vue.d.ts +7 -5
- package/es/components/form/src/form-item2.mjs +18 -6
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form-label-wrap.mjs.map +1 -1
- package/es/components/form/src/form.d.ts +1 -1
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form.vue.d.ts +5 -5
- package/es/components/form/src/form2.mjs +1 -1
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +7 -5
- package/es/components/index.mjs.map +1 -1
- package/es/components/infinite-scroll/src/index.d.ts +1 -1
- package/es/components/infinite-scroll/src/index.mjs.map +1 -1
- package/es/components/input/index.d.ts +5 -5
- package/es/components/input/src/input.d.ts +2 -2
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +5 -5
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.d.ts +20 -20
- package/es/components/input-number/src/input-number.d.ts +3 -3
- package/es/components/input-number/src/input-number.mjs.map +1 -1
- package/es/components/input-number/src/input-number.vue.d.ts +20 -20
- package/es/components/input-number/src/input-number2.mjs +35 -54
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/link/src/link2.mjs.map +1 -1
- package/es/components/loading/src/directive.mjs.map +1 -1
- package/es/components/loading/src/loading.mjs.map +1 -1
- package/es/components/menu/src/menu-collapse-transition.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/menu/src/menu.d.ts +1 -1
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/menu/src/sub-menu.mjs.map +1 -1
- package/es/components/menu/src/use-menu.d.ts +1 -1
- package/es/components/menu/src/use-menu.mjs.map +1 -1
- package/es/components/message/src/message-method.mjs.map +1 -1
- package/es/components/message/src/message.d.ts +1 -1
- package/es/components/message/src/message.mjs.map +1 -1
- package/es/components/message/src/message2.mjs.map +1 -1
- package/es/components/message-box/src/index.mjs +3 -2
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/message-box/src/index.vue.d.ts +5 -5
- package/es/components/message-box/src/message-box.type.d.ts +1 -1
- package/es/components/message-box/src/messageBox.mjs.map +1 -1
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs.map +1 -1
- package/es/components/overlay/src/overlay.mjs.map +1 -1
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/prev.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/pagination.d.ts +1 -1
- package/es/components/pagination/src/pagination.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/index.d.ts +542 -368
- package/es/components/popover/src/index.mjs.map +1 -1
- package/es/components/popover/src/index.vue.d.ts +271 -184
- package/es/components/popover/src/popover.d.ts +12 -12
- package/es/components/popper/index.d.ts +17 -5
- package/es/components/popper/index.mjs +9 -7
- package/es/components/popper/index.mjs.map +1 -1
- package/es/components/popper/src/arrow.d.ts +5 -0
- package/es/components/popper/src/arrow.mjs +7 -35
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow.vue.d.ts +7 -1
- package/es/components/popper/src/arrow2.mjs +40 -0
- package/es/components/popper/src/arrow2.mjs.map +1 -0
- package/es/components/popper/src/content.d.ts +36 -0
- package/es/components/popper/src/content.mjs +64 -114
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content.vue.d.ts +189 -83
- package/es/components/popper/src/content2.mjs +116 -0
- package/es/components/popper/src/content2.mjs.map +1 -0
- package/es/components/popper/src/popper.d.ts +1 -44
- package/es/components/popper/src/popper.mjs +2 -82
- package/es/components/popper/src/popper.mjs.map +1 -1
- package/es/components/popper/src/popper.vue.d.ts +9 -2
- package/es/components/popper/src/popper2.mjs +22 -15
- package/es/components/popper/src/popper2.mjs.map +1 -1
- package/es/components/popper/src/trigger.d.ts +15 -0
- package/es/components/popper/src/trigger.mjs +15 -77
- package/es/components/popper/src/trigger.mjs.map +1 -1
- package/es/components/popper/src/trigger.vue.d.ts +43 -25
- package/es/components/popper/src/trigger2.mjs +74 -0
- package/es/components/popper/src/trigger2.mjs.map +1 -0
- package/es/components/popper/src/utils.d.ts +7 -5
- package/es/components/popper/src/utils.mjs +3 -13
- package/es/components/popper/src/utils.mjs.map +1 -1
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/radio/index.d.ts +18 -18
- package/es/components/radio/src/radio-button.d.ts +1 -1
- package/es/components/radio/src/radio-button.vue.d.ts +4 -4
- package/es/components/radio/src/radio-group.d.ts +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +3 -3
- package/es/components/radio/src/radio-group2.mjs.map +1 -1
- package/es/components/radio/src/radio.d.ts +3 -3
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio.vue.d.ts +4 -4
- package/es/components/radio/src/radio2.mjs.map +1 -1
- package/es/components/rate/index.d.ts +5 -5
- package/es/components/rate/src/rate.d.ts +1 -1
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate.vue.d.ts +5 -5
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.d.ts +2 -2
- package/es/components/roving-focus-group/src/roving-focus-item.mjs.map +1 -1
- package/es/components/roving-focus-group/src/tokens.d.ts +1 -1
- package/es/components/roving-focus-group/src/tokens.mjs.map +1 -1
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.d.ts +1 -1
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
- package/es/components/select/index.d.ts +199 -146
- package/es/components/select/src/option-group.mjs.map +1 -1
- package/es/components/select/src/option.mjs.map +1 -1
- package/es/components/select/src/select-dropdown.mjs.map +1 -1
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +200 -147
- package/es/components/select/src/useOption.mjs.map +1 -1
- package/es/components/select/src/useSelect.d.ts +196 -143
- package/es/components/select/src/useSelect.mjs +2 -0
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/index.d.ts +398 -292
- package/es/components/select-v2/src/defaults.d.ts +2 -2
- package/es/components/select-v2/src/defaults.mjs.map +1 -1
- package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
- package/es/components/select-v2/src/select.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +199 -146
- package/es/components/select-v2/src/useSelect.d.ts +198 -145
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/slider/index.d.ts +12 -12
- package/es/components/slider/src/index.mjs.map +1 -1
- package/es/components/slider/src/index.vue.d.ts +6 -6
- package/es/components/slider/src/slider.type.d.ts +1 -1
- package/es/components/slider/src/useSlide.mjs.map +1 -1
- package/es/components/slider/src/useSliderButton.d.ts +1 -1
- package/es/components/slider/src/useSliderButton.mjs.map +1 -1
- package/es/components/slider/src/useStops.mjs.map +1 -1
- package/es/components/slot/src/only-child.d.ts +1 -1
- package/es/components/slot/src/only-child.mjs.map +1 -1
- package/es/components/space/index.d.ts +3 -3
- package/es/components/space/src/item.mjs.map +1 -1
- package/es/components/space/src/space.d.ts +5 -5
- package/es/components/space/src/space.mjs.map +1 -1
- package/es/components/space/src/use-space.mjs.map +1 -1
- package/es/components/steps/src/index.mjs.map +1 -1
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item.vue.d.ts +1 -1
- package/es/components/switch/index.d.ts +3 -3
- package/es/components/switch/src/switch.d.ts +1 -1
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch.vue.d.ts +3 -3
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/table/index.d.ts +1 -1
- package/es/components/table/src/filter-panel.mjs.map +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +197 -144
- package/es/components/table/src/layout-observer.mjs.map +1 -1
- package/es/components/table/src/store/current.mjs.map +1 -1
- package/es/components/table/src/store/expand.mjs.map +1 -1
- package/es/components/table/src/store/index.mjs.map +1 -1
- package/es/components/table/src/store/tree.mjs.map +1 -1
- package/es/components/table/src/store/watcher.mjs.map +1 -1
- package/es/components/table/src/table/defaults.d.ts +1 -1
- package/es/components/table/src/table/defaults.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.d.ts +1 -1
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/index.mjs.map +1 -1
- package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/styles-helper.mjs +1 -1
- package/es/components/table/src/table-body/styles-helper.mjs.map +1 -1
- package/es/components/table/src/table-column/defaults.d.ts +1 -1
- package/es/components/table/src/table-column/defaults.mjs.map +1 -1
- package/es/components/table/src/table-column/index.mjs.map +1 -1
- package/es/components/table/src/table-column/render-helper.mjs +3 -2
- package/es/components/table/src/table-column/render-helper.mjs.map +1 -1
- package/es/components/table/src/table-column/watcher-helper.mjs.map +1 -1
- package/es/components/table/src/table-footer/style-helper.mjs.map +1 -1
- package/es/components/table/src/table-header/event-helper.mjs.map +1 -1
- package/es/components/table/src/table-header/index.d.ts +1 -1
- package/es/components/table/src/table-header/index.mjs +1 -1
- package/es/components/table/src/table-header/index.mjs.map +1 -1
- package/es/components/table/src/table-header/style.helper.mjs +1 -1
- package/es/components/table/src/table-header/style.helper.mjs.map +1 -1
- package/es/components/table/src/table-layout.mjs +6 -3
- package/es/components/table/src/table-layout.mjs.map +1 -1
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/table/src/table.vue.d.ts +1 -1
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tabs/src/tabs.d.ts +1 -1
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/tag/index.d.ts +1 -1
- package/es/components/tag/src/tag.vue.d.ts +1 -1
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/time-picker/index.d.ts +4 -4
- package/es/components/time-picker/src/common/picker.mjs +44 -29
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +241 -146
- package/es/components/time-picker/src/common/props.d.ts +2 -2
- package/es/components/time-picker/src/common/props.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs +40 -25
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +14 -0
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs +21 -16
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +15 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs +50 -30
- package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +28 -0
- package/es/components/time-picker/src/time-picker.d.ts +2 -2
- package/es/components/time-picker/src/time-picker.mjs +1 -1
- package/es/components/time-picker/src/time-picker.mjs.map +1 -1
- package/es/components/time-select/index.d.ts +6 -6
- package/es/components/time-select/src/time-select.mjs +1 -1
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +4 -4
- package/es/components/timeline/src/timeline.mjs.map +1 -1
- package/es/components/tooltip/index.d.ts +115 -84
- package/es/components/tooltip/src/content.mjs +2 -2
- package/es/components/tooltip/src/content.mjs.map +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +429 -217
- package/es/components/tooltip/src/tooltip.d.ts +36 -27
- package/es/components/tooltip/src/tooltip.mjs +2 -1
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +115 -84
- package/es/components/tooltip/src/tooltip2.mjs +3 -3
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.mjs +2 -2
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.vue.d.ts +25 -6
- package/es/components/transfer/src/index.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/useCheck.d.ts +1 -1
- package/es/components/transfer/src/useCheck.mjs.map +1 -1
- package/es/components/transfer/src/useCheckedChange.d.ts +1 -1
- package/es/components/transfer/src/useCheckedChange.mjs.map +1 -1
- package/es/components/transfer/src/useMove.d.ts +1 -1
- package/es/components/transfer/src/useMove.mjs.map +1 -1
- package/es/components/tree/src/model/node.d.ts +1 -1
- package/es/components/tree/src/model/node.mjs.map +1 -1
- package/es/components/tree/src/model/tree-store.d.ts +1 -1
- package/es/components/tree/src/model/tree-store.mjs.map +1 -1
- package/es/components/tree/src/model/useKeydown.mjs.map +1 -1
- package/es/components/tree/src/tree-node-content.mjs.map +1 -1
- package/es/components/tree/src/tree-node.mjs.map +1 -1
- package/es/components/tree/src/tree-node.vue.d.ts +1 -1
- package/es/components/tree/src/tree.mjs.map +1 -1
- package/es/components/tree/src/tree.type.d.ts +1 -1
- package/es/components/tree/src/tree.vue.d.ts +2 -2
- package/es/components/tree-v2/src/composables/useCheck.d.ts +1 -1
- package/es/components/tree-v2/src/composables/useCheck.mjs +1 -0
- package/es/components/tree-v2/src/composables/useCheck.mjs.map +1 -1
- package/es/components/tree-v2/src/composables/useFilter.d.ts +1 -1
- package/es/components/tree-v2/src/composables/useFilter.mjs.map +1 -1
- package/es/components/tree-v2/src/composables/useTree.d.ts +1 -1
- package/es/components/tree-v2/src/composables/useTree.mjs.map +1 -1
- package/es/components/tree-v2/src/tree-node-content.mjs.map +1 -1
- package/es/components/tree-v2/src/tree-node.mjs.map +1 -1
- package/es/components/tree-v2/src/types.d.ts +2 -2
- package/es/components/tree-v2/src/virtual-tree.d.ts +1 -1
- package/es/components/tree-v2/src/virtual-tree.mjs.map +1 -1
- package/es/components/upload/index.d.ts +33 -33
- package/es/components/upload/src/ajax.mjs.map +1 -1
- package/es/components/upload/src/upload-content.d.ts +3 -3
- package/es/components/upload/src/upload-content.mjs.map +1 -1
- package/es/components/upload/src/upload-content.vue.d.ts +9 -9
- package/es/components/upload/src/upload-content2.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list.vue.d.ts +4 -4
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload.d.ts +2 -2
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload.vue.d.ts +61 -62
- package/es/components/upload/src/upload2.mjs +10 -28
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.d.ts +1 -1
- package/es/components/upload/src/use-handlers.mjs.map +1 -1
- package/es/components/virtual-list/src/builders/build-grid.d.ts +1 -1
- package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
- package/es/components/virtual-list/src/builders/build-list.d.ts +1 -1
- package/es/components/virtual-list/src/builders/build-list.mjs.map +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-grid.mjs.map +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-list.mjs.map +1 -1
- package/es/components/virtual-list/src/components/fixed-size-grid.mjs.map +1 -1
- package/es/components/virtual-list/src/components/fixed-size-list.mjs.map +1 -1
- package/es/components/virtual-list/src/components/scrollbar.mjs.map +1 -1
- package/es/components/virtual-list/src/hooks/use-grid-wheel.mjs.map +1 -1
- package/es/components/virtual-list/src/hooks/use-wheel.mjs.map +1 -1
- package/es/components/virtual-list/src/utils.d.ts +1 -1
- package/es/components/virtual-list/src/utils.mjs.map +1 -1
- package/es/constants/size.d.ts +1 -1
- package/es/constants/size.mjs +1 -1
- package/es/constants/size.mjs.map +1 -1
- package/es/defaults.d.ts +5 -2
- package/es/directives/mousewheel/index.mjs.map +1 -1
- package/es/directives/repeat-click/index.mjs.map +1 -1
- package/es/directives/resize/index.mjs.map +1 -1
- package/es/directives/trap-focus/index.mjs.map +1 -1
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-attrs/index.mjs.map +1 -1
- package/es/hooks/use-common-props/index.d.ts +2 -2
- package/es/hooks/use-common-props/index.mjs +1 -1
- package/es/hooks/use-common-props/index.mjs.map +1 -1
- package/es/hooks/use-delayed-toggle/index.d.ts +1 -1
- package/es/hooks/use-delayed-toggle/index.mjs.map +1 -1
- package/es/hooks/use-draggable/index.d.ts +1 -1
- package/es/hooks/use-draggable/index.mjs.map +1 -1
- package/es/hooks/use-escape-keydown/index.mjs.map +1 -1
- package/es/hooks/use-floating/index.d.ts +69 -0
- package/es/hooks/use-floating/index.mjs +90 -0
- package/es/hooks/use-floating/index.mjs.map +1 -0
- package/es/hooks/use-global-config/index.d.ts +5 -2
- package/es/hooks/use-global-config/index.mjs.map +1 -1
- package/es/hooks/use-intermediate-render/index.mjs.map +1 -1
- package/es/hooks/use-locale/index.mjs.map +1 -1
- package/es/hooks/use-lockscreen/index.mjs.map +1 -1
- package/es/hooks/use-model-toggle/index.d.ts +1 -1
- package/es/hooks/use-model-toggle/index.mjs.map +1 -1
- package/es/hooks/use-namespace/index.mjs.map +1 -1
- package/es/hooks/use-prop/index.mjs.map +1 -1
- package/es/hooks/use-teleport/index.d.ts +1 -1
- package/es/hooks/use-teleport/index.mjs.map +1 -1
- package/es/hooks/use-z-index/index.mjs.map +1 -1
- package/es/index.d.ts +6 -2
- package/es/index.mjs +14 -6
- package/es/index.mjs.map +1 -1
- package/es/make-installer.d.ts +11 -2
- package/es/make-installer.mjs +3 -2
- package/es/make-installer.mjs.map +1 -1
- package/es/tokens/config-provider.d.ts +1 -1
- package/es/tokens/config-provider.mjs.map +1 -1
- package/es/tokens/dialog.d.ts +1 -1
- package/es/tokens/dialog.mjs.map +1 -1
- package/es/tokens/experimental-features.d.ts +1 -0
- package/es/tokens/experimental-features.mjs +2 -0
- package/es/tokens/experimental-features.mjs.map +1 -0
- package/es/tokens/form.d.ts +1 -1
- package/es/tokens/form.mjs.map +1 -1
- package/es/tokens/index.d.ts +2 -0
- package/es/tokens/index.mjs +2 -0
- package/es/tokens/index.mjs.map +1 -1
- package/es/tokens/pagination.d.ts +1 -1
- package/es/tokens/pagination.mjs.map +1 -1
- package/es/tokens/popper.d.ts +22 -0
- package/es/tokens/popper.mjs +5 -0
- package/es/tokens/popper.mjs.map +1 -0
- package/es/tokens/tabs.d.ts +2 -2
- package/es/tokens/tabs.mjs.map +1 -1
- package/es/utils/vue/icon.mjs.map +1 -1
- package/es/utils/vue/install.d.ts +1 -1
- package/es/utils/vue/install.mjs.map +1 -1
- package/es/utils/vue/style.mjs.map +1 -1
- package/es/utils/vue/vnode.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/component.js.map +1 -1
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/index.d.ts +324 -240
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +324 -240
- package/lib/components/autocomplete/src/autocomplete2.js +1 -0
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/avatar/src/avatar2.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/button/index.d.ts +14 -14
- package/lib/components/button/src/button-group.d.ts +1 -1
- package/lib/components/button/src/button-group.vue.d.ts +4 -4
- package/lib/components/button/src/button.d.ts +1 -1
- package/lib/components/button/src/button.vue.d.ts +6 -6
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/calendar/src/date-table2.js +1 -1
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/cascader/index.d.ts +416 -310
- package/lib/components/cascader/src/index.js.map +1 -1
- package/lib/components/cascader/src/index.vue.d.ts +209 -156
- package/lib/components/cascader-panel/src/config.d.ts +1 -1
- 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 +1 -1
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/src/store.d.ts +1 -1
- package/lib/components/cascader-panel/src/store.js.map +1 -1
- package/lib/components/cascader-panel/src/types.d.ts +1 -1
- package/lib/components/cascader-panel/src/types.js.map +1 -1
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/checkbox/index.d.ts +10 -10
- package/lib/components/checkbox/src/checkbox-button.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
- package/lib/components/checkbox/src/checkbox.vue.d.ts +4 -4
- package/lib/components/checkbox/src/useCheckbox.d.ts +3 -3
- package/lib/components/checkbox/src/useCheckbox.js.map +1 -1
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/collection/src/collection.d.ts +2 -2
- package/lib/components/collection/src/collection.js.map +1 -1
- package/lib/components/color-picker/index.d.ts +6 -6
- package/lib/components/color-picker/src/components/alpha-slider.js.map +1 -1
- package/lib/components/color-picker/src/components/hue-slider.js.map +1 -1
- package/lib/components/color-picker/src/components/predefine.js.map +1 -1
- package/lib/components/color-picker/src/components/sv-panel.js.map +1 -1
- package/lib/components/color-picker/src/draggable.js.map +1 -1
- package/lib/components/color-picker/src/index.js.map +1 -1
- package/lib/components/color-picker/src/index.vue.d.ts +3 -3
- package/lib/components/config-provider/index.d.ts +12 -3
- package/lib/components/config-provider/src/config-provider.d.ts +20 -5
- package/lib/components/config-provider/src/config-provider.js +12 -1
- package/lib/components/config-provider/src/config-provider.js.map +1 -1
- package/lib/components/container/src/container.js.map +1 -1
- package/lib/components/date-picker/index.d.ts +4 -4
- package/lib/components/date-picker/src/date-picker-com/basic-cell-render.js.map +1 -1
- 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-month-table.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-year-table.js.map +1 -1
- 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-range.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.js.map +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +2 -2
- package/lib/components/date-picker/src/date-picker.js +8 -8
- package/lib/components/date-picker/src/date-picker.js.map +1 -1
- package/lib/components/descriptions/index.d.ts +2 -2
- package/lib/components/descriptions/src/index.js.map +1 -1
- package/lib/components/descriptions/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/dialog/src/use-dialog.js.map +1 -1
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/index.d.ts +199 -143
- package/lib/components/dropdown/src/dropdown-menu.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.d.ts +4 -2
- package/lib/components/dropdown/src/dropdown.js +3 -0
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +199 -143
- package/lib/components/dropdown/src/dropdown2.js +7 -9
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/dropdown/src/useDropdown.js.map +1 -1
- package/lib/components/focus-trap/src/focus-trap.js.map +1 -1
- package/lib/components/form/index.d.ts +19 -15
- package/lib/components/form/src/form-item.d.ts +1 -1
- package/lib/components/form/src/form-item.vue.d.ts +7 -5
- package/lib/components/form/src/form-item2.js +17 -5
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form-label-wrap.js.map +1 -1
- package/lib/components/form/src/form.d.ts +1 -1
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form.vue.d.ts +5 -5
- package/lib/components/form/src/form2.js +1 -1
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +15 -15
- package/lib/components/infinite-scroll/src/index.d.ts +1 -1
- package/lib/components/infinite-scroll/src/index.js.map +1 -1
- package/lib/components/input/index.d.ts +5 -5
- package/lib/components/input/src/input.d.ts +2 -2
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +5 -5
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.d.ts +20 -20
- package/lib/components/input-number/src/input-number.d.ts +3 -3
- package/lib/components/input-number/src/input-number.js.map +1 -1
- package/lib/components/input-number/src/input-number.vue.d.ts +20 -20
- package/lib/components/input-number/src/input-number2.js +35 -54
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/link/src/link2.js.map +1 -1
- package/lib/components/loading/src/directive.js.map +1 -1
- package/lib/components/loading/src/loading.js.map +1 -1
- package/lib/components/menu/src/menu-collapse-transition.js.map +1 -1
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/menu/src/menu.d.ts +1 -1
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/menu/src/sub-menu.js.map +1 -1
- package/lib/components/menu/src/use-menu.d.ts +1 -1
- package/lib/components/menu/src/use-menu.js.map +1 -1
- package/lib/components/message/src/message-method.js.map +1 -1
- package/lib/components/message/src/message.d.ts +1 -1
- package/lib/components/message/src/message.js.map +1 -1
- package/lib/components/message/src/message2.js.map +1 -1
- package/lib/components/message-box/src/index.js +3 -2
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/message-box/src/index.vue.d.ts +5 -5
- package/lib/components/message-box/src/message-box.type.d.ts +1 -1
- package/lib/components/message-box/src/messageBox.js.map +1 -1
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js.map +1 -1
- package/lib/components/overlay/src/overlay.js.map +1 -1
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/prev.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/pagination.d.ts +1 -1
- package/lib/components/pagination/src/pagination.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/index.d.ts +542 -368
- package/lib/components/popover/src/index.js.map +1 -1
- package/lib/components/popover/src/index.vue.d.ts +271 -184
- package/lib/components/popover/src/popover.d.ts +12 -12
- package/lib/components/popper/index.d.ts +17 -5
- package/lib/components/popper/index.js +10 -10
- package/lib/components/popper/index.js.map +1 -1
- package/lib/components/popper/src/arrow.d.ts +5 -0
- package/lib/components/popper/src/arrow.js +7 -35
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow.vue.d.ts +7 -1
- package/lib/components/popper/src/arrow2.js +44 -0
- package/lib/components/popper/src/arrow2.js.map +1 -0
- package/lib/components/popper/src/content.d.ts +36 -0
- package/lib/components/popper/src/content.js +64 -113
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content.vue.d.ts +189 -83
- package/lib/components/popper/src/content2.js +120 -0
- package/lib/components/popper/src/content2.js.map +1 -0
- package/lib/components/popper/src/popper.d.ts +1 -44
- package/lib/components/popper/src/popper.js +0 -84
- package/lib/components/popper/src/popper.js.map +1 -1
- package/lib/components/popper/src/popper.vue.d.ts +9 -2
- package/lib/components/popper/src/popper2.js +23 -16
- package/lib/components/popper/src/popper2.js.map +1 -1
- package/lib/components/popper/src/trigger.d.ts +15 -0
- package/lib/components/popper/src/trigger.js +15 -77
- package/lib/components/popper/src/trigger.js.map +1 -1
- package/lib/components/popper/src/trigger.vue.d.ts +43 -25
- package/lib/components/popper/src/trigger2.js +78 -0
- package/lib/components/popper/src/trigger2.js.map +1 -0
- package/lib/components/popper/src/utils.d.ts +7 -5
- package/lib/components/popper/src/utils.js +2 -12
- package/lib/components/popper/src/utils.js.map +1 -1
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/radio/index.d.ts +18 -18
- package/lib/components/radio/src/radio-button.d.ts +1 -1
- package/lib/components/radio/src/radio-button.vue.d.ts +4 -4
- package/lib/components/radio/src/radio-group.d.ts +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +3 -3
- package/lib/components/radio/src/radio-group2.js.map +1 -1
- package/lib/components/radio/src/radio.d.ts +3 -3
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio.vue.d.ts +4 -4
- package/lib/components/radio/src/radio2.js.map +1 -1
- package/lib/components/rate/index.d.ts +5 -5
- package/lib/components/rate/src/rate.d.ts +1 -1
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +5 -5
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.d.ts +2 -2
- package/lib/components/roving-focus-group/src/roving-focus-item.js.map +1 -1
- package/lib/components/roving-focus-group/src/tokens.d.ts +1 -1
- package/lib/components/roving-focus-group/src/tokens.js.map +1 -1
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.d.ts +1 -1
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/scrollbar/src/thumb2.js.map +1 -1
- package/lib/components/select/index.d.ts +199 -146
- package/lib/components/select/src/option-group.js.map +1 -1
- package/lib/components/select/src/option.js.map +1 -1
- package/lib/components/select/src/select-dropdown.js.map +1 -1
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +200 -147
- package/lib/components/select/src/useOption.js.map +1 -1
- package/lib/components/select/src/useSelect.d.ts +196 -143
- package/lib/components/select/src/useSelect.js +2 -0
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/index.d.ts +398 -292
- package/lib/components/select-v2/src/defaults.d.ts +2 -2
- package/lib/components/select-v2/src/defaults.js.map +1 -1
- package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
- package/lib/components/select-v2/src/select.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +199 -146
- package/lib/components/select-v2/src/useSelect.d.ts +198 -145
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/slider/index.d.ts +12 -12
- package/lib/components/slider/src/index.js.map +1 -1
- package/lib/components/slider/src/index.vue.d.ts +6 -6
- package/lib/components/slider/src/slider.type.d.ts +1 -1
- package/lib/components/slider/src/useSlide.js.map +1 -1
- package/lib/components/slider/src/useSliderButton.d.ts +1 -1
- package/lib/components/slider/src/useSliderButton.js.map +1 -1
- package/lib/components/slider/src/useStops.js.map +1 -1
- package/lib/components/slot/src/only-child.d.ts +1 -1
- package/lib/components/slot/src/only-child.js.map +1 -1
- package/lib/components/space/index.d.ts +3 -3
- package/lib/components/space/src/item.js.map +1 -1
- package/lib/components/space/src/space.d.ts +5 -5
- package/lib/components/space/src/space.js.map +1 -1
- package/lib/components/space/src/use-space.js.map +1 -1
- package/lib/components/steps/src/index.js.map +1 -1
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item.vue.d.ts +1 -1
- package/lib/components/switch/index.d.ts +3 -3
- package/lib/components/switch/src/switch.d.ts +1 -1
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +3 -3
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/table/index.d.ts +1 -1
- package/lib/components/table/src/filter-panel.js.map +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +197 -144
- package/lib/components/table/src/layout-observer.js.map +1 -1
- package/lib/components/table/src/store/current.js.map +1 -1
- package/lib/components/table/src/store/expand.js.map +1 -1
- package/lib/components/table/src/store/index.js.map +1 -1
- package/lib/components/table/src/store/tree.js.map +1 -1
- package/lib/components/table/src/store/watcher.js.map +1 -1
- package/lib/components/table/src/table/defaults.d.ts +1 -1
- package/lib/components/table/src/table/defaults.js.map +1 -1
- package/lib/components/table/src/table/style-helper.d.ts +1 -1
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table-body/events-helper.js.map +1 -1
- package/lib/components/table/src/table-body/index.js.map +1 -1
- package/lib/components/table/src/table-body/render-helper.js.map +1 -1
- package/lib/components/table/src/table-body/styles-helper.js +1 -1
- package/lib/components/table/src/table-body/styles-helper.js.map +1 -1
- package/lib/components/table/src/table-column/defaults.d.ts +1 -1
- package/lib/components/table/src/table-column/defaults.js.map +1 -1
- package/lib/components/table/src/table-column/index.js.map +1 -1
- package/lib/components/table/src/table-column/render-helper.js +2 -1
- package/lib/components/table/src/table-column/render-helper.js.map +1 -1
- package/lib/components/table/src/table-column/watcher-helper.js.map +1 -1
- package/lib/components/table/src/table-footer/style-helper.js.map +1 -1
- package/lib/components/table/src/table-header/event-helper.js.map +1 -1
- package/lib/components/table/src/table-header/index.d.ts +1 -1
- package/lib/components/table/src/table-header/index.js +1 -1
- package/lib/components/table/src/table-header/index.js.map +1 -1
- package/lib/components/table/src/table-header/style.helper.js +1 -1
- package/lib/components/table/src/table-header/style.helper.js.map +1 -1
- package/lib/components/table/src/table-layout.js +6 -3
- package/lib/components/table/src/table-layout.js.map +1 -1
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/table/src/table.vue.d.ts +1 -1
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tabs/src/tabs.d.ts +1 -1
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/tag/index.d.ts +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +1 -1
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/time-picker/index.d.ts +4 -4
- package/lib/components/time-picker/src/common/picker.js +46 -31
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +241 -146
- package/lib/components/time-picker/src/common/props.d.ts +2 -2
- package/lib/components/time-picker/src/common/props.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js +40 -25
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +14 -0
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.js +22 -17
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +15 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.js +49 -29
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +28 -0
- package/lib/components/time-picker/src/time-picker.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker.js +1 -1
- package/lib/components/time-picker/src/time-picker.js.map +1 -1
- package/lib/components/time-select/index.d.ts +6 -6
- package/lib/components/time-select/src/time-select.js +1 -1
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +4 -4
- package/lib/components/timeline/src/timeline.js.map +1 -1
- package/lib/components/tooltip/index.d.ts +115 -84
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +429 -217
- package/lib/components/tooltip/src/tooltip.d.ts +36 -27
- package/lib/components/tooltip/src/tooltip.js +4 -3
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +115 -84
- package/lib/components/tooltip/src/tooltip2.js +3 -3
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip/src/trigger.js +1 -1
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/tooltip/src/trigger.vue.d.ts +25 -6
- package/lib/components/transfer/src/index.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/useCheck.d.ts +1 -1
- package/lib/components/transfer/src/useCheck.js.map +1 -1
- package/lib/components/transfer/src/useCheckedChange.d.ts +1 -1
- package/lib/components/transfer/src/useCheckedChange.js.map +1 -1
- package/lib/components/transfer/src/useMove.d.ts +1 -1
- package/lib/components/transfer/src/useMove.js.map +1 -1
- package/lib/components/tree/src/model/node.d.ts +1 -1
- package/lib/components/tree/src/model/node.js.map +1 -1
- package/lib/components/tree/src/model/tree-store.d.ts +1 -1
- package/lib/components/tree/src/model/tree-store.js.map +1 -1
- package/lib/components/tree/src/model/useKeydown.js.map +1 -1
- package/lib/components/tree/src/tree-node-content.js.map +1 -1
- package/lib/components/tree/src/tree-node.js.map +1 -1
- package/lib/components/tree/src/tree-node.vue.d.ts +1 -1
- package/lib/components/tree/src/tree.js.map +1 -1
- package/lib/components/tree/src/tree.type.d.ts +1 -1
- package/lib/components/tree/src/tree.vue.d.ts +2 -2
- package/lib/components/tree-v2/src/composables/useCheck.d.ts +1 -1
- package/lib/components/tree-v2/src/composables/useCheck.js +1 -0
- package/lib/components/tree-v2/src/composables/useCheck.js.map +1 -1
- package/lib/components/tree-v2/src/composables/useFilter.d.ts +1 -1
- package/lib/components/tree-v2/src/composables/useFilter.js.map +1 -1
- package/lib/components/tree-v2/src/composables/useTree.d.ts +1 -1
- package/lib/components/tree-v2/src/composables/useTree.js.map +1 -1
- package/lib/components/tree-v2/src/tree-node-content.js.map +1 -1
- package/lib/components/tree-v2/src/tree-node.js.map +1 -1
- package/lib/components/tree-v2/src/types.d.ts +2 -2
- package/lib/components/tree-v2/src/virtual-tree.d.ts +1 -1
- package/lib/components/tree-v2/src/virtual-tree.js.map +1 -1
- package/lib/components/upload/index.d.ts +33 -33
- package/lib/components/upload/src/ajax.js.map +1 -1
- package/lib/components/upload/src/upload-content.d.ts +3 -3
- package/lib/components/upload/src/upload-content.js.map +1 -1
- package/lib/components/upload/src/upload-content.vue.d.ts +9 -9
- package/lib/components/upload/src/upload-content2.js.map +1 -1
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list.vue.d.ts +4 -4
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload.d.ts +2 -2
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +61 -62
- package/lib/components/upload/src/upload2.js +9 -27
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/components/upload/src/use-handlers.d.ts +1 -1
- package/lib/components/upload/src/use-handlers.js.map +1 -1
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +1 -1
- package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
- package/lib/components/virtual-list/src/builders/build-list.d.ts +1 -1
- package/lib/components/virtual-list/src/builders/build-list.js.map +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-grid.js.map +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-list.js.map +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-grid.js.map +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-list.js.map +1 -1
- package/lib/components/virtual-list/src/components/scrollbar.js.map +1 -1
- package/lib/components/virtual-list/src/hooks/use-grid-wheel.js.map +1 -1
- package/lib/components/virtual-list/src/hooks/use-wheel.js.map +1 -1
- package/lib/components/virtual-list/src/utils.d.ts +1 -1
- package/lib/components/virtual-list/src/utils.js.map +1 -1
- package/lib/constants/size.d.ts +1 -1
- package/lib/constants/size.js +1 -1
- package/lib/constants/size.js.map +1 -1
- package/lib/defaults.d.ts +5 -2
- package/lib/directives/mousewheel/index.js.map +1 -1
- package/lib/directives/repeat-click/index.js.map +1 -1
- package/lib/directives/resize/index.js.map +1 -1
- package/lib/directives/trap-focus/index.js.map +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +5 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-attrs/index.js.map +1 -1
- package/lib/hooks/use-common-props/index.d.ts +2 -2
- package/lib/hooks/use-common-props/index.js +1 -1
- package/lib/hooks/use-common-props/index.js.map +1 -1
- package/lib/hooks/use-delayed-toggle/index.d.ts +1 -1
- package/lib/hooks/use-delayed-toggle/index.js.map +1 -1
- package/lib/hooks/use-draggable/index.d.ts +1 -1
- package/lib/hooks/use-draggable/index.js.map +1 -1
- package/lib/hooks/use-escape-keydown/index.js.map +1 -1
- package/lib/hooks/use-floating/index.d.ts +69 -0
- package/lib/hooks/use-floating/index.js +97 -0
- package/lib/hooks/use-floating/index.js.map +1 -0
- package/lib/hooks/use-global-config/index.d.ts +5 -2
- package/lib/hooks/use-global-config/index.js.map +1 -1
- package/lib/hooks/use-intermediate-render/index.js.map +1 -1
- package/lib/hooks/use-locale/index.js.map +1 -1
- package/lib/hooks/use-lockscreen/index.js.map +1 -1
- package/lib/hooks/use-model-toggle/index.d.ts +1 -1
- package/lib/hooks/use-model-toggle/index.js.map +1 -1
- package/lib/hooks/use-namespace/index.js.map +1 -1
- package/lib/hooks/use-prop/index.js.map +1 -1
- package/lib/hooks/use-teleport/index.d.ts +1 -1
- package/lib/hooks/use-teleport/index.js.map +1 -1
- package/lib/hooks/use-z-index/index.js.map +1 -1
- package/lib/index.d.ts +6 -2
- package/lib/index.js +32 -15
- package/lib/index.js.map +1 -1
- package/lib/make-installer.d.ts +11 -2
- package/lib/make-installer.js +3 -2
- package/lib/make-installer.js.map +1 -1
- package/lib/tokens/config-provider.d.ts +1 -1
- package/lib/tokens/config-provider.js.map +1 -1
- package/lib/tokens/dialog.d.ts +1 -1
- package/lib/tokens/dialog.js.map +1 -1
- package/lib/tokens/experimental-features.d.ts +1 -0
- package/lib/tokens/experimental-features.js +3 -0
- package/lib/tokens/experimental-features.js.map +1 -0
- package/lib/tokens/form.d.ts +1 -1
- package/lib/tokens/form.js.map +1 -1
- package/lib/tokens/index.d.ts +2 -0
- package/lib/tokens/index.js +4 -0
- package/lib/tokens/index.js.map +1 -1
- package/lib/tokens/pagination.d.ts +1 -1
- package/lib/tokens/pagination.js.map +1 -1
- package/lib/tokens/popper.d.ts +22 -0
- package/lib/{components/popper/src/tokens.js → tokens/popper.js} +3 -3
- package/lib/tokens/popper.js.map +1 -0
- package/lib/tokens/tabs.d.ts +2 -2
- package/lib/tokens/tabs.js.map +1 -1
- package/lib/utils/vue/icon.js.map +1 -1
- package/lib/utils/vue/install.d.ts +1 -1
- package/lib/utils/vue/install.js.map +1 -1
- package/lib/utils/vue/style.js.map +1 -1
- package/lib/utils/vue/vnode.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 +3 -2
- package/tags.json +1 -1
- package/theme-chalk/base.css +1 -1
- package/theme-chalk/el-button.css +1 -1
- package/theme-chalk/el-card.css +1 -1
- package/theme-chalk/el-cascader-panel.css +1 -1
- package/theme-chalk/el-checkbox-button.css +1 -1
- package/theme-chalk/el-checkbox.css +1 -1
- package/theme-chalk/el-date-picker.css +1 -1
- package/theme-chalk/el-empty.css +1 -1
- package/theme-chalk/el-input.css +1 -1
- package/theme-chalk/el-radio-button.css +1 -1
- package/theme-chalk/el-radio.css +1 -1
- package/theme-chalk/el-reset.css +1 -1
- package/theme-chalk/el-skeleton-item.css +1 -1
- package/theme-chalk/el-table.css +1 -1
- package/theme-chalk/el-tag.css +1 -1
- package/theme-chalk/el-time-picker.css +1 -1
- package/theme-chalk/el-var.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/button.scss +40 -77
- package/theme-chalk/src/cascader-panel.scss +6 -1
- package/theme-chalk/src/common/var.scss +201 -194
- package/theme-chalk/src/date-picker/time-spinner.scss +5 -6
- package/theme-chalk/src/empty.scss +2 -1
- package/theme-chalk/src/input.scss +1 -0
- package/theme-chalk/src/mixins/_button.scss +2 -6
- package/theme-chalk/src/reset.scss +3 -3
- package/theme-chalk/src/skeleton-item.scss +2 -1
- package/theme-chalk/src/tag.scss +3 -2
- package/web-types.json +1 -1
- package/es/components/popper/src/tokens.d.ts +0 -14
- package/es/components/popper/src/tokens.mjs +0 -5
- package/es/components/popper/src/tokens.mjs.map +0 -1
- package/lib/components/popper/src/tokens.d.ts +0 -14
- package/lib/components/popper/src/tokens.js.map +0 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ref, unref, watch, onMounted } from 'vue';
|
|
2
|
+
import { isClient, unrefElement } from '@vueuse/core';
|
|
3
|
+
import { isNil } from 'lodash-unified';
|
|
4
|
+
import { computePosition, arrow } from '@floating-ui/dom';
|
|
5
|
+
import '../../utils/index.mjs';
|
|
6
|
+
import { buildProps } from '../../utils/vue/props.mjs';
|
|
7
|
+
|
|
8
|
+
const useFloatingProps = buildProps({});
|
|
9
|
+
const unrefReference = (elRef) => {
|
|
10
|
+
if (!isClient)
|
|
11
|
+
return;
|
|
12
|
+
if (!elRef)
|
|
13
|
+
return elRef;
|
|
14
|
+
const unrefEl = unrefElement(elRef);
|
|
15
|
+
if (unrefEl)
|
|
16
|
+
return unrefEl;
|
|
17
|
+
return elRef;
|
|
18
|
+
};
|
|
19
|
+
const getPositionDataWithUnit = (record, key) => {
|
|
20
|
+
const value = record == null ? void 0 : record[key];
|
|
21
|
+
return isNil(value) ? "" : `${value}px`;
|
|
22
|
+
};
|
|
23
|
+
const useFloating = ({
|
|
24
|
+
middleware,
|
|
25
|
+
placement,
|
|
26
|
+
strategy
|
|
27
|
+
}) => {
|
|
28
|
+
const referenceRef = ref();
|
|
29
|
+
const contentRef = ref();
|
|
30
|
+
const x = ref();
|
|
31
|
+
const y = ref();
|
|
32
|
+
const middlewareData = ref({});
|
|
33
|
+
const states = {
|
|
34
|
+
x,
|
|
35
|
+
y,
|
|
36
|
+
placement,
|
|
37
|
+
strategy,
|
|
38
|
+
middlewareData
|
|
39
|
+
};
|
|
40
|
+
const update = async () => {
|
|
41
|
+
if (!isClient)
|
|
42
|
+
return;
|
|
43
|
+
const referenceEl = unrefReference(referenceRef);
|
|
44
|
+
const contentEl = unrefElement(contentRef);
|
|
45
|
+
if (!referenceEl || !contentEl)
|
|
46
|
+
return;
|
|
47
|
+
const data = await computePosition(referenceEl, contentEl, {
|
|
48
|
+
placement: unref(placement),
|
|
49
|
+
strategy: unref(strategy),
|
|
50
|
+
middleware: unref(middleware)
|
|
51
|
+
});
|
|
52
|
+
["x", "y"].forEach((key) => data[key] = getPositionDataWithUnit(data, key));
|
|
53
|
+
Object.keys(states).forEach((key) => {
|
|
54
|
+
states[key].value = data[key];
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
watch(referenceRef, () => update());
|
|
58
|
+
watch(contentRef, () => update());
|
|
59
|
+
onMounted(() => update());
|
|
60
|
+
return {
|
|
61
|
+
...states,
|
|
62
|
+
update,
|
|
63
|
+
referenceRef,
|
|
64
|
+
contentRef
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
const arrowMiddleware = ({
|
|
68
|
+
arrowRef,
|
|
69
|
+
padding
|
|
70
|
+
}) => {
|
|
71
|
+
return {
|
|
72
|
+
name: "arrow",
|
|
73
|
+
options: {
|
|
74
|
+
element: arrowRef,
|
|
75
|
+
padding
|
|
76
|
+
},
|
|
77
|
+
fn(args) {
|
|
78
|
+
const arrowEl = unref(arrowRef);
|
|
79
|
+
if (!arrowEl)
|
|
80
|
+
return {};
|
|
81
|
+
return arrow({
|
|
82
|
+
element: arrowEl,
|
|
83
|
+
padding
|
|
84
|
+
}).fn(args);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export { arrowMiddleware, getPositionDataWithUnit, useFloating, useFloatingProps };
|
|
90
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-floating/index.ts"],"sourcesContent":["import { onMounted, ref, unref, watch } from 'vue'\nimport { isClient, unrefElement } from '@vueuse/core'\nimport { isNil } from 'lodash-unified'\nimport { arrow as arrowCore, computePosition } from '@floating-ui/dom'\n\nimport { buildProps } from '@element-plus/utils'\n\nimport type { Ref, ToRefs } from 'vue'\nimport type {\n ComputePositionReturn,\n Middleware,\n Placement,\n SideObject,\n Strategy,\n VirtualElement,\n} from '@floating-ui/dom'\n\nexport const useFloatingProps = buildProps({} as const)\n\nexport type UseFloatingProps = ToRefs<{\n middleware: Array<Middleware>\n placement: Placement\n strategy: Strategy\n}>\n\ntype ElementRef = Parameters<typeof unrefElement>['0']\n\nconst unrefReference = (\n elRef: ElementRef | Ref<VirtualElement | undefined>\n) => {\n if (!isClient) return\n if (!elRef) return elRef\n const unrefEl = unrefElement(elRef as ElementRef)\n if (unrefEl) return unrefEl\n return elRef as VirtualElement\n}\n\nexport const getPositionDataWithUnit = <T extends Record<string, number>>(\n record: T | undefined,\n key: keyof T\n) => {\n const value = record?.[key]\n return isNil(value) ? '' : `${value}px`\n}\n\nexport const useFloating = ({\n middleware,\n placement,\n strategy,\n}: UseFloatingProps) => {\n const referenceRef = ref<HTMLElement | VirtualElement>()\n const contentRef = ref<HTMLElement>()\n const x = ref<string>()\n const y = ref<string>()\n const middlewareData = ref<ComputePositionReturn['middlewareData']>({})\n\n const states = {\n x,\n y,\n placement,\n strategy,\n middlewareData,\n } as const\n\n const update = async () => {\n if (!isClient) return\n\n const referenceEl = unrefReference(referenceRef)\n const contentEl = unrefElement(contentRef)\n\n if (!referenceEl || !contentEl) return\n\n const data = await computePosition(referenceEl, contentEl, {\n placement: unref(placement),\n strategy: unref(strategy),\n middleware: unref(middleware),\n })\n\n ;['x', 'y'].forEach(\n (key) => (data[key] = getPositionDataWithUnit(data as any, key))\n )\n\n Object.keys(states).forEach((key) => {\n states[key].value = data[key]\n })\n }\n\n watch(referenceRef, () => update())\n\n watch(contentRef, () => update())\n\n onMounted(() => update())\n\n return {\n ...states,\n update,\n referenceRef,\n contentRef,\n }\n}\n\nexport type ArrowMiddlewareProps = {\n arrowRef: Ref<HTMLElement | undefined>\n padding?: number | SideObject\n}\n\nexport const arrowMiddleware = ({\n arrowRef,\n padding,\n}: ArrowMiddlewareProps): Middleware => {\n return {\n name: 'arrow',\n options: {\n element: arrowRef,\n padding,\n },\n\n fn(args) {\n const arrowEl = unref(arrowRef)\n if (!arrowEl) return {}\n\n return arrowCore({\n element: arrowEl,\n padding,\n }).fn(args)\n },\n }\n}\n"],"names":["arrowCore"],"mappings":";;;;;;;AAKY,MAAC,gBAAgB,GAAG,UAAU,CAAC,EAAE,EAAE;AAC/C,MAAM,cAAc,GAAG,CAAC,KAAK,KAAK;AAClC,EAAE,IAAI,CAAC,QAAQ;AACf,IAAI,OAAO;AACX,EAAE,IAAI,CAAC,KAAK;AACZ,IAAI,OAAO,KAAK,CAAC;AACjB,EAAE,MAAM,OAAO,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AACtC,EAAE,IAAI,OAAO;AACb,IAAI,OAAO,OAAO,CAAC;AACnB,EAAE,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AACU,MAAC,uBAAuB,GAAG,CAAC,MAAM,EAAE,GAAG,KAAK;AACxD,EAAE,MAAM,KAAK,GAAG,MAAM,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACtD,EAAE,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;AAC1C,EAAE;AACU,MAAC,WAAW,GAAG,CAAC;AAC5B,EAAE,UAAU;AACZ,EAAE,SAAS;AACX,EAAE,QAAQ;AACV,CAAC,KAAK;AACN,EAAE,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC;AAC7B,EAAE,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC;AAC3B,EAAE,MAAM,CAAC,GAAG,GAAG,EAAE,CAAC;AAClB,EAAE,MAAM,CAAC,GAAG,GAAG,EAAE,CAAC;AAClB,EAAE,MAAM,cAAc,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;AACjC,EAAE,MAAM,MAAM,GAAG;AACj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AACV,IAAI,YAAY;AAChB,IAAI,UAAU;AACd,GAAG,CAAC;AACJ,EAAE;AACU,MAAC,eAAe,GAAG,CAAC;AAChC,EAAE,QAAQ;AACV,EAAE,OAAO;AACT,CAAC,KAAK;AACN,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE;AACb,MAAM,OAAO,EAAE,QAAQ;AACvB,MAAM,OAAO;AACb,KAAK;AACL,IAAI,EAAE,CAAC,IAAI,EAAE;AACb,MAAM,MAAM,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;AACtC,MAAM,IAAI,CAAC,OAAO;AAClB,QAAQ,OAAO,EAAE,CAAC;AAClB,MAAM,OAAOA,KAAS,CAAC;AACvB,QAAQ,OAAO,EAAE,OAAO;AACxB,QAAQ,OAAO;AACf,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;AAClB,KAAK;AACL,GAAG,CAAC;AACJ;;;;"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { MaybeRef } from '@vueuse/core';
|
|
2
|
-
import type {
|
|
2
|
+
import type { App, Ref } from 'vue';
|
|
3
3
|
import type { ConfigProviderContext } from 'element-plus/es/tokens';
|
|
4
4
|
export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
|
|
5
5
|
export declare function useGlobalConfig(): Ref<ConfigProviderContext>;
|
|
6
6
|
export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContext>, app?: App<any> | undefined, global?: boolean) => import("vue").ComputedRef<Partial<import("vue").ExtractPropTypes<{
|
|
7
|
+
readonly a11y: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
7
8
|
readonly locale: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<import("../../locale").Language>, unknown, unknown, unknown, unknown>;
|
|
8
|
-
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, unknown, unknown, "
|
|
9
|
+
readonly size: import("element-plus/es/utils").BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "large", unknown>;
|
|
9
10
|
readonly button: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<import("../..").ButtonConfigContext>, unknown, unknown, unknown, unknown>;
|
|
11
|
+
readonly experimentalFeatures: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<import("element-plus/es/tokens").ExperimentalFeatures>, unknown, unknown, unknown, unknown>;
|
|
12
|
+
readonly keyboardNavigation: import("element-plus/es/utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
10
13
|
readonly message: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<import("../..").MessageConfigContext>, unknown, unknown, unknown, unknown>;
|
|
11
14
|
readonly zIndex: import("element-plus/es/utils").BuildPropReturn<NumberConstructor, unknown, unknown, unknown, unknown>;
|
|
12
15
|
readonly namespace: import("element-plus/es/utils").BuildPropReturn<StringConstructor, "el", unknown, unknown, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-global-config/index.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-global-config/index.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, provide, ref, unref } from 'vue'\nimport { configProviderContextKey } from '@element-plus/tokens'\nimport { debugWarn, keysOf } from '@element-plus/utils'\nimport type { MaybeRef } from '@vueuse/core'\nimport type { App, Ref } from 'vue'\nimport type { ConfigProviderContext } from '@element-plus/tokens'\n\n// this is meant to fix global methods like `ElMessage(opts)`, this way we can inject current locale\n// into the component as default injection value.\n// refer to: https://github.com/element-plus/element-plus/issues/2610#issuecomment-887965266\nconst globalConfig = ref<ConfigProviderContext>()\n\nexport function useGlobalConfig<\n K extends keyof ConfigProviderContext,\n D extends ConfigProviderContext[K]\n>(\n key: K,\n defaultValue?: D\n): Ref<Exclude<ConfigProviderContext[K], undefined> | D>\nexport function useGlobalConfig(): Ref<ConfigProviderContext>\nexport function useGlobalConfig(\n key?: keyof ConfigProviderContext,\n defaultValue = undefined\n) {\n const config = getCurrentInstance()\n ? inject(configProviderContextKey, globalConfig)\n : globalConfig\n if (key) {\n return computed(() => config.value?.[key] ?? defaultValue)\n } else {\n return config\n }\n}\n\nexport const provideGlobalConfig = (\n config: MaybeRef<ConfigProviderContext>,\n app?: App,\n global = false\n) => {\n const inSetup = !!getCurrentInstance()\n const oldConfig = inSetup ? useGlobalConfig() : undefined\n\n const provideFn = app?.provide ?? (inSetup ? provide : undefined)\n if (!provideFn) {\n debugWarn(\n 'provideGlobalConfig',\n 'provideGlobalConfig() can only be used inside setup().'\n )\n return\n }\n\n const context = computed(() => {\n const cfg = unref(config)\n if (!oldConfig?.value) return cfg\n return mergeConfig(oldConfig.value, cfg)\n })\n provideFn(configProviderContextKey, context)\n if (global || !globalConfig.value) {\n globalConfig.value = context.value\n }\n return context\n}\n\nconst mergeConfig = (\n a: ConfigProviderContext,\n b: ConfigProviderContext\n): ConfigProviderContext => {\n const keys = [...new Set([...keysOf(a), ...keysOf(b)])]\n const obj = {}\n for (const key of keys) {\n obj[key] = b[key] ?? a[key]\n }\n return obj\n}\n"],"names":[],"mappings":";;;;;;;AAGA,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC;AACpB,SAAS,eAAe,CAAC,GAAG,EAAE,YAAY,GAAG,KAAK,CAAC,EAAE;AAC5D,EAAE,MAAM,MAAM,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC,wBAAwB,EAAE,YAAY,CAAC,GAAG,YAAY,CAAC;AACtG,EAAE,IAAI,GAAG,EAAE;AACX,IAAI,OAAO,QAAQ,CAAC,MAAM;AAC1B,MAAM,IAAI,EAAE,EAAE,EAAE,CAAC;AACjB,MAAM,OAAO,CAAC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KAAK,EAAE;AACrC,IAAI,YAAY,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;AACvC,GAAG;AACH,EAAE,OAAO,OAAO,CAAC;AACjB,EAAE;AACF,MAAM,WAAW,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;AAC9B,EAAE,IAAI,EAAE,CAAC;AACT,EAAE,MAAM,IAAI,GAAG,CAAC,mBAAmB,IAAI,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1E,EAAE,MAAM,GAAG,GAAG,EAAE,CAAC;AACjB,EAAE,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;AAC1B,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AACnD,GAAG;AACH,EAAE,OAAO,GAAG,CAAC;AACb,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-intermediate-render/index.ts"],"sourcesContent":["import { nextTick,
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-intermediate-render/index.ts"],"sourcesContent":["import { nextTick, unref, watch } from 'vue'\n\nimport type { Ref } from 'vue'\n\nexport type UseDelayedRenderProps = {\n indicator: Ref<boolean>\n intermediateIndicator: Ref<boolean>\n shouldSetIntermediate?: (step: 'show' | 'hide') => boolean\n beforeShow?: () => void\n beforeHide?: () => void\n afterShow?: () => void\n afterHide?: () => void\n}\n\nexport const useDelayedRender = ({\n indicator,\n intermediateIndicator,\n shouldSetIntermediate = () => true,\n beforeShow,\n afterShow,\n afterHide,\n beforeHide,\n}: UseDelayedRenderProps) => {\n watch(\n () => unref(indicator),\n (val) => {\n if (val) {\n beforeShow?.()\n nextTick(() => {\n if (!unref(indicator)) return\n if (shouldSetIntermediate('show')) {\n intermediateIndicator.value = true\n }\n })\n } else {\n beforeHide?.()\n nextTick(() => {\n if (unref(indicator)) return\n\n if (shouldSetIntermediate('hide')) {\n intermediateIndicator.value = false\n }\n })\n }\n }\n )\n\n // because we don't always set the value ourselves, so that we\n // simply watch the value's state, then invoke the corresponding hook.\n watch(\n () => intermediateIndicator.value,\n (val) => {\n if (val) {\n afterShow?.()\n } else {\n afterHide?.()\n }\n }\n )\n}\n"],"names":[],"mappings":";;AACY,MAAC,gBAAgB,GAAG,CAAC;AACjC,EAAE,SAAS;AACX,EAAE,qBAAqB;AACvB,EAAE,qBAAqB,GAAG,MAAM,IAAI;AACpC,EAAE,UAAU;AACZ,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,UAAU;AACZ,CAAC,KAAK;AACN,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,KAAK;AACzC,IAAI,IAAI,GAAG,EAAE;AACb,MAAM,UAAU,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,UAAU,EAAE,CAAC;AACjD,MAAM,QAAQ,CAAC,MAAM;AACrB,QAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;AAC7B,UAAU,OAAO;AACjB,QAAQ,IAAI,qBAAqB,CAAC,MAAM,CAAC,EAAE;AAC3C,UAAU,qBAAqB,CAAC,KAAK,GAAG,IAAI,CAAC;AAC7C,SAAS;AACT,OAAO,CAAC,CAAC;AACT,KAAK,MAAM;AACX,MAAM,UAAU,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,UAAU,EAAE,CAAC;AACjD,MAAM,QAAQ,CAAC,MAAM;AACrB,QAAQ,IAAI,KAAK,CAAC,SAAS,CAAC;AAC5B,UAAU,OAAO;AACjB,QAAQ,IAAI,qBAAqB,CAAC,MAAM,CAAC,EAAE;AAC3C,UAAU,qBAAqB,CAAC,KAAK,GAAG,KAAK,CAAC;AAC9C,SAAS;AACT,OAAO,CAAC,CAAC;AACT,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE,KAAK,CAAC,MAAM,qBAAqB,CAAC,KAAK,EAAE,CAAC,GAAG,KAAK;AACpD,IAAI,IAAI,GAAG,EAAE;AACb,MAAM,SAAS,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,SAAS,EAAE,CAAC;AAC/C,KAAK,MAAM;AACX,MAAM,SAAS,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,SAAS,EAAE,CAAC;AAC/C,KAAK;AACL,GAAG,CAAC,CAAC;AACL;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-locale/index.ts"],"sourcesContent":["import { computed, ref, unref
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-locale/index.ts"],"sourcesContent":["import { computed, isRef, ref, unref } from 'vue'\nimport { get } from 'lodash-unified'\nimport English from '@element-plus/locale/lang/en'\nimport { useGlobalConfig } from '../use-global-config'\nimport type { MaybeRef } from '@vueuse/core'\nimport type { Ref } from 'vue'\nimport type { Language } from '@element-plus/locale'\n\nexport type TranslatorOption = Record<string, string | number>\nexport type Translator = (path: string, option?: TranslatorOption) => string\nexport type LocaleContext = {\n locale: Ref<Language>\n lang: Ref<string>\n t: Translator\n}\n\nexport const buildTranslator =\n (locale: MaybeRef<Language>): Translator =>\n (path, option) =>\n translate(path, option, unref(locale))\n\nexport const translate = (\n path: string,\n option: undefined | TranslatorOption,\n locale: Language\n): string =>\n (get(locale, path, path) as string).replace(\n /\\{(\\w+)\\}/g,\n (_, key) => `${option?.[key] ?? `{${key}}`}`\n )\n\nexport const buildLocaleContext = (\n locale: MaybeRef<Language>\n): LocaleContext => {\n const lang = computed(() => unref(locale).name)\n const localeRef = isRef(locale) ? locale : ref(locale)\n return {\n lang,\n locale: localeRef,\n t: buildTranslator(locale),\n }\n}\n\nexport const useLocale = () => {\n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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-lockscreen/index.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-lockscreen/index.ts"],"sourcesContent":["import { isRef, onScopeDispose, watch } from 'vue'\n\nimport { isClient } from '@vueuse/core'\nimport {\n addClass,\n getScrollBarWidth,\n getStyle,\n hasClass,\n removeClass,\n throwError,\n} from '@element-plus/utils'\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 if (!isClient || hasClass(document.body, 'el-popup-parent--hidden')) {\n return\n }\n\n let scrollBarWidth = 0\n let withoutHiddenClass = false\n let bodyPaddingRight = '0'\n let computedBodyPaddingRight = 0\n\n const cleanup = () => {\n removeClass(document.body, 'el-popup-parent--hidden')\n if (withoutHiddenClass) {\n document.body.style.paddingRight = bodyPaddingRight\n }\n }\n watch(trigger, (val) => {\n if (!val) {\n cleanup()\n return\n }\n\n withoutHiddenClass = !hasClass(document.body, 'el-popup-parent--hidden')\n if (withoutHiddenClass) {\n bodyPaddingRight = document.body.style.paddingRight\n computedBodyPaddingRight = Number.parseInt(\n getStyle(document.body, 'paddingRight'),\n 10\n )\n }\n scrollBarWidth = getScrollBarWidth()\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.paddingRight = `${\n computedBodyPaddingRight + scrollBarWidth\n }px`\n }\n addClass(document.body, 'el-popup-parent--hidden')\n })\n onScopeDisp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AAC9F,KAAK;AACL,IAAI,cAAc,GAAG,iBAAiB,EAAE,CAAC;AACzC,IAAI,MAAM,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAC,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC;AAC/F,IAAI,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAC/D,IAAI,IAAI,cAAc,GAAG,CAAC,KAAK,eAAe,IAAI,aAAa,KAAK,QAAQ,CAAC,IAAI,kBAAkB,EAAE;AACrG,MAAM,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,CAAC,EAAE,wBAAwB,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC;AAC1F,KAAK;AACL,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC;AACvD,GAAG,CAAC,CAAC;AACL,EAAE,cAAc,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC;AAClC;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExtractPropTypes, Ref } from 'vue';
|
|
2
2
|
declare const _prop: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<boolean | null>, null, false, never, never>;
|
|
3
3
|
declare const _event: import("element-plus/es/utils").BuildPropReturn<import("element-plus/es/utils").PropWrapper<(val: boolean) => void>, never, false, never, never>;
|
|
4
4
|
declare type _UseModelToggleProps<T extends string> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-model-toggle/index.ts"],"sourcesContent":["import { computed, getCurrentInstance,
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-model-toggle/index.ts"],"sourcesContent":["import { computed, getCurrentInstance, onMounted, watch } from 'vue'\nimport { isFunction } from '@vue/shared'\nimport { isClient } from '@vueuse/core'\nimport { buildProp, definePropType, isBoolean } from '@element-plus/utils'\nimport type { RouteLocationNormalizedLoaded } from 'vue-router'\n\nimport type { ComponentPublicInstance, ExtractPropTypes, Ref } from 'vue'\n\nconst _prop = buildProp({\n type: definePropType<boolean | null>(Boolean),\n default: null,\n} as const)\nconst _event = buildProp({\n type: definePropType<(val: boolean) => void>(Function),\n} as const)\n\ntype _UseModelToggleProps<T extends string> = {\n [K in T]: typeof _prop\n} & {\n [K in `onUpdate:${T}`]: typeof _event\n}\n\nexport const createModelToggleComposable = <T extends string>(name: T) => {\n const useModelToggleProps = {\n [name]: _prop,\n [`onUpdate:${name}`]: _event,\n } as _UseModelToggleProps<T>\n\n const useModelToggleEmits = [`update:${name}`]\n\n const useModelToggle = ({\n indicator,\n shouldHideWhenRouteChanges,\n shouldProceed,\n onShow,\n onHide,\n }: ModelToggleParams) => {\n const instance = getCurrentInstance()!\n const props = instance.props as _UseModelToggleProps<T> & {\n disabled: boolean\n }\n const { emit } = instance\n\n const updateEventKey = `update:${name}`\n\n const hasUpdateHandler = computed(() =>\n isFunction(props[`onUpdate:${name}`])\n )\n // when it matches the default value we say this is absent\n // though this could be mistakenly passed from the user but we need to rule out that\n // condition\n const isModelBindingAbsent = computed(() => props[name] === null)\n\n const doShow = () => {\n if (indicator.value === true) {\n return\n }\n\n indicator.value = true\n if (isFunction(onShow)) {\n onShow()\n }\n }\n\n const doHide = () => {\n if (indicator.value === false) {\n return\n }\n\n indicator.value = false\n\n if (isFunction(onHide)) {\n onHide()\n }\n }\n\n const show = () => {\n if (\n props.disabled === true ||\n (isFunction(shouldProceed) && !shouldProceed())\n )\n return\n\n const shouldEmit = hasUpdateHandler.value && isClient\n\n if (shouldEmit) {\n emit(updateEventKey, true)\n }\n\n if (isModelBindingAbsent.value || !shouldEmit) {\n doShow()\n }\n }\n\n const hide = () => {\n if (props.disabled === true || !isClient) return\n\n const shouldEmit = hasUpdateHandler.value && isClient\n\n if (shouldEmit) {\n emit(updateEventKey, false)\n }\n\n if (isModelBindingAbsent.value || !shouldEmit) {\n doHide()\n }\n }\n\n const onChange = (val: boolean) => {\n if (!isBoolean(val)) return\n if (props.disabled && val) {\n if (hasUpdateHandler.value) {\n emit(updateEventKey, false)\n }\n } else if (indicator.value !== val) {\n if (val) {\n doShow()\n } else {\n doHide()\n }\n }\n }\n\n const toggle = () => {\n if (indicator.value) {\n hide()\n } else {\n show()\n }\n }\n\n watch(() => props[name], onChange as any)\n\n if (\n shouldHideWhenRouteChanges &&\n instance.appContext.config.globalProperties.$route !== undefined\n ) {\n watch(\n () => ({\n ...(\n instance.proxy as ComponentPublicInstance<{\n $route: RouteLocationNormalizedLoaded\n }>\n ).$route,\n }),\n () => {\n if (shouldHideWhenRouteChanges.value && indicator.value) {\n hide()\n }\n }\n )\n }\n\n onMounted(() => {\n onChange(props[name] as boolean)\n })\n\n return {\n hide,\n show,\n toggle,\n }\n }\n\n return {\n useModelToggle,\n useModelToggleProps,\n useModelToggleEmits,\n }\n}\n\nconst { useModelToggle, useModelToggleProps, useModelToggleEmits } =\n createModelToggleComposable('modelValue')\n\nexport { useModelToggle, useModelToggleEmits, useModelToggleProps }\n\nexport type UseModelToggleProps = ExtractPropTypes<typeof useModelToggleProps>\n\nexport type ModelToggleParams = {\n indicator: Ref<boolean>\n shouldHideWhenRouteChanges?: Ref<boolean>\n shouldProceed?: () => boolean\n onShow?: () => void\n onHide?: () => void\n}\n"],"names":[],"mappings":";;;;;;AAIA,MAAM,KAAK,GAAG,SAAS,CAAC;AACxB,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC;AAC/B,EAAE,OAAO,EAAE,IAAI;AACf,CAAC,CAAC,CAAC;AACH,MAAM,MAAM,GAAG,SAAS,CAAC;AACzB,EAAE,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAChC,CAAC,CAAC,CAAC;AACS,MAAC,2BAA2B,GAAG,CAAC,IAAI,KAAK;AACrD,EAAE,MAAM,oBAAoB,GAAG;AAC/B,IAAI,CAAC,IAAI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ACJ,EAAE;AACG,MAAC,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,GAAG,2BAA2B,CAAC,YAAY;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-namespace/index.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-namespace/index.ts"],"sourcesContent":["import { computed, unref } from 'vue'\nimport { useGlobalConfig } from '../use-global-config'\n\nconst defaultNamespace = 'el'\nconst statePrefix = 'is-'\n\nconst _bem = (\n namespace: string,\n block: string,\n blockSuffix: string,\n element: string,\n modifier: string\n) => {\n let cls = `${namespace}-${block}`\n if (blockSuffix) {\n cls += `-${blockSuffix}`\n }\n if (element) {\n cls += `__${element}`\n }\n if (modifier) {\n cls += `--${modifier}`\n }\n return cls\n}\n\nexport const useNamespace = (block: string) => {\n const globalConfig = useGlobalConfig('namespace')\n const namespace = computed(() => globalConfig.value || defaultNamespace)\n const b = (blockSuffix = '') =>\n _bem(unref(namespace), block, blockSuffix, '', '')\n const e = (element?: string) =>\n element ? _bem(unref(namespace), block, '', element, '') : ''\n const m = (modifier?: string) =>\n modifier ? _bem(unref(namespace), block, '', '', modifier) : ''\n const be = (blockSuffix?: string, element?: string) =>\n blockSuffix && element\n ? _bem(unref(namespace), block, blockSuffix, element, '')\n : ''\n const em = (element?: string, modifier?: string) =>\n element && modifier\n ? _bem(unref(namespace), block, '', element, modifier)\n : ''\n const bm = (blockSuffix?: string, modifier?: string) =>\n blockSuffix && modifier\n ? _bem(unref(namespace), block, blockSuffix, '', modifier)\n : ''\n const bem = (blockSuffix?: string, element?: string, modifier?: string) =>\n blockSuffix && element && modifier\n ? _bem(unref(namespace), block, blockSuffix, element, modifier)\n : ''\n const is: {\n (name: string, state: boolean | undefined): string\n (name: string): string\n } = (name: string, ...args: [boolean | undefined] | []) => {\n const state = args.length >= 1 ? args[0]! : true\n return name && state ? `${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AW,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;AACxD,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,SAAS;AACb,IAAI,CAAC;AACL,IAAI,CAAC;AACL,IAAI,CAAC;AACL,IAAI,EAAE;AACN,IAAI,EAAE;AACN,IAAI,EAAE;AACN,IAAI,GAAG;AACP,IAAI,EAAE;AACN,GAAG,CAAC;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-prop/index.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-prop/index.ts"],"sourcesContent":["import { computed, getCurrentInstance } from 'vue'\nimport type { ComputedRef } from 'vue'\n\nexport const useProp = <T>(name: string): ComputedRef<T | undefined> => {\n const vm = getCurrentInstance()!\n return computed(() => vm.proxy?.$props[name] ?? undefined)\n}\n"],"names":[],"mappings":";;AACY,MAAC,OAAO,GAAG,CAAC,IAAI,KAAK;AACjC,EAAE,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAAC;AAClC,EAAE,OAAO,QAAQ,CAAC,MAAM;AACxB,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC;AACf,IAAI,OAAO,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,IAAI,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC;AAC3F,GAAG,CAAC,CAAC;AACL;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-teleport/index.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-teleport/index.ts"],"sourcesContent":["import { Teleport, h, onUnmounted, ref } from 'vue'\nimport { NOOP } from '@vue/shared'\nimport { isClient } from '@vueuse/core'\nimport { createGlobalNode, removeGlobalNode } from '@element-plus/utils'\n\nimport type { Ref, VNode } from 'vue'\n\nexport const useTeleport = (\n contentRenderer: () => VNode,\n appendToBody: Ref<boolean>\n) => {\n const isTeleportVisible = ref(false)\n\n if (!isClient) {\n return {\n isTeleportVisible,\n showTeleport: NOOP,\n hideTeleport: NOOP,\n renderTeleport: NOOP,\n }\n }\n\n let $el: HTMLElement | null = null\n\n const showTeleport = () => {\n isTeleportVisible.value = true\n // this allows the delayed showing strategy since the the content itself could be enterable\n // e.g. el-popper\n if ($el !== null) return\n\n $el = createGlobalNode()\n }\n\n const hideTeleport = () => {\n isTeleportVisible.value = false\n if ($el !== null) {\n removeGlobalNode($el)\n $el = null\n }\n }\n\n const renderTeleport = () => {\n return appendToBody.value !== true\n ? contentRenderer()\n : isTeleportVisible.value\n ? [h(Teleport, { to: $el }, contentRenderer())]\n : undefined\n }\n\n onUnmounted(hideTeleport)\n\n return {\n isTeleportVisible,\n showTeleport,\n hideTeleport,\n renderTeleport,\n }\n}\n"],"names":[],"mappings":";;;;;;AAIY,MAAC,WAAW,GAAG,CAAC,eAAe,EAAE,YAAY,KAAK;AAC9D,EAAE,MAAM,iBAAiB,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;AACvC,EAAE,IAAI,CAAC,QAAQ,EAAE;AACjB,IAAI,OAAO;AACX,MAAM,iBAAiB;AACvB,MAAM,YAAY,EAAE,IAAI;AACxB,MAAM,YAAY,EAAE,IAAI;AACxB,MAAM,cAAc,EAAE,IAAI;AAC1B,KAAK,CAAC;AACN,GAAG;AACH,EAAE,IAAI,GAAG,GAAG,IAAI,CAAC;AACjB,EAAE,MAAM,YAAY,GAAG,MAAM;AAC7B,IAAI,iBAAiB,CAAC,KAAK,GAAG,IAAI,CAAC;AACnC,IAAI,IAAI,GAAG,KAAK,IAAI;AACpB,MAAM,OAAO;AACb,IAAI,GAAG,GAAG,gBAAgB,EAAE,CAAC;AAC7B,GAAG,CAAC;AACJ,EAAE,MAAM,YAAY,GAAG,MAAM;AAC7B,IAAI,iBAAiB,CAAC,KAAK,GAAG,KAAK,CAAC;AACpC,IAAI,IAAI,GAAG,KAAK,IAAI,EAAE;AACtB,MAAM,gBAAgB,CAAC,GAAG,CAAC,CAAC;AAC5B,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,KAAK;AACL,GAAG,CAAC;AACJ,EAAE,MAAM,cAAc,GAAG,MAAM;AAC/B,IAAI,OAAO,YAAY,CAAC,KAAK,KAAK,IAAI,GAAG,eAAe,EAAE,GAAG,iBAAiB,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;AAC9I,GAAG,CAAC;AACJ,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;AAC5B,EAAE,OAAO;AACT,IAAI,iBAAiB;AACrB,IAAI,YAAY;AAChB,IAAI,YAAY;AAChB,IAAI,cAAc;AAClB,GAAG,CAAC;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-z-index/index.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-z-index/index.ts"],"sourcesContent":["import { computed, ref } from 'vue'\nimport { useGlobalConfig } from '../use-global-config'\n\nconst zIndex = ref(0)\n\nexport const useZIndex = () => {\n const initialZIndex = useGlobalConfig('zIndex', 2000) // TODO: move to @element-plus/constants\n const currentZIndex = computed(() => initialZIndex.value + zIndex.value)\n\n const nextZIndex = () => {\n zIndex.value++\n return currentZIndex.value\n }\n\n return {\n initialZIndex,\n currentZIndex,\n nextZIndex,\n }\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;AACV,MAAC,SAAS,GAAG,MAAM;AAC/B,EAAE,MAAM,aAAa,GAAG,eAAe,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AACvD,EAAE,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,aAAa,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AAC3E,EAAE,MAAM,UAAU,GAAG,MAAM;AAC3B,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;AACnB,IAAI,OAAO,aAAa,CAAC,KAAK,CAAC;AAC/B,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,aAAa;AACjB,IAAI,aAAa;AACjB,IAAI,UAAU;AACd,GAAG,CAAC;AACJ;;;;"}
|
package/es/index.d.ts
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import installer from './defaults';
|
|
2
2
|
export * from 'element-plus/es/components';
|
|
3
|
+
export * from 'element-plus/es/constants';
|
|
3
4
|
export * from 'element-plus/es/directives';
|
|
4
5
|
export * from 'element-plus/es/hooks';
|
|
5
6
|
export * from 'element-plus/es/tokens';
|
|
6
7
|
export { makeInstaller } from './make-installer';
|
|
7
8
|
export declare const install: (app: import("vue").App<any>, options?: Partial<import("vue").ExtractPropTypes<{
|
|
9
|
+
readonly a11y: import("./utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
8
10
|
readonly locale: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("./locale").Language>, unknown, unknown, unknown, unknown>;
|
|
9
|
-
readonly size: import("./utils").BuildPropReturn<StringConstructor, unknown, unknown, "
|
|
11
|
+
readonly size: import("./utils").BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "large", unknown>;
|
|
10
12
|
readonly button: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("element-plus/es/components").ButtonConfigContext>, unknown, unknown, unknown, unknown>;
|
|
13
|
+
readonly experimentalFeatures: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("element-plus/es/tokens").ExperimentalFeatures>, unknown, unknown, unknown, unknown>;
|
|
14
|
+
readonly keyboardNavigation: import("./utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
11
15
|
readonly message: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("element-plus/es/components").MessageConfigContext>, unknown, unknown, unknown, unknown>;
|
|
12
16
|
readonly zIndex: import("./utils").BuildPropReturn<NumberConstructor, unknown, unknown, unknown, unknown>;
|
|
13
17
|
readonly namespace: import("./utils").BuildPropReturn<StringConstructor, "el", unknown, unknown, unknown>;
|
|
14
|
-
}>>) => void;
|
|
18
|
+
}>> | undefined) => void;
|
|
15
19
|
export declare const version: string;
|
|
16
20
|
export default installer;
|
|
17
21
|
export { default as dayjs } from 'dayjs';
|
package/es/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import installer from './defaults.mjs';
|
|
2
2
|
export { default } from './defaults.mjs';
|
|
3
3
|
import './components/index.mjs';
|
|
4
|
+
import './constants/index.mjs';
|
|
4
5
|
import './directives/index.mjs';
|
|
5
6
|
import './hooks/index.mjs';
|
|
6
7
|
import './tokens/index.mjs';
|
|
@@ -89,12 +90,14 @@ export { paginationEmits, paginationProps } from './components/pagination/src/pa
|
|
|
89
90
|
export { ElPagination } from './components/pagination/index.mjs';
|
|
90
91
|
export { popconfirmProps } from './components/popconfirm/src/popconfirm.mjs';
|
|
91
92
|
export { ElPopconfirm } from './components/popconfirm/index.mjs';
|
|
92
|
-
export { default as ElPopperArrow } from './components/popper/src/arrow.mjs';
|
|
93
|
-
export { default as ElPopperTrigger } from './components/popper/src/trigger.mjs';
|
|
94
|
-
export { default as ElPopperContent } from './components/popper/src/content.mjs';
|
|
95
93
|
export { useDeprecateAppendToBody } from './components/popper/src/deprecation.mjs';
|
|
96
|
-
export { Effect,
|
|
97
|
-
export {
|
|
94
|
+
export { Effect, usePopperProps } from './components/popper/src/popper.mjs';
|
|
95
|
+
export { usePopperTriggerProps } from './components/popper/src/trigger.mjs';
|
|
96
|
+
export { usePopperContentProps, usePopperCoreConfigProps } from './components/popper/src/content.mjs';
|
|
97
|
+
export { usePopperArrowProps } from './components/popper/src/arrow.mjs';
|
|
98
|
+
export { default as ElPopperArrow } from './components/popper/src/arrow2.mjs';
|
|
99
|
+
export { default as ElPopperTrigger } from './components/popper/src/trigger2.mjs';
|
|
100
|
+
export { default as ElPopperContent } from './components/popper/src/content2.mjs';
|
|
98
101
|
export { ElPopper } from './components/popper/index.mjs';
|
|
99
102
|
export { progressProps } from './components/progress/src/progress.mjs';
|
|
100
103
|
export { ElProgress } from './components/progress/index.mjs';
|
|
@@ -146,7 +149,7 @@ export { ElTimeline, ElTimelineItem } from './components/timeline/index.mjs';
|
|
|
146
149
|
export { useTooltipContentProps, useTooltipProps, useTooltipTriggerProps } from './components/tooltip/src/tooltip.mjs';
|
|
147
150
|
export { TOOLTIP_INJECTION_KEY } from './components/tooltip/src/tokens.mjs';
|
|
148
151
|
export { ElTooltip } from './components/tooltip/index.mjs';
|
|
149
|
-
export { CHANGE_EVENT } from './constants/event.mjs';
|
|
152
|
+
export { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from './constants/event.mjs';
|
|
150
153
|
export { ElTransfer } from './components/transfer/index.mjs';
|
|
151
154
|
export { ElTree } from './components/tree/index.mjs';
|
|
152
155
|
export { ElTreeV2 } from './components/tree-v2/index.mjs';
|
|
@@ -170,6 +173,9 @@ export { ElMessageBox } from './components/message-box/index.mjs';
|
|
|
170
173
|
export { notificationEmits, notificationProps, notificationTypes } from './components/notification/src/notification.mjs';
|
|
171
174
|
export { ElNotification } from './components/notification/index.mjs';
|
|
172
175
|
export { ElPopover, ElPopoverDirective } from './components/popover/index.mjs';
|
|
176
|
+
export { EVENT_CODE } from './constants/aria.mjs';
|
|
177
|
+
export { datePickTypes } from './constants/date-pick.mjs';
|
|
178
|
+
export { componentSizes } from './constants/size.mjs';
|
|
173
179
|
export { default as ClickOutside } from './directives/click-outside/index.mjs';
|
|
174
180
|
export { default as RepeatClick } from './directives/repeat-click/index.mjs';
|
|
175
181
|
export { default as TrapFocus } from './directives/trap-focus/index.mjs';
|
|
@@ -202,6 +208,7 @@ export { useDelayedToggle, useDelayedToggleProps } from './hooks/use-delayed-tog
|
|
|
202
208
|
export { FORWARD_REF_INJECTION_KEY, useForwardRef, useForwardRefDirective } from './hooks/use-forward-ref/index.mjs';
|
|
203
209
|
export { useNamespace } from './hooks/use-namespace/index.mjs';
|
|
204
210
|
export { useZIndex } from './hooks/use-z-index/index.mjs';
|
|
211
|
+
export { arrowMiddleware, getPositionDataWithUnit, useFloating, useFloatingProps } from './hooks/use-floating/index.mjs';
|
|
205
212
|
export { breadcrumbKey } from './tokens/breadcrumb.mjs';
|
|
206
213
|
export { buttonGroupContextKey } from './tokens/button.mjs';
|
|
207
214
|
export { carouselContextKey } from './tokens/carousel.mjs';
|
|
@@ -215,6 +222,7 @@ export { rowContextKey } from './tokens/row.mjs';
|
|
|
215
222
|
export { scrollbarContextKey } from './tokens/scrollbar.mjs';
|
|
216
223
|
export { tabsRootContextKey } from './tokens/tabs.mjs';
|
|
217
224
|
export { uploadContextKey } from './tokens/upload.mjs';
|
|
225
|
+
export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './tokens/popper.mjs';
|
|
218
226
|
|
|
219
227
|
const install = installer.install;
|
|
220
228
|
const version = installer.version;
|
package/es/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../packages/element-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@element-plus/components'\nexport * from '@element-plus/directives'\nexport * from '@element-plus/hooks'\nexport * from '@element-plus/tokens'\nexport { makeInstaller } from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n\nexport { default as dayjs } from 'dayjs'\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../packages/element-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@element-plus/components'\nexport * from '@element-plus/constants'\nexport * from '@element-plus/directives'\nexport * from '@element-plus/hooks'\nexport * from '@element-plus/tokens'\nexport { makeInstaller } from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n\nexport { default as dayjs } from 'dayjs'\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOY,MAAC,OAAO,GAAG,SAAS,CAAC,QAAQ;AAC7B,MAAC,OAAO,GAAG,SAAS,CAAC;;;;"}
|
package/es/make-installer.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import type { App, Plugin } from 'vue';
|
|
2
|
-
import type { ConfigProviderContext } from 'element-plus/es/tokens';
|
|
3
2
|
export declare const makeInstaller: (components?: Plugin[]) => {
|
|
4
3
|
version: string;
|
|
5
|
-
install: (app: App, options?:
|
|
4
|
+
install: (app: App, options?: Partial<import("vue").ExtractPropTypes<{
|
|
5
|
+
readonly a11y: import("./utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
6
|
+
readonly locale: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("./locale").Language>, unknown, unknown, unknown, unknown>;
|
|
7
|
+
readonly size: import("./utils").BuildPropReturn<StringConstructor, unknown, unknown, "" | "small" | "large", unknown>;
|
|
8
|
+
readonly button: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("./components").ButtonConfigContext>, unknown, unknown, unknown, unknown>;
|
|
9
|
+
readonly experimentalFeatures: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("element-plus/es/tokens").ExperimentalFeatures>, unknown, unknown, unknown, unknown>;
|
|
10
|
+
readonly keyboardNavigation: import("./utils").BuildPropReturn<BooleanConstructor, true, unknown, unknown, unknown>;
|
|
11
|
+
readonly message: import("./utils").BuildPropReturn<import("./utils").PropWrapper<import("./components").MessageConfigContext>, unknown, unknown, unknown, unknown>;
|
|
12
|
+
readonly zIndex: import("./utils").BuildPropReturn<NumberConstructor, unknown, unknown, unknown, unknown>;
|
|
13
|
+
readonly namespace: import("./utils").BuildPropReturn<StringConstructor, "el", unknown, unknown, unknown>;
|
|
14
|
+
}>> | undefined) => void;
|
|
6
15
|
};
|
package/es/make-installer.mjs
CHANGED
|
@@ -4,12 +4,13 @@ import { provideGlobalConfig } from './hooks/use-global-config/index.mjs';
|
|
|
4
4
|
|
|
5
5
|
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
6
6
|
const makeInstaller = (components = []) => {
|
|
7
|
-
const install = (app, options
|
|
7
|
+
const install = (app, options) => {
|
|
8
8
|
if (app[INSTALLED_KEY])
|
|
9
9
|
return;
|
|
10
10
|
app[INSTALLED_KEY] = true;
|
|
11
11
|
components.forEach((c) => app.use(c));
|
|
12
|
-
|
|
12
|
+
if (options)
|
|
13
|
+
provideGlobalConfig(options, app, true);
|
|
13
14
|
};
|
|
14
15
|
return {
|
|
15
16
|
version,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-installer.mjs","sources":["../../../packages/element-plus/make-installer.ts"],"sourcesContent":["import { provideGlobalConfig } from '@element-plus/hooks'\nimport { version } from './version'\nimport type { App, Plugin } from 'vue'\nimport type { ConfigProviderContext } from '@element-plus/tokens'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nexport const makeInstaller = (components: Plugin[] = []) => {\n const install = (app: App, options
|
|
1
|
+
{"version":3,"file":"make-installer.mjs","sources":["../../../packages/element-plus/make-installer.ts"],"sourcesContent":["import { provideGlobalConfig } from '@element-plus/hooks'\nimport { version } from './version'\nimport type { App, Plugin } from 'vue'\nimport type { ConfigProviderContext } from '@element-plus/tokens'\n\nconst INSTALLED_KEY = Symbol('INSTALLED_KEY')\n\nexport const makeInstaller = (components: Plugin[] = []) => {\n const install = (app: App, options?: ConfigProviderContext) => {\n if (app[INSTALLED_KEY]) return\n\n app[INSTALLED_KEY] = true\n components.forEach((c) => app.use(c))\n\n if (options) provideGlobalConfig(options, app, true)\n }\n\n return {\n version,\n install,\n }\n}\n"],"names":[],"mappings":";;;;AAEA,MAAM,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AAClC,MAAC,aAAa,GAAG,CAAC,UAAU,GAAG,EAAE,KAAK;AAClD,EAAE,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK;AACpC,IAAI,IAAI,GAAG,CAAC,aAAa,CAAC;AAC1B,MAAM,OAAO;AACb,IAAI,GAAG,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;AAC9B,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1C,IAAI,IAAI,OAAO;AACf,MAAM,mBAAmB,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AAC9C,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,OAAO;AACX,IAAI,OAAO;AACX,GAAG,CAAC;AACJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { configProviderProps } from 'element-plus/es/components/config-provider';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ExtractPropTypes, InjectionKey, Ref } from 'vue';
|
|
3
3
|
export declare type ConfigProviderContext = Partial<ExtractPropTypes<typeof configProviderProps>>;
|
|
4
4
|
export declare const configProviderContextKey: InjectionKey<Ref<ConfigProviderContext>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-provider.mjs","sources":["../../../../packages/tokens/config-provider.ts"],"sourcesContent":["import type { configProviderProps } from '@element-plus/components/config-provider'\nimport type {
|
|
1
|
+
{"version":3,"file":"config-provider.mjs","sources":["../../../../packages/tokens/config-provider.ts"],"sourcesContent":["import type { configProviderProps } from '@element-plus/components/config-provider'\nimport type { ExtractPropTypes, InjectionKey, Ref } from 'vue'\n\nexport type ConfigProviderContext = Partial<\n ExtractPropTypes<typeof configProviderProps>\n>\n\nexport const configProviderContextKey: InjectionKey<\n Ref<ConfigProviderContext>\n> = Symbol()\n"],"names":[],"mappings":"AAAY,MAAC,wBAAwB,GAAG,MAAM;;;;"}
|
package/es/tokens/dialog.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CSSProperties, ComputedRef, InjectionKey, Ref } from 'vue';
|
|
2
2
|
import type { useNamespace } from 'element-plus/es/hooks';
|
|
3
3
|
export declare type DialogContext = {
|
|
4
4
|
dialogRef: Ref<HTMLElement | undefined>;
|
package/es/tokens/dialog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.mjs","sources":["../../../../packages/tokens/dialog.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"dialog.mjs","sources":["../../../../packages/tokens/dialog.ts"],"sourcesContent":["import type { CSSProperties, ComputedRef, InjectionKey, Ref } from 'vue'\nimport type { useNamespace } from '@element-plus/hooks'\n\nexport type DialogContext = {\n dialogRef: Ref<HTMLElement | undefined>\n headerRef: Ref<HTMLElement | undefined>\n ns: ReturnType<typeof useNamespace>\n rendered: Ref<boolean>\n style: ComputedRef<CSSProperties>\n}\n\nexport const dialogInjectionKey: InjectionKey<DialogContext> =\n Symbol('dialogInjectionKey')\n"],"names":[],"mappings":"AAAY,MAAC,kBAAkB,GAAG,MAAM,CAAC,oBAAoB;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type ExperimentalFeatures = {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experimental-features.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/es/tokens/form.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { InjectionKey, SetupContext, UnwrapRef } from 'vue';
|
|
2
2
|
import type { RuleItem, ValidateError, ValidateFieldsError } from 'async-validator';
|
|
3
3
|
import type { ComponentSize } from 'element-plus/es/constants';
|
|
4
|
-
import type {
|
|
4
|
+
import type { FormEmits, FormItemProp, FormItemProps, FormLabelWidthContext, FormProps } from 'element-plus/es/components/form';
|
|
5
5
|
import type { Arrayable } from 'element-plus/es/utils';
|
|
6
6
|
export interface FormItemRule extends RuleItem {
|
|
7
7
|
trigger?: Arrayable<string>;
|
package/es/tokens/form.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.mjs","sources":["../../../../packages/tokens/form.ts"],"sourcesContent":["import type { InjectionKey, SetupContext, UnwrapRef } from 'vue'\nimport type {\n RuleItem,\n ValidateError,\n ValidateFieldsError,\n} from 'async-validator'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type {\n
|
|
1
|
+
{"version":3,"file":"form.mjs","sources":["../../../../packages/tokens/form.ts"],"sourcesContent":["import type { InjectionKey, SetupContext, UnwrapRef } from 'vue'\nimport type {\n RuleItem,\n ValidateError,\n ValidateFieldsError,\n} from 'async-validator'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type {\n FormEmits,\n FormItemProp,\n FormItemProps,\n FormLabelWidthContext,\n FormProps,\n} from '@element-plus/components/form'\nimport type { Arrayable } from '@element-plus/utils'\n\nexport interface FormItemRule extends RuleItem {\n trigger?: Arrayable<string>\n}\nexport type FormRules = Partial<Record<string, Arrayable<FormItemRule>>>\n\nexport type FormValidationResult = Promise<boolean>\nexport type FormValidateCallback = (\n isValid: boolean,\n invalidFields?: ValidateFieldsError\n) => void\nexport interface FormValidateFailure {\n errors: ValidateError[] | null\n fields: ValidateFieldsError\n}\n\nexport type FormContext = FormProps &\n UnwrapRef<FormLabelWidthContext> & {\n emit: SetupContext<FormEmits>['emit']\n\n // expose\n addField: (field: FormItemContext) => void\n removeField: (field: FormItemContext) => void\n resetFields: (props?: Arrayable<FormItemProp>) => void\n clearValidate: (props?: Arrayable<FormItemProp>) => void\n validateField: (\n props?: Arrayable<FormItemProp>,\n callback?: FormValidateCallback\n ) => FormValidationResult\n }\n\nexport interface FormItemContext extends FormItemProps {\n $el: HTMLDivElement | undefined\n size: ComponentSize\n validateState: string\n validate: (\n trigger: string,\n callback?: FormValidateCallback\n ) => FormValidationResult\n resetField(): void\n clearValidate(): void\n}\n\nexport const formContextKey: InjectionKey<FormContext> =\n Symbol('formContextKey')\nexport const formItemContextKey: InjectionKey<FormItemContext> =\n Symbol('formItemContextKey')\n"],"names":[],"mappings":"AAAY,MAAC,cAAc,GAAG,MAAM,CAAC,gBAAgB,EAAE;AAC3C,MAAC,kBAAkB,GAAG,MAAM,CAAC,oBAAoB;;;;"}
|
package/es/tokens/index.d.ts
CHANGED
package/es/tokens/index.mjs
CHANGED
|
@@ -11,4 +11,6 @@ export { rowContextKey } from './row.mjs';
|
|
|
11
11
|
export { scrollbarContextKey } from './scrollbar.mjs';
|
|
12
12
|
export { tabsRootContextKey } from './tabs.mjs';
|
|
13
13
|
export { uploadContextKey } from './upload.mjs';
|
|
14
|
+
import './experimental-features.mjs';
|
|
15
|
+
export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './popper.mjs';
|
|
14
16
|
//# sourceMappingURL=index.mjs.map
|
package/es/tokens/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComputedRef, InjectionKey, WritableComputedRef } from 'vue';
|
|
2
2
|
export interface ElPaginationContext {
|
|
3
3
|
currentPage?: WritableComputedRef<number>;
|
|
4
4
|
pageCount?: ComputedRef<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.mjs","sources":["../../../../packages/tokens/pagination.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"pagination.mjs","sources":["../../../../packages/tokens/pagination.ts"],"sourcesContent":["import type { ComputedRef, InjectionKey, WritableComputedRef } from 'vue'\n\nexport interface ElPaginationContext {\n currentPage?: WritableComputedRef<number>\n pageCount?: ComputedRef<number>\n disabled?: ComputedRef<boolean>\n changeEvent?: (val: number) => void\n handleSizeChange?: (val: number) => void\n}\n\nexport const elPaginationKey: InjectionKey<ElPaginationContext> =\n Symbol('elPaginationKey')\n"],"names":[],"mappings":"AAAY,MAAC,eAAe,GAAG,MAAM,CAAC,iBAAiB;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import type { Instance } from '@popperjs/core';
|
|
3
|
+
export declare type Measurable = {
|
|
4
|
+
getBoundingClientRect: () => DOMRect;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* triggerRef indicates the element that triggers popper
|
|
8
|
+
* contentRef indicates the element of popper content
|
|
9
|
+
* referenceRef indicates the element that popper content relative with
|
|
10
|
+
*/
|
|
11
|
+
export declare type ElPopperInjectionContext = {
|
|
12
|
+
triggerRef: Ref<Measurable | undefined>;
|
|
13
|
+
contentRef: Ref<HTMLElement | undefined>;
|
|
14
|
+
popperInstanceRef: Ref<Instance | undefined>;
|
|
15
|
+
referenceRef: Ref<Measurable | undefined>;
|
|
16
|
+
};
|
|
17
|
+
export declare type ElPopperContentInjectionContext = {
|
|
18
|
+
arrowRef: Ref<HTMLElement | undefined>;
|
|
19
|
+
arrowOffset: Ref<number | undefined>;
|
|
20
|
+
};
|
|
21
|
+
export declare const POPPER_INJECTION_KEY: InjectionKey<ElPopperInjectionContext>;
|
|
22
|
+
export declare const POPPER_CONTENT_INJECTION_KEY: InjectionKey<ElPopperContentInjectionContext>;
|