@element-plus/nightly 0.0.20261009 → 0.0.20261011
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 +209 -39
- package/dist/index.full.min.js +8 -8
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +9 -9
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +209 -39
- 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/gl.js +1 -1
- package/dist/locale/gl.min.js +1 -1
- package/dist/locale/gl.min.mjs +1 -1
- package/dist/locale/gl.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 +61 -61
- package/dist/locale/ro.min.js +2 -2
- package/dist/locale/ro.min.js.map +1 -1
- package/dist/locale/ro.min.mjs +2 -2
- package/dist/locale/ro.min.mjs.map +1 -1
- package/dist/locale/ro.mjs +61 -61
- 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/component.mjs +3 -3
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.vue.d.ts +1 -1
- package/es/components/autocomplete/src/autocomplete.d.ts +3 -3
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +4 -4
- package/es/components/avatar/src/avatar-group-props.d.ts +1 -1
- package/es/components/avatar/src/avatar-group.d.ts +2 -2
- package/es/components/avatar/src/avatar.d.ts +1 -1
- package/es/components/backtop/src/backtop.vue.d.ts +1 -1
- package/es/components/badge/src/badge.d.ts +1 -1
- package/es/components/badge/src/badge.vue.d.ts +3 -3
- package/es/components/button/src/button-group.d.ts +2 -2
- 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/button/src/use-button.d.ts +2 -2
- package/es/components/card/src/card.vue.d.ts +1 -1
- package/es/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/es/components/cascader/src/cascader.d.ts +3 -3
- package/es/components/cascader/src/cascader.vue.d.ts +6 -6
- package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/cascader-panel/src/index.vue.d.ts +2 -2
- package/es/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/check-tag/src/check-tag.d.ts +1 -1
- package/es/components/check-tag/src/check-tag.vue.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
- 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 +1 -1
- package/es/components/checkbox/src/checkbox.vue.d.ts +5 -5
- 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.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 +5 -5
- package/es/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.mjs +1 -1
- 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_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +14 -14
- package/es/components/date-picker/src/props.d.ts +4 -4
- package/es/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +8 -8
- package/es/components/date-picker-panel/src/panel-utils.d.ts +6 -6
- package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +2 -2
- package/es/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
- package/es/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
- package/es/components/date-picker-panel/src/props/shared.d.ts +1 -1
- package/es/components/descriptions/src/description-item.d.ts +3 -3
- package/es/components/descriptions/src/description.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +3 -3
- package/es/components/drawer/src/drawer.vue.d.ts +3 -3
- 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 +52 -49
- package/es/components/form/src/form-item.d.ts +1 -1
- package/es/components/form/src/form-item.vue.d.ts +1 -1
- 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.vue.d.ts +2 -2
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
- package/es/components/index.mjs +6 -6
- package/es/components/input/src/input.d.ts +2 -2
- package/es/components/input/src/input.vue.d.ts +6 -6
- package/es/components/input-number/src/input-number.d.ts +1 -1
- package/es/components/input-number/src/input-number.vue.d.ts +6 -6
- package/es/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/input-otp/src/input-otp.vue.d.ts +4 -4
- package/es/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
- package/es/components/input-tag/src/input-tag.d.ts +2 -2
- package/es/components/input-tag/src/input-tag.vue.d.ts +7 -7
- package/es/components/link/src/link.d.ts +1 -1
- package/es/components/link/src/link.vue.d.ts +1 -1
- package/es/components/mention/src/mention.d.ts +2 -2
- package/es/components/mention/src/mention.vue.d.ts +3 -3
- package/es/components/menu/src/menu.d.ts +1 -1
- package/es/components/menu/src/menu.mjs +1 -1
- package/es/components/menu/src/sub-menu.d.ts +1 -1
- package/es/components/menu/src/utils/menu-item.mjs +1 -1
- package/es/components/menu/src/utils/submenu.mjs +1 -1
- package/es/components/message/src/message.d.ts +1 -1
- package/es/components/message/src/message.vue.d.ts +3 -3
- package/es/components/message-box/src/index.vue.d.ts +34 -34
- package/es/components/message-box/src/index.vue_vue_type_script_lang.mjs +1 -1
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +3 -3
- package/es/components/page-header/src/page-header.vue.d.ts +1 -1
- package/es/components/pagination/src/components/jumper.d.ts +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +2 -2
- package/es/components/pagination/src/components/sizes.d.ts +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +3 -3
- package/es/components/pagination/src/pagination.d.ts +5 -5
- package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +3 -3
- package/es/components/popover/src/popover.d.ts +6 -6
- package/es/components/popover/src/popover.vue.d.ts +3 -3
- package/es/components/popper/src/composables/use-content.d.ts +1 -1
- package/es/components/popper/src/content.vue.d.ts +1 -1
- package/es/components/popper/src/popper.d.ts +2 -2
- package/es/components/popper/src/popper.vue.d.ts +1 -1
- package/es/components/progress/src/progress.vue.d.ts +1 -1
- package/es/components/radio/src/radio-button.d.ts +1 -1
- 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 +5 -5
- package/es/components/radio/src/radio.d.ts +2 -2
- package/es/components/radio/src/radio.vue.d.ts +5 -5
- package/es/components/radio/src/use-radio.d.ts +1 -1
- package/es/components/rate/src/rate.d.ts +1 -1
- package/es/components/rate/src/rate.vue.d.ts +6 -6
- package/es/components/result/src/result.d.ts +1 -1
- package/es/components/result/src/result.vue.d.ts +1 -1
- package/es/components/row/src/row.d.ts +2 -2
- package/es/components/row/src/row.vue.d.ts +1 -1
- package/es/components/scrollbar/src/mask-utils.d.ts +5 -0
- package/es/components/scrollbar/src/mask-utils.mjs +34 -0
- package/es/components/scrollbar/src/mask-utils.mjs.map +1 -0
- package/es/components/scrollbar/src/mask.mjs +7 -0
- package/es/components/scrollbar/src/mask.mjs.map +1 -0
- package/es/components/scrollbar/src/mask.vue.d.ts +14 -0
- package/es/components/scrollbar/src/mask.vue_vue_type_script_setup_true_lang.mjs +113 -0
- package/es/components/scrollbar/src/mask.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/es/components/scrollbar/src/scrollbar.d.ts +6 -0
- package/es/components/scrollbar/src/scrollbar.mjs +15 -0
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +6 -5
- package/es/components/scrollbar/src/scrollbar.vue_vue_type_script_setup_true_lang.mjs +56 -38
- package/es/components/scrollbar/src/scrollbar.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/segmented/index.d.ts +5 -5
- package/es/components/segmented/src/segmented.d.ts +1 -1
- package/es/components/segmented/src/segmented.vue.d.ts +2 -2
- package/es/components/select/src/select.d.ts +3 -3
- package/es/components/select/src/select.vue.d.ts +43 -40
- package/es/components/select/src/select.vue_vue_type_script_lang.mjs +1 -1
- package/es/components/select/src/useSelect.d.ts +2 -2
- package/es/components/select-v2/src/defaults.d.ts +3 -3
- package/es/components/select-v2/src/select.vue.d.ts +26 -26
- package/es/components/select-v2/src/select.vue_vue_type_script_lang.mjs +1 -1
- package/es/components/select-v2/src/useSelect.d.ts +1 -1
- package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/es/components/skeleton/src/skeleton-item.vue.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 +9 -9
- package/es/components/space/src/space.d.ts +3 -3
- package/es/components/splitter/src/splitter.vue.d.ts +2 -2
- package/es/components/steps/src/item.vue.d.ts +1 -1
- package/es/components/switch/src/switch.d.ts +1 -1
- package/es/components/switch/src/switch.vue.d.ts +3 -3
- package/es/components/table/src/filter-panel.vue.d.ts +52 -49
- package/es/components/table/src/table/defaults.d.ts +1 -1
- package/es/components/table/src/table/style-helper.d.ts +1 -1
- package/es/components/table/src/table-header/index.d.ts +15 -15
- package/es/components/table/src/table.vue.d.ts +1 -1
- package/es/components/table/src/table.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/es/components/tabs/src/tabs.d.ts +1 -1
- 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 +2 -2
- package/es/components/time-picker/src/common/picker.vue.d.ts +13 -13
- package/es/components/time-picker/src/common/props.d.ts +3 -3
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
- package/es/components/time-picker/src/time-picker.d.ts +11 -11
- package/es/components/time-select/src/time-select.d.ts +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +6 -6
- 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/timeline/src/timeline.d.ts +4 -4
- package/es/components/tooltip/src/content.vue.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +2 -2
- package/es/components/tour/src/mask.vue.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 +2 -2
- package/es/components/transfer/src/transfer.vue.d.ts +2 -2
- package/es/components/tree/src/tree-node.vue.d.ts +15 -15
- package/es/components/tree/src/tree.vue.d.ts +15 -15
- package/es/components/tree-select/src/tree-select.vue.d.ts +14 -14
- package/es/components/tree-v2/src/composables/useTree.d.ts +6 -6
- package/es/components/upload/src/upload-content.d.ts +1 -1
- package/es/components/upload/src/upload-content.vue.d.ts +1 -1
- 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 +2 -2
- package/es/components/virtual-list/src/builders/build-grid.d.ts +1 -1
- package/es/components/virtual-list/src/builders/build-list.d.ts +3 -3
- package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +3 -3
- package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +3 -3
- package/es/components/virtual-list/src/components/scrollbar.d.ts +1 -1
- package/es/constants/index.mjs +2 -2
- package/es/directives/trap-focus/index.mjs +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.mjs +13 -13
- package/es/locale/lang/ro.mjs +60 -60
- package/es/locale/lang/ro.mjs.map +1 -1
- package/es/plugin.mjs +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/component.js +109 -109
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +1 -1
- package/lib/components/autocomplete/src/autocomplete.d.ts +3 -3
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +4 -4
- package/lib/components/avatar/src/avatar-group-props.d.ts +1 -1
- package/lib/components/avatar/src/avatar-group.d.ts +2 -2
- package/lib/components/avatar/src/avatar.d.ts +1 -1
- package/lib/components/backtop/src/backtop.vue.d.ts +1 -1
- package/lib/components/badge/src/badge.d.ts +1 -1
- package/lib/components/badge/src/badge.vue.d.ts +3 -3
- package/lib/components/button/src/button-group.d.ts +2 -2
- 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/button/src/use-button.d.ts +2 -2
- package/lib/components/card/src/card.vue.d.ts +1 -1
- package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/lib/components/cascader/src/cascader.d.ts +3 -3
- package/lib/components/cascader/src/cascader.vue.d.ts +6 -6
- package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js +40 -40
- package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/cascader-panel/src/index.vue.d.ts +2 -2
- package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js +12 -12
- package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/check-tag/src/check-tag.d.ts +1 -1
- package/lib/components/check-tag/src/check-tag.vue.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
- 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 +1 -1
- package/lib/components/checkbox/src/checkbox.vue.d.ts +5 -5
- 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.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 +5 -5
- package/lib/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.js +18 -18
- package/lib/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- 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_vue_type_script_setup_true_lang.js +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +14 -14
- package/lib/components/date-picker/src/props.d.ts +4 -4
- package/lib/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.js +18 -18
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.js +23 -23
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +8 -8
- package/lib/components/date-picker-panel/src/panel-utils.d.ts +6 -6
- package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +2 -2
- package/lib/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
- package/lib/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
- package/lib/components/date-picker-panel/src/props/shared.d.ts +1 -1
- package/lib/components/descriptions/src/description-item.d.ts +3 -3
- package/lib/components/descriptions/src/description.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +3 -3
- package/lib/components/drawer/src/drawer.vue.d.ts +3 -3
- 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 +52 -49
- package/lib/components/form/src/form-item.d.ts +1 -1
- package/lib/components/form/src/form-item.vue.d.ts +1 -1
- 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.vue.d.ts +2 -2
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
- package/lib/components/index.js +125 -125
- package/lib/components/input/src/input.d.ts +2 -2
- package/lib/components/input/src/input.vue.d.ts +6 -6
- package/lib/components/input-number/src/input-number.d.ts +1 -1
- package/lib/components/input-number/src/input-number.vue.d.ts +6 -6
- package/lib/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.js +12 -12
- package/lib/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/input-otp/src/input-otp.vue.d.ts +4 -4
- package/lib/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
- package/lib/components/input-tag/src/input-tag.d.ts +2 -2
- package/lib/components/input-tag/src/input-tag.vue.d.ts +7 -7
- package/lib/components/link/src/link.d.ts +1 -1
- package/lib/components/link/src/link.vue.d.ts +1 -1
- package/lib/components/mention/src/mention.d.ts +2 -2
- package/lib/components/mention/src/mention.vue.d.ts +3 -3
- package/lib/components/menu/src/menu.d.ts +1 -1
- package/lib/components/menu/src/menu.js +7 -7
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/menu/src/sub-menu.d.ts +1 -1
- package/lib/components/menu/src/utils/menu-item.js +11 -11
- package/lib/components/menu/src/utils/menu-item.js.map +1 -1
- package/lib/components/menu/src/utils/submenu.js +9 -9
- package/lib/components/menu/src/utils/submenu.js.map +1 -1
- package/lib/components/message/src/message.d.ts +1 -1
- package/lib/components/message/src/message.vue.d.ts +3 -3
- package/lib/components/message-box/src/index.vue.d.ts +34 -34
- package/lib/components/message-box/src/index.vue_vue_type_script_lang.js +19 -19
- package/lib/components/message-box/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +3 -3
- package/lib/components/page-header/src/page-header.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/jumper.d.ts +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +2 -2
- package/lib/components/pagination/src/components/sizes.d.ts +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +3 -3
- package/lib/components/pagination/src/pagination.d.ts +5 -5
- package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +3 -3
- package/lib/components/popover/src/popover.d.ts +6 -6
- package/lib/components/popover/src/popover.vue.d.ts +3 -3
- package/lib/components/popper/src/composables/use-content.d.ts +1 -1
- package/lib/components/popper/src/content.vue.d.ts +1 -1
- package/lib/components/popper/src/popper.d.ts +2 -2
- package/lib/components/popper/src/popper.vue.d.ts +1 -1
- package/lib/components/progress/src/progress.vue.d.ts +1 -1
- package/lib/components/radio/src/radio-button.d.ts +1 -1
- 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 +5 -5
- package/lib/components/radio/src/radio.d.ts +2 -2
- package/lib/components/radio/src/radio.vue.d.ts +5 -5
- package/lib/components/radio/src/use-radio.d.ts +1 -1
- package/lib/components/rate/src/rate.d.ts +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +6 -6
- package/lib/components/result/src/result.d.ts +1 -1
- package/lib/components/result/src/result.vue.d.ts +1 -1
- package/lib/components/row/src/row.d.ts +2 -2
- package/lib/components/row/src/row.vue.d.ts +1 -1
- package/lib/components/scrollbar/src/mask-utils.d.ts +5 -0
- package/lib/components/scrollbar/src/mask-utils.js +35 -0
- package/lib/components/scrollbar/src/mask-utils.js.map +1 -0
- package/lib/components/scrollbar/src/mask.js +10 -0
- package/lib/components/scrollbar/src/mask.js.map +1 -0
- package/lib/components/scrollbar/src/mask.vue.d.ts +14 -0
- package/lib/components/scrollbar/src/mask.vue_vue_type_script_setup_true_lang.js +113 -0
- package/lib/components/scrollbar/src/mask.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/lib/components/scrollbar/src/scrollbar.d.ts +6 -0
- package/lib/components/scrollbar/src/scrollbar.js +15 -0
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +6 -5
- package/lib/components/scrollbar/src/scrollbar.vue_vue_type_script_setup_true_lang.js +55 -37
- package/lib/components/scrollbar/src/scrollbar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/segmented/index.d.ts +5 -5
- package/lib/components/segmented/src/segmented.d.ts +1 -1
- package/lib/components/segmented/src/segmented.vue.d.ts +2 -2
- package/lib/components/select/src/select.d.ts +3 -3
- package/lib/components/select/src/select.vue.d.ts +43 -40
- package/lib/components/select/src/select.vue_vue_type_script_lang.js +10 -10
- package/lib/components/select/src/select.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/select/src/useSelect.d.ts +2 -2
- package/lib/components/select-v2/src/defaults.d.ts +3 -3
- package/lib/components/select-v2/src/select.vue.d.ts +26 -26
- package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js +10 -10
- package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/select-v2/src/useSelect.d.ts +1 -1
- package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/lib/components/skeleton/src/skeleton-item.vue.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 +9 -9
- package/lib/components/space/src/space.d.ts +3 -3
- package/lib/components/splitter/src/splitter.vue.d.ts +2 -2
- package/lib/components/steps/src/item.vue.d.ts +1 -1
- package/lib/components/switch/src/switch.d.ts +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +3 -3
- package/lib/components/table/src/filter-panel.vue.d.ts +52 -49
- package/lib/components/table/src/table/defaults.d.ts +1 -1
- package/lib/components/table/src/table/style-helper.d.ts +1 -1
- package/lib/components/table/src/table-header/index.d.ts +15 -15
- package/lib/components/table/src/table.vue.d.ts +1 -1
- package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js +9 -9
- package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/lib/components/tabs/src/tabs.d.ts +1 -1
- 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 +2 -2
- package/lib/components/time-picker/src/common/picker.vue.d.ts +13 -13
- package/lib/components/time-picker/src/common/props.d.ts +3 -3
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.js +10 -10
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker.d.ts +11 -11
- package/lib/components/time-select/src/time-select.d.ts +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +6 -6
- 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/timeline/src/timeline.d.ts +4 -4
- package/lib/components/tooltip/src/content.vue.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +2 -2
- package/lib/components/tour/src/mask.vue.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 +2 -2
- package/lib/components/transfer/src/transfer.vue.d.ts +2 -2
- package/lib/components/tree/src/tree-node.vue.d.ts +15 -15
- package/lib/components/tree/src/tree.vue.d.ts +15 -15
- package/lib/components/tree-select/src/tree-select.vue.d.ts +14 -14
- package/lib/components/tree-v2/src/composables/useTree.d.ts +6 -6
- package/lib/components/upload/src/upload-content.d.ts +1 -1
- package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
- 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 +2 -2
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +1 -1
- package/lib/components/virtual-list/src/builders/build-list.d.ts +3 -3
- package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +3 -3
- package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +3 -3
- package/lib/components/virtual-list/src/components/scrollbar.d.ts +1 -1
- package/lib/constants/index.js +2 -2
- package/lib/directives/trap-focus/index.js +5 -5
- package/lib/directives/trap-focus/index.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.js +269 -269
- package/lib/locale/lang/ro.js +60 -60
- package/lib/locale/lang/ro.js.map +1 -1
- package/lib/plugin.js +12 -12
- package/lib/plugin.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +3 -3
- package/tags.json +1 -1
- package/theme-chalk/el-scrollbar.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +8 -0
- package/theme-chalk/src/scrollbar.scss +65 -0
- package/web-types.json +1 -1
|
@@ -7,21 +7,21 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: _$vue.DefineComponent<RadioGroupProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
10
|
-
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
11
10
|
change: (val: string | number | boolean | undefined) => void;
|
|
11
|
+
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
12
12
|
}, string, _$vue.PublicProps, Readonly<RadioGroupProps> & Readonly<{
|
|
13
|
-
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
14
13
|
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
props: radioOptionProp;
|
|
17
16
|
type: "button" | "radio";
|
|
18
17
|
fill: string;
|
|
19
|
-
|
|
18
|
+
props: radioOptionProp;
|
|
20
19
|
id: string;
|
|
21
20
|
disabled: boolean;
|
|
22
|
-
|
|
21
|
+
modelValue: string | number | boolean;
|
|
23
22
|
validateEvent: boolean;
|
|
24
23
|
name: string;
|
|
24
|
+
textColor: string;
|
|
25
25
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
@@ -43,7 +43,7 @@ interface RadioProps extends RadioPropsBase {
|
|
|
43
43
|
declare const radioPropsBase: {
|
|
44
44
|
modelValue: EpPropFinalized<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown, undefined, boolean>;
|
|
45
45
|
size: {
|
|
46
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "
|
|
46
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
47
47
|
readonly required: false;
|
|
48
48
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
49
49
|
__epPropKey: true;
|
|
@@ -60,7 +60,7 @@ declare const radioProps: {
|
|
|
60
60
|
readonly border: BooleanConstructor;
|
|
61
61
|
readonly modelValue: EpPropFinalized<(BooleanConstructor | StringConstructor | NumberConstructor)[], unknown, unknown, undefined, boolean>;
|
|
62
62
|
readonly size: {
|
|
63
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "
|
|
63
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
64
64
|
readonly required: false;
|
|
65
65
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
66
|
__epPropKey: true;
|
|
@@ -7,18 +7,18 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: _$vue.DefineComponent<RadioProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
10
|
-
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
11
10
|
change: (val: string | number | boolean | undefined) => void;
|
|
11
|
+
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
12
12
|
}, string, _$vue.PublicProps, Readonly<RadioProps> & Readonly<{
|
|
13
|
-
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
14
13
|
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
modelValue: string | number | boolean;
|
|
17
16
|
disabled: boolean;
|
|
18
|
-
|
|
19
|
-
label: string | number | boolean;
|
|
17
|
+
modelValue: string | number | boolean;
|
|
20
18
|
name: string;
|
|
19
|
+
value: string | number | boolean;
|
|
21
20
|
border: boolean;
|
|
21
|
+
label: string | number | boolean;
|
|
22
22
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -10,7 +10,7 @@ declare const useRadio: (props: RadioProps | RadioButtonProps, emit?: SetupConte
|
|
|
10
10
|
isGroup: _$vue.ComputedRef<boolean>;
|
|
11
11
|
radioGroup: RadioGroupContext | undefined;
|
|
12
12
|
focus: _$vue.Ref<boolean, boolean>;
|
|
13
|
-
size: _$vue.ComputedRef<"" | "
|
|
13
|
+
size: _$vue.ComputedRef<"" | "default" | "small" | "large">;
|
|
14
14
|
disabled: _$vue.ComputedRef<boolean>;
|
|
15
15
|
tabIndex: _$vue.ComputedRef<0 | -1>;
|
|
16
16
|
modelValue: _$vue.WritableComputedRef<string | number | boolean | undefined, string | number | boolean | undefined>;
|
|
@@ -116,7 +116,7 @@ declare const rateProps: {
|
|
|
116
116
|
readonly texts: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => ["Extremely bad", "Disappointed", "Fair", "Satisfied", "Surprise"], boolean>;
|
|
117
117
|
readonly scoreTemplate: EpPropFinalized<StringConstructor, unknown, unknown, "{value}", boolean>;
|
|
118
118
|
readonly size: {
|
|
119
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "
|
|
119
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
120
120
|
readonly required: false;
|
|
121
121
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
122
122
|
__epPropKey: true;
|
|
@@ -9,25 +9,25 @@ declare const __VLS_export: _$vue.DefineComponent<RateProps, {
|
|
|
9
9
|
/** @description set current value */setCurrentValue: typeof setCurrentValue; /** @description reset current value */
|
|
10
10
|
resetCurrentValue: typeof resetCurrentValue;
|
|
11
11
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
12
|
-
"update:modelValue": (value: number) => void;
|
|
13
12
|
change: (value: number) => void;
|
|
13
|
+
"update:modelValue": (value: number) => void;
|
|
14
14
|
}, string, _$vue.PublicProps, Readonly<RateProps> & Readonly<{
|
|
15
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
16
15
|
onChange?: ((value: number) => any) | undefined;
|
|
16
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
modelValue: number;
|
|
19
18
|
id: string;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
modelValue: number;
|
|
21
|
+
max: number;
|
|
22
|
+
textColor: string;
|
|
20
23
|
lowThreshold: number;
|
|
21
24
|
highThreshold: number;
|
|
22
|
-
max: number;
|
|
23
25
|
colors: string[] | Record<number, string>;
|
|
24
26
|
voidColor: string;
|
|
25
27
|
disabledVoidColor: string;
|
|
26
28
|
icons: IconPropType[] | Record<number, IconPropType>;
|
|
27
29
|
voidIcon: IconPropType;
|
|
28
30
|
disabledVoidIcon: IconPropType;
|
|
29
|
-
disabled: boolean;
|
|
30
|
-
textColor: string;
|
|
31
31
|
texts: string[];
|
|
32
32
|
scoreTemplate: string;
|
|
33
33
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -31,7 +31,7 @@ interface ResultProps {
|
|
|
31
31
|
declare const resultProps: {
|
|
32
32
|
readonly title: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
33
33
|
readonly subTitle: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
34
|
-
readonly icon: EpPropFinalized<StringConstructor, "
|
|
34
|
+
readonly icon: EpPropFinalized<StringConstructor, "primary" | "success" | "warning" | "error" | "info", unknown, "info", boolean>;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
37
|
* @deprecated Removed after 3.0.0, Use `ResultProps` instead.
|
|
@@ -14,8 +14,8 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_base: _$vue.DefineComponent<ResultProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ResultProps> & Readonly<{}>, {
|
|
16
16
|
title: string;
|
|
17
|
+
icon: "primary" | "success" | "warning" | "error" | "info";
|
|
17
18
|
subTitle: string;
|
|
18
|
-
icon: "info" | "primary" | "success" | "warning" | "error";
|
|
19
19
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -30,9 +30,9 @@ interface RowProps {
|
|
|
30
30
|
declare const rowProps: {
|
|
31
31
|
readonly tag: EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
|
|
32
32
|
readonly gutter: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
33
|
-
readonly justify: EpPropFinalized<StringConstructor, "center" | "
|
|
33
|
+
readonly justify: EpPropFinalized<StringConstructor, "center" | "space-around" | "space-between" | "space-evenly" | "end" | "start", unknown, "start", boolean>;
|
|
34
34
|
readonly align: {
|
|
35
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "top" | "
|
|
35
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "top" | "bottom" | "middle", unknown>>;
|
|
36
36
|
readonly required: false;
|
|
37
37
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
38
|
__epPropKey: true;
|
|
@@ -7,9 +7,9 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_7) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: _$vue.DefineComponent<RowProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RowProps> & Readonly<{}>, {
|
|
10
|
+
justify: "center" | "space-around" | "space-between" | "space-evenly" | "end" | "start";
|
|
10
11
|
tag: string;
|
|
11
12
|
gutter: number;
|
|
12
|
-
justify: "center" | "start" | "end" | "space-around" | "space-between" | "space-evenly";
|
|
13
13
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { isClient } from "../../../utils/browser.mjs";
|
|
2
|
+
//#region ../../packages/components/scrollbar/src/mask-utils.ts
|
|
3
|
+
let cachedRTLResult = null;
|
|
4
|
+
function getRTLOffsetType(recalculate = false) {
|
|
5
|
+
if (!isClient) return "negative";
|
|
6
|
+
if (cachedRTLResult === null || recalculate) {
|
|
7
|
+
const outerDiv = document.createElement("div");
|
|
8
|
+
const outerStyle = outerDiv.style;
|
|
9
|
+
outerStyle.width = "50px";
|
|
10
|
+
outerStyle.height = "50px";
|
|
11
|
+
outerStyle.overflow = "scroll";
|
|
12
|
+
outerStyle.direction = "rtl";
|
|
13
|
+
outerStyle.position = "absolute";
|
|
14
|
+
outerStyle.visibility = "hidden";
|
|
15
|
+
outerStyle.top = "-9999px";
|
|
16
|
+
const innerDiv = document.createElement("div");
|
|
17
|
+
const innerStyle = innerDiv.style;
|
|
18
|
+
innerStyle.width = "100px";
|
|
19
|
+
innerStyle.height = "100px";
|
|
20
|
+
outerDiv.appendChild(innerDiv);
|
|
21
|
+
document.body.appendChild(outerDiv);
|
|
22
|
+
if (outerDiv.scrollLeft > 0) cachedRTLResult = "positive-descending";
|
|
23
|
+
else {
|
|
24
|
+
outerDiv.scrollLeft = 1;
|
|
25
|
+
cachedRTLResult = outerDiv.scrollLeft === 0 ? "negative" : "positive-ascending";
|
|
26
|
+
}
|
|
27
|
+
document.body.removeChild(outerDiv);
|
|
28
|
+
}
|
|
29
|
+
return cachedRTLResult;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { getRTLOffsetType };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=mask-utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mask-utils.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/mask-utils.ts"],"sourcesContent":["import { isClient } from '@element-plus/utils'\n\ntype RTLOffsetType = 'negative' | 'positive-descending' | 'positive-ascending'\n\nlet cachedRTLResult: RTLOffsetType | null = null\n\nexport function getRTLOffsetType(recalculate = false): RTLOffsetType {\n if (!isClient) return 'negative'\n if (cachedRTLResult === null || recalculate) {\n const outerDiv = document.createElement('div')\n const outerStyle = outerDiv.style\n outerStyle.width = '50px'\n outerStyle.height = '50px'\n outerStyle.overflow = 'scroll'\n outerStyle.direction = 'rtl'\n outerStyle.position = 'absolute'\n outerStyle.visibility = 'hidden'\n outerStyle.top = '-9999px'\n\n const innerDiv = document.createElement('div')\n const innerStyle = innerDiv.style\n innerStyle.width = '100px'\n innerStyle.height = '100px'\n\n outerDiv.appendChild(innerDiv)\n document.body.appendChild(outerDiv)\n\n if (outerDiv.scrollLeft > 0) {\n cachedRTLResult = 'positive-descending'\n } else {\n outerDiv.scrollLeft = 1\n cachedRTLResult =\n outerDiv.scrollLeft === 0 ? 'negative' : 'positive-ascending'\n }\n\n document.body.removeChild(outerDiv)\n }\n\n return cachedRTLResult\n}\n"],"mappings":";;AAIA,IAAI,kBAAwC;AAE5C,SAAgB,iBAAiB,cAAc,OAAsB;CACnE,IAAI,CAAC,UAAU,OAAO;CACtB,IAAI,oBAAoB,QAAQ,aAAa;EAC3C,MAAM,WAAW,SAAS,cAAc,KAAK;EAC7C,MAAM,aAAa,SAAS;EAC5B,WAAW,QAAQ;EACnB,WAAW,SAAS;EACpB,WAAW,WAAW;EACtB,WAAW,YAAY;EACvB,WAAW,WAAW;EACtB,WAAW,aAAa;EACxB,WAAW,MAAM;EAEjB,MAAM,WAAW,SAAS,cAAc,KAAK;EAC7C,MAAM,aAAa,SAAS;EAC5B,WAAW,QAAQ;EACnB,WAAW,SAAS;EAEpB,SAAS,YAAY,QAAQ;EAC7B,SAAS,KAAK,YAAY,QAAQ;EAElC,IAAI,SAAS,aAAa,GACxB,kBAAkB;OACb;GACL,SAAS,aAAa;GACtB,kBACE,SAAS,eAAe,IAAI,aAAa;EAC7C;EAEA,SAAS,KAAK,YAAY,QAAQ;CACpC;CAEA,OAAO;AACT"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import mask_vue_vue_type_script_setup_true_lang_default from "./mask.vue_vue_type_script_setup_true_lang.mjs";
|
|
2
|
+
//#region ../../packages/components/scrollbar/src/mask.vue
|
|
3
|
+
var mask_default = mask_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { mask_default as default };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=mask.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mask.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/mask.vue"],"sourcesContent":["<template>\n <div :class=\"ns.e('mask')\" aria-hidden=\"true\">\n <transition v-for=\"edge in edges\" :key=\"edge\" :name=\"ns.b('mask-fade')\">\n <div\n v-if=\"mask === true || mask === edge\"\n v-show=\"visible[edge]\"\n :class=\"ns.e(`${edge}-mask`)\"\n :style=\"styles[edge]\"\n aria-hidden=\"true\"\n />\n </transition>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { inject, shallowReactive, shallowRef } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { getStyle } from '@element-plus/utils'\nimport { scrollbarContextKey } from './constants'\nimport { getRTLOffsetType } from './mask-utils'\n\nimport type { CSSProperties } from 'vue'\nimport type { ScrollbarDirection, ScrollbarProps } from './scrollbar'\n\ndefineProps<{\n mask: ScrollbarProps['mask']\n}>()\n\nconst ns = useNamespace('scrollbar')\nconst scrollbar = inject(scrollbarContextKey)!\nconst edges = ['top', 'bottom', 'left', 'right'] as const\nconst visible = shallowReactive({\n top: false,\n bottom: false,\n left: false,\n right: false,\n})\nconst styles = shallowRef<Partial<Record<ScrollbarDirection, CSSProperties>>>(\n {}\n)\n\nconst handleScroll = () => {\n const wrap = scrollbar.wrapElement\n if (!wrap) return\n\n const {\n clientHeight,\n scrollHeight,\n scrollTop,\n clientWidth,\n scrollWidth,\n scrollLeft,\n } = wrap\n // Scroll offsets may be fractional, whereas scroll and client sizes are rounded.\n const maxTop = scrollHeight - clientHeight\n const maxLeft = scrollWidth - clientWidth\n const hasVerticalOverflow = clientHeight > 0 && maxTop > 1\n const hasHorizontalOverflow = clientWidth > 0 && maxLeft > 1\n let left = scrollLeft\n if (hasHorizontalOverflow && getStyle(wrap, 'direction') === 'rtl') {\n // Normalize the browser's RTL offset to the distance from the physical left.\n switch (getRTLOffsetType()) {\n case 'negative':\n left = maxLeft + scrollLeft\n break\n case 'positive-ascending':\n left = maxLeft - scrollLeft\n break\n }\n }\n\n visible.top = hasVerticalOverflow && scrollTop > 1\n visible.bottom = hasVerticalOverflow && maxTop - scrollTop > 1\n visible.left = hasHorizontalOverflow && left > 1\n visible.right = hasHorizontalOverflow && maxLeft - left > 1\n}\n\nconst update = () => {\n const { wrapElement: wrap, scrollbarElement } = scrollbar\n if (!wrap || !scrollbarElement) return\n\n // Align with the viewport, excluding native scrollbars and any wrap border.\n const {\n offsetLeft,\n offsetTop,\n clientLeft,\n clientTop,\n clientWidth,\n clientHeight,\n } = wrap\n const left = offsetLeft + clientLeft\n const top = offsetTop + clientTop\n const verticalStyle = {\n left: `${left}px`,\n width: `${clientWidth}px`,\n maxHeight: `${clientHeight}px`,\n }\n const horizontalStyle = {\n top: `${top}px`,\n height: `${clientHeight}px`,\n maxWidth: `${clientWidth}px`,\n }\n styles.value = {\n top: { ...verticalStyle, top: `${top}px` },\n bottom: {\n ...verticalStyle,\n bottom: `${scrollbarElement.clientHeight - top - clientHeight}px`,\n },\n left: { ...horizontalStyle, left: `${left}px` },\n right: {\n ...horizontalStyle,\n right: `${scrollbarElement.clientWidth - left - clientWidth}px`,\n },\n }\n handleScroll()\n}\n\ndefineExpose({ update, handleScroll })\n</script>\n"],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ScrollbarProps } from "./scrollbar.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region ../../packages/components/scrollbar/src/mask.vue.d.ts
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
mask: ScrollbarProps['mask'];
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: _$vue.DefineComponent<__VLS_Props, {
|
|
9
|
+
update: () => void;
|
|
10
|
+
handleScroll: () => void;
|
|
11
|
+
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { _default as default };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { getStyle } from "../../../utils/dom/style.mjs";
|
|
2
|
+
import { useNamespace } from "../../../hooks/use-namespace/index.mjs";
|
|
3
|
+
import { scrollbarContextKey } from "./constants.mjs";
|
|
4
|
+
import { getRTLOffsetType } from "./mask-utils.mjs";
|
|
5
|
+
import { Fragment, Transition, createCommentVNode, createElementBlock, createVNode, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, renderList, shallowReactive, shallowRef, unref, vShow, withCtx, withDirectives } from "vue";
|
|
6
|
+
//#region ../../packages/components/scrollbar/src/mask.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var mask_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
8
|
+
__name: "mask",
|
|
9
|
+
props: { mask: {
|
|
10
|
+
type: [Boolean, String],
|
|
11
|
+
required: true
|
|
12
|
+
} },
|
|
13
|
+
setup(__props, { expose: __expose }) {
|
|
14
|
+
const ns = useNamespace("scrollbar");
|
|
15
|
+
const scrollbar = inject(scrollbarContextKey);
|
|
16
|
+
const edges = [
|
|
17
|
+
"top",
|
|
18
|
+
"bottom",
|
|
19
|
+
"left",
|
|
20
|
+
"right"
|
|
21
|
+
];
|
|
22
|
+
const visible = shallowReactive({
|
|
23
|
+
top: false,
|
|
24
|
+
bottom: false,
|
|
25
|
+
left: false,
|
|
26
|
+
right: false
|
|
27
|
+
});
|
|
28
|
+
const styles = shallowRef({});
|
|
29
|
+
const handleScroll = () => {
|
|
30
|
+
const wrap = scrollbar.wrapElement;
|
|
31
|
+
if (!wrap) return;
|
|
32
|
+
const { clientHeight, scrollHeight, scrollTop, clientWidth, scrollWidth, scrollLeft } = wrap;
|
|
33
|
+
const maxTop = scrollHeight - clientHeight;
|
|
34
|
+
const maxLeft = scrollWidth - clientWidth;
|
|
35
|
+
const hasVerticalOverflow = clientHeight > 0 && maxTop > 1;
|
|
36
|
+
const hasHorizontalOverflow = clientWidth > 0 && maxLeft > 1;
|
|
37
|
+
let left = scrollLeft;
|
|
38
|
+
if (hasHorizontalOverflow && getStyle(wrap, "direction") === "rtl") switch (getRTLOffsetType()) {
|
|
39
|
+
case "negative":
|
|
40
|
+
left = maxLeft + scrollLeft;
|
|
41
|
+
break;
|
|
42
|
+
case "positive-ascending": left = maxLeft - scrollLeft;
|
|
43
|
+
}
|
|
44
|
+
visible.top = hasVerticalOverflow && scrollTop > 1;
|
|
45
|
+
visible.bottom = hasVerticalOverflow && maxTop - scrollTop > 1;
|
|
46
|
+
visible.left = hasHorizontalOverflow && left > 1;
|
|
47
|
+
visible.right = hasHorizontalOverflow && maxLeft - left > 1;
|
|
48
|
+
};
|
|
49
|
+
const update = () => {
|
|
50
|
+
const { wrapElement: wrap, scrollbarElement } = scrollbar;
|
|
51
|
+
if (!wrap || !scrollbarElement) return;
|
|
52
|
+
const { offsetLeft, offsetTop, clientLeft, clientTop, clientWidth, clientHeight } = wrap;
|
|
53
|
+
const left = offsetLeft + clientLeft;
|
|
54
|
+
const top = offsetTop + clientTop;
|
|
55
|
+
const verticalStyle = {
|
|
56
|
+
left: `${left}px`,
|
|
57
|
+
width: `${clientWidth}px`,
|
|
58
|
+
maxHeight: `${clientHeight}px`
|
|
59
|
+
};
|
|
60
|
+
const horizontalStyle = {
|
|
61
|
+
top: `${top}px`,
|
|
62
|
+
height: `${clientHeight}px`,
|
|
63
|
+
maxWidth: `${clientWidth}px`
|
|
64
|
+
};
|
|
65
|
+
styles.value = {
|
|
66
|
+
top: {
|
|
67
|
+
...verticalStyle,
|
|
68
|
+
top: `${top}px`
|
|
69
|
+
},
|
|
70
|
+
bottom: {
|
|
71
|
+
...verticalStyle,
|
|
72
|
+
bottom: `${scrollbarElement.clientHeight - top - clientHeight}px`
|
|
73
|
+
},
|
|
74
|
+
left: {
|
|
75
|
+
...horizontalStyle,
|
|
76
|
+
left: `${left}px`
|
|
77
|
+
},
|
|
78
|
+
right: {
|
|
79
|
+
...horizontalStyle,
|
|
80
|
+
right: `${scrollbarElement.clientWidth - left - clientWidth}px`
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
handleScroll();
|
|
84
|
+
};
|
|
85
|
+
__expose({
|
|
86
|
+
update,
|
|
87
|
+
handleScroll
|
|
88
|
+
});
|
|
89
|
+
return (_ctx, _cache) => {
|
|
90
|
+
return openBlock(), createElementBlock("div", {
|
|
91
|
+
class: normalizeClass(unref(ns).e("mask")),
|
|
92
|
+
"aria-hidden": "true"
|
|
93
|
+
}, [(openBlock(), createElementBlock(Fragment, null, renderList(edges, (edge) => {
|
|
94
|
+
return createVNode(Transition, {
|
|
95
|
+
key: edge,
|
|
96
|
+
name: unref(ns).b("mask-fade")
|
|
97
|
+
}, {
|
|
98
|
+
default: withCtx(() => [__props.mask === true || __props.mask === edge ? withDirectives((openBlock(), createElementBlock("div", {
|
|
99
|
+
key: 0,
|
|
100
|
+
class: normalizeClass(unref(ns).e(`${edge}-mask`)),
|
|
101
|
+
style: normalizeStyle(styles.value[edge]),
|
|
102
|
+
"aria-hidden": "true"
|
|
103
|
+
}, null, 6)), [[vShow, unref(visible)[edge]]]) : createCommentVNode("v-if", true)]),
|
|
104
|
+
_: 2
|
|
105
|
+
}, 1032, ["name"]);
|
|
106
|
+
}), 64))], 2);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
//#endregion
|
|
111
|
+
export { mask_vue_vue_type_script_setup_true_lang_default as default };
|
|
112
|
+
|
|
113
|
+
//# sourceMappingURL=mask.vue_vue_type_script_setup_true_lang.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mask.vue_vue_type_script_setup_true_lang.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/mask.vue"],"sourcesContent":["<template>\n <div :class=\"ns.e('mask')\" aria-hidden=\"true\">\n <transition v-for=\"edge in edges\" :key=\"edge\" :name=\"ns.b('mask-fade')\">\n <div\n v-if=\"mask === true || mask === edge\"\n v-show=\"visible[edge]\"\n :class=\"ns.e(`${edge}-mask`)\"\n :style=\"styles[edge]\"\n aria-hidden=\"true\"\n />\n </transition>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { inject, shallowReactive, shallowRef } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { getStyle } from '@element-plus/utils'\nimport { scrollbarContextKey } from './constants'\nimport { getRTLOffsetType } from './mask-utils'\n\nimport type { CSSProperties } from 'vue'\nimport type { ScrollbarDirection, ScrollbarProps } from './scrollbar'\n\ndefineProps<{\n mask: ScrollbarProps['mask']\n}>()\n\nconst ns = useNamespace('scrollbar')\nconst scrollbar = inject(scrollbarContextKey)!\nconst edges = ['top', 'bottom', 'left', 'right'] as const\nconst visible = shallowReactive({\n top: false,\n bottom: false,\n left: false,\n right: false,\n})\nconst styles = shallowRef<Partial<Record<ScrollbarDirection, CSSProperties>>>(\n {}\n)\n\nconst handleScroll = () => {\n const wrap = scrollbar.wrapElement\n if (!wrap) return\n\n const {\n clientHeight,\n scrollHeight,\n scrollTop,\n clientWidth,\n scrollWidth,\n scrollLeft,\n } = wrap\n // Scroll offsets may be fractional, whereas scroll and client sizes are rounded.\n const maxTop = scrollHeight - clientHeight\n const maxLeft = scrollWidth - clientWidth\n const hasVerticalOverflow = clientHeight > 0 && maxTop > 1\n const hasHorizontalOverflow = clientWidth > 0 && maxLeft > 1\n let left = scrollLeft\n if (hasHorizontalOverflow && getStyle(wrap, 'direction') === 'rtl') {\n // Normalize the browser's RTL offset to the distance from the physical left.\n switch (getRTLOffsetType()) {\n case 'negative':\n left = maxLeft + scrollLeft\n break\n case 'positive-ascending':\n left = maxLeft - scrollLeft\n break\n }\n }\n\n visible.top = hasVerticalOverflow && scrollTop > 1\n visible.bottom = hasVerticalOverflow && maxTop - scrollTop > 1\n visible.left = hasHorizontalOverflow && left > 1\n visible.right = hasHorizontalOverflow && maxLeft - left > 1\n}\n\nconst update = () => {\n const { wrapElement: wrap, scrollbarElement } = scrollbar\n if (!wrap || !scrollbarElement) return\n\n // Align with the viewport, excluding native scrollbars and any wrap border.\n const {\n offsetLeft,\n offsetTop,\n clientLeft,\n clientTop,\n clientWidth,\n clientHeight,\n } = wrap\n const left = offsetLeft + clientLeft\n const top = offsetTop + clientTop\n const verticalStyle = {\n left: `${left}px`,\n width: `${clientWidth}px`,\n maxHeight: `${clientHeight}px`,\n }\n const horizontalStyle = {\n top: `${top}px`,\n height: `${clientHeight}px`,\n maxWidth: `${clientWidth}px`,\n }\n styles.value = {\n top: { ...verticalStyle, top: `${top}px` },\n bottom: {\n ...verticalStyle,\n bottom: `${scrollbarElement.clientHeight - top - clientHeight}px`,\n },\n left: { ...horizontalStyle, left: `${left}px` },\n right: {\n ...horizontalStyle,\n right: `${scrollbarElement.clientWidth - left - clientWidth}px`,\n },\n }\n handleScroll()\n}\n\ndefineExpose({ update, handleScroll })\n</script>\n"],"mappings":";;;;;;;;;;;;;EA4BA,MAAM,KAAK,aAAa,WAAW;EACnC,MAAM,YAAY,OAAO,mBAAmB;EAC5C,MAAM,QAAQ;GAAC;GAAO;GAAU;GAAQ;EAAO;EAC/C,MAAM,UAAU,gBAAgB;GAC9B,KAAK;GACL,QAAQ;GACR,MAAM;GACN,OAAO;EACT,CAAC;EACD,MAAM,SAAS,WACb,CAAC,CACH;EAEA,MAAM,qBAAqB;GACzB,MAAM,OAAO,UAAU;GACvB,IAAI,CAAC,MAAM;GAEX,MAAM,EACJ,cACA,cACA,WACA,aACA,aACA,eACE;GAEJ,MAAM,SAAS,eAAe;GAC9B,MAAM,UAAU,cAAc;GAC9B,MAAM,sBAAsB,eAAe,KAAK,SAAS;GACzD,MAAM,wBAAwB,cAAc,KAAK,UAAU;GAC3D,IAAI,OAAO;GACX,IAAI,yBAAyB,SAAS,MAAM,WAAW,MAAM,OAE3D,QAAQ,iBAAiB,GAAzB;IACE,KAAK;KACH,OAAO,UAAU;KACjB;IACF,KAAK,sBACH,OAAO,UAAU;GAErB;GAGF,QAAQ,MAAM,uBAAuB,YAAY;GACjD,QAAQ,SAAS,uBAAuB,SAAS,YAAY;GAC7D,QAAQ,OAAO,yBAAyB,OAAO;GAC/C,QAAQ,QAAQ,yBAAyB,UAAU,OAAO;EAC5D;EAEA,MAAM,eAAe;GACnB,MAAM,EAAE,aAAa,MAAM,qBAAqB;GAChD,IAAI,CAAC,QAAQ,CAAC,kBAAkB;GAGhC,MAAM,EACJ,YACA,WACA,YACA,WACA,aACA,iBACE;GACJ,MAAM,OAAO,aAAa;GAC1B,MAAM,MAAM,YAAY;GACxB,MAAM,gBAAgB;IACpB,MAAM,GAAG,KAAK;IACd,OAAO,GAAG,YAAY;IACtB,WAAW,GAAG,aAAa;GAC7B;GACA,MAAM,kBAAkB;IACtB,KAAK,GAAG,IAAI;IACZ,QAAQ,GAAG,aAAa;IACxB,UAAU,GAAG,YAAY;GAC3B;GACA,OAAO,QAAQ;IACb,KAAK;KAAE,GAAG;KAAe,KAAK,GAAG,IAAI;IAAI;IACzC,QAAQ;KACN,GAAG;KACH,QAAQ,GAAG,iBAAiB,eAAe,MAAM,aAAa;IAChE;IACA,MAAM;KAAE,GAAG;KAAiB,MAAM,GAAG,KAAK;IAAI;IAC9C,OAAO;KACL,GAAG;KACH,OAAO,GAAG,iBAAiB,cAAc,OAAO,YAAY;IAC9D;GACF;GACA,aAAa;EACf;EAEA,SAAa;GAAE;GAAQ;EAAa,CAAC;;GApHnC,OAAA,UAAA,GAAA,mBAUM,OAAA;IAVA,OAAK,eAAE,MAAA,EAAA,CAAE,CAAC,EAAC,MAAA,CAAA;IAAU,eAAY;GACrC,GAAA,EAAA,UAAA,GAAA,mBAQa,UAAA,MAAA,WARc,QAAR,SAAI;IAAvB,OAAA,YAQa,YAAA;KARsB,KAAK;KAAO,MAAM,MAAA,EAAA,CAAE,CAAC,EAAC,WAAA;;KACvD,SAAA,cAME,CALM,QAAA,SAAI,QAAa,QAAA,SAAS,OADlC,gBAAA,UAAA,GAAA,mBAME,OAAA;;MAHC,OAAK,eAAE,MAAA,EAAA,CAAE,CAAC,EAAC,GAAI,KAAI,MAAA,CAAA;MACnB,OAAK,eAAE,OAAA,MAAO,KAAI;MACnB,eAAY;KAHJ,GAAA,MAAA,CAAA,IAAA,CAAA,CAAA,OAAA,MAAA,OAAA,CAAO,CAAC,KAAI,CAAA,CAAA,IAAA,mBAAA,QAAA,IAAA,CAAA,CAAA"}
|
|
@@ -58,6 +58,11 @@ interface ScrollbarProps {
|
|
|
58
58
|
* @description always show
|
|
59
59
|
*/
|
|
60
60
|
always?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @description show gradient masks at all edges or at the specified edge while more content can be scrolled to
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
mask?: boolean | ScrollbarDirection;
|
|
61
66
|
/**
|
|
62
67
|
* @description minimum size of scrollbar
|
|
63
68
|
* @default 20
|
|
@@ -107,6 +112,7 @@ declare const scrollbarProps: {
|
|
|
107
112
|
readonly noresize: BooleanConstructor;
|
|
108
113
|
readonly tag: EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
|
|
109
114
|
readonly always: BooleanConstructor;
|
|
115
|
+
readonly mask: EpPropFinalized<readonly [BooleanConstructor, StringConstructor], boolean | "left" | "right" | "top" | "bottom", unknown, false, boolean>;
|
|
110
116
|
readonly minSize: EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
|
|
111
117
|
readonly tabindex: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, undefined, boolean>;
|
|
112
118
|
readonly id: StringConstructor;
|
|
@@ -95,6 +95,21 @@ const scrollbarProps = buildProps({
|
|
|
95
95
|
*/
|
|
96
96
|
always: Boolean,
|
|
97
97
|
/**
|
|
98
|
+
* @description show gradient masks at all edges or at the specified edge while more content can be scrolled to
|
|
99
|
+
*/
|
|
100
|
+
mask: {
|
|
101
|
+
type: [Boolean, String],
|
|
102
|
+
values: [
|
|
103
|
+
true,
|
|
104
|
+
false,
|
|
105
|
+
"top",
|
|
106
|
+
"bottom",
|
|
107
|
+
"left",
|
|
108
|
+
"right"
|
|
109
|
+
],
|
|
110
|
+
default: false
|
|
111
|
+
},
|
|
112
|
+
/**
|
|
98
113
|
* @description minimum size of scrollbar
|
|
99
114
|
*/
|
|
100
115
|
minSize: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollbar.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/scrollbar.ts"],"sourcesContent":["import { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\n\nimport type { ClassValue } from '@element-plus/utils'\nimport type { ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type Scrollbar from './scrollbar.vue'\n\nexport interface ScrollbarProps {\n /**\n * @description trigger distance(px)\n * @default 0\n */\n distance?: number\n /**\n * @description height of scrollbar\n * @default ''\n */\n height?: number | string\n /**\n * @description max height of scrollbar\n * @default ''\n */\n maxHeight?: number | string\n /**\n * @description whether to use the native scrollbar\n */\n native?: boolean\n /**\n * @description style of wrap\n * @default ''\n */\n wrapStyle?: StyleValue\n /**\n * @description class of wrap\n * @default ''\n */\n wrapClass?: ClassValue\n /**\n * @description class of view\n * @default ''\n */\n viewClass?: ClassValue\n /**\n * @description style of view\n * @default ''\n */\n viewStyle?: StyleValue\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize?: boolean\n /**\n * @description element tag of the view\n * @default 'div'\n */\n tag?: keyof HTMLElementTagNameMap | (string & {})\n /**\n * @description always show\n */\n always?: boolean\n /**\n * @description minimum size of scrollbar\n * @default 20\n */\n minSize?: number\n /**\n * @description Wrap tabindex\n * @default undefined\n */\n tabindex?: number | string\n /**\n * @description id of view\n */\n id?: string\n /**\n * @description role of view\n */\n role?: string\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel?: string\n /**\n * @description native `aria-orientation` attribute\n */\n ariaOrientation?: 'horizontal' | 'vertical' | 'undefined'\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ScrollbarProps` instead.\n */\nexport const scrollbarProps = buildProps({\n /**\n * @description trigger distance(px)\n */\n distance: {\n type: Number,\n default: 0,\n },\n /**\n * @description height of scrollbar\n */\n height: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description max height of scrollbar\n */\n maxHeight: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether to use the native scrollbar\n */\n native: Boolean,\n /**\n * @description style of wrap\n */\n wrapStyle: {\n type: definePropType<StyleValue>([String, Object, Array, Boolean]),\n default: '',\n },\n /**\n * @description class of wrap\n */\n wrapClass: {\n type: definePropType<ClassValue>([String, Array, Object, Boolean]),\n default: '',\n },\n /**\n * @description class of view\n */\n viewClass: {\n type: definePropType<ClassValue>([String, Array, Object, Boolean]),\n default: '',\n },\n /**\n * @description style of view\n */\n viewStyle: {\n type: definePropType<StyleValue>([String, Object, Array, Boolean]),\n default: '',\n },\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能\n /**\n * @description element tag of the view\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description always show\n */\n always: Boolean,\n /**\n * @description minimum size of scrollbar\n */\n minSize: {\n type: Number,\n default: 20,\n },\n /**\n * @description Wrap tabindex\n */\n tabindex: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description id of view\n */\n id: String,\n /**\n * @description role of view\n */\n role: String,\n ...useAriaProps(['ariaLabel', 'ariaOrientation']),\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `ScrollbarProps` instead.\n */\nexport type ScrollbarPropsPublic = ExtractPublicPropTypes<typeof scrollbarProps>\n\nexport const scrollbarEmits = {\n 'end-reached': (direction: ScrollbarDirection) =>\n ['left', 'right', 'top', 'bottom'].includes(direction),\n scroll: ({\n scrollTop,\n scrollLeft,\n }: {\n scrollTop: number\n scrollLeft: number\n }) => [scrollTop, scrollLeft].every(isNumber),\n}\nexport type ScrollbarEmits = typeof scrollbarEmits\nexport type ScrollbarDirection = 'top' | 'bottom' | 'left' | 'right'\n\nexport type ScrollbarInstance = InstanceType<typeof Scrollbar> & unknown\n"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"scrollbar.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/scrollbar.ts"],"sourcesContent":["import { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\n\nimport type { ClassValue } from '@element-plus/utils'\nimport type { ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type Scrollbar from './scrollbar.vue'\n\nexport interface ScrollbarProps {\n /**\n * @description trigger distance(px)\n * @default 0\n */\n distance?: number\n /**\n * @description height of scrollbar\n * @default ''\n */\n height?: number | string\n /**\n * @description max height of scrollbar\n * @default ''\n */\n maxHeight?: number | string\n /**\n * @description whether to use the native scrollbar\n */\n native?: boolean\n /**\n * @description style of wrap\n * @default ''\n */\n wrapStyle?: StyleValue\n /**\n * @description class of wrap\n * @default ''\n */\n wrapClass?: ClassValue\n /**\n * @description class of view\n * @default ''\n */\n viewClass?: ClassValue\n /**\n * @description style of view\n * @default ''\n */\n viewStyle?: StyleValue\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize?: boolean\n /**\n * @description element tag of the view\n * @default 'div'\n */\n tag?: keyof HTMLElementTagNameMap | (string & {})\n /**\n * @description always show\n */\n always?: boolean\n /**\n * @description show gradient masks at all edges or at the specified edge while more content can be scrolled to\n * @default false\n */\n mask?: boolean | ScrollbarDirection\n /**\n * @description minimum size of scrollbar\n * @default 20\n */\n minSize?: number\n /**\n * @description Wrap tabindex\n * @default undefined\n */\n tabindex?: number | string\n /**\n * @description id of view\n */\n id?: string\n /**\n * @description role of view\n */\n role?: string\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel?: string\n /**\n * @description native `aria-orientation` attribute\n */\n ariaOrientation?: 'horizontal' | 'vertical' | 'undefined'\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ScrollbarProps` instead.\n */\nexport const scrollbarProps = buildProps({\n /**\n * @description trigger distance(px)\n */\n distance: {\n type: Number,\n default: 0,\n },\n /**\n * @description height of scrollbar\n */\n height: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description max height of scrollbar\n */\n maxHeight: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether to use the native scrollbar\n */\n native: Boolean,\n /**\n * @description style of wrap\n */\n wrapStyle: {\n type: definePropType<StyleValue>([String, Object, Array, Boolean]),\n default: '',\n },\n /**\n * @description class of wrap\n */\n wrapClass: {\n type: definePropType<ClassValue>([String, Array, Object, Boolean]),\n default: '',\n },\n /**\n * @description class of view\n */\n viewClass: {\n type: definePropType<ClassValue>([String, Array, Object, Boolean]),\n default: '',\n },\n /**\n * @description style of view\n */\n viewStyle: {\n type: definePropType<StyleValue>([String, Object, Array, Boolean]),\n default: '',\n },\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能\n /**\n * @description element tag of the view\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description always show\n */\n always: Boolean,\n /**\n * @description show gradient masks at all edges or at the specified edge while more content can be scrolled to\n */\n mask: {\n type: [Boolean, String],\n values: [true, false, 'top', 'bottom', 'left', 'right'],\n default: false,\n },\n /**\n * @description minimum size of scrollbar\n */\n minSize: {\n type: Number,\n default: 20,\n },\n /**\n * @description Wrap tabindex\n */\n tabindex: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description id of view\n */\n id: String,\n /**\n * @description role of view\n */\n role: String,\n ...useAriaProps(['ariaLabel', 'ariaOrientation']),\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `ScrollbarProps` instead.\n */\nexport type ScrollbarPropsPublic = ExtractPublicPropTypes<typeof scrollbarProps>\n\nexport const scrollbarEmits = {\n 'end-reached': (direction: ScrollbarDirection) =>\n ['left', 'right', 'top', 'bottom'].includes(direction),\n scroll: ({\n scrollTop,\n scrollLeft,\n }: {\n scrollTop: number\n scrollLeft: number\n }) => [scrollTop, scrollLeft].every(isNumber),\n}\nexport type ScrollbarEmits = typeof scrollbarEmits\nexport type ScrollbarDirection = 'top' | 'bottom' | 'left' | 'right'\n\nexport type ScrollbarInstance = InstanceType<typeof Scrollbar> & unknown\n"],"mappings":";;;;;;;AAgGA,MAAa,iBAAiB,WAAW;;;;CAIvC,UAAU;EACR,MAAM;EACN,SAAS;CACX;;;;CAIA,QAAQ;EACN,MAAM,CAAC,QAAQ,MAAM;EACrB,SAAS;CACX;;;;CAIA,WAAW;EACT,MAAM,CAAC,QAAQ,MAAM;EACrB,SAAS;CACX;;;;CAIA,QAAQ;;;;CAIR,WAAW;EACT,MAAM,eAA2B;GAAC;GAAQ;GAAQ;GAAO;EAAO,CAAC;EACjE,SAAS;CACX;;;;CAIA,WAAW;EACT,MAAM,eAA2B;GAAC;GAAQ;GAAO;GAAQ;EAAO,CAAC;EACjE,SAAS;CACX;;;;CAIA,WAAW;EACT,MAAM,eAA2B;GAAC;GAAQ;GAAO;GAAQ;EAAO,CAAC;EACjE,SAAS;CACX;;;;CAIA,WAAW;EACT,MAAM,eAA2B;GAAC;GAAQ;GAAQ;GAAO;EAAO,CAAC;EACjE,SAAS;CACX;;;;CAIA,UAAU;;;;CAIV,KAAK;EACH,MAAM;EACN,SAAS;CACX;;;;CAIA,QAAQ;;;;CAIR,MAAM;EACJ,MAAM,CAAC,SAAS,MAAM;EACtB,QAAQ;GAAC;GAAM;GAAO;GAAO;GAAU;GAAQ;EAAO;EACtD,SAAS;CACX;;;;CAIA,SAAS;EACP,MAAM;EACN,SAAS;CACX;;;;CAIA,UAAU;EACR,MAAM,CAAC,QAAQ,MAAM;EACrB,SAAS,KAAA;CACX;;;;CAIA,IAAI;;;;CAIJ,MAAM;CACN,GAAG,aAAa,CAAC,aAAa,iBAAiB,CAAC;AAClD,CAAU;AAOV,MAAa,iBAAiB;CAC5B,gBAAgB,cACd;EAAC;EAAQ;EAAS;EAAO;CAAQ,CAAC,CAAC,SAAS,SAAS;CACvD,SAAS,EACP,WACA,iBAII,CAAC,WAAW,UAAU,CAAC,CAAC,MAAM,QAAQ;AAC9C"}
|
|
@@ -18,28 +18,29 @@ declare const __VLS_base: _$vue.DefineComponent<ScrollbarProps, {
|
|
|
18
18
|
setScrollLeft: (value: number) => void; /** @description handle scroll event */
|
|
19
19
|
handleScroll: () => void;
|
|
20
20
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
21
|
-
"end-reached": (direction: ScrollbarDirection) => void;
|
|
22
21
|
scroll: (args_0: {
|
|
23
22
|
scrollTop: number;
|
|
24
23
|
scrollLeft: number;
|
|
25
24
|
}) => void;
|
|
25
|
+
"end-reached": (direction: ScrollbarDirection) => void;
|
|
26
26
|
}, string, _$vue.PublicProps, Readonly<ScrollbarProps> & Readonly<{
|
|
27
|
-
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
28
27
|
onScroll?: ((args_0: {
|
|
29
28
|
scrollTop: number;
|
|
30
29
|
scrollLeft: number;
|
|
31
30
|
}) => any) | undefined;
|
|
31
|
+
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
|
-
|
|
34
|
-
distance: number;
|
|
33
|
+
tabindex: string | number;
|
|
35
34
|
height: string | number;
|
|
35
|
+
mask: boolean | ScrollbarDirection;
|
|
36
36
|
maxHeight: string | number;
|
|
37
|
+
tag: (string & {}) | keyof HTMLElementTagNameMap;
|
|
38
|
+
distance: number;
|
|
37
39
|
wrapStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
38
40
|
wrapClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
39
41
|
viewClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
40
42
|
viewStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
41
43
|
minSize: number;
|
|
42
|
-
tabindex: string | number;
|
|
43
44
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
44
45
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
45
46
|
declare const _default: typeof __VLS_export;
|