@element-plus/nightly 0.0.20220114 → 0.0.20220118
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 +1619 -1471
- package/dist/index.full.min.js +11 -11
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11 -11
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +1611 -1466
- package/dist/locale/af.js +134 -0
- package/dist/locale/af.min.js +2 -0
- package/dist/locale/af.min.js.map +1 -0
- package/dist/locale/af.min.mjs +2 -0
- package/dist/locale/af.min.mjs.map +1 -0
- package/dist/locale/af.mjs +124 -0
- package/dist/locale/ar.js +134 -0
- package/dist/locale/ar.min.js +2 -0
- package/dist/locale/ar.min.js.map +1 -0
- package/dist/locale/ar.min.mjs +2 -0
- package/dist/locale/ar.min.mjs.map +1 -0
- package/dist/locale/ar.mjs +124 -0
- package/dist/locale/bg.js +134 -0
- package/dist/locale/bg.min.js +2 -0
- package/dist/locale/bg.min.js.map +1 -0
- package/dist/locale/bg.min.mjs +2 -0
- package/dist/locale/bg.min.mjs.map +1 -0
- package/dist/locale/bg.mjs +124 -0
- package/dist/locale/bn.js +136 -0
- package/dist/locale/bn.min.js +2 -0
- package/dist/locale/bn.min.js.map +1 -0
- package/dist/locale/bn.min.mjs +2 -0
- package/dist/locale/bn.min.mjs.map +1 -0
- package/dist/locale/bn.mjs +126 -0
- package/dist/locale/ca.js +133 -0
- package/dist/locale/ca.min.js +2 -0
- package/dist/locale/ca.min.js.map +1 -0
- package/dist/locale/ca.min.mjs +2 -0
- package/dist/locale/ca.min.mjs.map +1 -0
- package/dist/locale/ca.mjs +123 -0
- package/dist/locale/cs.js +137 -0
- package/dist/locale/cs.min.js +2 -0
- package/dist/locale/cs.min.js.map +1 -0
- package/dist/locale/cs.min.mjs +2 -0
- package/dist/locale/cs.min.mjs.map +1 -0
- package/dist/locale/cs.mjs +127 -0
- package/dist/locale/da.js +134 -0
- package/dist/locale/da.min.js +2 -0
- package/dist/locale/da.min.js.map +1 -0
- package/dist/locale/da.min.mjs +2 -0
- package/dist/locale/da.min.mjs.map +1 -0
- package/dist/locale/da.mjs +124 -0
- package/dist/locale/de.js +136 -0
- package/dist/locale/de.min.js +2 -0
- package/dist/locale/de.min.js.map +1 -0
- package/dist/locale/de.min.mjs +2 -0
- package/dist/locale/de.min.mjs.map +1 -0
- package/dist/locale/de.mjs +126 -0
- package/dist/locale/el.js +134 -0
- package/dist/locale/el.min.js +2 -0
- package/dist/locale/el.min.js.map +1 -0
- package/dist/locale/el.min.mjs +2 -0
- package/dist/locale/el.min.mjs.map +1 -0
- package/dist/locale/el.mjs +124 -0
- package/dist/locale/en.js +136 -0
- package/dist/locale/en.min.js +2 -0
- package/dist/locale/en.min.js.map +1 -0
- package/dist/locale/en.min.mjs +2 -0
- package/dist/locale/en.min.mjs.map +1 -0
- package/dist/locale/en.mjs +126 -0
- package/dist/locale/eo.js +135 -0
- package/dist/locale/eo.min.js +2 -0
- package/dist/locale/eo.min.js.map +1 -0
- package/dist/locale/eo.min.mjs +2 -0
- package/dist/locale/eo.min.mjs.map +1 -0
- package/dist/locale/eo.mjs +125 -0
- package/dist/locale/es.js +133 -0
- package/dist/locale/es.min.js +2 -0
- package/dist/locale/es.min.js.map +1 -0
- package/dist/locale/es.min.mjs +2 -0
- package/dist/locale/es.min.mjs.map +1 -0
- package/dist/locale/es.mjs +123 -0
- package/dist/locale/et.js +134 -0
- package/dist/locale/et.min.js +2 -0
- package/dist/locale/et.min.js.map +1 -0
- package/dist/locale/et.min.mjs +2 -0
- package/dist/locale/et.min.mjs.map +1 -0
- package/dist/locale/et.mjs +124 -0
- package/dist/locale/eu.js +134 -0
- package/dist/locale/eu.min.js +2 -0
- package/dist/locale/eu.min.js.map +1 -0
- package/dist/locale/eu.min.mjs +2 -0
- package/dist/locale/eu.min.mjs.map +1 -0
- package/dist/locale/eu.mjs +124 -0
- package/dist/locale/fa.js +134 -0
- package/dist/locale/fa.min.js +2 -0
- package/dist/locale/fa.min.js.map +1 -0
- package/dist/locale/fa.min.mjs +2 -0
- package/dist/locale/fa.min.mjs.map +1 -0
- package/dist/locale/fa.mjs +124 -0
- package/dist/locale/fi.js +134 -0
- package/dist/locale/fi.min.js +2 -0
- package/dist/locale/fi.min.js.map +1 -0
- package/dist/locale/fi.min.mjs +2 -0
- package/dist/locale/fi.min.mjs.map +1 -0
- package/dist/locale/fi.mjs +124 -0
- package/dist/locale/fr.js +133 -0
- package/dist/locale/fr.min.js +2 -0
- package/dist/locale/fr.min.js.map +1 -0
- package/dist/locale/fr.min.mjs +2 -0
- package/dist/locale/fr.min.mjs.map +1 -0
- package/dist/locale/fr.mjs +123 -0
- package/dist/locale/he.js +134 -0
- package/dist/locale/he.min.js +2 -0
- package/dist/locale/he.min.js.map +1 -0
- package/dist/locale/he.min.mjs +2 -0
- package/dist/locale/he.min.mjs.map +1 -0
- package/dist/locale/he.mjs +124 -0
- package/dist/locale/hr.js +135 -0
- package/dist/locale/hr.min.js +2 -0
- package/dist/locale/hr.min.js.map +1 -0
- package/dist/locale/hr.min.mjs +2 -0
- package/dist/locale/hr.min.mjs.map +1 -0
- package/dist/locale/hr.mjs +125 -0
- package/dist/locale/hu.js +134 -0
- package/dist/locale/hu.min.js +2 -0
- package/dist/locale/hu.min.js.map +1 -0
- package/dist/locale/hu.min.mjs +2 -0
- package/dist/locale/hu.min.mjs.map +1 -0
- package/dist/locale/hu.mjs +124 -0
- package/dist/locale/hy-am.js +135 -0
- package/dist/locale/hy-am.min.js +2 -0
- package/dist/locale/hy-am.min.js.map +1 -0
- package/dist/locale/hy-am.min.mjs +2 -0
- package/dist/locale/hy-am.min.mjs.map +1 -0
- package/dist/locale/hy-am.mjs +125 -0
- package/dist/locale/id.js +136 -0
- package/dist/locale/id.min.js +2 -0
- package/dist/locale/id.min.js.map +1 -0
- package/dist/locale/id.min.mjs +2 -0
- package/dist/locale/id.min.mjs.map +1 -0
- package/dist/locale/id.mjs +126 -0
- package/dist/locale/it.js +133 -0
- package/dist/locale/it.min.js +2 -0
- package/dist/locale/it.min.js.map +1 -0
- package/dist/locale/it.min.mjs +2 -0
- package/dist/locale/it.min.mjs.map +1 -0
- package/dist/locale/it.mjs +123 -0
- package/dist/locale/ja.js +134 -0
- package/dist/locale/ja.min.js +2 -0
- package/dist/locale/ja.min.js.map +1 -0
- package/dist/locale/ja.min.mjs +2 -0
- package/dist/locale/ja.min.mjs.map +1 -0
- package/dist/locale/ja.mjs +124 -0
- package/dist/locale/kk.js +135 -0
- package/dist/locale/kk.min.js +2 -0
- package/dist/locale/kk.min.js.map +1 -0
- package/dist/locale/kk.min.mjs +2 -0
- package/dist/locale/kk.min.mjs.map +1 -0
- package/dist/locale/kk.mjs +125 -0
- package/dist/locale/km.js +134 -0
- package/dist/locale/km.min.js +2 -0
- package/dist/locale/km.min.js.map +1 -0
- package/dist/locale/km.min.mjs +2 -0
- package/dist/locale/km.min.mjs.map +1 -0
- package/dist/locale/km.mjs +124 -0
- package/dist/locale/ko.js +134 -0
- package/dist/locale/ko.min.js +2 -0
- package/dist/locale/ko.min.js.map +1 -0
- package/dist/locale/ko.min.mjs +2 -0
- package/dist/locale/ko.min.mjs.map +1 -0
- package/dist/locale/ko.mjs +124 -0
- package/dist/locale/ku.js +134 -0
- package/dist/locale/ku.min.js +2 -0
- package/dist/locale/ku.min.js.map +1 -0
- package/dist/locale/ku.min.mjs +2 -0
- package/dist/locale/ku.min.mjs.map +1 -0
- package/dist/locale/ku.mjs +124 -0
- package/dist/locale/ky.js +134 -0
- package/dist/locale/ky.min.js +2 -0
- package/dist/locale/ky.min.js.map +1 -0
- package/dist/locale/ky.min.mjs +2 -0
- package/dist/locale/ky.min.mjs.map +1 -0
- package/dist/locale/ky.mjs +124 -0
- package/dist/locale/lt.js +134 -0
- package/dist/locale/lt.min.js +2 -0
- package/dist/locale/lt.min.js.map +1 -0
- package/dist/locale/lt.min.mjs +2 -0
- package/dist/locale/lt.min.mjs.map +1 -0
- package/dist/locale/lt.mjs +124 -0
- package/dist/locale/lv.js +134 -0
- package/dist/locale/lv.min.js +2 -0
- package/dist/locale/lv.min.js.map +1 -0
- package/dist/locale/lv.min.mjs +2 -0
- package/dist/locale/lv.min.mjs.map +1 -0
- package/dist/locale/lv.mjs +124 -0
- package/dist/locale/mn.js +135 -0
- package/dist/locale/mn.min.js +2 -0
- package/dist/locale/mn.min.js.map +1 -0
- package/dist/locale/mn.min.mjs +2 -0
- package/dist/locale/mn.min.mjs.map +1 -0
- package/dist/locale/mn.mjs +125 -0
- package/dist/locale/nb-no.js +134 -0
- package/dist/locale/nb-no.min.js +2 -0
- package/dist/locale/nb-no.min.js.map +1 -0
- package/dist/locale/nb-no.min.mjs +2 -0
- package/dist/locale/nb-no.min.mjs.map +1 -0
- package/dist/locale/nb-no.mjs +124 -0
- package/dist/locale/nl.js +134 -0
- package/dist/locale/nl.min.js +2 -0
- package/dist/locale/nl.min.js.map +1 -0
- package/dist/locale/nl.min.mjs +2 -0
- package/dist/locale/nl.min.mjs.map +1 -0
- package/dist/locale/nl.mjs +124 -0
- package/dist/locale/pa.js +134 -0
- package/dist/locale/pa.min.js +2 -0
- package/dist/locale/pa.min.js.map +1 -0
- package/dist/locale/pa.min.mjs +2 -0
- package/dist/locale/pa.min.mjs.map +1 -0
- package/dist/locale/pa.mjs +124 -0
- package/dist/locale/pl.js +135 -0
- package/dist/locale/pl.min.js +2 -0
- package/dist/locale/pl.min.js.map +1 -0
- package/dist/locale/pl.min.mjs +2 -0
- package/dist/locale/pl.min.mjs.map +1 -0
- package/dist/locale/pl.mjs +125 -0
- package/dist/locale/pt-br.js +134 -0
- package/dist/locale/pt-br.min.js +2 -0
- package/dist/locale/pt-br.min.js.map +1 -0
- package/dist/locale/pt-br.min.mjs +2 -0
- package/dist/locale/pt-br.min.mjs.map +1 -0
- package/dist/locale/pt-br.mjs +124 -0
- package/dist/locale/pt.js +134 -0
- package/dist/locale/pt.min.js +2 -0
- package/dist/locale/pt.min.js.map +1 -0
- package/dist/locale/pt.min.mjs +2 -0
- package/dist/locale/pt.min.mjs.map +1 -0
- package/dist/locale/pt.mjs +124 -0
- package/dist/locale/ro.js +134 -0
- package/dist/locale/ro.min.js +2 -0
- package/dist/locale/ro.min.js.map +1 -0
- package/dist/locale/ro.min.mjs +2 -0
- package/dist/locale/ro.min.mjs.map +1 -0
- package/dist/locale/ro.mjs +124 -0
- package/dist/locale/ru.js +135 -0
- package/dist/locale/ru.min.js +2 -0
- package/dist/locale/ru.min.js.map +1 -0
- package/dist/locale/ru.min.mjs +2 -0
- package/dist/locale/ru.min.mjs.map +1 -0
- package/dist/locale/ru.mjs +125 -0
- package/dist/locale/sk.js +137 -0
- package/dist/locale/sk.min.js +2 -0
- package/dist/locale/sk.min.js.map +1 -0
- package/dist/locale/sk.min.mjs +2 -0
- package/dist/locale/sk.min.mjs.map +1 -0
- package/dist/locale/sk.mjs +127 -0
- package/dist/locale/sl.js +135 -0
- package/dist/locale/sl.min.js +2 -0
- package/dist/locale/sl.min.js.map +1 -0
- package/dist/locale/sl.min.mjs +2 -0
- package/dist/locale/sl.min.mjs.map +1 -0
- package/dist/locale/sl.mjs +125 -0
- package/dist/locale/sr.js +135 -0
- package/dist/locale/sr.min.js +2 -0
- package/dist/locale/sr.min.js.map +1 -0
- package/dist/locale/sr.min.mjs +2 -0
- package/dist/locale/sr.min.mjs.map +1 -0
- package/dist/locale/sr.mjs +125 -0
- package/dist/locale/sv.js +134 -0
- package/dist/locale/sv.min.js +2 -0
- package/dist/locale/sv.min.js.map +1 -0
- package/dist/locale/sv.min.mjs +2 -0
- package/dist/locale/sv.min.mjs.map +1 -0
- package/dist/locale/sv.mjs +124 -0
- package/dist/locale/ta.js +134 -0
- package/dist/locale/ta.min.js +2 -0
- package/dist/locale/ta.min.js.map +1 -0
- package/dist/locale/ta.min.mjs +2 -0
- package/dist/locale/ta.min.mjs.map +1 -0
- package/dist/locale/ta.mjs +124 -0
- package/dist/locale/th.js +134 -0
- package/dist/locale/th.min.js +2 -0
- package/dist/locale/th.min.js.map +1 -0
- package/dist/locale/th.min.mjs +2 -0
- package/dist/locale/th.min.mjs.map +1 -0
- package/dist/locale/th.mjs +124 -0
- package/dist/locale/tk.js +134 -0
- package/dist/locale/tk.min.js +2 -0
- package/dist/locale/tk.min.js.map +1 -0
- package/dist/locale/tk.min.mjs +2 -0
- package/dist/locale/tk.min.mjs.map +1 -0
- package/dist/locale/tk.mjs +124 -0
- package/dist/locale/tr.js +134 -0
- package/dist/locale/tr.min.js +2 -0
- package/dist/locale/tr.min.js.map +1 -0
- package/dist/locale/tr.min.mjs +2 -0
- package/dist/locale/tr.min.mjs.map +1 -0
- package/dist/locale/tr.mjs +124 -0
- package/dist/locale/ug-cn.js +134 -0
- package/dist/locale/ug-cn.min.js +2 -0
- package/dist/locale/ug-cn.min.js.map +1 -0
- package/dist/locale/ug-cn.min.mjs +2 -0
- package/dist/locale/ug-cn.min.mjs.map +1 -0
- package/dist/locale/ug-cn.mjs +124 -0
- package/dist/locale/uk.js +135 -0
- package/dist/locale/uk.min.js +2 -0
- package/dist/locale/uk.min.js.map +1 -0
- package/dist/locale/uk.min.mjs +2 -0
- package/dist/locale/uk.min.mjs.map +1 -0
- package/dist/locale/uk.mjs +125 -0
- package/dist/locale/uz-uz.js +135 -0
- package/dist/locale/uz-uz.min.js +2 -0
- package/dist/locale/uz-uz.min.js.map +1 -0
- package/dist/locale/uz-uz.min.mjs +2 -0
- package/dist/locale/uz-uz.min.mjs.map +1 -0
- package/dist/locale/uz-uz.mjs +125 -0
- package/dist/locale/vi.js +134 -0
- package/dist/locale/vi.min.js +2 -0
- package/dist/locale/vi.min.js.map +1 -0
- package/dist/locale/vi.min.mjs +2 -0
- package/dist/locale/vi.min.mjs.map +1 -0
- package/dist/locale/vi.mjs +124 -0
- package/dist/locale/zh-cn.js +135 -0
- package/dist/locale/zh-cn.min.js +2 -0
- package/dist/locale/zh-cn.min.js.map +1 -0
- package/dist/locale/zh-cn.min.mjs +2 -0
- package/dist/locale/zh-cn.min.mjs.map +1 -0
- package/dist/locale/zh-cn.mjs +125 -0
- package/dist/locale/zh-tw.js +134 -0
- package/dist/locale/zh-tw.min.js +2 -0
- package/dist/locale/zh-tw.min.js.map +1 -0
- package/dist/locale/zh-tw.min.mjs +2 -0
- package/dist/locale/zh-tw.min.mjs.map +1 -0
- package/dist/locale/zh-tw.mjs +124 -0
- package/es/components/alert/index.d.ts +5 -5
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.vue.d.ts +5 -5
- package/es/components/avatar/index.d.ts +1 -1
- package/es/components/avatar/src/avatar.d.ts +3 -1
- package/es/components/avatar/src/avatar.mjs +1 -1
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/avatar/src/avatar.vue.d.ts +1 -1
- package/es/components/avatar/src/avatar.vue_vue_type_script_lang.mjs +13 -8
- package/es/components/avatar/src/avatar.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/avatar/src/avatar.vue_vue_type_template_id_46e3f365_lang.mjs.map +1 -1
- package/es/components/button/index.d.ts +50 -13
- package/es/components/button/index.mjs +1 -1
- package/es/components/button/src/button-group.d.ts +1 -1
- package/es/components/button/src/button-group.vue.d.ts +18 -5
- package/es/components/button/src/button-group.vue_vue_type_script_lang.mjs +6 -0
- package/es/components/button/src/button-group.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/button/src/button-group.vue_vue_type_template_id_1bab7d77_lang.mjs +5 -4
- package/es/components/button/src/button-group.vue_vue_type_template_id_1bab7d77_lang.mjs.map +1 -1
- package/es/components/button/src/button.d.ts +1 -2
- package/es/components/button/src/button.mjs +1 -2
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button.vue.d.ts +14 -3
- package/es/components/button/src/button.vue_vue_type_script_lang.mjs +4 -1
- package/es/components/button/src/button.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/button/src/button.vue_vue_type_template_id_802c5c76_lang.mjs +4 -4
- package/es/components/button/src/button.vue_vue_type_template_id_802c5c76_lang.mjs.map +1 -1
- package/es/components/card/index.d.ts +13 -1
- package/es/components/card/src/card.d.ts +2 -0
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card.vue.d.ts +13 -1
- package/es/components/card/src/card.vue_vue_type_script_lang.mjs +9 -1
- package/es/components/card/src/card.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/card/src/card.vue_vue_type_template_id_7a6bdf05_lang.mjs +8 -9
- package/es/components/card/src/card.vue_vue_type_template_id_7a6bdf05_lang.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +48 -44
- package/es/components/cascader/src/index.vue.d.ts +24 -22
- package/es/components/check-tag/index.d.ts +21 -9
- package/es/components/check-tag/index.mjs +3 -2
- package/es/components/check-tag/index.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag.d.ts +12 -0
- package/es/components/check-tag/src/check-tag.mjs +16 -0
- package/es/components/check-tag/src/check-tag.mjs.map +1 -0
- package/es/components/check-tag/src/check-tag.vue.d.ts +29 -0
- package/es/components/check-tag/src/check-tag.vue_vue_type_script_lang.mjs +25 -0
- package/es/components/check-tag/src/check-tag.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/check-tag/src/{index.vue_vue_type_template_id_58558910_lang.mjs → check-tag.vue_vue_type_template_id_d949910a_lang.mjs} +2 -5
- package/es/components/check-tag/src/check-tag.vue_vue_type_template_id_d949910a_lang.mjs.map +1 -0
- package/es/components/check-tag/src/check-tag2.mjs +7 -0
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -0
- package/es/components/config-provider/index.d.ts +6 -1
- package/es/components/config-provider/src/config-provider.d.ts +7 -1
- package/es/components/config-provider/src/config-provider.mjs +4 -0
- package/es/components/config-provider/src/config-provider.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +2 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_script_lang.mjs +10 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_template_id_78e07aa7_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +2 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_script_lang.mjs +12 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_template_id_62b45ab2_lang.mjs.map +1 -1
- package/es/components/descriptions/index.d.ts +4 -4
- package/es/components/descriptions/src/index.vue.d.ts +4 -4
- package/es/components/divider/index.d.ts +14 -1
- package/es/components/divider/src/divider.d.ts +2 -0
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider.vue.d.ts +15 -1
- package/es/components/divider/src/divider.vue_vue_type_script_lang.mjs +16 -2
- package/es/components/divider/src/divider.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/divider/src/divider.vue_vue_type_template_id_6ddd3543_lang.mjs +3 -3
- package/es/components/divider/src/divider.vue_vue_type_template_id_6ddd3543_lang.mjs.map +1 -1
- package/es/components/drawer/src/drawer.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/drawer/src/drawer.vue_vue_type_template_id_e0557736_lang.mjs +7 -0
- package/es/components/drawer/src/drawer.vue_vue_type_template_id_e0557736_lang.mjs.map +1 -1
- package/es/components/dropdown/index.d.ts +17 -11
- package/es/components/dropdown/src/dropdown.d.ts +2 -0
- package/es/components/dropdown/src/dropdown.mjs +4 -0
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +17 -11
- package/es/components/dropdown/src/dropdown.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.mjs +3 -2
- package/es/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.mjs.map +1 -1
- package/es/components/empty/index.d.ts +11 -0
- package/es/components/empty/src/empty.d.ts +2 -0
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty.vue.d.ts +11 -0
- package/es/components/empty/src/empty.vue_vue_type_script_lang.mjs +3 -0
- package/es/components/empty/src/empty.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/empty/src/empty.vue_vue_type_template_id_10d211eb_lang.mjs +20 -19
- package/es/components/empty/src/empty.vue_vue_type_template_id_10d211eb_lang.mjs.map +1 -1
- package/es/components/icon/index.d.ts +11 -0
- package/es/components/icon/src/icon.d.ts +2 -0
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon.vue.d.ts +11 -0
- package/es/components/icon/src/icon.vue_vue_type_script_lang.mjs +14 -15
- package/es/components/icon/src/icon.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/icon/src/icon.vue_vue_type_template_id_89b755b6_lang.mjs +1 -1
- package/es/components/icon/src/icon.vue_vue_type_template_id_89b755b6_lang.mjs.map +1 -1
- package/es/components/image/src/image.vue_vue_type_script_lang.mjs +14 -3
- package/es/components/image/src/image.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/image/src/image.vue_vue_type_template_id_34467287_lang.mjs.map +1 -1
- package/es/components/index.mjs +3 -1
- package/es/components/index.mjs.map +1 -1
- package/es/components/input/index.d.ts +3 -3
- package/es/components/input/src/input.d.ts +1 -1
- package/es/components/input/src/input.vue.d.ts +3 -3
- package/es/components/input-number/index.d.ts +6 -6
- package/es/components/input-number/src/input-number.vue.d.ts +6 -6
- package/es/components/input-number/src/input-number.vue_vue_type_script_lang.mjs +1 -1
- package/es/components/input-number/src/input-number.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/input-number/src/input-number.vue_vue_type_template_id_dec60af6_lang.mjs.map +1 -1
- package/es/components/link/index.d.ts +11 -0
- package/es/components/link/src/link.d.ts +2 -0
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link.vue.d.ts +11 -0
- package/es/components/link/src/link.vue_vue_type_script_lang.mjs +4 -0
- package/es/components/link/src/link.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/link/src/link.vue_vue_type_template_id_6a422645_lang.mjs +7 -8
- package/es/components/link/src/link.vue_vue_type_template_id_6a422645_lang.mjs.map +1 -1
- package/es/components/menu/index.d.ts +2 -2
- package/es/components/menu/src/menu.d.ts +2 -2
- package/es/components/pagination/index.d.ts +2 -2
- package/es/components/pagination/src/pagination.d.ts +2 -2
- package/es/components/popover/index.d.ts +32 -26
- package/es/components/popover/src/index.vue.d.ts +16 -13
- package/es/components/popover/src/index.vue_vue_type_script_lang.mjs +6 -1
- package/es/components/popover/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.mjs.map +1 -1
- package/es/components/radio/index.d.ts +25 -20
- package/es/components/radio/src/radio-button.d.ts +1 -1
- package/es/components/radio/src/radio-button.vue.d.ts +5 -4
- package/es/components/radio/src/radio-group.d.ts +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +5 -4
- package/es/components/radio/src/radio.d.ts +2 -2
- package/es/components/radio/src/radio.vue.d.ts +5 -4
- package/es/components/rate/index.d.ts +11 -0
- package/es/components/rate/src/rate.d.ts +2 -0
- package/es/components/rate/src/rate.mjs +1 -1
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate.vue.d.ts +11 -0
- package/es/components/rate/src/rate.vue_vue_type_script_lang.mjs +7 -5
- package/es/components/rate/src/rate.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/rate/src/rate.vue_vue_type_template_id_38c42df6_lang.mjs +7 -7
- package/es/components/rate/src/rate.vue_vue_type_template_id_38c42df6_lang.mjs.map +1 -1
- package/es/components/result/index.d.ts +11 -0
- package/es/components/result/src/result.d.ts +2 -0
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result.vue.d.ts +11 -0
- package/es/components/result/src/result.vue_vue_type_script_lang.mjs +4 -0
- package/es/components/result/src/result.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/result/src/result.vue_vue_type_template_id_263c10e5_lang.mjs +24 -25
- package/es/components/result/src/result.vue_vue_type_template_id_263c10e5_lang.mjs.map +1 -1
- package/es/components/row/index.d.ts +3 -3
- package/es/components/row/src/row.d.ts +7 -6
- package/es/components/row/src/row.mjs +9 -6
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/scrollbar/index.d.ts +2 -2
- package/es/components/scrollbar/src/bar.vue_vue_type_script_lang.mjs +11 -4
- package/es/components/scrollbar/src/bar.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.vue_vue_type_template_id_2f63f10a_lang.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/es/components/select/index.d.ts +15 -13
- package/es/components/select/src/select.vue.d.ts +15 -13
- package/es/components/select/src/useSelect.d.ts +13 -11
- package/es/components/select-v2/index.d.ts +38 -28
- package/es/components/select-v2/src/defaults.d.ts +4 -1
- package/es/components/select-v2/src/defaults.mjs +4 -1
- package/es/components/select-v2/src/defaults.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +19 -14
- package/es/components/select-v2/src/useSelect.d.ts +13 -11
- package/es/components/select-v2/src/useSelect.mjs +1 -1
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/space/index.d.ts +2 -2
- package/es/components/space/src/space.d.ts +2 -2
- package/es/components/steps/index.d.ts +2 -2
- package/es/components/steps/src/index.vue.d.ts +2 -2
- package/es/components/switch/index.d.ts +11 -0
- package/es/components/switch/src/switch.vue.d.ts +11 -0
- package/es/components/switch/src/switch.vue_vue_type_script_lang.mjs +5 -3
- package/es/components/switch/src/switch.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/switch/src/switch.vue_vue_type_template_id_538fbc85_lang.mjs +21 -21
- package/es/components/switch/src/switch.vue_vue_type_template_id_538fbc85_lang.mjs.map +1 -1
- package/es/components/table/index.d.ts +2 -2
- package/es/components/table/src/filter-panel.vue.d.ts +13 -11
- package/es/components/table/src/store/index.mjs +1 -1
- package/es/components/table/src/store/index.mjs.map +1 -1
- package/es/components/table/src/store/watcher.mjs +0 -5
- package/es/components/table/src/store/watcher.mjs.map +1 -1
- package/es/components/table/src/table.vue.d.ts +2 -2
- package/es/components/table/src/util.mjs +1 -1
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/tag/index.d.ts +3 -3
- package/es/components/tag/src/tag.d.ts +1 -1
- package/es/components/tag/src/tag.vue.d.ts +3 -3
- package/es/components/time-picker/src/common/picker.vue.d.ts +16 -12
- package/es/components/time-picker/src/common/picker.vue_vue_type_script_lang.mjs +12 -1
- package/es/components/time-picker/src/common/picker.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.mjs +5 -4
- package/es/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_lang.mjs +10 -10
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_template_id_4fb3c576_lang.mjs +2 -2
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_template_id_4fb3c576_lang.mjs.map +1 -1
- package/es/components/timeline/index.d.ts +78 -106
- package/es/components/timeline/index.mjs +7 -7
- package/es/components/timeline/index.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item.d.ts +15 -0
- package/es/components/timeline/src/timeline-item.mjs +43 -0
- package/es/components/timeline/src/timeline-item.mjs.map +1 -0
- package/es/components/timeline/src/timeline-item.vue.d.ts +54 -0
- package/es/components/timeline/src/timeline-item.vue_vue_type_script_lang.mjs +22 -0
- package/es/components/timeline/src/timeline-item.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/timeline/src/timeline-item.vue_vue_type_template_id_1db6c36b_lang.mjs +60 -0
- package/es/components/timeline/src/timeline-item.vue_vue_type_template_id_1db6c36b_lang.mjs.map +1 -0
- package/es/components/timeline/src/timeline-item2.mjs +7 -0
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -0
- package/es/components/timeline/src/{index.vue.d.ts → timeline.d.ts} +3 -2
- package/es/components/timeline/src/timeline.mjs +17 -0
- package/es/components/timeline/src/timeline.mjs.map +1 -0
- package/es/components/tooltip/index.d.ts +5 -4
- package/es/components/tooltip/src/content.vue.d.ts +4 -4
- package/es/components/tooltip/src/tooltip.vue.d.ts +5 -4
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_lang.mjs +1 -0
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.vue_vue_type_template_id_694d1617_lang.mjs.map +1 -1
- package/es/components/virtual-list/src/builders/build-list.d.ts +2 -2
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
- package/es/defaults.d.ts +4 -1
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-common-props/index.d.ts +1 -1
- package/es/hooks/use-common-props/index.mjs +2 -2
- package/es/hooks/use-common-props/index.mjs.map +1 -1
- package/es/hooks/use-global-config/index.d.ts +4 -1
- package/es/hooks/use-namespace/index.d.ts +11 -0
- package/es/hooks/use-namespace/index.mjs +43 -0
- package/es/hooks/use-namespace/index.mjs.map +1 -0
- package/es/index.d.ts +4 -1
- package/es/index.mjs +4 -1
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.d.ts +5 -5
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +5 -5
- package/lib/components/avatar/index.d.ts +1 -1
- package/lib/components/avatar/src/avatar.d.ts +3 -1
- package/lib/components/avatar/src/avatar.js +1 -1
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/avatar/src/avatar.vue.d.ts +1 -1
- package/lib/components/avatar/src/avatar.vue_vue_type_script_lang.js +13 -8
- package/lib/components/avatar/src/avatar.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/avatar/src/avatar.vue_vue_type_template_id_46e3f365_lang.js.map +1 -1
- package/lib/components/button/index.d.ts +50 -13
- package/lib/components/button/index.js +0 -1
- package/lib/components/button/index.js.map +1 -1
- package/lib/components/button/src/button-group.d.ts +1 -1
- package/lib/components/button/src/button-group.vue.d.ts +18 -5
- package/lib/components/button/src/button-group.vue_vue_type_script_lang.js +6 -0
- package/lib/components/button/src/button-group.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/button/src/button-group.vue_vue_type_template_id_1bab7d77_lang.js +4 -3
- package/lib/components/button/src/button-group.vue_vue_type_template_id_1bab7d77_lang.js.map +1 -1
- package/lib/components/button/src/button.d.ts +1 -2
- package/lib/components/button/src/button.js +0 -2
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button.vue.d.ts +14 -3
- package/lib/components/button/src/button.vue_vue_type_script_lang.js +9 -6
- package/lib/components/button/src/button.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/button/src/button.vue_vue_type_template_id_802c5c76_lang.js +4 -4
- package/lib/components/button/src/button.vue_vue_type_template_id_802c5c76_lang.js.map +1 -1
- package/lib/components/card/index.d.ts +13 -1
- package/lib/components/card/src/card.d.ts +2 -0
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card.vue.d.ts +13 -1
- package/lib/components/card/src/card.vue_vue_type_script_lang.js +9 -1
- package/lib/components/card/src/card.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/card/src/card.vue_vue_type_template_id_7a6bdf05_lang.js +8 -9
- package/lib/components/card/src/card.vue_vue_type_template_id_7a6bdf05_lang.js.map +1 -1
- package/lib/components/cascader/index.d.ts +48 -44
- package/lib/components/cascader/src/index.vue.d.ts +24 -22
- package/lib/components/check-tag/index.d.ts +21 -9
- package/lib/components/check-tag/index.js +6 -3
- package/lib/components/check-tag/index.js.map +1 -1
- package/lib/components/check-tag/src/check-tag.d.ts +12 -0
- package/lib/components/check-tag/src/check-tag.js +21 -0
- package/lib/components/check-tag/src/check-tag.js.map +1 -0
- package/lib/components/check-tag/src/check-tag.vue.d.ts +29 -0
- package/lib/components/check-tag/src/{index.vue_vue_type_script_lang.js → check-tag.vue_vue_type_script_lang.js} +8 -10
- package/lib/components/check-tag/src/check-tag.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/check-tag/src/{index.vue_vue_type_template_id_58558910_lang.js → check-tag.vue_vue_type_template_id_d949910a_lang.js} +2 -5
- package/lib/components/check-tag/src/check-tag.vue_vue_type_template_id_d949910a_lang.js.map +1 -0
- package/lib/components/check-tag/src/check-tag2.js +12 -0
- package/lib/components/check-tag/src/check-tag2.js.map +1 -0
- package/lib/components/config-provider/index.d.ts +6 -1
- package/lib/components/config-provider/src/config-provider.d.ts +7 -1
- package/lib/components/config-provider/src/config-provider.js +4 -0
- package/lib/components/config-provider/src/config-provider.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +2 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_script_lang.js +10 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_template_id_78e07aa7_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +2 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_script_lang.js +12 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_template_id_62b45ab2_lang.js.map +1 -1
- package/lib/components/descriptions/index.d.ts +4 -4
- package/lib/components/descriptions/src/index.vue.d.ts +4 -4
- package/lib/components/divider/index.d.ts +14 -1
- package/lib/components/divider/src/divider.d.ts +2 -0
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider.vue.d.ts +15 -1
- package/lib/components/divider/src/divider.vue_vue_type_script_lang.js +15 -1
- package/lib/components/divider/src/divider.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/divider/src/divider.vue_vue_type_template_id_6ddd3543_lang.js +3 -3
- package/lib/components/divider/src/divider.vue_vue_type_template_id_6ddd3543_lang.js.map +1 -1
- package/lib/components/drawer/src/drawer.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/drawer/src/drawer.vue_vue_type_template_id_e0557736_lang.js +7 -0
- package/lib/components/drawer/src/drawer.vue_vue_type_template_id_e0557736_lang.js.map +1 -1
- package/lib/components/dropdown/index.d.ts +17 -11
- package/lib/components/dropdown/src/dropdown.d.ts +2 -0
- package/lib/components/dropdown/src/dropdown.js +4 -0
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +17 -11
- package/lib/components/dropdown/src/dropdown.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.js +3 -2
- package/lib/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.js.map +1 -1
- package/lib/components/empty/index.d.ts +11 -0
- package/lib/components/empty/src/empty.d.ts +2 -0
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty.vue.d.ts +11 -0
- package/lib/components/empty/src/empty.vue_vue_type_script_lang.js +3 -0
- package/lib/components/empty/src/empty.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/empty/src/empty.vue_vue_type_template_id_10d211eb_lang.js +19 -18
- package/lib/components/empty/src/empty.vue_vue_type_template_id_10d211eb_lang.js.map +1 -1
- package/lib/components/icon/index.d.ts +11 -0
- package/lib/components/icon/src/icon.d.ts +2 -0
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon.vue.d.ts +11 -0
- package/lib/components/icon/src/icon.vue_vue_type_script_lang.js +13 -14
- package/lib/components/icon/src/icon.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/icon/src/icon.vue_vue_type_template_id_89b755b6_lang.js +1 -1
- package/lib/components/icon/src/icon.vue_vue_type_template_id_89b755b6_lang.js.map +1 -1
- package/lib/components/image/src/image.vue_vue_type_script_lang.js +14 -3
- package/lib/components/image/src/image.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/image/src/image.vue_vue_type_template_id_34467287_lang.js.map +1 -1
- package/lib/components/index.js +5 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/index.d.ts +3 -3
- package/lib/components/input/src/input.d.ts +1 -1
- package/lib/components/input/src/input.vue.d.ts +3 -3
- package/lib/components/input-number/index.d.ts +6 -6
- package/lib/components/input-number/src/input-number.vue.d.ts +6 -6
- package/lib/components/input-number/src/input-number.vue_vue_type_script_lang.js +1 -1
- package/lib/components/input-number/src/input-number.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/input-number/src/input-number.vue_vue_type_template_id_dec60af6_lang.js.map +1 -1
- package/lib/components/link/index.d.ts +11 -0
- package/lib/components/link/src/link.d.ts +2 -0
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link.vue.d.ts +11 -0
- package/lib/components/link/src/link.vue_vue_type_script_lang.js +4 -0
- package/lib/components/link/src/link.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/link/src/link.vue_vue_type_template_id_6a422645_lang.js +7 -8
- package/lib/components/link/src/link.vue_vue_type_template_id_6a422645_lang.js.map +1 -1
- package/lib/components/menu/index.d.ts +2 -2
- package/lib/components/menu/src/menu.d.ts +2 -2
- package/lib/components/pagination/index.d.ts +2 -2
- package/lib/components/pagination/src/pagination.d.ts +2 -2
- package/lib/components/popover/index.d.ts +32 -26
- package/lib/components/popover/src/index.vue.d.ts +16 -13
- package/lib/components/popover/src/index.vue_vue_type_script_lang.js +6 -1
- package/lib/components/popover/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.js.map +1 -1
- package/lib/components/radio/index.d.ts +25 -20
- package/lib/components/radio/src/radio-button.d.ts +1 -1
- package/lib/components/radio/src/radio-button.vue.d.ts +5 -4
- package/lib/components/radio/src/radio-group.d.ts +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +5 -4
- package/lib/components/radio/src/radio.d.ts +2 -2
- package/lib/components/radio/src/radio.vue.d.ts +5 -4
- package/lib/components/rate/index.d.ts +11 -0
- package/lib/components/rate/src/rate.d.ts +2 -0
- package/lib/components/rate/src/rate.js +1 -1
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +11 -0
- package/lib/components/rate/src/rate.vue_vue_type_script_lang.js +7 -5
- package/lib/components/rate/src/rate.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/rate/src/rate.vue_vue_type_template_id_38c42df6_lang.js +7 -7
- package/lib/components/rate/src/rate.vue_vue_type_template_id_38c42df6_lang.js.map +1 -1
- package/lib/components/result/index.d.ts +11 -0
- package/lib/components/result/src/result.d.ts +2 -0
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result.vue.d.ts +11 -0
- package/lib/components/result/src/result.vue_vue_type_script_lang.js +4 -0
- package/lib/components/result/src/result.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/result/src/result.vue_vue_type_template_id_263c10e5_lang.js +23 -24
- package/lib/components/result/src/result.vue_vue_type_template_id_263c10e5_lang.js.map +1 -1
- package/lib/components/row/index.d.ts +3 -3
- package/lib/components/row/src/row.d.ts +7 -6
- package/lib/components/row/src/row.js +9 -6
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/scrollbar/index.d.ts +2 -2
- package/lib/components/scrollbar/src/bar.vue_vue_type_script_lang.js +10 -3
- package/lib/components/scrollbar/src/bar.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/scrollbar/src/bar.vue_vue_type_template_id_2f63f10a_lang.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/lib/components/select/index.d.ts +15 -13
- package/lib/components/select/src/select.vue.d.ts +15 -13
- package/lib/components/select/src/useSelect.d.ts +13 -11
- package/lib/components/select-v2/index.d.ts +38 -28
- package/lib/components/select-v2/src/defaults.d.ts +4 -1
- package/lib/components/select-v2/src/defaults.js +4 -1
- package/lib/components/select-v2/src/defaults.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +19 -14
- package/lib/components/select-v2/src/useSelect.d.ts +13 -11
- package/lib/components/select-v2/src/useSelect.js +1 -1
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/space/index.d.ts +2 -2
- package/lib/components/space/src/space.d.ts +2 -2
- package/lib/components/steps/index.d.ts +2 -2
- package/lib/components/steps/src/index.vue.d.ts +2 -2
- package/lib/components/switch/index.d.ts +11 -0
- package/lib/components/switch/src/switch.vue.d.ts +11 -0
- package/lib/components/switch/src/switch.vue_vue_type_script_lang.js +5 -3
- package/lib/components/switch/src/switch.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/switch/src/switch.vue_vue_type_template_id_538fbc85_lang.js +21 -21
- package/lib/components/switch/src/switch.vue_vue_type_template_id_538fbc85_lang.js.map +1 -1
- package/lib/components/table/index.d.ts +2 -2
- package/lib/components/table/src/filter-panel.vue.d.ts +13 -11
- package/lib/components/table/src/store/index.js +1 -1
- package/lib/components/table/src/store/index.js.map +1 -1
- package/lib/components/table/src/store/watcher.js +0 -5
- package/lib/components/table/src/store/watcher.js.map +1 -1
- package/lib/components/table/src/table.vue.d.ts +2 -2
- package/lib/components/table/src/util.js +1 -1
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/tag/index.d.ts +3 -3
- package/lib/components/tag/src/tag.d.ts +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +3 -3
- package/lib/components/time-picker/src/common/picker.vue.d.ts +16 -12
- package/lib/components/time-picker/src/common/picker.vue_vue_type_script_lang.js +12 -1
- package/lib/components/time-picker/src/common/picker.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.js +5 -4
- package/lib/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_lang.js +10 -10
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_template_id_4fb3c576_lang.js +2 -2
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_template_id_4fb3c576_lang.js.map +1 -1
- package/lib/components/timeline/index.d.ts +78 -106
- package/lib/components/timeline/index.js +8 -7
- package/lib/components/timeline/index.js.map +1 -1
- package/lib/components/timeline/src/timeline-item.d.ts +15 -0
- package/lib/components/timeline/src/timeline-item.js +47 -0
- package/lib/components/timeline/src/timeline-item.js.map +1 -0
- package/lib/components/timeline/src/timeline-item.vue.d.ts +54 -0
- package/lib/components/timeline/src/timeline-item.vue_vue_type_script_lang.js +26 -0
- package/lib/components/timeline/src/timeline-item.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/timeline/src/timeline-item.vue_vue_type_template_id_1db6c36b_lang.js +64 -0
- package/lib/components/timeline/src/timeline-item.vue_vue_type_template_id_1db6c36b_lang.js.map +1 -0
- package/lib/components/timeline/src/timeline-item2.js +12 -0
- package/lib/components/timeline/src/timeline-item2.js.map +1 -0
- package/lib/components/timeline/src/{index.vue.d.ts → timeline.d.ts} +3 -2
- package/lib/components/timeline/src/timeline.js +21 -0
- package/lib/components/timeline/src/timeline.js.map +1 -0
- package/lib/components/tooltip/index.d.ts +5 -4
- package/lib/components/tooltip/src/content.vue.d.ts +4 -4
- package/lib/components/tooltip/src/tooltip.vue.d.ts +5 -4
- package/lib/components/tooltip/src/tooltip.vue_vue_type_script_lang.js +1 -0
- package/lib/components/tooltip/src/tooltip.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.vue_vue_type_template_id_694d1617_lang.js.map +1 -1
- package/lib/components/virtual-list/src/builders/build-list.d.ts +2 -2
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
- package/lib/defaults.d.ts +4 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-common-props/index.d.ts +1 -1
- package/lib/hooks/use-common-props/index.js +2 -2
- package/lib/hooks/use-common-props/index.js.map +1 -1
- package/lib/hooks/use-global-config/index.d.ts +4 -1
- package/lib/hooks/use-namespace/index.d.ts +11 -0
- package/lib/hooks/use-namespace/index.js +47 -0
- package/lib/hooks/use-namespace/index.js.map +1 -0
- package/lib/index.d.ts +4 -1
- package/lib/index.js +7 -1
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-drawer.css +1 -1
- package/theme-chalk/el-dropdown.css +1 -1
- package/theme-chalk/el-popper.css +1 -1
- package/theme-chalk/el-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/drawer.scss +6 -0
- package/theme-chalk/src/dropdown.scss +1 -0
- package/theme-chalk/src/popper.scss +1 -1
- package/theme-chalk/src/select.scss +3 -0
- package/web-types.json +1 -1
- package/es/components/check-tag/src/index.mjs +0 -7
- package/es/components/check-tag/src/index.mjs.map +0 -1
- package/es/components/check-tag/src/index.vue.d.ts +0 -26
- package/es/components/check-tag/src/index.vue_vue_type_script_lang.mjs +0 -26
- package/es/components/check-tag/src/index.vue_vue_type_script_lang.mjs.map +0 -1
- package/es/components/check-tag/src/index.vue_vue_type_template_id_58558910_lang.mjs.map +0 -1
- package/es/components/timeline/src/index.mjs +0 -5
- package/es/components/timeline/src/index.mjs.map +0 -1
- package/es/components/timeline/src/index.vue_vue_type_script_lang.mjs +0 -17
- package/es/components/timeline/src/index.vue_vue_type_script_lang.mjs.map +0 -1
- package/es/components/timeline/src/item.mjs +0 -7
- package/es/components/timeline/src/item.mjs.map +0 -1
- package/es/components/timeline/src/item.vue.d.ts +0 -70
- package/es/components/timeline/src/item.vue_vue_type_script_lang.mjs +0 -53
- package/es/components/timeline/src/item.vue_vue_type_script_lang.mjs.map +0 -1
- package/es/components/timeline/src/item.vue_vue_type_template_id_174d5b12_lang.mjs +0 -59
- package/es/components/timeline/src/item.vue_vue_type_template_id_174d5b12_lang.mjs.map +0 -1
- package/lib/components/check-tag/src/index.js +0 -13
- package/lib/components/check-tag/src/index.js.map +0 -1
- package/lib/components/check-tag/src/index.vue.d.ts +0 -26
- package/lib/components/check-tag/src/index.vue_vue_type_script_lang.js.map +0 -1
- package/lib/components/check-tag/src/index.vue_vue_type_template_id_58558910_lang.js.map +0 -1
- package/lib/components/timeline/src/index.js +0 -10
- package/lib/components/timeline/src/index.js.map +0 -1
- package/lib/components/timeline/src/index.vue_vue_type_script_lang.js +0 -21
- package/lib/components/timeline/src/index.vue_vue_type_script_lang.js.map +0 -1
- package/lib/components/timeline/src/item.js +0 -12
- package/lib/components/timeline/src/item.js.map +0 -1
- package/lib/components/timeline/src/item.vue.d.ts +0 -70
- package/lib/components/timeline/src/item.vue_vue_type_script_lang.js +0 -57
- package/lib/components/timeline/src/item.vue_vue_type_script_lang.js.map +0 -1
- package/lib/components/timeline/src/item.vue_vue_type_template_id_174d5b12_lang.js +0 -63
- package/lib/components/timeline/src/item.vue_vue_type_template_id_174d5b12_lang.js.map +0 -1
|
@@ -3,6 +3,17 @@ export declare const ElResult: import("../../utils/types").SFCWithInstall<import
|
|
|
3
3
|
readonly subTitle: import("../../utils/props").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
|
|
4
4
|
readonly icon: import("../../utils/props").BuildPropReturn<unknown, "info", unknown, "success" | "warning" | "info" | "error", unknown>;
|
|
5
5
|
}, {
|
|
6
|
+
ns: {
|
|
7
|
+
namespace: import("vue").ComputedRef<string>;
|
|
8
|
+
b: (blockSuffix?: string) => string;
|
|
9
|
+
e: (element?: string | undefined) => string;
|
|
10
|
+
m: (modifier?: string | undefined) => string;
|
|
11
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
12
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
13
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
14
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
15
|
+
is: (name: string, state?: boolean) => string;
|
|
16
|
+
};
|
|
6
17
|
resultIcon: import("vue").ComputedRef<{
|
|
7
18
|
class: "icon-success" | "icon-warning" | "icon-error" | "icon-info";
|
|
8
19
|
component: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Component, ExtractPropTypes } from 'vue';
|
|
2
|
+
import type Result from './result.vue';
|
|
2
3
|
export declare const IconMap: {
|
|
3
4
|
readonly success: "icon-success";
|
|
4
5
|
readonly warning: "icon-warning";
|
|
@@ -12,3 +13,4 @@ export declare const resultProps: {
|
|
|
12
13
|
readonly icon: import("element-plus/es/utils/props").BuildPropReturn<unknown, "info", unknown, "success" | "warning" | "info" | "error", unknown>;
|
|
13
14
|
};
|
|
14
15
|
export declare type ResultProps = ExtractPropTypes<typeof resultProps>;
|
|
16
|
+
export declare type ResultInstance = InstanceType<typeof Result>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.js","sources":["../../../../../../packages/components/result/src/result.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils/props'\nimport {\n WarningFilled,\n CircleCheckFilled,\n CircleCloseFilled,\n InfoFilled,\n} from '@element-plus/icons-vue'\nimport type { Component, ExtractPropTypes } from 'vue'\n\nexport const IconMap = {\n success: 'icon-success',\n warning: 'icon-warning',\n error: 'icon-error',\n info: 'icon-info',\n} as const\n\nexport const IconComponentMap: Record<\n typeof IconMap[keyof typeof IconMap],\n Component\n> = {\n [IconMap.success]: CircleCheckFilled,\n [IconMap.warning]: WarningFilled,\n [IconMap.error]: CircleCloseFilled,\n [IconMap.info]: InfoFilled,\n}\n\nexport const resultProps = buildProps({\n title: {\n type: String,\n default: '',\n },\n subTitle: {\n type: String,\n default: '',\n },\n icon: {\n values: ['success', 'warning', 'info', 'error'],\n default: 'info',\n },\n} as const)\n\nexport type ResultProps = ExtractPropTypes<typeof resultProps>\n"],"names":["CircleCheckFilled","WarningFilled","CircleCloseFilled","InfoFilled","buildProps"],"mappings":";;;;;;;AAOY,MAAC,OAAO,GAAG;AACvB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,KAAK,EAAE,YAAY;AACrB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE;AACU,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAGA,0BAAiB;AACtC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAGC,sBAAa;AAClC,EAAE,CAAC,OAAO,CAAC,KAAK,GAAGC,0BAAiB;AACpC,EAAE,CAAC,OAAO,CAAC,IAAI,GAAGC,mBAAU;AAC5B,EAAE;AACU,MAAC,WAAW,GAAGC,gBAAU,CAAC;AACtC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;AACnD,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;;;"}
|
|
1
|
+
{"version":3,"file":"result.js","sources":["../../../../../../packages/components/result/src/result.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils/props'\nimport {\n WarningFilled,\n CircleCheckFilled,\n CircleCloseFilled,\n InfoFilled,\n} from '@element-plus/icons-vue'\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type Result from './result.vue'\n\nexport const IconMap = {\n success: 'icon-success',\n warning: 'icon-warning',\n error: 'icon-error',\n info: 'icon-info',\n} as const\n\nexport const IconComponentMap: Record<\n typeof IconMap[keyof typeof IconMap],\n Component\n> = {\n [IconMap.success]: CircleCheckFilled,\n [IconMap.warning]: WarningFilled,\n [IconMap.error]: CircleCloseFilled,\n [IconMap.info]: InfoFilled,\n}\n\nexport const resultProps = buildProps({\n title: {\n type: String,\n default: '',\n },\n subTitle: {\n type: String,\n default: '',\n },\n icon: {\n values: ['success', 'warning', 'info', 'error'],\n default: 'info',\n },\n} as const)\n\nexport type ResultProps = ExtractPropTypes<typeof resultProps>\n\nexport type ResultInstance = InstanceType<typeof Result>\n"],"names":["CircleCheckFilled","WarningFilled","CircleCloseFilled","InfoFilled","buildProps"],"mappings":";;;;;;;AAOY,MAAC,OAAO,GAAG;AACvB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,KAAK,EAAE,YAAY;AACrB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE;AACU,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAGA,0BAAiB;AACtC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAGC,sBAAa;AAClC,EAAE,CAAC,OAAO,CAAC,KAAK,GAAGC,0BAAiB;AACpC,EAAE,CAAC,OAAO,CAAC,IAAI,GAAGC,mBAAU;AAC5B,EAAE;AACU,MAAC,WAAW,GAAGC,gBAAU,CAAC;AACtC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;AACnD,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;;;"}
|
|
@@ -3,6 +3,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
readonly subTitle: import("../../../utils/props").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
|
|
4
4
|
readonly icon: import("../../../utils/props").BuildPropReturn<unknown, "info", unknown, "success" | "warning" | "info" | "error", unknown>;
|
|
5
5
|
}, {
|
|
6
|
+
ns: {
|
|
7
|
+
namespace: import("vue").ComputedRef<string>;
|
|
8
|
+
b: (blockSuffix?: string) => string;
|
|
9
|
+
e: (element?: string | undefined) => string;
|
|
10
|
+
m: (modifier?: string | undefined) => string;
|
|
11
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
12
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
13
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
14
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
15
|
+
is: (name: string, state?: boolean) => string;
|
|
16
|
+
};
|
|
6
17
|
resultIcon: import("vue").ComputedRef<{
|
|
7
18
|
class: "icon-success" | "icon-warning" | "icon-error" | "icon-info";
|
|
8
19
|
component: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
@@ -3,12 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
+
require('../../../hooks/index.js');
|
|
6
7
|
var result = require('./result.js');
|
|
8
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
7
9
|
|
|
8
10
|
var script = vue.defineComponent({
|
|
9
11
|
name: "ElResult",
|
|
10
12
|
props: result.resultProps,
|
|
11
13
|
setup(props) {
|
|
14
|
+
const ns = index.useNamespace("result");
|
|
12
15
|
const resultIcon = vue.computed(() => {
|
|
13
16
|
const icon = props.icon;
|
|
14
17
|
const iconClass = icon && result.IconMap[icon] ? result.IconMap[icon] : "icon-info";
|
|
@@ -19,6 +22,7 @@ var script = vue.defineComponent({
|
|
|
19
22
|
};
|
|
20
23
|
});
|
|
21
24
|
return {
|
|
25
|
+
ns,
|
|
22
26
|
resultIcon
|
|
23
27
|
};
|
|
24
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.vue_vue_type_script_lang.js","sources":["../../../../../../packages/components/result/src/result.vue"],"sourcesContent":["<template>\n <div class=\"
|
|
1
|
+
{"version":3,"file":"result.vue_vue_type_script_lang.js","sources":["../../../../../../packages/components/result/src/result.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('icon')\">\n <slot name=\"icon\">\n <component\n :is=\"resultIcon.component\"\n v-if=\"resultIcon.component\"\n :class=\"resultIcon.class\"\n />\n </slot>\n </div>\n <div v-if=\"title || $slots.title\" :class=\"ns.e('title')\">\n <slot name=\"title\">\n <p>{{ title }}</p>\n </slot>\n </div>\n <div v-if=\"subTitle || $slots.subTitle\" :class=\"ns.e('subtitle')\">\n <slot name=\"subTitle\">\n <p>{{ subTitle }}</p>\n </slot>\n </div>\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\"></slot>\n </div>\n </div>\n</template>\n<script lang=\"ts\">\nimport { computed, defineComponent } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { resultProps, IconComponentMap, IconMap } from './result'\n\nexport default defineComponent({\n name: 'ElResult',\n props: resultProps,\n setup(props) {\n const ns = useNamespace('result')\n\n const resultIcon = computed(() => {\n const icon = props.icon\n const iconClass = icon && IconMap[icon] ? IconMap[icon] : 'icon-info'\n const iconComponent =\n IconComponentMap[iconClass] || IconComponentMap['icon-info']\n\n return {\n class: iconClass,\n component: iconComponent,\n }\n })\n\n return {\n ns,\n resultIcon,\n }\n },\n})\n</script>\n"],"names":["defineComponent","resultProps","useNamespace","IconComponentMap"],"mappings":";;;;;;;;;AA6BA,aAAeA,mBAAe,CAAC;;AAE/B,EAAE,KAAK,EAAEC,kBAAW;EAClB,MAAM,KAAK,EAAE;IACX,MAAM,EAAE,GAAGC;IACX,MAAM;MACJ,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC;;MAExB,MAAM,aAAa,GAAGC;MACtB,OAAO;QACL,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE;QACX;;WAEG;QACH;gBACQ;MACV;;;;;;"}
|
|
@@ -4,44 +4,43 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
|
|
7
|
-
const _hoisted_1 = { class: "el-result" };
|
|
8
|
-
const _hoisted_2 = { class: "el-result__icon" };
|
|
9
|
-
const _hoisted_3 = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "el-result__title"
|
|
12
|
-
};
|
|
13
|
-
const _hoisted_4 = {
|
|
14
|
-
key: 1,
|
|
15
|
-
class: "el-result__subtitle"
|
|
16
|
-
};
|
|
17
|
-
const _hoisted_5 = {
|
|
18
|
-
key: 2,
|
|
19
|
-
class: "el-result__extra"
|
|
20
|
-
};
|
|
21
7
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22
|
-
return vue.openBlock(), vue.createElementBlock("div",
|
|
23
|
-
vue.
|
|
8
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
9
|
+
class: vue.normalizeClass(_ctx.ns.b())
|
|
10
|
+
}, [
|
|
11
|
+
vue.createElementVNode("div", {
|
|
12
|
+
class: vue.normalizeClass(_ctx.ns.e("icon"))
|
|
13
|
+
}, [
|
|
24
14
|
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
25
15
|
_ctx.resultIcon.component ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.resultIcon.component), {
|
|
26
16
|
key: 0,
|
|
27
17
|
class: vue.normalizeClass(_ctx.resultIcon.class)
|
|
28
18
|
}, null, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
29
19
|
])
|
|
30
|
-
]),
|
|
31
|
-
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("div",
|
|
20
|
+
], 2),
|
|
21
|
+
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: vue.normalizeClass(_ctx.ns.e("title"))
|
|
24
|
+
}, [
|
|
32
25
|
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
33
26
|
vue.createElementVNode("p", null, vue.toDisplayString(_ctx.title), 1)
|
|
34
27
|
])
|
|
35
|
-
])) : vue.createCommentVNode("v-if", true),
|
|
36
|
-
_ctx.subTitle || _ctx.$slots.subTitle ? (vue.openBlock(), vue.createElementBlock("div",
|
|
28
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
29
|
+
_ctx.subTitle || _ctx.$slots.subTitle ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: vue.normalizeClass(_ctx.ns.e("subtitle"))
|
|
32
|
+
}, [
|
|
37
33
|
vue.renderSlot(_ctx.$slots, "subTitle", {}, () => [
|
|
38
34
|
vue.createElementVNode("p", null, vue.toDisplayString(_ctx.subTitle), 1)
|
|
39
35
|
])
|
|
40
|
-
])) : vue.createCommentVNode("v-if", true),
|
|
41
|
-
_ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div",
|
|
36
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
37
|
+
_ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
38
|
+
key: 2,
|
|
39
|
+
class: vue.normalizeClass(_ctx.ns.e("extra"))
|
|
40
|
+
}, [
|
|
42
41
|
vue.renderSlot(_ctx.$slots, "extra")
|
|
43
|
-
])) : vue.createCommentVNode("v-if", true)
|
|
44
|
-
]);
|
|
42
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
43
|
+
], 2);
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
exports.render = render;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.vue_vue_type_template_id_263c10e5_lang.js","sources":["../../../../../../packages/components/result/src/result.vue?vue&type=template&id=263c10e5&lang.js"],"sourcesContent":["<template>\n <div class=\"
|
|
1
|
+
{"version":3,"file":"result.vue_vue_type_template_id_263c10e5_lang.js","sources":["../../../../../../packages/components/result/src/result.vue?vue&type=template&id=263c10e5&lang.js"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('icon')\">\n <slot name=\"icon\">\n <component\n :is=\"resultIcon.component\"\n v-if=\"resultIcon.component\"\n :class=\"resultIcon.class\"\n />\n </slot>\n </div>\n <div v-if=\"title || $slots.title\" :class=\"ns.e('title')\">\n <slot name=\"title\">\n <p>{{ title }}</p>\n </slot>\n </div>\n <div v-if=\"subTitle || $slots.subTitle\" :class=\"ns.e('subtitle')\">\n <slot name=\"subTitle\">\n <p>{{ subTitle }}</p>\n </slot>\n </div>\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\"></slot>\n </div>\n </div>\n</template>\n<script lang=\"ts\">\nimport { computed, defineComponent } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { resultProps, IconComponentMap, IconMap } from './result'\n\nexport default defineComponent({\n name: 'ElResult',\n props: resultProps,\n setup(props) {\n const ns = useNamespace('result')\n\n const resultIcon = computed(() => {\n const icon = props.icon\n const iconClass = icon && IconMap[icon] ? IconMap[icon] : 'icon-info'\n const iconComponent =\n IconComponentMap[iconClass] || IconComponentMap['icon-info']\n\n return {\n class: iconClass,\n component: iconComponent,\n }\n })\n\n return {\n ns,\n resultIcon,\n }\n },\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KAWe;0BAAX;;;;;YAEI;;;;oCAGyB;;;eAAiB;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const ElRow: import("../../utils/types").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
2
|
readonly tag: import("../../utils/props").BuildPropReturn<StringConstructor, "div", unknown, unknown, unknown>;
|
|
3
3
|
readonly gutter: import("../../utils/props").BuildPropReturn<NumberConstructor, 0, unknown, unknown, unknown>;
|
|
4
|
-
readonly justify: import("../../utils/props").BuildPropReturn<StringConstructor, "start", unknown, "
|
|
4
|
+
readonly justify: import("../../utils/props").BuildPropReturn<StringConstructor, "start", unknown, "center" | "space-around" | "space-between" | "end" | "start", unknown>;
|
|
5
5
|
readonly align: import("../../utils/props").BuildPropReturn<StringConstructor, "top", unknown, "top" | "bottom" | "middle", unknown>;
|
|
6
6
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
7
|
[key: string]: any;
|
|
@@ -12,12 +12,12 @@ export declare const ElRow: import("../../utils/types").SFCWithInstall<import("v
|
|
|
12
12
|
readonly align?: unknown;
|
|
13
13
|
} & {
|
|
14
14
|
align: import("../../utils/props").BuildPropType<StringConstructor, "top" | "bottom" | "middle", unknown>;
|
|
15
|
-
justify: import("../../utils/props").BuildPropType<StringConstructor, "
|
|
15
|
+
justify: import("../../utils/props").BuildPropType<StringConstructor, "center" | "space-around" | "space-between" | "end" | "start", unknown>;
|
|
16
16
|
tag: string;
|
|
17
17
|
gutter: number;
|
|
18
18
|
} & {}>, {
|
|
19
19
|
align: import("../../utils/props").BuildPropType<StringConstructor, "top" | "bottom" | "middle", unknown>;
|
|
20
|
-
justify: import("../../utils/props").BuildPropType<StringConstructor, "
|
|
20
|
+
justify: import("../../utils/props").BuildPropType<StringConstructor, "center" | "space-around" | "space-between" | "end" | "start", unknown>;
|
|
21
21
|
tag: string;
|
|
22
22
|
gutter: number;
|
|
23
23
|
}>> & Record<string, any>;
|
|
@@ -2,14 +2,14 @@ import type { ExtractPropTypes } from 'vue';
|
|
|
2
2
|
export declare const rowProps: {
|
|
3
3
|
readonly tag: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "div", unknown, unknown, unknown>;
|
|
4
4
|
readonly gutter: import("element-plus/es/utils/props").BuildPropReturn<NumberConstructor, 0, unknown, unknown, unknown>;
|
|
5
|
-
readonly justify: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "start", unknown, "
|
|
5
|
+
readonly justify: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "start", unknown, "center" | "space-around" | "space-between" | "end" | "start", unknown>;
|
|
6
6
|
readonly align: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "top", unknown, "top" | "bottom" | "middle", unknown>;
|
|
7
7
|
};
|
|
8
8
|
export declare type RowProps = ExtractPropTypes<typeof rowProps>;
|
|
9
|
-
declare const
|
|
9
|
+
declare const Row: import("vue").DefineComponent<{
|
|
10
10
|
readonly tag: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "div", unknown, unknown, unknown>;
|
|
11
11
|
readonly gutter: import("element-plus/es/utils/props").BuildPropReturn<NumberConstructor, 0, unknown, unknown, unknown>;
|
|
12
|
-
readonly justify: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "start", unknown, "
|
|
12
|
+
readonly justify: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "start", unknown, "center" | "space-around" | "space-between" | "end" | "start", unknown>;
|
|
13
13
|
readonly align: import("element-plus/es/utils/props").BuildPropReturn<StringConstructor, "top", unknown, "top" | "bottom" | "middle", unknown>;
|
|
14
14
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
15
15
|
[key: string]: any;
|
|
@@ -20,13 +20,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
readonly align?: unknown;
|
|
21
21
|
} & {
|
|
22
22
|
align: import("element-plus/es/utils/props").BuildPropType<StringConstructor, "top" | "bottom" | "middle", unknown>;
|
|
23
|
-
justify: import("element-plus/es/utils/props").BuildPropType<StringConstructor, "
|
|
23
|
+
justify: import("element-plus/es/utils/props").BuildPropType<StringConstructor, "center" | "space-around" | "space-between" | "end" | "start", unknown>;
|
|
24
24
|
tag: string;
|
|
25
25
|
gutter: number;
|
|
26
26
|
} & {}>, {
|
|
27
27
|
align: import("element-plus/es/utils/props").BuildPropType<StringConstructor, "top" | "bottom" | "middle", unknown>;
|
|
28
|
-
justify: import("element-plus/es/utils/props").BuildPropType<StringConstructor, "
|
|
28
|
+
justify: import("element-plus/es/utils/props").BuildPropType<StringConstructor, "center" | "space-around" | "space-between" | "end" | "start", unknown>;
|
|
29
29
|
tag: string;
|
|
30
30
|
gutter: number;
|
|
31
31
|
}>;
|
|
32
|
-
export default
|
|
32
|
+
export default Row;
|
|
33
|
+
export declare type RowInstance = InstanceType<typeof Row>;
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var props = require('../../../utils/props.js');
|
|
7
|
+
require('../../../hooks/index.js');
|
|
8
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
7
9
|
|
|
8
10
|
const rowProps = props.buildProps({
|
|
9
11
|
tag: {
|
|
@@ -25,30 +27,31 @@ const rowProps = props.buildProps({
|
|
|
25
27
|
default: "top"
|
|
26
28
|
}
|
|
27
29
|
});
|
|
28
|
-
|
|
30
|
+
const Row = vue.defineComponent({
|
|
29
31
|
name: "ElRow",
|
|
30
32
|
props: rowProps,
|
|
31
33
|
setup(props, { slots }) {
|
|
34
|
+
const ns = index.useNamespace("row");
|
|
32
35
|
const gutter = vue.computed(() => props.gutter);
|
|
33
36
|
vue.provide("ElRow", {
|
|
34
37
|
gutter
|
|
35
38
|
});
|
|
36
39
|
const style = vue.computed(() => {
|
|
37
|
-
const
|
|
40
|
+
const styles = {
|
|
38
41
|
marginLeft: "",
|
|
39
42
|
marginRight: ""
|
|
40
43
|
};
|
|
41
44
|
if (props.gutter) {
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
styles.marginLeft = `-${props.gutter / 2}px`;
|
|
46
|
+
styles.marginRight = styles.marginLeft;
|
|
44
47
|
}
|
|
45
|
-
return
|
|
48
|
+
return styles;
|
|
46
49
|
});
|
|
47
50
|
return () => {
|
|
48
51
|
var _a;
|
|
49
52
|
return vue.h(props.tag, {
|
|
50
53
|
class: [
|
|
51
|
-
|
|
54
|
+
ns.b(),
|
|
52
55
|
props.justify !== "start" ? `is-justify-${props.justify}` : "",
|
|
53
56
|
props.align !== "top" ? `is-align-${props.align}` : ""
|
|
54
57
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row.js","sources":["../../../../../../packages/components/row/src/row.ts"],"sourcesContent":["import { defineComponent, computed, h, provide } from 'vue'\nimport { buildProps } from '@element-plus/utils/props'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const rowProps = buildProps({\n tag: {\n type: String,\n default: 'div',\n },\n gutter: {\n type: Number,\n default: 0,\n },\n justify: {\n type: String,\n values: ['start', 'center', 'end', 'space-around', 'space-between'],\n default: 'start',\n },\n align: {\n type: String,\n values: ['top', 'middle', 'bottom'],\n default: 'top',\n },\n} as const)\nexport type RowProps = ExtractPropTypes<typeof rowProps>\n\
|
|
1
|
+
{"version":3,"file":"row.js","sources":["../../../../../../packages/components/row/src/row.ts"],"sourcesContent":["import { defineComponent, computed, h, provide } from 'vue'\nimport { buildProps } from '@element-plus/utils/props'\nimport { useNamespace } from '@element-plus/hooks'\nimport type { ExtractPropTypes, CSSProperties } from 'vue'\n\nexport const rowProps = buildProps({\n tag: {\n type: String,\n default: 'div',\n },\n gutter: {\n type: Number,\n default: 0,\n },\n justify: {\n type: String,\n values: ['start', 'center', 'end', 'space-around', 'space-between'],\n default: 'start',\n },\n align: {\n type: String,\n values: ['top', 'middle', 'bottom'],\n default: 'top',\n },\n} as const)\nexport type RowProps = ExtractPropTypes<typeof rowProps>\n\nconst Row = defineComponent({\n name: 'ElRow',\n props: rowProps,\n\n setup(props, { slots }) {\n const ns = useNamespace('row')\n\n const gutter = computed(() => props.gutter)\n provide('ElRow', {\n gutter,\n })\n\n const style = computed(() => {\n const styles: CSSProperties = {\n marginLeft: '',\n marginRight: '',\n }\n if (props.gutter) {\n styles.marginLeft = `-${props.gutter / 2}px`\n styles.marginRight = styles.marginLeft\n }\n return styles\n })\n\n return () =>\n h(\n props.tag,\n {\n class: [\n ns.b(),\n props.justify !== 'start' ? `is-justify-${props.justify}` : '',\n props.align !== 'top' ? `is-align-${props.align}` : '',\n ],\n style: style.value,\n },\n slots.default?.()\n )\n },\n})\n\nexport default Row\nexport type RowInstance = InstanceType<typeof Row>\n"],"names":["buildProps","defineComponent","useNamespace","computed","provide","h"],"mappings":";;;;;;;;;AAGY,MAAC,QAAQ,GAAGA,gBAAU,CAAC;AACnC,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,eAAe,CAAC;AACvE,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC;AACvC,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC,EAAE;AACE,MAAC,GAAG,GAAGC,mBAAe,CAAC;AAC5B,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,KAAK,EAAE,QAAQ;AACjB,EAAE,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE;AAC1B,IAAI,MAAM,EAAE,GAAGC,kBAAY,CAAC,KAAK,CAAC,CAAC;AACnC,IAAI,MAAM,MAAM,GAAGC,YAAQ,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,CAAC;AAChD,IAAIC,WAAO,CAAC,OAAO,EAAE;AACrB,MAAM,MAAM;AACZ,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,KAAK,GAAGD,YAAQ,CAAC,MAAM;AACjC,MAAM,MAAM,MAAM,GAAG;AACrB,QAAQ,UAAU,EAAE,EAAE;AACtB,QAAQ,WAAW,EAAE,EAAE;AACvB,OAAO,CAAC;AACR,MAAM,IAAI,KAAK,CAAC,MAAM,EAAE;AACxB,QAAQ,MAAM,CAAC,UAAU,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AACrD,QAAQ,MAAM,CAAC,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/C,OAAO;AACP,MAAM,OAAO,MAAM,CAAC;AACpB,KAAK,CAAC,CAAC;AACP,IAAI,OAAO,MAAM;AACjB,MAAM,IAAI,EAAE,CAAC;AACb,MAAM,OAAOE,KAAC,CAAC,KAAK,CAAC,GAAG,EAAE;AAC1B,QAAQ,KAAK,EAAE;AACf,UAAU,EAAE,CAAC,CAAC,EAAE;AAChB,UAAU,KAAK,CAAC,OAAO,KAAK,OAAO,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE;AACxE,UAAU,KAAK,CAAC,KAAK,KAAK,KAAK,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE;AAChE,SAAS;AACT,QAAQ,KAAK,EAAE,KAAK,CAAC,KAAK;AAC1B,OAAO,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC,OAAO,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AACjE,KAAK,CAAC;AACN,GAAG;AACH,CAAC;;;;;"}
|
|
@@ -44,8 +44,8 @@ export declare const ElScrollbar: import("../../utils/types").SFCWithInstall<imp
|
|
|
44
44
|
readonly minSize?: unknown;
|
|
45
45
|
} & {
|
|
46
46
|
height: import("../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
47
|
-
always: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
48
47
|
maxHeight: import("../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
48
|
+
always: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
49
49
|
native: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
50
50
|
wrapStyle: import("vue").StyleValue;
|
|
51
51
|
wrapClass: import("../../utils/props").BuildPropType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
@@ -61,8 +61,8 @@ export declare const ElScrollbar: import("../../utils/types").SFCWithInstall<imp
|
|
|
61
61
|
}) => any) | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
height: import("../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
64
|
-
always: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
65
64
|
maxHeight: import("../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
65
|
+
always: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
66
66
|
native: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
67
67
|
wrapStyle: import("vue").StyleValue;
|
|
68
68
|
wrapClass: import("../../utils/props").BuildPropType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
@@ -24,7 +24,7 @@ var script = vue.defineComponent({
|
|
|
24
24
|
const visible = vue.ref(false);
|
|
25
25
|
let cursorDown = false;
|
|
26
26
|
let cursorLeave = false;
|
|
27
|
-
let onselectstartStore = null;
|
|
27
|
+
let onselectstartStore = core.isClient ? document.onselectstart : null;
|
|
28
28
|
const bar = vue.computed(() => util.BAR_MAP[props.vertical ? "vertical" : "horizontal"]);
|
|
29
29
|
const thumbStyle = vue.computed(() => util.renderThumbStyle({
|
|
30
30
|
size: props.size,
|
|
@@ -78,7 +78,7 @@ var script = vue.defineComponent({
|
|
|
78
78
|
barStore.value[bar.value.axis] = 0;
|
|
79
79
|
document.removeEventListener("mousemove", mouseMoveDocumentHandler);
|
|
80
80
|
document.removeEventListener("mouseup", mouseUpDocumentHandler);
|
|
81
|
-
|
|
81
|
+
restoreOnselectstart();
|
|
82
82
|
if (cursorLeave)
|
|
83
83
|
visible.value = false;
|
|
84
84
|
};
|
|
@@ -90,7 +90,14 @@ var script = vue.defineComponent({
|
|
|
90
90
|
cursorLeave = true;
|
|
91
91
|
visible.value = cursorDown;
|
|
92
92
|
};
|
|
93
|
-
vue.onBeforeUnmount(() =>
|
|
93
|
+
vue.onBeforeUnmount(() => {
|
|
94
|
+
restoreOnselectstart();
|
|
95
|
+
document.removeEventListener("mouseup", mouseUpDocumentHandler);
|
|
96
|
+
});
|
|
97
|
+
const restoreOnselectstart = () => {
|
|
98
|
+
if (document.onselectstart !== onselectstartStore)
|
|
99
|
+
document.onselectstart = onselectstartStore;
|
|
100
|
+
};
|
|
94
101
|
core.useEventListener(vue.toRef(scrollbar$1, "scrollbarElement"), "mousemove", mouseMoveScrollbarHandler);
|
|
95
102
|
core.useEventListener(vue.toRef(scrollbar$1, "scrollbarElement"), "mouseleave", mouseLeaveScrollbarHandler);
|
|
96
103
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bar.vue_vue_type_script_lang.js","sources":["../../../../../../packages/components/scrollbar/src/bar.vue"],"sourcesContent":["<template>\n <transition name=\"el-scrollbar-fade\">\n <div\n v-show=\"always || visible\"\n ref=\"instance\"\n :class=\"['el-scrollbar__bar', 'is-' + bar.key]\"\n @mousedown=\"clickTrackHandler\"\n >\n <div\n ref=\"thumb\"\n class=\"el-scrollbar__thumb\"\n :style=\"thumbStyle\"\n @mousedown=\"clickThumbHandler\"\n ></div>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\">\nimport {\n computed,\n defineComponent,\n inject,\n onBeforeUnmount,\n ref,\n toRef,\n} from 'vue'\nimport { useEventListener } from '@vueuse/core'\nimport { scrollbarContextKey } from '@element-plus/tokens'\nimport { throwError } from '@element-plus/utils/error'\nimport { BAR_MAP, renderThumbStyle } from './util'\n\nimport { barProps } from './bar'\n\nconst COMPONENT_NAME = 'Bar'\nexport default defineComponent({\n name: COMPONENT_NAME,\n props: barProps,\n\n setup(props) {\n const scrollbar = inject(scrollbarContextKey)\n if (!scrollbar)\n throwError(COMPONENT_NAME, 'can not inject scrollbar context')\n\n const instance = ref<HTMLDivElement>()\n const thumb = ref<HTMLDivElement>()\n\n const barStore = ref({})\n const visible = ref(false)\n\n let cursorDown = false\n let cursorLeave = false\n let onselectstartStore:\n | ((this: GlobalEventHandlers, ev: Event) => any)\n | null = null\n\n const bar = computed(\n () => BAR_MAP[props.vertical ? 'vertical' : 'horizontal']\n )\n\n const thumbStyle = computed(() =>\n renderThumbStyle({\n size: props.size,\n move: props.move,\n bar: bar.value,\n })\n )\n\n const offsetRatio = computed(\n () =>\n // offsetRatioX = original width of thumb / current width of thumb / ratioX\n // offsetRatioY = original height of thumb / current height of thumb / ratioY\n // instance height = wrap height - GAP\n instance.value![bar.value.offset] ** 2 /\n scrollbar.wrapElement![bar.value.scrollSize] /\n props.ratio /\n thumb.value![bar.value.offset]\n )\n\n const clickThumbHandler = (e: MouseEvent) => {\n // prevent click event of middle and right button\n e.stopPropagation()\n if (e.ctrlKey || [1, 2].includes(e.button)) return\n\n window.getSelection()?.removeAllRanges()\n startDrag(e)\n\n const el = e.currentTarget as HTMLDivElement\n if (!el) return\n barStore.value[bar.value.axis] =\n el[bar.value.offset] -\n (e[bar.value.client] - el.getBoundingClientRect()[bar.value.direction])\n }\n\n const clickTrackHandler = (e: MouseEvent) => {\n if (!thumb.value || !instance.value || !scrollbar.wrapElement) return\n\n const offset = Math.abs(\n (e.target as HTMLElement).getBoundingClientRect()[bar.value.direction] -\n e[bar.value.client]\n )\n const thumbHalf = thumb.value[bar.value.offset] / 2\n const thumbPositionPercentage =\n ((offset - thumbHalf) * 100 * offsetRatio.value) /\n instance.value[bar.value.offset]\n\n scrollbar.wrapElement[bar.value.scroll] =\n (thumbPositionPercentage *\n scrollbar.wrapElement[bar.value.scrollSize]) /\n 100\n }\n\n const startDrag = (e: MouseEvent) => {\n e.stopImmediatePropagation()\n cursorDown = true\n document.addEventListener('mousemove', mouseMoveDocumentHandler)\n document.addEventListener('mouseup', mouseUpDocumentHandler)\n onselectstartStore = document.onselectstart\n document.onselectstart = () => false\n }\n\n const mouseMoveDocumentHandler = (e: MouseEvent) => {\n if (!instance.value || !thumb.value) return\n if (cursorDown === false) return\n\n const prevPage = barStore.value[bar.value.axis]\n if (!prevPage) return\n\n const offset =\n (instance.value.getBoundingClientRect()[bar.value.direction] -\n e[bar.value.client]) *\n -1\n const thumbClickPosition = thumb.value[bar.value.offset] - prevPage\n const thumbPositionPercentage =\n ((offset - thumbClickPosition) * 100 * offsetRatio.value) /\n instance.value[bar.value.offset]\n scrollbar.wrapElement[bar.value.scroll] =\n (thumbPositionPercentage *\n scrollbar.wrapElement[bar.value.scrollSize]) /\n 100\n }\n\n const mouseUpDocumentHandler = () => {\n cursorDown = false\n barStore.value[bar.value.axis] = 0\n document.removeEventListener('mousemove', mouseMoveDocumentHandler)\n document.removeEventListener('mouseup', mouseUpDocumentHandler)\n
|
|
1
|
+
{"version":3,"file":"bar.vue_vue_type_script_lang.js","sources":["../../../../../../packages/components/scrollbar/src/bar.vue"],"sourcesContent":["<template>\n <transition name=\"el-scrollbar-fade\">\n <div\n v-show=\"always || visible\"\n ref=\"instance\"\n :class=\"['el-scrollbar__bar', 'is-' + bar.key]\"\n @mousedown=\"clickTrackHandler\"\n >\n <div\n ref=\"thumb\"\n class=\"el-scrollbar__thumb\"\n :style=\"thumbStyle\"\n @mousedown=\"clickThumbHandler\"\n ></div>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\">\nimport {\n computed,\n defineComponent,\n inject,\n onBeforeUnmount,\n ref,\n toRef,\n} from 'vue'\nimport { useEventListener, isClient } from '@vueuse/core'\nimport { scrollbarContextKey } from '@element-plus/tokens'\nimport { throwError } from '@element-plus/utils/error'\nimport { BAR_MAP, renderThumbStyle } from './util'\n\nimport { barProps } from './bar'\n\nconst COMPONENT_NAME = 'Bar'\nexport default defineComponent({\n name: COMPONENT_NAME,\n props: barProps,\n\n setup(props) {\n const scrollbar = inject(scrollbarContextKey)\n if (!scrollbar)\n throwError(COMPONENT_NAME, 'can not inject scrollbar context')\n\n const instance = ref<HTMLDivElement>()\n const thumb = ref<HTMLDivElement>()\n\n const barStore = ref({})\n const visible = ref(false)\n\n let cursorDown = false\n let cursorLeave = false\n let onselectstartStore:\n | ((this: GlobalEventHandlers, ev: Event) => any)\n | null = isClient ? document.onselectstart : null\n\n const bar = computed(\n () => BAR_MAP[props.vertical ? 'vertical' : 'horizontal']\n )\n\n const thumbStyle = computed(() =>\n renderThumbStyle({\n size: props.size,\n move: props.move,\n bar: bar.value,\n })\n )\n\n const offsetRatio = computed(\n () =>\n // offsetRatioX = original width of thumb / current width of thumb / ratioX\n // offsetRatioY = original height of thumb / current height of thumb / ratioY\n // instance height = wrap height - GAP\n instance.value![bar.value.offset] ** 2 /\n scrollbar.wrapElement![bar.value.scrollSize] /\n props.ratio /\n thumb.value![bar.value.offset]\n )\n\n const clickThumbHandler = (e: MouseEvent) => {\n // prevent click event of middle and right button\n e.stopPropagation()\n if (e.ctrlKey || [1, 2].includes(e.button)) return\n\n window.getSelection()?.removeAllRanges()\n startDrag(e)\n\n const el = e.currentTarget as HTMLDivElement\n if (!el) return\n barStore.value[bar.value.axis] =\n el[bar.value.offset] -\n (e[bar.value.client] - el.getBoundingClientRect()[bar.value.direction])\n }\n\n const clickTrackHandler = (e: MouseEvent) => {\n if (!thumb.value || !instance.value || !scrollbar.wrapElement) return\n\n const offset = Math.abs(\n (e.target as HTMLElement).getBoundingClientRect()[bar.value.direction] -\n e[bar.value.client]\n )\n const thumbHalf = thumb.value[bar.value.offset] / 2\n const thumbPositionPercentage =\n ((offset - thumbHalf) * 100 * offsetRatio.value) /\n instance.value[bar.value.offset]\n\n scrollbar.wrapElement[bar.value.scroll] =\n (thumbPositionPercentage *\n scrollbar.wrapElement[bar.value.scrollSize]) /\n 100\n }\n\n const startDrag = (e: MouseEvent) => {\n e.stopImmediatePropagation()\n cursorDown = true\n document.addEventListener('mousemove', mouseMoveDocumentHandler)\n document.addEventListener('mouseup', mouseUpDocumentHandler)\n onselectstartStore = document.onselectstart\n document.onselectstart = () => false\n }\n\n const mouseMoveDocumentHandler = (e: MouseEvent) => {\n if (!instance.value || !thumb.value) return\n if (cursorDown === false) return\n\n const prevPage = barStore.value[bar.value.axis]\n if (!prevPage) return\n\n const offset =\n (instance.value.getBoundingClientRect()[bar.value.direction] -\n e[bar.value.client]) *\n -1\n const thumbClickPosition = thumb.value[bar.value.offset] - prevPage\n const thumbPositionPercentage =\n ((offset - thumbClickPosition) * 100 * offsetRatio.value) /\n instance.value[bar.value.offset]\n scrollbar.wrapElement[bar.value.scroll] =\n (thumbPositionPercentage *\n scrollbar.wrapElement[bar.value.scrollSize]) /\n 100\n }\n\n const mouseUpDocumentHandler = () => {\n cursorDown = false\n barStore.value[bar.value.axis] = 0\n document.removeEventListener('mousemove', mouseMoveDocumentHandler)\n document.removeEventListener('mouseup', mouseUpDocumentHandler)\n restoreOnselectstart()\n if (cursorLeave) visible.value = false\n }\n\n const mouseMoveScrollbarHandler = () => {\n cursorLeave = false\n visible.value = !!props.size\n }\n\n const mouseLeaveScrollbarHandler = () => {\n cursorLeave = true\n visible.value = cursorDown\n }\n\n onBeforeUnmount(() => {\n restoreOnselectstart()\n document.removeEventListener('mouseup', mouseUpDocumentHandler)\n })\n\n const restoreOnselectstart = () => {\n if (document.onselectstart !== onselectstartStore)\n document.onselectstart = onselectstartStore\n }\n\n useEventListener(\n toRef(scrollbar, 'scrollbarElement'),\n 'mousemove',\n mouseMoveScrollbarHandler\n )\n useEventListener(\n toRef(scrollbar, 'scrollbarElement'),\n 'mouseleave',\n mouseLeaveScrollbarHandler\n )\n\n return {\n instance,\n thumb,\n bar,\n thumbStyle,\n visible,\n clickTrackHandler,\n clickThumbHandler,\n }\n },\n})\n</script>\n"],"names":["defineComponent","barProps","scrollbar","inject","ref","isClient","computed","useEventListener"],"mappings":";;;;;;;;;;;;;AAgCA,aAAeA,mBAAe,CAAC;;AAE/B,EAAE,KAAK,EAAEC,YAAQ;AACjB,EAAE,KAAK,CAAC,KAAK,EAAE;IACX,MAAMC,WAAS,GAAGC;IAClB,KAAKD;;IAEL,MAAM;IACN,MAAM,KAAK,GAAGE,SAAK,CAAC;IACpB,MAAM,QAAQ;UACR,OAAO,GAAGA,OAAG,CAAC,KAAK,CAAC,CAAC;;IAE3B,IAAI,WAAW,GAAG,KAAK,CAAC;IACxB,IAAI,kBAAkB,GAAGC,aAAQ;;IAEjC,MAAM,aAAaC;MACjB,IAAI,EAAE,MAAM,IAAI;;MAEhB,GAAG,EAAE,GAAG,CAAC;KACV,CAAC,EAAE;IACJ,MAAM,WAAW,GAAGA;UACd,iBAAiB,GAAG,CAAC,CAAC,KAAK;MAC/B,IAAI,GAAG;;MAEP,IAAI,CAAC,CAAC,OAAO,IAAI,CAAC;eACT;;;MAGT,MAAM,EAAE,GAAG,CAAC,CAAC,aAAa,CAAC;MAC3B,IAAI,CAAC,EAAE;QACL,OAAO;cACD,CAAC,KAAK,CAAC,GAAG;;;;;MAKlB,MAAM,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;MAC1B;YACM,uBAAuB,GAAG,CAAC,MAAM,GAAG,SAAS,IAAI,GAAG,GAAG,WAAW,CAAC;iBAChE,CAAC,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,GAAG,uBAAuB,GAAGJ,WAAS,CAAC;;UAE1E,SAAS,GAAG,CAAC,CAAC,KAAK;QACrB,wBAAwB,EAAE,CAAC;gBACnB;cACF,CAAC,gBAAgB,CAAC;;;MAG1B,QAAQ,CAAC,aAAa,GAAG,MAAM,KAAK,CAAC;MACrC;UACI;MACJ,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK;;MAEnC,IAAI,UAAU,KAAK,KAAK;QACtB,OAAO;;MAET,IAAI,SAAS;eACJ;MACT,MAAM,MAAM,GAAG,CAAC,QAAQ,CAAC,MAAM;YACzB;YACA,uBAAuB,GAAG,CAAC,MAAM,GAAG,kBAAkB,IAAI,GAAG,GAAG;;;IAGxE,MAAM,sBAAsB,GAAG,MAAM;MACnC,UAAU,GAAG,KAAK;;MAElB,QAAQ,CAAC;cACD,CAAC,mBAAmB,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC;0BAC5C,EAAE;MACtB;QACE,OAAO,CAAC,QAAQ,KAAK,CAAC;MACxB;UACI,4BAA4B,MAAM;iBAC3B,GAAG,KAAK,CAAC;;MAEpB;UACI;iBACO,GAAG,IAAI,CAAC;;;;MAInB,oBAAoB,EAAE,CAAC;MACvB,QAAQ,CAAC;MACT,CAAC;UACG,oBAAoB,GAAG,MAAM;MACjC,IAAI,QAAQ,CAAC,aAAa,KAAK,kBAAkB;QAC/C,QAAQ,CAAC,aAAa,GAAG;MAC3B;IACFK;;IAEA,OAAO;MACL,QAAQ;MACR,KAAK;;MAEL,UAAU;MACV,OAAO;;MAEP;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bar.vue_vue_type_template_id_2f63f10a_lang.js","sources":["../../../../../../packages/components/scrollbar/src/bar.vue?vue&type=template&id=2f63f10a&lang.js"],"sourcesContent":["<template>\n <transition name=\"el-scrollbar-fade\">\n <div\n v-show=\"always || visible\"\n ref=\"instance\"\n :class=\"['el-scrollbar__bar', 'is-' + bar.key]\"\n @mousedown=\"clickTrackHandler\"\n >\n <div\n ref=\"thumb\"\n class=\"el-scrollbar__thumb\"\n :style=\"thumbStyle\"\n @mousedown=\"clickThumbHandler\"\n ></div>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\">\nimport {\n computed,\n defineComponent,\n inject,\n onBeforeUnmount,\n ref,\n toRef,\n} from 'vue'\nimport { useEventListener } from '@vueuse/core'\nimport { scrollbarContextKey } from '@element-plus/tokens'\nimport { throwError } from '@element-plus/utils/error'\nimport { BAR_MAP, renderThumbStyle } from './util'\n\nimport { barProps } from './bar'\n\nconst COMPONENT_NAME = 'Bar'\nexport default defineComponent({\n name: COMPONENT_NAME,\n props: barProps,\n\n setup(props) {\n const scrollbar = inject(scrollbarContextKey)\n if (!scrollbar)\n throwError(COMPONENT_NAME, 'can not inject scrollbar context')\n\n const instance = ref<HTMLDivElement>()\n const thumb = ref<HTMLDivElement>()\n\n const barStore = ref({})\n const visible = ref(false)\n\n let cursorDown = false\n let cursorLeave = false\n let onselectstartStore:\n | ((this: GlobalEventHandlers, ev: Event) => any)\n | null = null\n\n const bar = computed(\n () => BAR_MAP[props.vertical ? 'vertical' : 'horizontal']\n )\n\n const thumbStyle = computed(() =>\n renderThumbStyle({\n size: props.size,\n move: props.move,\n bar: bar.value,\n })\n )\n\n const offsetRatio = computed(\n () =>\n // offsetRatioX = original width of thumb / current width of thumb / ratioX\n // offsetRatioY = original height of thumb / current height of thumb / ratioY\n // instance height = wrap height - GAP\n instance.value![bar.value.offset] ** 2 /\n scrollbar.wrapElement![bar.value.scrollSize] /\n props.ratio /\n thumb.value![bar.value.offset]\n )\n\n const clickThumbHandler = (e: MouseEvent) => {\n // prevent click event of middle and right button\n e.stopPropagation()\n if (e.ctrlKey || [1, 2].includes(e.button)) return\n\n window.getSelection()?.removeAllRanges()\n startDrag(e)\n\n const el = e.currentTarget as HTMLDivElement\n if (!el) return\n barStore.value[bar.value.axis] =\n el[bar.value.offset] -\n (e[bar.value.client] - el.getBoundingClientRect()[bar.value.direction])\n }\n\n const clickTrackHandler = (e: MouseEvent) => {\n if (!thumb.value || !instance.value || !scrollbar.wrapElement) return\n\n const offset = Math.abs(\n (e.target as HTMLElement).getBoundingClientRect()[bar.value.direction] -\n e[bar.value.client]\n )\n const thumbHalf = thumb.value[bar.value.offset] / 2\n const thumbPositionPercentage =\n ((offset - thumbHalf) * 100 * offsetRatio.value) /\n instance.value[bar.value.offset]\n\n scrollbar.wrapElement[bar.value.scroll] =\n (thumbPositionPercentage *\n scrollbar.wrapElement[bar.value.scrollSize]) /\n 100\n }\n\n const startDrag = (e: MouseEvent) => {\n e.stopImmediatePropagation()\n cursorDown = true\n document.addEventListener('mousemove', mouseMoveDocumentHandler)\n document.addEventListener('mouseup', mouseUpDocumentHandler)\n onselectstartStore = document.onselectstart\n document.onselectstart = () => false\n }\n\n const mouseMoveDocumentHandler = (e: MouseEvent) => {\n if (!instance.value || !thumb.value) return\n if (cursorDown === false) return\n\n const prevPage = barStore.value[bar.value.axis]\n if (!prevPage) return\n\n const offset =\n (instance.value.getBoundingClientRect()[bar.value.direction] -\n e[bar.value.client]) *\n -1\n const thumbClickPosition = thumb.value[bar.value.offset] - prevPage\n const thumbPositionPercentage =\n ((offset - thumbClickPosition) * 100 * offsetRatio.value) /\n instance.value[bar.value.offset]\n scrollbar.wrapElement[bar.value.scroll] =\n (thumbPositionPercentage *\n scrollbar.wrapElement[bar.value.scrollSize]) /\n 100\n }\n\n const mouseUpDocumentHandler = () => {\n cursorDown = false\n barStore.value[bar.value.axis] = 0\n document.removeEventListener('mousemove', mouseMoveDocumentHandler)\n document.removeEventListener('mouseup', mouseUpDocumentHandler)\n
|
|
1
|
+
{"version":3,"file":"bar.vue_vue_type_template_id_2f63f10a_lang.js","sources":["../../../../../../packages/components/scrollbar/src/bar.vue?vue&type=template&id=2f63f10a&lang.js"],"sourcesContent":["<template>\n <transition name=\"el-scrollbar-fade\">\n <div\n v-show=\"always || visible\"\n ref=\"instance\"\n :class=\"['el-scrollbar__bar', 'is-' + bar.key]\"\n @mousedown=\"clickTrackHandler\"\n >\n <div\n ref=\"thumb\"\n class=\"el-scrollbar__thumb\"\n :style=\"thumbStyle\"\n @mousedown=\"clickThumbHandler\"\n ></div>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\">\nimport {\n computed,\n defineComponent,\n inject,\n onBeforeUnmount,\n ref,\n toRef,\n} from 'vue'\nimport { useEventListener, isClient } from '@vueuse/core'\nimport { scrollbarContextKey } from '@element-plus/tokens'\nimport { throwError } from '@element-plus/utils/error'\nimport { BAR_MAP, renderThumbStyle } from './util'\n\nimport { barProps } from './bar'\n\nconst COMPONENT_NAME = 'Bar'\nexport default defineComponent({\n name: COMPONENT_NAME,\n props: barProps,\n\n setup(props) {\n const scrollbar = inject(scrollbarContextKey)\n if (!scrollbar)\n throwError(COMPONENT_NAME, 'can not inject scrollbar context')\n\n const instance = ref<HTMLDivElement>()\n const thumb = ref<HTMLDivElement>()\n\n const barStore = ref({})\n const visible = ref(false)\n\n let cursorDown = false\n let cursorLeave = false\n let onselectstartStore:\n | ((this: GlobalEventHandlers, ev: Event) => any)\n | null = isClient ? document.onselectstart : null\n\n const bar = computed(\n () => BAR_MAP[props.vertical ? 'vertical' : 'horizontal']\n )\n\n const thumbStyle = computed(() =>\n renderThumbStyle({\n size: props.size,\n move: props.move,\n bar: bar.value,\n })\n )\n\n const offsetRatio = computed(\n () =>\n // offsetRatioX = original width of thumb / current width of thumb / ratioX\n // offsetRatioY = original height of thumb / current height of thumb / ratioY\n // instance height = wrap height - GAP\n instance.value![bar.value.offset] ** 2 /\n scrollbar.wrapElement![bar.value.scrollSize] /\n props.ratio /\n thumb.value![bar.value.offset]\n )\n\n const clickThumbHandler = (e: MouseEvent) => {\n // prevent click event of middle and right button\n e.stopPropagation()\n if (e.ctrlKey || [1, 2].includes(e.button)) return\n\n window.getSelection()?.removeAllRanges()\n startDrag(e)\n\n const el = e.currentTarget as HTMLDivElement\n if (!el) return\n barStore.value[bar.value.axis] =\n el[bar.value.offset] -\n (e[bar.value.client] - el.getBoundingClientRect()[bar.value.direction])\n }\n\n const clickTrackHandler = (e: MouseEvent) => {\n if (!thumb.value || !instance.value || !scrollbar.wrapElement) return\n\n const offset = Math.abs(\n (e.target as HTMLElement).getBoundingClientRect()[bar.value.direction] -\n e[bar.value.client]\n )\n const thumbHalf = thumb.value[bar.value.offset] / 2\n const thumbPositionPercentage =\n ((offset - thumbHalf) * 100 * offsetRatio.value) /\n instance.value[bar.value.offset]\n\n scrollbar.wrapElement[bar.value.scroll] =\n (thumbPositionPercentage *\n scrollbar.wrapElement[bar.value.scrollSize]) /\n 100\n }\n\n const startDrag = (e: MouseEvent) => {\n e.stopImmediatePropagation()\n cursorDown = true\n document.addEventListener('mousemove', mouseMoveDocumentHandler)\n document.addEventListener('mouseup', mouseUpDocumentHandler)\n onselectstartStore = document.onselectstart\n document.onselectstart = () => false\n }\n\n const mouseMoveDocumentHandler = (e: MouseEvent) => {\n if (!instance.value || !thumb.value) return\n if (cursorDown === false) return\n\n const prevPage = barStore.value[bar.value.axis]\n if (!prevPage) return\n\n const offset =\n (instance.value.getBoundingClientRect()[bar.value.direction] -\n e[bar.value.client]) *\n -1\n const thumbClickPosition = thumb.value[bar.value.offset] - prevPage\n const thumbPositionPercentage =\n ((offset - thumbClickPosition) * 100 * offsetRatio.value) /\n instance.value[bar.value.offset]\n scrollbar.wrapElement[bar.value.scroll] =\n (thumbPositionPercentage *\n scrollbar.wrapElement[bar.value.scrollSize]) /\n 100\n }\n\n const mouseUpDocumentHandler = () => {\n cursorDown = false\n barStore.value[bar.value.axis] = 0\n document.removeEventListener('mousemove', mouseMoveDocumentHandler)\n document.removeEventListener('mouseup', mouseUpDocumentHandler)\n restoreOnselectstart()\n if (cursorLeave) visible.value = false\n }\n\n const mouseMoveScrollbarHandler = () => {\n cursorLeave = false\n visible.value = !!props.size\n }\n\n const mouseLeaveScrollbarHandler = () => {\n cursorLeave = true\n visible.value = cursorDown\n }\n\n onBeforeUnmount(() => {\n restoreOnselectstart()\n document.removeEventListener('mouseup', mouseUpDocumentHandler)\n })\n\n const restoreOnselectstart = () => {\n if (document.onselectstart !== onselectstartStore)\n document.onselectstart = onselectstartStore\n }\n\n useEventListener(\n toRef(scrollbar, 'scrollbarElement'),\n 'mousemove',\n mouseMoveScrollbarHandler\n )\n useEventListener(\n toRef(scrollbar, 'scrollbarElement'),\n 'mouseleave',\n mouseLeaveScrollbarHandler\n )\n\n return {\n instance,\n thumb,\n bar,\n thumbStyle,\n visible,\n clickTrackHandler,\n clickThumbHandler,\n }\n },\n})\n</script>\n"],"names":["_createElementVNode","_normalizeStyle"],"mappings":";;;;;;;;;yBAEIA;;QAEE,KAAI;QACH;;;;UAIC,KAAI;UACJ,KAAK,EAACC;UACL;;;;;;;;;;;;"}
|
|
@@ -45,8 +45,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
45
|
readonly minSize?: unknown;
|
|
46
46
|
} & {
|
|
47
47
|
height: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
48
|
-
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
49
48
|
maxHeight: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
49
|
+
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
50
50
|
native: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
51
51
|
wrapStyle: StyleValue;
|
|
52
52
|
wrapClass: import("../../../utils/props").BuildPropType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
@@ -62,8 +62,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
62
|
}) => any) | undefined;
|
|
63
63
|
}, {
|
|
64
64
|
height: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
65
|
-
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
66
65
|
maxHeight: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
66
|
+
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
67
67
|
native: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
68
68
|
wrapStyle: StyleValue;
|
|
69
69
|
wrapClass: import("../../../utils/props").BuildPropType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
@@ -134,9 +134,8 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
134
134
|
style: import("vue").StyleValue;
|
|
135
135
|
transition: string;
|
|
136
136
|
offset: number;
|
|
137
|
-
visible: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
138
|
-
content: string;
|
|
139
137
|
effect: string;
|
|
138
|
+
visible: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
140
139
|
arrowOffset: number;
|
|
141
140
|
boundariesPadding: number;
|
|
142
141
|
fallbackPlacements: import("@popperjs/core").Placement[];
|
|
@@ -199,6 +198,7 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
199
198
|
popperStyle: import("vue").StyleValue;
|
|
200
199
|
referenceEl: HTMLElement;
|
|
201
200
|
stopPopperMouseEvent: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
201
|
+
content: string;
|
|
202
202
|
showAfter: number;
|
|
203
203
|
hideAfter: number;
|
|
204
204
|
appendTo: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
@@ -252,9 +252,8 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
252
252
|
style: import("vue").StyleValue;
|
|
253
253
|
transition: string;
|
|
254
254
|
offset: number;
|
|
255
|
-
visible: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
256
|
-
content: string;
|
|
257
255
|
effect: string;
|
|
256
|
+
visible: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
258
257
|
arrowOffset: number;
|
|
259
258
|
boundariesPadding: number;
|
|
260
259
|
fallbackPlacements: import("@popperjs/core").Placement[];
|
|
@@ -317,6 +316,7 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
317
316
|
popperStyle: import("vue").StyleValue;
|
|
318
317
|
referenceEl: HTMLElement;
|
|
319
318
|
stopPopperMouseEvent: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
319
|
+
content: string;
|
|
320
320
|
showAfter: number;
|
|
321
321
|
hideAfter: number;
|
|
322
322
|
appendTo: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
@@ -334,7 +334,7 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
334
334
|
virtualTriggering?: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown> | undefined;
|
|
335
335
|
}> & {
|
|
336
336
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
337
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "style" | "transition" | "offset" | "
|
|
337
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "style" | "transition" | "offset" | "effect" | "visible" | "arrowOffset" | "boundariesPadding" | "fallbackPlacements" | "gpuAcceleration" | "placement" | "popperOptions" | "strategy" | "className" | "enterable" | "pure" | "popperClass" | "popperStyle" | "referenceEl" | "stopPopperMouseEvent" | "content" | "showAfter" | "hideAfter" | "appendTo" | "rawContent" | "persistent" | "teleported" | "trigger" | "virtualRef" | "virtualTriggering" | "openDelay" | "visibleArrow" | "showArrow">;
|
|
338
338
|
$attrs: {
|
|
339
339
|
[x: string]: unknown;
|
|
340
340
|
};
|
|
@@ -389,9 +389,8 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
389
389
|
style: import("vue").StyleValue;
|
|
390
390
|
transition: string;
|
|
391
391
|
offset: number;
|
|
392
|
-
visible: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
393
|
-
content: string;
|
|
394
392
|
effect: string;
|
|
393
|
+
visible: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
395
394
|
arrowOffset: number;
|
|
396
395
|
boundariesPadding: number;
|
|
397
396
|
fallbackPlacements: import("@popperjs/core").Placement[];
|
|
@@ -454,6 +453,7 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
454
453
|
popperStyle: import("vue").StyleValue;
|
|
455
454
|
referenceEl: HTMLElement;
|
|
456
455
|
stopPopperMouseEvent: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
456
|
+
content: string;
|
|
457
457
|
showAfter: number;
|
|
458
458
|
hideAfter: number;
|
|
459
459
|
appendTo: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
@@ -513,6 +513,7 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
513
513
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
514
514
|
} & Readonly<{} & {} & {}> & import("vue").ShallowUnwrapRef<import("..").ElPopperInjectionContext> & {} & {} & import("vue").ComponentCustomProperties) | null>;
|
|
515
515
|
open: import("vue").Ref<boolean>;
|
|
516
|
+
hide: () => void;
|
|
516
517
|
updatePopper: () => void;
|
|
517
518
|
onOpen: () => void;
|
|
518
519
|
onClose: () => void;
|
|
@@ -521,9 +522,8 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
521
522
|
style: import("vue").StyleValue;
|
|
522
523
|
transition: string;
|
|
523
524
|
offset: number;
|
|
524
|
-
visible: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
525
|
-
content: string;
|
|
526
525
|
effect: string;
|
|
526
|
+
visible: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
527
527
|
arrowOffset: number;
|
|
528
528
|
boundariesPadding: number;
|
|
529
529
|
fallbackPlacements: import("@popperjs/core").Placement[];
|
|
@@ -586,6 +586,7 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
586
586
|
popperStyle: import("vue").StyleValue;
|
|
587
587
|
referenceEl: HTMLElement;
|
|
588
588
|
stopPopperMouseEvent: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
589
|
+
content: string;
|
|
589
590
|
showAfter: number;
|
|
590
591
|
hideAfter: number;
|
|
591
592
|
appendTo: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
@@ -659,9 +660,8 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
659
660
|
style: import("vue").StyleValue;
|
|
660
661
|
transition: string;
|
|
661
662
|
offset: number;
|
|
662
|
-
visible: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
663
|
-
content: string;
|
|
664
663
|
effect: string;
|
|
664
|
+
visible: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
665
665
|
arrowOffset: number;
|
|
666
666
|
boundariesPadding: number;
|
|
667
667
|
fallbackPlacements: import("@popperjs/core").Placement[];
|
|
@@ -724,6 +724,7 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
724
724
|
popperStyle: import("vue").StyleValue;
|
|
725
725
|
referenceEl: HTMLElement;
|
|
726
726
|
stopPopperMouseEvent: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
727
|
+
content: string;
|
|
727
728
|
showAfter: number;
|
|
728
729
|
hideAfter: number;
|
|
729
730
|
appendTo: import("../../utils/props").BuildPropType<import("../../utils/props").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
@@ -783,6 +784,7 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
783
784
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
784
785
|
} & Readonly<{} & {} & {}> & import("vue").ShallowUnwrapRef<import("..").ElPopperInjectionContext> & {} & {} & import("vue").ComponentCustomProperties) | null>;
|
|
785
786
|
open: import("vue").Ref<boolean>;
|
|
787
|
+
hide: () => void;
|
|
786
788
|
updatePopper: () => void;
|
|
787
789
|
onOpen: () => void;
|
|
788
790
|
onClose: () => void;
|
|
@@ -832,8 +834,8 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
832
834
|
} & {
|
|
833
835
|
disabled: boolean;
|
|
834
836
|
loading: boolean;
|
|
835
|
-
multiple: boolean;
|
|
836
837
|
popperClass: string;
|
|
838
|
+
multiple: boolean;
|
|
837
839
|
autocomplete: string;
|
|
838
840
|
clearable: boolean;
|
|
839
841
|
suffixIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
@@ -873,8 +875,8 @@ export declare const ElSelect: import("../../utils/types").SFCWithInstall<import
|
|
|
873
875
|
disabled: boolean;
|
|
874
876
|
loading: boolean;
|
|
875
877
|
modelValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
876
|
-
multiple: boolean;
|
|
877
878
|
popperClass: string;
|
|
879
|
+
multiple: boolean;
|
|
878
880
|
autocomplete: string;
|
|
879
881
|
clearable: boolean;
|
|
880
882
|
suffixIcon: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|