element-plus 1.3.0-beta.6 → 2.0.0
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 +1855 -1419
- 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 +1853 -1420
- package/dist/locale/af.js +6 -8
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.js.map +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +6 -8
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.js.map +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/bg.js +6 -8
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.js.map +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +6 -8
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.js.map +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +6 -8
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.js.map +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +6 -8
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.js.map +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +6 -8
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.js.map +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +6 -8
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.js.map +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +6 -8
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.js.map +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +6 -8
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.js.map +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +6 -8
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.js.map +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +6 -8
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.js.map +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +6 -8
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.js.map +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +6 -8
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.js.map +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +6 -8
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.js.map +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +6 -8
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.js.map +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +6 -8
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.js.map +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +6 -8
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.js.map +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +6 -8
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.js.map +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +6 -8
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.js.map +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +6 -8
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.js.map +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +6 -8
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.js.map +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +6 -8
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.js.map +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +6 -8
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.js.map +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +6 -8
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.js.map +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +6 -8
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.js.map +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +6 -8
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.js.map +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +6 -8
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.js.map +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +6 -8
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.js.map +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +6 -8
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.js.map +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +6 -8
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.js.map +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mn.js +6 -8
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.js.map +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +6 -8
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.js.map +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +6 -8
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.js.map +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +6 -8
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.js.map +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +6 -8
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.js.map +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +6 -8
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.js.map +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +6 -8
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.js.map +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +6 -8
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.js.map +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +6 -8
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.js.map +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +6 -8
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.js.map +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +6 -8
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.js.map +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +6 -8
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.js.map +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +6 -8
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.js.map +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +6 -8
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.js.map +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +6 -8
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.js.map +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +6 -8
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.js.map +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +6 -8
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.js.map +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +6 -8
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.js.map +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +6 -8
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.js.map +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +6 -8
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.js.map +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +6 -8
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.js.map +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +6 -8
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.js.map +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +6 -8
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.js.map +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/src/affix2.mjs +4 -11
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/affix/style/css.mjs +1 -0
- package/es/components/affix/style/css.mjs.map +1 -1
- package/es/components/affix/style/index.mjs +1 -0
- package/es/components/affix/style/index.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +2 -11
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/alert/style/css.mjs +1 -0
- package/es/components/alert/style/css.mjs.map +1 -1
- package/es/components/alert/style/index.mjs +1 -0
- package/es/components/alert/style/index.mjs.map +1 -1
- package/es/components/aside/style/css.mjs +1 -0
- package/es/components/aside/style/css.mjs.map +1 -1
- package/es/components/aside/style/index.mjs +1 -0
- package/es/components/aside/style/index.mjs.map +1 -1
- package/es/components/autocomplete/index.d.ts +34 -4
- package/es/components/autocomplete/src/index.mjs +33 -31
- package/es/components/autocomplete/src/index.mjs.map +1 -1
- package/es/components/autocomplete/src/index.vue.d.ts +17 -2
- package/es/components/autocomplete/style/css.mjs +4 -0
- package/es/components/autocomplete/style/css.mjs.map +1 -1
- package/es/components/autocomplete/style/index.mjs +4 -0
- package/es/components/autocomplete/style/index.mjs.map +1 -1
- package/es/components/avatar/index.d.ts +1 -1
- package/es/components/avatar/src/avatar.vue.d.ts +1 -1
- package/es/components/avatar/src/avatar2.mjs +6 -13
- package/es/components/avatar/src/avatar2.mjs.map +1 -1
- package/es/components/avatar/style/css.mjs +1 -0
- package/es/components/avatar/style/css.mjs.map +1 -1
- package/es/components/avatar/style/index.mjs +1 -0
- package/es/components/avatar/style/index.mjs.map +1 -1
- package/es/components/backtop/index.d.ts +11 -0
- package/es/components/backtop/src/backtop.vue.d.ts +11 -0
- package/es/components/backtop/src/backtop2.mjs +18 -9
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/backtop/style/css.mjs +1 -0
- package/es/components/backtop/style/css.mjs.map +1 -1
- package/es/components/backtop/style/index.mjs +1 -0
- package/es/components/backtop/style/index.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +2 -11
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/badge/style/css.mjs +1 -0
- package/es/components/badge/style/css.mjs.map +1 -1
- package/es/components/badge/style/index.mjs +1 -0
- package/es/components/badge/style/index.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +6 -14
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +4 -12
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/breadcrumb/style/css.mjs +1 -0
- package/es/components/breadcrumb/style/css.mjs.map +1 -1
- package/es/components/breadcrumb/style/index.mjs +1 -0
- package/es/components/breadcrumb/style/index.mjs.map +1 -1
- package/es/components/breadcrumb-item/style/css.mjs +1 -0
- package/es/components/breadcrumb-item/style/css.mjs.map +1 -1
- package/es/components/breadcrumb-item/style/index.mjs +1 -0
- package/es/components/breadcrumb-item/style/index.mjs.map +1 -1
- package/es/components/button/src/button-group2.mjs +4 -12
- package/es/components/button/src/button-group2.mjs.map +1 -1
- package/es/components/button/src/button.mjs +2 -11
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +18 -19
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/button/style/css.mjs +1 -0
- package/es/components/button/style/css.mjs.map +1 -1
- package/es/components/button/style/index.mjs +1 -0
- package/es/components/button/style/index.mjs.map +1 -1
- package/es/components/button-group/style/css.mjs +1 -0
- package/es/components/button-group/style/css.mjs.map +1 -1
- package/es/components/button-group/style/index.mjs +1 -0
- package/es/components/button-group/style/index.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +3 -11
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/calendar/src/date-table.mjs +1 -3
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/date-table2.mjs +4 -11
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/calendar/style/css.mjs +3 -0
- package/es/components/calendar/style/css.mjs.map +1 -1
- package/es/components/calendar/style/index.mjs +3 -0
- package/es/components/calendar/style/index.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +2 -11
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/card/style/css.mjs +1 -0
- package/es/components/card/style/css.mjs.map +1 -1
- package/es/components/card/style/index.mjs +1 -0
- package/es/components/card/style/index.mjs.map +1 -1
- package/es/components/carousel/index.d.ts +11 -0
- package/es/components/carousel/src/item.mjs +21 -15
- package/es/components/carousel/src/item.mjs.map +1 -1
- package/es/components/carousel/src/main.mjs +25 -23
- package/es/components/carousel/src/main.mjs.map +1 -1
- package/es/components/carousel/src/main.vue.d.ts +11 -0
- package/es/components/carousel/style/css.mjs +1 -0
- package/es/components/carousel/style/css.mjs.map +1 -1
- package/es/components/carousel/style/index.mjs +1 -0
- package/es/components/carousel/style/index.mjs.map +1 -1
- package/es/components/carousel-item/style/css.mjs +1 -0
- package/es/components/carousel-item/style/css.mjs.map +1 -1
- package/es/components/carousel-item/style/index.mjs +1 -0
- package/es/components/carousel-item/style/index.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +60 -4
- package/es/components/cascader/src/index.mjs +60 -46
- package/es/components/cascader/src/index.mjs.map +1 -1
- package/es/components/cascader/src/index.vue.d.ts +30 -2
- package/es/components/cascader/style/css.mjs +5 -0
- package/es/components/cascader/style/css.mjs.map +1 -1
- package/es/components/cascader/style/index.mjs +5 -0
- package/es/components/cascader/style/index.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +17 -14
- package/es/components/cascader-panel/src/index.mjs.map +1 -1
- package/es/components/cascader-panel/src/menu.mjs +27 -31
- package/es/components/cascader-panel/src/menu.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs +7 -3
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/style/css.mjs +4 -0
- package/es/components/cascader-panel/style/css.mjs.map +1 -1
- package/es/components/cascader-panel/style/index.mjs +4 -0
- package/es/components/cascader-panel/style/index.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +2 -11
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/check-tag/style/css.mjs +1 -0
- package/es/components/check-tag/style/css.mjs.map +1 -1
- package/es/components/check-tag/style/index.mjs +1 -0
- package/es/components/check-tag/style/index.mjs.map +1 -1
- package/es/components/checkbox/index.d.ts +36 -3
- package/es/components/checkbox/src/checkbox-button.mjs +21 -15
- package/es/components/checkbox/src/checkbox-button.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +12 -1
- package/es/components/checkbox/src/checkbox-group.mjs +8 -13
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.mjs +35 -27
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.vue.d.ts +12 -1
- package/es/components/checkbox/src/useCheckbox.d.ts +1 -1
- package/es/components/checkbox/src/useCheckbox.mjs +4 -10
- package/es/components/checkbox/src/useCheckbox.mjs.map +1 -1
- package/es/components/checkbox/style/css.mjs +1 -0
- package/es/components/checkbox/style/css.mjs.map +1 -1
- package/es/components/checkbox/style/index.mjs +1 -0
- package/es/components/checkbox/style/index.mjs.map +1 -1
- package/es/components/checkbox-button/style/css.mjs +1 -0
- package/es/components/checkbox-button/style/css.mjs.map +1 -1
- package/es/components/checkbox-button/style/index.mjs +1 -0
- package/es/components/checkbox-button/style/index.mjs.map +1 -1
- package/es/components/checkbox-group/style/css.mjs +1 -0
- package/es/components/checkbox-group/style/css.mjs.map +1 -1
- package/es/components/checkbox-group/style/index.mjs +1 -0
- package/es/components/checkbox-group/style/index.mjs.map +1 -1
- package/es/components/col/style/css.mjs +1 -0
- package/es/components/col/style/css.mjs.map +1 -1
- package/es/components/col/style/index.mjs +1 -0
- package/es/components/col/style/index.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item.mjs +3 -3
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/style/css.mjs +1 -0
- package/es/components/collapse/style/css.mjs.map +1 -1
- package/es/components/collapse/style/index.mjs +1 -0
- package/es/components/collapse/style/index.mjs.map +1 -1
- package/es/components/collapse-item/style/css.mjs +1 -0
- package/es/components/collapse-item/style/css.mjs.map +1 -1
- package/es/components/collapse-item/style/index.mjs +1 -0
- package/es/components/collapse-item/style/index.mjs.map +1 -1
- package/es/components/collapse-transition/style/css.mjs +1 -0
- package/es/components/collapse-transition/style/css.mjs.map +1 -1
- package/es/components/collapse-transition/style/index.mjs +1 -0
- package/es/components/collapse-transition/style/index.mjs.map +1 -1
- package/es/components/collection/index.mjs +1 -0
- package/es/components/collection/index.mjs.map +1 -1
- package/es/components/collection/src/collection.mjs +1 -1
- package/es/components/color-picker/src/components/sv-panel.mjs +1 -1
- package/es/components/color-picker/src/draggable.mjs +1 -1
- package/es/components/color-picker/src/index.mjs +16 -19
- package/es/components/color-picker/src/index.mjs.map +1 -1
- package/es/components/color-picker/style/css.mjs +3 -0
- package/es/components/color-picker/style/css.mjs.map +1 -1
- package/es/components/color-picker/style/index.mjs +3 -0
- package/es/components/color-picker/style/index.mjs.map +1 -1
- package/es/components/config-provider/src/config-provider.mjs +1 -9
- package/es/components/config-provider/src/config-provider.mjs.map +1 -1
- package/es/components/config-provider/style/css.mjs +1 -0
- package/es/components/config-provider/style/css.mjs.map +1 -1
- package/es/components/config-provider/style/index.mjs +1 -0
- package/es/components/config-provider/style/index.mjs.map +1 -1
- package/es/components/container/src/aside.mjs +2 -11
- package/es/components/container/src/aside.mjs.map +1 -1
- package/es/components/container/src/container.mjs +2 -11
- package/es/components/container/src/container.mjs.map +1 -1
- package/es/components/container/src/footer.mjs +2 -11
- package/es/components/container/src/footer.mjs.map +1 -1
- package/es/components/container/src/header.mjs +2 -11
- package/es/components/container/src/header.mjs.map +1 -1
- package/es/components/container/src/main.mjs +2 -11
- package/es/components/container/src/main.mjs.map +1 -1
- package/es/components/container/style/css.mjs +1 -0
- package/es/components/container/style/css.mjs.map +1 -1
- package/es/components/container/style/index.mjs +1 -0
- package/es/components/container/style/index.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs +4 -10
- package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-month-table.mjs +5 -10
- package/es/components/date-picker/src/date-picker-com/basic-month-table.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-year-table.mjs +4 -10
- package/es/components/date-picker/src/date-picker-com/basic-year-table.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs +7 -14
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs +4 -12
- package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-month-range.mjs +2 -10
- package/es/components/date-picker/src/date-picker-com/panel-month-range.mjs.map +1 -1
- package/es/components/date-picker/style/css.mjs +5 -0
- package/es/components/date-picker/style/css.mjs.map +1 -1
- package/es/components/date-picker/style/index.mjs +5 -0
- package/es/components/date-picker/style/index.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-cell.mjs +2 -10
- package/es/components/descriptions/src/descriptions-cell.mjs.map +1 -1
- package/es/components/descriptions/src/index.mjs +10 -13
- package/es/components/descriptions/src/index.mjs.map +1 -1
- package/es/components/descriptions/style/css.mjs +2 -0
- package/es/components/descriptions/style/css.mjs.map +1 -1
- package/es/components/descriptions/style/index.mjs +2 -0
- package/es/components/descriptions/style/index.mjs.map +1 -1
- package/es/components/descriptions-item/style/css.mjs +1 -0
- package/es/components/descriptions-item/style/css.mjs.map +1 -1
- package/es/components/descriptions-item/style/index.mjs +1 -0
- package/es/components/descriptions-item/style/index.mjs.map +1 -1
- package/es/components/dialog/index.d.ts +4 -0
- package/es/components/dialog/src/dialog.d.ts +1 -0
- package/es/components/dialog/src/dialog.mjs +5 -3
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +4 -0
- package/es/components/dialog/src/dialog2.mjs +16 -17
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/dialog/src/use-dialog.mjs +6 -10
- package/es/components/dialog/src/use-dialog.mjs.map +1 -1
- package/es/components/dialog/style/css.mjs +2 -0
- package/es/components/dialog/style/css.mjs.map +1 -1
- package/es/components/dialog/style/index.mjs +2 -0
- package/es/components/dialog/style/index.mjs.map +1 -1
- package/es/components/divider/src/divider2.mjs +2 -11
- package/es/components/divider/src/divider2.mjs.map +1 -1
- package/es/components/divider/style/css.mjs +1 -0
- package/es/components/divider/style/css.mjs.map +1 -1
- package/es/components/divider/style/index.mjs +1 -0
- package/es/components/divider/style/index.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +14 -0
- package/es/components/drawer/src/drawer.d.ts +1 -0
- package/es/components/drawer/src/drawer.mjs +1 -0
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +14 -0
- package/es/components/drawer/src/drawer2.mjs +36 -35
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/drawer/style/css.mjs +2 -0
- package/es/components/drawer/style/css.mjs.map +1 -1
- package/es/components/drawer/style/index.mjs +2 -0
- package/es/components/drawer/style/index.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -0
- package/es/components/dropdown/src/dropdown-item-impl.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item.mjs +15 -7
- package/es/components/dropdown/src/dropdown-item.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +8 -3
- package/es/components/dropdown/src/dropdown-menu.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.mjs +2 -0
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +16 -17
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/dropdown/style/css.mjs +3 -0
- package/es/components/dropdown/style/css.mjs.map +1 -1
- package/es/components/dropdown/style/index.mjs +3 -0
- package/es/components/dropdown/style/index.mjs.map +1 -1
- package/es/components/dropdown-item/style/css.mjs +1 -0
- package/es/components/dropdown-item/style/css.mjs.map +1 -1
- package/es/components/dropdown-item/style/index.mjs +1 -0
- package/es/components/dropdown-item/style/index.mjs.map +1 -1
- package/es/components/dropdown-menu/style/css.mjs +1 -0
- package/es/components/dropdown-menu/style/css.mjs.map +1 -1
- package/es/components/dropdown-menu/style/index.mjs +1 -0
- package/es/components/dropdown-menu/style/index.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +3 -11
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/empty/src/img-empty.mjs +14 -14
- package/es/components/empty/src/img-empty.mjs.map +1 -1
- package/es/components/empty/style/css.mjs +1 -0
- package/es/components/empty/style/css.mjs.map +1 -1
- package/es/components/empty/style/index.mjs +1 -0
- package/es/components/empty/style/index.mjs.map +1 -1
- package/es/components/focus-trap/src/focus-trap.mjs +3 -3
- package/es/components/focus-trap/src/focus-trap.mjs.map +1 -1
- package/es/components/footer/style/css.mjs +1 -0
- package/es/components/footer/style/css.mjs.map +1 -1
- package/es/components/footer/style/index.mjs +1 -0
- package/es/components/footer/style/index.mjs.map +1 -1
- package/es/components/form/src/form-item.mjs +11 -14
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form.mjs +5 -12
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/label-wrap.mjs +2 -1
- package/es/components/form/src/label-wrap.mjs.map +1 -1
- package/es/components/form/style/css.mjs +1 -0
- package/es/components/form/style/css.mjs.map +1 -1
- package/es/components/form/style/index.mjs +1 -0
- package/es/components/form/style/index.mjs.map +1 -1
- package/es/components/form-item/style/css.mjs +1 -0
- package/es/components/form-item/style/css.mjs.map +1 -1
- package/es/components/form-item/style/index.mjs +1 -0
- package/es/components/form-item/style/index.mjs.map +1 -1
- package/es/components/header/style/css.mjs +1 -0
- package/es/components/header/style/css.mjs.map +1 -1
- package/es/components/header/style/index.mjs +1 -0
- package/es/components/header/style/index.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +2 -10
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/icon/style/css.mjs +1 -0
- package/es/components/icon/style/css.mjs.map +1 -1
- package/es/components/icon/style/index.mjs +1 -0
- package/es/components/icon/style/index.mjs.map +1 -1
- package/es/components/image/index.d.ts +11 -0
- package/es/components/image/src/image.vue.d.ts +11 -0
- package/es/components/image/src/image2.mjs +27 -32
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/image/style/css.mjs +2 -0
- package/es/components/image/style/css.mjs.map +1 -1
- package/es/components/image/style/index.mjs +2 -0
- package/es/components/image/style/index.mjs.map +1 -1
- package/es/components/image-viewer/index.d.ts +12 -1
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +12 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +82 -60
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/image-viewer/style/css.mjs +1 -0
- package/es/components/image-viewer/style/css.mjs.map +1 -1
- package/es/components/image-viewer/style/index.mjs +1 -0
- package/es/components/image-viewer/style/index.mjs.map +1 -1
- package/es/components/index.mjs +6 -4
- package/es/components/index.mjs.map +1 -1
- package/es/components/infinite-scroll/src/index.mjs +1 -1
- package/es/components/infinite-scroll/style/css.mjs +1 -0
- package/es/components/infinite-scroll/style/css.mjs.map +1 -1
- package/es/components/infinite-scroll/style/index.mjs +1 -0
- package/es/components/infinite-scroll/style/index.mjs.map +1 -1
- package/es/components/input/src/input.mjs +1 -9
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +25 -20
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input/style/css.mjs +1 -0
- package/es/components/input/style/css.mjs.map +1 -1
- package/es/components/input/style/index.mjs +1 -0
- package/es/components/input/style/index.mjs.map +1 -1
- package/es/components/input-number/src/input-number2.mjs +19 -21
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/input-number/style/css.mjs +2 -0
- package/es/components/input-number/style/css.mjs.map +1 -1
- package/es/components/input-number/style/index.mjs +2 -0
- package/es/components/input-number/style/index.mjs.map +1 -1
- package/es/components/link/src/link2.mjs +2 -11
- package/es/components/link/src/link2.mjs.map +1 -1
- package/es/components/link/style/css.mjs +1 -0
- package/es/components/link/style/css.mjs.map +1 -1
- package/es/components/link/style/index.mjs +1 -0
- package/es/components/link/style/index.mjs.map +1 -1
- package/es/components/loading/index.mjs +1 -0
- package/es/components/loading/index.mjs.map +1 -1
- package/es/components/loading/src/directive.mjs +2 -2
- package/es/components/loading/src/loading.mjs +1 -1
- package/es/components/loading/style/css.mjs +1 -0
- package/es/components/loading/style/css.mjs.map +1 -1
- package/es/components/loading/style/index.mjs +1 -0
- package/es/components/loading/style/index.mjs.map +1 -1
- package/es/components/main/style/css.mjs +1 -0
- package/es/components/main/style/css.mjs.map +1 -1
- package/es/components/main/style/index.mjs +1 -0
- package/es/components/main/style/index.mjs.map +1 -1
- package/es/components/menu/index.mjs +1 -0
- package/es/components/menu/index.mjs.map +1 -1
- package/es/components/menu/src/menu-collapse-transition.mjs +1 -0
- package/es/components/menu/src/menu-collapse-transition.mjs.map +1 -1
- package/es/components/menu/src/menu-item.mjs +1 -3
- package/es/components/menu/src/menu-item.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs +1 -0
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/menu/src/menu.mjs +5 -7
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/menu/style/css.mjs +2 -0
- package/es/components/menu/style/css.mjs.map +1 -1
- package/es/components/menu/style/index.mjs +2 -0
- package/es/components/menu/style/index.mjs.map +1 -1
- package/es/components/message/src/message2.mjs +3 -2
- package/es/components/message/src/message2.mjs.map +1 -1
- package/es/components/message/style/css.mjs +1 -0
- package/es/components/message/style/css.mjs.map +1 -1
- package/es/components/message/style/index.mjs +1 -0
- package/es/components/message/style/index.mjs.map +1 -1
- package/es/components/message-box/index.mjs +1 -0
- package/es/components/message-box/index.mjs.map +1 -1
- package/es/components/message-box/src/index.mjs +150 -133
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/message-box/src/index.vue.d.ts +15 -4
- package/es/components/message-box/src/message-box.type.d.ts +2 -0
- package/es/components/message-box/src/messageBox.mjs +3 -3
- package/es/components/message-box/style/css.mjs +4 -0
- package/es/components/message-box/style/css.mjs.map +1 -1
- package/es/components/message-box/style/index.mjs +4 -0
- package/es/components/message-box/style/index.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +3 -2
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +3 -2
- package/es/components/notification/src/notify.mjs.map +1 -1
- package/es/components/notification/style/css.mjs +1 -0
- package/es/components/notification/style/css.mjs.map +1 -1
- package/es/components/notification/style/index.mjs +1 -0
- package/es/components/notification/style/index.mjs.map +1 -1
- package/es/components/option/style/css.mjs +1 -0
- package/es/components/option/style/css.mjs.map +1 -1
- package/es/components/option/style/index.mjs +1 -0
- package/es/components/option/style/index.mjs.map +1 -1
- package/es/components/option-group/style/css.mjs +1 -0
- package/es/components/option-group/style/css.mjs.map +1 -1
- package/es/components/option-group/style/index.mjs +1 -0
- package/es/components/option-group/style/index.mjs.map +1 -1
- package/es/components/overlay/src/overlay.mjs +2 -11
- package/es/components/overlay/src/overlay.mjs.map +1 -1
- package/es/components/overlay/style/css.mjs +1 -0
- package/es/components/overlay/style/css.mjs.map +1 -1
- package/es/components/overlay/style/index.mjs +1 -0
- package/es/components/overlay/style/index.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +2 -10
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/page-header/style/css.mjs +1 -0
- package/es/components/page-header/style/css.mjs.map +1 -1
- package/es/components/page-header/style/index.mjs +1 -0
- package/es/components/page-header/style/index.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.mjs +14 -15
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.mjs +11 -14
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +3 -0
- package/es/components/pagination/src/components/total.mjs +12 -14
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total.vue.d.ts +1 -0
- package/es/components/pagination/src/pagination.mjs +17 -12
- package/es/components/pagination/src/pagination.mjs.map +1 -1
- package/es/components/pagination/src/usePagination.mjs +1 -0
- package/es/components/pagination/src/usePagination.mjs.map +1 -1
- package/es/components/pagination/style/css.mjs +2 -0
- package/es/components/pagination/style/css.mjs.map +1 -1
- package/es/components/pagination/style/index.mjs +2 -0
- package/es/components/pagination/style/index.mjs.map +1 -1
- package/es/components/popconfirm/index.d.ts +26 -22
- package/es/components/popconfirm/src/popconfirm.d.ts +12 -11
- package/es/components/popconfirm/src/popconfirm.mjs +49 -43
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +26 -22
- package/es/components/popconfirm/src/popconfirm2.mjs +17 -17
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popconfirm/style/css.mjs +2 -0
- package/es/components/popconfirm/style/css.mjs.map +1 -1
- package/es/components/popconfirm/style/index.mjs +2 -0
- package/es/components/popconfirm/style/index.mjs.map +1 -1
- package/es/components/popover/index.d.ts +30 -6
- package/es/components/popover/src/index.mjs +27 -11
- package/es/components/popover/src/index.mjs.map +1 -1
- package/es/components/popover/src/index.vue.d.ts +41 -29
- package/es/components/popover/src/popover.d.ts +5 -1
- package/es/components/popover/src/popover.mjs +3 -4
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/style/css.mjs +2 -0
- package/es/components/popover/style/css.mjs.map +1 -1
- package/es/components/popover/style/index.mjs +2 -0
- package/es/components/popover/style/index.mjs.map +1 -1
- package/es/components/popper/index.d.ts +1 -0
- package/es/components/popper/index.mjs +1 -0
- package/es/components/popper/index.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +6 -4
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/deprecation.d.ts +3 -0
- package/es/components/popper/src/deprecation.mjs +24 -0
- package/es/components/popper/src/deprecation.mjs.map +1 -0
- package/es/components/popper/src/popper.mjs +2 -0
- package/es/components/popper/src/popper.mjs.map +1 -1
- package/es/components/popper/src/trigger.mjs +6 -12
- package/es/components/popper/src/trigger.mjs.map +1 -1
- package/es/components/popper/style/css.mjs +1 -0
- package/es/components/popper/style/css.mjs.map +1 -1
- package/es/components/popper/style/index.mjs +1 -0
- package/es/components/popper/style/index.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +2 -1
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/progress/style/css.mjs +1 -0
- package/es/components/progress/style/css.mjs.map +1 -1
- package/es/components/progress/style/index.mjs +1 -0
- package/es/components/progress/style/index.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +4 -4
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/radio/src/radio-group.mjs +2 -11
- package/es/components/radio/src/radio-group.mjs.map +1 -1
- package/es/components/radio/src/radio-group2.mjs +8 -14
- package/es/components/radio/src/radio-group2.mjs.map +1 -1
- package/es/components/radio/src/radio.mjs +3 -8
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio2.mjs +1 -1
- package/es/components/radio/style/css.mjs +1 -0
- package/es/components/radio/style/css.mjs.map +1 -1
- package/es/components/radio/style/index.mjs +1 -0
- package/es/components/radio/style/index.mjs.map +1 -1
- package/es/components/radio-button/style/css.mjs +1 -0
- package/es/components/radio-button/style/css.mjs.map +1 -1
- package/es/components/radio-button/style/index.mjs +1 -0
- package/es/components/radio-button/style/index.mjs.map +1 -1
- package/es/components/radio-group/style/css.mjs +1 -0
- package/es/components/radio-group/style/css.mjs.map +1 -1
- package/es/components/radio-group/style/index.mjs +1 -0
- package/es/components/radio-group/style/index.mjs.map +1 -1
- package/es/components/rate/index.d.ts +8 -8
- package/es/components/rate/src/rate.d.ts +4 -4
- package/es/components/rate/src/rate.mjs +8 -4
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate.vue.d.ts +8 -8
- package/es/components/rate/src/rate2.mjs +6 -12
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/rate/style/css.mjs +1 -0
- package/es/components/rate/style/css.mjs.map +1 -1
- package/es/components/rate/style/index.mjs +1 -0
- package/es/components/rate/style/index.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +2 -11
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/result/style/css.mjs +1 -0
- package/es/components/result/style/css.mjs.map +1 -1
- package/es/components/result/style/index.mjs +1 -0
- package/es/components/result/style/index.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +12 -8
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -0
- package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +6 -12
- package/es/components/roving-focus-group/src/roving-focus-item.mjs.map +1 -1
- package/es/components/row/src/row.mjs +1 -10
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/row/style/css.mjs +1 -0
- package/es/components/row/style/css.mjs.map +1 -1
- package/es/components/row/style/index.mjs +1 -0
- package/es/components/row/style/index.mjs.map +1 -1
- package/es/components/scrollbar/index.d.ts +13 -1
- package/es/components/scrollbar/index.mjs +1 -1
- package/es/components/scrollbar/index.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.d.ts +5 -5
- package/es/components/scrollbar/src/bar.mjs +18 -6
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.vue.d.ts +18 -37
- package/es/components/scrollbar/src/bar2.mjs +34 -116
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +12 -0
- package/es/components/scrollbar/src/scrollbar2.mjs +31 -32
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb.d.ts +9 -0
- package/es/components/scrollbar/src/thumb.mjs +15 -0
- package/es/components/scrollbar/src/thumb.mjs.map +1 -0
- package/es/components/scrollbar/src/thumb.vue.d.ts +54 -0
- package/es/components/scrollbar/src/thumb2.mjs +141 -0
- package/es/components/scrollbar/src/thumb2.mjs.map +1 -0
- package/es/components/scrollbar/style/css.mjs +1 -0
- package/es/components/scrollbar/style/css.mjs.map +1 -1
- package/es/components/scrollbar/style/index.mjs +1 -0
- package/es/components/scrollbar/style/index.mjs.map +1 -1
- package/es/components/select/index.d.ts +6 -2
- package/es/components/select/src/option-group.mjs +2 -1
- package/es/components/select/src/option-group.mjs.map +1 -1
- package/es/components/select/src/select-dropdown.mjs +2 -1
- package/es/components/select/src/select-dropdown.mjs.map +1 -1
- package/es/components/select/src/select.mjs +24 -21
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +30 -26
- package/es/components/select/src/useSelect.mjs +9 -10
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select/style/css.mjs +7 -0
- package/es/components/select/style/css.mjs.map +1 -1
- package/es/components/select/style/index.mjs +7 -0
- package/es/components/select/style/index.mjs.map +1 -1
- package/es/components/select-v2/index.d.ts +12 -12
- package/es/components/select-v2/src/defaults.d.ts +2 -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-dropdown.mjs +4 -2
- package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
- package/es/components/select-v2/src/select.mjs +196 -193
- package/es/components/select-v2/src/select.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +6 -6
- package/es/components/select-v2/src/useSelect.d.ts +1 -4
- package/es/components/select-v2/src/useSelect.mjs +12 -14
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/style/css.mjs +5 -0
- package/es/components/select-v2/style/css.mjs.map +1 -1
- package/es/components/select-v2/style/index.mjs +5 -0
- package/es/components/select-v2/style/index.mjs.map +1 -1
- package/es/components/skeleton/index.d.ts +37 -2
- package/es/components/skeleton/src/image-placeholder.mjs +1 -1
- package/es/components/skeleton/src/skeleton-item.vue.d.ts +13 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +10 -2
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton.vue.d.ts +11 -0
- package/es/components/skeleton/src/skeleton2.mjs +13 -19
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/skeleton/style/css.mjs +2 -0
- package/es/components/skeleton/style/css.mjs.map +1 -1
- package/es/components/skeleton/style/index.mjs +2 -0
- package/es/components/skeleton/style/index.mjs.map +1 -1
- package/es/components/skeleton-item/style/css.mjs +1 -0
- package/es/components/skeleton-item/style/css.mjs.map +1 -1
- package/es/components/skeleton-item/style/index.mjs +1 -0
- package/es/components/skeleton-item/style/index.mjs.map +1 -1
- package/es/components/slider/index.mjs +1 -0
- package/es/components/slider/index.mjs.map +1 -1
- package/es/components/slider/src/index.mjs +5 -12
- package/es/components/slider/src/index.mjs.map +1 -1
- package/es/components/slider/src/marker.mjs +2 -1
- package/es/components/slider/src/marker.mjs.map +1 -1
- package/es/components/slider/src/useSlide.mjs +1 -0
- package/es/components/slider/src/useSlide.mjs.map +1 -1
- package/es/components/slider/src/useSliderButton.mjs +1 -1
- package/es/components/slider/style/css.mjs +3 -0
- package/es/components/slider/style/css.mjs.map +1 -1
- package/es/components/slider/style/index.mjs +3 -0
- package/es/components/slider/style/index.mjs.map +1 -1
- package/es/components/slot/src/only-child.mjs +2 -10
- package/es/components/slot/src/only-child.mjs.map +1 -1
- package/es/components/space/style/css.mjs +1 -0
- package/es/components/space/style/css.mjs.map +1 -1
- package/es/components/space/style/index.mjs +1 -0
- package/es/components/space/style/index.mjs.map +1 -1
- package/es/components/step/style/css.mjs +1 -0
- package/es/components/step/style/css.mjs.map +1 -1
- package/es/components/step/style/index.mjs +1 -0
- package/es/components/step/style/index.mjs.map +1 -1
- package/es/components/steps/src/item.mjs +2 -1
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/style/css.mjs +1 -0
- package/es/components/steps/style/css.mjs.map +1 -1
- package/es/components/steps/style/index.mjs +1 -0
- package/es/components/steps/style/index.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +9 -13
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/switch/style/css.mjs +1 -0
- package/es/components/switch/style/css.mjs.map +1 -1
- package/es/components/switch/style/index.mjs +1 -0
- package/es/components/switch/style/index.mjs.map +1 -1
- package/es/components/tab-pane/style/css.mjs +1 -0
- package/es/components/tab-pane/style/css.mjs.map +1 -1
- package/es/components/tab-pane/style/index.mjs +1 -0
- package/es/components/tab-pane/style/index.mjs.map +1 -1
- package/es/components/table/index.mjs +1 -0
- package/es/components/table/index.mjs.map +1 -1
- package/es/components/table/src/filter-panel.mjs +12 -16
- package/es/components/table/src/filter-panel.mjs.map +1 -1
- package/es/components/table/src/store/index.mjs +7 -11
- package/es/components/table/src/store/index.mjs.map +1 -1
- package/es/components/table/src/store/tree.mjs +1 -1
- package/es/components/table/src/store/watcher.mjs +1 -1
- package/es/components/table/src/table/style-helper.mjs +4 -10
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/index.mjs +3 -11
- package/es/components/table/src/table-body/index.mjs.map +1 -1
- package/es/components/table/src/table-body/styles-helper.mjs +2 -11
- package/es/components/table/src/table-body/styles-helper.mjs.map +1 -1
- package/es/components/table/src/table-column/render-helper.mjs +3 -12
- package/es/components/table/src/table-column/render-helper.mjs.map +1 -1
- package/es/components/table/src/table-footer/index.mjs +2 -11
- package/es/components/table/src/table-footer/index.mjs.map +1 -1
- package/es/components/table/src/table-footer/style-helper.mjs +2 -12
- package/es/components/table/src/table-footer/style-helper.mjs.map +1 -1
- package/es/components/table/src/table-header/event-helper.mjs +1 -1
- package/es/components/table/src/table-header/index.mjs +2 -11
- package/es/components/table/src/table-header/index.mjs.map +1 -1
- package/es/components/table/src/table-header/style.helper.mjs +2 -11
- package/es/components/table/src/table-header/style.helper.mjs.map +1 -1
- package/es/components/table/src/table.mjs +8 -15
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/table/style/css.mjs +4 -0
- package/es/components/table/style/css.mjs.map +1 -1
- package/es/components/table/style/index.mjs +4 -0
- package/es/components/table/style/index.mjs.map +1 -1
- package/es/components/table-column/style/css.mjs +3 -0
- package/es/components/table-column/style/css.mjs.map +1 -1
- package/es/components/table-column/style/index.mjs +3 -0
- package/es/components/table-column/style/index.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +5 -3
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +2 -1
- package/es/components/tabs/src/tab-nav.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +2 -1
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tabs/src/tabs.mjs +3 -2
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/tabs/style/css.mjs +1 -0
- package/es/components/tabs/style/css.mjs.map +1 -1
- package/es/components/tabs/style/index.mjs +1 -0
- package/es/components/tabs/style/index.mjs.map +1 -1
- package/es/components/tag/index.d.ts +12 -1
- package/es/components/tag/src/tag.vue.d.ts +12 -1
- package/es/components/tag/src/tag2.mjs +25 -28
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/tag/style/css.mjs +1 -0
- package/es/components/tag/style/css.mjs.map +1 -1
- package/es/components/tag/style/index.mjs +1 -0
- package/es/components/tag/style/index.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.mjs +23 -19
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs +3 -7
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs +2 -10
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs +2 -10
- package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs.map +1 -1
- package/es/components/time-picker/style/css.mjs +4 -0
- package/es/components/time-picker/style/css.mjs.map +1 -1
- package/es/components/time-picker/style/index.mjs +4 -0
- package/es/components/time-picker/style/index.mjs.map +1 -1
- package/es/components/time-select/src/time-select.mjs +4 -2
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/style/css.mjs +6 -0
- package/es/components/time-select/style/css.mjs.map +1 -1
- package/es/components/time-select/style/index.mjs +6 -0
- package/es/components/time-select/style/index.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +2 -11
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/timeline/src/timeline.mjs +1 -10
- package/es/components/timeline/src/timeline.mjs.map +1 -1
- package/es/components/timeline/style/css.mjs +1 -0
- package/es/components/timeline/style/css.mjs.map +1 -1
- package/es/components/timeline/style/index.mjs +1 -0
- package/es/components/timeline/style/index.mjs.map +1 -1
- package/es/components/timeline-item/style/css.mjs +1 -0
- package/es/components/timeline-item/style/css.mjs.map +1 -1
- package/es/components/timeline-item/style/index.mjs +1 -0
- package/es/components/timeline-item/style/index.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +14 -15
- package/es/components/tooltip/src/content.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +4 -11
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +8 -13
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.mjs +2 -1
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/tooltip/src/utils.mjs +1 -2
- package/es/components/tooltip/src/utils.mjs.map +1 -1
- package/es/components/tooltip/style/css.mjs +2 -0
- package/es/components/tooltip/style/css.mjs.map +1 -1
- package/es/components/tooltip/style/index.mjs +2 -0
- package/es/components/tooltip/style/index.mjs.map +1 -1
- package/es/components/transfer/index.d.ts +492 -0
- package/es/components/transfer/index.mjs +1 -0
- package/es/components/transfer/index.mjs.map +1 -1
- package/es/components/transfer/src/index.mjs +18 -18
- package/es/components/transfer/src/index.mjs.map +1 -1
- package/es/components/transfer/src/index.vue.d.ts +246 -0
- package/es/components/transfer/src/transfer-panel.mjs +2 -10
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/style/css.mjs +5 -0
- package/es/components/transfer/style/css.mjs.map +1 -1
- package/es/components/transfer/style/index.mjs +5 -0
- package/es/components/transfer/style/index.mjs.map +1 -1
- package/es/components/tree/index.d.ts +8 -8
- package/es/components/tree/src/model/node.mjs +1 -0
- package/es/components/tree/src/model/node.mjs.map +1 -1
- package/es/components/tree/src/model/tree-store.mjs +2 -0
- package/es/components/tree/src/model/tree-store.mjs.map +1 -1
- package/es/components/tree/src/tree.mjs +4 -12
- package/es/components/tree/src/tree.mjs.map +1 -1
- package/es/components/tree/src/tree.vue.d.ts +4 -4
- package/es/components/tree/style/css.mjs +2 -0
- package/es/components/tree/style/css.mjs.map +1 -1
- package/es/components/tree/style/index.mjs +2 -0
- package/es/components/tree/style/index.mjs.map +1 -1
- package/es/components/tree-v2/src/composables/useCheck.mjs +1 -1
- package/es/components/tree-v2/src/tree-node.mjs +11 -7
- package/es/components/tree-v2/src/tree-node.mjs.map +1 -1
- package/es/components/tree-v2/src/tree.mjs +5 -11
- package/es/components/tree-v2/src/tree.mjs.map +1 -1
- package/es/components/tree-v2/style/css.mjs +2 -0
- package/es/components/tree-v2/style/css.mjs.map +1 -1
- package/es/components/tree-v2/style/index.mjs +2 -0
- package/es/components/tree-v2/style/index.mjs.map +1 -1
- package/es/components/upload/src/ajax.mjs +1 -0
- package/es/components/upload/src/ajax.mjs.map +1 -1
- package/es/components/upload/src/index.mjs +5 -3
- package/es/components/upload/src/index.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger.mjs +2 -1
- package/es/components/upload/src/upload-dragger.mjs.map +1 -1
- package/es/components/upload/src/upload-list.mjs +3 -9
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload.mjs +1 -0
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/style/css.mjs +2 -0
- package/es/components/upload/style/css.mjs.map +1 -1
- package/es/components/upload/style/index.mjs +2 -0
- package/es/components/upload/style/index.mjs.map +1 -1
- package/es/components/virtual-list/index.mjs +1 -0
- package/es/components/virtual-list/index.mjs.map +1 -1
- package/es/components/virtual-list/src/builders/build-grid.mjs +4 -4
- package/es/components/virtual-list/src/builders/build-list.mjs +5 -4
- package/es/components/virtual-list/src/builders/build-list.mjs.map +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-grid.mjs +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-list.mjs +1 -1
- package/es/components/virtual-list/src/components/fixed-size-list.mjs +3 -5
- package/es/components/virtual-list/src/components/fixed-size-list.mjs.map +1 -1
- package/es/components/virtual-list/src/components/scrollbar.mjs +2 -1
- package/es/components/virtual-list/src/components/scrollbar.mjs.map +1 -1
- package/es/components/virtual-list/src/hooks/use-cache.mjs +1 -1
- package/es/components/virtual-list/src/props.mjs +1 -1
- package/es/components/virtual-list/src/utils.mjs +1 -1
- package/es/components/virtual-list/style/css.mjs +2 -0
- package/es/components/virtual-list/style/css.mjs.map +1 -1
- package/es/components/virtual-list/style/index.mjs +2 -0
- package/es/components/virtual-list/style/index.mjs.map +1 -1
- package/es/directives/trap-focus/index.mjs +1 -1
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.mjs +2 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-common-props/index.mjs +3 -2
- package/es/hooks/use-common-props/index.mjs.map +1 -1
- package/es/hooks/use-deprecated/index.d.ts +10 -0
- package/es/hooks/use-deprecated/index.mjs +17 -0
- package/es/hooks/use-deprecated/index.mjs.map +1 -0
- package/es/hooks/use-draggable/index.d.ts +2 -0
- package/es/hooks/use-draggable/index.mjs +65 -0
- package/es/hooks/use-draggable/index.mjs.map +1 -0
- package/es/hooks/use-form-item/index.mjs +1 -0
- package/es/hooks/use-form-item/index.mjs.map +1 -1
- package/es/hooks/use-global-config/index.mjs +2 -1
- package/es/hooks/use-global-config/index.mjs.map +1 -1
- package/es/hooks/use-locale/index.mjs +1 -1
- package/es/hooks/use-lockscreen/index.mjs +1 -1
- package/es/hooks/use-teleport/index.mjs +1 -1
- package/es/index.mjs +45 -38
- package/es/index.mjs.map +1 -1
- package/es/make-installer.mjs +2 -9
- package/es/make-installer.mjs.map +1 -1
- package/es/utils/dom.mjs +1 -2
- package/es/utils/dom.mjs.map +1 -1
- package/es/utils/menu/submenu.mjs +1 -0
- package/es/utils/menu/submenu.mjs.map +1 -1
- package/es/utils/popup-manager.mjs +3 -10
- package/es/utils/popup-manager.mjs.map +1 -1
- package/es/utils/validators.d.ts +0 -1
- package/es/utils/validators.mjs +1 -9
- package/es/utils/validators.mjs.map +1 -1
- package/es/utils/vnode.mjs +1 -1
- package/es/utils/with-install.mjs +4 -0
- package/es/utils/with-install.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/affix/src/affix2.js +4 -11
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/affix/style/css.js +1 -0
- package/lib/components/affix/style/css.js.map +1 -1
- package/lib/components/affix/style/index.js +1 -0
- package/lib/components/affix/style/index.js.map +1 -1
- package/lib/components/alert/src/alert2.js +2 -11
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/alert/style/css.js +1 -0
- package/lib/components/alert/style/css.js.map +1 -1
- package/lib/components/alert/style/index.js +1 -0
- package/lib/components/alert/style/index.js.map +1 -1
- package/lib/components/aside/style/css.js +1 -0
- package/lib/components/aside/style/css.js.map +1 -1
- package/lib/components/aside/style/index.js +1 -0
- package/lib/components/aside/style/index.js.map +1 -1
- package/lib/components/autocomplete/index.d.ts +34 -4
- package/lib/components/autocomplete/src/index.js +33 -31
- package/lib/components/autocomplete/src/index.js.map +1 -1
- package/lib/components/autocomplete/src/index.vue.d.ts +17 -2
- package/lib/components/autocomplete/style/css.js +4 -0
- package/lib/components/autocomplete/style/css.js.map +1 -1
- package/lib/components/autocomplete/style/index.js +4 -0
- package/lib/components/autocomplete/style/index.js.map +1 -1
- package/lib/components/avatar/index.d.ts +1 -1
- package/lib/components/avatar/src/avatar.vue.d.ts +1 -1
- package/lib/components/avatar/src/avatar2.js +6 -13
- package/lib/components/avatar/src/avatar2.js.map +1 -1
- package/lib/components/avatar/style/css.js +1 -0
- package/lib/components/avatar/style/css.js.map +1 -1
- package/lib/components/avatar/style/index.js +1 -0
- package/lib/components/avatar/style/index.js.map +1 -1
- package/lib/components/backtop/index.d.ts +11 -0
- package/lib/components/backtop/src/backtop.vue.d.ts +11 -0
- package/lib/components/backtop/src/backtop2.js +17 -8
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/backtop/style/css.js +1 -0
- package/lib/components/backtop/style/css.js.map +1 -1
- package/lib/components/backtop/style/index.js +1 -0
- package/lib/components/backtop/style/index.js.map +1 -1
- package/lib/components/badge/src/badge2.js +2 -11
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/badge/style/css.js +1 -0
- package/lib/components/badge/style/css.js.map +1 -1
- package/lib/components/badge/style/index.js +1 -0
- package/lib/components/badge/style/index.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +6 -14
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +4 -12
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/breadcrumb/style/css.js +1 -0
- package/lib/components/breadcrumb/style/css.js.map +1 -1
- package/lib/components/breadcrumb/style/index.js +1 -0
- package/lib/components/breadcrumb/style/index.js.map +1 -1
- package/lib/components/breadcrumb-item/style/css.js +1 -0
- package/lib/components/breadcrumb-item/style/css.js.map +1 -1
- package/lib/components/breadcrumb-item/style/index.js +1 -0
- package/lib/components/breadcrumb-item/style/index.js.map +1 -1
- package/lib/components/button/src/button-group2.js +4 -12
- package/lib/components/button/src/button-group2.js.map +1 -1
- package/lib/components/button/src/button.js +2 -11
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +18 -19
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/button/style/css.js +1 -0
- package/lib/components/button/style/css.js.map +1 -1
- package/lib/components/button/style/index.js +1 -0
- package/lib/components/button/style/index.js.map +1 -1
- package/lib/components/button-group/style/css.js +1 -0
- package/lib/components/button-group/style/css.js.map +1 -1
- package/lib/components/button-group/style/index.js +1 -0
- package/lib/components/button-group/style/index.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +3 -11
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/calendar/src/date-table.js +1 -3
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/date-table2.js +4 -11
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/calendar/style/css.js +3 -0
- package/lib/components/calendar/style/css.js.map +1 -1
- package/lib/components/calendar/style/index.js +3 -0
- package/lib/components/calendar/style/index.js.map +1 -1
- package/lib/components/card/src/card2.js +2 -11
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/card/style/css.js +1 -0
- package/lib/components/card/style/css.js.map +1 -1
- package/lib/components/card/style/index.js +1 -0
- package/lib/components/card/style/index.js.map +1 -1
- package/lib/components/carousel/index.d.ts +11 -0
- package/lib/components/carousel/src/item.js +21 -15
- package/lib/components/carousel/src/item.js.map +1 -1
- package/lib/components/carousel/src/main.js +25 -23
- package/lib/components/carousel/src/main.js.map +1 -1
- package/lib/components/carousel/src/main.vue.d.ts +11 -0
- package/lib/components/carousel/style/css.js +1 -0
- package/lib/components/carousel/style/css.js.map +1 -1
- package/lib/components/carousel/style/index.js +1 -0
- package/lib/components/carousel/style/index.js.map +1 -1
- package/lib/components/carousel-item/style/css.js +1 -0
- package/lib/components/carousel-item/style/css.js.map +1 -1
- package/lib/components/carousel-item/style/index.js +1 -0
- package/lib/components/carousel-item/style/index.js.map +1 -1
- package/lib/components/cascader/index.d.ts +60 -4
- package/lib/components/cascader/src/index.js +59 -45
- package/lib/components/cascader/src/index.js.map +1 -1
- package/lib/components/cascader/src/index.vue.d.ts +30 -2
- package/lib/components/cascader/style/css.js +5 -0
- package/lib/components/cascader/style/css.js.map +1 -1
- package/lib/components/cascader/style/index.js +5 -0
- package/lib/components/cascader/style/index.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +16 -13
- package/lib/components/cascader-panel/src/index.js.map +1 -1
- package/lib/components/cascader-panel/src/menu.js +27 -31
- package/lib/components/cascader-panel/src/menu.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js +6 -2
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/style/css.js +4 -0
- package/lib/components/cascader-panel/style/css.js.map +1 -1
- package/lib/components/cascader-panel/style/index.js +4 -0
- package/lib/components/cascader-panel/style/index.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +2 -11
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/check-tag/style/css.js +1 -0
- package/lib/components/check-tag/style/css.js.map +1 -1
- package/lib/components/check-tag/style/index.js +1 -0
- package/lib/components/check-tag/style/index.js.map +1 -1
- package/lib/components/checkbox/index.d.ts +36 -3
- package/lib/components/checkbox/src/checkbox-button.js +21 -15
- package/lib/components/checkbox/src/checkbox-button.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +12 -1
- package/lib/components/checkbox/src/checkbox-group.js +7 -12
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.js +35 -27
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.vue.d.ts +12 -1
- package/lib/components/checkbox/src/useCheckbox.d.ts +1 -1
- package/lib/components/checkbox/src/useCheckbox.js +4 -10
- package/lib/components/checkbox/src/useCheckbox.js.map +1 -1
- package/lib/components/checkbox/style/css.js +1 -0
- package/lib/components/checkbox/style/css.js.map +1 -1
- package/lib/components/checkbox/style/index.js +1 -0
- package/lib/components/checkbox/style/index.js.map +1 -1
- package/lib/components/checkbox-button/style/css.js +1 -0
- package/lib/components/checkbox-button/style/css.js.map +1 -1
- package/lib/components/checkbox-button/style/index.js +1 -0
- package/lib/components/checkbox-button/style/index.js.map +1 -1
- package/lib/components/checkbox-group/style/css.js +1 -0
- package/lib/components/checkbox-group/style/css.js.map +1 -1
- package/lib/components/checkbox-group/style/index.js +1 -0
- package/lib/components/checkbox-group/style/index.js.map +1 -1
- package/lib/components/col/style/css.js +1 -0
- package/lib/components/col/style/css.js.map +1 -1
- package/lib/components/col/style/index.js +1 -0
- package/lib/components/col/style/index.js.map +1 -1
- package/lib/components/collapse/src/collapse-item.js +3 -3
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/style/css.js +1 -0
- package/lib/components/collapse/style/css.js.map +1 -1
- package/lib/components/collapse/style/index.js +1 -0
- package/lib/components/collapse/style/index.js.map +1 -1
- package/lib/components/collapse-item/style/css.js +1 -0
- package/lib/components/collapse-item/style/css.js.map +1 -1
- package/lib/components/collapse-item/style/index.js +1 -0
- package/lib/components/collapse-item/style/index.js.map +1 -1
- package/lib/components/collapse-transition/style/css.js +1 -0
- package/lib/components/collapse-transition/style/css.js.map +1 -1
- package/lib/components/collapse-transition/style/index.js +1 -0
- package/lib/components/collapse-transition/style/index.js.map +1 -1
- package/lib/components/collection/index.js +1 -0
- package/lib/components/collection/index.js.map +1 -1
- package/lib/components/color-picker/src/index.js +15 -18
- package/lib/components/color-picker/src/index.js.map +1 -1
- package/lib/components/color-picker/style/css.js +3 -0
- package/lib/components/color-picker/style/css.js.map +1 -1
- package/lib/components/color-picker/style/index.js +3 -0
- package/lib/components/color-picker/style/index.js.map +1 -1
- package/lib/components/config-provider/src/config-provider.js +1 -9
- package/lib/components/config-provider/src/config-provider.js.map +1 -1
- package/lib/components/config-provider/style/css.js +1 -0
- package/lib/components/config-provider/style/css.js.map +1 -1
- package/lib/components/config-provider/style/index.js +1 -0
- package/lib/components/config-provider/style/index.js.map +1 -1
- package/lib/components/container/src/aside.js +2 -11
- package/lib/components/container/src/aside.js.map +1 -1
- package/lib/components/container/src/container.js +2 -11
- package/lib/components/container/src/container.js.map +1 -1
- package/lib/components/container/src/footer.js +2 -11
- package/lib/components/container/src/footer.js.map +1 -1
- package/lib/components/container/src/header.js +2 -11
- package/lib/components/container/src/header.js.map +1 -1
- package/lib/components/container/src/main.js +2 -11
- package/lib/components/container/src/main.js.map +1 -1
- package/lib/components/container/style/css.js +1 -0
- package/lib/components/container/style/css.js.map +1 -1
- package/lib/components/container/style/index.js +1 -0
- package/lib/components/container/style/index.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.js +4 -10
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.js +5 -10
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-year-table.js +3 -9
- package/lib/components/date-picker/src/date-picker-com/basic-year-table.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js +7 -14
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.js +4 -12
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.js +2 -10
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.js.map +1 -1
- package/lib/components/date-picker/style/css.js +5 -0
- package/lib/components/date-picker/style/css.js.map +1 -1
- package/lib/components/date-picker/style/index.js +5 -0
- package/lib/components/date-picker/style/index.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-cell.js +2 -10
- package/lib/components/descriptions/src/descriptions-cell.js.map +1 -1
- package/lib/components/descriptions/src/index.js +10 -13
- package/lib/components/descriptions/src/index.js.map +1 -1
- package/lib/components/descriptions/style/css.js +2 -0
- package/lib/components/descriptions/style/css.js.map +1 -1
- package/lib/components/descriptions/style/index.js +2 -0
- package/lib/components/descriptions/style/index.js.map +1 -1
- package/lib/components/descriptions-item/style/css.js +1 -0
- package/lib/components/descriptions-item/style/css.js.map +1 -1
- package/lib/components/descriptions-item/style/index.js +1 -0
- package/lib/components/descriptions-item/style/index.js.map +1 -1
- package/lib/components/dialog/index.d.ts +4 -0
- package/lib/components/dialog/src/dialog.d.ts +1 -0
- package/lib/components/dialog/src/dialog.js +5 -3
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +4 -0
- package/lib/components/dialog/src/dialog2.js +15 -16
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/dialog/src/use-dialog.js +6 -10
- package/lib/components/dialog/src/use-dialog.js.map +1 -1
- package/lib/components/dialog/style/css.js +2 -0
- package/lib/components/dialog/style/css.js.map +1 -1
- package/lib/components/dialog/style/index.js +2 -0
- package/lib/components/dialog/style/index.js.map +1 -1
- package/lib/components/divider/src/divider2.js +2 -11
- package/lib/components/divider/src/divider2.js.map +1 -1
- package/lib/components/divider/style/css.js +1 -0
- package/lib/components/divider/style/css.js.map +1 -1
- package/lib/components/divider/style/index.js +1 -0
- package/lib/components/divider/style/index.js.map +1 -1
- package/lib/components/drawer/index.d.ts +14 -0
- package/lib/components/drawer/src/drawer.d.ts +1 -0
- package/lib/components/drawer/src/drawer.js +1 -0
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +14 -0
- package/lib/components/drawer/src/drawer2.js +36 -35
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/drawer/style/css.js +2 -0
- package/lib/components/drawer/style/css.js.map +1 -1
- package/lib/components/drawer/style/index.js +2 -0
- package/lib/components/drawer/style/index.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +2 -0
- package/lib/components/dropdown/src/dropdown-item-impl.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item.js +15 -7
- package/lib/components/dropdown/src/dropdown-item.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +7 -2
- package/lib/components/dropdown/src/dropdown-menu.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.js +2 -0
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown2.js +15 -16
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/dropdown/style/css.js +3 -0
- package/lib/components/dropdown/style/css.js.map +1 -1
- package/lib/components/dropdown/style/index.js +3 -0
- package/lib/components/dropdown/style/index.js.map +1 -1
- package/lib/components/dropdown-item/style/css.js +1 -0
- package/lib/components/dropdown-item/style/css.js.map +1 -1
- package/lib/components/dropdown-item/style/index.js +1 -0
- package/lib/components/dropdown-item/style/index.js.map +1 -1
- package/lib/components/dropdown-menu/style/css.js +1 -0
- package/lib/components/dropdown-menu/style/css.js.map +1 -1
- package/lib/components/dropdown-menu/style/index.js +1 -0
- package/lib/components/dropdown-menu/style/index.js.map +1 -1
- package/lib/components/empty/src/empty2.js +3 -11
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/empty/src/img-empty.js +13 -13
- package/lib/components/empty/src/img-empty.js.map +1 -1
- package/lib/components/empty/style/css.js +1 -0
- package/lib/components/empty/style/css.js.map +1 -1
- package/lib/components/empty/style/index.js +1 -0
- package/lib/components/empty/style/index.js.map +1 -1
- package/lib/components/focus-trap/src/focus-trap.js +1 -1
- package/lib/components/focus-trap/src/focus-trap.js.map +1 -1
- package/lib/components/footer/style/css.js +1 -0
- package/lib/components/footer/style/css.js.map +1 -1
- package/lib/components/footer/style/index.js +1 -0
- package/lib/components/footer/style/index.js.map +1 -1
- package/lib/components/form/src/form-item.js +10 -13
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form.js +4 -11
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/label-wrap.js +1 -0
- package/lib/components/form/src/label-wrap.js.map +1 -1
- package/lib/components/form/style/css.js +1 -0
- package/lib/components/form/style/css.js.map +1 -1
- package/lib/components/form/style/index.js +1 -0
- package/lib/components/form/style/index.js.map +1 -1
- package/lib/components/form-item/style/css.js +1 -0
- package/lib/components/form-item/style/css.js.map +1 -1
- package/lib/components/form-item/style/index.js +1 -0
- package/lib/components/form-item/style/index.js.map +1 -1
- package/lib/components/header/style/css.js +1 -0
- package/lib/components/header/style/css.js.map +1 -1
- package/lib/components/header/style/index.js +1 -0
- package/lib/components/header/style/index.js.map +1 -1
- package/lib/components/icon/src/icon2.js +2 -10
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/icon/style/css.js +1 -0
- package/lib/components/icon/style/css.js.map +1 -1
- package/lib/components/icon/style/index.js +1 -0
- package/lib/components/icon/style/index.js.map +1 -1
- package/lib/components/image/index.d.ts +11 -0
- package/lib/components/image/src/image.vue.d.ts +11 -0
- package/lib/components/image/src/image2.js +27 -32
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/image/style/css.js +2 -0
- package/lib/components/image/style/css.js.map +1 -1
- package/lib/components/image/style/index.js +2 -0
- package/lib/components/image/style/index.js.map +1 -1
- package/lib/components/image-viewer/index.d.ts +12 -1
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +12 -1
- package/lib/components/image-viewer/src/image-viewer2.js +81 -59
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/image-viewer/style/css.js +1 -0
- package/lib/components/image-viewer/style/css.js.map +1 -1
- package/lib/components/image-viewer/style/index.js +1 -0
- package/lib/components/image-viewer/style/index.js.map +1 -1
- package/lib/components/index.js +11 -8
- package/lib/components/index.js.map +1 -1
- package/lib/components/infinite-scroll/style/css.js +1 -0
- package/lib/components/infinite-scroll/style/css.js.map +1 -1
- package/lib/components/infinite-scroll/style/index.js +1 -0
- package/lib/components/infinite-scroll/style/index.js.map +1 -1
- package/lib/components/input/src/input.js +1 -9
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +24 -19
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input/style/css.js +1 -0
- package/lib/components/input/style/css.js.map +1 -1
- package/lib/components/input/style/index.js +1 -0
- package/lib/components/input/style/index.js.map +1 -1
- package/lib/components/input-number/src/input-number2.js +19 -21
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/input-number/style/css.js +2 -0
- package/lib/components/input-number/style/css.js.map +1 -1
- package/lib/components/input-number/style/index.js +2 -0
- package/lib/components/input-number/style/index.js.map +1 -1
- package/lib/components/link/src/link2.js +2 -11
- package/lib/components/link/src/link2.js.map +1 -1
- package/lib/components/link/style/css.js +1 -0
- package/lib/components/link/style/css.js.map +1 -1
- package/lib/components/link/style/index.js +1 -0
- package/lib/components/link/style/index.js.map +1 -1
- package/lib/components/loading/index.js +1 -0
- package/lib/components/loading/index.js.map +1 -1
- package/lib/components/loading/style/css.js +1 -0
- package/lib/components/loading/style/css.js.map +1 -1
- package/lib/components/loading/style/index.js +1 -0
- package/lib/components/loading/style/index.js.map +1 -1
- package/lib/components/main/style/css.js +1 -0
- package/lib/components/main/style/css.js.map +1 -1
- package/lib/components/main/style/index.js +1 -0
- package/lib/components/main/style/index.js.map +1 -1
- package/lib/components/menu/index.js +1 -0
- package/lib/components/menu/index.js.map +1 -1
- package/lib/components/menu/src/menu-collapse-transition.js +1 -0
- package/lib/components/menu/src/menu-collapse-transition.js.map +1 -1
- package/lib/components/menu/src/menu-item.js +1 -3
- package/lib/components/menu/src/menu-item.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js +1 -0
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/menu/src/menu.js +7 -9
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/menu/style/css.js +2 -0
- package/lib/components/menu/style/css.js.map +1 -1
- package/lib/components/menu/style/index.js +2 -0
- package/lib/components/menu/style/index.js.map +1 -1
- package/lib/components/message/src/message-method.js +4 -4
- package/lib/components/message/src/message2.js +2 -1
- package/lib/components/message/src/message2.js.map +1 -1
- package/lib/components/message/style/css.js +1 -0
- package/lib/components/message/style/css.js.map +1 -1
- package/lib/components/message/style/index.js +1 -0
- package/lib/components/message/style/index.js.map +1 -1
- package/lib/components/message-box/index.js +1 -0
- package/lib/components/message-box/index.js.map +1 -1
- package/lib/components/message-box/src/index.js +153 -136
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/message-box/src/index.vue.d.ts +15 -4
- package/lib/components/message-box/src/message-box.type.d.ts +2 -0
- package/lib/components/message-box/src/messageBox.js +1 -1
- package/lib/components/message-box/style/css.js +4 -0
- package/lib/components/message-box/style/css.js.map +1 -1
- package/lib/components/message-box/style/index.js +4 -0
- package/lib/components/message-box/style/index.js.map +1 -1
- package/lib/components/notification/src/notification2.js +2 -1
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +3 -2
- package/lib/components/notification/src/notify.js.map +1 -1
- package/lib/components/notification/style/css.js +1 -0
- package/lib/components/notification/style/css.js.map +1 -1
- package/lib/components/notification/style/index.js +1 -0
- package/lib/components/notification/style/index.js.map +1 -1
- package/lib/components/option/style/css.js +1 -0
- package/lib/components/option/style/css.js.map +1 -1
- package/lib/components/option/style/index.js +1 -0
- package/lib/components/option/style/index.js.map +1 -1
- package/lib/components/option-group/style/css.js +1 -0
- package/lib/components/option-group/style/css.js.map +1 -1
- package/lib/components/option-group/style/index.js +1 -0
- package/lib/components/option-group/style/index.js.map +1 -1
- package/lib/components/overlay/src/overlay.js +2 -11
- package/lib/components/overlay/src/overlay.js.map +1 -1
- package/lib/components/overlay/style/css.js +1 -0
- package/lib/components/overlay/style/css.js.map +1 -1
- package/lib/components/overlay/style/index.js +1 -0
- package/lib/components/overlay/style/index.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +2 -10
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/page-header/style/css.js +1 -0
- package/lib/components/page-header/style/css.js.map +1 -1
- package/lib/components/page-header/style/index.js +1 -0
- package/lib/components/page-header/style/index.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.js +14 -15
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.js +11 -14
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +3 -0
- package/lib/components/pagination/src/components/total.js +12 -14
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total.vue.d.ts +1 -0
- package/lib/components/pagination/src/pagination.js +17 -12
- package/lib/components/pagination/src/pagination.js.map +1 -1
- package/lib/components/pagination/src/usePagination.js +1 -0
- package/lib/components/pagination/src/usePagination.js.map +1 -1
- package/lib/components/pagination/style/css.js +2 -0
- package/lib/components/pagination/style/css.js.map +1 -1
- package/lib/components/pagination/style/index.js +2 -0
- package/lib/components/pagination/style/index.js.map +1 -1
- package/lib/components/popconfirm/index.d.ts +26 -22
- package/lib/components/popconfirm/src/popconfirm.d.ts +12 -11
- package/lib/components/popconfirm/src/popconfirm.js +49 -43
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +26 -22
- package/lib/components/popconfirm/src/popconfirm2.js +16 -16
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popconfirm/style/css.js +2 -0
- package/lib/components/popconfirm/style/css.js.map +1 -1
- package/lib/components/popconfirm/style/index.js +2 -0
- package/lib/components/popconfirm/style/index.js.map +1 -1
- package/lib/components/popover/index.d.ts +30 -6
- package/lib/components/popover/src/index.js +27 -11
- package/lib/components/popover/src/index.js.map +1 -1
- package/lib/components/popover/src/index.vue.d.ts +41 -29
- package/lib/components/popover/src/popover.d.ts +5 -1
- package/lib/components/popover/src/popover.js +3 -4
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/style/css.js +2 -0
- package/lib/components/popover/style/css.js.map +1 -1
- package/lib/components/popover/style/index.js +2 -0
- package/lib/components/popover/style/index.js.map +1 -1
- package/lib/components/popper/index.d.ts +1 -0
- package/lib/components/popper/index.js +2 -0
- package/lib/components/popper/index.js.map +1 -1
- package/lib/components/popper/src/content.js +5 -3
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/deprecation.d.ts +3 -0
- package/lib/components/popper/src/deprecation.js +28 -0
- package/lib/components/popper/src/deprecation.js.map +1 -0
- package/lib/components/popper/src/popper.js +2 -0
- package/lib/components/popper/src/popper.js.map +1 -1
- package/lib/components/popper/src/trigger.js +6 -12
- package/lib/components/popper/src/trigger.js.map +1 -1
- package/lib/components/popper/style/css.js +1 -0
- package/lib/components/popper/style/css.js.map +1 -1
- package/lib/components/popper/style/index.js +1 -0
- package/lib/components/popper/style/index.js.map +1 -1
- package/lib/components/progress/src/progress2.js +2 -1
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/progress/style/css.js +1 -0
- package/lib/components/progress/style/css.js.map +1 -1
- package/lib/components/progress/style/index.js +1 -0
- package/lib/components/progress/style/index.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +4 -4
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/radio/src/radio-group.js +2 -11
- package/lib/components/radio/src/radio-group.js.map +1 -1
- package/lib/components/radio/src/radio-group2.js +7 -13
- package/lib/components/radio/src/radio-group2.js.map +1 -1
- package/lib/components/radio/src/radio.js +3 -8
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/style/css.js +1 -0
- package/lib/components/radio/style/css.js.map +1 -1
- package/lib/components/radio/style/index.js +1 -0
- package/lib/components/radio/style/index.js.map +1 -1
- package/lib/components/radio-button/style/css.js +1 -0
- package/lib/components/radio-button/style/css.js.map +1 -1
- package/lib/components/radio-button/style/index.js +1 -0
- package/lib/components/radio-button/style/index.js.map +1 -1
- package/lib/components/radio-group/style/css.js +1 -0
- package/lib/components/radio-group/style/css.js.map +1 -1
- package/lib/components/radio-group/style/index.js +1 -0
- package/lib/components/radio-group/style/index.js.map +1 -1
- package/lib/components/rate/index.d.ts +8 -8
- package/lib/components/rate/src/rate.d.ts +4 -4
- package/lib/components/rate/src/rate.js +8 -4
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +8 -8
- package/lib/components/rate/src/rate2.js +5 -11
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/rate/style/css.js +1 -0
- package/lib/components/rate/style/css.js.map +1 -1
- package/lib/components/rate/style/index.js +1 -0
- package/lib/components/rate/style/index.js.map +1 -1
- package/lib/components/result/src/result2.js +2 -11
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/result/style/css.js +1 -0
- package/lib/components/result/style/css.js.map +1 -1
- package/lib/components/result/style/index.js +1 -0
- package/lib/components/result/style/index.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +10 -6
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -0
- package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.js +5 -11
- package/lib/components/roving-focus-group/src/roving-focus-item.js.map +1 -1
- package/lib/components/row/src/row.js +1 -10
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/row/style/css.js +1 -0
- package/lib/components/row/style/css.js.map +1 -1
- package/lib/components/row/style/index.js +1 -0
- package/lib/components/row/style/index.js.map +1 -1
- package/lib/components/scrollbar/index.d.ts +13 -1
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/index.js.map +1 -1
- package/lib/components/scrollbar/src/bar.d.ts +5 -5
- package/lib/components/scrollbar/src/bar.js +18 -6
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar.vue.d.ts +18 -37
- package/lib/components/scrollbar/src/bar2.js +33 -115
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +12 -0
- package/lib/components/scrollbar/src/scrollbar2.js +30 -31
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/scrollbar/src/thumb.d.ts +9 -0
- package/lib/components/scrollbar/src/thumb.js +19 -0
- package/lib/components/scrollbar/src/thumb.js.map +1 -0
- package/lib/components/scrollbar/src/thumb.vue.d.ts +54 -0
- package/lib/components/scrollbar/src/thumb2.js +145 -0
- package/lib/components/scrollbar/src/thumb2.js.map +1 -0
- package/lib/components/scrollbar/style/css.js +1 -0
- package/lib/components/scrollbar/style/css.js.map +1 -1
- package/lib/components/scrollbar/style/index.js +1 -0
- package/lib/components/scrollbar/style/index.js.map +1 -1
- package/lib/components/select/index.d.ts +6 -2
- package/lib/components/select/src/option-group.js +2 -1
- package/lib/components/select/src/option-group.js.map +1 -1
- package/lib/components/select/src/select-dropdown.js +2 -1
- package/lib/components/select/src/select-dropdown.js.map +1 -1
- package/lib/components/select/src/select.js +24 -21
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +30 -26
- package/lib/components/select/src/useSelect.js +8 -9
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select/style/css.js +7 -0
- package/lib/components/select/style/css.js.map +1 -1
- package/lib/components/select/style/index.js +7 -0
- package/lib/components/select/style/index.js.map +1 -1
- package/lib/components/select-v2/index.d.ts +12 -12
- package/lib/components/select-v2/src/defaults.d.ts +2 -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-dropdown.js +4 -2
- package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
- package/lib/components/select-v2/src/select.js +196 -193
- package/lib/components/select-v2/src/select.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +6 -6
- package/lib/components/select-v2/src/useSelect.d.ts +1 -4
- package/lib/components/select-v2/src/useSelect.js +17 -19
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/style/css.js +5 -0
- package/lib/components/select-v2/style/css.js.map +1 -1
- package/lib/components/select-v2/style/index.js +5 -0
- package/lib/components/select-v2/style/index.js.map +1 -1
- package/lib/components/skeleton/index.d.ts +37 -2
- package/lib/components/skeleton/src/skeleton-item.vue.d.ts +13 -1
- package/lib/components/skeleton/src/skeleton-item2.js +10 -2
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton.vue.d.ts +11 -0
- package/lib/components/skeleton/src/skeleton2.js +13 -19
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/skeleton/style/css.js +2 -0
- package/lib/components/skeleton/style/css.js.map +1 -1
- package/lib/components/skeleton/style/index.js +2 -0
- package/lib/components/skeleton/style/index.js.map +1 -1
- package/lib/components/skeleton-item/style/css.js +1 -0
- package/lib/components/skeleton-item/style/css.js.map +1 -1
- package/lib/components/skeleton-item/style/index.js +1 -0
- package/lib/components/skeleton-item/style/index.js.map +1 -1
- package/lib/components/slider/index.js +1 -0
- package/lib/components/slider/index.js.map +1 -1
- package/lib/components/slider/src/index.js +5 -12
- package/lib/components/slider/src/index.js.map +1 -1
- package/lib/components/slider/src/marker.js +2 -1
- package/lib/components/slider/src/marker.js.map +1 -1
- package/lib/components/slider/src/useSlide.js +1 -0
- package/lib/components/slider/src/useSlide.js.map +1 -1
- package/lib/components/slider/style/css.js +3 -0
- package/lib/components/slider/style/css.js.map +1 -1
- package/lib/components/slider/style/index.js +3 -0
- package/lib/components/slider/style/index.js.map +1 -1
- package/lib/components/slot/src/only-child.js +1 -9
- package/lib/components/slot/src/only-child.js.map +1 -1
- package/lib/components/space/style/css.js +1 -0
- package/lib/components/space/style/css.js.map +1 -1
- package/lib/components/space/style/index.js +1 -0
- package/lib/components/space/style/index.js.map +1 -1
- package/lib/components/step/style/css.js +1 -0
- package/lib/components/step/style/css.js.map +1 -1
- package/lib/components/step/style/index.js +1 -0
- package/lib/components/step/style/index.js.map +1 -1
- package/lib/components/steps/src/item.js +2 -1
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/style/css.js +1 -0
- package/lib/components/steps/style/css.js.map +1 -1
- package/lib/components/steps/style/index.js +1 -0
- package/lib/components/steps/style/index.js.map +1 -1
- package/lib/components/switch/src/switch2.js +8 -12
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/switch/style/css.js +1 -0
- package/lib/components/switch/style/css.js.map +1 -1
- package/lib/components/switch/style/index.js +1 -0
- package/lib/components/switch/style/index.js.map +1 -1
- package/lib/components/tab-pane/style/css.js +1 -0
- package/lib/components/tab-pane/style/css.js.map +1 -1
- package/lib/components/tab-pane/style/index.js +1 -0
- package/lib/components/tab-pane/style/index.js.map +1 -1
- package/lib/components/table/index.js +1 -0
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/src/filter-panel.js +12 -16
- package/lib/components/table/src/filter-panel.js.map +1 -1
- package/lib/components/table/src/store/index.js +7 -11
- package/lib/components/table/src/store/index.js.map +1 -1
- package/lib/components/table/src/table/style-helper.js +4 -10
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table-body/index.js +3 -11
- package/lib/components/table/src/table-body/index.js.map +1 -1
- package/lib/components/table/src/table-body/styles-helper.js +2 -11
- package/lib/components/table/src/table-body/styles-helper.js.map +1 -1
- package/lib/components/table/src/table-column/render-helper.js +2 -11
- package/lib/components/table/src/table-column/render-helper.js.map +1 -1
- package/lib/components/table/src/table-footer/index.js +2 -11
- package/lib/components/table/src/table-footer/index.js.map +1 -1
- package/lib/components/table/src/table-footer/style-helper.js +2 -12
- package/lib/components/table/src/table-footer/style-helper.js.map +1 -1
- package/lib/components/table/src/table-header/index.js +2 -11
- package/lib/components/table/src/table-header/index.js.map +1 -1
- package/lib/components/table/src/table-header/style.helper.js +2 -11
- package/lib/components/table/src/table-header/style.helper.js.map +1 -1
- package/lib/components/table/src/table.js +8 -15
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/table/style/css.js +4 -0
- package/lib/components/table/style/css.js.map +1 -1
- package/lib/components/table/style/index.js +4 -0
- package/lib/components/table/style/index.js.map +1 -1
- package/lib/components/table-column/style/css.js +3 -0
- package/lib/components/table-column/style/css.js.map +1 -1
- package/lib/components/table-column/style/index.js +3 -0
- package/lib/components/table-column/style/index.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +5 -3
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +2 -1
- package/lib/components/tabs/src/tab-nav.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +2 -1
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tabs/src/tabs.js +2 -1
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/tabs/style/css.js +1 -0
- package/lib/components/tabs/style/css.js.map +1 -1
- package/lib/components/tabs/style/index.js +1 -0
- package/lib/components/tabs/style/index.js.map +1 -1
- package/lib/components/tag/index.d.ts +12 -1
- package/lib/components/tag/src/tag.vue.d.ts +12 -1
- package/lib/components/tag/src/tag2.js +25 -28
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/tag/style/css.js +1 -0
- package/lib/components/tag/style/css.js.map +1 -1
- package/lib/components/tag/style/index.js +1 -0
- package/lib/components/tag/style/index.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.js +23 -19
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js +2 -6
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.js +2 -10
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.js +2 -10
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.js.map +1 -1
- package/lib/components/time-picker/style/css.js +4 -0
- package/lib/components/time-picker/style/css.js.map +1 -1
- package/lib/components/time-picker/style/index.js +4 -0
- package/lib/components/time-picker/style/index.js.map +1 -1
- package/lib/components/time-select/src/time-select.js +4 -2
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/style/css.js +6 -0
- package/lib/components/time-select/style/css.js.map +1 -1
- package/lib/components/time-select/style/index.js +6 -0
- package/lib/components/time-select/style/index.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +2 -11
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/timeline/src/timeline.js +1 -10
- package/lib/components/timeline/src/timeline.js.map +1 -1
- package/lib/components/timeline/style/css.js +1 -0
- package/lib/components/timeline/style/css.js.map +1 -1
- package/lib/components/timeline/style/index.js +1 -0
- package/lib/components/timeline/style/index.js.map +1 -1
- package/lib/components/timeline-item/style/css.js +1 -0
- package/lib/components/timeline-item/style/css.js.map +1 -1
- package/lib/components/timeline-item/style/index.js +1 -0
- package/lib/components/timeline-item/style/index.js.map +1 -1
- package/lib/components/tooltip/src/content.js +14 -15
- package/lib/components/tooltip/src/content.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +4 -11
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +7 -12
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip/src/trigger.js +1 -0
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/tooltip/src/utils.js +1 -2
- package/lib/components/tooltip/src/utils.js.map +1 -1
- package/lib/components/tooltip/style/css.js +2 -0
- package/lib/components/tooltip/style/css.js.map +1 -1
- package/lib/components/tooltip/style/index.js +2 -0
- package/lib/components/tooltip/style/index.js.map +1 -1
- package/lib/components/transfer/index.d.ts +492 -0
- package/lib/components/transfer/index.js +1 -0
- package/lib/components/transfer/index.js.map +1 -1
- package/lib/components/transfer/src/index.js +18 -18
- package/lib/components/transfer/src/index.js.map +1 -1
- package/lib/components/transfer/src/index.vue.d.ts +246 -0
- package/lib/components/transfer/src/transfer-panel.js +2 -10
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/style/css.js +5 -0
- package/lib/components/transfer/style/css.js.map +1 -1
- package/lib/components/transfer/style/index.js +5 -0
- package/lib/components/transfer/style/index.js.map +1 -1
- package/lib/components/tree/index.d.ts +8 -8
- package/lib/components/tree/src/model/node.js +1 -0
- package/lib/components/tree/src/model/node.js.map +1 -1
- package/lib/components/tree/src/model/tree-store.js +2 -0
- package/lib/components/tree/src/model/tree-store.js.map +1 -1
- package/lib/components/tree/src/tree.js +4 -12
- package/lib/components/tree/src/tree.js.map +1 -1
- package/lib/components/tree/src/tree.vue.d.ts +4 -4
- package/lib/components/tree/style/css.js +2 -0
- package/lib/components/tree/style/css.js.map +1 -1
- package/lib/components/tree/style/index.js +2 -0
- package/lib/components/tree/style/index.js.map +1 -1
- package/lib/components/tree-v2/src/tree-node.js +11 -7
- package/lib/components/tree-v2/src/tree-node.js.map +1 -1
- package/lib/components/tree-v2/src/tree.js +5 -11
- package/lib/components/tree-v2/src/tree.js.map +1 -1
- package/lib/components/tree-v2/style/css.js +2 -0
- package/lib/components/tree-v2/style/css.js.map +1 -1
- package/lib/components/tree-v2/style/index.js +2 -0
- package/lib/components/tree-v2/style/index.js.map +1 -1
- package/lib/components/upload/src/ajax.js +1 -0
- package/lib/components/upload/src/ajax.js.map +1 -1
- package/lib/components/upload/src/index.js +5 -3
- package/lib/components/upload/src/index.js.map +1 -1
- package/lib/components/upload/src/upload-dragger.js +2 -1
- package/lib/components/upload/src/upload-dragger.js.map +1 -1
- package/lib/components/upload/src/upload-list.js +3 -9
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload.js +1 -0
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/style/css.js +2 -0
- package/lib/components/upload/style/css.js.map +1 -1
- package/lib/components/upload/style/index.js +2 -0
- package/lib/components/upload/style/index.js.map +1 -1
- package/lib/components/virtual-list/index.js +1 -0
- package/lib/components/virtual-list/index.js.map +1 -1
- package/lib/components/virtual-list/src/builders/build-list.js +1 -0
- package/lib/components/virtual-list/src/builders/build-list.js.map +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-list.js +2 -4
- package/lib/components/virtual-list/src/components/fixed-size-list.js.map +1 -1
- package/lib/components/virtual-list/src/components/scrollbar.js +1 -0
- package/lib/components/virtual-list/src/components/scrollbar.js.map +1 -1
- package/lib/components/virtual-list/style/css.js +2 -0
- package/lib/components/virtual-list/style/css.js.map +1 -1
- package/lib/components/virtual-list/style/index.js +2 -0
- package/lib/components/virtual-list/style/index.js.map +1 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +62 -58
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-common-props/index.js +2 -1
- package/lib/hooks/use-common-props/index.js.map +1 -1
- package/lib/hooks/use-deprecated/index.d.ts +10 -0
- package/lib/hooks/use-deprecated/index.js +21 -0
- package/lib/hooks/use-deprecated/index.js.map +1 -0
- package/lib/hooks/use-draggable/index.d.ts +2 -0
- package/lib/hooks/use-draggable/index.js +69 -0
- package/lib/hooks/use-draggable/index.js.map +1 -0
- package/lib/hooks/use-form-item/index.js +1 -0
- package/lib/hooks/use-form-item/index.js.map +1 -1
- package/lib/hooks/use-global-config/index.js +2 -1
- package/lib/hooks/use-global-config/index.js.map +1 -1
- package/lib/index.js +103 -93
- package/lib/index.js.map +1 -1
- package/lib/make-installer.js +2 -9
- package/lib/make-installer.js.map +1 -1
- package/lib/utils/dom.js +1 -2
- package/lib/utils/dom.js.map +1 -1
- package/lib/utils/menu/submenu.js +1 -0
- package/lib/utils/menu/submenu.js.map +1 -1
- package/lib/utils/popup-manager.js +2 -9
- package/lib/utils/popup-manager.js.map +1 -1
- package/lib/utils/validators.d.ts +0 -1
- package/lib/utils/validators.js +0 -9
- package/lib/utils/validators.js.map +1 -1
- package/lib/utils/with-install.js +4 -0
- package/lib/utils/with-install.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +3 -3
- package/tags.json +1 -1
- package/theme-chalk/el-breadcrumb.css +1 -1
- package/theme-chalk/el-dialog.css +1 -1
- package/theme-chalk/el-empty.css +1 -1
- package/theme-chalk/el-image-viewer.css +1 -1
- package/theme-chalk/el-message-box.css +1 -1
- package/theme-chalk/el-pagination.css +1 -1
- package/theme-chalk/el-popper.css +1 -1
- package/theme-chalk/el-rate.css +1 -1
- package/theme-chalk/el-select.css +1 -1
- package/theme-chalk/el-table.css +1 -1
- package/theme-chalk/el-tooltip.css +0 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/breadcrumb.scss +2 -0
- package/theme-chalk/src/common/var.scss +18 -19
- package/theme-chalk/src/dialog.scss +7 -0
- package/theme-chalk/src/image-viewer.scss +1 -0
- package/theme-chalk/src/message-box.scss +26 -15
- package/theme-chalk/src/pagination.scss +73 -56
- package/theme-chalk/src/popper.scss +23 -5
- package/theme-chalk/src/select.scss +3 -3
- package/theme-chalk/src/table.scss +0 -12
- package/theme-chalk/src/tooltip.scss +0 -95
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var withInstall = require('../../utils/with-install.js');
|
|
6
6
|
var table = require('./src/table.js');
|
|
7
|
+
require('./src/tableColumn.js');
|
|
7
8
|
var index = require('./src/table-column/index.js');
|
|
8
9
|
|
|
9
10
|
const ElTable = withInstall.withInstall(table["default"], {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../packages/components/table/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils/with-install'\nimport Table from './src/table.vue'\nimport TableColumn from './src/tableColumn'\n\nexport const ElTable = withInstall(Table, {\n TableColumn,\n})\nexport default ElTable\nexport const ElTableColumn = withNoopInstall(TableColumn)\n"],"names":["withInstall","Table","TableColumn","withNoopInstall"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/components/table/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils/with-install'\nimport Table from './src/table.vue'\nimport TableColumn from './src/tableColumn'\n\nexport const ElTable = withInstall(Table, {\n TableColumn,\n})\nexport default ElTable\nexport const ElTableColumn = withNoopInstall(TableColumn)\n"],"names":["withInstall","Table","TableColumn","withNoopInstall"],"mappings":";;;;;;;;;AAGY,MAAC,OAAO,GAAGA,uBAAW,CAACC,gBAAK,EAAE;AAC1C,eAAEC,gBAAW;AACb,CAAC,EAAE;AAES,MAAC,aAAa,GAAGC,2BAAe,CAACD,gBAAW;;;;;;"}
|
|
@@ -6,22 +6,14 @@ var vue = require('vue');
|
|
|
6
6
|
var index = require('../../checkbox/index.js');
|
|
7
7
|
var index$3 = require('../../icon/index.js');
|
|
8
8
|
var iconsVue = require('@element-plus/icons-vue');
|
|
9
|
-
|
|
10
|
-
require('
|
|
11
|
-
require('@vue/shared');
|
|
12
|
-
require('lodash/isEqualWith');
|
|
13
|
-
require('normalize-wheel-es');
|
|
14
|
-
require('lodash/fromPairs');
|
|
15
|
-
require('../../../hooks/use-common-props/index.js');
|
|
16
|
-
require('../../../hooks/use-global-config/index.js');
|
|
17
|
-
var index$5 = require('../../../hooks/use-locale/index.js');
|
|
18
|
-
require('../../../hooks/use-modal/index.js');
|
|
19
|
-
require('../../../hooks/use-model-toggle/index.js');
|
|
20
|
-
require('../../../hooks/use-delayed-toggle/index.js');
|
|
21
|
-
var index$6 = require('../../../hooks/use-namespace/index.js');
|
|
9
|
+
require('../../../directives/index.js');
|
|
10
|
+
require('../../../hooks/index.js');
|
|
22
11
|
var index$2 = require('../../tooltip/index.js');
|
|
23
12
|
var index$1 = require('../../scrollbar/index.js');
|
|
24
13
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
|
+
var index$4 = require('../../../directives/click-outside/index.js');
|
|
15
|
+
var index$5 = require('../../../hooks/use-locale/index.js');
|
|
16
|
+
var index$6 = require('../../../hooks/use-namespace/index.js');
|
|
25
17
|
|
|
26
18
|
const { CheckboxGroup: ElCheckboxGroup } = index.ElCheckbox;
|
|
27
19
|
const _sfc_main = vue.defineComponent({
|
|
@@ -55,7 +47,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
55
47
|
const instance = vue.getCurrentInstance();
|
|
56
48
|
const { t } = index$5.useLocale();
|
|
57
49
|
const ns = index$6.useNamespace("table-filter");
|
|
58
|
-
const parent = instance
|
|
50
|
+
const parent = instance == null ? void 0 : instance.parent;
|
|
59
51
|
if (!parent.filterPanels.value[props.column.id]) {
|
|
60
52
|
parent.filterPanels.value[props.column.id] = instance;
|
|
61
53
|
}
|
|
@@ -65,7 +57,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
65
57
|
return props.column && props.column.filters;
|
|
66
58
|
});
|
|
67
59
|
const filterValue = vue.computed({
|
|
68
|
-
get: () =>
|
|
60
|
+
get: () => {
|
|
61
|
+
var _a;
|
|
62
|
+
return (((_a = props.column) == null ? void 0 : _a.filteredValue) || [])[0];
|
|
63
|
+
},
|
|
69
64
|
set: (value) => {
|
|
70
65
|
if (filteredValue.value) {
|
|
71
66
|
if (typeof value !== "undefined" && value !== null) {
|
|
@@ -141,7 +136,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
141
136
|
immediate: true
|
|
142
137
|
});
|
|
143
138
|
const popperPaneRef = vue.computed(() => {
|
|
144
|
-
|
|
139
|
+
var _a, _b;
|
|
140
|
+
return (_b = (_a = tooltip.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
145
141
|
});
|
|
146
142
|
return {
|
|
147
143
|
tooltipVisible,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-panel.js","sources":["../../../../../../packages/components/table/src/filter-panel.vue"],"sourcesContent":["<template>\n <el-tooltip\n ref=\"tooltip\"\n v-model:visible=\"tooltipVisible\"\n :offset=\"0\"\n :placement=\"placement\"\n :show-arrow=\"false\"\n :stop-popper-mouse-event=\"false\"\n append-to-body\n effect=\"light\"\n pure\n :popper-class=\"ns.b()\"\n persistent\n >\n <template #content>\n <div v-if=\"multiple\">\n <div :class=\"ns.e('content')\">\n <el-scrollbar :wrap-class=\"ns.e('wrap')\">\n <el-checkbox-group\n v-model=\"filteredValue\"\n :class=\"ns.e('checkbox-group')\"\n >\n <el-checkbox\n v-for=\"filter in filters\"\n :key=\"filter.value\"\n :label=\"filter.value\"\n >\n {{ filter.text }}\n </el-checkbox>\n </el-checkbox-group>\n </el-scrollbar>\n </div>\n <div :class=\"ns.e('bottom')\">\n <button\n :class=\"{ [ns.is('disabled')]: filteredValue.length === 0 }\"\n :disabled=\"filteredValue.length === 0\"\n type=\"button\"\n @click=\"handleConfirm\"\n >\n {{ t('el.table.confirmFilter') }}\n </button>\n <button type=\"button\" @click=\"handleReset\">\n {{ t('el.table.resetFilter') }}\n </button>\n </div>\n </div>\n <ul v-else :class=\"ns.e('list')\">\n <li\n :class=\"[\n ns.e('list-item'),\n {\n [ns.is('active')]:\n filterValue === undefined || filterValue === null,\n },\n ]\"\n @click=\"handleSelect(null)\"\n >\n {{ t('el.table.clearFilter') }}\n </li>\n <li\n v-for=\"filter in filters\"\n :key=\"filter.value\"\n :class=\"[ns.e('list-item'), ns.is('active', isActive(filter))]\"\n :label=\"filter.value\"\n @click=\"handleSelect(filter.value)\"\n >\n {{ filter.text }}\n </li>\n </ul>\n </template>\n <template #default>\n <span\n v-click-outside:[popperPaneRef]=\"hideFilterPanel\"\n :class=\"[\n `${ns.namespace.value}-table__column-filter-trigger`,\n `${ns.namespace.value}-none-outline`,\n ]\"\n @click=\"showFilterPanel\"\n >\n <el-icon>\n <arrow-up v-if=\"column.filterOpened\" />\n <arrow-down v-else />\n </el-icon>\n </span>\n </template>\n </el-tooltip>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, ref, computed, getCurrentInstance, watch } from 'vue'\nimport ElCheckbox from '@element-plus/components/checkbox'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ArrowDown, ArrowUp } from '@element-plus/icons-vue'\nimport { ClickOutside } from '@element-plus/directives'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport ElScrollbar from '@element-plus/components/scrollbar'\nimport type { Placement } from '@element-plus/components/popper'\n\nimport type { WritableComputedRef, PropType } from 'vue'\nimport type { TableColumnCtx } from './table-column/defaults'\nimport type { TableHeader } from './table-header'\nimport type { Store } from './store'\n\nconst { CheckboxGroup: ElCheckboxGroup } = ElCheckbox\n\nexport default defineComponent({\n name: 'ElTableFilterPanel',\n components: {\n ElCheckbox,\n ElCheckboxGroup,\n ElScrollbar,\n ElTooltip,\n ElIcon,\n ArrowDown,\n ArrowUp,\n },\n directives: { ClickOutside },\n props: {\n placement: {\n type: String as PropType<Placement>,\n default: 'bottom-start',\n },\n store: {\n type: Object as PropType<Store<unknown>>,\n },\n column: {\n type: Object as PropType<TableColumnCtx<unknown>>,\n },\n upDataColumn: {\n type: Function,\n },\n },\n setup(props) {\n const instance = getCurrentInstance()\n const { t } = useLocale()\n const ns = useNamespace('table-filter')\n const parent = instance?.parent as TableHeader\n if (!parent.filterPanels.value[props.column.id]) {\n parent.filterPanels.value[props.column.id] = instance\n }\n const tooltipVisible = ref(false)\n const tooltip = ref<InstanceType<typeof ElTooltip> | null>(null)\n const filters = computed(() => {\n return props.column && props.column.filters\n })\n const filterValue = computed({\n get: () => (props.column?.filteredValue || [])[0],\n set: (value: string) => {\n if (filteredValue.value) {\n if (typeof value !== 'undefined' && value !== null) {\n filteredValue.value.splice(0, 1, value)\n } else {\n filteredValue.value.splice(0, 1)\n }\n }\n },\n })\n const filteredValue: WritableComputedRef<unknown[]> = computed({\n get() {\n if (props.column) {\n return props.column.filteredValue || []\n }\n return []\n },\n set(value: unknown[]) {\n if (props.column) {\n props.upDataColumn('filteredValue', value)\n }\n },\n })\n const multiple = computed(() => {\n if (props.column) {\n return props.column.filterMultiple\n }\n return true\n })\n const isActive = (filter) => {\n return filter.value === filterValue.value\n }\n const hidden = () => {\n tooltipVisible.value = false\n }\n const showFilterPanel = (e: MouseEvent) => {\n e.stopPropagation()\n tooltipVisible.value = !tooltipVisible.value\n }\n const hideFilterPanel = () => {\n tooltipVisible.value = false\n }\n const handleConfirm = () => {\n confirmFilter(filteredValue.value)\n hidden()\n }\n const handleReset = () => {\n filteredValue.value = []\n confirmFilter(filteredValue.value)\n hidden()\n }\n const handleSelect = (_filterValue?: string) => {\n filterValue.value = _filterValue\n if (typeof _filterValue !== 'undefined' && _filterValue !== null) {\n confirmFilter(filteredValue.value)\n } else {\n confirmFilter([])\n }\n hidden()\n }\n const confirmFilter = (filteredValue: unknown[]) => {\n props.store.commit('filterChange', {\n column: props.column,\n values: filteredValue,\n })\n props.store.updateAllSelected()\n }\n watch(\n tooltipVisible,\n (value) => {\n // todo\n if (props.column) {\n props.upDataColumn('filterOpened', value)\n }\n },\n {\n immediate: true,\n }\n )\n\n const popperPaneRef = computed(() => {\n return tooltip.value?.popperRef?.contentRef\n })\n\n return {\n tooltipVisible,\n multiple,\n filteredValue,\n filterValue,\n filters,\n handleConfirm,\n handleReset,\n handleSelect,\n isActive,\n t,\n ns,\n showFilterPanel,\n hideFilterPanel,\n popperPaneRef,\n tooltip,\n }\n },\n})\n</script>\n"],"names":["ElCheckbox","defineComponent","ElScrollbar","ElTooltip","ElIcon","ArrowDown","ArrowUp","ClickOutside","getCurrentInstance","useLocale","useNamespace","ref","computed","_openBlock","_createBlock","_withCtx","_createElementBlock","_Fragment","_toDisplayString","_normalizeClass"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAwGA,MAAM,EAAE,eAAe,oBAAoBA;AAE3C,MAAK,YAAaC,oBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,gBACVD;AAAA,IACA;AAAA,iBACAE;AAAA,eACAC;AAAA,YACAC;AAAA,eACAC;AAAA,aACAC;AAAA;AAAA,EAEF,YAAY,gBAAEC;AAAA,EACd,OAAO;AAAA,IACL,WAAW;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA;AAAA,IAEX,OAAO;AAAA,M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YAWoB;AAAA,4DAVI;AAAA;gBACrB,uBAAO,OAAE;AAAE;;2CAEZ;AAAA,+DAMcE;2BAJNJ,iBAAYC;AAAA,sBACjB,KAAK,OAAE;AAAA;;;;;;;;;;;;;;WAOhB;AAAA,+BAAW,OAAE;AAAA;WACX;AAAA,iCACQ,UAAK;AAAA,YACV,0BAAU,QAAc,MAAM;AAAA,YAC/B,UAAK,KAAQ;AAAA,YACZ;AAAA,0CAEG;AAAA,aAENI,oBAES;AAAA,iCAFY;AAAA,YAAE;AAAA,0CACjB;AAAA;;;QAIE,KAAK;AAAA;SACf;AAAA,+BACQ;AAAA,UAAgB,OAAIC;AAAA;;oBAA8E;;;wCASpG;AAAA,+BAEN,iCAQK;AAAA,qDARLF,cAQK;iBANGJ,iBAAYG;AAAA,YACjB,KAAK;AAAA,YACL,OAAOG,mBAAY;AAAA,YACnB,OAAK;AAAA,iCAEH,KAAO,aAAI;AAAA;;;;;;AAOV,eAAiBA,mBAAa;AAAA,aAAmD,QAAG,UAAU;AAAA;;;SAMpG;AAAA,4CACyC;AAAA,mBAAvBJ,YAAO;AAAA,yDACvBD,gBAAqB;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"filter-panel.js","sources":["../../../../../../packages/components/table/src/filter-panel.vue"],"sourcesContent":["<template>\n <el-tooltip\n ref=\"tooltip\"\n v-model:visible=\"tooltipVisible\"\n :offset=\"0\"\n :placement=\"placement\"\n :show-arrow=\"false\"\n :stop-popper-mouse-event=\"false\"\n append-to-body\n effect=\"light\"\n pure\n :popper-class=\"ns.b()\"\n persistent\n >\n <template #content>\n <div v-if=\"multiple\">\n <div :class=\"ns.e('content')\">\n <el-scrollbar :wrap-class=\"ns.e('wrap')\">\n <el-checkbox-group\n v-model=\"filteredValue\"\n :class=\"ns.e('checkbox-group')\"\n >\n <el-checkbox\n v-for=\"filter in filters\"\n :key=\"filter.value\"\n :label=\"filter.value\"\n >\n {{ filter.text }}\n </el-checkbox>\n </el-checkbox-group>\n </el-scrollbar>\n </div>\n <div :class=\"ns.e('bottom')\">\n <button\n :class=\"{ [ns.is('disabled')]: filteredValue.length === 0 }\"\n :disabled=\"filteredValue.length === 0\"\n type=\"button\"\n @click=\"handleConfirm\"\n >\n {{ t('el.table.confirmFilter') }}\n </button>\n <button type=\"button\" @click=\"handleReset\">\n {{ t('el.table.resetFilter') }}\n </button>\n </div>\n </div>\n <ul v-else :class=\"ns.e('list')\">\n <li\n :class=\"[\n ns.e('list-item'),\n {\n [ns.is('active')]:\n filterValue === undefined || filterValue === null,\n },\n ]\"\n @click=\"handleSelect(null)\"\n >\n {{ t('el.table.clearFilter') }}\n </li>\n <li\n v-for=\"filter in filters\"\n :key=\"filter.value\"\n :class=\"[ns.e('list-item'), ns.is('active', isActive(filter))]\"\n :label=\"filter.value\"\n @click=\"handleSelect(filter.value)\"\n >\n {{ filter.text }}\n </li>\n </ul>\n </template>\n <template #default>\n <span\n v-click-outside:[popperPaneRef]=\"hideFilterPanel\"\n :class=\"[\n `${ns.namespace.value}-table__column-filter-trigger`,\n `${ns.namespace.value}-none-outline`,\n ]\"\n @click=\"showFilterPanel\"\n >\n <el-icon>\n <arrow-up v-if=\"column.filterOpened\" />\n <arrow-down v-else />\n </el-icon>\n </span>\n </template>\n </el-tooltip>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, ref, computed, getCurrentInstance, watch } from 'vue'\nimport ElCheckbox from '@element-plus/components/checkbox'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ArrowDown, ArrowUp } from '@element-plus/icons-vue'\nimport { ClickOutside } from '@element-plus/directives'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport ElScrollbar from '@element-plus/components/scrollbar'\nimport type { Placement } from '@element-plus/components/popper'\n\nimport type { WritableComputedRef, PropType } from 'vue'\nimport type { TableColumnCtx } from './table-column/defaults'\nimport type { TableHeader } from './table-header'\nimport type { Store } from './store'\n\nconst { CheckboxGroup: ElCheckboxGroup } = ElCheckbox\n\nexport default defineComponent({\n name: 'ElTableFilterPanel',\n components: {\n ElCheckbox,\n ElCheckboxGroup,\n ElScrollbar,\n ElTooltip,\n ElIcon,\n ArrowDown,\n ArrowUp,\n },\n directives: { ClickOutside },\n props: {\n placement: {\n type: String as PropType<Placement>,\n default: 'bottom-start',\n },\n store: {\n type: Object as PropType<Store<unknown>>,\n },\n column: {\n type: Object as PropType<TableColumnCtx<unknown>>,\n },\n upDataColumn: {\n type: Function,\n },\n },\n setup(props) {\n const instance = getCurrentInstance()\n const { t } = useLocale()\n const ns = useNamespace('table-filter')\n const parent = instance?.parent as TableHeader\n if (!parent.filterPanels.value[props.column.id]) {\n parent.filterPanels.value[props.column.id] = instance\n }\n const tooltipVisible = ref(false)\n const tooltip = ref<InstanceType<typeof ElTooltip> | null>(null)\n const filters = computed(() => {\n return props.column && props.column.filters\n })\n const filterValue = computed({\n get: () => (props.column?.filteredValue || [])[0],\n set: (value: string) => {\n if (filteredValue.value) {\n if (typeof value !== 'undefined' && value !== null) {\n filteredValue.value.splice(0, 1, value)\n } else {\n filteredValue.value.splice(0, 1)\n }\n }\n },\n })\n const filteredValue: WritableComputedRef<unknown[]> = computed({\n get() {\n if (props.column) {\n return props.column.filteredValue || []\n }\n return []\n },\n set(value: unknown[]) {\n if (props.column) {\n props.upDataColumn('filteredValue', value)\n }\n },\n })\n const multiple = computed(() => {\n if (props.column) {\n return props.column.filterMultiple\n }\n return true\n })\n const isActive = (filter) => {\n return filter.value === filterValue.value\n }\n const hidden = () => {\n tooltipVisible.value = false\n }\n const showFilterPanel = (e: MouseEvent) => {\n e.stopPropagation()\n tooltipVisible.value = !tooltipVisible.value\n }\n const hideFilterPanel = () => {\n tooltipVisible.value = false\n }\n const handleConfirm = () => {\n confirmFilter(filteredValue.value)\n hidden()\n }\n const handleReset = () => {\n filteredValue.value = []\n confirmFilter(filteredValue.value)\n hidden()\n }\n const handleSelect = (_filterValue?: string) => {\n filterValue.value = _filterValue\n if (typeof _filterValue !== 'undefined' && _filterValue !== null) {\n confirmFilter(filteredValue.value)\n } else {\n confirmFilter([])\n }\n hidden()\n }\n const confirmFilter = (filteredValue: unknown[]) => {\n props.store.commit('filterChange', {\n column: props.column,\n values: filteredValue,\n })\n props.store.updateAllSelected()\n }\n watch(\n tooltipVisible,\n (value) => {\n // todo\n if (props.column) {\n props.upDataColumn('filterOpened', value)\n }\n },\n {\n immediate: true,\n }\n )\n\n const popperPaneRef = computed(() => {\n return tooltip.value?.popperRef?.contentRef\n })\n\n return {\n tooltipVisible,\n multiple,\n filteredValue,\n filterValue,\n filters,\n handleConfirm,\n handleReset,\n handleSelect,\n isActive,\n t,\n ns,\n showFilterPanel,\n hideFilterPanel,\n popperPaneRef,\n tooltip,\n }\n },\n})\n</script>\n"],"names":["ElCheckbox","defineComponent","ElScrollbar","ElTooltip","ElIcon","ArrowDown","ArrowUp","ClickOutside","getCurrentInstance","useLocale","useNamespace","ref","computed","_openBlock"],"mappings":";;;;;;;;;;;;;;;;;AAwGA,MAAM,EAAE,eAAe,oBAAoBA;AAE3C,MAAK,YAAaC,oBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,gBACVD;AAAA,IACA;AAAA,iBACAE;AAAA,eACAC;AAAA,YACAC;AAAA,eACAC;AAAA,aACAC;AAAA;AAAA,EAEF,YAAY,gBAAEC;AAAA,EACd,OAAO;AAAA,IACL,WAAW;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA;AAAA,IAEX,OAAO;AAAA,MACL,MAAM;AAAA;AAAA,IAER,QAAQ;AAAA,MACN,MAAM;AAAA;AAAA,IAER,cAAc;AAAA,MACZ,MAAM;AAAA;AAAA;AAAA,EAGV,MAAM,OAAO;AACX,UAAM,WAAWC;AACjB,UAAM,EAAE,MAAMC;AACd,UAAM,KAAKC,qBAAa;AACxB,UAAM,SAAS;AACf,QAAI,CAAC,OAAO,aAAa,MAAM,MAAM,OAAO,KAAK;AAC/C,aAAO,aAAa,M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,sCACA;AAAoB;AAClB;AACZ;AAEG;AAIG;AAFY,YAAE;AAAA,0CACjB;AAAA;;;;AAIO;SACf;AAAA;AACQ;AAAoB;;;;;;AAStB;AAUD;;AANe,iBACZ;AAAA,sCACc;AAAA,sBACd;AAAA,yDAEQ;AAAA;;;;;;AAOV;AAA8B;AAAgE;;;;AAMpG;AACyC;AAAhB;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,18 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
require('
|
|
7
|
-
require('../../../../hooks/use-common-props/index.js');
|
|
8
|
-
require('../../../../hooks/use-global-config/index.js');
|
|
9
|
-
require('lodash/get');
|
|
10
|
-
require('@vueuse/core');
|
|
11
|
-
require('@vue/shared');
|
|
12
|
-
require('lodash/isEqualWith');
|
|
13
|
-
require('../../../../hooks/use-modal/index.js');
|
|
14
|
-
require('../../../../hooks/use-model-toggle/index.js');
|
|
15
|
-
require('../../../../hooks/use-delayed-toggle/index.js');
|
|
16
|
-
var index = require('../../../../hooks/use-namespace/index.js');
|
|
6
|
+
require('../../../../hooks/index.js');
|
|
17
7
|
var watcher = require('./watcher.js');
|
|
8
|
+
var index = require('../../../../hooks/use-namespace/index.js');
|
|
18
9
|
|
|
19
10
|
function replaceColumn(array, column) {
|
|
20
11
|
return array.map((item) => {
|
|
@@ -179,6 +170,11 @@ function useStore() {
|
|
|
179
170
|
updateTableScrollY
|
|
180
171
|
};
|
|
181
172
|
}
|
|
173
|
+
class HelperStore {
|
|
174
|
+
constructor() {
|
|
175
|
+
this.Return = useStore();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
182
178
|
|
|
183
179
|
exports["default"] = useStore;
|
|
184
180
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../packages/components/table/src/store/index.ts"],"sourcesContent":["import { nextTick, getCurrentInstance, unref } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport useWatcher from './watcher'\n\nimport type { Ref } from 'vue'\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type { Filter, Sort, Table } from '../table/defaults'\n\ninterface WatcherPropsData<T> {\n data: Ref<T[]>\n rowKey: Ref<string>\n}\n\nfunction replaceColumn<T>(\n array: TableColumnCtx<T>[],\n column: TableColumnCtx<T>\n) {\n return array.map((item) => {\n if (item.id === column.id) {\n return column\n } else if (item.children?.length) {\n item.children = replaceColumn(item.children, column)\n }\n return item\n })\n}\n\nfunction sortColumn<T>(array: TableColumnCtx<T>[]) {\n array.forEach((item) => {\n item.no = item.getColumnIndex?.()\n if (item.children?.length) {\n sortColumn(item.children)\n }\n })\n array.sort((cur, pre) => cur.no - pre.no)\n}\n\nfunction useStore<T>() {\n const instance = getCurrentInstance() as Table<T>\n const watcher = useWatcher<T>()\n const ns = useNamespace('table')\n type StoreStates = typeof watcher.states\n const mutations = {\n setData(states: StoreStates, data: T[]) {\n const dataInstanceChanged = unref(states._data) !== data\n states.data.value = data\n states._data.value = data\n instance.store.execQuery()\n // 数据变化,更新部分数据。\n // 没有使用 computed,而是手动更新部分数据 https://github.com/vuejs/vue/issues/6660#issuecomment-331417140\n instance.store.updateCurrentRowData()\n instance.store.updateExpandRows()\n instance.store.updateTreeData(\n instance.store.states.defaultExpandAll.value\n )\n if (unref(states.reserveSelection)) {\n instance.store.assertRowKey()\n instance.store.updateSelectionByRowKey()\n } else {\n if (dataInstanceChanged) {\n instance.store.clearSelection()\n } else {\n instance.store.cleanSelection()\n }\n }\n instance.store.updateAllSelected()\n if (instance.$ready) {\n instance.store.scheduleLayout()\n }\n },\n\n insertColumn(\n states: StoreStates,\n column: TableColumnCtx<T>,\n parent: TableColumnCtx<T>\n ) {\n const array = unref(states._columns)\n let newColumns = []\n if (!parent) {\n array.push(column)\n newColumns = array\n } else {\n if (parent && !parent.children) {\n parent.children = []\n }\n parent.children.push(column)\n newColumns = replaceColumn(array, parent)\n }\n sortColumn(newColumns)\n states._columns.value = newColumns\n if (column.type === 'selection') {\n states.selectable.value = column.selectable\n states.reserveSelection.value = column.reserveSelection\n }\n if (instance.$ready) {\n instance.store.updateColumns() // hack for dynamics insert column\n instance.store.scheduleLayout()\n }\n },\n\n removeColumn(\n states: StoreStates,\n column: TableColumnCtx<T>,\n parent: TableColumnCtx<T>\n ) {\n const array = unref(states._columns) || []\n if (parent) {\n parent.children.splice(\n parent.children.findIndex((item) => item.id === column.id),\n 1\n )\n if (parent.children.length === 0) {\n delete parent.children\n }\n states._columns.value = replaceColumn(array, parent)\n } else {\n const index = array.indexOf(column)\n if (index > -1) {\n array.splice(index, 1)\n states._columns.value = array\n }\n }\n\n if (instance.$ready) {\n instance.store.updateColumns() // hack for dynamics remove column\n instance.store.scheduleLayout()\n }\n },\n\n sort(states: StoreStates, options: Sort) {\n const { prop, order, init } = options\n if (prop) {\n const column = unref(states.columns).find(\n (column) => column.property === prop\n )\n if (column) {\n column.order = order\n instance.store.updateSort(column, prop, order)\n instance.store.commit('changeSortCondition', { init })\n }\n }\n },\n\n changeSortCondition(states: StoreStates, options: Sort) {\n // 修复 pr https://github.com/ElemeFE/element/pull/15012 导致的 bug\n const { sortingColumn: column, sortProp: prop, sortOrder: order } = states\n if (unref(order) === null) {\n states.sortingColumn.value = null\n states.sortProp.value = null\n }\n const ingore = { filter: true }\n instance.store.execQuery(ingore)\n\n if (!options || !(options.silent || options.init)) {\n instance.emit('sort-change', {\n column: unref(column),\n prop: unref(prop),\n order: unref(order),\n })\n }\n\n instance.store.updateTableScrollY()\n },\n\n filterChange(_states: StoreStates, options: Filter<T>) {\n const { column, values, silent } = options\n const newFilters = instance.store.updateFilters(column, values)\n instance.store.execQuery()\n\n if (!silent) {\n instance.emit('filter-change', newFilters)\n }\n instance.store.updateTableScrollY()\n },\n\n toggleAllSelection() {\n instance.store.toggleAllSelection()\n },\n\n rowSelectedChanged(_states, row: T) {\n instance.store.toggleRowSelection(row)\n instance.store.updateAllSelected()\n },\n\n setHoverRow(states: StoreStates, row: T) {\n states.hoverRow.value = row\n },\n\n setCurrentRow(_states, row: T) {\n instance.store.updateCurrentRow(row)\n },\n }\n const commit = function (name: keyof typeof mutations, ...args) {\n const mutations = instance.store.mutations\n if (mutations[name]) {\n mutations[name].apply(instance, [instance.store.states].concat(args))\n } else {\n throw new Error(`Action not found: ${name}`)\n }\n }\n const updateTableScrollY = function () {\n nextTick(() => instance.layout.updateScrollY.apply(instance.layout))\n }\n return {\n ns,\n ...watcher,\n mutations,\n commit,\n updateTableScrollY,\n }\n}\nexport default useStore\n\nclass HelperStore<T> {\n Return = useStore<T>()\n}\ntype StoreFilter = Record<string, string[]>\ntype Store<T> = HelperStore<T>['Return']\nexport type { WatcherPropsData, Store, StoreFilter }\n"],"names":["getCurrentInstance","watcher","useWatcher","useNamespace","unref","nextTick"],"mappings":";;;;;;;;;;;;;;;;;;AAGA,SAAS,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE;AACtC,EAAE,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK;AAC7B,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,IAAI,IAAI,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,EAAE;AAC/B,MAAM,OAAO,MAAM,CAAC;AACpB,KAAK,MAAM,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE;AAClE,MAAM,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC3D,KAAK;AACL,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG,CAAC,CAAC;AACL,CAAC;AACD,SAAS,UAAU,CAAC,KAAK,EAAE;AAC3B,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK;AAC1B,IAAI,IAAI,EAAE,EAAE,EAA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C;AAC7C,MAAM,QAAQ,CAAC,KAAK,CAAC,iBAAiB,EAAE,CAAC;AACzC,KAAK;AACL,IAAI,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE;AAC7B,MAAM,MAAM,CAAC,QAAQ,CAAC,KAAK,GAAG,GAAG,CAAC;AAClC,KAAK;AACL,IAAI,aAAa,CAAC,OAAO,EAAE,GAAG,EAAE;AAChC,MAAM,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;AAC3C,KAAK;AACL,GAAG,CAAC;AACJ,EAAE,MAAM,MAAM,GAAG,SAAS,IAAI,EAAE,GAAG,IAAI,EAAE;AACzC,IAAI,MAAM,UAAU,GAAG,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC;AAChD,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,EAAE;AAC1B,MAAM,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7E,KAAK,MAAM;AACX,MAAM,MAAM,IAAI,KAAK,CAAC,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AACnD,KAAK;AACL,GAAG,CAAC;AACJ,EAAE,MAAM,kBAAkB,GAAG,WAAW;AACxC,IAAIC,YAAQ,CAAC,MAAM,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;AACzE,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,EAAE;AACN,IAAI,GAAGJ,SAAO;AACd,IAAI,SAAS;AACb,IAAI,MAAM;AACV,IAAI,kBAAkB;AACtB,GAAG,CAAC;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../packages/components/table/src/store/index.ts"],"sourcesContent":["import { nextTick, getCurrentInstance, unref } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport useWatcher from './watcher'\n\nimport type { Ref } from 'vue'\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type { Filter, Sort, Table } from '../table/defaults'\n\ninterface WatcherPropsData<T> {\n data: Ref<T[]>\n rowKey: Ref<string>\n}\n\nfunction replaceColumn<T>(\n array: TableColumnCtx<T>[],\n column: TableColumnCtx<T>\n) {\n return array.map((item) => {\n if (item.id === column.id) {\n return column\n } else if (item.children?.length) {\n item.children = replaceColumn(item.children, column)\n }\n return item\n })\n}\n\nfunction sortColumn<T>(array: TableColumnCtx<T>[]) {\n array.forEach((item) => {\n item.no = item.getColumnIndex?.()\n if (item.children?.length) {\n sortColumn(item.children)\n }\n })\n array.sort((cur, pre) => cur.no - pre.no)\n}\n\nfunction useStore<T>() {\n const instance = getCurrentInstance() as Table<T>\n const watcher = useWatcher<T>()\n const ns = useNamespace('table')\n type StoreStates = typeof watcher.states\n const mutations = {\n setData(states: StoreStates, data: T[]) {\n const dataInstanceChanged = unref(states._data) !== data\n states.data.value = data\n states._data.value = data\n instance.store.execQuery()\n // 数据变化,更新部分数据。\n // 没有使用 computed,而是手动更新部分数据 https://github.com/vuejs/vue/issues/6660#issuecomment-331417140\n instance.store.updateCurrentRowData()\n instance.store.updateExpandRows()\n instance.store.updateTreeData(\n instance.store.states.defaultExpandAll.value\n )\n if (unref(states.reserveSelection)) {\n instance.store.assertRowKey()\n instance.store.updateSelectionByRowKey()\n } else {\n if (dataInstanceChanged) {\n instance.store.clearSelection()\n } else {\n instance.store.cleanSelection()\n }\n }\n instance.store.updateAllSelected()\n if (instance.$ready) {\n instance.store.scheduleLayout()\n }\n },\n\n insertColumn(\n states: StoreStates,\n column: TableColumnCtx<T>,\n parent: TableColumnCtx<T>\n ) {\n const array = unref(states._columns)\n let newColumns = []\n if (!parent) {\n array.push(column)\n newColumns = array\n } else {\n if (parent && !parent.children) {\n parent.children = []\n }\n parent.children.push(column)\n newColumns = replaceColumn(array, parent)\n }\n sortColumn(newColumns)\n states._columns.value = newColumns\n if (column.type === 'selection') {\n states.selectable.value = column.selectable\n states.reserveSelection.value = column.reserveSelection\n }\n if (instance.$ready) {\n instance.store.updateColumns() // hack for dynamics insert column\n instance.store.scheduleLayout()\n }\n },\n\n removeColumn(\n states: StoreStates,\n column: TableColumnCtx<T>,\n parent: TableColumnCtx<T>\n ) {\n const array = unref(states._columns) || []\n if (parent) {\n parent.children.splice(\n parent.children.findIndex((item) => item.id === column.id),\n 1\n )\n if (parent.children.length === 0) {\n delete parent.children\n }\n states._columns.value = replaceColumn(array, parent)\n } else {\n const index = array.indexOf(column)\n if (index > -1) {\n array.splice(index, 1)\n states._columns.value = array\n }\n }\n\n if (instance.$ready) {\n instance.store.updateColumns() // hack for dynamics remove column\n instance.store.scheduleLayout()\n }\n },\n\n sort(states: StoreStates, options: Sort) {\n const { prop, order, init } = options\n if (prop) {\n const column = unref(states.columns).find(\n (column) => column.property === prop\n )\n if (column) {\n column.order = order\n instance.store.updateSort(column, prop, order)\n instance.store.commit('changeSortCondition', { init })\n }\n }\n },\n\n changeSortCondition(states: StoreStates, options: Sort) {\n // 修复 pr https://github.com/ElemeFE/element/pull/15012 导致的 bug\n const { sortingColumn: column, sortProp: prop, sortOrder: order } = states\n if (unref(order) === null) {\n states.sortingColumn.value = null\n states.sortProp.value = null\n }\n const ingore = { filter: true }\n instance.store.execQuery(ingore)\n\n if (!options || !(options.silent || options.init)) {\n instance.emit('sort-change', {\n column: unref(column),\n prop: unref(prop),\n order: unref(order),\n })\n }\n\n instance.store.updateTableScrollY()\n },\n\n filterChange(_states: StoreStates, options: Filter<T>) {\n const { column, values, silent } = options\n const newFilters = instance.store.updateFilters(column, values)\n instance.store.execQuery()\n\n if (!silent) {\n instance.emit('filter-change', newFilters)\n }\n instance.store.updateTableScrollY()\n },\n\n toggleAllSelection() {\n instance.store.toggleAllSelection()\n },\n\n rowSelectedChanged(_states, row: T) {\n instance.store.toggleRowSelection(row)\n instance.store.updateAllSelected()\n },\n\n setHoverRow(states: StoreStates, row: T) {\n states.hoverRow.value = row\n },\n\n setCurrentRow(_states, row: T) {\n instance.store.updateCurrentRow(row)\n },\n }\n const commit = function (name: keyof typeof mutations, ...args) {\n const mutations = instance.store.mutations\n if (mutations[name]) {\n mutations[name].apply(instance, [instance.store.states].concat(args))\n } else {\n throw new Error(`Action not found: ${name}`)\n }\n }\n const updateTableScrollY = function () {\n nextTick(() => instance.layout.updateScrollY.apply(instance.layout))\n }\n return {\n ns,\n ...watcher,\n mutations,\n commit,\n updateTableScrollY,\n }\n}\nexport default useStore\n\nclass HelperStore<T> {\n Return = useStore<T>()\n}\ntype StoreFilter = Record<string, string[]>\ntype Store<T> = HelperStore<T>['Return']\nexport type { WatcherPropsData, Store, StoreFilter }\n"],"names":["getCurrentInstance","watcher","useWatcher","useNamespace","unref","nextTick"],"mappings":";;;;;;;;;AAGA,SAAS,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE;AACtC,EAAE,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK;AAC7B,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,IAAI,IAAI,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,EAAE;AAC/B,MAAM,OAAO,MAAM,CAAC;AACpB,KAAK,MAAM,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE;AAClE,MAAM,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC3D,KAAK;AACL,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG,CAAC,CAAC;AACL,CAAC;AACD,SAAS,UAAU,CAAC,KAAK,EAAE;AAC3B,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK;AAC1B,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC;AACf,IAAI,IAAI,CA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|
@@ -5,17 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var resizeEvent = require('../../../../utils/resize-event.js');
|
|
7
7
|
var dom = require('../../../../utils/dom.js');
|
|
8
|
-
require('
|
|
9
|
-
var index = require('../../../../hooks/use-common-props/index.js');
|
|
10
|
-
require('../../../../hooks/use-global-config/index.js');
|
|
11
|
-
require('lodash/get');
|
|
12
|
-
require('@vueuse/core');
|
|
13
|
-
require('../../../../hooks/use-modal/index.js');
|
|
14
|
-
require('../../../../hooks/use-model-toggle/index.js');
|
|
15
|
-
require('@vue/shared');
|
|
16
|
-
require('lodash/isEqualWith');
|
|
17
|
-
require('../../../../hooks/use-delayed-toggle/index.js');
|
|
8
|
+
require('../../../../hooks/index.js');
|
|
18
9
|
var util = require('../util.js');
|
|
10
|
+
var index = require('../../../../hooks/use-common-props/index.js');
|
|
19
11
|
|
|
20
12
|
function useStyle(props, layout, store, table) {
|
|
21
13
|
const isHidden = vue.ref(false);
|
|
@@ -134,6 +126,8 @@ function useStyle(props, layout, store, table) {
|
|
|
134
126
|
};
|
|
135
127
|
const bindEvents = () => {
|
|
136
128
|
var _a;
|
|
129
|
+
if (!table.refs.scrollWrapper)
|
|
130
|
+
return;
|
|
137
131
|
(_a = table.refs.scrollWrapper.wrap$) == null ? void 0 : _a.addEventListener("scroll", syncPostion, {
|
|
138
132
|
passive: true
|
|
139
133
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style-helper.js","sources":["../../../../../../../packages/components/table/src/table/style-helper.ts"],"sourcesContent":["import {\n onMounted,\n onBeforeUnmount,\n computed,\n ref,\n watchEffect,\n watch,\n unref,\n nextTick,\n} from 'vue'\nimport {\n addResizeListener,\n removeResizeListener,\n} from '@element-plus/utils/resize-event'\nimport { on, off } from '@element-plus/utils/dom'\nimport { useSize } from '@element-plus/hooks'\nimport { parseHeight } from '../util'\n\nimport type { ResizableElement } from '@element-plus/utils/resize-event'\nimport type { Table, TableProps } from './defaults'\nimport type { Store } from '../store'\nimport type TableLayout from '../table-layout'\nimport type { TableColumnCtx } from '../table-column/defaults'\n\nfunction useStyle<T>(\n props: TableProps<T>,\n layout: TableLayout<T>,\n store: Store<T>,\n table: Table<T>\n) {\n const isHidden = ref(false)\n const renderExpanded = ref(null)\n const resizeProxyVisible = ref(false)\n const setDragVisible = (visible: boolean) => {\n resizeProxyVisible.value = visible\n }\n const resizeState = ref({\n width: null,\n height: null,\n })\n const isGroup = ref(false)\n\n watchEffect(() => {\n layout.setHeight(props.height)\n })\n watchEffect(() => {\n layout.setMaxHeight(props.maxHeight)\n })\n watch(\n () => [props.currentRowKey, store.states.rowKey],\n ([currentRowKey, rowKey]) => {\n if (!unref(rowKey)) return\n store.setCurrentRowKey(`${currentRowKey}`)\n },\n {\n immediate: true,\n }\n )\n watch(\n () => props.data,\n (data) => {\n table.store.commit('setData', data)\n },\n {\n immediate: true,\n deep: true,\n }\n )\n watchEffect(() => {\n if (props.expandRowKeys) {\n store.setExpandRowKeysAdapter(props.expandRowKeys)\n }\n })\n\n const handleMouseLeave = () => {\n table.store.commit('setHoverRow', null)\n if (table.hoverState) table.hoverState = null\n }\n\n const handleHeaderFooterMousewheel = (event, data) => {\n const { pixelX, pixelY } = data\n if (Math.abs(pixelX) >= Math.abs(pixelY)) {\n table.refs.bodyWrapper.scrollLeft += data.pixelX / 5\n }\n }\n\n const shouldUpdateHeight = computed(() => {\n return (\n props.height ||\n props.maxHeight ||\n store.states.fixedColumns.value.length > 0 ||\n store.states.rightFixedColumns.value.length > 0\n )\n })\n\n const tableBodyStyles = computed(() => {\n return {\n width: layout.bodyWidth.value ? `${layout.bodyWidth.value}px` : '',\n }\n })\n\n const doLayout = () => {\n if (shouldUpdateHeight.value) {\n layout.updateElsHeight()\n }\n layout.updateColumnsWidth()\n requestAnimationFrame(syncPostion)\n }\n onMounted(async () => {\n setScrollClass('is-scrolling-left')\n store.updateColumns()\n await nextTick()\n bindEvents()\n requestAnimationFrame(doLayout)\n\n resizeState.value = {\n width: table.vnode.el.offsetWidth,\n height: table.vnode.el.offsetHeight,\n }\n\n // init filters\n store.states.columns.value.forEach((column: TableColumnCtx<T>) => {\n if (column.filteredValue && column.filteredValue.length) {\n table.store.commit('filterChange', {\n column,\n values: column.filteredValue,\n silent: true,\n })\n }\n })\n table.$ready = true\n })\n const setScrollClassByEl = (el: HTMLElement, className: string) => {\n if (!el) return\n const classList = Array.from(el.classList).filter(\n (item) => !item.startsWith('is-scrolling-')\n )\n classList.push(layout.scrollX.value ? className : 'is-scrolling-none')\n el.className = classList.join(' ')\n }\n const setScrollClass = (className: string) => {\n const { tableWrapper } = table.refs\n setScrollClassByEl(tableWrapper, className)\n }\n const syncPostion = function () {\n if (!table.refs.scrollWrapper) return\n const scrollContainer = table.refs.scrollWrapper.wrap$\n if (!scrollContainer) return\n const { scrollLeft, offsetWidth, scrollWidth } = scrollContainer\n const { headerWrapper, footerWrapper } = table.refs\n if (headerWrapper) headerWrapper.scrollLeft = scrollLeft\n if (footerWrapper) footerWrapper.scrollLeft = scrollLeft\n const maxScrollLeftPosition = scrollWidth - offsetWidth - 1\n if (scrollLeft >= maxScrollLeftPosition) {\n setScrollClass('is-scrolling-right')\n } else if (scrollLeft === 0) {\n setScrollClass('is-scrolling-left')\n } else {\n setScrollClass('is-scrolling-middle')\n }\n }\n\n const bindEvents = () => {\n table.refs.scrollWrapper.wrap$?.addEventListener('scroll', syncPostion, {\n passive: true,\n })\n if (props.fit) {\n addResizeListener(table.vnode.el as ResizableElement, resizeListener)\n } else {\n on(window, 'resize', doLayout)\n }\n }\n onBeforeUnmount(() => {\n unbindEvents()\n })\n const unbindEvents = () => {\n table.refs.scrollWrapper.wrap$?.removeEventListener(\n 'scroll',\n syncPostion,\n true\n )\n if (props.fit) {\n removeResizeListener(table.vnode.el as ResizableElement, resizeListener)\n } else {\n off(window, 'resize', doLayout)\n }\n }\n const resizeListener = () => {\n if (!table.$ready) return\n let shouldUpdateLayout = false\n const el = table.vnode.el\n const { width: oldWidth, height: oldHeight } = resizeState.value\n\n const width = el.offsetWidth\n if (oldWidth !== width) {\n shouldUpdateLayout = true\n }\n\n const height = el.offsetHeight\n if ((props.height || shouldUpdateHeight.value) && oldHeight !== height) {\n shouldUpdateLayout = true\n }\n\n if (shouldUpdateLayout) {\n resizeState.value = {\n width,\n height,\n }\n doLayout()\n }\n }\n const tableSize = useSize()\n const bodyWidth = computed(() => {\n const { bodyWidth: bodyWidth_, scrollY, gutterWidth } = layout\n return bodyWidth_.value\n ? `${(bodyWidth_.value as number) - (scrollY.value ? gutterWidth : 0)}px`\n : ''\n })\n\n const height = computed(() => {\n const headerHeight = layout.headerHeight.value || 0\n const bodyHeight = layout.bodyHeight.value\n const footerHeight = layout.footerHeight.value || 0\n if (props.height) {\n return bodyHeight ? bodyHeight : undefined\n } else if (props.maxHeight) {\n const maxHeight = parseHeight(props.maxHeight)\n return maxHeight - footerHeight - (props.showHeader ? headerHeight : 0)\n }\n return undefined\n })\n\n const bodyHeight = computed(() => {\n const headerHeight = layout.headerHeight.value || 0\n const bodyHeight = layout.bodyHeight.value\n const footerHeight = layout.footerHeight.value || 0\n if (props.height) {\n return {\n height: bodyHeight ? `${bodyHeight}px` : '',\n }\n } else if (props.maxHeight) {\n const maxHeight = parseHeight(props.maxHeight)\n if (typeof maxHeight === 'number') {\n return {\n 'max-height': `${\n maxHeight - footerHeight - (props.showHeader ? headerHeight : 0)\n }px`,\n }\n }\n }\n return {}\n })\n const emptyBlockStyle = computed(() => {\n if (props.data && props.data.length) return null\n let height = '100%'\n if (layout.appendHeight.value) {\n height = `calc(100% - ${layout.appendHeight.value}px)`\n }\n return {\n width: bodyWidth.value,\n height,\n }\n })\n /**\n * fix layout\n */\n const handleFixedMousewheel = (event, data) => {\n const bodyWrapper = table.refs.bodyWrapper\n if (Math.abs(data.spinY) > 0) {\n const currentScrollTop = bodyWrapper.scrollTop\n if (data.pixelY < 0 && currentScrollTop !== 0) {\n event.preventDefault()\n }\n if (\n data.pixelY > 0 &&\n bodyWrapper.scrollHeight - bodyWrapper.clientHeight > currentScrollTop\n ) {\n event.preventDefault()\n }\n bodyWrapper.scrollTop += Math.ceil(data.pixelY / 5)\n } else {\n bodyWrapper.scrollLeft += Math.ceil(data.pixelX / 5)\n }\n }\n const fixedHeight = computed(() => {\n if (props.maxHeight) {\n if (props.showSummary) {\n return {\n bottom: 0,\n }\n }\n return {\n bottom:\n layout.scrollX.value && props.data.length\n ? `${layout.gutterWidth}px`\n : '',\n }\n } else {\n if (props.showSummary) {\n return {\n height: layout.tableHeight.value\n ? `${layout.tableHeight.value}px`\n : '',\n }\n }\n return {\n height: layout.viewportHeight.value\n ? `${layout.viewportHeight.value}px`\n : '',\n }\n }\n })\n const fixedBodyHeight = computed(() => {\n if (props.height) {\n return {\n height: layout.fixedBodyHeight.value\n ? `${layout.fixedBodyHeight.value}px`\n : '',\n }\n } else if (props.maxHeight) {\n let maxHeight = parseHeight(props.maxHeight)\n if (typeof maxHeight === 'number') {\n maxHeight = layout.scrollX.value\n ? maxHeight - layout.gutterWidth\n : maxHeight\n if (props.showHeader) {\n maxHeight -= layout.headerHeight.value\n }\n maxHeight -= layout.footerHeight.value\n return {\n 'max-height': `${maxHeight}px`,\n }\n }\n }\n return {}\n })\n\n return {\n isHidden,\n renderExpanded,\n setDragVisible,\n isGroup,\n handleMouseLeave,\n handleHeaderFooterMousewheel,\n tableSize,\n bodyHeight,\n height,\n emptyBlockStyle,\n handleFixedMousewheel,\n fixedHeight,\n fixedBodyHeight,\n resizeProxyVisible,\n bodyWidth,\n resizeState,\n doLayout,\n tableBodyStyles,\n }\n}\n\nexport default useStyle\n"],"names":["ref","watchEffect","watch","unref","computed","onMounted","nextTick","addResizeListener","on","onBeforeUnmount","removeResizeListener","off","useSize","parseHeight"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBA,SAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,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,IAAI,SAAS;AACb,IAAI,UAAU;AACd,IAAI,MAAM;AACV,IAAI,eAAe;AACnB,IAAI,qBAAqB;AACzB,IAAI,WAAW;AACf,IAAI,eAAe;AACnB,IAAI,kBAAkB;AACtB,IAAI,SAAS;AACb,IAAI,WAAW;AACf,IAAI,QAAQ;AACZ,IAAI,eAAe;AACnB,GAAG,CAAC;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"style-helper.js","sources":["../../../../../../../packages/components/table/src/table/style-helper.ts"],"sourcesContent":["import {\n onMounted,\n onBeforeUnmount,\n computed,\n ref,\n watchEffect,\n watch,\n unref,\n nextTick,\n} from 'vue'\nimport {\n addResizeListener,\n removeResizeListener,\n} from '@element-plus/utils/resize-event'\nimport { on, off } from '@element-plus/utils/dom'\nimport { useSize } from '@element-plus/hooks'\nimport { parseHeight } from '../util'\n\nimport type { ResizableElement } from '@element-plus/utils/resize-event'\nimport type { Table, TableProps } from './defaults'\nimport type { Store } from '../store'\nimport type TableLayout from '../table-layout'\nimport type { TableColumnCtx } from '../table-column/defaults'\n\nfunction useStyle<T>(\n props: TableProps<T>,\n layout: TableLayout<T>,\n store: Store<T>,\n table: Table<T>\n) {\n const isHidden = ref(false)\n const renderExpanded = ref(null)\n const resizeProxyVisible = ref(false)\n const setDragVisible = (visible: boolean) => {\n resizeProxyVisible.value = visible\n }\n const resizeState = ref({\n width: null,\n height: null,\n })\n const isGroup = ref(false)\n\n watchEffect(() => {\n layout.setHeight(props.height)\n })\n watchEffect(() => {\n layout.setMaxHeight(props.maxHeight)\n })\n watch(\n () => [props.currentRowKey, store.states.rowKey],\n ([currentRowKey, rowKey]) => {\n if (!unref(rowKey)) return\n store.setCurrentRowKey(`${currentRowKey}`)\n },\n {\n immediate: true,\n }\n )\n watch(\n () => props.data,\n (data) => {\n table.store.commit('setData', data)\n },\n {\n immediate: true,\n deep: true,\n }\n )\n watchEffect(() => {\n if (props.expandRowKeys) {\n store.setExpandRowKeysAdapter(props.expandRowKeys)\n }\n })\n\n const handleMouseLeave = () => {\n table.store.commit('setHoverRow', null)\n if (table.hoverState) table.hoverState = null\n }\n\n const handleHeaderFooterMousewheel = (event, data) => {\n const { pixelX, pixelY } = data\n if (Math.abs(pixelX) >= Math.abs(pixelY)) {\n table.refs.bodyWrapper.scrollLeft += data.pixelX / 5\n }\n }\n\n const shouldUpdateHeight = computed(() => {\n return (\n props.height ||\n props.maxHeight ||\n store.states.fixedColumns.value.length > 0 ||\n store.states.rightFixedColumns.value.length > 0\n )\n })\n\n const tableBodyStyles = computed(() => {\n return {\n width: layout.bodyWidth.value ? `${layout.bodyWidth.value}px` : '',\n }\n })\n\n const doLayout = () => {\n if (shouldUpdateHeight.value) {\n layout.updateElsHeight()\n }\n layout.updateColumnsWidth()\n requestAnimationFrame(syncPostion)\n }\n onMounted(async () => {\n setScrollClass('is-scrolling-left')\n store.updateColumns()\n await nextTick()\n bindEvents()\n requestAnimationFrame(doLayout)\n\n resizeState.value = {\n width: table.vnode.el.offsetWidth,\n height: table.vnode.el.offsetHeight,\n }\n\n // init filters\n store.states.columns.value.forEach((column: TableColumnCtx<T>) => {\n if (column.filteredValue && column.filteredValue.length) {\n table.store.commit('filterChange', {\n column,\n values: column.filteredValue,\n silent: true,\n })\n }\n })\n table.$ready = true\n })\n const setScrollClassByEl = (el: HTMLElement, className: string) => {\n if (!el) return\n const classList = Array.from(el.classList).filter(\n (item) => !item.startsWith('is-scrolling-')\n )\n classList.push(layout.scrollX.value ? className : 'is-scrolling-none')\n el.className = classList.join(' ')\n }\n const setScrollClass = (className: string) => {\n const { tableWrapper } = table.refs\n setScrollClassByEl(tableWrapper, className)\n }\n const syncPostion = function () {\n if (!table.refs.scrollWrapper) return\n const scrollContainer = table.refs.scrollWrapper.wrap$\n if (!scrollContainer) return\n const { scrollLeft, offsetWidth, scrollWidth } = scrollContainer\n const { headerWrapper, footerWrapper } = table.refs\n if (headerWrapper) headerWrapper.scrollLeft = scrollLeft\n if (footerWrapper) footerWrapper.scrollLeft = scrollLeft\n const maxScrollLeftPosition = scrollWidth - offsetWidth - 1\n if (scrollLeft >= maxScrollLeftPosition) {\n setScrollClass('is-scrolling-right')\n } else if (scrollLeft === 0) {\n setScrollClass('is-scrolling-left')\n } else {\n setScrollClass('is-scrolling-middle')\n }\n }\n\n const bindEvents = () => {\n if (!table.refs.scrollWrapper) return\n table.refs.scrollWrapper.wrap$?.addEventListener('scroll', syncPostion, {\n passive: true,\n })\n if (props.fit) {\n addResizeListener(table.vnode.el as ResizableElement, resizeListener)\n } else {\n on(window, 'resize', doLayout)\n }\n }\n onBeforeUnmount(() => {\n unbindEvents()\n })\n const unbindEvents = () => {\n table.refs.scrollWrapper.wrap$?.removeEventListener(\n 'scroll',\n syncPostion,\n true\n )\n if (props.fit) {\n removeResizeListener(table.vnode.el as ResizableElement, resizeListener)\n } else {\n off(window, 'resize', doLayout)\n }\n }\n const resizeListener = () => {\n if (!table.$ready) return\n let shouldUpdateLayout = false\n const el = table.vnode.el\n const { width: oldWidth, height: oldHeight } = resizeState.value\n\n const width = el.offsetWidth\n if (oldWidth !== width) {\n shouldUpdateLayout = true\n }\n\n const height = el.offsetHeight\n if ((props.height || shouldUpdateHeight.value) && oldHeight !== height) {\n shouldUpdateLayout = true\n }\n\n if (shouldUpdateLayout) {\n resizeState.value = {\n width,\n height,\n }\n doLayout()\n }\n }\n const tableSize = useSize()\n const bodyWidth = computed(() => {\n const { bodyWidth: bodyWidth_, scrollY, gutterWidth } = layout\n return bodyWidth_.value\n ? `${(bodyWidth_.value as number) - (scrollY.value ? gutterWidth : 0)}px`\n : ''\n })\n\n const height = computed(() => {\n const headerHeight = layout.headerHeight.value || 0\n const bodyHeight = layout.bodyHeight.value\n const footerHeight = layout.footerHeight.value || 0\n if (props.height) {\n return bodyHeight ? bodyHeight : undefined\n } else if (props.maxHeight) {\n const maxHeight = parseHeight(props.maxHeight)\n return maxHeight - footerHeight - (props.showHeader ? headerHeight : 0)\n }\n return undefined\n })\n\n const bodyHeight = computed(() => {\n const headerHeight = layout.headerHeight.value || 0\n const bodyHeight = layout.bodyHeight.value\n const footerHeight = layout.footerHeight.value || 0\n if (props.height) {\n return {\n height: bodyHeight ? `${bodyHeight}px` : '',\n }\n } else if (props.maxHeight) {\n const maxHeight = parseHeight(props.maxHeight)\n if (typeof maxHeight === 'number') {\n return {\n 'max-height': `${\n maxHeight - footerHeight - (props.showHeader ? headerHeight : 0)\n }px`,\n }\n }\n }\n return {}\n })\n const emptyBlockStyle = computed(() => {\n if (props.data && props.data.length) return null\n let height = '100%'\n if (layout.appendHeight.value) {\n height = `calc(100% - ${layout.appendHeight.value}px)`\n }\n return {\n width: bodyWidth.value,\n height,\n }\n })\n /**\n * fix layout\n */\n const handleFixedMousewheel = (event, data) => {\n const bodyWrapper = table.refs.bodyWrapper\n if (Math.abs(data.spinY) > 0) {\n const currentScrollTop = bodyWrapper.scrollTop\n if (data.pixelY < 0 && currentScrollTop !== 0) {\n event.preventDefault()\n }\n if (\n data.pixelY > 0 &&\n bodyWrapper.scrollHeight - bodyWrapper.clientHeight > currentScrollTop\n ) {\n event.preventDefault()\n }\n bodyWrapper.scrollTop += Math.ceil(data.pixelY / 5)\n } else {\n bodyWrapper.scrollLeft += Math.ceil(data.pixelX / 5)\n }\n }\n const fixedHeight = computed(() => {\n if (props.maxHeight) {\n if (props.showSummary) {\n return {\n bottom: 0,\n }\n }\n return {\n bottom:\n layout.scrollX.value && props.data.length\n ? `${layout.gutterWidth}px`\n : '',\n }\n } else {\n if (props.showSummary) {\n return {\n height: layout.tableHeight.value\n ? `${layout.tableHeight.value}px`\n : '',\n }\n }\n return {\n height: layout.viewportHeight.value\n ? `${layout.viewportHeight.value}px`\n : '',\n }\n }\n })\n const fixedBodyHeight = computed(() => {\n if (props.height) {\n return {\n height: layout.fixedBodyHeight.value\n ? `${layout.fixedBodyHeight.value}px`\n : '',\n }\n } else if (props.maxHeight) {\n let maxHeight = parseHeight(props.maxHeight)\n if (typeof maxHeight === 'number') {\n maxHeight = layout.scrollX.value\n ? maxHeight - layout.gutterWidth\n : maxHeight\n if (props.showHeader) {\n maxHeight -= layout.headerHeight.value\n }\n maxHeight -= layout.footerHeight.value\n return {\n 'max-height': `${maxHeight}px`,\n }\n }\n }\n return {}\n })\n\n return {\n isHidden,\n renderExpanded,\n setDragVisible,\n isGroup,\n handleMouseLeave,\n handleHeaderFooterMousewheel,\n tableSize,\n bodyHeight,\n height,\n emptyBlockStyle,\n handleFixedMousewheel,\n fixedHeight,\n fixedBodyHeight,\n resizeProxyVisible,\n bodyWidth,\n resizeState,\n doLayout,\n tableBodyStyles,\n }\n}\n\nexport default useStyle\n"],"names":["ref","watchEffect","watch","unref","computed","onMounted","nextTick","addResizeListener","on","onBeforeUnmount","removeResizeListener","off","useSize","parseHeight"],"mappings":";;;;;;;;;;;AAiBA,SAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE;AAC/C,EAAE,MAAM,QAAQ,GAAGA,OAAG,CAAC,KAAK,CAAC,CAAC;AAC9B,EAAE,MAAM,cAAc,GAAGA,OAAG,CAAC,IAAI,CAAC,CAAC;AACnC,EAAE,MAAM,kBAAkB,GAAGA,OAAG,CAAC,KAAK,CAAC,CAAC;AACxC,EAAE,MAAM,cAAc,GAAG,CAAC,OAAO,KAAK;AACtC,IAAI,kBAAkB,CAAC,KAAK,GAAG,OAAO,CAAC;AACvC,GAAG,CAAC;AACJ,EAAE,MAAM,WAAW,GAAGA,OAAG,CAAC;AAC1B,IAAI,KAAK,EAAE,IAAI;AACf,IAAI,MAAM,EAAE,IAAI;AAChB,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,OAAO,GAAGA,OAAG,CAAC,KAAK,CAAC,CAAC;AAC7B,EAAEC,eAAW,CAAC,MAAM;AACpB,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACnC,GAAG,CAAC,CAAC;AACL,EAAEA,eAAW,CAAC,MAAM;AACpB,IAAI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ACnD,MAAM,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;AACzC,QAAQ,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC,WAAW,GAAG,SAAS,CAAC;AACtF,QAAQ,IAAI,KAAK,CAAC,UAAU,EAAE;AAC9B,UAAU,SAAS,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC;AACjD,SAAS;AACT,QAAQ,SAAS,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC;AAC/C,QAAQ,OAAO;AACf,UAAU,YAAY,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC;AACxC,SAAS,CAAC;AACV,OAAO;AACP,KAAK;AACL,IAAI,OAAO,EAAE,CAAC;AACd,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,QAAQ;AACZ,IAAI,cAAc;AAClB,IAAI,cAAc;AAClB,IAAI,OAAO;AACX,IAAI,gBAAgB;AACpB,IAAI,4BAA4B;AAChC,IAAI,SAAS;AACb,IAAI,UAAU;AACd,IAAI,MAAM;AACV,IAAI,eAAe;AACnB,IAAI,qBAAqB;AACzB,IAAI,WAAW;AACf,IAAI,eAAe;AACnB,IAAI,kBAAkB;AACtB,IAAI,SAAS;AACb,IAAI,WAAW;AACf,IAAI,QAAQ;AACZ,IAAI,eAAe;AACnB,GAAG,CAAC;AACJ;;;;"}
|
|
@@ -5,22 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var core = require('@vueuse/core');
|
|
7
7
|
var dom = require('../../../../utils/dom.js');
|
|
8
|
-
require('
|
|
9
|
-
require('../../../../hooks/use-common-props/index.js');
|
|
10
|
-
require('../../../../hooks/use-global-config/index.js');
|
|
11
|
-
require('lodash/get');
|
|
12
|
-
require('../../../../hooks/use-modal/index.js');
|
|
13
|
-
require('../../../../hooks/use-model-toggle/index.js');
|
|
14
|
-
require('@vue/shared');
|
|
15
|
-
require('lodash/isEqualWith');
|
|
16
|
-
require('../../../../hooks/use-delayed-toggle/index.js');
|
|
17
|
-
var index = require('../../../../hooks/use-namespace/index.js');
|
|
8
|
+
require('../../../../hooks/index.js');
|
|
18
9
|
var hHelper = require('../h-helper.js');
|
|
19
10
|
var layoutObserver = require('../layout-observer.js');
|
|
20
11
|
var util = require('../util.js');
|
|
21
12
|
var tokens = require('../tokens.js');
|
|
22
13
|
var renderHelper = require('./render-helper.js');
|
|
23
14
|
var defaults = require('./defaults.js');
|
|
15
|
+
var index = require('../../../../hooks/use-namespace/index.js');
|
|
24
16
|
|
|
25
17
|
var TableBody = vue.defineComponent({
|
|
26
18
|
name: "ElTableBody",
|
|
@@ -40,7 +32,7 @@ var TableBody = vue.defineComponent({
|
|
|
40
32
|
}
|
|
41
33
|
raf(() => {
|
|
42
34
|
var _a;
|
|
43
|
-
const rows = (_a = instance == null ? void 0 : instance.vnode.el) == null ? void 0 : _a.querySelectorAll(ns.e("row"));
|
|
35
|
+
const rows = (_a = instance == null ? void 0 : instance.vnode.el) == null ? void 0 : _a.querySelectorAll(`.${ns.e("row")}`);
|
|
44
36
|
const oldRow = rows[oldVal];
|
|
45
37
|
const newRow = rows[newVal];
|
|
46
38
|
if (oldRow) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../packages/components/table/src/table-body/index.ts"],"sourcesContent":["import {\n defineComponent,\n getCurrentInstance,\n h,\n watch,\n onUnmounted,\n onUpdated,\n inject,\n} from 'vue'\nimport { isClient } from '@vueuse/core'\nimport { addClass, removeClass } from '@element-plus/utils/dom'\nimport { useNamespace } from '@element-plus/hooks'\nimport { hColgroup } from '../h-helper'\nimport useLayoutObserver from '../layout-observer'\nimport { removePopper } from '../util'\nimport { TABLE_INJECTION_KEY } from '../tokens'\nimport useRender from './render-helper'\nimport defaultProps from './defaults'\n\nimport type { VNode } from 'vue'\n\nexport default defineComponent({\n name: 'ElTableBody',\n props: defaultProps,\n setup(props) {\n const instance = getCurrentInstance()\n const parent = inject(TABLE_INJECTION_KEY)\n const ns = useNamespace('table')\n const { wrappedRowRender, tooltipContent, tooltipTrigger } =\n useRender(props)\n const { onColumnsChange, onScrollableChange } = useLayoutObserver(parent!)\n\n watch(props.store.states.hoverRow, (newVal: any, oldVal: any) => {\n if (!props.store.states.isComplex.value || !isClient) return\n let raf = window.requestAnimationFrame\n if (!raf) {\n raf = (fn) => window.setTimeout(fn, 16)\n }\n raf(() => {\n const rows = instance?.vnode.el?.querySelectorAll(ns.e('row'))\n const oldRow = rows[oldVal]\n const newRow = rows[newVal]\n if (oldRow) {\n removeClass(oldRow, 'hover-row')\n }\n if (newRow) {\n addClass(newRow, 'hover-row')\n }\n })\n })\n\n onUnmounted(() => {\n removePopper?.()\n })\n onUpdated(() => {\n removePopper?.()\n })\n\n return {\n ns,\n onColumnsChange,\n onScrollableChange,\n wrappedRowRender,\n tooltipContent,\n tooltipTrigger,\n }\n },\n render() {\n const { ns, wrappedRowRender, store } = this\n const data = store.states.data.value || []\n const columns = store.states.columns.value\n return h(\n 'table',\n {\n class: ns.e('body'),\n cellspacing: '0',\n cellpadding: '0',\n border: '0',\n },\n [\n hColgroup(columns),\n h('tbody', {}, [\n data.reduce((acc: VNode[], row) => {\n return acc.concat(wrappedRowRender(row, acc.length))\n }, []),\n ]),\n ]\n )\n },\n})\n"],"names":["defineComponent","defaultProps","getCurrentInstance","inject","TABLE_INJECTION_KEY","useNamespace","useRender","useLayoutObserver","watch","isClient","removeClass","addClass","onUnmounted","removePopper","onUpdated","h","hColgroup"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../packages/components/table/src/table-body/index.ts"],"sourcesContent":["import {\n defineComponent,\n getCurrentInstance,\n h,\n watch,\n onUnmounted,\n onUpdated,\n inject,\n} from 'vue'\nimport { isClient } from '@vueuse/core'\nimport { addClass, removeClass } from '@element-plus/utils/dom'\nimport { useNamespace } from '@element-plus/hooks'\nimport { hColgroup } from '../h-helper'\nimport useLayoutObserver from '../layout-observer'\nimport { removePopper } from '../util'\nimport { TABLE_INJECTION_KEY } from '../tokens'\nimport useRender from './render-helper'\nimport defaultProps from './defaults'\n\nimport type { VNode } from 'vue'\n\nexport default defineComponent({\n name: 'ElTableBody',\n props: defaultProps,\n setup(props) {\n const instance = getCurrentInstance()\n const parent = inject(TABLE_INJECTION_KEY)\n const ns = useNamespace('table')\n const { wrappedRowRender, tooltipContent, tooltipTrigger } =\n useRender(props)\n const { onColumnsChange, onScrollableChange } = useLayoutObserver(parent!)\n\n watch(props.store.states.hoverRow, (newVal: any, oldVal: any) => {\n if (!props.store.states.isComplex.value || !isClient) return\n let raf = window.requestAnimationFrame\n if (!raf) {\n raf = (fn) => window.setTimeout(fn, 16)\n }\n raf(() => {\n const rows = instance?.vnode.el?.querySelectorAll(`.${ns.e('row')}`)\n const oldRow = rows[oldVal]\n const newRow = rows[newVal]\n if (oldRow) {\n removeClass(oldRow, 'hover-row')\n }\n if (newRow) {\n addClass(newRow, 'hover-row')\n }\n })\n })\n\n onUnmounted(() => {\n removePopper?.()\n })\n onUpdated(() => {\n removePopper?.()\n })\n\n return {\n ns,\n onColumnsChange,\n onScrollableChange,\n wrappedRowRender,\n tooltipContent,\n tooltipTrigger,\n }\n },\n render() {\n const { ns, wrappedRowRender, store } = this\n const data = store.states.data.value || []\n const columns = store.states.columns.value\n return h(\n 'table',\n {\n class: ns.e('body'),\n cellspacing: '0',\n cellpadding: '0',\n border: '0',\n },\n [\n hColgroup(columns),\n h('tbody', {}, [\n data.reduce((acc: VNode[], row) => {\n return acc.concat(wrappedRowRender(row, acc.length))\n }, []),\n ]),\n ]\n )\n },\n})\n"],"names":["defineComponent","defaultProps","getCurrentInstance","inject","TABLE_INJECTION_KEY","useNamespace","useRender","useLayoutObserver","watch","isClient","removeClass","addClass","onUnmounted","removePopper","onUpdated","h","hColgroup"],"mappings":";;;;;;;;;;;;;;;;AAkBA,gBAAeA,mBA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,CAAC,MAAM,CAAC;AACzB,MAAM,WAAW,EAAE,GAAG;AACtB,MAAM,WAAW,EAAE,GAAG;AACtB,MAAM,MAAM,EAAE,GAAG;AACjB,KAAK,EAAE;AACP,MAAMC,iBAAS,CAAC,OAAO,CAAC;AACxB,MAAMD,KAAC,CAAC,OAAO,EAAE,EAAE,EAAE;AACrB,QAAQ,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK;AAClC,UAAU,OAAO,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/D,SAAS,EAAE,EAAE,CAAC;AACd,OAAO,CAAC;AACR,KAAK,CAAC,CAAC;AACP,GAAG;AACH,CAAC,CAAC;;;;"}
|
|
@@ -3,19 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
require('
|
|
7
|
-
require('../../../../hooks/use-common-props/index.js');
|
|
8
|
-
require('../../../../hooks/use-global-config/index.js');
|
|
9
|
-
require('lodash/get');
|
|
10
|
-
require('@vueuse/core');
|
|
11
|
-
require('@vue/shared');
|
|
12
|
-
require('lodash/isEqualWith');
|
|
13
|
-
require('../../../../hooks/use-modal/index.js');
|
|
14
|
-
require('../../../../hooks/use-model-toggle/index.js');
|
|
15
|
-
require('../../../../hooks/use-delayed-toggle/index.js');
|
|
16
|
-
var index = require('../../../../hooks/use-namespace/index.js');
|
|
6
|
+
require('../../../../hooks/index.js');
|
|
17
7
|
var util = require('../util.js');
|
|
18
8
|
var tokens = require('../tokens.js');
|
|
9
|
+
var index = require('../../../../hooks/use-namespace/index.js');
|
|
19
10
|
|
|
20
11
|
function useStyles(props) {
|
|
21
12
|
const parent = vue.inject(tokens.TABLE_INJECTION_KEY);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles-helper.js","sources":["../../../../../../../packages/components/table/src/table-body/styles-helper.ts"],"sourcesContent":["import { inject } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport {\n getFixedColumnOffset,\n getFixedColumnsClass,\n ensurePosition,\n} from '../util'\nimport { TABLE_INJECTION_KEY } from '../tokens'\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type { TableBodyProps } from './defaults'\n\nfunction useStyles<T>(props: Partial<TableBodyProps<T>>) {\n const parent = inject(TABLE_INJECTION_KEY)\n const ns = useNamespace('table')\n\n const getRowStyle = (row: T, rowIndex: number) => {\n const rowStyle = parent?.props.rowStyle\n if (typeof rowStyle === 'function') {\n return rowStyle.call(null, {\n row,\n rowIndex,\n })\n }\n return rowStyle || null\n }\n\n const getRowClass = (row: T, rowIndex: number) => {\n const classes = [ns.e('row')]\n if (\n parent?.props.highlightCurrentRow &&\n row === props.store.states.currentRow.value\n ) {\n classes.push('current-row')\n }\n\n if (props.stripe && rowIndex % 2 === 1) {\n classes.push(ns.em('row', 'striped'))\n }\n const rowClassName = parent?.props.rowClassName\n if (typeof rowClassName === 'string') {\n classes.push(rowClassName)\n } else if (typeof rowClassName === 'function') {\n classes.push(\n rowClassName.call(null, {\n row,\n rowIndex,\n })\n )\n }\n\n if (props.store.states.expandRows.value.indexOf(row) > -1) {\n classes.push('expanded')\n }\n\n return classes\n }\n\n const getCellStyle = (\n rowIndex: number,\n columnIndex: number,\n row: T,\n column: TableColumnCtx<T>\n ) => {\n const cellStyle = parent?.props.cellStyle\n let cellStyles = cellStyle ?? {}\n if (typeof cellStyle === 'function') {\n cellStyles = cellStyle.call(null, {\n rowIndex,\n columnIndex,\n row,\n column,\n })\n }\n const fixedStyle = getFixedColumnOffset(\n columnIndex,\n props?.fixed,\n props.store\n )\n ensurePosition(fixedStyle, 'left')\n ensurePosition(fixedStyle, 'right')\n return Object.assign({}, cellStyles, fixedStyle)\n }\n\n const getCellClass = (\n rowIndex: number,\n columnIndex: number,\n row: T,\n column: TableColumnCtx<T>\n ) => {\n const fixedClasses = column.isSubColumn\n ? []\n : getFixedColumnsClass(ns.b(), columnIndex, props?.fixed, props.store)\n const classes = [column.id, column.align, column.className, ...fixedClasses]\n const cellClassName = parent?.props.cellClassName\n if (typeof cellClassName === 'string') {\n classes.push(cellClassName)\n } else if (typeof cellClassName === 'function') {\n classes.push(\n cellClassName.call(null, {\n rowIndex,\n columnIndex,\n row,\n column,\n })\n )\n }\n classes.push(ns.e('cell'))\n return classes.join(' ')\n }\n const getSpan = (\n row: T,\n column: TableColumnCtx<T>,\n rowIndex: number,\n columnIndex: number\n ) => {\n let rowspan = 1\n let colspan = 1\n const fn = parent?.props.spanMethod\n if (typeof fn === 'function') {\n const result = fn({\n row,\n column,\n rowIndex,\n columnIndex,\n })\n if (Array.isArray(result)) {\n rowspan = result[0]\n colspan = result[1]\n } else if (typeof result === 'object') {\n rowspan = result.rowspan\n colspan = result.colspan\n }\n }\n return { rowspan, colspan }\n }\n const getColspanRealWidth = (\n columns: TableColumnCtx<T>[],\n colspan: number,\n index: number\n ): number => {\n if (colspan < 1) {\n return columns[index].realWidth\n }\n const widthArr = columns\n .map(({ realWidth, width }) => realWidth || width)\n .slice(index, index + colspan)\n return Number(\n widthArr.reduce((acc, width) => Number(acc) + Number(width), -1)\n )\n }\n\n return {\n getRowStyle,\n getRowClass,\n getCellStyle,\n getCellClass,\n getSpan,\n getColspanRealWidth,\n }\n}\n\nexport default useStyles\n"],"names":["inject","TABLE_INJECTION_KEY","useNamespace","getFixedColumnOffset","ensurePosition","getFixedColumnsClass"],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles-helper.js","sources":["../../../../../../../packages/components/table/src/table-body/styles-helper.ts"],"sourcesContent":["import { inject } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport {\n getFixedColumnOffset,\n getFixedColumnsClass,\n ensurePosition,\n} from '../util'\nimport { TABLE_INJECTION_KEY } from '../tokens'\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type { TableBodyProps } from './defaults'\n\nfunction useStyles<T>(props: Partial<TableBodyProps<T>>) {\n const parent = inject(TABLE_INJECTION_KEY)\n const ns = useNamespace('table')\n\n const getRowStyle = (row: T, rowIndex: number) => {\n const rowStyle = parent?.props.rowStyle\n if (typeof rowStyle === 'function') {\n return rowStyle.call(null, {\n row,\n rowIndex,\n })\n }\n return rowStyle || null\n }\n\n const getRowClass = (row: T, rowIndex: number) => {\n const classes = [ns.e('row')]\n if (\n parent?.props.highlightCurrentRow &&\n row === props.store.states.currentRow.value\n ) {\n classes.push('current-row')\n }\n\n if (props.stripe && rowIndex % 2 === 1) {\n classes.push(ns.em('row', 'striped'))\n }\n const rowClassName = parent?.props.rowClassName\n if (typeof rowClassName === 'string') {\n classes.push(rowClassName)\n } else if (typeof rowClassName === 'function') {\n classes.push(\n rowClassName.call(null, {\n row,\n rowIndex,\n })\n )\n }\n\n if (props.store.states.expandRows.value.indexOf(row) > -1) {\n classes.push('expanded')\n }\n\n return classes\n }\n\n const getCellStyle = (\n rowIndex: number,\n columnIndex: number,\n row: T,\n column: TableColumnCtx<T>\n ) => {\n const cellStyle = parent?.props.cellStyle\n let cellStyles = cellStyle ?? {}\n if (typeof cellStyle === 'function') {\n cellStyles = cellStyle.call(null, {\n rowIndex,\n columnIndex,\n row,\n column,\n })\n }\n const fixedStyle = getFixedColumnOffset(\n columnIndex,\n props?.fixed,\n props.store\n )\n ensurePosition(fixedStyle, 'left')\n ensurePosition(fixedStyle, 'right')\n return Object.assign({}, cellStyles, fixedStyle)\n }\n\n const getCellClass = (\n rowIndex: number,\n columnIndex: number,\n row: T,\n column: TableColumnCtx<T>\n ) => {\n const fixedClasses = column.isSubColumn\n ? []\n : getFixedColumnsClass(ns.b(), columnIndex, props?.fixed, props.store)\n const classes = [column.id, column.align, column.className, ...fixedClasses]\n const cellClassName = parent?.props.cellClassName\n if (typeof cellClassName === 'string') {\n classes.push(cellClassName)\n } else if (typeof cellClassName === 'function') {\n classes.push(\n cellClassName.call(null, {\n rowIndex,\n columnIndex,\n row,\n column,\n })\n )\n }\n classes.push(ns.e('cell'))\n return classes.join(' ')\n }\n const getSpan = (\n row: T,\n column: TableColumnCtx<T>,\n rowIndex: number,\n columnIndex: number\n ) => {\n let rowspan = 1\n let colspan = 1\n const fn = parent?.props.spanMethod\n if (typeof fn === 'function') {\n const result = fn({\n row,\n column,\n rowIndex,\n columnIndex,\n })\n if (Array.isArray(result)) {\n rowspan = result[0]\n colspan = result[1]\n } else if (typeof result === 'object') {\n rowspan = result.rowspan\n colspan = result.colspan\n }\n }\n return { rowspan, colspan }\n }\n const getColspanRealWidth = (\n columns: TableColumnCtx<T>[],\n colspan: number,\n index: number\n ): number => {\n if (colspan < 1) {\n return columns[index].realWidth\n }\n const widthArr = columns\n .map(({ realWidth, width }) => realWidth || width)\n .slice(index, index + colspan)\n return Number(\n widthArr.reduce((acc, width) => Number(acc) + Number(width), -1)\n )\n }\n\n return {\n getRowStyle,\n getRowClass,\n getCellStyle,\n getCellClass,\n getSpan,\n getColspanRealWidth,\n }\n}\n\nexport default useStyles\n"],"names":["inject","TABLE_INJECTION_KEY","useNamespace","getFixedColumnOffset","ensurePosition","getFixedColumnsClass"],"mappings":";;;;;;;;;;AAQA,SAAS,SAAS,CAAC,KAAK,EAAE;AAC1B,EAAE,MAAM,MAAM,GAAGA,UAAM,CAACC,0BAAmB,CAAC,CAAC;AAC7C,EAAE,MAAM,EAAE,GAAGC,kBAAY,CAAC,OAAO,CAAC,CAAC;AACnC,EAAE,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,QAAQ,KAAK;AACzC,IAAI,MAAM,QAAQ,GAAG,MAAM,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;AACrE,IAAI,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;AACxC,MAAM,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE;AACjC,QAAQ,GAAG;AACX,QAAQ,QAAQ;AAChB,OAAO,CAAC,CAA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vue = require('vue');
|
|
6
6
|
var error = require('../../../../utils/error.js');
|
|
7
|
-
require('
|
|
8
|
-
require('../../../../hooks/use-common-props/index.js');
|
|
9
|
-
require('../../../../hooks/use-global-config/index.js');
|
|
10
|
-
require('lodash/get');
|
|
11
|
-
require('@vueuse/core');
|
|
12
|
-
require('@vue/shared');
|
|
13
|
-
require('lodash/isEqualWith');
|
|
14
|
-
require('../../../../hooks/use-modal/index.js');
|
|
15
|
-
require('../../../../hooks/use-model-toggle/index.js');
|
|
16
|
-
require('../../../../hooks/use-delayed-toggle/index.js');
|
|
17
|
-
var index = require('../../../../hooks/use-namespace/index.js');
|
|
7
|
+
require('../../../../hooks/index.js');
|
|
18
8
|
var config = require('../config.js');
|
|
19
9
|
var util = require('../util.js');
|
|
10
|
+
var index = require('../../../../hooks/use-namespace/index.js');
|
|
20
11
|
|
|
21
12
|
function useRender(props, slots, owner) {
|
|
22
13
|
const instance = vue.getCurrentInstance();
|