@element-plus/nightly 0.0.20261021 → 0.0.20261022
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +181 -181
- package/dist/index.full.min.js +10 -10
- 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 +181 -181
- 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 +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 +4 -4
- package/es/components/alert/src/alert.d.ts +2 -2
- package/es/components/alert/src/alert.vue.d.ts +3 -3
- package/es/components/anchor/src/anchor.d.ts +1 -1
- package/es/components/anchor/src/anchor.vue.d.ts +4 -4
- package/es/components/autocomplete/src/autocomplete.d.ts +4 -4
- 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 +3 -3
- package/es/components/avatar/src/avatar.d.ts +2 -2
- 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 +1 -1
- 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 +5 -5
- package/es/components/button/src/use-button.d.ts +2 -2
- package/es/components/card/src/card.vue.d.ts +2 -2
- package/es/components/carousel/src/carousel.d.ts +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +3 -3
- package/es/components/cascader/src/cascader.d.ts +4 -4
- package/es/components/cascader/src/cascader.vue.d.ts +17 -17
- package/es/components/cascader-panel/src/index.vue.d.ts +4 -4
- package/es/components/cascader-panel/src/menu.vue.d.ts +1 -1
- package/es/components/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 +3 -3
- package/es/components/checkbox/src/checkbox.d.ts +3 -3
- 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-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 +10 -10
- package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +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.d.ts +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +25 -25
- package/es/components/date-picker/src/props.d.ts +3 -3
- 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/basic-month-table.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-com/basic-quarter-table.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-com/basic-year-table.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +5 -5
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +7 -7
- package/es/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-com/panel-quarter-range.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +10 -10
- package/es/components/date-picker-panel/src/panel-utils.d.ts +39 -39
- package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/es/components/descriptions/src/description-item.d.ts +8 -8
- 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-content.vue.d.ts +4 -4
- package/es/components/dialog/src/dialog.vue.d.ts +10 -10
- package/es/components/divider/src/divider.d.ts +1 -1
- package/es/components/divider/src/divider.vue.d.ts +2 -2
- package/es/components/drawer/src/composables/useResizable.mjs +4 -5
- package/es/components/drawer/src/composables/useResizable.mjs.map +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +13 -13
- package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +4 -4
- package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.d.ts +4 -4
- package/es/components/dropdown/src/dropdown.vue.d.ts +108 -108
- package/es/components/empty/src/empty.vue.d.ts +1 -1
- package/es/components/form/src/form-item.d.ts +3 -3
- package/es/components/form/src/form-item.vue.d.ts +3 -3
- package/es/components/form/src/form.d.ts +3 -3
- package/es/components/form/src/form.vue.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 +6 -6
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +5 -5
- package/es/components/input/src/input.d.ts +3 -3
- package/es/components/input/src/input.vue.d.ts +19 -19
- package/es/components/input-number/src/input-number.d.ts +3 -3
- package/es/components/input-number/src/input-number.vue.d.ts +12 -12
- package/es/components/input-otp/src/input-otp.vue.d.ts +5 -5
- 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 +12 -12
- package/es/components/link/src/link.d.ts +1 -1
- package/es/components/link/src/link.vue.d.ts +2 -2
- package/es/components/mention/src/mention.d.ts +3 -3
- package/es/components/mention/src/mention.vue.d.ts +4 -4
- package/es/components/menu/src/menu.d.ts +4 -4
- package/es/components/menu/src/sub-menu.d.ts +1 -1
- package/es/components/message/src/message.d.ts +1 -1
- package/es/components/message/src/message.vue.d.ts +8 -8
- package/es/components/message-box/src/index.vue.d.ts +75 -75
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +8 -8
- 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 +7 -7
- package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +4 -4
- package/es/components/popover/src/popover.d.ts +59 -59
- package/es/components/popover/src/popover.vue.d.ts +22 -22
- package/es/components/popper/src/composables/use-content.d.ts +1 -1
- package/es/components/popper/src/content.vue.d.ts +17 -17
- 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 +6 -6
- 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 +3 -3
- 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 +1 -1
- package/es/components/scrollbar/src/scrollbar.d.ts +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/es/components/segmented/index.d.ts +4 -4
- 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/option.d.ts +1 -1
- package/es/components/select/src/option.vue.d.ts +2 -2
- package/es/components/select/src/select.d.ts +5 -5
- package/es/components/select/src/select.vue.d.ts +117 -117
- package/es/components/select/src/useSelect.d.ts +7 -7
- package/es/components/select/style/css.mjs +1 -1
- package/es/components/select/style/index.mjs +1 -1
- package/es/components/select-v2/src/defaults.d.ts +5 -5
- package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +106 -106
- package/es/components/select-v2/src/useSelect.d.ts +2 -2
- 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/skeleton/src/skeleton.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 +10 -10
- package/es/components/space/src/space.d.ts +6 -6
- package/es/components/splitter/src/hooks/index.d.ts +2 -2
- package/es/components/splitter/src/hooks/index.mjs +2 -2
- package/es/components/splitter/src/hooks/useResize.mjs +3 -3
- package/es/components/splitter/src/hooks/useResize.mjs.map +1 -1
- package/es/components/splitter/src/hooks/useSize.d.ts +1 -5
- package/es/components/splitter/src/hooks/useSize.mjs +4 -16
- package/es/components/splitter/src/hooks/useSize.mjs.map +1 -1
- package/es/components/splitter/src/split-panel.vue_vue_type_script_setup_true_lang.mjs +3 -3
- package/es/components/splitter/src/split-panel.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/splitter/src/split-panel2.mjs.map +1 -1
- package/es/components/splitter/src/splitter.vue.d.ts +2 -2
- package/es/components/splitter/src/splitter.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/statistic/src/statistic.vue.d.ts +1 -1
- 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 +4 -4
- package/es/components/table/src/filter-panel.vue.d.ts +90 -90
- 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 +4 -4
- package/es/components/table-v2/src/components/header.d.ts +1 -1
- package/es/components/table-v2/src/components/row.d.ts +1 -1
- package/es/components/table-v2/src/table-grid.d.ts +4 -4
- package/es/components/table-v2/src/table-v2.d.ts +6 -6
- package/es/components/tabs/src/tab-nav.d.ts +1 -1
- package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/es/components/tabs/src/tabs.d.ts +6 -6
- package/es/components/tag/src/tag.d.ts +3 -3
- package/es/components/tag/src/tag.vue.d.ts +4 -4
- 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-range-trigger.vue.d.ts +6 -6
- package/es/components/time-picker/src/common/picker.vue.d.ts +31 -31
- 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.d.ts +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +3 -3
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +3 -3
- package/es/components/time-picker/src/time-picker.d.ts +25 -25
- package/es/components/time-select/src/time-select.d.ts +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +11 -11
- package/es/components/timeline/src/timeline-item.d.ts +2 -2
- package/es/components/timeline/src/timeline-item.vue.d.ts +2 -2
- package/es/components/tooltip/src/content.vue.d.ts +16 -16
- package/es/components/tooltip/src/tooltip.d.ts +2 -2
- package/es/components/tooltip/src/tooltip.vue.d.ts +21 -21
- 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/mask.vue.d.ts +1 -1
- package/es/components/tour/src/step.d.ts +1 -1
- package/es/components/tour/src/step.vue.d.ts +3 -3
- package/es/components/tour/src/tour.d.ts +1 -1
- package/es/components/tour/src/tour.vue.d.ts +9 -9
- package/es/components/transfer/src/transfer.vue.d.ts +2 -2
- package/es/components/tree/src/tree-node.vue.d.ts +17 -17
- package/es/components/tree/src/tree.vue.d.ts +29 -29
- package/es/components/tree-select/src/tree-select-option.d.ts +2 -2
- package/es/components/tree-select/src/tree-select.vue.d.ts +38 -38
- package/es/components/tree-v2/src/composables/useTree.d.ts +8 -8
- package/es/components/tree-v2/src/tree.vue.d.ts +13 -13
- package/es/components/upload/src/upload-content.vue.d.ts +2 -2
- package/es/components/upload/src/upload.vue.d.ts +3 -3
- package/es/components/virtual-list/src/builders/build-grid.d.ts +4 -4
- package/es/components/virtual-list/src/builders/build-list.d.ts +4 -4
- package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +4 -4
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +4 -4
- package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +4 -4
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
- package/es/components/virtual-list/src/components/scrollbar.d.ts +2 -2
- package/es/components/virtual-list/src/utils.d.ts +1 -1
- package/es/components/watermark/src/watermark.vue.d.ts +2 -2
- package/es/hooks/use-floating/index.d.ts +4 -4
- package/es/hooks/use-popper/index.d.ts +1 -1
- package/es/hooks/use-size/index.d.ts +3 -3
- package/es/utils/dom/index.d.ts +2 -2
- package/es/utils/dom/index.mjs +2 -2
- package/es/utils/dom/style.d.ts +9 -1
- package/es/utils/dom/style.mjs +17 -1
- package/es/utils/dom/style.mjs.map +1 -1
- package/es/utils/index.d.ts +2 -2
- package/es/utils/index.mjs +2 -2
- package/es/utils/vue/size.d.ts +1 -1
- package/es/utils/vue/vnode.d.ts +4 -4
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix.vue.d.ts +4 -4
- package/lib/components/alert/src/alert.d.ts +2 -2
- package/lib/components/alert/src/alert.vue.d.ts +3 -3
- package/lib/components/anchor/src/anchor.d.ts +1 -1
- package/lib/components/anchor/src/anchor.vue.d.ts +4 -4
- package/lib/components/autocomplete/src/autocomplete.d.ts +4 -4
- 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 +3 -3
- package/lib/components/avatar/src/avatar.d.ts +2 -2
- 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 +1 -1
- 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 +5 -5
- package/lib/components/button/src/use-button.d.ts +2 -2
- package/lib/components/card/src/card.vue.d.ts +2 -2
- package/lib/components/carousel/src/carousel.d.ts +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +3 -3
- package/lib/components/cascader/src/cascader.d.ts +4 -4
- package/lib/components/cascader/src/cascader.vue.d.ts +17 -17
- package/lib/components/cascader-panel/src/index.vue.d.ts +4 -4
- package/lib/components/cascader-panel/src/menu.vue.d.ts +1 -1
- package/lib/components/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 +3 -3
- package/lib/components/checkbox/src/checkbox.d.ts +3 -3
- 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-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 +10 -10
- package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +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.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +25 -25
- package/lib/components/date-picker/src/props.d.ts +3 -3
- 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/basic-month-table.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-com/basic-quarter-table.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-com/basic-year-table.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +5 -5
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +7 -7
- package/lib/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-com/panel-quarter-range.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +10 -10
- package/lib/components/date-picker-panel/src/panel-utils.d.ts +39 -39
- package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/lib/components/descriptions/src/description-item.d.ts +8 -8
- 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-content.vue.d.ts +4 -4
- package/lib/components/dialog/src/dialog.vue.d.ts +10 -10
- package/lib/components/divider/src/divider.d.ts +1 -1
- package/lib/components/divider/src/divider.vue.d.ts +2 -2
- package/lib/components/drawer/src/composables/useResizable.js +3 -4
- package/lib/components/drawer/src/composables/useResizable.js.map +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +13 -13
- package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +4 -4
- package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.d.ts +4 -4
- package/lib/components/dropdown/src/dropdown.vue.d.ts +108 -108
- package/lib/components/empty/src/empty.vue.d.ts +1 -1
- package/lib/components/form/src/form-item.d.ts +3 -3
- package/lib/components/form/src/form-item.vue.d.ts +3 -3
- package/lib/components/form/src/form.d.ts +3 -3
- package/lib/components/form/src/form.vue.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 +6 -6
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +5 -5
- package/lib/components/input/src/input.d.ts +3 -3
- package/lib/components/input/src/input.vue.d.ts +19 -19
- package/lib/components/input-number/src/input-number.d.ts +3 -3
- package/lib/components/input-number/src/input-number.vue.d.ts +12 -12
- package/lib/components/input-otp/src/input-otp.vue.d.ts +5 -5
- 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 +12 -12
- package/lib/components/link/src/link.d.ts +1 -1
- package/lib/components/link/src/link.vue.d.ts +2 -2
- package/lib/components/mention/src/mention.d.ts +3 -3
- package/lib/components/mention/src/mention.vue.d.ts +4 -4
- package/lib/components/menu/src/menu.d.ts +4 -4
- package/lib/components/menu/src/sub-menu.d.ts +1 -1
- package/lib/components/message/src/message.d.ts +1 -1
- package/lib/components/message/src/message.vue.d.ts +8 -8
- package/lib/components/message-box/src/index.vue.d.ts +75 -75
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +8 -8
- 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 +7 -7
- package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +4 -4
- package/lib/components/popover/src/popover.d.ts +59 -59
- package/lib/components/popover/src/popover.vue.d.ts +22 -22
- package/lib/components/popper/src/composables/use-content.d.ts +1 -1
- package/lib/components/popper/src/content.vue.d.ts +17 -17
- 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 +6 -6
- 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 +3 -3
- 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 +1 -1
- package/lib/components/scrollbar/src/scrollbar.d.ts +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/lib/components/segmented/index.d.ts +4 -4
- 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/option.d.ts +1 -1
- package/lib/components/select/src/option.vue.d.ts +2 -2
- package/lib/components/select/src/select.d.ts +5 -5
- package/lib/components/select/src/select.vue.d.ts +117 -117
- package/lib/components/select/src/useSelect.d.ts +7 -7
- package/lib/components/select/style/css.js +1 -1
- package/lib/components/select/style/index.js +1 -1
- package/lib/components/select-v2/src/defaults.d.ts +5 -5
- package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +106 -106
- package/lib/components/select-v2/src/useSelect.d.ts +2 -2
- 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/skeleton/src/skeleton.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 +10 -10
- package/lib/components/space/src/space.d.ts +6 -6
- package/lib/components/splitter/src/hooks/index.d.ts +2 -2
- package/lib/components/splitter/src/hooks/index.js +1 -5
- package/lib/components/splitter/src/hooks/useResize.js +3 -3
- package/lib/components/splitter/src/hooks/useResize.js.map +1 -1
- package/lib/components/splitter/src/hooks/useSize.d.ts +1 -5
- package/lib/components/splitter/src/hooks/useSize.js +3 -19
- package/lib/components/splitter/src/hooks/useSize.js.map +1 -1
- package/lib/components/splitter/src/split-panel.vue_vue_type_script_setup_true_lang.js +3 -3
- package/lib/components/splitter/src/split-panel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/splitter/src/split-panel2.js.map +1 -1
- package/lib/components/splitter/src/splitter.vue.d.ts +2 -2
- package/lib/components/splitter/src/splitter.vue_vue_type_script_setup_true_lang.js +2 -2
- package/lib/components/statistic/src/statistic.vue.d.ts +1 -1
- 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 +4 -4
- package/lib/components/table/src/filter-panel.vue.d.ts +90 -90
- 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 +4 -4
- package/lib/components/table-v2/src/components/header.d.ts +1 -1
- package/lib/components/table-v2/src/components/row.d.ts +1 -1
- package/lib/components/table-v2/src/table-grid.d.ts +4 -4
- package/lib/components/table-v2/src/table-v2.d.ts +6 -6
- package/lib/components/tabs/src/tab-nav.d.ts +1 -1
- package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/lib/components/tabs/src/tabs.d.ts +6 -6
- package/lib/components/tag/src/tag.d.ts +3 -3
- package/lib/components/tag/src/tag.vue.d.ts +4 -4
- 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-range-trigger.vue.d.ts +6 -6
- package/lib/components/time-picker/src/common/picker.vue.d.ts +31 -31
- 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.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +3 -3
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +3 -3
- package/lib/components/time-picker/src/time-picker.d.ts +25 -25
- package/lib/components/time-select/src/time-select.d.ts +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +11 -11
- package/lib/components/timeline/src/timeline-item.d.ts +2 -2
- package/lib/components/timeline/src/timeline-item.vue.d.ts +2 -2
- package/lib/components/tooltip/src/content.vue.d.ts +16 -16
- package/lib/components/tooltip/src/tooltip.d.ts +2 -2
- package/lib/components/tooltip/src/tooltip.vue.d.ts +21 -21
- 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/mask.vue.d.ts +1 -1
- package/lib/components/tour/src/step.d.ts +1 -1
- package/lib/components/tour/src/step.vue.d.ts +3 -3
- package/lib/components/tour/src/tour.d.ts +1 -1
- package/lib/components/tour/src/tour.vue.d.ts +9 -9
- package/lib/components/transfer/src/transfer.vue.d.ts +2 -2
- package/lib/components/tree/src/tree-node.vue.d.ts +17 -17
- package/lib/components/tree/src/tree.vue.d.ts +29 -29
- package/lib/components/tree-select/src/tree-select-option.d.ts +2 -2
- package/lib/components/tree-select/src/tree-select.vue.d.ts +38 -38
- package/lib/components/tree-v2/src/composables/useTree.d.ts +8 -8
- package/lib/components/tree-v2/src/tree.vue.d.ts +13 -13
- package/lib/components/upload/src/upload-content.vue.d.ts +2 -2
- package/lib/components/upload/src/upload.vue.d.ts +3 -3
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +4 -4
- package/lib/components/virtual-list/src/builders/build-list.d.ts +4 -4
- package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +4 -4
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +4 -4
- package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +4 -4
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
- package/lib/components/virtual-list/src/components/scrollbar.d.ts +2 -2
- package/lib/components/virtual-list/src/utils.d.ts +1 -1
- package/lib/components/watermark/src/watermark.vue.d.ts +2 -2
- package/lib/hooks/use-floating/index.d.ts +4 -4
- package/lib/hooks/use-popper/index.d.ts +1 -1
- package/lib/hooks/use-size/index.d.ts +3 -3
- package/lib/utils/dom/index.d.ts +2 -2
- package/lib/utils/dom/index.js +4 -0
- package/lib/utils/dom/style.d.ts +9 -1
- package/lib/utils/dom/style.js +20 -0
- package/lib/utils/dom/style.js.map +1 -1
- package/lib/utils/index.d.ts +2 -2
- package/lib/utils/index.js +4 -0
- package/lib/utils/vue/size.d.ts +1 -1
- package/lib/utils/vue/vnode.d.ts +4 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
package/es/utils/dom/style.d.ts
CHANGED
|
@@ -9,5 +9,13 @@ declare const getStyle: (element: HTMLElement, styleName: keyof CSSProperties) =
|
|
|
9
9
|
declare const setStyle: (element: HTMLElement, styleName: CSSProperties | keyof CSSProperties, value?: string | number) => void;
|
|
10
10
|
declare const removeStyle: (element: HTMLElement, style: CSSProperties | keyof CSSProperties) => void;
|
|
11
11
|
declare function addUnit(value?: string | number, defaultUnit?: string): string | undefined;
|
|
12
|
+
/** Converts a percentage string to a ratio, e.g. '50%' to 0.5. */
|
|
13
|
+
declare function percentToRatio(value: string): number;
|
|
14
|
+
/** Parses the numeric value of a pixel string, e.g. '100px' to 100. */
|
|
15
|
+
declare function parsePx(value: string): number;
|
|
16
|
+
/** Checks for a '%' suffix without validating the numeric value. */
|
|
17
|
+
declare function isPercent(value: string | number | undefined): value is string;
|
|
18
|
+
/** Checks for a 'px' suffix without validating the numeric value. */
|
|
19
|
+
declare function isPx(value: string | number | undefined): value is string;
|
|
12
20
|
//#endregion
|
|
13
|
-
export { addClass, addUnit, classNameToArray, getStyle, hasClass, removeClass, removeStyle, setStyle };
|
|
21
|
+
export { addClass, addUnit, classNameToArray, getStyle, hasClass, isPercent, isPx, parsePx, percentToRatio, removeClass, removeStyle, setStyle };
|
package/es/utils/dom/style.mjs
CHANGED
|
@@ -52,7 +52,23 @@ function addUnit(value, defaultUnit = "px") {
|
|
|
52
52
|
else if (isString(value)) return value;
|
|
53
53
|
debugWarn(SCOPE, "binding value must be a string or number");
|
|
54
54
|
}
|
|
55
|
+
/** Converts a percentage string to a ratio, e.g. '50%' to 0.5. */
|
|
56
|
+
function percentToRatio(value) {
|
|
57
|
+
return Number(value.slice(0, -1)) / 100;
|
|
58
|
+
}
|
|
59
|
+
/** Parses the numeric value of a pixel string, e.g. '100px' to 100. */
|
|
60
|
+
function parsePx(value) {
|
|
61
|
+
return Number(value.slice(0, -2));
|
|
62
|
+
}
|
|
63
|
+
/** Checks for a '%' suffix without validating the numeric value. */
|
|
64
|
+
function isPercent(value) {
|
|
65
|
+
return isString(value) && value.endsWith("%");
|
|
66
|
+
}
|
|
67
|
+
/** Checks for a 'px' suffix without validating the numeric value. */
|
|
68
|
+
function isPx(value) {
|
|
69
|
+
return isString(value) && value.endsWith("px");
|
|
70
|
+
}
|
|
55
71
|
//#endregion
|
|
56
|
-
export { addClass, addUnit, classNameToArray, getStyle, hasClass, removeClass, removeStyle, setStyle };
|
|
72
|
+
export { addClass, addUnit, classNameToArray, getStyle, hasClass, isPercent, isPx, parsePx, percentToRatio, removeClass, removeStyle, setStyle };
|
|
57
73
|
|
|
58
74
|
//# sourceMappingURL=style.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.mjs","names":[],"sources":["../../../../../packages/utils/dom/style.ts"],"sourcesContent":["import { isNumber, isObject, isString, isStringNumber } from '../types'\nimport { isClient } from '../browser'\nimport { camelize } from '../strings'\nimport { entriesOf, keysOf } from '../objects'\nimport { debugWarn } from '../error'\nimport { isShadowRoot } from './aria'\n\nimport type { CSSProperties } from 'vue'\n\nconst SCOPE = 'utils/dom/style'\n\nexport const classNameToArray = (cls = '') =>\n cls.split(' ').filter((item) => !!item.trim())\n\nexport const hasClass = (el: Element, cls: string): boolean => {\n if (!el || !cls) return false\n if (cls.includes(' ')) throw new Error('className should not contain space.')\n return el.classList.contains(cls)\n}\n\nexport const addClass = (el: Element, cls: string) => {\n if (!el || !cls.trim()) return\n el.classList.add(...classNameToArray(cls))\n}\n\nexport const removeClass = (el: Element, cls: string) => {\n if (!el || !cls.trim()) return\n el.classList.remove(...classNameToArray(cls))\n}\n\nexport const getStyle = (\n element: HTMLElement,\n styleName: keyof CSSProperties\n): string => {\n if (!isClient || !element || !styleName || isShadowRoot(element)) return ''\n\n let key = camelize(styleName)\n if (key === 'float') key = 'cssFloat'\n try {\n const style = (element.style as any)[key]\n if (style) return style\n const computed: any = document.defaultView?.getComputedStyle(element, '')\n return computed ? computed[key] : ''\n } catch {\n return (element.style as any)[key]\n }\n}\n\nexport const setStyle = (\n element: HTMLElement,\n styleName: CSSProperties | keyof CSSProperties,\n value?: string | number\n) => {\n if (!element || !styleName) return\n\n if (isObject(styleName)) {\n entriesOf(styleName).forEach(([prop, value]) =>\n setStyle(element, prop, value)\n )\n } else {\n const key: any = camelize(styleName)\n element.style[key] = value as any\n }\n}\n\nexport const removeStyle = (\n element: HTMLElement,\n style: CSSProperties | keyof CSSProperties\n) => {\n if (!element || !style) return\n\n if (isObject(style)) {\n keysOf(style).forEach((prop) => removeStyle(element, prop))\n } else {\n setStyle(element, style, '')\n }\n}\n\nexport function addUnit(value?: string | number, defaultUnit = 'px') {\n if (!value && value !== 0) return ''\n if (isNumber(value) || isStringNumber(value)) {\n return `${value}${defaultUnit}`\n } else if (isString(value)) {\n return value\n }\n debugWarn(SCOPE, 'binding value must be a string or number')\n}\n"],"mappings":";;;;;;;AASA,MAAM,QAAQ;AAEd,MAAa,oBAAoB,MAAM,OACrC,IAAI,MAAM,GAAG,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,KAAK,KAAK,CAAC;AAE/C,MAAa,YAAY,IAAa,QAAyB;CAC7D,IAAI,CAAC,MAAM,CAAC,KAAK,OAAO;CACxB,IAAI,IAAI,SAAS,GAAG,GAAG,MAAM,IAAI,MAAM,qCAAqC;CAC5E,OAAO,GAAG,UAAU,SAAS,GAAG;AAClC;AAEA,MAAa,YAAY,IAAa,QAAgB;CACpD,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,GAAG;CACxB,GAAG,UAAU,IAAI,GAAG,iBAAiB,GAAG,CAAC;AAC3C;AAEA,MAAa,eAAe,IAAa,QAAgB;CACvD,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,GAAG;CACxB,GAAG,UAAU,OAAO,GAAG,iBAAiB,GAAG,CAAC;AAC9C;AAEA,MAAa,YACX,SACA,cACW;CACX,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,aAAa,aAAa,OAAO,GAAG,OAAO;CAEzE,IAAI,MAAM,SAAS,SAAS;CAC5B,IAAI,QAAQ,SAAS,MAAM;CAC3B,IAAI;EACF,MAAM,QAAS,QAAQ,MAAc;EACrC,IAAI,OAAO,OAAO;EAClB,MAAM,WAAgB,SAAS,aAAa,iBAAiB,SAAS,EAAE;EACxE,OAAO,WAAW,SAAS,OAAO;CACpC,QAAQ;EACN,OAAQ,QAAQ,MAAc;CAChC;AACF;AAEA,MAAa,YACX,SACA,WACA,UACG;CACH,IAAI,CAAC,WAAW,CAAC,WAAW;CAE5B,IAAI,SAAS,SAAS,GACpB,UAAU,SAAS,CAAC,CAAC,SAAS,CAAC,MAAM,WACnC,SAAS,SAAS,MAAM,KAAK,CAC/B;MACK;EACL,MAAM,MAAW,SAAS,SAAS;EACnC,QAAQ,MAAM,OAAO;CACvB;AACF;AAEA,MAAa,eACX,SACA,UACG;CACH,IAAI,CAAC,WAAW,CAAC,OAAO;CAExB,IAAI,SAAS,KAAK,GAChB,OAAO,KAAK,CAAC,CAAC,SAAS,SAAS,YAAY,SAAS,IAAI,CAAC;MAE1D,SAAS,SAAS,OAAO,EAAE;AAE/B;AAEA,SAAgB,QAAQ,OAAyB,cAAc,MAAM;CACnE,IAAI,CAAC,SAAS,UAAU,GAAG,OAAO;CAClC,IAAI,SAAS,KAAK,KAAK,eAAe,KAAK,GACzC,OAAO,GAAG,QAAQ;MACb,IAAI,SAAS,KAAK,GACvB,OAAO;CAET,UAAU,OAAO,0CAA0C;AAC7D"}
|
|
1
|
+
{"version":3,"file":"style.mjs","names":[],"sources":["../../../../../packages/utils/dom/style.ts"],"sourcesContent":["import { isNumber, isObject, isString, isStringNumber } from '../types'\nimport { isClient } from '../browser'\nimport { camelize } from '../strings'\nimport { entriesOf, keysOf } from '../objects'\nimport { debugWarn } from '../error'\nimport { isShadowRoot } from './aria'\n\nimport type { CSSProperties } from 'vue'\n\nconst SCOPE = 'utils/dom/style'\n\nexport const classNameToArray = (cls = '') =>\n cls.split(' ').filter((item) => !!item.trim())\n\nexport const hasClass = (el: Element, cls: string): boolean => {\n if (!el || !cls) return false\n if (cls.includes(' ')) throw new Error('className should not contain space.')\n return el.classList.contains(cls)\n}\n\nexport const addClass = (el: Element, cls: string) => {\n if (!el || !cls.trim()) return\n el.classList.add(...classNameToArray(cls))\n}\n\nexport const removeClass = (el: Element, cls: string) => {\n if (!el || !cls.trim()) return\n el.classList.remove(...classNameToArray(cls))\n}\n\nexport const getStyle = (\n element: HTMLElement,\n styleName: keyof CSSProperties\n): string => {\n if (!isClient || !element || !styleName || isShadowRoot(element)) return ''\n\n let key = camelize(styleName)\n if (key === 'float') key = 'cssFloat'\n try {\n const style = (element.style as any)[key]\n if (style) return style\n const computed: any = document.defaultView?.getComputedStyle(element, '')\n return computed ? computed[key] : ''\n } catch {\n return (element.style as any)[key]\n }\n}\n\nexport const setStyle = (\n element: HTMLElement,\n styleName: CSSProperties | keyof CSSProperties,\n value?: string | number\n) => {\n if (!element || !styleName) return\n\n if (isObject(styleName)) {\n entriesOf(styleName).forEach(([prop, value]) =>\n setStyle(element, prop, value)\n )\n } else {\n const key: any = camelize(styleName)\n element.style[key] = value as any\n }\n}\n\nexport const removeStyle = (\n element: HTMLElement,\n style: CSSProperties | keyof CSSProperties\n) => {\n if (!element || !style) return\n\n if (isObject(style)) {\n keysOf(style).forEach((prop) => removeStyle(element, prop))\n } else {\n setStyle(element, style, '')\n }\n}\n\nexport function addUnit(value?: string | number, defaultUnit = 'px') {\n if (!value && value !== 0) return ''\n if (isNumber(value) || isStringNumber(value)) {\n return `${value}${defaultUnit}`\n } else if (isString(value)) {\n return value\n }\n debugWarn(SCOPE, 'binding value must be a string or number')\n}\n\n/** Converts a percentage string to a ratio, e.g. '50%' to 0.5. */\nexport function percentToRatio(value: string) {\n return Number(value.slice(0, -1)) / 100\n}\n\n/** Parses the numeric value of a pixel string, e.g. '100px' to 100. */\nexport function parsePx(value: string) {\n return Number(value.slice(0, -2))\n}\n\n/** Checks for a '%' suffix without validating the numeric value. */\nexport function isPercent(value: string | number | undefined): value is string {\n return isString(value) && value.endsWith('%')\n}\n\n/** Checks for a 'px' suffix without validating the numeric value. */\nexport function isPx(value: string | number | undefined): value is string {\n return isString(value) && value.endsWith('px')\n}\n"],"mappings":";;;;;;;AASA,MAAM,QAAQ;AAEd,MAAa,oBAAoB,MAAM,OACrC,IAAI,MAAM,GAAG,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,KAAK,KAAK,CAAC;AAE/C,MAAa,YAAY,IAAa,QAAyB;CAC7D,IAAI,CAAC,MAAM,CAAC,KAAK,OAAO;CACxB,IAAI,IAAI,SAAS,GAAG,GAAG,MAAM,IAAI,MAAM,qCAAqC;CAC5E,OAAO,GAAG,UAAU,SAAS,GAAG;AAClC;AAEA,MAAa,YAAY,IAAa,QAAgB;CACpD,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,GAAG;CACxB,GAAG,UAAU,IAAI,GAAG,iBAAiB,GAAG,CAAC;AAC3C;AAEA,MAAa,eAAe,IAAa,QAAgB;CACvD,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,GAAG;CACxB,GAAG,UAAU,OAAO,GAAG,iBAAiB,GAAG,CAAC;AAC9C;AAEA,MAAa,YACX,SACA,cACW;CACX,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,aAAa,aAAa,OAAO,GAAG,OAAO;CAEzE,IAAI,MAAM,SAAS,SAAS;CAC5B,IAAI,QAAQ,SAAS,MAAM;CAC3B,IAAI;EACF,MAAM,QAAS,QAAQ,MAAc;EACrC,IAAI,OAAO,OAAO;EAClB,MAAM,WAAgB,SAAS,aAAa,iBAAiB,SAAS,EAAE;EACxE,OAAO,WAAW,SAAS,OAAO;CACpC,QAAQ;EACN,OAAQ,QAAQ,MAAc;CAChC;AACF;AAEA,MAAa,YACX,SACA,WACA,UACG;CACH,IAAI,CAAC,WAAW,CAAC,WAAW;CAE5B,IAAI,SAAS,SAAS,GACpB,UAAU,SAAS,CAAC,CAAC,SAAS,CAAC,MAAM,WACnC,SAAS,SAAS,MAAM,KAAK,CAC/B;MACK;EACL,MAAM,MAAW,SAAS,SAAS;EACnC,QAAQ,MAAM,OAAO;CACvB;AACF;AAEA,MAAa,eACX,SACA,UACG;CACH,IAAI,CAAC,WAAW,CAAC,OAAO;CAExB,IAAI,SAAS,KAAK,GAChB,OAAO,KAAK,CAAC,CAAC,SAAS,SAAS,YAAY,SAAS,IAAI,CAAC;MAE1D,SAAS,SAAS,OAAO,EAAE;AAE/B;AAEA,SAAgB,QAAQ,OAAyB,cAAc,MAAM;CACnE,IAAI,CAAC,SAAS,UAAU,GAAG,OAAO;CAClC,IAAI,SAAS,KAAK,KAAK,eAAe,KAAK,GACzC,OAAO,GAAG,QAAQ;MACb,IAAI,SAAS,KAAK,GACvB,OAAO;CAET,UAAU,OAAO,0CAA0C;AAC7D;;AAGA,SAAgB,eAAe,OAAe;CAC5C,OAAO,OAAO,MAAM,MAAM,GAAG,EAAE,CAAC,IAAI;AACtC;;AAGA,SAAgB,QAAQ,OAAe;CACrC,OAAO,OAAO,MAAM,MAAM,GAAG,EAAE,CAAC;AAClC;;AAGA,SAAgB,UAAU,OAAqD;CAC7E,OAAO,SAAS,KAAK,KAAK,MAAM,SAAS,GAAG;AAC9C;;AAGA,SAAgB,KAAK,OAAqD;CACxE,OAAO,SAAS,KAAK,KAAK,MAAM,SAAS,IAAI;AAC/C"}
|
package/es/utils/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { focusElement, focusNode, getSibling, isFocusable, isLeaf, isShadowRoot,
|
|
|
2
2
|
import { composeEventHandlers, getEventCode, getEventKey, whenMouse } from "./dom/event.js";
|
|
3
3
|
import { getClientXY, getOffsetTop, getOffsetTopDistance, isInContainer } from "./dom/position.js";
|
|
4
4
|
import { animateScrollTo, getScrollBarWidth, getScrollContainer, getScrollElement, getScrollTop, isScroll, scrollIntoView } from "./dom/scroll.js";
|
|
5
|
-
import { addClass, addUnit, classNameToArray, getStyle, hasClass, removeClass, removeStyle, setStyle } from "./dom/style.js";
|
|
5
|
+
import { addClass, addUnit, classNameToArray, getStyle, hasClass, isPercent, isPx, parsePx, percentToRatio, removeClass, removeStyle, setStyle } from "./dom/style.js";
|
|
6
6
|
import { getElement } from "./dom/element.js";
|
|
7
7
|
import { changeGlobalNodesTarget, createGlobalNode, removeGlobalNode } from "./vue/global-node.js";
|
|
8
8
|
import { CloseComponents, IconComponent, IconPropType, TypeComponents, TypeComponentsMap, ValidateComponentsMap, iconPropType } from "./vue/icon.js";
|
|
@@ -29,4 +29,4 @@ import { AlignItems, Arrayable, Awaitable, CSSProperties, ClassValue, FieldPath,
|
|
|
29
29
|
import { throttleByRaf } from "./throttleByRaf.js";
|
|
30
30
|
import { easeInOutCubic } from "./easings.js";
|
|
31
31
|
import { isGreaterThan } from "./numbers.js";
|
|
32
|
-
export { AlignItems, Arrayable, Awaitable, CSSProperties, ClassValue, CloseComponents, EmitFn, EpProp, EpPropConvert, EpPropFinalized, EpPropInput, EpPropInputDefault, EpPropMergeType, ExtractPropType, FieldPath, FlattenVNodes, HTMLElementCustomized, IconComponent, IconPropType, IfEpProp, IfNativePropType, IfNever, IfUnknown, Mutable, NOOP, NativePropType, Nullable, ObjectFit, PatchFlags, RawSlots, ResolvePropType, SFCInstallWithContext, SFCWithInstall, SFCWithPropsDefaultsSetter, TypeComponents, TypeComponentsMap, UnknownToNever, VNodeChildAtom, ValidateComponentsMap, Writable, WritableArray, ZIndexType, addClass, addUnit, animateScrollTo, buildProp, buildProps, cAF, camelize, capitalize, castArray, changeGlobalNodesTarget, classNameToArray, composeEventHandlers, composeRefs, createGlobalNode, debugWarn, definePropType, easeInOutCubic, ensureArray, entriesOf, epPropKey, escapeStringRegexp, extractFirst, flattedChildren, focusElement, focusNode, generateId, getClientXY, getComponentSize, getElement, getEventCode, getEventKey, getFirstValidNode, getNormalizedProps, getOffsetTop, getOffsetTopDistance, getProp, getRandomInt, getScrollBarWidth, getScrollContainer, getScrollElement, getScrollTop, getSibling, getStyle, hasClass, hasOwn, hyphenate, iconPropType, isAndroid, isArray, isBoolean, isClient, isComment, isDate, isElement, isEmpty, isEpProp, isFirefox, isFocusable, isFragment, isFunction, isGreaterThan, isIOS, isInContainer, isKorean, isLeaf, isNumber, isObject, isPlainObject, isPromise, isPropAbsent, isScroll, isShadowRoot, isString, isStringNumber, isSymbol, isTemplate, isText, isUndefined, isValidComponentSize, isValidDatePickType, isValidElementNode, isVisible, isWindow, kebabCase, keysOf, mutable, obtainAllFocusableElements, rAF, removeClass, removeGlobalNode, removeStyle, renderBlock, renderIf, scrollIntoView, setStyle, throttleByRaf, throwError, toRawType, triggerEvent, unique, whenMouse, withInstall, withInstallDirective, withInstallFunction, withNoopInstall, withPropsDefaultsSetter };
|
|
32
|
+
export { AlignItems, Arrayable, Awaitable, CSSProperties, ClassValue, CloseComponents, EmitFn, EpProp, EpPropConvert, EpPropFinalized, EpPropInput, EpPropInputDefault, EpPropMergeType, ExtractPropType, FieldPath, FlattenVNodes, HTMLElementCustomized, IconComponent, IconPropType, IfEpProp, IfNativePropType, IfNever, IfUnknown, Mutable, NOOP, NativePropType, Nullable, ObjectFit, PatchFlags, RawSlots, ResolvePropType, SFCInstallWithContext, SFCWithInstall, SFCWithPropsDefaultsSetter, TypeComponents, TypeComponentsMap, UnknownToNever, VNodeChildAtom, ValidateComponentsMap, Writable, WritableArray, ZIndexType, addClass, addUnit, animateScrollTo, buildProp, buildProps, cAF, camelize, capitalize, castArray, changeGlobalNodesTarget, classNameToArray, composeEventHandlers, composeRefs, createGlobalNode, debugWarn, definePropType, easeInOutCubic, ensureArray, entriesOf, epPropKey, escapeStringRegexp, extractFirst, flattedChildren, focusElement, focusNode, generateId, getClientXY, getComponentSize, getElement, getEventCode, getEventKey, getFirstValidNode, getNormalizedProps, getOffsetTop, getOffsetTopDistance, getProp, getRandomInt, getScrollBarWidth, getScrollContainer, getScrollElement, getScrollTop, getSibling, getStyle, hasClass, hasOwn, hyphenate, iconPropType, isAndroid, isArray, isBoolean, isClient, isComment, isDate, isElement, isEmpty, isEpProp, isFirefox, isFocusable, isFragment, isFunction, isGreaterThan, isIOS, isInContainer, isKorean, isLeaf, isNumber, isObject, isPercent, isPlainObject, isPromise, isPropAbsent, isPx, isScroll, isShadowRoot, isString, isStringNumber, isSymbol, isTemplate, isText, isUndefined, isValidComponentSize, isValidDatePickType, isValidElementNode, isVisible, isWindow, kebabCase, keysOf, mutable, obtainAllFocusableElements, parsePx, percentToRatio, rAF, removeClass, removeGlobalNode, removeStyle, renderBlock, renderIf, scrollIntoView, setStyle, throttleByRaf, throwError, toRawType, triggerEvent, unique, whenMouse, withInstall, withInstallDirective, withInstallFunction, withNoopInstall, withPropsDefaultsSetter };
|
package/es/utils/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { cAF, rAF } from "./raf.mjs";
|
|
|
8
8
|
import { camelize, capitalize, escapeStringRegexp, hyphenate, kebabCase } from "./strings.mjs";
|
|
9
9
|
import { entriesOf, getProp, hasOwn, keysOf } from "./objects.mjs";
|
|
10
10
|
import { debugWarn, throwError } from "./error.mjs";
|
|
11
|
-
import { addClass, addUnit, classNameToArray, getStyle, hasClass, removeClass, removeStyle, setStyle } from "./dom/style.mjs";
|
|
11
|
+
import { addClass, addUnit, classNameToArray, getStyle, hasClass, isPercent, isPx, parsePx, percentToRatio, removeClass, removeStyle, setStyle } from "./dom/style.mjs";
|
|
12
12
|
import { animateScrollTo, getScrollBarWidth, getScrollContainer, getScrollElement, getScrollTop, isScroll, scrollIntoView } from "./dom/scroll.mjs";
|
|
13
13
|
import { getElement } from "./dom/element.mjs";
|
|
14
14
|
import { changeGlobalNodesTarget, createGlobalNode, removeGlobalNode } from "./vue/global-node.mjs";
|
|
@@ -26,4 +26,4 @@ import { generateId, getRandomInt } from "./rand.mjs";
|
|
|
26
26
|
import { mutable } from "./typescript.mjs";
|
|
27
27
|
import { throttleByRaf } from "./throttleByRaf.mjs";
|
|
28
28
|
import { isGreaterThan } from "./numbers.mjs";
|
|
29
|
-
export { CloseComponents, NOOP, PatchFlags, TypeComponents, TypeComponentsMap, ValidateComponentsMap, addClass, addUnit, animateScrollTo, buildProp, buildProps, cAF, camelize, capitalize, castArray, changeGlobalNodesTarget, classNameToArray, composeEventHandlers, composeRefs, createGlobalNode, debugWarn, definePropType, easeInOutCubic, ensureArray, entriesOf, epPropKey, escapeStringRegexp, extractFirst, flattedChildren, focusElement, focusNode, generateId, getClientXY, getComponentSize, getElement, getEventCode, getEventKey, getFirstValidNode, getNormalizedProps, getOffsetTop, getOffsetTopDistance, getProp, getRandomInt, getScrollBarWidth, getScrollContainer, getScrollElement, getScrollTop, getSibling, getStyle, hasClass, hasOwn, hyphenate, iconPropType, isAndroid, isArray, isBoolean, isClient, isComment, isDate, isElement, isEmpty, isEpProp, isFirefox, isFocusable, isFragment, isFunction, isGreaterThan, isIOS, isInContainer, isKorean, isLeaf, isNumber, isObject, isPlainObject, isPromise, isPropAbsent, isScroll, isShadowRoot, isString, isStringNumber, isSymbol, isTemplate, isText, isUndefined, isValidComponentSize, isValidDatePickType, isValidElementNode, isVisible, isWindow, kebabCase, keysOf, mutable, obtainAllFocusableElements, rAF, removeClass, removeGlobalNode, removeStyle, renderBlock, renderIf, scrollIntoView, setStyle, throttleByRaf, throwError, toRawType, triggerEvent, unique, whenMouse, withInstall, withInstallDirective, withInstallFunction, withNoopInstall, withPropsDefaultsSetter };
|
|
29
|
+
export { CloseComponents, NOOP, PatchFlags, TypeComponents, TypeComponentsMap, ValidateComponentsMap, addClass, addUnit, animateScrollTo, buildProp, buildProps, cAF, camelize, capitalize, castArray, changeGlobalNodesTarget, classNameToArray, composeEventHandlers, composeRefs, createGlobalNode, debugWarn, definePropType, easeInOutCubic, ensureArray, entriesOf, epPropKey, escapeStringRegexp, extractFirst, flattedChildren, focusElement, focusNode, generateId, getClientXY, getComponentSize, getElement, getEventCode, getEventKey, getFirstValidNode, getNormalizedProps, getOffsetTop, getOffsetTopDistance, getProp, getRandomInt, getScrollBarWidth, getScrollContainer, getScrollElement, getScrollTop, getSibling, getStyle, hasClass, hasOwn, hyphenate, iconPropType, isAndroid, isArray, isBoolean, isClient, isComment, isDate, isElement, isEmpty, isEpProp, isFirefox, isFocusable, isFragment, isFunction, isGreaterThan, isIOS, isInContainer, isKorean, isLeaf, isNumber, isObject, isPercent, isPlainObject, isPromise, isPropAbsent, isPx, isScroll, isShadowRoot, isString, isStringNumber, isSymbol, isTemplate, isText, isUndefined, isValidComponentSize, isValidDatePickType, isValidElementNode, isVisible, isWindow, kebabCase, keysOf, mutable, obtainAllFocusableElements, parsePx, percentToRatio, rAF, removeClass, removeGlobalNode, removeStyle, renderBlock, renderIf, scrollIntoView, setStyle, throttleByRaf, throwError, toRawType, triggerEvent, unique, whenMouse, withInstall, withInstallDirective, withInstallFunction, withNoopInstall, withPropsDefaultsSetter };
|
package/es/utils/vue/size.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentSize } from "../../constants/size.js";
|
|
2
2
|
|
|
3
3
|
//#region ../../packages/utils/vue/size.d.ts
|
|
4
|
-
declare const getComponentSize: (size?: ComponentSize) => 40 |
|
|
4
|
+
declare const getComponentSize: (size?: ComponentSize) => 40 | 32 | 24;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { getComponentSize };
|
package/es/utils/vue/vnode.d.ts
CHANGED
|
@@ -33,12 +33,12 @@ declare function isTemplate(node: unknown): node is VNode;
|
|
|
33
33
|
*/
|
|
34
34
|
declare function isValidElementNode(node: VNode): boolean;
|
|
35
35
|
declare function isValidElementNode(node: unknown): node is VNode;
|
|
36
|
-
declare const getFirstValidNode: (nodes: VNodeNormalizedChildren, maxDepth?: number) => string | number | boolean | void |
|
|
37
|
-
[key: string]: any;
|
|
38
|
-
}> | _$vue.VNodeArrayChildren | {
|
|
36
|
+
declare const getFirstValidNode: (nodes: VNodeNormalizedChildren, maxDepth?: number) => string | number | boolean | void | _$vue.VNodeArrayChildren | {
|
|
39
37
|
[name: string]: unknown;
|
|
40
38
|
$stable?: boolean;
|
|
41
|
-
} |
|
|
39
|
+
} | VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}> | null | undefined;
|
|
42
42
|
declare function renderIf(condition: boolean, ...args: Parameters<typeof createBlock>): VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
43
43
|
[key: string]: any;
|
|
44
44
|
}>;
|
package/es/version.d.ts
CHANGED
package/es/version.mjs
CHANGED
package/es/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","names":[],"sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version.mjs","names":[],"sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20261022'\n"],"mappings":";AAAA,MAAa,UAAU"}
|
|
@@ -11,23 +11,23 @@ declare const __VLS_base: _$vue.DefineComponent<AffixProps, {
|
|
|
11
11
|
/** @description update affix status */update: () => void; /** @description update rootRect info */
|
|
12
12
|
updateRoot: () => Promise<void>;
|
|
13
13
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
14
|
+
change: (fixed: boolean) => void;
|
|
14
15
|
scroll: (args_0: {
|
|
15
16
|
scrollTop: number;
|
|
16
17
|
fixed: boolean;
|
|
17
18
|
}) => void;
|
|
18
|
-
change: (fixed: boolean) => void;
|
|
19
19
|
}, string, _$vue.PublicProps, Readonly<AffixProps> & Readonly<{
|
|
20
|
+
onChange?: ((fixed: boolean) => any) | undefined;
|
|
20
21
|
onScroll?: ((args_0: {
|
|
21
22
|
scrollTop: number;
|
|
22
23
|
fixed: boolean;
|
|
23
24
|
}) => any) | undefined;
|
|
24
|
-
onChange?: ((fixed: boolean) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
-
position: "top" | "bottom";
|
|
27
26
|
zIndex: _$csstype.Property.ZIndex;
|
|
28
|
-
offset: number;
|
|
29
27
|
appendTo: string | HTMLElement;
|
|
30
28
|
target: string;
|
|
29
|
+
offset: number;
|
|
30
|
+
position: "top" | "bottom";
|
|
31
31
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
32
32
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
|
@@ -44,12 +44,12 @@ interface AlertProps {
|
|
|
44
44
|
declare const alertProps: {
|
|
45
45
|
readonly title: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
46
46
|
readonly description: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
47
|
-
readonly type: EpPropFinalized<StringConstructor, "
|
|
47
|
+
readonly type: EpPropFinalized<StringConstructor, "primary" | "success" | "warning" | "error" | "info", unknown, "info", boolean>;
|
|
48
48
|
readonly closable: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
49
49
|
readonly closeText: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
50
50
|
readonly showIcon: BooleanConstructor;
|
|
51
51
|
readonly center: BooleanConstructor;
|
|
52
|
-
readonly effect: EpPropFinalized<StringConstructor, "
|
|
52
|
+
readonly effect: EpPropFinalized<StringConstructor, "light" | "dark", unknown, "light", boolean>;
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
55
|
* @deprecated Removed after 3.0.0, Use `AlertProps` instead.
|
|
@@ -15,12 +15,12 @@ declare const __VLS_base: _$vue.DefineComponent<AlertProps, {}, {}, {}, {}, _$vu
|
|
|
15
15
|
}, string, _$vue.PublicProps, Readonly<AlertProps> & Readonly<{
|
|
16
16
|
onClose?: ((evt: MouseEvent) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
type: "
|
|
19
|
-
effect: "dark" | "light";
|
|
18
|
+
type: "primary" | "success" | "warning" | "error" | "info";
|
|
20
19
|
title: string;
|
|
21
|
-
closable: boolean;
|
|
22
20
|
description: string;
|
|
21
|
+
closable: boolean;
|
|
23
22
|
closeText: string;
|
|
23
|
+
effect: "light" | "dark";
|
|
24
24
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -43,7 +43,7 @@ interface AnchorProps {
|
|
|
43
43
|
*/
|
|
44
44
|
declare const anchorProps: {
|
|
45
45
|
container: {
|
|
46
|
-
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string |
|
|
46
|
+
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string | HTMLElement | Window) | (() => string | HTMLElement | Window | null) | (((new (...args: any[]) => string | HTMLElement | Window) | (() => string | HTMLElement | Window | null)) | null)[], unknown, unknown>>;
|
|
47
47
|
readonly required: false;
|
|
48
48
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
49
49
|
__epPropKey: true;
|
|
@@ -9,18 +9,18 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
declare const __VLS_base: _$vue.DefineComponent<AnchorProps, {
|
|
10
10
|
scrollTo: (href?: string) => void;
|
|
11
11
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
12
|
-
click: (e: MouseEvent, href?: string | undefined) => void;
|
|
13
12
|
change: (href: string) => void;
|
|
13
|
+
click: (e: MouseEvent, href?: string | undefined) => void;
|
|
14
14
|
}, string, _$vue.PublicProps, Readonly<AnchorProps> & Readonly<{
|
|
15
|
-
onClick?: ((e: MouseEvent, href?: string | undefined) => any) | undefined;
|
|
16
15
|
onChange?: ((href: string) => any) | undefined;
|
|
16
|
+
onClick?: ((e: MouseEvent, href?: string | undefined) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
type: "default" | "underline";
|
|
19
|
+
offset: number;
|
|
19
20
|
direction: "horizontal" | "vertical";
|
|
20
21
|
marker: boolean;
|
|
21
|
-
offset: number;
|
|
22
|
-
bound: number;
|
|
23
22
|
duration: number;
|
|
23
|
+
bound: number;
|
|
24
24
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -91,7 +91,7 @@ declare const autocompleteProps: {
|
|
|
91
91
|
readonly valueKey: EpPropFinalized<StringConstructor, unknown, unknown, "value", boolean>;
|
|
92
92
|
readonly modelValue: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
93
93
|
readonly debounce: EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
94
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) => "
|
|
94
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => "top" | "left" | "right" | "auto" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "top" | "left" | "right" | "auto" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end", unknown, "bottom-start", boolean>;
|
|
95
95
|
readonly fetchSuggestions: EpPropFinalized<(new (...args: any[]) => ((queryString: string, cb: AutocompleteFetchSuggestionsCallback<AutocompleteDataItem>) => Awaitable<void | AutocompleteData<AutocompleteDataItem>>) | AutocompleteData<AutocompleteDataItem>) | (() => AutocompleteFetchSuggestions<AutocompleteDataItem>) | (((new (...args: any[]) => ((queryString: string, cb: AutocompleteFetchSuggestionsCallback<AutocompleteDataItem>) => Awaitable<void | AutocompleteData<AutocompleteDataItem>>) | AutocompleteData<AutocompleteDataItem>) | (() => AutocompleteFetchSuggestions<AutocompleteDataItem>)) | null)[], unknown, unknown, () => void, boolean>;
|
|
96
96
|
readonly popperClass: EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
97
97
|
readonly popperStyle: EpPropFinalized<(new (...args: any[]) => string | false | _$vue.CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue) | (((new (...args: any[]) => string | false | _$vue.CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
@@ -110,12 +110,12 @@ declare const autocompleteProps: {
|
|
|
110
110
|
readonly highlightFirstItem: BooleanConstructor;
|
|
111
111
|
readonly fitInputWidth: BooleanConstructor;
|
|
112
112
|
readonly loopNavigation: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
113
|
-
readonly inputmode: EpPropFinalized<(new (...args: any[]) => "none" | "
|
|
113
|
+
readonly inputmode: EpPropFinalized<(new (...args: any[]) => "none" | "search" | "text" | "email" | "tel" | "url" | "numeric" | "decimal") | (() => "none" | "search" | "text" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined) | (((new (...args: any[]) => "none" | "search" | "text" | "email" | "tel" | "url" | "numeric" | "decimal") | (() => "none" | "search" | "text" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined)) | null)[], unknown, unknown, undefined, boolean>;
|
|
114
114
|
readonly name: StringConstructor;
|
|
115
115
|
readonly ariaLabel: StringConstructor;
|
|
116
116
|
readonly id: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
117
117
|
readonly size: {
|
|
118
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
118
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
119
119
|
readonly required: false;
|
|
120
120
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
121
121
|
__epPropKey: true;
|
|
@@ -136,7 +136,7 @@ declare const autocompleteProps: {
|
|
|
136
136
|
};
|
|
137
137
|
readonly type: EpPropFinalized<(new (...args: any[]) => string) | (() => InputType) | (((new (...args: any[]) => string) | (() => InputType)) | null)[], unknown, unknown, "text", boolean>;
|
|
138
138
|
readonly resize: {
|
|
139
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "
|
|
139
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "none" | "horizontal" | "vertical" | "both", unknown>>;
|
|
140
140
|
readonly required: false;
|
|
141
141
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
142
142
|
__epPropKey: true;
|
|
@@ -7,12 +7,12 @@ import { Ref } from "vue";
|
|
|
7
7
|
//#region ../../packages/components/autocomplete/src/autocomplete.vue.d.ts
|
|
8
8
|
declare const __VLS_export: <T extends AutocompleteDataItem = AutocompleteDataItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
9
9
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<AutocompleteProps<T> & {
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
10
11
|
onClear?: (() => any) | undefined;
|
|
11
|
-
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
12
|
-
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
13
12
|
onChange?: ((value: string | number) => any) | undefined;
|
|
14
|
-
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
15
13
|
onInput?: ((value: string | number) => any) | undefined;
|
|
14
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
15
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
16
16
|
onSelect?: ((item: Record<string, any>) => any) | undefined;
|
|
17
17
|
}> & (typeof globalThis extends {
|
|
18
18
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -52,7 +52,7 @@ declare const __VLS_export: <T extends AutocompleteDataItem = AutocompleteDataIt
|
|
|
52
52
|
} & {
|
|
53
53
|
footer?: (props: {}) => any;
|
|
54
54
|
};
|
|
55
|
-
emit: ((event: "
|
|
55
|
+
emit: ((event: "update:modelValue", value: string | number) => void) & ((event: "clear") => void) & ((event: "change", value: string | number) => void) & ((event: "input", value: string | number) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "select", item: Record<string, any>) => void);
|
|
56
56
|
}>) => _$vue.VNode & {
|
|
57
57
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
58
58
|
};
|
|
@@ -11,7 +11,7 @@ declare const avatarGroupProps: {
|
|
|
11
11
|
* @description control the size of avatars in this avatar-group
|
|
12
12
|
*/
|
|
13
13
|
readonly size: {
|
|
14
|
-
readonly type: _$vue.PropType<number | "" | "default" | "
|
|
14
|
+
readonly type: _$vue.PropType<number | "" | "default" | "small" | "large" | undefined>;
|
|
15
15
|
readonly values: readonly ["", "default", "small", "large"];
|
|
16
16
|
readonly validator: (val: unknown) => val is number;
|
|
17
17
|
};
|
|
@@ -8,7 +8,7 @@ import * as _$vue_jsx_runtime0 from "vue/jsx-runtime";
|
|
|
8
8
|
//#region ../../packages/components/avatar/src/avatar-group.d.ts
|
|
9
9
|
declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
10
10
|
readonly size: {
|
|
11
|
-
readonly type: _$vue.PropType<number | "" | "default" | "
|
|
11
|
+
readonly type: _$vue.PropType<number | "" | "default" | "small" | "large" | undefined>;
|
|
12
12
|
readonly values: readonly ["", "default", "small", "large"];
|
|
13
13
|
readonly validator: (val: unknown) => val is number;
|
|
14
14
|
};
|
|
@@ -43,7 +43,7 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
43
43
|
};
|
|
44
44
|
}>, () => _$vue_jsx_runtime0.JSX.Element, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
|
45
45
|
readonly size: {
|
|
46
|
-
readonly type: _$vue.PropType<number | "" | "default" | "
|
|
46
|
+
readonly type: _$vue.PropType<number | "" | "default" | "small" | "large" | undefined>;
|
|
47
47
|
readonly values: readonly ["", "default", "small", "large"];
|
|
48
48
|
readonly validator: (val: unknown) => val is number;
|
|
49
49
|
};
|
|
@@ -77,10 +77,10 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
77
77
|
readonly default: undefined;
|
|
78
78
|
};
|
|
79
79
|
}>> & Readonly<{}>, {
|
|
80
|
-
readonly placement: Placement;
|
|
81
80
|
readonly effect: PopperEffect;
|
|
82
81
|
readonly popperClass: ClassValue;
|
|
83
82
|
readonly popperStyle: _$vue.StyleValue;
|
|
83
|
+
readonly placement: Placement;
|
|
84
84
|
readonly collapseAvatars: boolean;
|
|
85
85
|
readonly collapseAvatarsTooltip: boolean;
|
|
86
86
|
readonly maxCollapseAvatars: number;
|
|
@@ -42,7 +42,7 @@ interface AvatarProps {
|
|
|
42
42
|
*/
|
|
43
43
|
declare const avatarProps: {
|
|
44
44
|
readonly size: {
|
|
45
|
-
readonly type: _$vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], "" | "default" | "
|
|
45
|
+
readonly type: _$vue.PropType<EpPropMergeType<readonly [NumberConstructor, StringConstructor], "" | "default" | "small" | "large", number>>;
|
|
46
46
|
readonly required: false;
|
|
47
47
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
48
48
|
__epPropKey: true;
|
|
@@ -62,7 +62,7 @@ declare const avatarProps: {
|
|
|
62
62
|
readonly src: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
63
63
|
readonly alt: StringConstructor;
|
|
64
64
|
readonly srcSet: StringConstructor;
|
|
65
|
-
readonly fit: EpPropFinalized<(new (...args: any[]) => "
|
|
65
|
+
readonly fit: EpPropFinalized<(new (...args: any[]) => "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "none" | "fill" | "contain" | "cover" | "scale-down") | (() => _$csstype.Property.ObjectFit | undefined) | (((new (...args: any[]) => "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "none" | "fill" | "contain" | "cover" | "scale-down") | (() => _$csstype.Property.ObjectFit | undefined)) | null)[], unknown, unknown, "cover", boolean>;
|
|
66
66
|
};
|
|
67
67
|
/**
|
|
68
68
|
* @deprecated Removed after 3.0.0, Use `AvatarProps` instead.
|
|
@@ -12,9 +12,9 @@ declare const __VLS_base: _$vue.DefineComponent<BacktopProps, {}, {}, {}, {}, _$
|
|
|
12
12
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
14
|
right: number;
|
|
15
|
+
target: string;
|
|
15
16
|
bottom: number;
|
|
16
17
|
visibilityHeight: number;
|
|
17
|
-
target: string;
|
|
18
18
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -54,7 +54,7 @@ declare const badgeProps: {
|
|
|
54
54
|
readonly max: EpPropFinalized<NumberConstructor, unknown, unknown, 99, boolean>;
|
|
55
55
|
readonly isDot: BooleanConstructor;
|
|
56
56
|
readonly hidden: BooleanConstructor;
|
|
57
|
-
readonly type: EpPropFinalized<StringConstructor, "
|
|
57
|
+
readonly type: EpPropFinalized<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown, "danger", boolean>;
|
|
58
58
|
readonly showZero: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
59
59
|
readonly color: StringConstructor;
|
|
60
60
|
readonly badgeStyle: EpPropFinalized<(new (...args: any[]) => string | false | _$vue.CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | _$vue.CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
@@ -15,7 +15,7 @@ type __VLS_Slots = {} & {
|
|
|
15
15
|
declare const __VLS_base: _$vue.DefineComponent<BadgeProps, {
|
|
16
16
|
/** @description badge content */content: _$vue.ComputedRef<string>;
|
|
17
17
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
18
|
-
type: "
|
|
18
|
+
type: "primary" | "success" | "warning" | "info" | "danger";
|
|
19
19
|
offset: [number, number];
|
|
20
20
|
value: string | number;
|
|
21
21
|
max: number;
|
|
@@ -26,7 +26,7 @@ declare const buttonGroupProps: {
|
|
|
26
26
|
* @description control the size of buttons in this button-group
|
|
27
27
|
*/
|
|
28
28
|
readonly size: {
|
|
29
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
29
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
30
30
|
readonly required: false;
|
|
31
31
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
32
32
|
__epPropKey: true;
|
|
@@ -34,7 +34,7 @@ declare const buttonGroupProps: {
|
|
|
34
34
|
/**
|
|
35
35
|
* @description control the type of buttons in this button-group
|
|
36
36
|
*/
|
|
37
|
-
readonly type: EpPropFinalized<StringConstructor, "" | "default" | "
|
|
37
|
+
readonly type: EpPropFinalized<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger", unknown, "", boolean>;
|
|
38
38
|
/**
|
|
39
39
|
* @description display direction
|
|
40
40
|
*/
|
|
@@ -7,7 +7,7 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: _$vue.DefineComponent<ButtonGroupProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
|
|
10
|
-
type: "" | "default" | "
|
|
10
|
+
type: "" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger";
|
|
11
11
|
direction: "horizontal" | "vertical";
|
|
12
12
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -92,13 +92,13 @@ interface ButtonProps {
|
|
|
92
92
|
*/
|
|
93
93
|
declare const buttonProps: {
|
|
94
94
|
readonly size: {
|
|
95
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
95
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
96
96
|
readonly required: false;
|
|
97
97
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
98
98
|
__epPropKey: true;
|
|
99
99
|
};
|
|
100
100
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
101
|
-
readonly type: EpPropFinalized<StringConstructor, "" | "default" | "
|
|
101
|
+
readonly type: EpPropFinalized<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger", unknown, "", boolean>;
|
|
102
102
|
readonly icon: {
|
|
103
103
|
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>>;
|
|
104
104
|
readonly required: false;
|
|
@@ -13,8 +13,8 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_base: _$vue.DefineComponent<ButtonProps, {
|
|
15
15
|
/** @description button html element */ref: _$vue.Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>; /** @description button size */
|
|
16
|
-
size: _$vue.ComputedRef<"" | "default" | "
|
|
17
|
-
type: _$vue.ComputedRef<"default" | "" | "
|
|
16
|
+
size: _$vue.ComputedRef<"" | "default" | "small" | "large">; /** @description button type */
|
|
17
|
+
type: _$vue.ComputedRef<"default" | "" | "primary" | "success" | "warning" | "info" | "text" | "danger">; /** @description button disabled */
|
|
18
18
|
disabled: _$vue.ComputedRef<boolean>; /** @description whether adding space */
|
|
19
19
|
shouldAddSpace: _$vue.ComputedRef<boolean>;
|
|
20
20
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
@@ -22,16 +22,16 @@ declare const __VLS_base: _$vue.DefineComponent<ButtonProps, {
|
|
|
22
22
|
}, string, _$vue.PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
23
23
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
type: "" | "default" | "
|
|
25
|
+
type: "" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger";
|
|
26
|
+
disabled: boolean;
|
|
26
27
|
text: boolean;
|
|
27
28
|
round: boolean;
|
|
28
29
|
dashed: boolean;
|
|
29
|
-
disabled: boolean;
|
|
30
|
-
tag: string | _$vue.Component;
|
|
31
30
|
nativeType: "button" | "reset" | "submit";
|
|
32
31
|
loadingIcon: IconPropType;
|
|
33
32
|
plain: boolean;
|
|
34
33
|
autoInsertSpace: boolean;
|
|
34
|
+
tag: string | _$vue.Component;
|
|
35
35
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
36
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
37
|
declare const _default: typeof __VLS_export;
|
|
@@ -5,8 +5,8 @@ import { SetupContext } from "vue";
|
|
|
5
5
|
//#region ../../packages/components/button/src/use-button.d.ts
|
|
6
6
|
declare const useButton: (props: ButtonProps, emit: SetupContext<ButtonEmits>["emit"]) => {
|
|
7
7
|
_disabled: _$vue.ComputedRef<boolean>;
|
|
8
|
-
_size: _$vue.ComputedRef<"" | "default" | "
|
|
9
|
-
_type: _$vue.ComputedRef<"default" | "" | "
|
|
8
|
+
_size: _$vue.ComputedRef<"" | "default" | "small" | "large">;
|
|
9
|
+
_type: _$vue.ComputedRef<"default" | "" | "primary" | "success" | "warning" | "info" | "text" | "danger">;
|
|
10
10
|
_ref: _$vue.Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
11
11
|
_props: _$vue.ComputedRef<{
|
|
12
12
|
ariaDisabled: boolean | undefined;
|
|
@@ -13,11 +13,11 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_base: _$vue.DefineComponent<CardProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
15
15
|
headerClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
16
|
+
bodyClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
17
|
+
footerClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
16
18
|
header: string;
|
|
17
19
|
footer: string;
|
|
18
20
|
bodyStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
19
|
-
bodyClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
20
|
-
footerClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
21
21
|
shadow: "always" | "never" | "hover";
|
|
22
22
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -62,7 +62,7 @@ interface CarouselProps {
|
|
|
62
62
|
declare const carouselProps: {
|
|
63
63
|
readonly initialIndex: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
64
64
|
readonly height: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
65
|
-
readonly trigger: EpPropFinalized<StringConstructor, "
|
|
65
|
+
readonly trigger: EpPropFinalized<StringConstructor, "hover" | "click", unknown, "hover", boolean>;
|
|
66
66
|
readonly autoplay: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
67
67
|
readonly interval: EpPropFinalized<NumberConstructor, unknown, unknown, 3000, boolean>;
|
|
68
68
|
readonly indicatorPosition: EpPropFinalized<StringConstructor, "" | "none" | "outside", unknown, "", boolean>;
|
|
@@ -18,11 +18,11 @@ declare const __VLS_base: _$vue.DefineComponent<CarouselProps, {
|
|
|
18
18
|
}>, {
|
|
19
19
|
type: "" | "card";
|
|
20
20
|
height: string;
|
|
21
|
-
direction: "horizontal" | "vertical";
|
|
22
21
|
loop: boolean;
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
trigger: "hover" | "click";
|
|
23
|
+
direction: "horizontal" | "vertical";
|
|
25
24
|
arrow: "always" | "never" | "hover";
|
|
25
|
+
initialIndex: number;
|
|
26
26
|
autoplay: boolean;
|
|
27
27
|
interval: number;
|
|
28
28
|
indicatorPosition: "" | "none" | "outside";
|
|
@@ -139,7 +139,7 @@ declare const cascaderProps: {
|
|
|
139
139
|
emptyValues: ArrayConstructor;
|
|
140
140
|
valueOnClear: EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
141
141
|
size: {
|
|
142
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
142
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
143
143
|
readonly required: false;
|
|
144
144
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
145
145
|
__epPropKey: true;
|
|
@@ -179,7 +179,7 @@ declare const cascaderProps: {
|
|
|
179
179
|
new (): any;
|
|
180
180
|
readonly prototype: any;
|
|
181
181
|
}) | null)[], unknown, unknown, () => true, boolean>;
|
|
182
|
-
placement: EpPropFinalized<(new (...args: any[]) => "
|
|
182
|
+
placement: EpPropFinalized<(new (...args: any[]) => "top" | "left" | "right" | "auto" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "top" | "left" | "right" | "auto" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], Placement, unknown, string, boolean>;
|
|
183
183
|
fallbackPlacements: EpPropFinalized<(new (...args: any[]) => Placement[]) | (() => Placement[]) | (((new (...args: any[]) => Placement[]) | (() => Placement[])) | null)[], unknown, unknown, string[], boolean>;
|
|
184
184
|
popperClass: EpPropFinalized<(new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue) | (((new (...args: any[]) => string | false | Record<string, any> | ClassValue[]) | (() => ClassValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
185
185
|
popperStyle: EpPropFinalized<(new (...args: any[]) => string | false | _$vue.CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | _$vue.CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
@@ -187,14 +187,14 @@ declare const cascaderProps: {
|
|
|
187
187
|
effect: EpPropFinalized<(new (...args: any[]) => string) | (() => PopperEffect) | (((new (...args: any[]) => string) | (() => PopperEffect)) | null)[], unknown, unknown, string, boolean>;
|
|
188
188
|
tagType: {
|
|
189
189
|
default: string;
|
|
190
|
-
type: _$vue.PropType<EpPropMergeType<StringConstructor, "
|
|
190
|
+
type: _$vue.PropType<EpPropMergeType<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown>>;
|
|
191
191
|
required: false;
|
|
192
192
|
validator: ((val: unknown) => boolean) | undefined;
|
|
193
193
|
__epPropKey: true;
|
|
194
194
|
};
|
|
195
195
|
tagEffect: {
|
|
196
196
|
default: string;
|
|
197
|
-
type: _$vue.PropType<EpPropMergeType<StringConstructor, "
|
|
197
|
+
type: _$vue.PropType<EpPropMergeType<StringConstructor, "light" | "dark" | "plain", unknown>>;
|
|
198
198
|
required: false;
|
|
199
199
|
validator: ((val: unknown) => boolean) | undefined;
|
|
200
200
|
__epPropKey: true;
|