@element-plus/nightly 0.0.20250518 → 0.0.20250520
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/README.md +6 -0
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +41 -23
- package/dist/index.full.min.js +10 -10
- 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 +41 -23
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +119 -24
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +24 -119
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.mjs +91 -36
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert.vue.d.ts +3 -3
- package/es/components/alert/src/alert2.mjs +36 -91
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/avatar/index.mjs +2 -2
- package/es/components/avatar/src/avatar.mjs +65 -31
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/avatar/src/avatar2.mjs +31 -65
- package/es/components/avatar/src/avatar2.mjs.map +1 -1
- package/es/components/badge/src/badge.d.ts +1 -1
- package/es/components/badge/src/badge.vue.d.ts +3 -3
- package/es/components/button/index.mjs +1 -1
- package/es/components/button/src/button-group.d.ts +1 -1
- package/es/components/button/src/button-group.mjs +6 -29
- package/es/components/button/src/button-group.mjs.map +1 -1
- package/es/components/button/src/button-group.vue.d.ts +3 -3
- package/es/components/button/src/button-group2.mjs +29 -6
- package/es/components/button/src/button-group2.mjs.map +1 -1
- package/es/components/button/src/button.d.ts +1 -1
- package/es/components/button/src/button.vue.d.ts +3 -3
- package/es/components/calendar/src/calendar2.mjs +1 -1
- package/es/components/calendar/src/date-table.mjs +89 -31
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/date-table2.mjs +31 -89
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/calendar/src/use-date-table.mjs +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +42 -22
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +22 -42
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel.mjs +61 -208
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +208 -61
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.d.ts +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +3 -3
- package/es/components/check-tag/src/check-tag.d.ts +1 -1
- package/es/components/check-tag/src/check-tag.vue.d.ts +3 -3
- package/es/components/config-provider/src/config-provider-props.d.ts +7 -0
- package/es/components/config-provider/src/config-provider-props.mjs +3 -0
- package/es/components/config-provider/src/config-provider-props.mjs.map +1 -1
- package/es/components/config-provider/src/config-provider.d.ts +12 -0
- package/es/components/dropdown/src/dropdown.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +2 -2
- package/es/components/index.mjs +10 -10
- package/es/components/input/src/input2.mjs +1 -1
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag.d.ts +1 -1
- package/es/components/input-tag/src/input-tag.vue.d.ts +3 -3
- package/es/components/link/src/link.d.ts +6 -2
- package/es/components/link/src/link.mjs +2 -2
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link.vue.d.ts +5 -5
- package/es/components/link/src/link2.mjs +14 -8
- package/es/components/link/src/link2.mjs.map +1 -1
- package/es/components/message/src/message.d.ts +2 -2
- package/es/components/message/src/message.mjs +7 -1
- package/es/components/message/src/message.mjs.map +1 -1
- package/es/components/message/src/message.vue.d.ts +3 -3
- package/es/components/message-box/src/index.vue.d.ts +1 -1
- package/es/components/message-box/src/message-box.type.d.ts +1 -1
- package/es/components/notification/src/notification.d.ts +3 -2
- package/es/components/notification/src/notification.mjs +1 -0
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification.vue.d.ts +3 -3
- package/es/components/page-header/index.mjs +2 -2
- package/es/components/page-header/src/page-header.mjs +16 -97
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +97 -16
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.mjs +58 -7
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +7 -58
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +6 -6
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +1 -1
- package/es/components/radio/src/radio-group.mjs +1 -1
- package/es/components/radio/src/radio.mjs +32 -74
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio2.mjs +74 -32
- package/es/components/radio/src/radio2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.d.ts +2 -1
- package/es/components/result/src/result.mjs +62 -28
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result.vue.d.ts +3 -3
- package/es/components/result/src/result2.mjs +30 -62
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/row/index.mjs +2 -2
- package/es/components/row/src/row.mjs +28 -44
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/row/src/row2.mjs +44 -28
- package/es/components/row/src/row2.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.mjs +64 -10
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar2.mjs +10 -64
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
- package/es/components/select/index.mjs +2 -2
- package/es/components/select/src/select.d.ts +1 -1
- package/es/components/select/src/select.mjs +130 -428
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +3 -3
- package/es/components/select/src/select2.mjs +428 -130
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select-v2/src/defaults.d.ts +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +3 -3
- package/es/components/select-v2/src/useSelect.mjs +2 -2
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/slider/src/button.mjs +91 -19
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +19 -91
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +1 -1
- package/es/components/table/src/store/watcher.mjs +6 -6
- package/es/components/table/src/store/watcher.mjs.map +1 -1
- package/es/components/tag/src/tag.d.ts +1 -1
- package/es/components/tag/src/tag.vue.d.ts +3 -3
- package/es/components/text/src/text.d.ts +1 -1
- package/es/components/text/src/text.vue.d.ts +3 -3
- package/es/components/timeline/src/timeline-item.d.ts +1 -1
- package/es/components/timeline/src/timeline-item.vue.d.ts +3 -3
- package/es/components/tooltip-v2/index.mjs +2 -2
- package/es/components/tooltip-v2/src/arrow.mjs +21 -37
- package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
- package/es/components/tooltip-v2/src/arrow2.mjs +37 -21
- package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +2 -2
- package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
- package/es/components/tooltip-v2/src/trigger.mjs +12 -89
- package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
- package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
- package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
- package/es/index.d.ts +104 -78
- package/es/index.mjs +10 -10
- package/es/utils/vue/icon.d.ts +1 -0
- package/es/utils/vue/icon.mjs +1 -0
- package/es/utils/vue/icon.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/index.js +2 -2
- package/lib/components/affix/src/affix.js +119 -25
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +25 -119
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.js +90 -37
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +3 -3
- package/lib/components/alert/src/alert2.js +37 -90
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/avatar/index.js +2 -2
- package/lib/components/avatar/src/avatar.js +65 -32
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/avatar/src/avatar2.js +32 -65
- package/lib/components/avatar/src/avatar2.js.map +1 -1
- package/lib/components/badge/src/badge.d.ts +1 -1
- package/lib/components/badge/src/badge.vue.d.ts +3 -3
- package/lib/components/button/index.js +1 -1
- package/lib/components/button/src/button-group.d.ts +1 -1
- package/lib/components/button/src/button-group.js +6 -29
- package/lib/components/button/src/button-group.js.map +1 -1
- package/lib/components/button/src/button-group.vue.d.ts +3 -3
- package/lib/components/button/src/button-group2.js +29 -6
- package/lib/components/button/src/button-group2.js.map +1 -1
- package/lib/components/button/src/button.d.ts +1 -1
- package/lib/components/button/src/button.vue.d.ts +3 -3
- package/lib/components/calendar/src/calendar2.js +1 -1
- package/lib/components/calendar/src/date-table.js +89 -35
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/date-table2.js +35 -89
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/calendar/src/use-date-table.js +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +42 -22
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +22 -42
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel.js +62 -208
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +208 -62
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/cascader/src/cascader.d.ts +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +3 -3
- package/lib/components/check-tag/src/check-tag.d.ts +1 -1
- package/lib/components/check-tag/src/check-tag.vue.d.ts +3 -3
- package/lib/components/config-provider/src/config-provider-props.d.ts +7 -0
- package/lib/components/config-provider/src/config-provider-props.js +3 -0
- package/lib/components/config-provider/src/config-provider-props.js.map +1 -1
- package/lib/components/config-provider/src/config-provider.d.ts +12 -0
- package/lib/components/dropdown/src/dropdown.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +2 -2
- package/lib/components/index.js +10 -10
- package/lib/components/input/src/input2.js +1 -1
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-tag/src/input-tag.d.ts +1 -1
- package/lib/components/input-tag/src/input-tag.vue.d.ts +3 -3
- package/lib/components/link/src/link.d.ts +6 -2
- package/lib/components/link/src/link.js +2 -2
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link.vue.d.ts +5 -5
- package/lib/components/link/src/link2.js +14 -8
- package/lib/components/link/src/link2.js.map +1 -1
- package/lib/components/message/src/message.d.ts +2 -2
- package/lib/components/message/src/message.js +7 -1
- package/lib/components/message/src/message.js.map +1 -1
- package/lib/components/message/src/message.vue.d.ts +3 -3
- package/lib/components/message-box/src/index.vue.d.ts +1 -1
- package/lib/components/message-box/src/message-box.type.d.ts +1 -1
- package/lib/components/notification/src/notification.d.ts +3 -2
- package/lib/components/notification/src/notification.js +1 -0
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +3 -3
- package/lib/components/page-header/index.js +2 -2
- package/lib/components/page-header/src/page-header.js +17 -97
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +97 -17
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.js +58 -7
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +7 -58
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +6 -6
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +1 -1
- package/lib/components/radio/src/radio-group.js +1 -1
- package/lib/components/radio/src/radio.js +33 -73
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio2.js +73 -33
- package/lib/components/radio/src/radio2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.d.ts +2 -1
- package/lib/components/result/src/result.js +62 -30
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result.vue.d.ts +3 -3
- package/lib/components/result/src/result2.js +32 -62
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/row/index.js +2 -2
- package/lib/components/row/src/row.js +30 -44
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/row/src/row2.js +44 -30
- package/lib/components/row/src/row2.js.map +1 -1
- package/lib/components/scrollbar/src/bar.js +64 -10
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar2.js +10 -64
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +1 -1
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/src/select.d.ts +1 -1
- package/lib/components/select/src/select.js +131 -428
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +3 -3
- package/lib/components/select/src/select2.js +428 -131
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select-v2/src/defaults.d.ts +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +3 -3
- package/lib/components/select-v2/src/useSelect.js +2 -2
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/slider/src/button.js +91 -20
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +20 -91
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider2.js +1 -1
- package/lib/components/table/src/store/watcher.js +6 -6
- package/lib/components/table/src/store/watcher.js.map +1 -1
- package/lib/components/tag/src/tag.d.ts +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +3 -3
- package/lib/components/text/src/text.d.ts +1 -1
- package/lib/components/text/src/text.vue.d.ts +3 -3
- package/lib/components/timeline/src/timeline-item.d.ts +1 -1
- package/lib/components/timeline/src/timeline-item.vue.d.ts +3 -3
- package/lib/components/tooltip-v2/index.js +2 -2
- package/lib/components/tooltip-v2/src/arrow.js +22 -37
- package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
- package/lib/components/tooltip-v2/src/arrow2.js +37 -22
- package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +2 -2
- package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
- package/lib/components/tooltip-v2/src/trigger.js +12 -89
- package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
- package/lib/components/tooltip-v2/src/trigger2.js +89 -12
- package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
- package/lib/index.d.ts +104 -78
- package/lib/index.js +10 -10
- package/lib/utils/vue/icon.d.ts +1 -0
- package/lib/utils/vue/icon.js +1 -0
- package/lib/utils/vue/icon.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-alert.css +1 -1
- package/theme-chalk/el-message-box.css +1 -1
- package/theme-chalk/el-message.css +1 -1
- package/theme-chalk/el-notification.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/alert.scss +1 -1
- package/theme-chalk/src/message-box.scss +1 -1
- package/theme-chalk/src/message.scss +1 -1
- package/theme-chalk/src/notification.scss +1 -1
- package/web-types.json +1 -1
@@ -2,69 +2,215 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var
|
5
|
+
var vue = require('vue');
|
6
|
+
var index$2 = require('../../icon/index.js');
|
7
|
+
var iconsVue = require('@element-plus/icons-vue');
|
8
|
+
var carousel = require('./carousel.js');
|
9
|
+
var useCarousel = require('./use-carousel.js');
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
11
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
12
|
+
var index$1 = require('../../../hooks/use-locale/index.js');
|
7
13
|
|
8
|
-
const
|
9
|
-
|
10
|
-
|
11
|
-
default: 0
|
12
|
-
},
|
13
|
-
height: {
|
14
|
-
type: String,
|
15
|
-
default: ""
|
16
|
-
},
|
17
|
-
trigger: {
|
18
|
-
type: String,
|
19
|
-
values: ["hover", "click"],
|
20
|
-
default: "hover"
|
21
|
-
},
|
22
|
-
autoplay: {
|
23
|
-
type: Boolean,
|
24
|
-
default: true
|
25
|
-
},
|
26
|
-
interval: {
|
27
|
-
type: Number,
|
28
|
-
default: 3e3
|
29
|
-
},
|
30
|
-
indicatorPosition: {
|
31
|
-
type: String,
|
32
|
-
values: ["", "none", "outside"],
|
33
|
-
default: ""
|
34
|
-
},
|
35
|
-
arrow: {
|
36
|
-
type: String,
|
37
|
-
values: ["always", "hover", "never"],
|
38
|
-
default: "hover"
|
39
|
-
},
|
40
|
-
type: {
|
41
|
-
type: String,
|
42
|
-
values: ["", "card"],
|
43
|
-
default: ""
|
44
|
-
},
|
45
|
-
cardScale: {
|
46
|
-
type: Number,
|
47
|
-
default: 0.83
|
48
|
-
},
|
49
|
-
loop: {
|
50
|
-
type: Boolean,
|
51
|
-
default: true
|
52
|
-
},
|
53
|
-
direction: {
|
54
|
-
type: String,
|
55
|
-
values: ["horizontal", "vertical"],
|
56
|
-
default: "horizontal"
|
57
|
-
},
|
58
|
-
pauseOnHover: {
|
59
|
-
type: Boolean,
|
60
|
-
default: true
|
61
|
-
},
|
62
|
-
motionBlur: Boolean
|
14
|
+
const COMPONENT_NAME = "ElCarousel";
|
15
|
+
const __default__ = vue.defineComponent({
|
16
|
+
name: COMPONENT_NAME
|
63
17
|
});
|
64
|
-
const
|
65
|
-
|
66
|
-
|
18
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
19
|
+
...__default__,
|
20
|
+
props: carousel.carouselProps,
|
21
|
+
emits: carousel.carouselEmits,
|
22
|
+
setup(__props, { expose, emit }) {
|
23
|
+
const props = __props;
|
24
|
+
const {
|
25
|
+
root,
|
26
|
+
activeIndex,
|
27
|
+
arrowDisplay,
|
28
|
+
hasLabel,
|
29
|
+
hover,
|
30
|
+
isCardType,
|
31
|
+
items,
|
32
|
+
isVertical,
|
33
|
+
containerStyle,
|
34
|
+
handleButtonEnter,
|
35
|
+
handleButtonLeave,
|
36
|
+
handleIndicatorClick,
|
37
|
+
handleMouseEnter,
|
38
|
+
handleMouseLeave,
|
39
|
+
setActiveItem,
|
40
|
+
prev,
|
41
|
+
next,
|
42
|
+
PlaceholderItem,
|
43
|
+
isTwoLengthShow,
|
44
|
+
throttledArrowClick,
|
45
|
+
throttledIndicatorHover
|
46
|
+
} = useCarousel.useCarousel(props, emit, COMPONENT_NAME);
|
47
|
+
const ns = index.useNamespace("carousel");
|
48
|
+
const { t } = index$1.useLocale();
|
49
|
+
const carouselClasses = vue.computed(() => {
|
50
|
+
const classes = [ns.b(), ns.m(props.direction)];
|
51
|
+
if (vue.unref(isCardType)) {
|
52
|
+
classes.push(ns.m("card"));
|
53
|
+
}
|
54
|
+
return classes;
|
55
|
+
});
|
56
|
+
const indicatorsClasses = vue.computed(() => {
|
57
|
+
const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
|
58
|
+
if (vue.unref(hasLabel)) {
|
59
|
+
classes.push(ns.em("indicators", "labels"));
|
60
|
+
}
|
61
|
+
if (props.indicatorPosition === "outside") {
|
62
|
+
classes.push(ns.em("indicators", "outside"));
|
63
|
+
}
|
64
|
+
if (vue.unref(isVertical)) {
|
65
|
+
classes.push(ns.em("indicators", "right"));
|
66
|
+
}
|
67
|
+
return classes;
|
68
|
+
});
|
69
|
+
function handleTransitionStart(e) {
|
70
|
+
if (!props.motionBlur)
|
71
|
+
return;
|
72
|
+
const kls = vue.unref(isVertical) ? `${ns.namespace.value}-transitioning-vertical` : `${ns.namespace.value}-transitioning`;
|
73
|
+
e.currentTarget.classList.add(kls);
|
74
|
+
}
|
75
|
+
function handleTransitionEnd(e) {
|
76
|
+
if (!props.motionBlur)
|
77
|
+
return;
|
78
|
+
const kls = vue.unref(isVertical) ? `${ns.namespace.value}-transitioning-vertical` : `${ns.namespace.value}-transitioning`;
|
79
|
+
e.currentTarget.classList.remove(kls);
|
80
|
+
}
|
81
|
+
expose({
|
82
|
+
activeIndex,
|
83
|
+
setActiveItem,
|
84
|
+
prev,
|
85
|
+
next
|
86
|
+
});
|
87
|
+
return (_ctx, _cache) => {
|
88
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
89
|
+
ref_key: "root",
|
90
|
+
ref: root,
|
91
|
+
class: vue.normalizeClass(vue.unref(carouselClasses)),
|
92
|
+
onMouseenter: vue.withModifiers(vue.unref(handleMouseEnter), ["stop"]),
|
93
|
+
onMouseleave: vue.withModifiers(vue.unref(handleMouseLeave), ["stop"])
|
94
|
+
}, [
|
95
|
+
vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
96
|
+
key: 0,
|
97
|
+
name: "carousel-arrow-left",
|
98
|
+
persisted: ""
|
99
|
+
}, {
|
100
|
+
default: vue.withCtx(() => [
|
101
|
+
vue.withDirectives(vue.createElementVNode("button", {
|
102
|
+
type: "button",
|
103
|
+
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "left")]),
|
104
|
+
"aria-label": vue.unref(t)("el.carousel.leftArrow"),
|
105
|
+
onMouseenter: ($event) => vue.unref(handleButtonEnter)("left"),
|
106
|
+
onMouseleave: vue.unref(handleButtonLeave),
|
107
|
+
onClick: vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) - 1), ["stop"])
|
108
|
+
}, [
|
109
|
+
vue.createVNode(vue.unref(index$2.ElIcon), null, {
|
110
|
+
default: vue.withCtx(() => [
|
111
|
+
vue.createVNode(vue.unref(iconsVue.ArrowLeft))
|
112
|
+
]),
|
113
|
+
_: 1
|
114
|
+
})
|
115
|
+
], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
|
116
|
+
[
|
117
|
+
vue.vShow,
|
118
|
+
(_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) > 0)
|
119
|
+
]
|
120
|
+
])
|
121
|
+
]),
|
122
|
+
_: 1
|
123
|
+
})) : vue.createCommentVNode("v-if", true),
|
124
|
+
vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
125
|
+
key: 1,
|
126
|
+
name: "carousel-arrow-right",
|
127
|
+
persisted: ""
|
128
|
+
}, {
|
129
|
+
default: vue.withCtx(() => [
|
130
|
+
vue.withDirectives(vue.createElementVNode("button", {
|
131
|
+
type: "button",
|
132
|
+
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "right")]),
|
133
|
+
"aria-label": vue.unref(t)("el.carousel.rightArrow"),
|
134
|
+
onMouseenter: ($event) => vue.unref(handleButtonEnter)("right"),
|
135
|
+
onMouseleave: vue.unref(handleButtonLeave),
|
136
|
+
onClick: vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) + 1), ["stop"])
|
137
|
+
}, [
|
138
|
+
vue.createVNode(vue.unref(index$2.ElIcon), null, {
|
139
|
+
default: vue.withCtx(() => [
|
140
|
+
vue.createVNode(vue.unref(iconsVue.ArrowRight))
|
141
|
+
]),
|
142
|
+
_: 1
|
143
|
+
})
|
144
|
+
], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
|
145
|
+
[
|
146
|
+
vue.vShow,
|
147
|
+
(_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) < vue.unref(items).length - 1)
|
148
|
+
]
|
149
|
+
])
|
150
|
+
]),
|
151
|
+
_: 1
|
152
|
+
})) : vue.createCommentVNode("v-if", true),
|
153
|
+
vue.createElementVNode("div", {
|
154
|
+
class: vue.normalizeClass(vue.unref(ns).e("container")),
|
155
|
+
style: vue.normalizeStyle(vue.unref(containerStyle)),
|
156
|
+
onTransitionstart: handleTransitionStart,
|
157
|
+
onTransitionend: handleTransitionEnd
|
158
|
+
}, [
|
159
|
+
vue.createVNode(vue.unref(PlaceholderItem)),
|
160
|
+
vue.renderSlot(_ctx.$slots, "default")
|
161
|
+
], 38),
|
162
|
+
_ctx.indicatorPosition !== "none" ? (vue.openBlock(), vue.createElementBlock("ul", {
|
163
|
+
key: 2,
|
164
|
+
class: vue.normalizeClass(vue.unref(indicatorsClasses))
|
165
|
+
}, [
|
166
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(items), (item, index) => {
|
167
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", {
|
168
|
+
key: index,
|
169
|
+
class: vue.normalizeClass([
|
170
|
+
vue.unref(ns).e("indicator"),
|
171
|
+
vue.unref(ns).em("indicator", _ctx.direction),
|
172
|
+
vue.unref(ns).is("active", index === vue.unref(activeIndex))
|
173
|
+
]),
|
174
|
+
onMouseenter: ($event) => vue.unref(throttledIndicatorHover)(index),
|
175
|
+
onClick: vue.withModifiers(($event) => vue.unref(handleIndicatorClick)(index), ["stop"])
|
176
|
+
}, [
|
177
|
+
vue.createElementVNode("button", {
|
178
|
+
class: vue.normalizeClass(vue.unref(ns).e("button")),
|
179
|
+
"aria-label": vue.unref(t)("el.carousel.indicator", { index: index + 1 })
|
180
|
+
}, [
|
181
|
+
vue.unref(hasLabel) ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(item.props.label), 1)) : vue.createCommentVNode("v-if", true)
|
182
|
+
], 10, ["aria-label"])
|
183
|
+
], 42, ["onMouseenter", "onClick"])), [
|
184
|
+
[vue.vShow, vue.unref(isTwoLengthShow)(index)]
|
185
|
+
]);
|
186
|
+
}), 128))
|
187
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
188
|
+
props.motionBlur ? (vue.openBlock(), vue.createElementBlock("svg", {
|
189
|
+
key: 3,
|
190
|
+
xmlns: "http://www.w3.org/2000/svg",
|
191
|
+
version: "1.1",
|
192
|
+
style: { "display": "none" }
|
193
|
+
}, [
|
194
|
+
vue.createElementVNode("defs", null, [
|
195
|
+
vue.createElementVNode("filter", { id: "elCarouselHorizontal" }, [
|
196
|
+
vue.createElementVNode("feGaussianBlur", {
|
197
|
+
in: "SourceGraphic",
|
198
|
+
stdDeviation: "12,0"
|
199
|
+
})
|
200
|
+
]),
|
201
|
+
vue.createElementVNode("filter", { id: "elCarouselVertical" }, [
|
202
|
+
vue.createElementVNode("feGaussianBlur", {
|
203
|
+
in: "SourceGraphic",
|
204
|
+
stdDeviation: "0,10"
|
205
|
+
})
|
206
|
+
])
|
207
|
+
])
|
208
|
+
])) : vue.createCommentVNode("v-if", true)
|
209
|
+
], 42, ["onMouseenter", "onMouseleave"]);
|
210
|
+
};
|
211
|
+
}
|
212
|
+
});
|
213
|
+
var Carousel = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "carousel.vue"]]);
|
67
214
|
|
68
|
-
exports
|
69
|
-
exports.carouselProps = carouselProps;
|
215
|
+
exports["default"] = Carousel;
|
70
216
|
//# sourceMappingURL=carousel2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"carousel2.js","sources":["../../../../../../packages/components/carousel/src/carousel.
|
1
|
+
{"version":3,"file":"carousel2.js","sources":["../../../../../../packages/components/carousel/src/carousel.vue"],"sourcesContent":["<template>\n <div\n ref=\"root\"\n :class=\"carouselClasses\"\n @mouseenter.stop=\"handleMouseEnter\"\n @mouseleave.stop=\"handleMouseLeave\"\n >\n <transition v-if=\"arrowDisplay\" name=\"carousel-arrow-left\">\n <button\n v-show=\"\n (arrow === 'always' || hover) && (props.loop || activeIndex > 0)\n \"\n type=\"button\"\n :class=\"[ns.e('arrow'), ns.em('arrow', 'left')]\"\n :aria-label=\"t('el.carousel.leftArrow')\"\n @mouseenter=\"handleButtonEnter('left')\"\n @mouseleave=\"handleButtonLeave\"\n @click.stop=\"throttledArrowClick(activeIndex - 1)\"\n >\n <ElIcon>\n <ArrowLeft />\n </ElIcon>\n </button>\n </transition>\n <transition v-if=\"arrowDisplay\" name=\"carousel-arrow-right\">\n <button\n v-show=\"\n (arrow === 'always' || hover) &&\n (props.loop || activeIndex < items.length - 1)\n \"\n type=\"button\"\n :class=\"[ns.e('arrow'), ns.em('arrow', 'right')]\"\n :aria-label=\"t('el.carousel.rightArrow')\"\n @mouseenter=\"handleButtonEnter('right')\"\n @mouseleave=\"handleButtonLeave\"\n @click.stop=\"throttledArrowClick(activeIndex + 1)\"\n >\n <ElIcon>\n <ArrowRight />\n </ElIcon>\n </button>\n </transition>\n <div\n :class=\"ns.e('container')\"\n :style=\"containerStyle\"\n @transitionstart=\"handleTransitionStart\"\n @transitionend=\"handleTransitionEnd\"\n >\n <PlaceholderItem />\n <slot />\n </div>\n <ul v-if=\"indicatorPosition !== 'none'\" :class=\"indicatorsClasses\">\n <li\n v-for=\"(item, index) in items\"\n v-show=\"isTwoLengthShow(index)\"\n :key=\"index\"\n :class=\"[\n ns.e('indicator'),\n ns.em('indicator', direction),\n ns.is('active', index === activeIndex),\n ]\"\n @mouseenter=\"throttledIndicatorHover(index)\"\n @click.stop=\"handleIndicatorClick(index)\"\n >\n <button\n :class=\"ns.e('button')\"\n :aria-label=\"t('el.carousel.indicator', { index: index + 1 })\"\n >\n <span v-if=\"hasLabel\">{{ item.props.label }}</span>\n </button>\n </li>\n </ul>\n <svg\n v-if=\"props.motionBlur\"\n xmlns=\"http://www.w3.org/2000/svg\"\n version=\"1.1\"\n style=\"display: none\"\n >\n <defs>\n <filter id=\"elCarouselHorizontal\">\n <feGaussianBlur in=\"SourceGraphic\" stdDeviation=\"12,0\" />\n </filter>\n <filter id=\"elCarouselVertical\">\n <feGaussianBlur in=\"SourceGraphic\" stdDeviation=\"0,10\" />\n </filter>\n </defs>\n </svg>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, unref } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ArrowLeft, ArrowRight } from '@element-plus/icons-vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { carouselEmits, carouselProps } from './carousel'\nimport { useCarousel } from './use-carousel'\n\nconst COMPONENT_NAME = 'ElCarousel'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(carouselProps)\nconst emit = defineEmits(carouselEmits)\nconst {\n root,\n activeIndex,\n arrowDisplay,\n hasLabel,\n hover,\n isCardType,\n items,\n isVertical,\n containerStyle,\n handleButtonEnter,\n handleButtonLeave,\n handleIndicatorClick,\n handleMouseEnter,\n handleMouseLeave,\n setActiveItem,\n prev,\n next,\n PlaceholderItem,\n isTwoLengthShow,\n throttledArrowClick,\n throttledIndicatorHover,\n} = useCarousel(props, emit, COMPONENT_NAME)\nconst ns = useNamespace('carousel')\n\nconst { t } = useLocale()\n\nconst carouselClasses = computed(() => {\n const classes = [ns.b(), ns.m(props.direction)]\n if (unref(isCardType)) {\n classes.push(ns.m('card'))\n }\n return classes\n})\n\nconst indicatorsClasses = computed(() => {\n const classes = [ns.e('indicators'), ns.em('indicators', props.direction)]\n if (unref(hasLabel)) {\n classes.push(ns.em('indicators', 'labels'))\n }\n if (props.indicatorPosition === 'outside') {\n classes.push(ns.em('indicators', 'outside'))\n }\n if (unref(isVertical)) {\n classes.push(ns.em('indicators', 'right'))\n }\n return classes\n})\n\nfunction handleTransitionStart(e: TransitionEvent) {\n if (!props.motionBlur) return\n\n const kls = unref(isVertical)\n ? `${ns.namespace.value}-transitioning-vertical`\n : `${ns.namespace.value}-transitioning`\n ;(e.currentTarget as HTMLDivElement).classList.add(kls)\n}\n\nfunction handleTransitionEnd(e: TransitionEvent) {\n if (!props.motionBlur) return\n\n const kls = unref(isVertical)\n ? `${ns.namespace.value}-transitioning-vertical`\n : `${ns.namespace.value}-transitioning`\n ;(e.currentTarget as HTMLDivElement).classList.remove(kls)\n}\n\ndefineExpose({\n /** @description active slide index */\n activeIndex,\n /** @description manually switch slide, index of the slide to be switched to, starting from 0; or the `name` of corresponding `el-carousel-item` */\n setActiveItem,\n /** @description switch to the previous slide */\n prev,\n /** @description switch to the next slide */\n next,\n})\n</script>\n"],"names":["useCarousel","useNamespace","useLocale","computed","unref","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;;;;;uCAmGc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AAIA,IAAM,MAAA;AAAA,MACJ,IAAA;AAAA,MACA,WAAA;AAAA,MACA,YAAA;AAAA,MACA,QAAA;AAAA,MACA,KAAA;AAAA,MACA,UAAA;AAAA,MACA,KAAA;AAAA,MACA,UAAA;AAAA,MACA,cAAA;AAAA,MACA,iBAAA;AAAA,MACA,iBAAA;AAAA,MACA,oBAAA;AAAA,MACA,gBAAA;AAAA,MACA,gBAAA;AAAA,MACA,aAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAA;AAAA,MACA,eAAA;AAAA,MACA,eAAA;AAAA,MACA,mBAAA;AAAA,MACA,uBAAA;AAAA,KACE,GAAAA,uBAAA,CAAY,KAAO,EAAA,IAAA,EAAM,cAAc,CAAA,CAAA;AAC3C,IAAM,MAAA,EAAA,GAAKC,mBAAa,UAAU,CAAA,CAAA;AAElC,IAAM,MAAA,EAAE,CAAE,EAAA,GAAIC,iBAAU,EAAA,CAAA;AAExB,IAAM,MAAA,eAAA,GAAkBC,aAAS,MAAM;AACrC,MAAM,MAAA,OAAA,GAAU,CAAC,EAAG,CAAA,CAAA,IAAK,EAAG,CAAA,CAAA,CAAE,KAAM,CAAA,SAAS,CAAC,CAAA,CAAA;AAC9C,MAAI,IAAAC,SAAA,CAAM,UAAU,CAAG,EAAA;AACrB,QAAA,OAAA,CAAQ,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,MAAM,CAAC,CAAA,CAAA;AAAA,OAC3B;AACA,MAAO,OAAA,OAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAM,MAAA,iBAAA,GAAoBD,aAAS,MAAM;AACvC,MAAM,MAAA,OAAA,GAAU,CAAC,EAAA,CAAG,CAAE,CAAA,YAAY,CAAG,EAAA,EAAA,CAAG,EAAG,CAAA,YAAA,EAAc,KAAM,CAAA,SAAS,CAAC,CAAA,CAAA;AACzE,MAAI,IAAAC,SAAA,CAAM,QAAQ,CAAG,EAAA;AACnB,QAAA,OAAA,CAAQ,IAAK,CAAA,EAAA,CAAG,EAAG,CAAA,YAAA,EAAc,QAAQ,CAAC,CAAA,CAAA;AAAA,OAC5C;AACA,MAAI,IAAA,KAAA,CAAM,sBAAsB,SAAW,EAAA;AACzC,QAAA,OAAA,CAAQ,IAAK,CAAA,EAAA,CAAG,EAAG,CAAA,YAAA,EAAc,SAAS,CAAC,CAAA,CAAA;AAAA,OAC7C;AACA,MAAI,IAAAA,SAAA,CAAM,UAAU,CAAG,EAAA;AACrB,QAAA,OAAA,CAAQ,IAAK,CAAA,EAAA,CAAG,EAAG,CAAA,YAAA,EAAc,OAAO,CAAC,CAAA,CAAA;AAAA,OAC3C;AACA,MAAO,OAAA,OAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAA,SAAS,sBAAsB,CAAoB,EAAA;AACjD,MAAI,IAAA,CAAC,MAAM,UAAY;AAEvB,QAAA,OAAY;AAGX,MAAC,MAAE,GAAA,GAAAA,SAA2C,CAAA,UAAA,CAAA,GAAO,CAAA,EAAA,EAAA,CAAA,SAAA,CAAA,KAAA,CAAA,uBAAA,CAAA,GAAA,CAAA,EAAA,EAAA,CAAA,SAAA,CAAA,KAAA,CAAA,cAAA,CAAA,CAAA;AAAA,MACxD,CAAA,CAAA,aAAA,CAAA,SAAA,CAAA,GAAA,CAAA,GAAA,CAAA,CAAA;AAEA,KAAA;AACE,IAAI,4BAAmB,CAAA,CAAA,EAAA;AAEvB,MAAA,IAAA,CAAA,KAAY,CAAA,UAAgB;AAG3B,QAAG,OAAA;AAAqD,MAC3D,MAAA,GAAA,GAAAA,SAAA,CAAA,UAAA,CAAA,GAAA,CAAA,EAAA,EAAA,CAAA,SAAA,CAAA,KAAA,CAAA,uBAAA,CAAA,GAAA,CAAA,EAAA,EAAA,CAAA,SAAA,CAAA,KAAA,CAAA,cAAA,CAAA,CAAA;AAEA,MAAa,CAAA,CAAA,aAAA,CAAA,SAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA;AAAA,KAAA;AAAA,IAEX,MAAA,CAAA;AAAA,MAAA,WAAA;AAAA,MAEA,aAAA;AAAA,MAAA,IAAA;AAAA,MAEA,IAAA;AAAA,KAAA,CAAA,CAAA;AAAA,IAEA,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MACD,OAAAC,aAAA,EAAA,EAAAC,sBAAA,CAAA,KAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -43,7 +43,7 @@ export declare const cascaderProps: {
|
|
43
43
|
teleported: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
44
44
|
tagType: {
|
45
45
|
default: string;
|
46
|
-
type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "
|
46
|
+
type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown>>;
|
47
47
|
required: false;
|
48
48
|
validator: ((val: unknown) => boolean) | undefined;
|
49
49
|
__epPropKey: true;
|
@@ -51,7 +51,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
51
51
|
teleported: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
52
52
|
tagType: {
|
53
53
|
default: string;
|
54
|
-
type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "
|
54
|
+
type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown>>;
|
55
55
|
required: false;
|
56
56
|
validator: ((val: unknown) => boolean) | undefined;
|
57
57
|
__epPropKey: true;
|
@@ -146,7 +146,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
146
146
|
teleported: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
147
147
|
tagType: {
|
148
148
|
default: string;
|
149
|
-
type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "
|
149
|
+
type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown>>;
|
150
150
|
required: false;
|
151
151
|
validator: ((val: unknown) => boolean) | undefined;
|
152
152
|
__epPropKey: true;
|
@@ -198,7 +198,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
198
198
|
maxCollapseTags: number;
|
199
199
|
collapseTagsTooltip: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
200
200
|
beforeFilter: (value: string) => boolean | Promise<any>;
|
201
|
-
tagType: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "
|
201
|
+
tagType: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
202
202
|
tagEffect: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "dark" | "light" | "plain", unknown>;
|
203
203
|
}>;
|
204
204
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
@@ -3,7 +3,7 @@ import type { ExtractPropTypes } from 'vue';
|
|
3
3
|
export declare const checkTagProps: {
|
4
4
|
readonly checked: BooleanConstructor;
|
5
5
|
readonly disabled: BooleanConstructor;
|
6
|
-
readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "
|
6
|
+
readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown, "primary", boolean>;
|
7
7
|
};
|
8
8
|
export type CheckTagProps = ExtractPropTypes<typeof checkTagProps>;
|
9
9
|
export declare const checkTagEmits: {
|
@@ -4,20 +4,20 @@ declare function __VLS_template(): {
|
|
4
4
|
declare const __VLS_component: import("vue").DefineComponent<{
|
5
5
|
readonly checked: BooleanConstructor;
|
6
6
|
readonly disabled: BooleanConstructor;
|
7
|
-
readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "
|
7
|
+
readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown, "primary", boolean>;
|
8
8
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
9
9
|
change: (value: boolean) => void;
|
10
10
|
"update:checked": (value: boolean) => void;
|
11
11
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
12
12
|
readonly checked: BooleanConstructor;
|
13
13
|
readonly disabled: BooleanConstructor;
|
14
|
-
readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "
|
14
|
+
readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown, "primary", boolean>;
|
15
15
|
}>> & {
|
16
16
|
onChange?: ((value: boolean) => any) | undefined;
|
17
17
|
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
18
18
|
}, {
|
19
19
|
readonly disabled: boolean;
|
20
|
-
readonly type: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "
|
20
|
+
readonly type: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
21
21
|
readonly checked: boolean;
|
22
22
|
}>;
|
23
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
@@ -2,6 +2,7 @@ import type { ExtractPropTypes } from 'vue';
|
|
2
2
|
import type { Language } from '@element-plus/nightly/es/locale';
|
3
3
|
import type { ButtonConfigContext } from '@element-plus/nightly/es/components/button';
|
4
4
|
import type { MessageConfigContext } from '@element-plus/nightly/es/components/message';
|
5
|
+
import type { LinkConfigContext } from '@element-plus/nightly/es/components/link';
|
5
6
|
export type ExperimentalFeatures = {};
|
6
7
|
export declare const configProviderProps: {
|
7
8
|
readonly emptyValues: ArrayConstructor;
|
@@ -25,6 +26,12 @@ export declare const configProviderProps: {
|
|
25
26
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
26
27
|
__epPropKey: true;
|
27
28
|
};
|
29
|
+
readonly link: {
|
30
|
+
readonly type: import("vue").PropType<LinkConfigContext>;
|
31
|
+
readonly required: false;
|
32
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
33
|
+
__epPropKey: true;
|
34
|
+
};
|
28
35
|
readonly experimentalFeatures: {
|
29
36
|
readonly type: import("vue").PropType<ExperimentalFeatures>;
|
30
37
|
readonly required: false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config-provider-props.js","sources":["../../../../../../packages/components/config-provider/src/config-provider-props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { useEmptyValuesProps, useSizeProp } from '@element-plus/hooks'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { Language } from '@element-plus/locale'\nimport type { ButtonConfigContext } from '@element-plus/components/button'\nimport type { MessageConfigContext } from '@element-plus/components/message'\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport type ExperimentalFeatures = {\n // TO BE Defined\n}\n\nexport const configProviderProps = buildProps({\n /**\n * @description Controlling if the users want a11y features\n */\n a11y: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Locale Object\n */\n locale: {\n type: definePropType<Language>(Object),\n },\n /**\n * @description global component size\n */\n size: useSizeProp,\n /**\n * @description button related configuration, [see the following table](#button-attributes)\n */\n button: {\n type: definePropType<ButtonConfigContext>(Object),\n },\n /**\n * @description features at experimental stage to be added, all features are default to be set to false | ^[object]\n */\n experimentalFeatures: {\n type: definePropType<ExperimentalFeatures>(Object),\n },\n /**\n * @description Controls if we should handle keyboard navigation\n */\n keyboardNavigation: {\n type: Boolean,\n default: true,\n },\n /**\n * @description message related configuration, [see the following table](#message-attributes)\n */\n message: {\n type: definePropType<MessageConfigContext>(Object),\n },\n /**\n * @description global Initial zIndex\n */\n zIndex: Number,\n /**\n * @description global component className prefix (cooperated with [$namespace](https://github.com/element-plus/element-plus/blob/dev/packages/theme-chalk/src/mixins/config.scss#L1)) | ^[string]\n */\n namespace: {\n type: String,\n default: 'el',\n },\n ...useEmptyValuesProps,\n} as const)\nexport type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>\n"],"names":["buildProps","definePropType","useSizeProp","useEmptyValuesProps"],"mappings":";;;;;;;;AAEY,MAAC,mBAAmB,GAAGA,kBAAU,CAAC;AAC9C,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAED,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,oBAAoB,EAAE;AACxB,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,GAAGE,2BAAmB;AACxB,CAAC;;;;"}
|
1
|
+
{"version":3,"file":"config-provider-props.js","sources":["../../../../../../packages/components/config-provider/src/config-provider-props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { useEmptyValuesProps, useSizeProp } from '@element-plus/hooks'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { Language } from '@element-plus/locale'\nimport type { ButtonConfigContext } from '@element-plus/components/button'\nimport type { MessageConfigContext } from '@element-plus/components/message'\nimport type { LinkConfigContext } from '@element-plus/components/link'\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport type ExperimentalFeatures = {\n // TO BE Defined\n}\n\nexport const configProviderProps = buildProps({\n /**\n * @description Controlling if the users want a11y features\n */\n a11y: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Locale Object\n */\n locale: {\n type: definePropType<Language>(Object),\n },\n /**\n * @description global component size\n */\n size: useSizeProp,\n /**\n * @description button related configuration, [see the following table](#button-attributes)\n */\n button: {\n type: definePropType<ButtonConfigContext>(Object),\n },\n /**\n * @description link related configuration, [see the following table](link-attributes)\n */\n link: {\n type: definePropType<LinkConfigContext>(Object),\n },\n /**\n * @description features at experimental stage to be added, all features are default to be set to false | ^[object]\n */\n experimentalFeatures: {\n type: definePropType<ExperimentalFeatures>(Object),\n },\n /**\n * @description Controls if we should handle keyboard navigation\n */\n keyboardNavigation: {\n type: Boolean,\n default: true,\n },\n /**\n * @description message related configuration, [see the following table](#message-attributes)\n */\n message: {\n type: definePropType<MessageConfigContext>(Object),\n },\n /**\n * @description global Initial zIndex\n */\n zIndex: Number,\n /**\n * @description global component className prefix (cooperated with [$namespace](https://github.com/element-plus/element-plus/blob/dev/packages/theme-chalk/src/mixins/config.scss#L1)) | ^[string]\n */\n namespace: {\n type: String,\n default: 'el',\n },\n ...useEmptyValuesProps,\n} as const)\nexport type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>\n"],"names":["buildProps","definePropType","useSizeProp","useEmptyValuesProps"],"mappings":";;;;;;;;AAEY,MAAC,mBAAmB,GAAGA,kBAAU,CAAC;AAC9C,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAED,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,oBAAoB,EAAE;AACxB,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,GAAGE,2BAAmB;AACxB,CAAC;;;;"}
|
@@ -22,6 +22,12 @@ declare const ConfigProvider: import("vue").DefineComponent<{
|
|
22
22
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
23
23
|
__epPropKey: true;
|
24
24
|
};
|
25
|
+
readonly link: {
|
26
|
+
readonly type: import("vue").PropType<import("element-plus").LinkConfigContext>;
|
27
|
+
readonly required: false;
|
28
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
29
|
+
__epPropKey: true;
|
30
|
+
};
|
25
31
|
readonly experimentalFeatures: {
|
26
32
|
readonly type: import("vue").PropType<import("./config-provider-props").ExperimentalFeatures>;
|
27
33
|
readonly required: false;
|
@@ -61,6 +67,12 @@ declare const ConfigProvider: import("vue").DefineComponent<{
|
|
61
67
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
62
68
|
__epPropKey: true;
|
63
69
|
};
|
70
|
+
readonly link: {
|
71
|
+
readonly type: import("vue").PropType<import("element-plus").LinkConfigContext>;
|
72
|
+
readonly required: false;
|
73
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
74
|
+
__epPropKey: true;
|
75
|
+
};
|
64
76
|
readonly experimentalFeatures: {
|
65
77
|
readonly type: import("vue").PropType<import("./config-provider-props").ExperimentalFeatures>;
|
66
78
|
readonly required: false;
|
@@ -25,7 +25,7 @@ export declare const dropdownProps: {
|
|
25
25
|
readonly __epPropKey: true;
|
26
26
|
};
|
27
27
|
readonly type: {
|
28
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "text" | "default" | "
|
28
|
+
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger") | (() => import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>) | ((new (...args: any[]) => "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger") | (() => import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>))[], unknown, unknown>>;
|
29
29
|
readonly required: false;
|
30
30
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
31
31
|
__epPropKey: true;
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
11
11
|
readonly __epPropKey: true;
|
12
12
|
};
|
13
13
|
readonly type: {
|
14
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "text" | "default" | "
|
14
|
+
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger") | (() => import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>) | ((new (...args: any[]) => "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger") | (() => import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>))[], unknown, unknown>>;
|
15
15
|
readonly required: false;
|
16
16
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
17
17
|
__epPropKey: true;
|
@@ -88,7 +88,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
88
88
|
readonly __epPropKey: true;
|
89
89
|
};
|
90
90
|
readonly type: {
|
91
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "text" | "default" | "
|
91
|
+
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger") | (() => import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>) | ((new (...args: any[]) => "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger") | (() => import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>))[], unknown, unknown>>;
|
92
92
|
readonly required: false;
|
93
93
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
94
94
|
__epPropKey: true;
|
package/lib/components/index.js
CHANGED
@@ -88,10 +88,10 @@ var fixedSizeGrid = require('./virtual-list/src/components/fixed-size-grid.js');
|
|
88
88
|
var dynamicSizeGrid = require('./virtual-list/src/components/dynamic-size-grid.js');
|
89
89
|
var directive = require('./loading/src/directive.js');
|
90
90
|
var service = require('./loading/src/service.js');
|
91
|
-
var affix = require('./affix/src/
|
92
|
-
var alert = require('./alert/src/
|
91
|
+
var affix = require('./affix/src/affix2.js');
|
92
|
+
var alert = require('./alert/src/alert2.js');
|
93
93
|
var autocomplete = require('./autocomplete/src/autocomplete.js');
|
94
|
-
var avatar = require('./avatar/src/
|
94
|
+
var avatar = require('./avatar/src/avatar2.js');
|
95
95
|
var backtop = require('./backtop/src/backtop.js');
|
96
96
|
var badge = require('./badge/src/badge.js');
|
97
97
|
var breadcrumb = require('./breadcrumb/src/breadcrumb.js');
|
@@ -100,8 +100,8 @@ var constants = require('./breadcrumb/src/constants.js');
|
|
100
100
|
var button = require('./button/src/button.js');
|
101
101
|
var constants$1 = require('./button/src/constants.js');
|
102
102
|
var calendar = require('./calendar/src/calendar.js');
|
103
|
-
var card = require('./card/src/
|
104
|
-
var carousel = require('./carousel/src/
|
103
|
+
var card = require('./card/src/card2.js');
|
104
|
+
var carousel = require('./carousel/src/carousel.js');
|
105
105
|
var carouselItem = require('./carousel/src/carousel-item.js');
|
106
106
|
var constants$2 = require('./carousel/src/constants.js');
|
107
107
|
var cascader = require('./cascader/src/cascader.js');
|
@@ -150,7 +150,7 @@ var menuItem = require('./menu/src/menu-item.js');
|
|
150
150
|
var menuItemGroup = require('./menu/src/menu-item-group.js');
|
151
151
|
var subMenu = require('./menu/src/sub-menu.js');
|
152
152
|
var overlay = require('./overlay/src/overlay.js');
|
153
|
-
var pageHeader = require('./page-header/src/page-
|
153
|
+
var pageHeader = require('./page-header/src/page-header.js');
|
154
154
|
var pagination = require('./pagination/src/pagination.js');
|
155
155
|
var constants$9 = require('./pagination/src/constants.js');
|
156
156
|
var popconfirm = require('./popconfirm/src/popconfirm.js');
|
@@ -163,20 +163,20 @@ var arrow = require('./popper/src/arrow2.js');
|
|
163
163
|
var trigger = require('./popper/src/trigger2.js');
|
164
164
|
var content = require('./popper/src/content2.js');
|
165
165
|
var progress = require('./progress/src/progress.js');
|
166
|
-
var radio = require('./radio/src/
|
166
|
+
var radio = require('./radio/src/radio.js');
|
167
167
|
var radioGroup = require('./radio/src/radio-group.js');
|
168
168
|
var radioButton = require('./radio/src/radio-button.js');
|
169
169
|
var constants$b = require('./radio/src/constants.js');
|
170
170
|
var rate = require('./rate/src/rate.js');
|
171
|
-
var result = require('./result/src/
|
172
|
-
var row = require('./row/src/
|
171
|
+
var result = require('./result/src/result2.js');
|
172
|
+
var row = require('./row/src/row.js');
|
173
173
|
var constants$c = require('./row/src/constants.js');
|
174
174
|
var util = require('./scrollbar/src/util.js');
|
175
175
|
var scrollbar = require('./scrollbar/src/scrollbar.js');
|
176
176
|
var thumb = require('./scrollbar/src/thumb.js');
|
177
177
|
var constants$d = require('./scrollbar/src/constants.js');
|
178
178
|
var token = require('./select/src/token.js');
|
179
|
-
var select = require('./select/src/
|
179
|
+
var select = require('./select/src/select.js');
|
180
180
|
var token$1 = require('./select-v2/src/token.js');
|
181
181
|
var skeleton = require('./skeleton/src/skeleton.js');
|
182
182
|
var skeletonItem = require('./skeleton/src/skeleton-item.js');
|
@@ -97,7 +97,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
97
97
|
]);
|
98
98
|
const nativeInputValue = vue.computed(() => lodashUnified.isNil(props.modelValue) ? "" : String(props.modelValue));
|
99
99
|
const showClear = vue.computed(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (isFocused.value || hovering.value));
|
100
|
-
const showPwdVisible = vue.computed(() => props.showPassword && !inputDisabled.value && !!nativeInputValue.value
|
100
|
+
const showPwdVisible = vue.computed(() => props.showPassword && !inputDisabled.value && !!nativeInputValue.value);
|
101
101
|
const isWordLimitVisible = vue.computed(() => props.showWordLimit && !!props.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword);
|
102
102
|
const textLength = vue.computed(() => nativeInputValue.value.length);
|
103
103
|
const inputExceed = vue.computed(() => !!isWordLimitVisible.value && textLength.value > Number(props.maxlength));
|