@element-plus/nightly 0.0.20260422 → 0.0.20260424
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +4761 -4444
- package/dist/index.full.min.js +11 -11
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +10 -10
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +4760 -4445
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/src/affix.vue.d.ts +1 -1
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.vue.d.ts +1 -1
- package/es/components/anchor/src/anchor.d.ts +1 -1
- package/es/components/anchor/src/anchor.vue.d.ts +2 -2
- package/es/components/autocomplete/src/autocomplete.d.ts +5 -5
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +6 -6
- package/es/components/avatar/src/avatar-group-props.d.ts +1 -1
- package/es/components/avatar/src/avatar-group.d.ts +3 -3
- package/es/components/avatar/src/avatar.d.ts +2 -2
- package/es/components/avatar/src/avatar.vue.d.ts +1 -1
- package/es/components/badge/src/badge.d.ts +1 -1
- package/es/components/badge/src/badge.vue.d.ts +1 -1
- package/es/components/button/src/button-group.vue.d.ts +1 -1
- package/es/components/button/src/button.d.ts +2 -2
- package/es/components/button/src/button.vue.d.ts +4 -4
- package/es/components/calendar/src/calendar.d.ts +1 -1
- package/es/components/calendar/src/calendar.vue.d.ts +1 -1
- package/es/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +1 -1
- package/es/components/cascader/src/cascader.d.ts +12 -4
- package/es/components/cascader/src/cascader.mjs +4 -0
- package/es/components/cascader/src/cascader.mjs.map +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +177 -22
- package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs +155 -29
- package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/cascader-panel/index.d.ts +2 -2
- package/es/components/cascader-panel/index.mjs +2 -2
- package/es/components/cascader-panel/src/config.d.ts +27 -1
- package/es/components/cascader-panel/src/config.mjs +18 -1
- package/es/components/cascader-panel/src/config.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.vue.d.ts +8 -6
- package/es/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.mjs +44 -5
- package/es/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/cascader-panel/src/menu.mjs.map +1 -1
- package/es/components/cascader-panel/src/menu.vue.d.ts +23 -22
- package/es/components/cascader-panel/src/menu.vue_vue_type_script_setup_true_lang.mjs +120 -6
- package/es/components/cascader-panel/src/menu.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/cascader-panel/src/node.vue_vue_type_script_setup_true_lang.mjs +4 -1
- package/es/components/cascader-panel/src/node.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/src/types.d.ts +3 -0
- package/es/components/cascader-panel/src/types.mjs.map +1 -1
- package/es/components/cascader-panel/style/css.mjs +1 -1
- package/es/components/cascader-panel/style/index.mjs +1 -1
- package/es/components/check-tag/src/check-tag.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +6 -6
- package/es/components/checkbox/src/checkbox-group.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +5 -5
- package/es/components/checkbox/src/checkbox.d.ts +9 -9
- package/es/components/checkbox/src/checkbox.vue.d.ts +6 -6
- package/es/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
- package/es/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
- package/es/components/col/src/col.vue.d.ts +1 -1
- package/es/components/collapse/src/collapse-item.vue.d.ts +1 -1
- package/es/components/collapse/src/collapse.vue.d.ts +2 -2
- package/es/components/color-picker/src/color-picker.d.ts +1 -1
- package/es/components/color-picker/src/color-picker.vue.d.ts +12 -12
- package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +2 -2
- package/es/components/config-provider/src/config-provider-props.d.ts +1 -1
- package/es/components/config-provider/src/config-provider.d.ts +2 -2
- package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/es/components/countdown/src/countdown.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +16 -16
- package/es/components/date-picker/src/props.d.ts +3 -3
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +8 -8
- package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/es/components/descriptions/src/description-item.d.ts +12 -12
- package/es/components/descriptions/src/description.d.ts +1 -1
- package/es/components/descriptions/src/description.vue.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +4 -4
- package/es/components/drawer/src/drawer.vue.d.ts +4 -4
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +10 -10
- package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.d.ts +3 -3
- package/es/components/dropdown/src/dropdown.vue.d.ts +55 -55
- package/es/components/form/src/form-item.d.ts +2 -2
- package/es/components/form/src/form-item.vue.d.ts +2 -2
- package/es/components/form/src/form.d.ts +2 -2
- package/es/components/form/src/hooks/use-form-common-props.d.ts +2 -2
- package/es/components/image/src/image.d.ts +1 -1
- package/es/components/image/src/image.vue.d.ts +11 -11
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +6 -6
- package/es/components/index.d.ts +11 -11
- package/es/components/index.mjs +7 -7
- package/es/components/input/src/input.d.ts +4 -4
- package/es/components/input/src/input.vue.d.ts +20 -20
- package/es/components/input-number/src/input-number.d.ts +2 -2
- package/es/components/input-number/src/input-number.vue.d.ts +11 -11
- package/es/components/input-otp/src/input-otp.vue.d.ts +8 -8
- package/es/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
- package/es/components/input-tag/src/input-tag.d.ts +3 -3
- package/es/components/input-tag/src/input-tag.vue.d.ts +16 -16
- package/es/components/link/src/link.d.ts +1 -1
- package/es/components/mention/src/mention.d.ts +4 -4
- package/es/components/mention/src/mention.vue.d.ts +6 -6
- package/es/components/menu/src/menu.d.ts +5 -5
- package/es/components/message/src/message.d.ts +1 -1
- package/es/components/message/src/message.vue.d.ts +4 -4
- package/es/components/message-box/index.d.ts +2 -2
- package/es/components/message-box/src/message-box.type.d.ts +9 -3
- package/es/components/message-box/src/messageBox.mjs +9 -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.vue.d.ts +4 -4
- package/es/components/pagination/src/pagination.d.ts +6 -6
- package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
- package/es/components/popover/src/popover.d.ts +2 -2
- package/es/components/popover/src/popover.vue.d.ts +7 -7
- package/es/components/popper/src/composables/use-content.d.ts +1 -1
- package/es/components/popper/src/content.vue.d.ts +7 -7
- package/es/components/popper/src/popper.d.ts +2 -2
- package/es/components/progress/src/progress.d.ts +1 -1
- package/es/components/progress/src/progress.vue.d.ts +2 -2
- package/es/components/radio/src/radio-button.d.ts +4 -4
- package/es/components/radio/src/radio-button.vue.d.ts +2 -2
- package/es/components/radio/src/radio-group.d.ts +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +7 -7
- package/es/components/radio/src/radio.d.ts +8 -8
- package/es/components/radio/src/radio.vue.d.ts +5 -5
- package/es/components/rate/src/rate.d.ts +1 -1
- package/es/components/rate/src/rate.vue.d.ts +4 -4
- package/es/components/result/src/result.d.ts +1 -1
- package/es/components/result/src/result.vue.d.ts +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +2 -2
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
- package/es/components/segmented/index.d.ts +4 -4
- package/es/components/segmented/src/segmented.d.ts +2 -2
- package/es/components/segmented/src/segmented.vue.d.ts +2 -2
- package/es/components/select/src/option.d.ts +2 -2
- package/es/components/select/src/option.vue.d.ts +5 -5
- package/es/components/select/src/select.d.ts +5 -5
- package/es/components/select/src/select.vue.d.ts +74 -74
- package/es/components/select-v2/src/defaults.d.ts +3 -3
- package/es/components/select-v2/src/select-dropdown.d.ts +2 -2
- package/es/components/select-v2/src/select.vue.d.ts +58 -58
- package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/es/components/slider/src/button.vue.d.ts +1 -1
- package/es/components/slider/src/slider.d.ts +2 -2
- package/es/components/slider/src/slider.vue.d.ts +12 -12
- package/es/components/space/src/space.d.ts +4 -4
- package/es/components/splitter/src/splitter.vue.d.ts +2 -2
- package/es/components/steps/src/item.d.ts +1 -1
- package/es/components/steps/src/item.vue.d.ts +2 -2
- package/es/components/steps/src/steps.d.ts +2 -2
- package/es/components/steps/src/steps.vue.d.ts +1 -1
- package/es/components/switch/src/switch.d.ts +1 -1
- package/es/components/switch/src/switch.vue.d.ts +6 -6
- package/es/components/table/src/table-column/index.d.ts +25 -25
- package/es/components/table/src/table-footer/index.d.ts +1 -1
- package/es/components/table/src/table-header/index.d.ts +20 -20
- package/es/components/table/src/table-layout.d.ts +1 -0
- package/es/components/table/src/table-layout.mjs +5 -1
- package/es/components/table/src/table-layout.mjs.map +1 -1
- package/es/components/table/src/table.vue.d.ts +46 -46
- package/es/components/table-v2/src/components/row.d.ts +1 -1
- package/es/components/table-v2/src/table-grid.d.ts +3 -3
- package/es/components/table-v2/src/table-v2.d.ts +3 -3
- package/es/components/table-v2/style/css.mjs +1 -1
- package/es/components/table-v2/style/index.mjs +1 -1
- package/es/components/tabs/src/tabs.d.ts +2 -2
- package/es/components/tag/src/tag.d.ts +2 -2
- package/es/components/tag/src/tag.vue.d.ts +1 -1
- package/es/components/text/src/text.d.ts +2 -2
- package/es/components/text/src/text.vue.d.ts +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +24 -24
- package/es/components/time-picker/src/common/props.d.ts +3 -3
- package/es/components/time-picker/src/time-picker.d.ts +16 -16
- package/es/components/time-select/src/time-select.d.ts +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +14 -14
- package/es/components/timeline/src/timeline-item.d.ts +1 -1
- package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +3 -3
- package/es/components/tooltip/src/tooltip.d.ts +2 -2
- package/es/components/tooltip/src/tooltip.vue.d.ts +8 -8
- package/es/components/tooltip/src/trigger.d.ts +1 -1
- package/es/components/tour/src/content.d.ts +1 -1
- package/es/components/tour/src/step.d.ts +1 -1
- package/es/components/tour/src/tour.d.ts +1 -1
- package/es/components/tour/src/tour.vue.d.ts +5 -5
- package/es/components/transfer/src/transfer.vue.d.ts +2 -2
- package/es/components/tree/src/tree.vue.d.ts +26 -26
- package/es/components/tree-select/src/tree-select.vue.d.ts +41 -41
- package/es/components/tree-v2/src/tree.vue.d.ts +4 -4
- package/es/components/tree-v2/src/types.d.ts +7 -2
- package/es/components/tree-v2/src/virtual-tree.d.ts +129 -3
- package/es/components/upload/src/upload-content.d.ts +1 -1
- package/es/components/upload/src/upload-content.vue.d.ts +3 -3
- package/es/components/upload/src/upload-list.d.ts +1 -1
- package/es/components/upload/src/upload.d.ts +2 -2
- package/es/components/upload/src/upload.vue.d.ts +4 -4
- package/es/components/virtual-list/src/builders/build-grid.d.ts +14 -2
- package/es/components/virtual-list/src/builders/build-list.mjs +2 -1
- package/es/components/virtual-list/src/builders/build-list.mjs.map +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +14 -2
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +16 -4
- package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +14 -2
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +16 -4
- package/es/components/virtual-list/src/props.d.ts +18 -0
- package/es/components/virtual-list/src/props.mjs +4 -0
- package/es/components/virtual-list/src/props.mjs.map +1 -1
- package/es/hooks/use-popper/index.d.ts +1 -1
- package/es/hooks/use-size/index.d.ts +3 -3
- package/es/index.d.ts +10 -10
- package/es/index.mjs +7 -7
- package/es/utils/vue/vnode.d.ts +4 -4
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix.vue.d.ts +1 -1
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +1 -1
- package/lib/components/anchor/src/anchor.d.ts +1 -1
- package/lib/components/anchor/src/anchor.vue.d.ts +2 -2
- package/lib/components/autocomplete/src/autocomplete.d.ts +5 -5
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +6 -6
- package/lib/components/avatar/src/avatar-group-props.d.ts +1 -1
- package/lib/components/avatar/src/avatar-group.d.ts +3 -3
- package/lib/components/avatar/src/avatar.d.ts +2 -2
- package/lib/components/avatar/src/avatar.vue.d.ts +1 -1
- package/lib/components/badge/src/badge.d.ts +1 -1
- package/lib/components/badge/src/badge.vue.d.ts +1 -1
- package/lib/components/button/src/button-group.vue.d.ts +1 -1
- package/lib/components/button/src/button.d.ts +2 -2
- package/lib/components/button/src/button.vue.d.ts +4 -4
- package/lib/components/calendar/src/calendar.d.ts +1 -1
- package/lib/components/calendar/src/calendar.vue.d.ts +1 -1
- package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +1 -1
- package/lib/components/cascader/src/cascader.d.ts +12 -4
- package/lib/components/cascader/src/cascader.js +4 -0
- package/lib/components/cascader/src/cascader.js.map +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +177 -22
- package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js +154 -27
- package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/cascader-panel/index.d.ts +2 -2
- package/lib/components/cascader-panel/index.js +2 -0
- package/lib/components/cascader-panel/src/config.d.ts +27 -1
- package/lib/components/cascader-panel/src/config.js +19 -0
- package/lib/components/cascader-panel/src/config.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js.map +1 -1
- package/lib/components/cascader-panel/src/index.vue.d.ts +8 -6
- package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js +44 -5
- package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/cascader-panel/src/menu.js.map +1 -1
- package/lib/components/cascader-panel/src/menu.vue.d.ts +23 -22
- package/lib/components/cascader-panel/src/menu.vue_vue_type_script_setup_true_lang.js +119 -5
- package/lib/components/cascader-panel/src/menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/cascader-panel/src/node.vue_vue_type_script_setup_true_lang.js +4 -1
- package/lib/components/cascader-panel/src/node.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/src/types.d.ts +3 -0
- package/lib/components/cascader-panel/src/types.js.map +1 -1
- package/lib/components/cascader-panel/style/css.js +1 -1
- package/lib/components/cascader-panel/style/index.js +1 -1
- package/lib/components/check-tag/src/check-tag.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +6 -6
- package/lib/components/checkbox/src/checkbox-group.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +5 -5
- package/lib/components/checkbox/src/checkbox.d.ts +9 -9
- package/lib/components/checkbox/src/checkbox.vue.d.ts +6 -6
- package/lib/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
- package/lib/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
- package/lib/components/col/src/col.vue.d.ts +1 -1
- package/lib/components/collapse/src/collapse-item.vue.d.ts +1 -1
- package/lib/components/collapse/src/collapse.vue.d.ts +2 -2
- package/lib/components/color-picker/src/color-picker.d.ts +1 -1
- package/lib/components/color-picker/src/color-picker.vue.d.ts +12 -12
- package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +2 -2
- package/lib/components/config-provider/src/config-provider-props.d.ts +1 -1
- package/lib/components/config-provider/src/config-provider.d.ts +2 -2
- package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/lib/components/countdown/src/countdown.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +16 -16
- package/lib/components/date-picker/src/props.d.ts +3 -3
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +8 -8
- package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/lib/components/descriptions/src/description-item.d.ts +12 -12
- package/lib/components/descriptions/src/description.d.ts +1 -1
- package/lib/components/descriptions/src/description.vue.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +4 -4
- package/lib/components/drawer/src/drawer.vue.d.ts +4 -4
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +10 -10
- package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.d.ts +3 -3
- package/lib/components/dropdown/src/dropdown.vue.d.ts +55 -55
- package/lib/components/form/src/form-item.d.ts +2 -2
- package/lib/components/form/src/form-item.vue.d.ts +2 -2
- package/lib/components/form/src/form.d.ts +2 -2
- package/lib/components/form/src/hooks/use-form-common-props.d.ts +2 -2
- package/lib/components/image/src/image.d.ts +1 -1
- package/lib/components/image/src/image.vue.d.ts +11 -11
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +6 -6
- package/lib/components/index.d.ts +11 -11
- package/lib/components/index.js +13 -11
- package/lib/components/input/src/input.d.ts +4 -4
- package/lib/components/input/src/input.vue.d.ts +20 -20
- package/lib/components/input-number/src/input-number.d.ts +2 -2
- package/lib/components/input-number/src/input-number.vue.d.ts +11 -11
- package/lib/components/input-otp/src/input-otp.vue.d.ts +8 -8
- package/lib/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
- package/lib/components/input-tag/src/input-tag.d.ts +3 -3
- package/lib/components/input-tag/src/input-tag.vue.d.ts +16 -16
- package/lib/components/link/src/link.d.ts +1 -1
- package/lib/components/mention/src/mention.d.ts +4 -4
- package/lib/components/mention/src/mention.vue.d.ts +6 -6
- package/lib/components/menu/src/menu.d.ts +5 -5
- package/lib/components/message/src/message.d.ts +1 -1
- package/lib/components/message/src/message.vue.d.ts +4 -4
- package/lib/components/message-box/index.d.ts +2 -2
- package/lib/components/message-box/src/message-box.type.d.ts +9 -3
- package/lib/components/message-box/src/messageBox.js +9 -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.vue.d.ts +4 -4
- package/lib/components/pagination/src/pagination.d.ts +6 -6
- package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
- package/lib/components/popover/src/popover.d.ts +2 -2
- package/lib/components/popover/src/popover.vue.d.ts +7 -7
- package/lib/components/popper/src/composables/use-content.d.ts +1 -1
- package/lib/components/popper/src/content.vue.d.ts +7 -7
- package/lib/components/popper/src/popper.d.ts +2 -2
- package/lib/components/progress/src/progress.d.ts +1 -1
- package/lib/components/progress/src/progress.vue.d.ts +2 -2
- package/lib/components/radio/src/radio-button.d.ts +4 -4
- package/lib/components/radio/src/radio-button.vue.d.ts +2 -2
- package/lib/components/radio/src/radio-group.d.ts +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +7 -7
- package/lib/components/radio/src/radio.d.ts +8 -8
- package/lib/components/radio/src/radio.vue.d.ts +5 -5
- package/lib/components/rate/src/rate.d.ts +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +4 -4
- package/lib/components/result/src/result.d.ts +1 -1
- package/lib/components/result/src/result.vue.d.ts +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +2 -2
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
- package/lib/components/segmented/index.d.ts +4 -4
- package/lib/components/segmented/src/segmented.d.ts +2 -2
- package/lib/components/segmented/src/segmented.vue.d.ts +2 -2
- package/lib/components/select/src/option.d.ts +2 -2
- package/lib/components/select/src/option.vue.d.ts +5 -5
- package/lib/components/select/src/select.d.ts +5 -5
- package/lib/components/select/src/select.vue.d.ts +74 -74
- package/lib/components/select-v2/src/defaults.d.ts +3 -3
- package/lib/components/select-v2/src/select-dropdown.d.ts +2 -2
- package/lib/components/select-v2/src/select.vue.d.ts +58 -58
- package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/lib/components/slider/src/button.vue.d.ts +1 -1
- package/lib/components/slider/src/slider.d.ts +2 -2
- package/lib/components/slider/src/slider.vue.d.ts +12 -12
- package/lib/components/space/src/space.d.ts +4 -4
- package/lib/components/splitter/src/splitter.vue.d.ts +2 -2
- package/lib/components/steps/src/item.d.ts +1 -1
- package/lib/components/steps/src/item.vue.d.ts +2 -2
- package/lib/components/steps/src/steps.d.ts +2 -2
- package/lib/components/steps/src/steps.vue.d.ts +1 -1
- package/lib/components/switch/src/switch.d.ts +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +6 -6
- package/lib/components/table/src/table-column/index.d.ts +25 -25
- package/lib/components/table/src/table-footer/index.d.ts +1 -1
- package/lib/components/table/src/table-header/index.d.ts +20 -20
- package/lib/components/table/src/table-layout.d.ts +1 -0
- package/lib/components/table/src/table-layout.js +5 -1
- package/lib/components/table/src/table-layout.js.map +1 -1
- package/lib/components/table/src/table.vue.d.ts +46 -46
- package/lib/components/table-v2/src/components/row.d.ts +1 -1
- package/lib/components/table-v2/src/table-grid.d.ts +3 -3
- package/lib/components/table-v2/src/table-v2.d.ts +3 -3
- package/lib/components/table-v2/style/css.js +1 -1
- package/lib/components/table-v2/style/index.js +1 -1
- package/lib/components/tabs/src/tabs.d.ts +2 -2
- package/lib/components/tag/src/tag.d.ts +2 -2
- package/lib/components/tag/src/tag.vue.d.ts +1 -1
- package/lib/components/text/src/text.d.ts +2 -2
- package/lib/components/text/src/text.vue.d.ts +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +24 -24
- package/lib/components/time-picker/src/common/props.d.ts +3 -3
- package/lib/components/time-picker/src/time-picker.d.ts +16 -16
- package/lib/components/time-select/src/time-select.d.ts +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +14 -14
- package/lib/components/timeline/src/timeline-item.d.ts +1 -1
- package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +3 -3
- package/lib/components/tooltip/src/tooltip.d.ts +2 -2
- package/lib/components/tooltip/src/tooltip.vue.d.ts +8 -8
- package/lib/components/tooltip/src/trigger.d.ts +1 -1
- package/lib/components/tour/src/content.d.ts +1 -1
- package/lib/components/tour/src/step.d.ts +1 -1
- package/lib/components/tour/src/tour.d.ts +1 -1
- package/lib/components/tour/src/tour.vue.d.ts +5 -5
- package/lib/components/transfer/src/transfer.vue.d.ts +2 -2
- package/lib/components/tree/src/tree.vue.d.ts +26 -26
- package/lib/components/tree-select/src/tree-select.vue.d.ts +41 -41
- package/lib/components/tree-v2/src/tree.vue.d.ts +4 -4
- package/lib/components/tree-v2/src/types.d.ts +7 -2
- package/lib/components/tree-v2/src/virtual-tree.d.ts +129 -3
- package/lib/components/upload/src/upload-content.d.ts +1 -1
- package/lib/components/upload/src/upload-content.vue.d.ts +3 -3
- package/lib/components/upload/src/upload-list.d.ts +1 -1
- package/lib/components/upload/src/upload.d.ts +2 -2
- package/lib/components/upload/src/upload.vue.d.ts +4 -4
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +14 -2
- package/lib/components/virtual-list/src/builders/build-list.js +2 -1
- package/lib/components/virtual-list/src/builders/build-list.js.map +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +14 -2
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +16 -4
- package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +14 -2
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +16 -4
- package/lib/components/virtual-list/src/props.d.ts +18 -0
- package/lib/components/virtual-list/src/props.js +4 -0
- package/lib/components/virtual-list/src/props.js.map +1 -1
- package/lib/hooks/use-popper/index.d.ts +1 -1
- package/lib/hooks/use-size/index.d.ts +3 -3
- package/lib/index.d.ts +10 -10
- package/lib/index.js +13 -11
- package/lib/utils/vue/vnode.d.ts +4 -4
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-cascader-panel.css +1 -1
- package/theme-chalk/el-cascader.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/cascader-panel.scss +11 -0
- package/theme-chalk/src/cascader.scss +28 -1
- package/web-types.json +1 -1
|
@@ -50,6 +50,12 @@ declare const createGrid: ({
|
|
|
50
50
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
51
51
|
__epPropKey: true;
|
|
52
52
|
};
|
|
53
|
+
readonly innerWidth: {
|
|
54
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
55
|
+
readonly required: false;
|
|
56
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
57
|
+
__epPropKey: true;
|
|
58
|
+
};
|
|
53
59
|
readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
54
60
|
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
55
61
|
readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
@@ -140,6 +146,12 @@ declare const createGrid: ({
|
|
|
140
146
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
141
147
|
__epPropKey: true;
|
|
142
148
|
};
|
|
149
|
+
readonly innerWidth: {
|
|
150
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
151
|
+
readonly required: false;
|
|
152
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
153
|
+
__epPropKey: true;
|
|
154
|
+
};
|
|
143
155
|
readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
144
156
|
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
145
157
|
readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
@@ -209,12 +221,12 @@ declare const createGrid: ({
|
|
|
209
221
|
readonly data: any[];
|
|
210
222
|
readonly className: string;
|
|
211
223
|
readonly direction: EpPropMergeType<StringConstructor, "ltr" | "rtl", never>;
|
|
212
|
-
readonly scrollbarAlwaysOn: boolean;
|
|
213
|
-
readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
214
224
|
readonly containerElement: EpPropMergeType<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown>;
|
|
215
225
|
readonly innerElement: EpPropMergeType<readonly [StringConstructor, ObjectConstructor], unknown, unknown>;
|
|
216
226
|
readonly innerProps: Record<string, unknown>;
|
|
227
|
+
readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
217
228
|
readonly useIsScrolling: boolean;
|
|
229
|
+
readonly scrollbarAlwaysOn: boolean;
|
|
218
230
|
readonly itemKey: GridItemKeyGetter;
|
|
219
231
|
readonly columnCache: number;
|
|
220
232
|
readonly initScrollLeft: number;
|
|
@@ -78,10 +78,11 @@ const createList = ({ name, getOffset, getItemSize, getItemOffset, getEstimatedT
|
|
|
78
78
|
const innerStyle = (0, vue.computed)(() => {
|
|
79
79
|
const size = (0, vue.unref)(estimatedTotalSize);
|
|
80
80
|
const horizontal = (0, vue.unref)(_isHorizontal);
|
|
81
|
+
const innerWidth = props.innerWidth;
|
|
81
82
|
return {
|
|
82
83
|
height: horizontal ? "100%" : `${size}px`,
|
|
83
84
|
pointerEvents: (0, vue.unref)(states).isScrolling ? "none" : void 0,
|
|
84
|
-
width: horizontal ? `${size}px` : "100%",
|
|
85
|
+
width: horizontal ? `${size}px` : innerWidth !== void 0 ? require_types.isNumber(innerWidth) ? `${innerWidth}px` : innerWidth : "100%",
|
|
85
86
|
margin: 0,
|
|
86
87
|
boxSizing: "border-box"
|
|
87
88
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-list.js","names":["virtualizedListProps","ITEM_RENDER_EVT","SCROLL_EVT","END_REACHED_EVT","useNamespace","useCache","FORWARD","isNumber","BACKWARD","isHorizontal","isGreaterThan","useWheel","RTL","getScrollDir","getRTLOffsetType","RTL_OFFSET_NAG","RTL_OFFSET_POS_DESC","AUTO_ALIGNMENT","isClient","HORIZONTAL","RTL_OFFSET_POS_ASC","Fragment","Scrollbar"],"sources":["../../../../../../../packages/components/virtual-list/src/builders/build-list.ts"],"sourcesContent":["import {\n Fragment,\n computed,\n defineComponent,\n getCurrentInstance,\n h,\n mergeProps,\n nextTick,\n onActivated,\n onMounted,\n onUpdated,\n ref,\n resolveDynamicComponent,\n unref,\n watch,\n} from 'vue'\nimport { clamp, useEventListener } from '@vueuse/core'\nimport {\n hasOwn,\n isClient,\n isGreaterThan,\n isNumber,\n isString,\n} from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useCache } from '../hooks/use-cache'\nimport useWheel from '../hooks/use-wheel'\nimport Scrollbar from '../components/scrollbar'\nimport { getRTLOffsetType, getScrollDir, isHorizontal } from '../utils'\nimport { virtualizedListProps } from '../props'\nimport {\n AUTO_ALIGNMENT,\n BACKWARD,\n END_REACHED_EVT,\n FORWARD,\n HORIZONTAL,\n ITEM_RENDER_EVT,\n RTL,\n RTL_OFFSET_NAG,\n RTL_OFFSET_POS_ASC,\n RTL_OFFSET_POS_DESC,\n SCROLL_EVT,\n} from '../defaults'\n\nimport type { CSSProperties, Slot, VNode, VNodeChild } from 'vue'\nimport type { Alignment, ListConstructorProps, ScrollDirection } from '../types'\nimport type { VirtualizedListProps } from '../props'\n\nconst createList = ({\n name,\n getOffset,\n getItemSize,\n getItemOffset,\n getEstimatedTotalSize,\n getStartIndexForOffset,\n getStopIndexForStartIndex,\n initCache,\n clearCache,\n validateProps,\n}: ListConstructorProps<VirtualizedListProps>) => {\n return defineComponent({\n name: name ?? 'ElVirtualList',\n props: virtualizedListProps,\n emits: [ITEM_RENDER_EVT, SCROLL_EVT, END_REACHED_EVT],\n setup(props, { emit, expose }) {\n validateProps(props)\n const instance = getCurrentInstance()!\n\n const ns = useNamespace('vl')\n\n const dynamicSizeCache = ref(initCache(props, instance))\n\n const getItemStyleCache = useCache<CSSProperties>()\n // refs\n // here windowRef and innerRef can be type of HTMLElement\n // or user defined component type, depends on the type passed\n // by user\n const windowRef = ref<HTMLElement>()\n const innerRef = ref<HTMLElement>()\n const scrollbarRef = ref()\n const states = ref({\n isScrolling: false,\n scrollDir: FORWARD as ScrollDirection,\n scrollOffset: isNumber(props.initScrollOffset)\n ? props.initScrollOffset\n : 0,\n updateRequested: false,\n isScrollbarDragging: false,\n })\n\n // computed\n const itemsToRender = computed(() => {\n const { total, cache } = props\n const { isScrolling, scrollDir, scrollOffset } = unref(states)\n\n if (total === 0) {\n return [0, 0, 0, 0]\n }\n\n const startIndex = getStartIndexForOffset(\n props,\n scrollOffset,\n unref(dynamicSizeCache)\n )\n const stopIndex = getStopIndexForStartIndex(\n props,\n startIndex,\n scrollOffset,\n unref(dynamicSizeCache)\n )\n\n const cacheBackward =\n !isScrolling || scrollDir === BACKWARD ? Math.max(1, cache) : 1\n const cacheForward =\n !isScrolling || scrollDir === FORWARD ? Math.max(1, cache) : 1\n\n return [\n Math.max(0, startIndex - cacheBackward),\n Math.max(0, Math.min(total! - 1, stopIndex + cacheForward)),\n startIndex,\n stopIndex,\n ]\n })\n\n const estimatedTotalSize = computed(() =>\n getEstimatedTotalSize(props, unref(dynamicSizeCache))\n )\n\n const _isHorizontal = computed(() => isHorizontal(props.layout))\n\n const windowStyle = computed(() => [\n {\n position: 'relative',\n [`overflow-${_isHorizontal.value ? 'x' : 'y'}`]: 'scroll',\n WebkitOverflowScrolling: 'touch',\n willChange: 'transform',\n },\n {\n direction: props.direction,\n height: isNumber(props.height) ? `${props.height}px` : props.height,\n width: isNumber(props.width) ? `${props.width}px` : props.width,\n },\n props.style,\n ])\n\n const innerStyle = computed(() => {\n const size = unref(estimatedTotalSize)\n const horizontal = unref(_isHorizontal)\n return {\n height: horizontal ? '100%' : `${size}px`,\n pointerEvents: unref(states).isScrolling ? 'none' : undefined,\n width: horizontal ? `${size}px` : '100%',\n\n // fix scrolling issues in Firefox.\n margin: 0,\n boxSizing: 'border-box',\n }\n })\n\n const clientSize = computed(() =>\n _isHorizontal.value ? props.width : props.height\n )\n\n const maxOffset = computed(() =>\n Math.max(0, estimatedTotalSize.value - (clientSize.value as number))\n )\n\n const normalizeOffset = (offset: number) =>\n clamp(offset, 0, maxOffset.value)\n\n // Tolerance must cover sub-pixel differences that arise when the\n // browser's actual scrollHeight−clientHeight (affected by DPR\n // rounding) doesn't exactly match our computed maxOffset.\n // Without this, the native scroll event after onUpdated resets\n // edgeState and causes a duplicate end-reached emission.\n const EDGE_TOLERANCE = 1\n\n const getEdgeState = (normalizedOffset: number) => ({\n start: !isGreaterThan(normalizedOffset, 0, EDGE_TOLERANCE),\n end: !isGreaterThan(maxOffset.value, normalizedOffset, EDGE_TOLERANCE),\n })\n\n const normalizedScrollOffset = computed(() =>\n normalizeOffset(states.value.scrollOffset)\n )\n const currentEdgeState = computed(() =>\n getEdgeState(normalizedScrollOffset.value)\n )\n\n let edgeState = currentEdgeState.value\n\n const startEdgeReached = computed(() => currentEdgeState.value.start)\n const endEdgeReached = computed(() => currentEdgeState.value.end)\n\n // methods\n const { onWheel } = useWheel(\n {\n atStartEdge: startEdgeReached,\n atEndEdge: endEdgeReached,\n layout: computed(() => props.layout),\n },\n (offset) => {\n ;(\n scrollbarRef.value as {\n onMouseUp: () => void\n }\n ).onMouseUp?.()\n scrollTo(\n Math.min(states.value.scrollOffset + offset, maxOffset.value)\n )\n }\n )\n\n useEventListener(windowRef, 'wheel', onWheel, {\n passive: false,\n })\n\n const emitEvents = () => {\n const { total } = props\n\n if (total! > 0) {\n const [cacheStart, cacheEnd, visibleStart, visibleEnd] =\n unref(itemsToRender)\n emit(ITEM_RENDER_EVT, cacheStart, cacheEnd, visibleStart, visibleEnd)\n }\n\n const { scrollDir, scrollOffset, updateRequested } = unref(states)\n emit(SCROLL_EVT, scrollDir, scrollOffset, updateRequested)\n }\n\n const emitEndReached = (direction: ScrollDirection, offset: number) => {\n const nextEdgeState = getEdgeState(offset)\n const horizontalEnd = props.direction === RTL ? 'left' : 'right'\n const horizontalStart = props.direction === RTL ? 'right' : 'left'\n\n if (direction === FORWARD && nextEdgeState.end && !edgeState.end) {\n emit(END_REACHED_EVT, _isHorizontal.value ? horizontalEnd : 'bottom')\n }\n\n if (direction === BACKWARD && nextEdgeState.start && !edgeState.start) {\n emit(END_REACHED_EVT, _isHorizontal.value ? horizontalStart : 'top')\n }\n\n edgeState = nextEdgeState\n }\n\n const updateScrollOffset = (\n offset: number,\n {\n isScrolling,\n updateRequested,\n }: {\n isScrolling: boolean\n updateRequested: boolean\n }\n ) => {\n const currentState = unref(states)\n const nextOffset = Math.max(offset, 0)\n\n if (nextOffset === currentState.scrollOffset) {\n return\n }\n\n const scrollDir = getScrollDir(currentState.scrollOffset, nextOffset)\n\n states.value = {\n ...currentState,\n isScrolling,\n scrollDir,\n scrollOffset: nextOffset,\n updateRequested,\n }\n emitEndReached(scrollDir, normalizeOffset(nextOffset))\n\n nextTick(resetIsScrolling)\n }\n\n const scrollVertically = (e: Event) => {\n const { clientHeight, scrollHeight, scrollTop } =\n e.currentTarget as HTMLElement\n const _states = unref(states)\n if (_states.scrollOffset === scrollTop) {\n return\n }\n\n updateScrollOffset(Math.min(scrollTop, scrollHeight - clientHeight), {\n isScrolling: true,\n updateRequested: false,\n })\n }\n\n const scrollHorizontally = (e: Event) => {\n const { clientWidth, scrollLeft, scrollWidth } =\n e.currentTarget as HTMLElement\n const _states = unref(states)\n\n if (_states.scrollOffset === scrollLeft) {\n return\n }\n\n const { direction } = props\n\n let scrollOffset = scrollLeft\n\n if (direction === RTL) {\n // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // It's also easier for this component if we convert offsets to the same format as they would be in for ltr.\n // So the simplest solution is to determine which browser behavior we're dealing with, and convert based on it.\n switch (getRTLOffsetType()) {\n case RTL_OFFSET_NAG: {\n scrollOffset = -scrollLeft\n break\n }\n case RTL_OFFSET_POS_DESC: {\n scrollOffset = scrollWidth - clientWidth - scrollLeft\n break\n }\n }\n }\n\n updateScrollOffset(Math.min(scrollOffset, scrollWidth - clientWidth), {\n isScrolling: true,\n updateRequested: false,\n })\n }\n\n const onScroll = (e: Event) => {\n unref(_isHorizontal) ? scrollHorizontally(e) : scrollVertically(e)\n emitEvents()\n }\n\n const onScrollbarScroll = (distanceToGo: number, totalSteps: number) => {\n const offset = (maxOffset.value / totalSteps) * distanceToGo\n scrollTo(Math.min(maxOffset.value, offset))\n }\n\n const scrollTo = (offset: number) => {\n updateScrollOffset(offset, {\n isScrolling: unref(states).isScrolling,\n updateRequested: true,\n })\n }\n\n const scrollToItem = (\n idx: number,\n alignment: Alignment = AUTO_ALIGNMENT\n ) => {\n const { scrollOffset } = unref(states)\n\n idx = Math.max(0, Math.min(idx, props.total! - 1))\n scrollTo(\n getOffset(\n props,\n idx,\n alignment,\n scrollOffset,\n unref(dynamicSizeCache)\n )\n )\n }\n\n const getItemStyle = (idx: number) => {\n const { direction, itemSize, layout } = props\n\n const itemStyleCache = getItemStyleCache.value(\n clearCache && itemSize,\n clearCache && layout,\n clearCache && direction\n )\n\n let style: CSSProperties\n if (hasOwn(itemStyleCache, String(idx))) {\n style = itemStyleCache[idx]\n } else {\n const offset = getItemOffset(props, idx, unref(dynamicSizeCache))\n const size = getItemSize(props, idx, unref(dynamicSizeCache))\n const horizontal = unref(_isHorizontal)\n\n const isRtl = direction === RTL\n const offsetHorizontal = horizontal ? offset : 0\n itemStyleCache[idx] = style = {\n position: 'absolute',\n left: isRtl ? undefined : `${offsetHorizontal}px`,\n right: isRtl ? `${offsetHorizontal}px` : undefined,\n top: !horizontal ? `${offset}px` : 0,\n height: !horizontal ? `${size}px` : '100%',\n width: horizontal ? `${size}px` : '100%',\n }\n }\n\n return style\n }\n\n // TODO: perf optimization here, reset isScrolling with debounce.\n\n const resetIsScrolling = () => {\n states.value.isScrolling = false\n nextTick(() => {\n getItemStyleCache.value(-1, null, null)\n })\n }\n\n const resetScrollTop = () => {\n const window = windowRef.value\n if (window) {\n window.scrollTop = 0\n }\n }\n\n // life cycles\n onMounted(() => {\n if (!isClient) return\n const { initScrollOffset } = props\n const windowElement = unref(windowRef)\n if (isNumber(initScrollOffset) && windowElement) {\n if (unref(_isHorizontal)) {\n windowElement.scrollLeft = initScrollOffset\n } else {\n windowElement.scrollTop = initScrollOffset\n }\n }\n\n emitEvents()\n })\n\n onUpdated(() => {\n const { direction, layout } = props\n const { scrollOffset, updateRequested } = unref(states)\n const windowElement = unref(windowRef)\n\n if (updateRequested && windowElement) {\n if (layout === HORIZONTAL) {\n if (direction === RTL) {\n // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // So we need to determine which browser behavior we're dealing with, and mimic it.\n switch (getRTLOffsetType()) {\n case RTL_OFFSET_NAG: {\n windowElement.scrollLeft = -scrollOffset\n break\n }\n case RTL_OFFSET_POS_ASC: {\n windowElement.scrollLeft = scrollOffset\n break\n }\n default: {\n const { clientWidth, scrollWidth } = windowElement\n windowElement.scrollLeft =\n scrollWidth - clientWidth - scrollOffset\n break\n }\n }\n } else {\n windowElement.scrollLeft = scrollOffset\n }\n } else {\n windowElement.scrollTop = scrollOffset\n }\n }\n })\n\n onActivated(() => {\n unref(windowRef)!.scrollTop = unref(states).scrollOffset\n })\n\n watch(maxOffset, () => {\n edgeState = currentEdgeState.value\n })\n\n const api = {\n ns,\n clientSize,\n estimatedTotalSize,\n windowStyle,\n windowRef,\n innerRef,\n innerStyle,\n itemsToRender,\n scrollbarRef,\n states,\n getItemStyle,\n onScroll,\n onScrollbarScroll,\n onWheel,\n scrollTo,\n scrollToItem,\n resetScrollTop,\n }\n\n expose({\n windowRef,\n innerRef,\n getItemStyleCache,\n scrollTo,\n scrollToItem,\n resetScrollTop,\n states,\n })\n\n return api\n },\n\n render(ctx: any) {\n const {\n $slots,\n className,\n clientSize,\n containerElement,\n data,\n getItemStyle,\n innerElement,\n itemsToRender,\n innerStyle,\n layout,\n scrollbarAlwaysOn,\n total,\n onScroll,\n onScrollbarScroll,\n states,\n useIsScrolling,\n windowStyle,\n ns,\n } = ctx\n\n const [start, end] = itemsToRender\n\n const Container = resolveDynamicComponent(containerElement)\n const Inner = resolveDynamicComponent(innerElement)\n\n const children = [] as VNodeChild[]\n\n if (total > 0) {\n for (let i = start; i <= end; i++) {\n children.push(\n h(\n Fragment,\n { key: i },\n ($slots.default as Slot)?.({\n data,\n index: i,\n isScrolling: useIsScrolling ? states.isScrolling : undefined,\n style: getItemStyle(i),\n })\n )\n )\n }\n }\n\n const InnerNode = [\n h(\n Inner as VNode,\n mergeProps(ctx.innerProps, {\n style: innerStyle,\n ref: 'innerRef',\n }),\n !isString(Inner)\n ? {\n default: () => children,\n }\n : children\n ),\n ]\n\n const scrollbar = h(Scrollbar, {\n ref: 'scrollbarRef',\n clientSize,\n layout,\n onScroll: onScrollbarScroll,\n ratio: (clientSize * 100) / this.estimatedTotalSize,\n scrollFrom:\n states.scrollOffset / (this.estimatedTotalSize - clientSize),\n total,\n alwaysOn: scrollbarAlwaysOn,\n })\n\n const listContainer = h(\n Container as VNode,\n {\n class: [ns.e('window'), className],\n style: windowStyle,\n onScroll,\n ref: 'windowRef',\n key: 0,\n },\n !isString(Container) ? { default: () => [InnerNode] } : [InnerNode]\n )\n\n return h(\n 'div',\n {\n key: 0,\n class: [ns.e('wrapper'), scrollbarAlwaysOn ? 'always-on' : ''],\n },\n [listContainer, scrollbar]\n )\n },\n })\n}\n\nexport default createList\n"],"mappings":";;;;;;;;;;;;;;;;AAgDA,MAAM,cAAc,EAClB,MACA,WACA,aACA,eACA,uBACA,wBACA,2BACA,WACA,YACA,oBACgD;AAChD,iCAAuB;EACrB,MAAM,QAAQ;EACd,OAAOA;EACP,OAAO;GAACC;GAAiBC;GAAYC;GAAgB;EACrD,MAAM,OAAO,EAAE,MAAM,UAAU;AAC7B,iBAAc,MAAM;GACpB,MAAM,wCAA+B;GAErC,MAAM,KAAKC,2BAAa,KAAK;GAE7B,MAAM,gCAAuB,UAAU,OAAO,SAAS,CAAC;GAExD,MAAM,oBAAoBC,4BAAyB;GAKnD,MAAM,0BAA8B;GACpC,MAAM,yBAA6B;GAC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,EACV,MAAK,IAAI,IAAI,OAAO,KAAK,KAAK,IAC5B,UAAS,gBAELC,cACA,EAAE,KAAK,GAAG,EACT,OAAO,UAAmB;IACzB;IACA,OAAO;IACP,aAAa,iBAAiB,OAAO,cAAc;IACnD,OAAO,aAAa,EAAE;IACvB,CAAC,CACH,CACF;GAIL,MAAM,YAAY,YAEd,2BACW,IAAI,YAAY;IACzB,OAAO;IACP,KAAK;IACN,CAAC,EACF,2BAAU,MAAM,GACZ,EACE,eAAe,UAChB,GACD,SACL,CACF;GAED,MAAM,uBAAcC,2BAAW;IAC7B,KAAK;IACL;IACA;IACA,UAAU;IACV,OAAQ,aAAa,MAAO,KAAK;IACjC,YACE,OAAO,gBAAgB,KAAK,qBAAqB;IACnD;IACA,UAAU;IACX,CAAC;GAEF,MAAM,2BACJ,WACA;IACE,OAAO,CAAC,GAAG,EAAE,SAAS,EAAE,UAAU;IAClC,OAAO;IACP;IACA,KAAK;IACL,KAAK;IACN,EACD,2BAAU,UAAU,GAAG,EAAE,eAAe,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CACpE;AAED,qBACE,OACA;IACE,KAAK;IACL,OAAO,CAAC,GAAG,EAAE,UAAU,EAAE,oBAAoB,cAAc,GAAG;IAC/D,EACD,CAAC,eAAe,UAAU,CAC3B;;EAEJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"build-list.js","names":["virtualizedListProps","ITEM_RENDER_EVT","SCROLL_EVT","END_REACHED_EVT","useNamespace","useCache","FORWARD","isNumber","BACKWARD","isHorizontal","isGreaterThan","useWheel","RTL","getScrollDir","getRTLOffsetType","RTL_OFFSET_NAG","RTL_OFFSET_POS_DESC","AUTO_ALIGNMENT","isClient","HORIZONTAL","RTL_OFFSET_POS_ASC","Fragment","Scrollbar"],"sources":["../../../../../../../packages/components/virtual-list/src/builders/build-list.ts"],"sourcesContent":["import {\n Fragment,\n computed,\n defineComponent,\n getCurrentInstance,\n h,\n mergeProps,\n nextTick,\n onActivated,\n onMounted,\n onUpdated,\n ref,\n resolveDynamicComponent,\n unref,\n watch,\n} from 'vue'\nimport { clamp, useEventListener } from '@vueuse/core'\nimport {\n hasOwn,\n isClient,\n isGreaterThan,\n isNumber,\n isString,\n} from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useCache } from '../hooks/use-cache'\nimport useWheel from '../hooks/use-wheel'\nimport Scrollbar from '../components/scrollbar'\nimport { getRTLOffsetType, getScrollDir, isHorizontal } from '../utils'\nimport { virtualizedListProps } from '../props'\nimport {\n AUTO_ALIGNMENT,\n BACKWARD,\n END_REACHED_EVT,\n FORWARD,\n HORIZONTAL,\n ITEM_RENDER_EVT,\n RTL,\n RTL_OFFSET_NAG,\n RTL_OFFSET_POS_ASC,\n RTL_OFFSET_POS_DESC,\n SCROLL_EVT,\n} from '../defaults'\n\nimport type { CSSProperties, Slot, VNode, VNodeChild } from 'vue'\nimport type { Alignment, ListConstructorProps, ScrollDirection } from '../types'\nimport type { VirtualizedListProps } from '../props'\n\nconst createList = ({\n name,\n getOffset,\n getItemSize,\n getItemOffset,\n getEstimatedTotalSize,\n getStartIndexForOffset,\n getStopIndexForStartIndex,\n initCache,\n clearCache,\n validateProps,\n}: ListConstructorProps<VirtualizedListProps>) => {\n return defineComponent({\n name: name ?? 'ElVirtualList',\n props: virtualizedListProps,\n emits: [ITEM_RENDER_EVT, SCROLL_EVT, END_REACHED_EVT],\n setup(props, { emit, expose }) {\n validateProps(props)\n const instance = getCurrentInstance()!\n\n const ns = useNamespace('vl')\n\n const dynamicSizeCache = ref(initCache(props, instance))\n\n const getItemStyleCache = useCache<CSSProperties>()\n // refs\n // here windowRef and innerRef can be type of HTMLElement\n // or user defined component type, depends on the type passed\n // by user\n const windowRef = ref<HTMLElement>()\n const innerRef = ref<HTMLElement>()\n const scrollbarRef = ref()\n const states = ref({\n isScrolling: false,\n scrollDir: FORWARD as ScrollDirection,\n scrollOffset: isNumber(props.initScrollOffset)\n ? props.initScrollOffset\n : 0,\n updateRequested: false,\n isScrollbarDragging: false,\n })\n\n // computed\n const itemsToRender = computed(() => {\n const { total, cache } = props\n const { isScrolling, scrollDir, scrollOffset } = unref(states)\n\n if (total === 0) {\n return [0, 0, 0, 0]\n }\n\n const startIndex = getStartIndexForOffset(\n props,\n scrollOffset,\n unref(dynamicSizeCache)\n )\n const stopIndex = getStopIndexForStartIndex(\n props,\n startIndex,\n scrollOffset,\n unref(dynamicSizeCache)\n )\n\n const cacheBackward =\n !isScrolling || scrollDir === BACKWARD ? Math.max(1, cache) : 1\n const cacheForward =\n !isScrolling || scrollDir === FORWARD ? Math.max(1, cache) : 1\n\n return [\n Math.max(0, startIndex - cacheBackward),\n Math.max(0, Math.min(total! - 1, stopIndex + cacheForward)),\n startIndex,\n stopIndex,\n ]\n })\n\n const estimatedTotalSize = computed(() =>\n getEstimatedTotalSize(props, unref(dynamicSizeCache))\n )\n\n const _isHorizontal = computed(() => isHorizontal(props.layout))\n\n const windowStyle = computed(() => [\n {\n position: 'relative',\n [`overflow-${_isHorizontal.value ? 'x' : 'y'}`]: 'scroll',\n WebkitOverflowScrolling: 'touch',\n willChange: 'transform',\n },\n {\n direction: props.direction,\n height: isNumber(props.height) ? `${props.height}px` : props.height,\n width: isNumber(props.width) ? `${props.width}px` : props.width,\n },\n props.style,\n ])\n\n const innerStyle = computed(() => {\n const size = unref(estimatedTotalSize)\n const horizontal = unref(_isHorizontal)\n const innerWidth = props.innerWidth\n return {\n height: horizontal ? '100%' : `${size}px`,\n pointerEvents: unref(states).isScrolling ? 'none' : undefined,\n width: horizontal\n ? `${size}px`\n : innerWidth !== undefined\n ? isNumber(innerWidth)\n ? `${innerWidth}px`\n : innerWidth\n : '100%',\n\n // fix scrolling issues in Firefox.\n margin: 0,\n boxSizing: 'border-box',\n }\n })\n\n const clientSize = computed(() =>\n _isHorizontal.value ? props.width : props.height\n )\n\n const maxOffset = computed(() =>\n Math.max(0, estimatedTotalSize.value - (clientSize.value as number))\n )\n\n const normalizeOffset = (offset: number) =>\n clamp(offset, 0, maxOffset.value)\n\n // Tolerance must cover sub-pixel differences that arise when the\n // browser's actual scrollHeight−clientHeight (affected by DPR\n // rounding) doesn't exactly match our computed maxOffset.\n // Without this, the native scroll event after onUpdated resets\n // edgeState and causes a duplicate end-reached emission.\n const EDGE_TOLERANCE = 1\n\n const getEdgeState = (normalizedOffset: number) => ({\n start: !isGreaterThan(normalizedOffset, 0, EDGE_TOLERANCE),\n end: !isGreaterThan(maxOffset.value, normalizedOffset, EDGE_TOLERANCE),\n })\n\n const normalizedScrollOffset = computed(() =>\n normalizeOffset(states.value.scrollOffset)\n )\n const currentEdgeState = computed(() =>\n getEdgeState(normalizedScrollOffset.value)\n )\n\n let edgeState = currentEdgeState.value\n\n const startEdgeReached = computed(() => currentEdgeState.value.start)\n const endEdgeReached = computed(() => currentEdgeState.value.end)\n\n // methods\n const { onWheel } = useWheel(\n {\n atStartEdge: startEdgeReached,\n atEndEdge: endEdgeReached,\n layout: computed(() => props.layout),\n },\n (offset) => {\n ;(\n scrollbarRef.value as {\n onMouseUp: () => void\n }\n ).onMouseUp?.()\n scrollTo(\n Math.min(states.value.scrollOffset + offset, maxOffset.value)\n )\n }\n )\n\n useEventListener(windowRef, 'wheel', onWheel, {\n passive: false,\n })\n\n const emitEvents = () => {\n const { total } = props\n\n if (total! > 0) {\n const [cacheStart, cacheEnd, visibleStart, visibleEnd] =\n unref(itemsToRender)\n emit(ITEM_RENDER_EVT, cacheStart, cacheEnd, visibleStart, visibleEnd)\n }\n\n const { scrollDir, scrollOffset, updateRequested } = unref(states)\n emit(SCROLL_EVT, scrollDir, scrollOffset, updateRequested)\n }\n\n const emitEndReached = (direction: ScrollDirection, offset: number) => {\n const nextEdgeState = getEdgeState(offset)\n const horizontalEnd = props.direction === RTL ? 'left' : 'right'\n const horizontalStart = props.direction === RTL ? 'right' : 'left'\n\n if (direction === FORWARD && nextEdgeState.end && !edgeState.end) {\n emit(END_REACHED_EVT, _isHorizontal.value ? horizontalEnd : 'bottom')\n }\n\n if (direction === BACKWARD && nextEdgeState.start && !edgeState.start) {\n emit(END_REACHED_EVT, _isHorizontal.value ? horizontalStart : 'top')\n }\n\n edgeState = nextEdgeState\n }\n\n const updateScrollOffset = (\n offset: number,\n {\n isScrolling,\n updateRequested,\n }: {\n isScrolling: boolean\n updateRequested: boolean\n }\n ) => {\n const currentState = unref(states)\n const nextOffset = Math.max(offset, 0)\n\n if (nextOffset === currentState.scrollOffset) {\n return\n }\n\n const scrollDir = getScrollDir(currentState.scrollOffset, nextOffset)\n\n states.value = {\n ...currentState,\n isScrolling,\n scrollDir,\n scrollOffset: nextOffset,\n updateRequested,\n }\n emitEndReached(scrollDir, normalizeOffset(nextOffset))\n\n nextTick(resetIsScrolling)\n }\n\n const scrollVertically = (e: Event) => {\n const { clientHeight, scrollHeight, scrollTop } =\n e.currentTarget as HTMLElement\n const _states = unref(states)\n if (_states.scrollOffset === scrollTop) {\n return\n }\n\n updateScrollOffset(Math.min(scrollTop, scrollHeight - clientHeight), {\n isScrolling: true,\n updateRequested: false,\n })\n }\n\n const scrollHorizontally = (e: Event) => {\n const { clientWidth, scrollLeft, scrollWidth } =\n e.currentTarget as HTMLElement\n const _states = unref(states)\n\n if (_states.scrollOffset === scrollLeft) {\n return\n }\n\n const { direction } = props\n\n let scrollOffset = scrollLeft\n\n if (direction === RTL) {\n // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // It's also easier for this component if we convert offsets to the same format as they would be in for ltr.\n // So the simplest solution is to determine which browser behavior we're dealing with, and convert based on it.\n switch (getRTLOffsetType()) {\n case RTL_OFFSET_NAG: {\n scrollOffset = -scrollLeft\n break\n }\n case RTL_OFFSET_POS_DESC: {\n scrollOffset = scrollWidth - clientWidth - scrollLeft\n break\n }\n }\n }\n\n updateScrollOffset(Math.min(scrollOffset, scrollWidth - clientWidth), {\n isScrolling: true,\n updateRequested: false,\n })\n }\n\n const onScroll = (e: Event) => {\n unref(_isHorizontal) ? scrollHorizontally(e) : scrollVertically(e)\n emitEvents()\n }\n\n const onScrollbarScroll = (distanceToGo: number, totalSteps: number) => {\n const offset = (maxOffset.value / totalSteps) * distanceToGo\n scrollTo(Math.min(maxOffset.value, offset))\n }\n\n const scrollTo = (offset: number) => {\n updateScrollOffset(offset, {\n isScrolling: unref(states).isScrolling,\n updateRequested: true,\n })\n }\n\n const scrollToItem = (\n idx: number,\n alignment: Alignment = AUTO_ALIGNMENT\n ) => {\n const { scrollOffset } = unref(states)\n\n idx = Math.max(0, Math.min(idx, props.total! - 1))\n scrollTo(\n getOffset(\n props,\n idx,\n alignment,\n scrollOffset,\n unref(dynamicSizeCache)\n )\n )\n }\n\n const getItemStyle = (idx: number) => {\n const { direction, itemSize, layout } = props\n\n const itemStyleCache = getItemStyleCache.value(\n clearCache && itemSize,\n clearCache && layout,\n clearCache && direction\n )\n\n let style: CSSProperties\n if (hasOwn(itemStyleCache, String(idx))) {\n style = itemStyleCache[idx]\n } else {\n const offset = getItemOffset(props, idx, unref(dynamicSizeCache))\n const size = getItemSize(props, idx, unref(dynamicSizeCache))\n const horizontal = unref(_isHorizontal)\n\n const isRtl = direction === RTL\n const offsetHorizontal = horizontal ? offset : 0\n itemStyleCache[idx] = style = {\n position: 'absolute',\n left: isRtl ? undefined : `${offsetHorizontal}px`,\n right: isRtl ? `${offsetHorizontal}px` : undefined,\n top: !horizontal ? `${offset}px` : 0,\n height: !horizontal ? `${size}px` : '100%',\n width: horizontal ? `${size}px` : '100%',\n }\n }\n\n return style\n }\n\n // TODO: perf optimization here, reset isScrolling with debounce.\n\n const resetIsScrolling = () => {\n states.value.isScrolling = false\n nextTick(() => {\n getItemStyleCache.value(-1, null, null)\n })\n }\n\n const resetScrollTop = () => {\n const window = windowRef.value\n if (window) {\n window.scrollTop = 0\n }\n }\n\n // life cycles\n onMounted(() => {\n if (!isClient) return\n const { initScrollOffset } = props\n const windowElement = unref(windowRef)\n if (isNumber(initScrollOffset) && windowElement) {\n if (unref(_isHorizontal)) {\n windowElement.scrollLeft = initScrollOffset\n } else {\n windowElement.scrollTop = initScrollOffset\n }\n }\n\n emitEvents()\n })\n\n onUpdated(() => {\n const { direction, layout } = props\n const { scrollOffset, updateRequested } = unref(states)\n const windowElement = unref(windowRef)\n\n if (updateRequested && windowElement) {\n if (layout === HORIZONTAL) {\n if (direction === RTL) {\n // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // So we need to determine which browser behavior we're dealing with, and mimic it.\n switch (getRTLOffsetType()) {\n case RTL_OFFSET_NAG: {\n windowElement.scrollLeft = -scrollOffset\n break\n }\n case RTL_OFFSET_POS_ASC: {\n windowElement.scrollLeft = scrollOffset\n break\n }\n default: {\n const { clientWidth, scrollWidth } = windowElement\n windowElement.scrollLeft =\n scrollWidth - clientWidth - scrollOffset\n break\n }\n }\n } else {\n windowElement.scrollLeft = scrollOffset\n }\n } else {\n windowElement.scrollTop = scrollOffset\n }\n }\n })\n\n onActivated(() => {\n unref(windowRef)!.scrollTop = unref(states).scrollOffset\n })\n\n watch(maxOffset, () => {\n edgeState = currentEdgeState.value\n })\n\n const api = {\n ns,\n clientSize,\n estimatedTotalSize,\n windowStyle,\n windowRef,\n innerRef,\n innerStyle,\n itemsToRender,\n scrollbarRef,\n states,\n getItemStyle,\n onScroll,\n onScrollbarScroll,\n onWheel,\n scrollTo,\n scrollToItem,\n resetScrollTop,\n }\n\n expose({\n windowRef,\n innerRef,\n getItemStyleCache,\n scrollTo,\n scrollToItem,\n resetScrollTop,\n states,\n })\n\n return api\n },\n\n render(ctx: any) {\n const {\n $slots,\n className,\n clientSize,\n containerElement,\n data,\n getItemStyle,\n innerElement,\n itemsToRender,\n innerStyle,\n layout,\n scrollbarAlwaysOn,\n total,\n onScroll,\n onScrollbarScroll,\n states,\n useIsScrolling,\n windowStyle,\n ns,\n } = ctx\n\n const [start, end] = itemsToRender\n\n const Container = resolveDynamicComponent(containerElement)\n const Inner = resolveDynamicComponent(innerElement)\n\n const children = [] as VNodeChild[]\n\n if (total > 0) {\n for (let i = start; i <= end; i++) {\n children.push(\n h(\n Fragment,\n { key: i },\n ($slots.default as Slot)?.({\n data,\n index: i,\n isScrolling: useIsScrolling ? states.isScrolling : undefined,\n style: getItemStyle(i),\n })\n )\n )\n }\n }\n\n const InnerNode = [\n h(\n Inner as VNode,\n mergeProps(ctx.innerProps, {\n style: innerStyle,\n ref: 'innerRef',\n }),\n !isString(Inner)\n ? {\n default: () => children,\n }\n : children\n ),\n ]\n\n const scrollbar = h(Scrollbar, {\n ref: 'scrollbarRef',\n clientSize,\n layout,\n onScroll: onScrollbarScroll,\n ratio: (clientSize * 100) / this.estimatedTotalSize,\n scrollFrom:\n states.scrollOffset / (this.estimatedTotalSize - clientSize),\n total,\n alwaysOn: scrollbarAlwaysOn,\n })\n\n const listContainer = h(\n Container as VNode,\n {\n class: [ns.e('window'), className],\n style: windowStyle,\n onScroll,\n ref: 'windowRef',\n key: 0,\n },\n !isString(Container) ? { default: () => [InnerNode] } : [InnerNode]\n )\n\n return h(\n 'div',\n {\n key: 0,\n class: [ns.e('wrapper'), scrollbarAlwaysOn ? 'always-on' : ''],\n },\n [listContainer, scrollbar]\n )\n },\n })\n}\n\nexport default createList\n"],"mappings":";;;;;;;;;;;;;;;;AAgDA,MAAM,cAAc,EAClB,MACA,WACA,aACA,eACA,uBACA,wBACA,2BACA,WACA,YACA,oBACgD;AAChD,iCAAuB;EACrB,MAAM,QAAQ;EACd,OAAOA;EACP,OAAO;GAACC;GAAiBC;GAAYC;GAAgB;EACrD,MAAM,OAAO,EAAE,MAAM,UAAU;AAC7B,iBAAc,MAAM;GACpB,MAAM,wCAA+B;GAErC,MAAM,KAAKC,2BAAa,KAAK;GAE7B,MAAM,gCAAuB,UAAU,OAAO,SAAS,CAAC;GAExD,MAAM,oBAAoBC,4BAAyB;GAKnD,MAAM,0BAA8B;GACpC,M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,6CAAoC,iBAAiB;GAC3D,MAAM,yCAAgC,aAAa;GAEnD,MAAM,WAAW,EAAE;AAEnB,OAAI,QAAQ,EACV,MAAK,IAAI,IAAI,OAAO,KAAK,KAAK,IAC5B,UAAS,gBAELC,cACA,EAAE,KAAK,GAAG,EACT,OAAO,UAAmB;IACzB;IACA,OAAO;IACP,aAAa,iBAAiB,OAAO,cAAc;IACnD,OAAO,aAAa,EAAE;IACvB,CAAC,CACH,CACF;GAIL,MAAM,YAAY,YAEd,2BACW,IAAI,YAAY;IACzB,OAAO;IACP,KAAK;IACN,CAAC,EACF,2BAAU,MAAM,GACZ,EACE,eAAe,UAChB,GACD,SACL,CACF;GAED,MAAM,uBAAcC,2BAAW;IAC7B,KAAK;IACL;IACA;IACA,UAAU;IACV,OAAQ,aAAa,MAAO,KAAK;IACjC,YACE,OAAO,gBAAgB,KAAK,qBAAqB;IACnD;IACA,UAAU;IACX,CAAC;GAEF,MAAM,2BACJ,WACA;IACE,OAAO,CAAC,GAAG,EAAE,SAAS,EAAE,UAAU;IAClC,OAAO;IACP;IACA,KAAK;IACL,KAAK;IACN,EACD,2BAAU,UAAU,GAAG,EAAE,eAAe,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CACpE;AAED,qBACE,OACA;IACE,KAAK;IACL,OAAO,CAAC,GAAG,EAAE,UAAU,EAAE,oBAAoB,cAAc,GAAG;IAC/D,EACD,CAAC,eAAe,UAAU,CAC3B;;EAEJ,CAAC"}
|
|
@@ -36,6 +36,12 @@ declare const DynamicSizeGrid: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
36
36
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
37
37
|
__epPropKey: true;
|
|
38
38
|
};
|
|
39
|
+
readonly innerWidth: {
|
|
40
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
41
|
+
readonly required: false;
|
|
42
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
43
|
+
__epPropKey: true;
|
|
44
|
+
};
|
|
39
45
|
readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
40
46
|
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
41
47
|
readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
@@ -126,6 +132,12 @@ declare const DynamicSizeGrid: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
126
132
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
127
133
|
__epPropKey: true;
|
|
128
134
|
};
|
|
135
|
+
readonly innerWidth: {
|
|
136
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
137
|
+
readonly required: false;
|
|
138
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
139
|
+
__epPropKey: true;
|
|
140
|
+
};
|
|
129
141
|
readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
130
142
|
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
131
143
|
readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
@@ -195,12 +207,12 @@ declare const DynamicSizeGrid: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
195
207
|
readonly data: any[];
|
|
196
208
|
readonly className: string;
|
|
197
209
|
readonly direction: EpPropMergeType<StringConstructor, "ltr" | "rtl", never>;
|
|
198
|
-
readonly scrollbarAlwaysOn: boolean;
|
|
199
|
-
readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
200
210
|
readonly containerElement: EpPropMergeType<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown>;
|
|
201
211
|
readonly innerElement: EpPropMergeType<readonly [StringConstructor, ObjectConstructor], unknown, unknown>;
|
|
202
212
|
readonly innerProps: Record<string, unknown>;
|
|
213
|
+
readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
203
214
|
readonly useIsScrolling: boolean;
|
|
215
|
+
readonly scrollbarAlwaysOn: boolean;
|
|
204
216
|
readonly itemKey: GridItemKeyGetter;
|
|
205
217
|
readonly columnCache: number;
|
|
206
218
|
readonly initScrollLeft: number;
|
|
@@ -31,6 +31,12 @@ declare const DynamicSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
31
31
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
32
32
|
__epPropKey: true;
|
|
33
33
|
};
|
|
34
|
+
readonly innerWidth: {
|
|
35
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
36
|
+
readonly required: false;
|
|
37
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
|
+
__epPropKey: true;
|
|
39
|
+
};
|
|
34
40
|
readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
35
41
|
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
36
42
|
readonly cache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
@@ -118,7 +124,7 @@ declare const DynamicSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
118
124
|
scrollTo: (offset: number) => void;
|
|
119
125
|
scrollToItem: (idx: number, alignment?: Alignment) => void;
|
|
120
126
|
resetScrollTop: () => void;
|
|
121
|
-
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("scroll" | "
|
|
127
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("scroll" | "itemRendered" | "end-reached")[], "scroll" | "itemRendered" | "end-reached", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
122
128
|
readonly className: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
123
129
|
readonly containerElement: EpPropFinalized<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown, "div", boolean>;
|
|
124
130
|
readonly data: EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | (((new (...args: any[]) => any[]) | (() => any[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
@@ -144,6 +150,12 @@ declare const DynamicSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
144
150
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
145
151
|
__epPropKey: true;
|
|
146
152
|
};
|
|
153
|
+
readonly innerWidth: {
|
|
154
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
155
|
+
readonly required: false;
|
|
156
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
157
|
+
__epPropKey: true;
|
|
158
|
+
};
|
|
147
159
|
readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
148
160
|
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
149
161
|
readonly cache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
@@ -169,19 +181,19 @@ declare const DynamicSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
169
181
|
};
|
|
170
182
|
}>> & Readonly<{
|
|
171
183
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
172
|
-
"onEnd-reached"?: ((...args: any[]) => any) | undefined;
|
|
173
184
|
onItemRendered?: ((...args: any[]) => any) | undefined;
|
|
185
|
+
"onEnd-reached"?: ((...args: any[]) => any) | undefined;
|
|
174
186
|
}>, {
|
|
175
187
|
readonly data: any[];
|
|
176
188
|
readonly className: string;
|
|
177
189
|
readonly direction: EpPropMergeType<StringConstructor, "ltr" | "rtl", never>;
|
|
178
190
|
readonly layout: EpPropMergeType<StringConstructor, "horizontal" | "vertical", never>;
|
|
179
|
-
readonly scrollbarAlwaysOn: boolean;
|
|
180
|
-
readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
181
191
|
readonly containerElement: EpPropMergeType<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown>;
|
|
182
192
|
readonly innerElement: EpPropMergeType<readonly [StringConstructor, ObjectConstructor], unknown, unknown>;
|
|
183
193
|
readonly innerProps: Record<string, unknown>;
|
|
194
|
+
readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
184
195
|
readonly useIsScrolling: boolean;
|
|
196
|
+
readonly scrollbarAlwaysOn: boolean;
|
|
185
197
|
readonly cache: number;
|
|
186
198
|
readonly initScrollOffset: number;
|
|
187
199
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
@@ -31,6 +31,12 @@ declare const FixedSizeGrid: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
31
31
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
32
32
|
__epPropKey: true;
|
|
33
33
|
};
|
|
34
|
+
readonly innerWidth: {
|
|
35
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
36
|
+
readonly required: false;
|
|
37
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
|
+
__epPropKey: true;
|
|
39
|
+
};
|
|
34
40
|
readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
35
41
|
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
36
42
|
readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
@@ -121,6 +127,12 @@ declare const FixedSizeGrid: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
121
127
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
122
128
|
__epPropKey: true;
|
|
123
129
|
};
|
|
130
|
+
readonly innerWidth: {
|
|
131
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
132
|
+
readonly required: false;
|
|
133
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
134
|
+
__epPropKey: true;
|
|
135
|
+
};
|
|
124
136
|
readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
125
137
|
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
126
138
|
readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
@@ -190,12 +202,12 @@ declare const FixedSizeGrid: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
190
202
|
readonly data: any[];
|
|
191
203
|
readonly className: string;
|
|
192
204
|
readonly direction: EpPropMergeType<StringConstructor, "ltr" | "rtl", never>;
|
|
193
|
-
readonly scrollbarAlwaysOn: boolean;
|
|
194
|
-
readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
195
205
|
readonly containerElement: EpPropMergeType<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown>;
|
|
196
206
|
readonly innerElement: EpPropMergeType<readonly [StringConstructor, ObjectConstructor], unknown, unknown>;
|
|
197
207
|
readonly innerProps: Record<string, unknown>;
|
|
208
|
+
readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
198
209
|
readonly useIsScrolling: boolean;
|
|
210
|
+
readonly scrollbarAlwaysOn: boolean;
|
|
199
211
|
readonly itemKey: GridItemKeyGetter;
|
|
200
212
|
readonly columnCache: number;
|
|
201
213
|
readonly initScrollLeft: number;
|
|
@@ -31,6 +31,12 @@ declare const FixedSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
31
31
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
32
32
|
__epPropKey: true;
|
|
33
33
|
};
|
|
34
|
+
readonly innerWidth: {
|
|
35
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
36
|
+
readonly required: false;
|
|
37
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
|
+
__epPropKey: true;
|
|
39
|
+
};
|
|
34
40
|
readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
35
41
|
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
36
42
|
readonly cache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
@@ -118,7 +124,7 @@ declare const FixedSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
118
124
|
scrollTo: (offset: number) => void;
|
|
119
125
|
scrollToItem: (idx: number, alignment?: Alignment) => void;
|
|
120
126
|
resetScrollTop: () => void;
|
|
121
|
-
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("scroll" | "
|
|
127
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("scroll" | "itemRendered" | "end-reached")[], "scroll" | "itemRendered" | "end-reached", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
122
128
|
readonly className: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
123
129
|
readonly containerElement: EpPropFinalized<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown, "div", boolean>;
|
|
124
130
|
readonly data: EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | (((new (...args: any[]) => any[]) | (() => any[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
@@ -144,6 +150,12 @@ declare const FixedSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
144
150
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
145
151
|
__epPropKey: true;
|
|
146
152
|
};
|
|
153
|
+
readonly innerWidth: {
|
|
154
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
155
|
+
readonly required: false;
|
|
156
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
157
|
+
__epPropKey: true;
|
|
158
|
+
};
|
|
147
159
|
readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
148
160
|
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
149
161
|
readonly cache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
@@ -169,19 +181,19 @@ declare const FixedSizeList: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
169
181
|
};
|
|
170
182
|
}>> & Readonly<{
|
|
171
183
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
172
|
-
"onEnd-reached"?: ((...args: any[]) => any) | undefined;
|
|
173
184
|
onItemRendered?: ((...args: any[]) => any) | undefined;
|
|
185
|
+
"onEnd-reached"?: ((...args: any[]) => any) | undefined;
|
|
174
186
|
}>, {
|
|
175
187
|
readonly data: any[];
|
|
176
188
|
readonly className: string;
|
|
177
189
|
readonly direction: EpPropMergeType<StringConstructor, "ltr" | "rtl", never>;
|
|
178
190
|
readonly layout: EpPropMergeType<StringConstructor, "horizontal" | "vertical", never>;
|
|
179
|
-
readonly scrollbarAlwaysOn: boolean;
|
|
180
|
-
readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
181
191
|
readonly containerElement: EpPropMergeType<(new (...args: any[]) => string | Element) | (() => string | Element) | (((new (...args: any[]) => string | Element) | (() => string | Element)) | null)[], unknown, unknown>;
|
|
182
192
|
readonly innerElement: EpPropMergeType<readonly [StringConstructor, ObjectConstructor], unknown, unknown>;
|
|
183
193
|
readonly innerProps: Record<string, unknown>;
|
|
194
|
+
readonly perfMode: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
184
195
|
readonly useIsScrolling: boolean;
|
|
196
|
+
readonly scrollbarAlwaysOn: boolean;
|
|
185
197
|
readonly cache: number;
|
|
186
198
|
readonly initScrollOffset: number;
|
|
187
199
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
@@ -31,6 +31,12 @@ declare const virtualizedProps: {
|
|
|
31
31
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
32
32
|
__epPropKey: true;
|
|
33
33
|
};
|
|
34
|
+
readonly innerWidth: {
|
|
35
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
36
|
+
readonly required: false;
|
|
37
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
|
+
__epPropKey: true;
|
|
39
|
+
};
|
|
34
40
|
readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
35
41
|
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
36
42
|
};
|
|
@@ -60,6 +66,12 @@ declare const virtualizedListProps: {
|
|
|
60
66
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
61
67
|
__epPropKey: true;
|
|
62
68
|
};
|
|
69
|
+
readonly innerWidth: {
|
|
70
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
71
|
+
readonly required: false;
|
|
72
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
|
+
__epPropKey: true;
|
|
74
|
+
};
|
|
63
75
|
readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
64
76
|
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
65
77
|
readonly cache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
@@ -110,6 +122,12 @@ declare const virtualizedGridProps: {
|
|
|
110
122
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
111
123
|
__epPropKey: true;
|
|
112
124
|
};
|
|
125
|
+
readonly innerWidth: {
|
|
126
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>>;
|
|
127
|
+
readonly required: false;
|
|
128
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
129
|
+
__epPropKey: true;
|
|
130
|
+
};
|
|
113
131
|
readonly perfMode: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
114
132
|
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
115
133
|
readonly columnCache: EpPropFinalized<NumberConstructor, never, never, 2, false>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","names":["buildProp","definePropType","VERTICAL","buildProps","mutable"],"sources":["../../../../../../packages/components/virtual-list/src/props.ts"],"sourcesContent":["import {\n buildProp,\n buildProps,\n definePropType,\n mutable,\n} from '@element-plus/utils'\nimport { VERTICAL } from './defaults'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type { GridItemKeyGetter, ItemSize } from './types'\n\nconst itemSize = buildProp({\n type: definePropType<number | ItemSize>([Number, Function]),\n required: true,\n} as const)\n\nconst estimatedItemSize = buildProp({\n type: Number,\n} as const)\n\nconst cache = buildProp({\n type: Number,\n default: 2,\n} as const)\n\nconst direction = buildProp({\n type: String,\n values: ['ltr', 'rtl'],\n default: 'ltr',\n} as const)\n\nconst initScrollOffset = buildProp({\n type: Number,\n default: 0,\n} as const)\n\nconst total = buildProp({\n type: Number,\n required: true,\n} as const)\n\nconst layout = buildProp({\n type: String,\n values: ['horizontal', 'vertical'],\n default: VERTICAL,\n} as const)\n\nexport const virtualizedProps = buildProps({\n className: {\n type: String,\n default: '',\n },\n\n containerElement: {\n type: definePropType<string | Element>([String, Object]),\n default: 'div',\n },\n\n data: {\n type: definePropType<any[]>(Array),\n default: () => mutable([] as const),\n },\n\n /**\n * @description controls the horizontal direction.\n */\n direction,\n\n height: {\n type: [String, Number],\n required: true,\n },\n\n innerElement: {\n type: [String, Object],\n default: 'div',\n },\n\n innerProps: {\n type: definePropType<Record<string, unknown>>(Object),\n default: () => ({}),\n },\n\n style: {\n type: definePropType<StyleValue>([Object, String, Array]),\n },\n\n useIsScrolling: Boolean,\n\n width: {\n type: [Number, String],\n required: false,\n },\n\n perfMode: {\n type: Boolean,\n default: true,\n },\n scrollbarAlwaysOn: Boolean,\n} as const)\n\nexport const virtualizedListProps = buildProps({\n /**\n * @description describes how many items should be pre rendered to the head\n * and the tail of the window\n */\n cache,\n\n estimatedItemSize,\n\n /**\n * @description controls the list's orientation\n */\n layout,\n\n initScrollOffset,\n\n /**\n * @description describes the total number of the list.\n */\n total,\n\n itemSize,\n ...virtualizedProps,\n} as const)\n\nconst scrollbarSize = {\n type: Number,\n default: 6,\n} as const\n\nconst startGap = { type: Number, default: 0 } as const\nconst endGap = { type: Number, default: 2 } as const\n\nexport const virtualizedGridProps = buildProps({\n columnCache: cache,\n columnWidth: itemSize,\n estimatedColumnWidth: estimatedItemSize,\n estimatedRowHeight: estimatedItemSize,\n initScrollLeft: initScrollOffset,\n initScrollTop: initScrollOffset,\n itemKey: {\n type: definePropType<GridItemKeyGetter>(Function),\n default: ({\n columnIndex,\n rowIndex,\n }: {\n columnIndex: number\n rowIndex: number\n }) => `${rowIndex}:${columnIndex}`,\n },\n rowCache: cache,\n rowHeight: itemSize,\n totalColumn: total,\n totalRow: total,\n hScrollbarSize: scrollbarSize,\n vScrollbarSize: scrollbarSize,\n scrollbarStartGap: startGap,\n scrollbarEndGap: endGap,\n role: String,\n ...virtualizedProps,\n} as const)\n\nexport const virtualizedScrollbarProps = buildProps({\n alwaysOn: Boolean,\n class: String,\n layout,\n total,\n ratio: {\n type: Number,\n required: true,\n },\n clientSize: {\n type: Number,\n required: true,\n },\n scrollFrom: {\n type: Number,\n required: true,\n },\n scrollbarSize,\n startGap,\n endGap,\n\n visible: Boolean,\n} as const)\n\nexport type VirtualizedProps = ExtractPropTypes<typeof virtualizedProps>\nexport type VirtualizedPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedProps\n>\nexport type VirtualizedListProps = ExtractPropTypes<typeof virtualizedListProps>\nexport type VirtualizedListPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedListProps\n>\nexport type VirtualizedGridProps = ExtractPropTypes<typeof virtualizedGridProps>\nexport type VirtualizedGridPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedGridProps\n>\n\nexport type VirtualizedScrollbarProps = ExtractPropTypes<\n typeof virtualizedScrollbarProps\n>\nexport type VirtualizedScrollbarPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedScrollbarProps\n>\n"],"mappings":";;;;;;AAWA,MAAM,WAAWA,0BAAU;CACzB,MAAMC,+BAAkC,CAAC,QAAQ,SAAS,CAAC;CAC3D,UAAU;CACX,CAAU;AAEX,MAAM,oBAAoBD,0BAAU,EAClC,MAAM,QACP,CAAU;AAEX,MAAM,QAAQA,0BAAU;CACtB,MAAM;CACN,SAAS;CACV,CAAU;AAEX,MAAM,YAAYA,0BAAU;CAC1B,MAAM;CACN,QAAQ,CAAC,OAAO,MAAM;CACtB,SAAS;CACV,CAAU;AAEX,MAAM,mBAAmBA,0BAAU;CACjC,MAAM;CACN,SAAS;CACV,CAAU;AAEX,MAAM,QAAQA,0BAAU;CACtB,MAAM;CACN,UAAU;CACX,CAAU;AAEX,MAAM,SAASA,0BAAU;CACvB,MAAM;CACN,QAAQ,CAAC,cAAc,WAAW;CAClC,SAASE;CACV,CAAU;AAEX,MAAa,mBAAmBC,2BAAW;CACzC,WAAW;EACT,MAAM;EACN,SAAS;EACV;CAED,kBAAkB;EAChB,MAAMF,+BAAiC,CAAC,QAAQ,OAAO,CAAC;EACxD,SAAS;EACV;CAED,MAAM;EACJ,MAAMA,+BAAsB,MAAM;EAClC,eAAeG,2BAAQ,EAAE,CAAU;EACpC;CAKD;CAEA,QAAQ;EACN,MAAM,CAAC,QAAQ,OAAO;EACtB,UAAU;EACX;CAED,cAAc;EACZ,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS;EACV;CAED,YAAY;EACV,MAAMH,+BAAwC,OAAO;EACrD,gBAAgB,EAAE;EACnB;CAED,OAAO,EACL,MAAMA,+BAA2B;EAAC;EAAQ;EAAQ;EAAM,CAAC,EAC1D;CAED,gBAAgB;CAEhB,OAAO;EACL,MAAM,CAAC,QAAQ,OAAO;EACtB,UAAU;EACX;CAED,UAAU;EACR,MAAM;EACN,SAAS;EACV;CACD,mBAAmB;CACpB,CAAU;AAEX,MAAa,uBAAuBE,2BAAW;CAK7C;CAEA;CAKA;CAEA;CAKA;CAEA;CACA,GAAG;CACJ,CAAU;AAEX,MAAM,gBAAgB;CACpB,MAAM;CACN,SAAS;CACV;AAED,MAAM,WAAW;CAAE,MAAM;CAAQ,SAAS;CAAG;AAC7C,MAAM,SAAS;CAAE,MAAM;CAAQ,SAAS;CAAG;AAE3C,MAAa,uBAAuBA,2BAAW;CAC7C,aAAa;CACb,aAAa;CACb,sBAAsB;CACtB,oBAAoB;CACpB,gBAAgB;CAChB,eAAe;CACf,SAAS;EACP,MAAMF,+BAAkC,SAAS;EACjD,UAAU,EACR,aACA,eAII,GAAG,SAAS,GAAG;EACtB;CACD,UAAU;CACV,WAAW;CACX,aAAa;CACb,UAAU;CACV,gBAAgB;CAChB,gBAAgB;CAChB,mBAAmB;CACnB,iBAAiB;CACjB,MAAM;CACN,GAAG;CACJ,CAAU;AAEX,MAAa,4BAA4BE,2BAAW;CAClD,UAAU;CACV,OAAO;CACP;CACA;CACA,OAAO;EACL,MAAM;EACN,UAAU;EACX;CACD,YAAY;EACV,MAAM;EACN,UAAU;EACX;CACD,YAAY;EACV,MAAM;EACN,UAAU;EACX;CACD;CACA;CACA;CAEA,SAAS;CACV,CAAU"}
|
|
1
|
+
{"version":3,"file":"props.js","names":["buildProp","definePropType","VERTICAL","buildProps","mutable"],"sources":["../../../../../../packages/components/virtual-list/src/props.ts"],"sourcesContent":["import {\n buildProp,\n buildProps,\n definePropType,\n mutable,\n} from '@element-plus/utils'\nimport { VERTICAL } from './defaults'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type { GridItemKeyGetter, ItemSize } from './types'\n\nconst itemSize = buildProp({\n type: definePropType<number | ItemSize>([Number, Function]),\n required: true,\n} as const)\n\nconst estimatedItemSize = buildProp({\n type: Number,\n} as const)\n\nconst cache = buildProp({\n type: Number,\n default: 2,\n} as const)\n\nconst direction = buildProp({\n type: String,\n values: ['ltr', 'rtl'],\n default: 'ltr',\n} as const)\n\nconst initScrollOffset = buildProp({\n type: Number,\n default: 0,\n} as const)\n\nconst total = buildProp({\n type: Number,\n required: true,\n} as const)\n\nconst layout = buildProp({\n type: String,\n values: ['horizontal', 'vertical'],\n default: VERTICAL,\n} as const)\n\nexport const virtualizedProps = buildProps({\n className: {\n type: String,\n default: '',\n },\n\n containerElement: {\n type: definePropType<string | Element>([String, Object]),\n default: 'div',\n },\n\n data: {\n type: definePropType<any[]>(Array),\n default: () => mutable([] as const),\n },\n\n /**\n * @description controls the horizontal direction.\n */\n direction,\n\n height: {\n type: [String, Number],\n required: true,\n },\n\n innerElement: {\n type: [String, Object],\n default: 'div',\n },\n\n innerProps: {\n type: definePropType<Record<string, unknown>>(Object),\n default: () => ({}),\n },\n\n style: {\n type: definePropType<StyleValue>([Object, String, Array]),\n },\n\n useIsScrolling: Boolean,\n\n width: {\n type: [Number, String],\n required: false,\n },\n\n innerWidth: {\n type: [Number, String],\n required: false,\n },\n\n perfMode: {\n type: Boolean,\n default: true,\n },\n scrollbarAlwaysOn: Boolean,\n} as const)\n\nexport const virtualizedListProps = buildProps({\n /**\n * @description describes how many items should be pre rendered to the head\n * and the tail of the window\n */\n cache,\n\n estimatedItemSize,\n\n /**\n * @description controls the list's orientation\n */\n layout,\n\n initScrollOffset,\n\n /**\n * @description describes the total number of the list.\n */\n total,\n\n itemSize,\n ...virtualizedProps,\n} as const)\n\nconst scrollbarSize = {\n type: Number,\n default: 6,\n} as const\n\nconst startGap = { type: Number, default: 0 } as const\nconst endGap = { type: Number, default: 2 } as const\n\nexport const virtualizedGridProps = buildProps({\n columnCache: cache,\n columnWidth: itemSize,\n estimatedColumnWidth: estimatedItemSize,\n estimatedRowHeight: estimatedItemSize,\n initScrollLeft: initScrollOffset,\n initScrollTop: initScrollOffset,\n itemKey: {\n type: definePropType<GridItemKeyGetter>(Function),\n default: ({\n columnIndex,\n rowIndex,\n }: {\n columnIndex: number\n rowIndex: number\n }) => `${rowIndex}:${columnIndex}`,\n },\n rowCache: cache,\n rowHeight: itemSize,\n totalColumn: total,\n totalRow: total,\n hScrollbarSize: scrollbarSize,\n vScrollbarSize: scrollbarSize,\n scrollbarStartGap: startGap,\n scrollbarEndGap: endGap,\n role: String,\n ...virtualizedProps,\n} as const)\n\nexport const virtualizedScrollbarProps = buildProps({\n alwaysOn: Boolean,\n class: String,\n layout,\n total,\n ratio: {\n type: Number,\n required: true,\n },\n clientSize: {\n type: Number,\n required: true,\n },\n scrollFrom: {\n type: Number,\n required: true,\n },\n scrollbarSize,\n startGap,\n endGap,\n\n visible: Boolean,\n} as const)\n\nexport type VirtualizedProps = ExtractPropTypes<typeof virtualizedProps>\nexport type VirtualizedPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedProps\n>\nexport type VirtualizedListProps = ExtractPropTypes<typeof virtualizedListProps>\nexport type VirtualizedListPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedListProps\n>\nexport type VirtualizedGridProps = ExtractPropTypes<typeof virtualizedGridProps>\nexport type VirtualizedGridPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedGridProps\n>\n\nexport type VirtualizedScrollbarProps = ExtractPropTypes<\n typeof virtualizedScrollbarProps\n>\nexport type VirtualizedScrollbarPropsPublic = ExtractPublicPropTypes<\n typeof virtualizedScrollbarProps\n>\n"],"mappings":";;;;;;AAWA,MAAM,WAAWA,0BAAU;CACzB,MAAMC,+BAAkC,CAAC,QAAQ,SAAS,CAAC;CAC3D,UAAU;CACX,CAAU;AAEX,MAAM,oBAAoBD,0BAAU,EAClC,MAAM,QACP,CAAU;AAEX,MAAM,QAAQA,0BAAU;CACtB,MAAM;CACN,SAAS;CACV,CAAU;AAEX,MAAM,YAAYA,0BAAU;CAC1B,MAAM;CACN,QAAQ,CAAC,OAAO,MAAM;CACtB,SAAS;CACV,CAAU;AAEX,MAAM,mBAAm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AAMF,+BAAkC,SAAS;EACjD,UAAU,EACR,aACA,eAII,GAAG,SAAS,GAAG;EACtB;CACD,UAAU;CACV,WAAW;CACX,aAAa;CACb,UAAU;CACV,gBAAgB;CAChB,gBAAgB;CAChB,mBAAmB;CACnB,iBAAiB;CACjB,MAAM;CACN,GAAG;CACJ,CAAU;AAEX,MAAa,4BAA4BE,2BAAW;CAClD,UAAU;CACV,OAAO;CACP;CACA;CACA,OAAO;EACL,MAAM;EACN,UAAU;EACX;CACD,YAAY;EACV,MAAM;EACN,UAAU;EACX;CACD,YAAY;EACV,MAAM;EACN,UAAU;EACX;CACD;CACA;CACA;CAEA,SAAS;CACV,CAAU"}
|
|
@@ -47,7 +47,6 @@ declare const usePopper: (referenceElementRef: Ref<ReferenceElement>, popperElem
|
|
|
47
47
|
popperEscapeOffsets: _popperjs_core0.SideObject;
|
|
48
48
|
};
|
|
49
49
|
offset?: {
|
|
50
|
-
"bottom-start"?: _popperjs_core0.Offsets | undefined;
|
|
51
50
|
bottom?: _popperjs_core0.Offsets | undefined;
|
|
52
51
|
auto?: _popperjs_core0.Offsets | undefined;
|
|
53
52
|
"auto-start"?: _popperjs_core0.Offsets | undefined;
|
|
@@ -57,6 +56,7 @@ declare const usePopper: (referenceElementRef: Ref<ReferenceElement>, popperElem
|
|
|
57
56
|
left?: _popperjs_core0.Offsets | undefined;
|
|
58
57
|
"top-start"?: _popperjs_core0.Offsets | undefined;
|
|
59
58
|
"top-end"?: _popperjs_core0.Offsets | undefined;
|
|
59
|
+
"bottom-start"?: _popperjs_core0.Offsets | undefined;
|
|
60
60
|
"bottom-end"?: _popperjs_core0.Offsets | undefined;
|
|
61
61
|
"right-start"?: _popperjs_core0.Offsets | undefined;
|
|
62
62
|
"right-end"?: _popperjs_core0.Offsets | undefined;
|
|
@@ -6,14 +6,14 @@ import { InjectionKey, Ref } from "vue";
|
|
|
6
6
|
|
|
7
7
|
//#region ../../packages/hooks/use-size/index.d.ts
|
|
8
8
|
declare const useSizeProp: {
|
|
9
|
-
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
9
|
+
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
10
10
|
readonly required: false;
|
|
11
11
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
12
12
|
__epPropKey: true;
|
|
13
13
|
};
|
|
14
14
|
declare const useSizeProps: {
|
|
15
15
|
size: {
|
|
16
|
-
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
16
|
+
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
17
17
|
readonly required: false;
|
|
18
18
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
19
|
__epPropKey: true;
|
|
@@ -23,6 +23,6 @@ interface SizeContext {
|
|
|
23
23
|
size: Ref<ComponentSize>;
|
|
24
24
|
}
|
|
25
25
|
declare const SIZE_INJECTION_KEY: InjectionKey<SizeContext>;
|
|
26
|
-
declare const useGlobalSize: () => vue.ComputedRef<"" | "default" | "
|
|
26
|
+
declare const useGlobalSize: () => vue.ComputedRef<"" | "default" | "small" | "large">;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { SIZE_INJECTION_KEY, SizeContext, useGlobalSize, useSizeProp, useSizeProps };
|