@element-plus/nightly 0.0.20261010 → 0.0.20261011
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +209 -39
- package/dist/index.full.min.js +8 -8
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +9 -9
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +209 -39
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/gl.js +1 -1
- package/dist/locale/gl.min.js +1 -1
- package/dist/locale/gl.min.mjs +1 -1
- package/dist/locale/gl.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +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/autocomplete/src/autocomplete.vue.d.ts +3 -3
- package/es/components/cascader/src/cascader.vue.d.ts +2 -2
- package/es/components/cascader-panel/src/index.vue.d.ts +2 -2
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +2 -2
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
- package/es/components/checkbox/src/checkbox.vue.d.ts +2 -2
- package/es/components/collapse/src/collapse.vue.d.ts +2 -2
- package/es/components/color-picker/src/color-picker.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +2 -2
- package/es/components/dialog/src/dialog.vue.d.ts +2 -2
- package/es/components/drawer/src/drawer.vue.d.ts +2 -2
- package/es/components/dropdown/src/dropdown.vue.d.ts +3 -0
- package/es/components/input/src/input.vue.d.ts +4 -4
- package/es/components/input-number/src/input-number.vue.d.ts +2 -2
- package/es/components/input-otp/src/input-otp.vue.d.ts +2 -2
- package/es/components/input-tag/src/input-tag.vue.d.ts +4 -4
- package/es/components/mention/src/mention.vue.d.ts +2 -2
- package/es/components/message-box/src/index.vue.d.ts +10 -10
- package/es/components/radio/src/radio-group.vue.d.ts +2 -2
- package/es/components/radio/src/radio.vue.d.ts +2 -2
- package/es/components/rate/src/rate.vue.d.ts +2 -2
- package/es/components/scrollbar/src/mask-utils.d.ts +5 -0
- package/es/components/scrollbar/src/mask-utils.mjs +34 -0
- package/es/components/scrollbar/src/mask-utils.mjs.map +1 -0
- package/es/components/scrollbar/src/mask.mjs +7 -0
- package/es/components/scrollbar/src/mask.mjs.map +1 -0
- package/es/components/scrollbar/src/mask.vue.d.ts +14 -0
- package/es/components/scrollbar/src/mask.vue_vue_type_script_setup_true_lang.mjs +113 -0
- package/es/components/scrollbar/src/mask.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/es/components/scrollbar/src/scrollbar.d.ts +6 -0
- package/es/components/scrollbar/src/scrollbar.mjs +15 -0
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +1 -0
- package/es/components/scrollbar/src/scrollbar.vue_vue_type_script_setup_true_lang.mjs +56 -38
- package/es/components/scrollbar/src/scrollbar.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/segmented/index.d.ts +3 -3
- package/es/components/segmented/src/segmented.vue.d.ts +2 -2
- package/es/components/select/src/select.vue.d.ts +4 -1
- package/es/components/select-v2/src/select.vue.d.ts +1 -1
- package/es/components/slider/src/slider.vue.d.ts +2 -2
- package/es/components/switch/src/switch.vue.d.ts +2 -2
- package/es/components/table/src/filter-panel.vue.d.ts +13 -10
- package/es/components/table/src/table-header/index.d.ts +5 -5
- package/es/components/time-picker/src/common/picker.vue.d.ts +2 -2
- package/es/components/time-select/src/time-select.vue.d.ts +2 -2
- package/es/components/tour/src/tour.vue.d.ts +2 -2
- package/es/components/transfer/src/transfer.vue.d.ts +2 -2
- package/es/components/tree/src/tree-node.vue.d.ts +5 -5
- package/es/components/tree/src/tree.vue.d.ts +5 -5
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
- package/lib/components/cascader/src/cascader.vue.d.ts +2 -2
- package/lib/components/cascader-panel/src/index.vue.d.ts +2 -2
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +2 -2
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
- package/lib/components/checkbox/src/checkbox.vue.d.ts +2 -2
- package/lib/components/collapse/src/collapse.vue.d.ts +2 -2
- package/lib/components/color-picker/src/color-picker.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +2 -2
- package/lib/components/dialog/src/dialog.vue.d.ts +2 -2
- package/lib/components/drawer/src/drawer.vue.d.ts +2 -2
- package/lib/components/dropdown/src/dropdown.vue.d.ts +3 -0
- package/lib/components/input/src/input.vue.d.ts +4 -4
- package/lib/components/input-number/src/input-number.vue.d.ts +2 -2
- package/lib/components/input-otp/src/input-otp.vue.d.ts +2 -2
- package/lib/components/input-tag/src/input-tag.vue.d.ts +4 -4
- package/lib/components/mention/src/mention.vue.d.ts +2 -2
- package/lib/components/message-box/src/index.vue.d.ts +10 -10
- package/lib/components/radio/src/radio-group.vue.d.ts +2 -2
- package/lib/components/radio/src/radio.vue.d.ts +2 -2
- package/lib/components/rate/src/rate.vue.d.ts +2 -2
- package/lib/components/scrollbar/src/mask-utils.d.ts +5 -0
- package/lib/components/scrollbar/src/mask-utils.js +35 -0
- package/lib/components/scrollbar/src/mask-utils.js.map +1 -0
- package/lib/components/scrollbar/src/mask.js +10 -0
- package/lib/components/scrollbar/src/mask.js.map +1 -0
- package/lib/components/scrollbar/src/mask.vue.d.ts +14 -0
- package/lib/components/scrollbar/src/mask.vue_vue_type_script_setup_true_lang.js +113 -0
- package/lib/components/scrollbar/src/mask.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/lib/components/scrollbar/src/scrollbar.d.ts +6 -0
- package/lib/components/scrollbar/src/scrollbar.js +15 -0
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +1 -0
- package/lib/components/scrollbar/src/scrollbar.vue_vue_type_script_setup_true_lang.js +55 -37
- package/lib/components/scrollbar/src/scrollbar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/segmented/index.d.ts +3 -3
- package/lib/components/segmented/src/segmented.vue.d.ts +2 -2
- package/lib/components/select/src/select.vue.d.ts +4 -1
- package/lib/components/select-v2/src/select.vue.d.ts +1 -1
- package/lib/components/slider/src/slider.vue.d.ts +2 -2
- package/lib/components/switch/src/switch.vue.d.ts +2 -2
- package/lib/components/table/src/filter-panel.vue.d.ts +13 -10
- package/lib/components/table/src/table-header/index.d.ts +5 -5
- package/lib/components/time-picker/src/common/picker.vue.d.ts +2 -2
- package/lib/components/time-select/src/time-select.vue.d.ts +2 -2
- package/lib/components/tour/src/tour.vue.d.ts +2 -2
- package/lib/components/transfer/src/transfer.vue.d.ts +2 -2
- package/lib/components/tree/src/tree-node.vue.d.ts +5 -5
- package/lib/components/tree/src/tree.vue.d.ts +5 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +3 -3
- package/tags.json +1 -1
- package/theme-chalk/el-scrollbar.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +8 -0
- package/theme-chalk/src/scrollbar.scss +65 -0
- package/web-types.json +1 -1
|
@@ -268,14 +268,14 @@ declare const __VLS_base: _$vue.DefineComponent<CascaderPanelProps, {
|
|
|
268
268
|
scrollToExpandingNode: () => void;
|
|
269
269
|
loadLazyRootNodes: () => void;
|
|
270
270
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
271
|
-
"update:modelValue": (value: CascaderValue | null | undefined) => void;
|
|
272
271
|
change: (value: CascaderValue | null | undefined) => void;
|
|
273
272
|
close: () => void;
|
|
273
|
+
"update:modelValue": (value: CascaderValue | null | undefined) => void;
|
|
274
274
|
"expand-change": (value: CascaderNodePathValue) => void;
|
|
275
275
|
}, string, _$vue.PublicProps, Readonly<CascaderPanelProps> & Readonly<{
|
|
276
|
-
"onUpdate:modelValue"?: ((value: CascaderValue | null | undefined) => any) | undefined;
|
|
277
276
|
onChange?: ((value: CascaderValue | null | undefined) => any) | undefined;
|
|
278
277
|
onClose?: (() => any) | undefined;
|
|
278
|
+
"onUpdate:modelValue"?: ((value: CascaderValue | null | undefined) => any) | undefined;
|
|
279
279
|
"onExpand-change"?: ((value: CascaderNodePathValue) => any) | undefined;
|
|
280
280
|
}>, {
|
|
281
281
|
props: CascaderProps;
|
|
@@ -7,11 +7,11 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: _$vue.DefineComponent<CheckboxProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
10
|
-
"update:modelValue": (val: CheckboxValueType) => void;
|
|
11
10
|
change: (val: CheckboxValueType) => void;
|
|
11
|
+
"update:modelValue": (val: CheckboxValueType) => void;
|
|
12
12
|
}, string, _$vue.PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
13
|
-
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
14
13
|
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
id: string;
|
|
17
17
|
disabled: boolean;
|
|
@@ -8,11 +8,11 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
default?: (props: typeof __VLS_7) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: _$vue.DefineComponent<CheckboxGroupProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
11
|
-
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
12
11
|
change: (val: CheckboxValueType[]) => void;
|
|
12
|
+
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
13
13
|
}, string, _$vue.PublicProps, Readonly<CheckboxGroupProps> & Readonly<{
|
|
14
|
-
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
15
14
|
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
type: "button" | "checkbox";
|
|
18
18
|
props: {
|
|
@@ -7,11 +7,11 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_9) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: _$vue.DefineComponent<CheckboxProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
10
|
-
"update:modelValue": (val: CheckboxValueType) => void;
|
|
11
10
|
change: (val: CheckboxValueType) => void;
|
|
11
|
+
"update:modelValue": (val: CheckboxValueType) => void;
|
|
12
12
|
}, string, _$vue.PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
13
|
-
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
14
13
|
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
id: string;
|
|
17
17
|
disabled: boolean;
|
|
@@ -10,11 +10,11 @@ declare const __VLS_base: _$vue.DefineComponent<CollapseProps, {
|
|
|
10
10
|
/** @description active names */activeNames: _$vue.Ref<(string | number)[], (string | number)[]>; /** @description set active names */
|
|
11
11
|
setActiveNames: (_activeNames: CollapseActiveName[]) => void;
|
|
12
12
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
13
|
-
"update:modelValue": (value: CollapseModelValue) => void;
|
|
14
13
|
change: (value: CollapseModelValue) => void;
|
|
14
|
+
"update:modelValue": (value: CollapseModelValue) => void;
|
|
15
15
|
}, string, _$vue.PublicProps, Readonly<CollapseProps> & Readonly<{
|
|
16
|
-
"onUpdate:modelValue"?: ((value: CollapseModelValue) => any) | undefined;
|
|
17
16
|
onChange?: ((value: CollapseModelValue) => any) | undefined;
|
|
17
|
+
"onUpdate:modelValue"?: ((value: CollapseModelValue) => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
19
|
modelValue: CollapseModelValue;
|
|
20
20
|
expandIconPosition: CollapseIconPositionType;
|
|
@@ -30,16 +30,16 @@ declare const __VLS_export: _$vue.DefineComponent<ColorPickerProps, {
|
|
|
30
30
|
*/
|
|
31
31
|
blur: typeof blur;
|
|
32
32
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
33
|
-
"update:modelValue": (val: string | null) => void;
|
|
34
33
|
change: (val: string | null) => void;
|
|
35
34
|
clear: () => void;
|
|
35
|
+
"update:modelValue": (val: string | null) => void;
|
|
36
36
|
focus: (evt: FocusEvent) => void;
|
|
37
37
|
blur: (evt: FocusEvent) => void;
|
|
38
38
|
activeChange: (val: string | null) => void;
|
|
39
39
|
}, string, _$vue.PublicProps, Readonly<ColorPickerProps> & Readonly<{
|
|
40
|
-
"onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
|
|
41
40
|
onChange?: ((val: string | null) => any) | undefined;
|
|
42
41
|
onClear?: (() => any) | undefined;
|
|
42
|
+
"onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
|
|
43
43
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
44
44
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
45
45
|
onActiveChange?: ((val: string | null) => any) | undefined;
|
|
@@ -65,7 +65,7 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
65
65
|
__epPropKey: true;
|
|
66
66
|
};
|
|
67
67
|
readonly isRange: BooleanConstructor;
|
|
68
|
-
}>, () => _$vue_jsx_runtime0.JSX.Element, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, ("
|
|
68
|
+
}>, () => _$vue_jsx_runtime0.JSX.Element, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, ("clear" | "update:modelValue" | "calendar-change" | "panel-change" | "visible-change")[], "clear" | "update:modelValue" | "calendar-change" | "panel-change" | "visible-change", _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
|
69
69
|
readonly disabledDate: {
|
|
70
70
|
readonly type: _$vue.PropType<Function>;
|
|
71
71
|
readonly required: false;
|
|
@@ -126,8 +126,8 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
126
126
|
};
|
|
127
127
|
readonly isRange: BooleanConstructor;
|
|
128
128
|
}>> & Readonly<{
|
|
129
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
130
129
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
130
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
131
131
|
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
132
132
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
133
133
|
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -23,16 +23,16 @@ declare const __VLS_base: _$vue.DefineComponent<DialogProps, {
|
|
|
23
23
|
resetPosition: () => void;
|
|
24
24
|
handleClose: () => void;
|
|
25
25
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
26
|
-
"update:modelValue": (value: boolean) => void;
|
|
27
26
|
close: () => void;
|
|
27
|
+
"update:modelValue": (value: boolean) => void;
|
|
28
28
|
open: () => void;
|
|
29
29
|
opened: () => void;
|
|
30
30
|
closed: () => void;
|
|
31
31
|
openAutoFocus: () => void;
|
|
32
32
|
closeAutoFocus: () => void;
|
|
33
33
|
}, string, _$vue.PublicProps, Readonly<DialogProps> & Readonly<{
|
|
34
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
35
34
|
onClose?: (() => any) | undefined;
|
|
35
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
36
36
|
onOpen?: (() => any) | undefined;
|
|
37
37
|
onOpened?: (() => any) | undefined;
|
|
38
38
|
onClosed?: (() => any) | undefined;
|
|
@@ -21,8 +21,8 @@ type __VLS_Slots = {} & {
|
|
|
21
21
|
declare const __VLS_base: _$vue.DefineComponent<DrawerProps, {
|
|
22
22
|
handleClose: () => void;
|
|
23
23
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
24
|
-
"update:modelValue": (value: boolean) => void;
|
|
25
24
|
close: () => void;
|
|
25
|
+
"update:modelValue": (value: boolean) => void;
|
|
26
26
|
resize: (evt: MouseEvent, size: number) => void;
|
|
27
27
|
open: () => void;
|
|
28
28
|
opened: () => void;
|
|
@@ -32,8 +32,8 @@ declare const __VLS_base: _$vue.DefineComponent<DrawerProps, {
|
|
|
32
32
|
"resize-start": (evt: MouseEvent, size: number) => void;
|
|
33
33
|
"resize-end": (evt: MouseEvent, size: number) => void;
|
|
34
34
|
}, string, _$vue.PublicProps, Readonly<DrawerProps> & Readonly<{
|
|
35
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
36
35
|
onClose?: (() => any) | undefined;
|
|
36
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
37
37
|
onResize?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
38
38
|
onOpen?: (() => any) | undefined;
|
|
39
39
|
onOpened?: (() => any) | undefined;
|
|
@@ -374,6 +374,7 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
374
374
|
}, _$vue.PublicProps, {
|
|
375
375
|
tabindex: string | number;
|
|
376
376
|
height: string | number;
|
|
377
|
+
mask: boolean | ScrollbarDirection;
|
|
377
378
|
maxHeight: string | number;
|
|
378
379
|
tag: (string & {}) | keyof HTMLElementTagNameMap;
|
|
379
380
|
distance: number;
|
|
@@ -408,6 +409,7 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
408
409
|
}, {}, {}, {}, {
|
|
409
410
|
tabindex: string | number;
|
|
410
411
|
height: string | number;
|
|
412
|
+
mask: boolean | ScrollbarDirection;
|
|
411
413
|
maxHeight: string | number;
|
|
412
414
|
tag: (string & {}) | keyof HTMLElementTagNameMap;
|
|
413
415
|
distance: number;
|
|
@@ -445,6 +447,7 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
445
447
|
}, string, {
|
|
446
448
|
tabindex: string | number;
|
|
447
449
|
height: string | number;
|
|
450
|
+
mask: boolean | ScrollbarDirection;
|
|
448
451
|
maxHeight: string | number;
|
|
449
452
|
tag: (string & {}) | keyof HTMLElementTagNameMap;
|
|
450
453
|
distance: number;
|
|
@@ -32,10 +32,10 @@ declare const __VLS_base: _$vue.DefineComponent<InputProps, {
|
|
|
32
32
|
clear: (evt?: MouseEvent) => void; /** @description resize textarea. */
|
|
33
33
|
resizeTextarea: () => void;
|
|
34
34
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
35
|
-
"update:modelValue": (value: string) => void;
|
|
36
35
|
change: (value: string, evt?: Event | undefined) => void;
|
|
37
|
-
input: (value: string) => void;
|
|
38
36
|
clear: (evt: MouseEvent | undefined) => void;
|
|
37
|
+
"update:modelValue": (value: string) => void;
|
|
38
|
+
input: (value: string) => void;
|
|
39
39
|
focus: (evt: FocusEvent) => void;
|
|
40
40
|
blur: (evt: FocusEvent) => void;
|
|
41
41
|
mouseleave: (evt: MouseEvent) => void;
|
|
@@ -45,10 +45,10 @@ declare const __VLS_base: _$vue.DefineComponent<InputProps, {
|
|
|
45
45
|
compositionupdate: (evt: CompositionEvent) => void;
|
|
46
46
|
compositionend: (evt: CompositionEvent) => void;
|
|
47
47
|
}, string, _$vue.PublicProps, Readonly<InputProps> & Readonly<{
|
|
48
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
49
48
|
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
50
|
-
onInput?: ((value: string) => any) | undefined;
|
|
51
49
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
50
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
51
|
+
onInput?: ((value: string) => any) | undefined;
|
|
52
52
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
53
53
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
54
54
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -16,14 +16,14 @@ declare const __VLS_base: _$vue.DefineComponent<InputNumberProps, {
|
|
|
16
16
|
/** @description get focus the input component */focus: () => void; /** @description remove focus the input component */
|
|
17
17
|
blur: () => void;
|
|
18
18
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
19
|
-
"update:modelValue": (val: number | undefined) => void;
|
|
20
19
|
change: (cur: number | undefined, prev: number | undefined) => void;
|
|
20
|
+
"update:modelValue": (val: number | undefined) => void;
|
|
21
21
|
input: (val: number | null | undefined) => void;
|
|
22
22
|
focus: (e: FocusEvent) => void;
|
|
23
23
|
blur: (e: FocusEvent) => void;
|
|
24
24
|
}, string, _$vue.PublicProps, Readonly<InputNumberProps> & Readonly<{
|
|
25
|
-
"onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
|
|
26
25
|
onChange?: ((cur: number | undefined, prev: number | undefined) => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((val: number | undefined) => any) | undefined;
|
|
27
27
|
onInput?: ((val: number | null | undefined) => any) | undefined;
|
|
28
28
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
29
29
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
@@ -22,14 +22,14 @@ declare const __VLS_base: _$vue.DefineComponent<InputOtpProps, {
|
|
|
22
22
|
*/
|
|
23
23
|
blur: () => void;
|
|
24
24
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
25
|
-
"update:modelValue": (value: string) => void;
|
|
26
25
|
change: (value: string) => void;
|
|
26
|
+
"update:modelValue": (value: string) => void;
|
|
27
27
|
focus: (eve: FocusEvent) => void;
|
|
28
28
|
blur: (eve: FocusEvent) => void;
|
|
29
29
|
finish: (value: string) => void;
|
|
30
30
|
}, string, _$vue.PublicProps, Readonly<InputOtpProps> & Readonly<{
|
|
31
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
32
31
|
onChange?: ((value: string) => any) | undefined;
|
|
32
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
33
33
|
onFocus?: ((eve: FocusEvent) => any) | undefined;
|
|
34
34
|
onBlur?: ((eve: FocusEvent) => any) | undefined;
|
|
35
35
|
onFinish?: ((value: string) => any) | undefined;
|
|
@@ -24,20 +24,20 @@ declare const __VLS_base: _$vue.DefineComponent<InputTagProps, {
|
|
|
24
24
|
focus: () => void;
|
|
25
25
|
blur: () => void;
|
|
26
26
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
27
|
-
"update:modelValue": (value?: string[] | undefined) => void;
|
|
28
27
|
change: (value?: string[] | undefined) => void;
|
|
29
|
-
input: (value: string) => void;
|
|
30
28
|
clear: () => void;
|
|
29
|
+
"update:modelValue": (value?: string[] | undefined) => void;
|
|
30
|
+
input: (value: string) => void;
|
|
31
31
|
focus: (evt: FocusEvent) => void;
|
|
32
32
|
blur: (evt: FocusEvent) => void;
|
|
33
33
|
"add-tag": (value: string | string[]) => void;
|
|
34
34
|
"remove-tag": (value: string, index: number) => void;
|
|
35
35
|
"drag-tag": (oldIndex: number, newIndex: number, value: string) => void;
|
|
36
36
|
}, string, _$vue.PublicProps, Readonly<InputTagProps> & Readonly<{
|
|
37
|
-
"onUpdate:modelValue"?: ((value?: string[] | undefined) => any) | undefined;
|
|
38
37
|
onChange?: ((value?: string[] | undefined) => any) | undefined;
|
|
39
|
-
onInput?: ((value: string) => any) | undefined;
|
|
40
38
|
onClear?: (() => any) | undefined;
|
|
39
|
+
"onUpdate:modelValue"?: ((value?: string[] | undefined) => any) | undefined;
|
|
40
|
+
onInput?: ((value: string) => any) | undefined;
|
|
41
41
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
42
42
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
43
43
|
"onAdd-tag"?: ((value: string | string[]) => any) | undefined;
|
|
@@ -7,9 +7,9 @@ import * as _$vue from "vue";
|
|
|
7
7
|
//#region ../../packages/components/mention/src/mention.vue.d.ts
|
|
8
8
|
declare const __VLS_export: <T extends MentionOption = MentionOption>(__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<MentionProps<T> & {
|
|
10
|
+
onSearch?: ((pattern: string, prefix: string) => any) | undefined;
|
|
10
11
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
12
|
onInput?: ((value: string) => any) | undefined;
|
|
12
|
-
onSearch?: ((pattern: string, prefix: string) => any) | undefined;
|
|
13
13
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
14
14
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
15
15
|
onSelect?: ((option: MentionOption, prefix: string) => any) | undefined;
|
|
@@ -46,7 +46,7 @@ declare const __VLS_export: <T extends MentionOption = MentionOption>(__VLS_prop
|
|
|
46
46
|
index: number;
|
|
47
47
|
}) => any;
|
|
48
48
|
};
|
|
49
|
-
emit: ((event: "
|
|
49
|
+
emit: ((event: "search", pattern: string, prefix: string) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "select", option: MentionOption, prefix: string) => void) & ((event: "whole-remove", pattern: string, prefix: string) => void);
|
|
50
50
|
}>) => _$vue.VNode & {
|
|
51
51
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
52
52
|
};
|
|
@@ -4749,10 +4749,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4749
4749
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
4750
4750
|
ElInput: SFCWithInstall<{
|
|
4751
4751
|
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<InputProps> & Readonly<{
|
|
4752
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
4753
4752
|
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
4754
|
-
onInput?: ((value: string) => any) | undefined;
|
|
4755
4753
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
4754
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
4755
|
+
onInput?: ((value: string) => any) | undefined;
|
|
4756
4756
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
4757
4757
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
4758
4758
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -4775,10 +4775,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4775
4775
|
clear: (evt?: MouseEvent) => void;
|
|
4776
4776
|
resizeTextarea: () => void;
|
|
4777
4777
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
4778
|
-
"update:modelValue": (value: string) => void;
|
|
4779
4778
|
change: (value: string, evt?: Event | undefined) => void;
|
|
4780
|
-
input: (value: string) => void;
|
|
4781
4779
|
clear: (evt: MouseEvent | undefined) => void;
|
|
4780
|
+
"update:modelValue": (value: string) => void;
|
|
4781
|
+
input: (value: string) => void;
|
|
4782
4782
|
focus: (evt: FocusEvent) => void;
|
|
4783
4783
|
blur: (evt: FocusEvent) => void;
|
|
4784
4784
|
mouseleave: (evt: MouseEvent) => void;
|
|
@@ -4807,10 +4807,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4807
4807
|
M: {};
|
|
4808
4808
|
Defaults: {};
|
|
4809
4809
|
}, Readonly<InputProps> & Readonly<{
|
|
4810
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
4811
4810
|
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
4812
|
-
onInput?: ((value: string) => any) | undefined;
|
|
4813
4811
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
4812
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
4813
|
+
onInput?: ((value: string) => any) | undefined;
|
|
4814
4814
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
4815
4815
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
4816
4816
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -4849,10 +4849,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4849
4849
|
__isTeleport?: never;
|
|
4850
4850
|
__isSuspense?: never;
|
|
4851
4851
|
} & _$vue.ComponentOptionsBase<Readonly<InputProps> & Readonly<{
|
|
4852
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
4853
4852
|
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
4854
|
-
onInput?: ((value: string) => any) | undefined;
|
|
4855
4853
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
4854
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
4855
|
+
onInput?: ((value: string) => any) | undefined;
|
|
4856
4856
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
4857
4857
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
4858
4858
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -4875,10 +4875,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4875
4875
|
clear: (evt?: MouseEvent) => void;
|
|
4876
4876
|
resizeTextarea: () => void;
|
|
4877
4877
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
4878
|
-
"update:modelValue": (value: string) => void;
|
|
4879
4878
|
change: (value: string, evt?: Event | undefined) => void;
|
|
4880
|
-
input: (value: string) => void;
|
|
4881
4879
|
clear: (evt: MouseEvent | undefined) => void;
|
|
4880
|
+
"update:modelValue": (value: string) => void;
|
|
4881
|
+
input: (value: string) => void;
|
|
4882
4882
|
focus: (evt: FocusEvent) => void;
|
|
4883
4883
|
blur: (evt: FocusEvent) => void;
|
|
4884
4884
|
mouseleave: (evt: MouseEvent) => void;
|
|
@@ -7,11 +7,11 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: _$vue.DefineComponent<RadioGroupProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
10
|
-
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
11
10
|
change: (val: string | number | boolean | undefined) => void;
|
|
11
|
+
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
12
12
|
}, string, _$vue.PublicProps, Readonly<RadioGroupProps> & Readonly<{
|
|
13
|
-
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
14
13
|
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
type: "button" | "radio";
|
|
17
17
|
fill: string;
|
|
@@ -7,11 +7,11 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: _$vue.DefineComponent<RadioProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
10
|
-
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
11
10
|
change: (val: string | number | boolean | undefined) => void;
|
|
11
|
+
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
12
12
|
}, string, _$vue.PublicProps, Readonly<RadioProps> & Readonly<{
|
|
13
|
-
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
14
13
|
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
disabled: boolean;
|
|
17
17
|
modelValue: string | number | boolean;
|
|
@@ -9,11 +9,11 @@ declare const __VLS_export: _$vue.DefineComponent<RateProps, {
|
|
|
9
9
|
/** @description set current value */setCurrentValue: typeof setCurrentValue; /** @description reset current value */
|
|
10
10
|
resetCurrentValue: typeof resetCurrentValue;
|
|
11
11
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
12
|
-
"update:modelValue": (value: number) => void;
|
|
13
12
|
change: (value: number) => void;
|
|
13
|
+
"update:modelValue": (value: number) => void;
|
|
14
14
|
}, string, _$vue.PublicProps, Readonly<RateProps> & Readonly<{
|
|
15
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
16
15
|
onChange?: ((value: number) => any) | undefined;
|
|
16
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
id: string;
|
|
19
19
|
disabled: boolean;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { isClient } from "../../../utils/browser.mjs";
|
|
2
|
+
//#region ../../packages/components/scrollbar/src/mask-utils.ts
|
|
3
|
+
let cachedRTLResult = null;
|
|
4
|
+
function getRTLOffsetType(recalculate = false) {
|
|
5
|
+
if (!isClient) return "negative";
|
|
6
|
+
if (cachedRTLResult === null || recalculate) {
|
|
7
|
+
const outerDiv = document.createElement("div");
|
|
8
|
+
const outerStyle = outerDiv.style;
|
|
9
|
+
outerStyle.width = "50px";
|
|
10
|
+
outerStyle.height = "50px";
|
|
11
|
+
outerStyle.overflow = "scroll";
|
|
12
|
+
outerStyle.direction = "rtl";
|
|
13
|
+
outerStyle.position = "absolute";
|
|
14
|
+
outerStyle.visibility = "hidden";
|
|
15
|
+
outerStyle.top = "-9999px";
|
|
16
|
+
const innerDiv = document.createElement("div");
|
|
17
|
+
const innerStyle = innerDiv.style;
|
|
18
|
+
innerStyle.width = "100px";
|
|
19
|
+
innerStyle.height = "100px";
|
|
20
|
+
outerDiv.appendChild(innerDiv);
|
|
21
|
+
document.body.appendChild(outerDiv);
|
|
22
|
+
if (outerDiv.scrollLeft > 0) cachedRTLResult = "positive-descending";
|
|
23
|
+
else {
|
|
24
|
+
outerDiv.scrollLeft = 1;
|
|
25
|
+
cachedRTLResult = outerDiv.scrollLeft === 0 ? "negative" : "positive-ascending";
|
|
26
|
+
}
|
|
27
|
+
document.body.removeChild(outerDiv);
|
|
28
|
+
}
|
|
29
|
+
return cachedRTLResult;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { getRTLOffsetType };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=mask-utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mask-utils.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/mask-utils.ts"],"sourcesContent":["import { isClient } from '@element-plus/utils'\n\ntype RTLOffsetType = 'negative' | 'positive-descending' | 'positive-ascending'\n\nlet cachedRTLResult: RTLOffsetType | null = null\n\nexport function getRTLOffsetType(recalculate = false): RTLOffsetType {\n if (!isClient) return 'negative'\n if (cachedRTLResult === null || recalculate) {\n const outerDiv = document.createElement('div')\n const outerStyle = outerDiv.style\n outerStyle.width = '50px'\n outerStyle.height = '50px'\n outerStyle.overflow = 'scroll'\n outerStyle.direction = 'rtl'\n outerStyle.position = 'absolute'\n outerStyle.visibility = 'hidden'\n outerStyle.top = '-9999px'\n\n const innerDiv = document.createElement('div')\n const innerStyle = innerDiv.style\n innerStyle.width = '100px'\n innerStyle.height = '100px'\n\n outerDiv.appendChild(innerDiv)\n document.body.appendChild(outerDiv)\n\n if (outerDiv.scrollLeft > 0) {\n cachedRTLResult = 'positive-descending'\n } else {\n outerDiv.scrollLeft = 1\n cachedRTLResult =\n outerDiv.scrollLeft === 0 ? 'negative' : 'positive-ascending'\n }\n\n document.body.removeChild(outerDiv)\n }\n\n return cachedRTLResult\n}\n"],"mappings":";;AAIA,IAAI,kBAAwC;AAE5C,SAAgB,iBAAiB,cAAc,OAAsB;CACnE,IAAI,CAAC,UAAU,OAAO;CACtB,IAAI,oBAAoB,QAAQ,aAAa;EAC3C,MAAM,WAAW,SAAS,cAAc,KAAK;EAC7C,MAAM,aAAa,SAAS;EAC5B,WAAW,QAAQ;EACnB,WAAW,SAAS;EACpB,WAAW,WAAW;EACtB,WAAW,YAAY;EACvB,WAAW,WAAW;EACtB,WAAW,aAAa;EACxB,WAAW,MAAM;EAEjB,MAAM,WAAW,SAAS,cAAc,KAAK;EAC7C,MAAM,aAAa,SAAS;EAC5B,WAAW,QAAQ;EACnB,WAAW,SAAS;EAEpB,SAAS,YAAY,QAAQ;EAC7B,SAAS,KAAK,YAAY,QAAQ;EAElC,IAAI,SAAS,aAAa,GACxB,kBAAkB;OACb;GACL,SAAS,aAAa;GACtB,kBACE,SAAS,eAAe,IAAI,aAAa;EAC7C;EAEA,SAAS,KAAK,YAAY,QAAQ;CACpC;CAEA,OAAO;AACT"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import mask_vue_vue_type_script_setup_true_lang_default from "./mask.vue_vue_type_script_setup_true_lang.mjs";
|
|
2
|
+
//#region ../../packages/components/scrollbar/src/mask.vue
|
|
3
|
+
var mask_default = mask_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { mask_default as default };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=mask.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mask.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/mask.vue"],"sourcesContent":["<template>\n <div :class=\"ns.e('mask')\" aria-hidden=\"true\">\n <transition v-for=\"edge in edges\" :key=\"edge\" :name=\"ns.b('mask-fade')\">\n <div\n v-if=\"mask === true || mask === edge\"\n v-show=\"visible[edge]\"\n :class=\"ns.e(`${edge}-mask`)\"\n :style=\"styles[edge]\"\n aria-hidden=\"true\"\n />\n </transition>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { inject, shallowReactive, shallowRef } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { getStyle } from '@element-plus/utils'\nimport { scrollbarContextKey } from './constants'\nimport { getRTLOffsetType } from './mask-utils'\n\nimport type { CSSProperties } from 'vue'\nimport type { ScrollbarDirection, ScrollbarProps } from './scrollbar'\n\ndefineProps<{\n mask: ScrollbarProps['mask']\n}>()\n\nconst ns = useNamespace('scrollbar')\nconst scrollbar = inject(scrollbarContextKey)!\nconst edges = ['top', 'bottom', 'left', 'right'] as const\nconst visible = shallowReactive({\n top: false,\n bottom: false,\n left: false,\n right: false,\n})\nconst styles = shallowRef<Partial<Record<ScrollbarDirection, CSSProperties>>>(\n {}\n)\n\nconst handleScroll = () => {\n const wrap = scrollbar.wrapElement\n if (!wrap) return\n\n const {\n clientHeight,\n scrollHeight,\n scrollTop,\n clientWidth,\n scrollWidth,\n scrollLeft,\n } = wrap\n // Scroll offsets may be fractional, whereas scroll and client sizes are rounded.\n const maxTop = scrollHeight - clientHeight\n const maxLeft = scrollWidth - clientWidth\n const hasVerticalOverflow = clientHeight > 0 && maxTop > 1\n const hasHorizontalOverflow = clientWidth > 0 && maxLeft > 1\n let left = scrollLeft\n if (hasHorizontalOverflow && getStyle(wrap, 'direction') === 'rtl') {\n // Normalize the browser's RTL offset to the distance from the physical left.\n switch (getRTLOffsetType()) {\n case 'negative':\n left = maxLeft + scrollLeft\n break\n case 'positive-ascending':\n left = maxLeft - scrollLeft\n break\n }\n }\n\n visible.top = hasVerticalOverflow && scrollTop > 1\n visible.bottom = hasVerticalOverflow && maxTop - scrollTop > 1\n visible.left = hasHorizontalOverflow && left > 1\n visible.right = hasHorizontalOverflow && maxLeft - left > 1\n}\n\nconst update = () => {\n const { wrapElement: wrap, scrollbarElement } = scrollbar\n if (!wrap || !scrollbarElement) return\n\n // Align with the viewport, excluding native scrollbars and any wrap border.\n const {\n offsetLeft,\n offsetTop,\n clientLeft,\n clientTop,\n clientWidth,\n clientHeight,\n } = wrap\n const left = offsetLeft + clientLeft\n const top = offsetTop + clientTop\n const verticalStyle = {\n left: `${left}px`,\n width: `${clientWidth}px`,\n maxHeight: `${clientHeight}px`,\n }\n const horizontalStyle = {\n top: `${top}px`,\n height: `${clientHeight}px`,\n maxWidth: `${clientWidth}px`,\n }\n styles.value = {\n top: { ...verticalStyle, top: `${top}px` },\n bottom: {\n ...verticalStyle,\n bottom: `${scrollbarElement.clientHeight - top - clientHeight}px`,\n },\n left: { ...horizontalStyle, left: `${left}px` },\n right: {\n ...horizontalStyle,\n right: `${scrollbarElement.clientWidth - left - clientWidth}px`,\n },\n }\n handleScroll()\n}\n\ndefineExpose({ update, handleScroll })\n</script>\n"],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ScrollbarProps } from "./scrollbar.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region ../../packages/components/scrollbar/src/mask.vue.d.ts
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
mask: ScrollbarProps['mask'];
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: _$vue.DefineComponent<__VLS_Props, {
|
|
9
|
+
update: () => void;
|
|
10
|
+
handleScroll: () => void;
|
|
11
|
+
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { _default as default };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { getStyle } from "../../../utils/dom/style.mjs";
|
|
2
|
+
import { useNamespace } from "../../../hooks/use-namespace/index.mjs";
|
|
3
|
+
import { scrollbarContextKey } from "./constants.mjs";
|
|
4
|
+
import { getRTLOffsetType } from "./mask-utils.mjs";
|
|
5
|
+
import { Fragment, Transition, createCommentVNode, createElementBlock, createVNode, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, renderList, shallowReactive, shallowRef, unref, vShow, withCtx, withDirectives } from "vue";
|
|
6
|
+
//#region ../../packages/components/scrollbar/src/mask.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var mask_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
8
|
+
__name: "mask",
|
|
9
|
+
props: { mask: {
|
|
10
|
+
type: [Boolean, String],
|
|
11
|
+
required: true
|
|
12
|
+
} },
|
|
13
|
+
setup(__props, { expose: __expose }) {
|
|
14
|
+
const ns = useNamespace("scrollbar");
|
|
15
|
+
const scrollbar = inject(scrollbarContextKey);
|
|
16
|
+
const edges = [
|
|
17
|
+
"top",
|
|
18
|
+
"bottom",
|
|
19
|
+
"left",
|
|
20
|
+
"right"
|
|
21
|
+
];
|
|
22
|
+
const visible = shallowReactive({
|
|
23
|
+
top: false,
|
|
24
|
+
bottom: false,
|
|
25
|
+
left: false,
|
|
26
|
+
right: false
|
|
27
|
+
});
|
|
28
|
+
const styles = shallowRef({});
|
|
29
|
+
const handleScroll = () => {
|
|
30
|
+
const wrap = scrollbar.wrapElement;
|
|
31
|
+
if (!wrap) return;
|
|
32
|
+
const { clientHeight, scrollHeight, scrollTop, clientWidth, scrollWidth, scrollLeft } = wrap;
|
|
33
|
+
const maxTop = scrollHeight - clientHeight;
|
|
34
|
+
const maxLeft = scrollWidth - clientWidth;
|
|
35
|
+
const hasVerticalOverflow = clientHeight > 0 && maxTop > 1;
|
|
36
|
+
const hasHorizontalOverflow = clientWidth > 0 && maxLeft > 1;
|
|
37
|
+
let left = scrollLeft;
|
|
38
|
+
if (hasHorizontalOverflow && getStyle(wrap, "direction") === "rtl") switch (getRTLOffsetType()) {
|
|
39
|
+
case "negative":
|
|
40
|
+
left = maxLeft + scrollLeft;
|
|
41
|
+
break;
|
|
42
|
+
case "positive-ascending": left = maxLeft - scrollLeft;
|
|
43
|
+
}
|
|
44
|
+
visible.top = hasVerticalOverflow && scrollTop > 1;
|
|
45
|
+
visible.bottom = hasVerticalOverflow && maxTop - scrollTop > 1;
|
|
46
|
+
visible.left = hasHorizontalOverflow && left > 1;
|
|
47
|
+
visible.right = hasHorizontalOverflow && maxLeft - left > 1;
|
|
48
|
+
};
|
|
49
|
+
const update = () => {
|
|
50
|
+
const { wrapElement: wrap, scrollbarElement } = scrollbar;
|
|
51
|
+
if (!wrap || !scrollbarElement) return;
|
|
52
|
+
const { offsetLeft, offsetTop, clientLeft, clientTop, clientWidth, clientHeight } = wrap;
|
|
53
|
+
const left = offsetLeft + clientLeft;
|
|
54
|
+
const top = offsetTop + clientTop;
|
|
55
|
+
const verticalStyle = {
|
|
56
|
+
left: `${left}px`,
|
|
57
|
+
width: `${clientWidth}px`,
|
|
58
|
+
maxHeight: `${clientHeight}px`
|
|
59
|
+
};
|
|
60
|
+
const horizontalStyle = {
|
|
61
|
+
top: `${top}px`,
|
|
62
|
+
height: `${clientHeight}px`,
|
|
63
|
+
maxWidth: `${clientWidth}px`
|
|
64
|
+
};
|
|
65
|
+
styles.value = {
|
|
66
|
+
top: {
|
|
67
|
+
...verticalStyle,
|
|
68
|
+
top: `${top}px`
|
|
69
|
+
},
|
|
70
|
+
bottom: {
|
|
71
|
+
...verticalStyle,
|
|
72
|
+
bottom: `${scrollbarElement.clientHeight - top - clientHeight}px`
|
|
73
|
+
},
|
|
74
|
+
left: {
|
|
75
|
+
...horizontalStyle,
|
|
76
|
+
left: `${left}px`
|
|
77
|
+
},
|
|
78
|
+
right: {
|
|
79
|
+
...horizontalStyle,
|
|
80
|
+
right: `${scrollbarElement.clientWidth - left - clientWidth}px`
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
handleScroll();
|
|
84
|
+
};
|
|
85
|
+
__expose({
|
|
86
|
+
update,
|
|
87
|
+
handleScroll
|
|
88
|
+
});
|
|
89
|
+
return (_ctx, _cache) => {
|
|
90
|
+
return openBlock(), createElementBlock("div", {
|
|
91
|
+
class: normalizeClass(unref(ns).e("mask")),
|
|
92
|
+
"aria-hidden": "true"
|
|
93
|
+
}, [(openBlock(), createElementBlock(Fragment, null, renderList(edges, (edge) => {
|
|
94
|
+
return createVNode(Transition, {
|
|
95
|
+
key: edge,
|
|
96
|
+
name: unref(ns).b("mask-fade")
|
|
97
|
+
}, {
|
|
98
|
+
default: withCtx(() => [__props.mask === true || __props.mask === edge ? withDirectives((openBlock(), createElementBlock("div", {
|
|
99
|
+
key: 0,
|
|
100
|
+
class: normalizeClass(unref(ns).e(`${edge}-mask`)),
|
|
101
|
+
style: normalizeStyle(styles.value[edge]),
|
|
102
|
+
"aria-hidden": "true"
|
|
103
|
+
}, null, 6)), [[vShow, unref(visible)[edge]]]) : createCommentVNode("v-if", true)]),
|
|
104
|
+
_: 2
|
|
105
|
+
}, 1032, ["name"]);
|
|
106
|
+
}), 64))], 2);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
//#endregion
|
|
111
|
+
export { mask_vue_vue_type_script_setup_true_lang_default as default };
|
|
112
|
+
|
|
113
|
+
//# sourceMappingURL=mask.vue_vue_type_script_setup_true_lang.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mask.vue_vue_type_script_setup_true_lang.mjs","names":[],"sources":["../../../../../../packages/components/scrollbar/src/mask.vue"],"sourcesContent":["<template>\n <div :class=\"ns.e('mask')\" aria-hidden=\"true\">\n <transition v-for=\"edge in edges\" :key=\"edge\" :name=\"ns.b('mask-fade')\">\n <div\n v-if=\"mask === true || mask === edge\"\n v-show=\"visible[edge]\"\n :class=\"ns.e(`${edge}-mask`)\"\n :style=\"styles[edge]\"\n aria-hidden=\"true\"\n />\n </transition>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { inject, shallowReactive, shallowRef } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { getStyle } from '@element-plus/utils'\nimport { scrollbarContextKey } from './constants'\nimport { getRTLOffsetType } from './mask-utils'\n\nimport type { CSSProperties } from 'vue'\nimport type { ScrollbarDirection, ScrollbarProps } from './scrollbar'\n\ndefineProps<{\n mask: ScrollbarProps['mask']\n}>()\n\nconst ns = useNamespace('scrollbar')\nconst scrollbar = inject(scrollbarContextKey)!\nconst edges = ['top', 'bottom', 'left', 'right'] as const\nconst visible = shallowReactive({\n top: false,\n bottom: false,\n left: false,\n right: false,\n})\nconst styles = shallowRef<Partial<Record<ScrollbarDirection, CSSProperties>>>(\n {}\n)\n\nconst handleScroll = () => {\n const wrap = scrollbar.wrapElement\n if (!wrap) return\n\n const {\n clientHeight,\n scrollHeight,\n scrollTop,\n clientWidth,\n scrollWidth,\n scrollLeft,\n } = wrap\n // Scroll offsets may be fractional, whereas scroll and client sizes are rounded.\n const maxTop = scrollHeight - clientHeight\n const maxLeft = scrollWidth - clientWidth\n const hasVerticalOverflow = clientHeight > 0 && maxTop > 1\n const hasHorizontalOverflow = clientWidth > 0 && maxLeft > 1\n let left = scrollLeft\n if (hasHorizontalOverflow && getStyle(wrap, 'direction') === 'rtl') {\n // Normalize the browser's RTL offset to the distance from the physical left.\n switch (getRTLOffsetType()) {\n case 'negative':\n left = maxLeft + scrollLeft\n break\n case 'positive-ascending':\n left = maxLeft - scrollLeft\n break\n }\n }\n\n visible.top = hasVerticalOverflow && scrollTop > 1\n visible.bottom = hasVerticalOverflow && maxTop - scrollTop > 1\n visible.left = hasHorizontalOverflow && left > 1\n visible.right = hasHorizontalOverflow && maxLeft - left > 1\n}\n\nconst update = () => {\n const { wrapElement: wrap, scrollbarElement } = scrollbar\n if (!wrap || !scrollbarElement) return\n\n // Align with the viewport, excluding native scrollbars and any wrap border.\n const {\n offsetLeft,\n offsetTop,\n clientLeft,\n clientTop,\n clientWidth,\n clientHeight,\n } = wrap\n const left = offsetLeft + clientLeft\n const top = offsetTop + clientTop\n const verticalStyle = {\n left: `${left}px`,\n width: `${clientWidth}px`,\n maxHeight: `${clientHeight}px`,\n }\n const horizontalStyle = {\n top: `${top}px`,\n height: `${clientHeight}px`,\n maxWidth: `${clientWidth}px`,\n }\n styles.value = {\n top: { ...verticalStyle, top: `${top}px` },\n bottom: {\n ...verticalStyle,\n bottom: `${scrollbarElement.clientHeight - top - clientHeight}px`,\n },\n left: { ...horizontalStyle, left: `${left}px` },\n right: {\n ...horizontalStyle,\n right: `${scrollbarElement.clientWidth - left - clientWidth}px`,\n },\n }\n handleScroll()\n}\n\ndefineExpose({ update, handleScroll })\n</script>\n"],"mappings":";;;;;;;;;;;;;EA4BA,MAAM,KAAK,aAAa,WAAW;EACnC,MAAM,YAAY,OAAO,mBAAmB;EAC5C,MAAM,QAAQ;GAAC;GAAO;GAAU;GAAQ;EAAO;EAC/C,MAAM,UAAU,gBAAgB;GAC9B,KAAK;GACL,QAAQ;GACR,MAAM;GACN,OAAO;EACT,CAAC;EACD,MAAM,SAAS,WACb,CAAC,CACH;EAEA,MAAM,qBAAqB;GACzB,MAAM,OAAO,UAAU;GACvB,IAAI,CAAC,MAAM;GAEX,MAAM,EACJ,cACA,cACA,WACA,aACA,aACA,eACE;GAEJ,MAAM,SAAS,eAAe;GAC9B,MAAM,UAAU,cAAc;GAC9B,MAAM,sBAAsB,eAAe,KAAK,SAAS;GACzD,MAAM,wBAAwB,cAAc,KAAK,UAAU;GAC3D,IAAI,OAAO;GACX,IAAI,yBAAyB,SAAS,MAAM,WAAW,MAAM,OAE3D,QAAQ,iBAAiB,GAAzB;IACE,KAAK;KACH,OAAO,UAAU;KACjB;IACF,KAAK,sBACH,OAAO,UAAU;GAErB;GAGF,QAAQ,MAAM,uBAAuB,YAAY;GACjD,QAAQ,SAAS,uBAAuB,SAAS,YAAY;GAC7D,QAAQ,OAAO,yBAAyB,OAAO;GAC/C,QAAQ,QAAQ,yBAAyB,UAAU,OAAO;EAC5D;EAEA,MAAM,eAAe;GACnB,MAAM,EAAE,aAAa,MAAM,qBAAqB;GAChD,IAAI,CAAC,QAAQ,CAAC,kBAAkB;GAGhC,MAAM,EACJ,YACA,WACA,YACA,WACA,aACA,iBACE;GACJ,MAAM,OAAO,aAAa;GAC1B,MAAM,MAAM,YAAY;GACxB,MAAM,gBAAgB;IACpB,MAAM,GAAG,KAAK;IACd,OAAO,GAAG,YAAY;IACtB,WAAW,GAAG,aAAa;GAC7B;GACA,MAAM,kBAAkB;IACtB,KAAK,GAAG,IAAI;IACZ,QAAQ,GAAG,aAAa;IACxB,UAAU,GAAG,YAAY;GAC3B;GACA,OAAO,QAAQ;IACb,KAAK;KAAE,GAAG;KAAe,KAAK,GAAG,IAAI;IAAI;IACzC,QAAQ;KACN,GAAG;KACH,QAAQ,GAAG,iBAAiB,eAAe,MAAM,aAAa;IAChE;IACA,MAAM;KAAE,GAAG;KAAiB,MAAM,GAAG,KAAK;IAAI;IAC9C,OAAO;KACL,GAAG;KACH,OAAO,GAAG,iBAAiB,cAAc,OAAO,YAAY;IAC9D;GACF;GACA,aAAa;EACf;EAEA,SAAa;GAAE;GAAQ;EAAa,CAAC;;GApHnC,OAAA,UAAA,GAAA,mBAUM,OAAA;IAVA,OAAK,eAAE,MAAA,EAAA,CAAE,CAAC,EAAC,MAAA,CAAA;IAAU,eAAY;GACrC,GAAA,EAAA,UAAA,GAAA,mBAQa,UAAA,MAAA,WARc,QAAR,SAAI;IAAvB,OAAA,YAQa,YAAA;KARsB,KAAK;KAAO,MAAM,MAAA,EAAA,CAAE,CAAC,EAAC,WAAA;;KACvD,SAAA,cAME,CALM,QAAA,SAAI,QAAa,QAAA,SAAS,OADlC,gBAAA,UAAA,GAAA,mBAME,OAAA;;MAHC,OAAK,eAAE,MAAA,EAAA,CAAE,CAAC,EAAC,GAAI,KAAI,MAAA,CAAA;MACnB,OAAK,eAAE,OAAA,MAAO,KAAI;MACnB,eAAY;KAHJ,GAAA,MAAA,CAAA,IAAA,CAAA,CAAA,OAAA,MAAA,OAAA,CAAO,CAAC,KAAI,CAAA,CAAA,IAAA,mBAAA,QAAA,IAAA,CAAA,CAAA"}
|