@element-plus/nightly 0.0.20260117 → 0.0.20260118
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.full.js +1295 -838
- package/dist/index.full.min.js +16 -16
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +25 -25
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +1296 -840
- 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/alert/src/alert.d.ts +42 -2
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert.vue.d.ts +40 -28
- package/es/components/alert/src/alert.vue2.mjs +19 -10
- package/es/components/alert/src/alert.vue2.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.d.ts +72 -2
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +75 -471
- package/es/components/autocomplete/src/autocomplete.vue2.mjs +70 -13
- package/es/components/autocomplete/src/autocomplete.vue2.mjs.map +1 -1
- package/es/components/backtop/src/backtop.d.ts +25 -2
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop.vue.d.ts +33 -40
- package/es/components/backtop/src/backtop.vue2.mjs +7 -2
- package/es/components/backtop/src/backtop.vue2.mjs.map +1 -1
- package/es/components/backtop/src/use-backtop.d.ts +1 -1
- package/es/components/backtop/src/use-backtop.mjs.map +1 -1
- package/es/components/badge/src/badge.d.ts +49 -2
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge.vue.d.ts +39 -51
- package/es/components/badge/src/badge.vue2.mjs +17 -7
- package/es/components/badge/src/badge.vue2.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item.d.ts +18 -2
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item.vue.d.ts +23 -9
- package/es/components/breadcrumb/src/breadcrumb-item.vue2.mjs +5 -3
- package/es/components/breadcrumb/src/breadcrumb-item.vue2.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb.d.ts +18 -3
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb.vue.d.ts +23 -18
- package/es/components/breadcrumb/src/breadcrumb.vue2.mjs +4 -2
- package/es/components/breadcrumb/src/breadcrumb.vue2.mjs.map +1 -1
- package/es/components/button/src/button-group.d.ts +22 -2
- package/es/components/button/src/button-group.mjs.map +1 -1
- package/es/components/button/src/button-group.vue.d.ts +26 -29
- package/es/components/button/src/button-group.vue2.mjs +5 -2
- package/es/components/button/src/button-group.vue2.mjs.map +1 -1
- package/es/components/button/src/button.d.ts +84 -4
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button.vue.d.ts +48 -75
- package/es/components/button/src/button.vue2.mjs +28 -8
- package/es/components/button/src/button.vue2.mjs.map +1 -1
- package/es/components/button/src/use-button.d.ts +7 -7
- package/es/components/calendar/src/calendar.d.ts +26 -2
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar.vue.d.ts +24 -43
- package/es/components/calendar/src/calendar.vue2.mjs +10 -5
- package/es/components/calendar/src/calendar.vue2.mjs.map +1 -1
- package/es/components/calendar/src/date-table.d.ts +13 -2
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/date-table.vue.d.ts +3 -53
- package/es/components/calendar/src/date-table.vue2.mjs +9 -4
- package/es/components/calendar/src/date-table.vue2.mjs.map +1 -1
- package/es/components/calendar/src/select-controller.d.ts +11 -2
- package/es/components/calendar/src/select-controller.mjs.map +1 -1
- package/es/components/calendar/src/select-controller.vue.d.ts +2 -28
- package/es/components/calendar/src/select-controller.vue2.mjs +5 -2
- package/es/components/calendar/src/select-controller.vue2.mjs.map +1 -1
- package/es/components/card/src/card.d.ts +34 -2
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card.vue.d.ts +32 -21
- package/es/components/card/src/card.vue2.mjs +18 -11
- package/es/components/card/src/card.vue2.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item.d.ts +17 -2
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item.vue.d.ts +26 -9
- package/es/components/carousel/src/carousel-item.vue2.mjs +4 -2
- package/es/components/carousel/src/carousel-item.vue2.mjs.map +1 -1
- package/es/components/carousel/src/carousel.d.ts +61 -2
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +57 -43
- package/es/components/carousel/src/carousel.vue2.mjs +21 -7
- package/es/components/carousel/src/carousel.vue2.mjs.map +1 -1
- package/es/components/carousel/src/constants.d.ts +1 -1
- package/es/components/carousel/src/constants.mjs.map +1 -1
- package/es/components/carousel/src/use-carousel-item.d.ts +1 -1
- package/es/components/carousel/src/use-carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/use-carousel.d.ts +1 -1
- package/es/components/carousel/src/use-carousel.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag.d.ts +21 -2
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag.vue.d.ts +24 -13
- package/es/components/check-tag/src/check-tag.vue2.mjs +6 -2
- package/es/components/check-tag/src/check-tag.vue2.mjs.map +1 -1
- package/es/components/col/src/col.d.ts +49 -2
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col.vue.d.ts +50 -33
- package/es/components/col/src/col.vue2.mjs +13 -3
- package/es/components/col/src/col.vue2.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item.d.ts +26 -3
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item.vue.d.ts +27 -25
- package/es/components/collapse/src/collapse-item.vue2.mjs +12 -7
- package/es/components/collapse/src/collapse-item.vue2.mjs.map +1 -1
- package/es/components/collapse/src/collapse.d.ts +25 -2
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse.vue.d.ts +27 -25
- package/es/components/collapse/src/collapse.vue2.mjs +7 -2
- package/es/components/collapse/src/collapse.vue2.mjs.map +1 -1
- package/es/components/container/src/aside.vue.d.ts +28 -18
- package/es/components/container/src/aside.vue2.mjs +1 -7
- package/es/components/container/src/aside.vue2.mjs.map +1 -1
- package/es/components/container/src/container.vue.d.ts +1 -15
- package/es/components/container/src/container.vue2.mjs +3 -10
- package/es/components/container/src/container.vue2.mjs.map +1 -1
- package/es/components/container/src/footer.vue.d.ts +28 -18
- package/es/components/container/src/footer.vue2.mjs +1 -7
- package/es/components/container/src/footer.vue2.mjs.map +1 -1
- package/es/components/container/src/header.vue.d.ts +28 -18
- package/es/components/container/src/header.vue2.mjs +1 -7
- package/es/components/container/src/header.vue2.mjs.map +1 -1
- package/es/components/countdown/src/countdown.d.ts +33 -2
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown.vue.d.ts +30 -28
- package/es/components/countdown/src/countdown.vue2.mjs +13 -6
- package/es/components/countdown/src/countdown.vue2.mjs.map +1 -1
- package/es/components/descriptions/src/description.d.ts +44 -2
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description.vue.d.ts +32 -42
- package/es/components/descriptions/src/description.vue2.mjs +13 -6
- package/es/components/descriptions/src/description.vue2.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row.d.ts +6 -0
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row.vue.d.ts +23 -6
- package/es/components/descriptions/src/descriptions-row.vue2.mjs +6 -5
- package/es/components/descriptions/src/descriptions-row.vue2.mjs.map +1 -1
- package/es/components/divider/src/divider.d.ts +15 -2
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider.vue.d.ts +29 -12
- package/es/components/divider/src/divider.vue2.mjs +8 -5
- package/es/components/divider/src/divider.vue2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +2 -2
- package/es/components/empty/src/empty.d.ts +21 -2
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty.vue.d.ts +26 -11
- package/es/components/empty/src/empty.vue2.mjs +7 -4
- package/es/components/empty/src/empty.vue2.mjs.map +1 -1
- package/es/components/image/src/image.d.ts +84 -3
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image.vue.d.ts +51 -94
- package/es/components/image/src/image.vue2.mjs +35 -16
- package/es/components/image/src/image.vue2.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer.d.ts +63 -3
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +45 -62
- package/es/components/image-viewer/src/image-viewer.vue2.mjs +21 -7
- package/es/components/image-viewer/src/image-viewer.vue2.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- package/es/components/input/index.mjs +1 -1
- package/es/components/input/src/input.d.ts +16 -0
- package/es/components/input/src/input.mjs +15 -1
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +14 -14
- package/es/components/input/src/input.vue2.mjs +18 -16
- package/es/components/input/src/input.vue2.mjs.map +1 -1
- package/es/components/input-number/src/input-number.d.ts +90 -2
- package/es/components/input-number/src/input-number.mjs.map +1 -1
- package/es/components/input-number/src/input-number.vue.d.ts +60 -88
- package/es/components/input-number/src/input-number.vue2.mjs +36 -15
- package/es/components/input-number/src/input-number.vue2.mjs.map +1 -1
- package/es/components/input-tag/src/composables/use-input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag.d.ts +117 -3
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag.vue.d.ts +60 -136
- package/es/components/input-tag/src/input-tag.vue2.mjs +52 -24
- package/es/components/input-tag/src/input-tag.vue2.mjs.map +1 -1
- package/es/components/link/src/link.d.ts +34 -3
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link.vue.d.ts +33 -31
- package/es/components/link/src/link.vue2.mjs +13 -6
- package/es/components/link/src/link.vue2.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown.d.ts +10 -0
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown.vue.d.ts +23 -16
- package/es/components/mention/src/mention-dropdown.vue2.mjs +15 -9
- package/es/components/mention/src/mention-dropdown.vue2.mjs.map +1 -1
- package/es/components/mention/src/mention.d.ts +72 -2
- package/es/components/mention/src/mention.mjs.map +1 -1
- package/es/components/mention/src/mention.vue.d.ts +72 -462
- package/es/components/mention/src/mention.vue2.mjs +74 -17
- package/es/components/mention/src/mention.vue2.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group.d.ts +13 -2
- package/es/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group.vue.d.ts +1 -5
- package/es/components/menu/src/menu-item-group.vue2.mjs +4 -3
- package/es/components/menu/src/menu-item-group.vue2.mjs.map +1 -1
- package/es/components/menu/src/menu-item.d.ts +24 -2
- package/es/components/menu/src/menu-item.mjs.map +1 -1
- package/es/components/menu/src/menu-item.vue.d.ts +24 -22
- package/es/components/menu/src/menu-item.vue2.mjs +7 -3
- package/es/components/menu/src/menu-item.vue2.mjs.map +1 -1
- package/es/components/message/src/message.d.ts +70 -3
- package/es/components/message/src/message.mjs +1 -1
- package/es/components/message/src/message.mjs.map +1 -1
- package/es/components/message/src/message.vue.d.ts +68 -89
- package/es/components/message/src/message.vue2.mjs +32 -15
- package/es/components/message/src/message.vue2.mjs.map +1 -1
- package/es/components/message/src/method.mjs.map +1 -1
- package/es/components/page-header/src/page-header.d.ts +16 -3
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header.vue.d.ts +27 -12
- package/es/components/page-header/src/page-header.vue2.mjs +13 -8
- package/es/components/page-header/src/page-header.vue2.mjs.map +1 -1
- package/es/components/rate/src/rate.d.ts +94 -2
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate.vue.d.ts +66 -75
- package/es/components/rate/src/rate.vue2.mjs +36 -7
- package/es/components/rate/src/rate.vue2.mjs.map +1 -1
- package/es/components/result/src/result.d.ts +15 -2
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result.vue.d.ts +29 -12
- package/es/components/result/src/result.vue2.mjs +10 -6
- package/es/components/result/src/result.vue2.mjs.map +1 -1
- package/es/components/row/src/row.d.ts +25 -2
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/row/src/row.vue.d.ts +29 -24
- package/es/components/row/src/row.vue2.mjs +7 -3
- package/es/components/row/src/row.vue2.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.d.ts +8 -2
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.vue.d.ts +24 -19
- package/es/components/scrollbar/src/bar.vue2.mjs +6 -4
- package/es/components/scrollbar/src/bar.vue2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.d.ts +84 -2
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +51 -62
- package/es/components/scrollbar/src/scrollbar.vue2.mjs +30 -12
- package/es/components/scrollbar/src/scrollbar.vue2.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb.d.ts +11 -2
- package/es/components/scrollbar/src/thumb.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb.vue.d.ts +1 -26
- package/es/components/scrollbar/src/thumb.vue2.mjs +8 -3
- package/es/components/scrollbar/src/thumb.vue2.mjs.map +1 -1
- package/es/components/steps/src/item.d.ts +25 -3
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item.vue.d.ts +33 -25
- package/es/components/steps/src/item.vue2.mjs +11 -7
- package/es/components/steps/src/item.vue2.mjs.map +1 -1
- package/es/components/steps/src/steps.d.ts +43 -2
- package/es/components/steps/src/steps.mjs.map +1 -1
- package/es/components/steps/src/steps.vue.d.ts +36 -43
- package/es/components/steps/src/steps.vue2.mjs +11 -3
- package/es/components/steps/src/steps.vue2.mjs.map +1 -1
- package/es/components/switch/src/switch.d.ts +94 -6
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch.vue.d.ts +48 -125
- package/es/components/switch/src/switch.vue2.mjs +52 -31
- package/es/components/switch/src/switch.vue2.mjs.map +1 -1
- package/es/components/tag/src/tag.d.ts +42 -2
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag.vue.d.ts +27 -36
- package/es/components/tag/src/tag.vue2.mjs +16 -7
- package/es/components/tag/src/tag.vue2.mjs.map +1 -1
- package/es/components/tour/src/content.d.ts +33 -2
- package/es/components/tour/src/content.mjs.map +1 -1
- package/es/components/tour/src/content.vue.d.ts +34 -20
- package/es/components/tour/src/content.vue2.mjs +10 -3
- package/es/components/tour/src/content.vue2.mjs.map +1 -1
- package/es/components/tour/src/mask.d.ts +29 -2
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask.vue.d.ts +27 -25
- package/es/components/tour/src/mask.vue2.mjs +8 -3
- package/es/components/tour/src/mask.vue2.mjs.map +1 -1
- package/es/components/tour/src/step.d.ts +63 -3
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step.vue.d.ts +35 -107
- package/es/components/tour/src/step.vue2.mjs +22 -8
- package/es/components/tour/src/step.vue2.mjs.map +1 -1
- package/es/components/tour/src/tour.d.ts +71 -3
- package/es/components/tour/src/tour.mjs.map +1 -1
- package/es/components/tour/src/tour.vue.d.ts +48 -94
- package/es/components/tour/src/tour.vue2.mjs +21 -5
- package/es/components/tour/src/tour.vue2.mjs.map +1 -1
- package/es/components/watermark/src/watermark.d.ts +45 -2
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark.vue.d.ts +32 -45
- package/es/components/watermark/src/watermark.vue2.mjs +11 -2
- package/es/components/watermark/src/watermark.vue2.mjs.map +1 -1
- package/es/index.mjs +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/src/alert.d.ts +42 -2
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +40 -28
- package/lib/components/alert/src/alert.vue2.js +18 -9
- package/lib/components/alert/src/alert.vue2.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.d.ts +72 -2
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +75 -471
- package/lib/components/autocomplete/src/autocomplete.vue2.js +66 -9
- package/lib/components/autocomplete/src/autocomplete.vue2.js.map +1 -1
- package/lib/components/backtop/src/backtop.d.ts +25 -2
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop.vue.d.ts +33 -40
- package/lib/components/backtop/src/backtop.vue2.js +6 -1
- package/lib/components/backtop/src/backtop.vue2.js.map +1 -1
- package/lib/components/backtop/src/use-backtop.d.ts +1 -1
- package/lib/components/backtop/src/use-backtop.js.map +1 -1
- package/lib/components/badge/src/badge.d.ts +49 -2
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge.vue.d.ts +39 -51
- package/lib/components/badge/src/badge.vue2.js +17 -7
- package/lib/components/badge/src/badge.vue2.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item.d.ts +18 -2
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item.vue.d.ts +23 -9
- package/lib/components/breadcrumb/src/breadcrumb-item.vue2.js +5 -3
- package/lib/components/breadcrumb/src/breadcrumb-item.vue2.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb.d.ts +18 -3
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +23 -18
- package/lib/components/breadcrumb/src/breadcrumb.vue2.js +4 -2
- package/lib/components/breadcrumb/src/breadcrumb.vue2.js.map +1 -1
- package/lib/components/button/src/button-group.d.ts +22 -2
- package/lib/components/button/src/button-group.js.map +1 -1
- package/lib/components/button/src/button-group.vue.d.ts +26 -29
- package/lib/components/button/src/button-group.vue2.js +5 -2
- package/lib/components/button/src/button-group.vue2.js.map +1 -1
- package/lib/components/button/src/button.d.ts +84 -4
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button.vue.d.ts +48 -75
- package/lib/components/button/src/button.vue2.js +26 -6
- package/lib/components/button/src/button.vue2.js.map +1 -1
- package/lib/components/button/src/use-button.d.ts +7 -7
- package/lib/components/calendar/src/calendar.d.ts +26 -2
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar.vue.d.ts +24 -43
- package/lib/components/calendar/src/calendar.vue2.js +9 -4
- package/lib/components/calendar/src/calendar.vue2.js.map +1 -1
- package/lib/components/calendar/src/date-table.d.ts +13 -2
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/date-table.vue.d.ts +3 -53
- package/lib/components/calendar/src/date-table.vue2.js +8 -3
- package/lib/components/calendar/src/date-table.vue2.js.map +1 -1
- package/lib/components/calendar/src/select-controller.d.ts +11 -2
- package/lib/components/calendar/src/select-controller.js.map +1 -1
- package/lib/components/calendar/src/select-controller.vue.d.ts +2 -28
- package/lib/components/calendar/src/select-controller.vue2.js +4 -1
- package/lib/components/calendar/src/select-controller.vue2.js.map +1 -1
- package/lib/components/card/src/card.d.ts +34 -2
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card.vue.d.ts +32 -21
- package/lib/components/card/src/card.vue2.js +18 -11
- package/lib/components/card/src/card.vue2.js.map +1 -1
- package/lib/components/carousel/src/carousel-item.d.ts +17 -2
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item.vue.d.ts +26 -9
- package/lib/components/carousel/src/carousel-item.vue2.js +4 -2
- package/lib/components/carousel/src/carousel-item.vue2.js.map +1 -1
- package/lib/components/carousel/src/carousel.d.ts +61 -2
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +57 -43
- package/lib/components/carousel/src/carousel.vue2.js +20 -6
- package/lib/components/carousel/src/carousel.vue2.js.map +1 -1
- package/lib/components/carousel/src/constants.d.ts +1 -1
- package/lib/components/carousel/src/constants.js.map +1 -1
- package/lib/components/carousel/src/use-carousel-item.d.ts +1 -1
- package/lib/components/carousel/src/use-carousel-item.js.map +1 -1
- package/lib/components/carousel/src/use-carousel.d.ts +1 -1
- package/lib/components/carousel/src/use-carousel.js.map +1 -1
- package/lib/components/check-tag/src/check-tag.d.ts +21 -2
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag.vue.d.ts +24 -13
- package/lib/components/check-tag/src/check-tag.vue2.js +5 -1
- package/lib/components/check-tag/src/check-tag.vue2.js.map +1 -1
- package/lib/components/col/src/col.d.ts +49 -2
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col.vue.d.ts +50 -33
- package/lib/components/col/src/col.vue2.js +13 -3
- package/lib/components/col/src/col.vue2.js.map +1 -1
- package/lib/components/collapse/src/collapse-item.d.ts +26 -3
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item.vue.d.ts +27 -25
- package/lib/components/collapse/src/collapse-item.vue2.js +11 -6
- package/lib/components/collapse/src/collapse-item.vue2.js.map +1 -1
- package/lib/components/collapse/src/collapse.d.ts +25 -2
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse.vue.d.ts +27 -25
- package/lib/components/collapse/src/collapse.vue2.js +6 -1
- package/lib/components/collapse/src/collapse.vue2.js.map +1 -1
- package/lib/components/container/src/aside.vue.d.ts +28 -18
- package/lib/components/container/src/aside.vue2.js +1 -7
- package/lib/components/container/src/aside.vue2.js.map +1 -1
- package/lib/components/container/src/container.vue.d.ts +1 -15
- package/lib/components/container/src/container.vue2.js +3 -10
- package/lib/components/container/src/container.vue2.js.map +1 -1
- package/lib/components/container/src/footer.vue.d.ts +28 -18
- package/lib/components/container/src/footer.vue2.js +1 -7
- package/lib/components/container/src/footer.vue2.js.map +1 -1
- package/lib/components/container/src/header.vue.d.ts +28 -18
- package/lib/components/container/src/header.vue2.js +1 -7
- package/lib/components/container/src/header.vue2.js.map +1 -1
- package/lib/components/countdown/src/countdown.d.ts +33 -2
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown.vue.d.ts +30 -28
- package/lib/components/countdown/src/countdown.vue2.js +12 -5
- package/lib/components/countdown/src/countdown.vue2.js.map +1 -1
- package/lib/components/descriptions/src/description.d.ts +44 -2
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description.vue.d.ts +32 -42
- package/lib/components/descriptions/src/description.vue2.js +13 -6
- package/lib/components/descriptions/src/description.vue2.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row.d.ts +6 -0
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row.vue.d.ts +23 -6
- package/lib/components/descriptions/src/descriptions-row.vue2.js +6 -5
- package/lib/components/descriptions/src/descriptions-row.vue2.js.map +1 -1
- package/lib/components/divider/src/divider.d.ts +15 -2
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider.vue.d.ts +29 -12
- package/lib/components/divider/src/divider.vue2.js +8 -5
- package/lib/components/divider/src/divider.vue2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +2 -2
- package/lib/components/empty/src/empty.d.ts +21 -2
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty.vue.d.ts +26 -11
- package/lib/components/empty/src/empty.vue2.js +7 -4
- package/lib/components/empty/src/empty.vue2.js.map +1 -1
- package/lib/components/image/src/image.d.ts +84 -3
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image.vue.d.ts +51 -94
- package/lib/components/image/src/image.vue2.js +34 -15
- package/lib/components/image/src/image.vue2.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer.d.ts +63 -3
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +45 -62
- package/lib/components/image-viewer/src/image-viewer.vue2.js +20 -6
- package/lib/components/image-viewer/src/image-viewer.vue2.js.map +1 -1
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/index.js +1 -0
- package/lib/components/input/index.js.map +1 -1
- package/lib/components/input/src/input.d.ts +16 -0
- package/lib/components/input/src/input.js +15 -0
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +14 -14
- package/lib/components/input/src/input.vue2.js +15 -13
- package/lib/components/input/src/input.vue2.js.map +1 -1
- package/lib/components/input-number/src/input-number.d.ts +90 -2
- package/lib/components/input-number/src/input-number.js.map +1 -1
- package/lib/components/input-number/src/input-number.vue.d.ts +60 -88
- package/lib/components/input-number/src/input-number.vue2.js +35 -14
- package/lib/components/input-number/src/input-number.vue2.js.map +1 -1
- package/lib/components/input-tag/src/composables/use-input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag.d.ts +117 -3
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag.vue.d.ts +60 -136
- package/lib/components/input-tag/src/input-tag.vue2.js +50 -22
- package/lib/components/input-tag/src/input-tag.vue2.js.map +1 -1
- package/lib/components/link/src/link.d.ts +34 -3
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link.vue.d.ts +33 -31
- package/lib/components/link/src/link.vue2.js +12 -5
- package/lib/components/link/src/link.vue2.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown.d.ts +10 -0
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown.vue.d.ts +23 -16
- package/lib/components/mention/src/mention-dropdown.vue2.js +14 -8
- package/lib/components/mention/src/mention-dropdown.vue2.js.map +1 -1
- package/lib/components/mention/src/mention.d.ts +72 -2
- package/lib/components/mention/src/mention.js.map +1 -1
- package/lib/components/mention/src/mention.vue.d.ts +72 -462
- package/lib/components/mention/src/mention.vue2.js +70 -13
- package/lib/components/mention/src/mention.vue2.js.map +1 -1
- package/lib/components/menu/src/menu-item-group.d.ts +13 -2
- package/lib/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/components/menu/src/menu-item-group.vue.d.ts +1 -5
- package/lib/components/menu/src/menu-item-group.vue2.js +4 -3
- package/lib/components/menu/src/menu-item-group.vue2.js.map +1 -1
- package/lib/components/menu/src/menu-item.d.ts +24 -2
- package/lib/components/menu/src/menu-item.js.map +1 -1
- package/lib/components/menu/src/menu-item.vue.d.ts +24 -22
- package/lib/components/menu/src/menu-item.vue2.js +6 -2
- package/lib/components/menu/src/menu-item.vue2.js.map +1 -1
- package/lib/components/message/src/message.d.ts +70 -3
- package/lib/components/message/src/message.js +1 -1
- package/lib/components/message/src/message.js.map +1 -1
- package/lib/components/message/src/message.vue.d.ts +68 -89
- package/lib/components/message/src/message.vue2.js +30 -13
- package/lib/components/message/src/message.vue2.js.map +1 -1
- package/lib/components/message/src/method.js.map +1 -1
- package/lib/components/page-header/src/page-header.d.ts +16 -3
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header.vue.d.ts +27 -12
- package/lib/components/page-header/src/page-header.vue2.js +12 -7
- package/lib/components/page-header/src/page-header.vue2.js.map +1 -1
- package/lib/components/rate/src/rate.d.ts +94 -2
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +66 -75
- package/lib/components/rate/src/rate.vue2.js +35 -6
- package/lib/components/rate/src/rate.vue2.js.map +1 -1
- package/lib/components/result/src/result.d.ts +15 -2
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result.vue.d.ts +29 -12
- package/lib/components/result/src/result.vue2.js +9 -5
- package/lib/components/result/src/result.vue2.js.map +1 -1
- package/lib/components/row/src/row.d.ts +25 -2
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/row/src/row.vue.d.ts +29 -24
- package/lib/components/row/src/row.vue2.js +7 -3
- package/lib/components/row/src/row.vue2.js.map +1 -1
- package/lib/components/scrollbar/src/bar.d.ts +8 -2
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar.vue.d.ts +24 -19
- package/lib/components/scrollbar/src/bar.vue2.js +6 -4
- package/lib/components/scrollbar/src/bar.vue2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.d.ts +84 -2
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +51 -62
- package/lib/components/scrollbar/src/scrollbar.vue2.js +29 -11
- package/lib/components/scrollbar/src/scrollbar.vue2.js.map +1 -1
- package/lib/components/scrollbar/src/thumb.d.ts +11 -2
- package/lib/components/scrollbar/src/thumb.js.map +1 -1
- package/lib/components/scrollbar/src/thumb.vue.d.ts +1 -26
- package/lib/components/scrollbar/src/thumb.vue2.js +8 -3
- package/lib/components/scrollbar/src/thumb.vue2.js.map +1 -1
- package/lib/components/steps/src/item.d.ts +25 -3
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item.vue.d.ts +33 -25
- package/lib/components/steps/src/item.vue2.js +11 -7
- package/lib/components/steps/src/item.vue2.js.map +1 -1
- package/lib/components/steps/src/steps.d.ts +43 -2
- package/lib/components/steps/src/steps.js.map +1 -1
- package/lib/components/steps/src/steps.vue.d.ts +36 -43
- package/lib/components/steps/src/steps.vue2.js +10 -2
- package/lib/components/steps/src/steps.vue2.js.map +1 -1
- package/lib/components/switch/src/switch.d.ts +94 -6
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +48 -125
- package/lib/components/switch/src/switch.vue2.js +51 -30
- package/lib/components/switch/src/switch.vue2.js.map +1 -1
- package/lib/components/tag/src/tag.d.ts +42 -2
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +27 -36
- package/lib/components/tag/src/tag.vue2.js +15 -6
- package/lib/components/tag/src/tag.vue2.js.map +1 -1
- package/lib/components/tour/src/content.d.ts +33 -2
- package/lib/components/tour/src/content.js.map +1 -1
- package/lib/components/tour/src/content.vue.d.ts +34 -20
- package/lib/components/tour/src/content.vue2.js +9 -2
- package/lib/components/tour/src/content.vue2.js.map +1 -1
- package/lib/components/tour/src/mask.d.ts +29 -2
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask.vue.d.ts +27 -25
- package/lib/components/tour/src/mask.vue2.js +8 -3
- package/lib/components/tour/src/mask.vue2.js.map +1 -1
- package/lib/components/tour/src/step.d.ts +63 -3
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step.vue.d.ts +35 -107
- package/lib/components/tour/src/step.vue2.js +21 -7
- package/lib/components/tour/src/step.vue2.js.map +1 -1
- package/lib/components/tour/src/tour.d.ts +71 -3
- package/lib/components/tour/src/tour.js.map +1 -1
- package/lib/components/tour/src/tour.vue.d.ts +48 -94
- package/lib/components/tour/src/tour.vue2.js +20 -4
- package/lib/components/tour/src/tour.vue2.js.map +1 -1
- package/lib/components/watermark/src/watermark.d.ts +45 -2
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark.vue.d.ts +32 -45
- package/lib/components/watermark/src/watermark.vue2.js +11 -2
- package/lib/components/watermark/src/watermark.vue2.js.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var index$2 = require('../../icon/index.js');
|
|
7
7
|
var index$3 = require('../../divider/index.js');
|
|
8
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
8
9
|
var pageHeader = require('./page-header.js');
|
|
9
10
|
var index = require('../../../hooks/use-locale/index.js');
|
|
10
11
|
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
@@ -15,7 +16,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
15
16
|
name: "ElPageHeader"
|
|
16
17
|
},
|
|
17
18
|
__name: "page-header",
|
|
18
|
-
props:
|
|
19
|
+
props: {
|
|
20
|
+
icon: { type: null, required: false, default: () => iconsVue.Back },
|
|
21
|
+
title: { type: String, required: false },
|
|
22
|
+
content: { type: String, required: false, default: "" }
|
|
23
|
+
},
|
|
19
24
|
emits: pageHeader.pageHeaderEmits,
|
|
20
25
|
setup(__props, { emit: __emit }) {
|
|
21
26
|
const emit = __emit;
|
|
@@ -71,15 +76,15 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
71
76
|
onClick: handleClick
|
|
72
77
|
},
|
|
73
78
|
[
|
|
74
|
-
|
|
79
|
+
__props.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
75
80
|
key: 0,
|
|
76
|
-
"aria-label":
|
|
81
|
+
"aria-label": __props.title || vue.unref(t)("el.pageHeader.title"),
|
|
77
82
|
class: vue.normalizeClass(vue.unref(ns).e("icon"))
|
|
78
83
|
}, [
|
|
79
84
|
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
80
|
-
|
|
85
|
+
__props.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), { key: 0 }, {
|
|
81
86
|
default: vue.withCtx(() => [
|
|
82
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(
|
|
87
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.icon)))
|
|
83
88
|
]),
|
|
84
89
|
_: 1
|
|
85
90
|
/* STABLE */
|
|
@@ -94,7 +99,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
94
99
|
[
|
|
95
100
|
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
96
101
|
vue.createTextVNode(
|
|
97
|
-
vue.toDisplayString(
|
|
102
|
+
vue.toDisplayString(__props.title || vue.unref(t)("el.pageHeader.title")),
|
|
98
103
|
1
|
|
99
104
|
/* TEXT */
|
|
100
105
|
)
|
|
@@ -116,7 +121,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
116
121
|
[
|
|
117
122
|
vue.renderSlot(_ctx.$slots, "content", {}, () => [
|
|
118
123
|
vue.createTextVNode(
|
|
119
|
-
vue.toDisplayString(
|
|
124
|
+
vue.toDisplayString(__props.content),
|
|
120
125
|
1
|
|
121
126
|
/* TEXT */
|
|
122
127
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.vue2.js","sources":["../../../../../../packages/components/page-header/src/page-header.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.is('contentful', !!$slots.default),\n {\n [ns.m('has-breadcrumb')]: !!$slots.breadcrumb,\n [ns.m('has-extra')]: !!$slots.extra,\n },\n ]\"\n >\n <div v-if=\"$slots.breadcrumb\" :class=\"ns.e('breadcrumb')\">\n <slot name=\"breadcrumb\" />\n </div>\n <div :class=\"ns.e('header')\">\n <div :class=\"ns.e('left')\">\n <div\n :class=\"ns.e('back')\"\n role=\"button\"\n tabindex=\"0\"\n @click=\"handleClick\"\n >\n <div\n v-if=\"icon || $slots.icon\"\n :aria-label=\"title || t('el.pageHeader.title')\"\n :class=\"ns.e('icon')\"\n >\n <slot name=\"icon\">\n <el-icon v-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n </slot>\n </div>\n <div :class=\"ns.e('title')\">\n <slot name=\"title\">{{ title || t('el.pageHeader.title') }}</slot>\n </div>\n </div>\n <el-divider direction=\"vertical\" />\n <div :class=\"ns.e('content')\">\n <slot name=\"content\">{{ content }}</slot>\n </div>\n </div>\n\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n\n <div v-if=\"$slots.default\" :class=\"ns.e('main')\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ElDivider } from '@element-plus/components/divider'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { pageHeaderEmits
|
|
1
|
+
{"version":3,"file":"page-header.vue2.js","sources":["../../../../../../packages/components/page-header/src/page-header.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.is('contentful', !!$slots.default),\n {\n [ns.m('has-breadcrumb')]: !!$slots.breadcrumb,\n [ns.m('has-extra')]: !!$slots.extra,\n },\n ]\"\n >\n <div v-if=\"$slots.breadcrumb\" :class=\"ns.e('breadcrumb')\">\n <slot name=\"breadcrumb\" />\n </div>\n <div :class=\"ns.e('header')\">\n <div :class=\"ns.e('left')\">\n <div\n :class=\"ns.e('back')\"\n role=\"button\"\n tabindex=\"0\"\n @click=\"handleClick\"\n >\n <div\n v-if=\"icon || $slots.icon\"\n :aria-label=\"title || t('el.pageHeader.title')\"\n :class=\"ns.e('icon')\"\n >\n <slot name=\"icon\">\n <el-icon v-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n </slot>\n </div>\n <div :class=\"ns.e('title')\">\n <slot name=\"title\">{{ title || t('el.pageHeader.title') }}</slot>\n </div>\n </div>\n <el-divider direction=\"vertical\" />\n <div :class=\"ns.e('content')\">\n <slot name=\"content\">{{ content }}</slot>\n </div>\n </div>\n\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n\n <div v-if=\"$slots.default\" :class=\"ns.e('main')\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ElDivider } from '@element-plus/components/divider'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { Back as IconBack } from '@element-plus/icons-vue'\nimport { pageHeaderEmits } from './page-header'\n\nimport type { PageHeaderProps } from './page-header'\n\ndefineOptions({\n name: 'ElPageHeader',\n})\n\nwithDefaults(defineProps<PageHeaderProps>(), {\n icon: () => IconBack,\n content: '',\n})\nconst emit = defineEmits(pageHeaderEmits)\n\nconst { t } = useLocale()\nconst ns = useNamespace('page-header')\n\nfunction handleClick() {\n emit('back')\n}\n</script>\n"],"names":["useLocale","useNamespace","_createElementBlock","_normalizeClass","_unref","$slots","_renderSlot","_createElementVNode","_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A;AAAA;;;;;;;;;kBAGpCU,gBAAmCV,SAAA,CAAAW,iBAAA,GAAA,EAAvB,SAAA,EAAU,YAAU,CAAA;AAAA,kBAChCR,sBAAA;AAAA,oBAEM,KAAA;AAAA,oBAAA;AAAA,sBAFA,OAAKJ,kBAAA,CAAEC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,SAAA,CAAA;AAAA;;sBACfE,eAAyC,IAAA,wBAAzC,MAAyC;AAAA;8CAAjB,QAAA,OAAO,CAAA;AAAA,0BAAA;AAAA;AAAA;AAAA;;;;;;;;;cAIxBD,IAAAA,CAAAA,MAAAA,CAAO,KAAA,qBAAlBH,sBAAA;AAAA,gBAEM,KAAA;AAAA,gBAAA;AAAA;kBAFoB,OAAKC,kBAAA,CAAEC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,OAAA,CAAA;AAAA;;kBACnCE,cAAA,CAAqB,IAAA,CAAA,MAAA,EAAA,OAAA;AAAA;;;;;;;;UAIdD,IAAAA,CAAAA,MAAAA,CAAO,OAAA,qBAAlBH,sBAAA;AAAA,YAEM,KAAA;AAAA,YAAA;AAAA;cAFsB,OAAKC,kBAAA,CAAEC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,MAAA,CAAA;AAAA;;cACrCE,cAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA;AAAA;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,95 @@
|
|
|
1
|
-
import type { Component,
|
|
1
|
+
import type { Component, ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type { ComponentSize } from '@element-plus/nightly/es/constants';
|
|
2
3
|
import type Rate from './rate.vue';
|
|
4
|
+
export interface RateProps {
|
|
5
|
+
/**
|
|
6
|
+
* @description binding value
|
|
7
|
+
*/
|
|
8
|
+
modelValue?: number;
|
|
9
|
+
/**
|
|
10
|
+
* @description native `id` attribute
|
|
11
|
+
*/
|
|
12
|
+
id?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @description threshold value between low and medium level. The value itself will be included in low level
|
|
15
|
+
*/
|
|
16
|
+
lowThreshold?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @description threshold value between medium and high level. The value itself will be included in high level
|
|
19
|
+
*/
|
|
20
|
+
highThreshold?: number;
|
|
21
|
+
/**
|
|
22
|
+
* @description max rating score
|
|
23
|
+
*/
|
|
24
|
+
max?: number;
|
|
25
|
+
/**
|
|
26
|
+
* @description colors for icons. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding color
|
|
27
|
+
*/
|
|
28
|
+
colors?: string[] | Record<number, string>;
|
|
29
|
+
/**
|
|
30
|
+
* @description color of unselected icons
|
|
31
|
+
*/
|
|
32
|
+
voidColor?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @description color of unselected read-only icons
|
|
35
|
+
*/
|
|
36
|
+
disabledVoidColor?: string;
|
|
37
|
+
/**
|
|
38
|
+
* @description icon components. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding icon component
|
|
39
|
+
*/
|
|
40
|
+
icons?: Array<string | Component> | Record<number, string | Component>;
|
|
41
|
+
/**
|
|
42
|
+
* @description component of unselected icons
|
|
43
|
+
*/
|
|
44
|
+
voidIcon?: string | Component;
|
|
45
|
+
/**
|
|
46
|
+
* @description component of unselected read-only icons
|
|
47
|
+
*/
|
|
48
|
+
disabledVoidIcon?: string | Component;
|
|
49
|
+
/**
|
|
50
|
+
* @description whether Rate is read-only
|
|
51
|
+
*/
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @description whether picking half start is allowed
|
|
55
|
+
*/
|
|
56
|
+
allowHalf?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* @description whether to display texts
|
|
59
|
+
*/
|
|
60
|
+
showText?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @description whether to display current score. show-score and show-text cannot be true at the same time
|
|
63
|
+
*/
|
|
64
|
+
showScore?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* @description color of texts
|
|
67
|
+
*/
|
|
68
|
+
textColor?: string;
|
|
69
|
+
/**
|
|
70
|
+
* @description text array
|
|
71
|
+
*/
|
|
72
|
+
texts?: string[];
|
|
73
|
+
/**
|
|
74
|
+
* @description score template
|
|
75
|
+
*/
|
|
76
|
+
scoreTemplate?: string;
|
|
77
|
+
/**
|
|
78
|
+
* @description size of Rate
|
|
79
|
+
*/
|
|
80
|
+
size?: ComponentSize;
|
|
81
|
+
/**
|
|
82
|
+
* @description whether value can be reset to `0`
|
|
83
|
+
*/
|
|
84
|
+
clearable?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* @description native `aria-label` attribute
|
|
87
|
+
*/
|
|
88
|
+
ariaLabel?: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @deprecated Removed after 3.0.0, Use `RateProps` instead.
|
|
92
|
+
*/
|
|
3
93
|
export declare const rateProps: {
|
|
4
94
|
readonly ariaLabel: StringConstructor;
|
|
5
95
|
readonly modelValue: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
@@ -28,7 +118,9 @@ export declare const rateProps: {
|
|
|
28
118
|
};
|
|
29
119
|
readonly clearable: BooleanConstructor;
|
|
30
120
|
};
|
|
31
|
-
|
|
121
|
+
/**
|
|
122
|
+
* @deprecated Removed after 3.0.0, Use `RateProps` instead.
|
|
123
|
+
*/
|
|
32
124
|
export type RatePropsPublic = ExtractPublicPropTypes<typeof rateProps>;
|
|
33
125
|
export declare const rateEmits: {
|
|
34
126
|
change: (value: number) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rate.js","sources":["../../../../../../packages/components/rate/src/rate.ts"],"sourcesContent":["import { Star, StarFilled } from '@element-plus/icons-vue'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport {\n buildProps,\n definePropType,\n iconPropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\n\nimport type { Component,
|
|
1
|
+
{"version":3,"file":"rate.js","sources":["../../../../../../packages/components/rate/src/rate.ts"],"sourcesContent":["import { Star, StarFilled } from '@element-plus/icons-vue'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport {\n buildProps,\n definePropType,\n iconPropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\n\nimport type { Component, ExtractPublicPropTypes } from 'vue'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type Rate from './rate.vue'\n\nexport interface RateProps {\n /**\n * @description binding value\n */\n modelValue?: number\n /**\n * @description native `id` attribute\n */\n id?: string\n /**\n * @description threshold value between low and medium level. The value itself will be included in low level\n */\n lowThreshold?: number\n /**\n * @description threshold value between medium and high level. The value itself will be included in high level\n */\n highThreshold?: number\n /**\n * @description max rating score\n */\n max?: number\n /**\n * @description colors for icons. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding color\n */\n colors?: string[] | Record<number, string>\n /**\n * @description color of unselected icons\n */\n voidColor?: string\n /**\n * @description color of unselected read-only icons\n */\n disabledVoidColor?: string\n /**\n * @description icon components. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding icon component\n */\n icons?: Array<string | Component> | Record<number, string | Component>\n /**\n * @description component of unselected icons\n */\n voidIcon?: string | Component\n /**\n * @description component of unselected read-only icons\n */\n disabledVoidIcon?: string | Component\n /**\n * @description whether Rate is read-only\n */\n disabled?: boolean\n /**\n * @description whether picking half start is allowed\n */\n allowHalf?: boolean\n /**\n * @description whether to display texts\n */\n showText?: boolean\n /**\n * @description whether to display current score. show-score and show-text cannot be true at the same time\n */\n showScore?: boolean\n /**\n * @description color of texts\n */\n textColor?: string\n /**\n * @description text array\n */\n texts?: string[]\n /**\n * @description score template\n */\n scoreTemplate?: string\n /**\n * @description size of Rate\n */\n size?: ComponentSize\n /**\n * @description whether value can be reset to `0`\n */\n clearable?: boolean\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel?: string\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `RateProps` instead.\n */\nexport const rateProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: Number,\n default: 0,\n },\n /**\n * @description native `id` attribute\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description threshold value between low and medium level. The value itself will be included in low level\n */\n lowThreshold: {\n type: Number,\n default: 2,\n },\n /**\n * @description threshold value between medium and high level. The value itself will be included in high level\n */\n highThreshold: {\n type: Number,\n default: 4,\n },\n /**\n * @description max rating score\n */\n max: {\n type: Number,\n default: 5,\n },\n /**\n * @description colors for icons. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding color\n */\n colors: {\n type: definePropType<string[] | Record<number, string>>([Array, Object]),\n default: () => mutable(['', '', ''] as const),\n },\n /**\n * @description color of unselected icons\n */\n voidColor: {\n type: String,\n default: '',\n },\n /**\n * @description color of unselected read-only icons\n */\n disabledVoidColor: {\n type: String,\n default: '',\n },\n /**\n * @description icon components. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding icon component\n */\n icons: {\n type: definePropType<\n Array<string | Component> | Record<number, string | Component>\n >([Array, Object]),\n default: () =>\n [StarFilled, StarFilled, StarFilled] as [Component, Component, Component],\n },\n /**\n * @description component of unselected icons\n */\n voidIcon: {\n type: iconPropType,\n default: () => Star as Component,\n },\n /**\n * @description component of unselected read-only icons\n */\n disabledVoidIcon: {\n type: iconPropType,\n default: () => StarFilled as Component,\n },\n /**\n * @description whether Rate is read-only\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether picking half start is allowed\n */\n allowHalf: Boolean,\n /**\n * @description whether to display texts\n */\n showText: Boolean,\n /**\n * @description whether to display current score. show-score and show-text cannot be true at the same time\n */\n showScore: Boolean,\n /**\n * @description color of texts\n */\n textColor: {\n type: String,\n default: '',\n },\n /**\n * @description text array\n */\n texts: {\n type: definePropType<string[]>(Array),\n default: () =>\n mutable([\n 'Extremely bad',\n 'Disappointed',\n 'Fair',\n 'Satisfied',\n 'Surprise',\n ] as const),\n },\n /**\n * @description score template\n */\n scoreTemplate: {\n type: String,\n default: '{value}',\n },\n /**\n * @description size of Rate\n */\n size: useSizeProp,\n /**\n * @description whether value can be reset to `0`\n */\n clearable: Boolean,\n ...useAriaProps(['ariaLabel']),\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `RateProps` instead.\n */\nexport type RatePropsPublic = ExtractPublicPropTypes<typeof rateProps>\n\nexport const rateEmits = {\n [CHANGE_EVENT]: (value: number) => isNumber(value),\n [UPDATE_MODEL_EVENT]: (value: number) => isNumber(value),\n}\nexport type RateEmits = typeof rateEmits\n\nexport type RateInstance = InstanceType<typeof Rate> & unknown\n"],"names":["buildProps","definePropType","mutable","StarFilled","iconPropType","Star","useSizeProp","useAriaProps","CHANGE_EVENT","isNumber","UPDATE_MODEL_EVENT"],"mappings":";;;;;;;;;;;AAyGO,MAAM,YAAYA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIlC,UAAA,EAAY;AAAA,IACV,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,EAAA,EAAI;AAAA,IACF,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,YAAA,EAAc;AAAA,IACZ,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,aAAA,EAAe;AAAA,IACb,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,GAAA,E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AA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO;AAAA,IACL,IAAA,EAAMF,uBAAyB,KAAK,CAAA;AAAA,IACpC,OAAA,EAAS,MACPC,kBAAA,CAAQ;AAAA,MACN,eAAA;AAAA,MACA,cAAA;AAAA,MACA,MAAA;AAAA,MACA,WAAA;AAAA,MACA;AAAA,KACQ;AAAA,GACd;AAAA;AAAA;AAAA;AAAA,EAIA,aAAA,EAAe;AAAA,IACb,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAMI,mBAAA;AAAA;AAAA;AAAA;AAAA,EAIN,SAAA,EAAW,OAAA;AAAA,EACX,GAAGC,kBAAA,CAAa,CAAC,WAAW,CAAC;AAC/B,CAAU;AAOH,MAAM,SAAA,GAAY;AAAA,EACvB,CAACC,kBAAY,GAAG,CAAC,KAAA,KAAkBC,eAAS,KAAK,CAAA;AAAA,EACjD,CAACC,wBAAkB,GAAG,CAAC,KAAA,KAAkBD,eAAS,KAAK;AACzD;;;;;"}
|
|
@@ -1,34 +1,24 @@
|
|
|
1
1
|
import type { Component } from 'vue';
|
|
2
|
+
import type { RateProps } from './rate';
|
|
2
3
|
declare function setCurrentValue(value: number, event?: MouseEvent): void;
|
|
3
4
|
declare function resetCurrentValue(): void;
|
|
4
|
-
declare const __VLS_export: import("vue").DefineComponent<{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
readonly textColor: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
22
|
-
readonly texts: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => ["Extremely bad", "Disappointed", "Fair", "Satisfied", "Surprise"], boolean>;
|
|
23
|
-
readonly scoreTemplate: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "{value}", boolean>;
|
|
24
|
-
readonly size: {
|
|
25
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
26
|
-
readonly required: false;
|
|
27
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
28
|
-
__epPropKey: true;
|
|
29
|
-
};
|
|
30
|
-
readonly clearable: BooleanConstructor;
|
|
31
|
-
}, {
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<RateProps>, {
|
|
6
|
+
modelValue: number;
|
|
7
|
+
id: undefined;
|
|
8
|
+
lowThreshold: number;
|
|
9
|
+
highThreshold: number;
|
|
10
|
+
max: number;
|
|
11
|
+
colors: () => string[];
|
|
12
|
+
voidColor: string;
|
|
13
|
+
disabledVoidColor: string;
|
|
14
|
+
icons: () => any[];
|
|
15
|
+
voidIcon: () => any;
|
|
16
|
+
disabledVoidIcon: () => any;
|
|
17
|
+
disabled: undefined;
|
|
18
|
+
textColor: string;
|
|
19
|
+
texts: () => string[];
|
|
20
|
+
scoreTemplate: string;
|
|
21
|
+
}>, {
|
|
32
22
|
/** @description set current value */
|
|
33
23
|
setCurrentValue: typeof setCurrentValue;
|
|
34
24
|
/** @description reset current value */
|
|
@@ -36,56 +26,57 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
36
26
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
27
|
"update:modelValue": (value: number) => void;
|
|
38
28
|
change: (value: number) => void;
|
|
39
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
readonly textColor: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
57
|
-
readonly texts: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => ["Extremely bad", "Disappointed", "Fair", "Satisfied", "Surprise"], boolean>;
|
|
58
|
-
readonly scoreTemplate: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "{value}", boolean>;
|
|
59
|
-
readonly size: {
|
|
60
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
61
|
-
readonly required: false;
|
|
62
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
63
|
-
__epPropKey: true;
|
|
64
|
-
};
|
|
65
|
-
readonly clearable: BooleanConstructor;
|
|
66
|
-
}>> & {
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<RateProps>, {
|
|
30
|
+
modelValue: number;
|
|
31
|
+
id: undefined;
|
|
32
|
+
lowThreshold: number;
|
|
33
|
+
highThreshold: number;
|
|
34
|
+
max: number;
|
|
35
|
+
colors: () => string[];
|
|
36
|
+
voidColor: string;
|
|
37
|
+
disabledVoidColor: string;
|
|
38
|
+
icons: () => any[];
|
|
39
|
+
voidIcon: () => any;
|
|
40
|
+
disabledVoidIcon: () => any;
|
|
41
|
+
disabled: undefined;
|
|
42
|
+
textColor: string;
|
|
43
|
+
texts: () => string[];
|
|
44
|
+
scoreTemplate: string;
|
|
45
|
+
}>>> & {
|
|
67
46
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
68
47
|
onChange?: ((value: number) => any) | undefined;
|
|
69
48
|
}, {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
readonly texts: string[];
|
|
86
|
-
readonly scoreTemplate: string;
|
|
87
|
-
readonly allowHalf: boolean;
|
|
88
|
-
readonly showScore: boolean;
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
id: string;
|
|
51
|
+
modelValue: number;
|
|
52
|
+
max: number;
|
|
53
|
+
textColor: string;
|
|
54
|
+
colors: string[] | Record<number, string>;
|
|
55
|
+
lowThreshold: number;
|
|
56
|
+
highThreshold: number;
|
|
57
|
+
voidColor: string;
|
|
58
|
+
disabledVoidColor: string;
|
|
59
|
+
icons: Array<string | Component> | Record<number, string | Component>;
|
|
60
|
+
voidIcon: string | Component;
|
|
61
|
+
disabledVoidIcon: string | Component;
|
|
62
|
+
texts: string[];
|
|
63
|
+
scoreTemplate: string;
|
|
89
64
|
}, {}>;
|
|
90
65
|
declare const _default: typeof __VLS_export;
|
|
91
66
|
export default _default;
|
|
67
|
+
type __VLS_TypePropsToOption<T> = {
|
|
68
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
69
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
70
|
+
} : {
|
|
71
|
+
type: import('vue').PropType<T[K]>;
|
|
72
|
+
required: true;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
type __VLS_WithDefaultsLocal<P, D> = {
|
|
76
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
77
|
+
default: D[K];
|
|
78
|
+
}> : P[K];
|
|
79
|
+
};
|
|
80
|
+
type __VLS_PrettifyLocal<T> = {
|
|
81
|
+
[K in keyof T as K]: T[K];
|
|
82
|
+
} & {};
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var lodashUnified = require('lodash-unified');
|
|
7
7
|
var index$1 = require('../../icon/index.js');
|
|
8
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
8
9
|
var rate = require('./rate.js');
|
|
9
10
|
var constants = require('../../form/src/constants.js');
|
|
10
11
|
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
@@ -22,7 +23,35 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
22
23
|
name: "ElRate"
|
|
23
24
|
},
|
|
24
25
|
__name: "rate",
|
|
25
|
-
props:
|
|
26
|
+
props: {
|
|
27
|
+
modelValue: { type: Number, required: false, default: 0 },
|
|
28
|
+
id: { type: String, required: false, default: void 0 },
|
|
29
|
+
lowThreshold: { type: Number, required: false, default: 2 },
|
|
30
|
+
highThreshold: { type: Number, required: false, default: 4 },
|
|
31
|
+
max: { type: Number, required: false, default: 5 },
|
|
32
|
+
colors: { type: [Array, Object], required: false, default: () => ["", "", ""] },
|
|
33
|
+
voidColor: { type: String, required: false, default: "" },
|
|
34
|
+
disabledVoidColor: { type: String, required: false, default: "" },
|
|
35
|
+
icons: { type: [Array, Object], required: false, default: () => [iconsVue.StarFilled, iconsVue.StarFilled, iconsVue.StarFilled] },
|
|
36
|
+
voidIcon: { type: null, required: false, default: () => iconsVue.Star },
|
|
37
|
+
disabledVoidIcon: { type: null, required: false, default: () => iconsVue.StarFilled },
|
|
38
|
+
disabled: { type: Boolean, required: false, default: void 0 },
|
|
39
|
+
allowHalf: { type: Boolean, required: false },
|
|
40
|
+
showText: { type: Boolean, required: false },
|
|
41
|
+
showScore: { type: Boolean, required: false },
|
|
42
|
+
textColor: { type: String, required: false, default: "" },
|
|
43
|
+
texts: { type: Array, required: false, default: () => [
|
|
44
|
+
"Extremely bad",
|
|
45
|
+
"Disappointed",
|
|
46
|
+
"Fair",
|
|
47
|
+
"Satisfied",
|
|
48
|
+
"Surprise"
|
|
49
|
+
] },
|
|
50
|
+
scoreTemplate: { type: String, required: false, default: "{value}" },
|
|
51
|
+
size: { type: null, required: false },
|
|
52
|
+
clearable: { type: Boolean, required: false },
|
|
53
|
+
ariaLabel: { type: String, required: false }
|
|
54
|
+
},
|
|
26
55
|
emits: rate.rateEmits,
|
|
27
56
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
28
57
|
function getValueFromMap(value, map) {
|
|
@@ -213,12 +242,12 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
213
242
|
id: vue.unref(inputId),
|
|
214
243
|
class: vue.normalizeClass([rateClasses.value, vue.unref(ns).is("disabled", vue.unref(rateDisabled))]),
|
|
215
244
|
role: "slider",
|
|
216
|
-
"aria-label": !vue.unref(isLabeledByFormItem) ?
|
|
245
|
+
"aria-label": !vue.unref(isLabeledByFormItem) ? __props.ariaLabel || "rating" : void 0,
|
|
217
246
|
"aria-labelledby": vue.unref(isLabeledByFormItem) ? (_a = vue.unref(formItemContext)) == null ? void 0 : _a.labelId : void 0,
|
|
218
247
|
"aria-valuenow": currentValue.value,
|
|
219
248
|
"aria-valuetext": text.value || void 0,
|
|
220
249
|
"aria-valuemin": "0",
|
|
221
|
-
"aria-valuemax":
|
|
250
|
+
"aria-valuemax": __props.max,
|
|
222
251
|
tabindex: "0",
|
|
223
252
|
style: vue.normalizeStyle(rateStyles.value),
|
|
224
253
|
onKeydown: handleKey
|
|
@@ -226,7 +255,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
226
255
|
(vue.openBlock(true), vue.createElementBlock(
|
|
227
256
|
vue.Fragment,
|
|
228
257
|
null,
|
|
229
|
-
vue.renderList(
|
|
258
|
+
vue.renderList(__props.max, (item, key) => {
|
|
230
259
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
231
260
|
key,
|
|
232
261
|
class: vue.normalizeClass(vue.unref(ns).e("item")),
|
|
@@ -290,12 +319,12 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
290
319
|
128
|
|
291
320
|
/* KEYED_FRAGMENT */
|
|
292
321
|
)),
|
|
293
|
-
|
|
322
|
+
__props.showText || __props.showScore ? (vue.openBlock(), vue.createElementBlock(
|
|
294
323
|
"span",
|
|
295
324
|
{
|
|
296
325
|
key: 0,
|
|
297
326
|
class: vue.normalizeClass(vue.unref(ns).e("text")),
|
|
298
|
-
style: vue.normalizeStyle({ color:
|
|
327
|
+
style: vue.normalizeStyle({ color: __props.textColor })
|
|
299
328
|
},
|
|
300
329
|
vue.toDisplayString(text.value),
|
|
301
330
|
7
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rate.vue2.js","sources":["../../../../../../packages/components/rate/src/rate.vue"],"sourcesContent":["<template>\n <div\n :id=\"inputId\"\n :class=\"[rateClasses, ns.is('disabled', rateDisabled)]\"\n role=\"slider\"\n :aria-label=\"!isLabeledByFormItem ? ariaLabel || 'rating' : undefined\"\n :aria-labelledby=\"\n isLabeledByFormItem ? formItemContext?.labelId : undefined\n \"\n :aria-valuenow=\"currentValue\"\n :aria-valuetext=\"text || undefined\"\n aria-valuemin=\"0\"\n :aria-valuemax=\"max\"\n tabindex=\"0\"\n :style=\"rateStyles\"\n @keydown=\"handleKey\"\n >\n <span\n v-for=\"(item, key) in max\"\n :key=\"key\"\n :class=\"ns.e('item')\"\n @mousemove=\"setCurrentValue(item, $event)\"\n @mouseleave=\"resetCurrentValue\"\n @click=\"selectValue(item)\"\n >\n <el-icon\n ref=\"iconRefs\"\n :class=\"[\n ns.e('icon'),\n { hover: hoverIndex === item },\n ns.is('active', item <= currentValue),\n ns.is('focus-visible', item === Math.ceil(currentValue || 1)),\n ]\"\n >\n <component\n :is=\"activeComponent\"\n v-show=\"!showDecimalIcon(item) && item <= currentValue\"\n />\n <component\n :is=\"voidComponent\"\n v-show=\"!showDecimalIcon(item) && item > currentValue\"\n />\n <component\n :is=\"voidComponent\"\n v-show=\"showDecimalIcon(item)\"\n :class=\"[ns.em('decimal', 'box')]\"\n />\n <el-icon\n v-show=\"showDecimalIcon(item)\"\n :style=\"decimalStyle\"\n :class=\"[ns.e('icon'), ns.e('decimal')]\"\n >\n <component :is=\"decimalIconComponent\" />\n </el-icon>\n </el-icon>\n </span>\n <span\n v-if=\"showText || showScore\"\n :class=\"ns.e('text')\"\n :style=\"{ color: textColor }\"\n >\n {{ text }}\n </span>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, markRaw, ref, watch } from 'vue'\nimport { clamp } from 'lodash-unified'\nimport {\n CHANGE_EVENT,\n EVENT_CODE,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { getEventCode, isArray, isObject, isString } from '@element-plus/utils'\nimport {\n formItemContextKey,\n useFormDisabled,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { rateEmits, rateProps } from './rate'\n\nimport type { CSSProperties, Component } from 'vue'\nimport type { IconInstance } from '@element-plus/components/icon'\n\nfunction getValueFromMap<T>(\n value: number,\n map: Record<string, T | { excluded?: boolean; value: T }>\n) {\n const isExcludedObject = (\n val: unknown\n ): val is { excluded?: boolean } & Record<any, unknown> => isObject(val)\n\n const matchedKeys = Object.keys(map)\n .map((key) => +key)\n .filter((key) => {\n const val = map[key]\n const excluded = isExcludedObject(val) ? val.excluded : false\n return excluded ? value < key : value <= key\n })\n .sort((a, b) => a - b)\n const matchedValue = map[matchedKeys[0]]\n return (isExcludedObject(matchedValue) && matchedValue.value) || matchedValue\n}\n\ndefineOptions({\n name: 'ElRate',\n})\n\nconst props = defineProps(rateProps)\nconst emit = defineEmits(rateEmits)\n\nconst formItemContext = inject(formItemContextKey, undefined)\nconst rateSize = useFormSize()\nconst ns = useNamespace('rate')\nconst { inputId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext,\n})\n\nconst currentValue = ref(clamp(props.modelValue, 0, props.max))\nconst hoverIndex = ref(-1)\nconst pointerAtLeftHalf = ref(true)\n\nconst iconRefs = ref<IconInstance[]>([])\nconst iconClientWidths = computed<number[]>(() =>\n iconRefs.value.map((icon) => icon.$el.clientWidth)\n)\nconst rateClasses = computed(() => [ns.b(), ns.m(rateSize.value)])\nconst rateDisabled = useFormDisabled()\nconst rateStyles = computed(() => {\n return ns.cssVarBlock({\n 'void-color': props.voidColor,\n 'disabled-void-color': props.disabledVoidColor,\n 'fill-color': activeColor.value,\n }) as CSSProperties\n})\n\nconst text = computed(() => {\n let result = ''\n if (props.showScore) {\n result = props.scoreTemplate.replace(\n /\\{\\s*value\\s*\\}/,\n rateDisabled.value ? `${props.modelValue}` : `${currentValue.value}`\n )\n } else if (props.showText) {\n result = props.texts[Math.ceil(currentValue.value) - 1]\n }\n return result\n})\nconst valueDecimal = computed(\n () => props.modelValue * 100 - Math.floor(props.modelValue) * 100\n)\nconst colorMap = computed(() =>\n isArray(props.colors)\n ? {\n [props.lowThreshold]: props.colors[0],\n [props.highThreshold]: { value: props.colors[1], excluded: true },\n [props.max]: props.colors[2],\n }\n : props.colors\n)\nconst activeColor = computed(() => {\n const color = getValueFromMap(currentValue.value, colorMap.value)\n // {value: '', excluded: true} returned\n return isObject(color) ? '' : color\n})\nconst decimalStyle = computed(() => {\n let width = ''\n if (rateDisabled.value) {\n width = `${valueDecimal.value}%`\n } else if (props.allowHalf) {\n width = '50%'\n }\n return {\n color: activeColor.value,\n width,\n }\n})\nconst componentMap = computed(() => {\n let icons = isArray(props.icons) ? [...props.icons] : { ...props.icons }\n icons = markRaw(icons) as\n | Array<string | Component>\n | Record<number, string | Component>\n return isArray(icons)\n ? {\n [props.lowThreshold]: icons[0],\n [props.highThreshold]: {\n value: icons[1],\n excluded: true,\n },\n [props.max]: icons[2],\n }\n : icons\n})\nconst decimalIconComponent = computed(() =>\n getValueFromMap(props.modelValue, componentMap.value)\n)\nconst voidComponent = computed(() =>\n rateDisabled.value\n ? isString(props.disabledVoidIcon)\n ? props.disabledVoidIcon\n : (markRaw(props.disabledVoidIcon) as Component)\n : isString(props.voidIcon)\n ? props.voidIcon\n : (markRaw(props.voidIcon) as Component)\n)\nconst activeComponent = computed(() =>\n getValueFromMap(currentValue.value, componentMap.value)\n)\n\nfunction showDecimalIcon(item: number) {\n const showWhenDisabled =\n rateDisabled.value &&\n valueDecimal.value > 0 &&\n item - 1 < props.modelValue &&\n item > props.modelValue\n const showWhenAllowHalf =\n props.allowHalf &&\n pointerAtLeftHalf.value &&\n item - 0.5 <= currentValue.value &&\n item > currentValue.value\n return showWhenDisabled || showWhenAllowHalf\n}\n\nfunction emitValue(value: number) {\n // if allow clear, and selected value is same as modelValue, reset value to 0\n if (props.clearable && value === props.modelValue) {\n value = 0\n }\n\n emit(UPDATE_MODEL_EVENT, value)\n if (props.modelValue !== value) {\n emit(CHANGE_EVENT, value)\n }\n}\n\nfunction selectValue(value: number) {\n if (rateDisabled.value) {\n return\n }\n if (props.allowHalf && pointerAtLeftHalf.value) {\n emitValue(currentValue.value)\n } else {\n emitValue(value)\n }\n}\n\nfunction handleKey(e: KeyboardEvent) {\n if (rateDisabled.value) {\n return\n }\n const code = getEventCode(e)\n const step = props.allowHalf ? 0.5 : 1\n let _currentValue = currentValue.value\n\n switch (code) {\n case EVENT_CODE.up:\n case EVENT_CODE.right:\n _currentValue += step\n break\n case EVENT_CODE.left:\n case EVENT_CODE.down:\n _currentValue -= step\n break\n }\n\n _currentValue = clamp(_currentValue, 0, props.max)\n\n if (_currentValue === currentValue.value) {\n return\n }\n\n e.stopPropagation()\n e.preventDefault()\n emit(UPDATE_MODEL_EVENT, _currentValue)\n emit(CHANGE_EVENT, _currentValue)\n return _currentValue\n}\n\nfunction setCurrentValue(value: number, event?: MouseEvent) {\n if (rateDisabled.value) {\n return\n }\n if (props.allowHalf && event) {\n pointerAtLeftHalf.value =\n event.offsetX * 2 <= iconClientWidths.value[value - 1]\n currentValue.value = pointerAtLeftHalf.value ? value - 0.5 : value\n } else {\n currentValue.value = value\n }\n hoverIndex.value = value\n}\n\nfunction resetCurrentValue() {\n if (rateDisabled.value) {\n return\n }\n if (props.allowHalf) {\n pointerAtLeftHalf.value = props.modelValue !== Math.floor(props.modelValue)\n }\n currentValue.value = clamp(props.modelValue, 0, props.max)\n hoverIndex.value = -1\n}\n\nwatch(\n () => props.modelValue,\n (val) => {\n currentValue.value = clamp(val, 0, props.max)\n pointerAtLeftHalf.value = props.modelValue !== Math.floor(props.modelValue)\n }\n)\n\nif (!props.modelValue) {\n emit(UPDATE_MODEL_EVENT, 0)\n}\n\ndefineExpose({\n /** @description set current value */\n setCurrentValue,\n /** @description reset current value */\n resetCurrentValue,\n})\n</script>\n"],"names":["isObject","inject","formItemContextKey","useFormSize","useNamespace","useFormItemInputId","ref","clamp","computed","useFormDisabled","isArray","markRaw","isString","UPDATE_MODEL_EVENT","CHANGE_EVENT","getEventCode","EVENT_CODE","watch","_createElementBlock","_unref","ariaLabel","max","_openBlock","_Fragment","_renderList","_normalizeClass","_createVNode","ElIcon","_withDirectives","_createBlock","_resolveDynamicComponent","_vShow","showText","showScore","textColor"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAwFA,IAAA,SAAS,eAAA,CACP,OACA,GAAA,EACA;AACA,MAAA,MAAM,gBAAA,GAAmB,CACvB,GAAA,KACyDA,eAAA,CAAS,GAAG,CAAA;AAEvE,MAAA,MAAM,WAAA,GAAc,MAAA,CAAO,IAAA,CAAK,GAAG,CAAA,CAChC,GAAA,CAAI,CAAC,GAAA,KAAQ,CAAC,GAAG,CAAA,CACjB,MAAA,CAAO,CAAC,GAAA,KAAQ;AACf,QAAA,MAAM,GAAA,GAAM,IAAI,GAAG,CAAA;AACnB,QAAA,MAAM,QAAA,GAAW,gBAAA,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AAA,KAAa,CAAA,EAAA;AAAA,oBAEjB,KAAA,EAAKL,kBAAA,CAAA,CAAGN,SAAA,CAAA,EAAA,EAAG,EAAA,CAAE,SAAA,EAAA,KAAA,CAAA,CAAA;AAAA;oBADN,CAAAY,SAAA,EAAA,eAAA,CAAgB,IAAI,CAAA;AAAA;qCAG9BL,eAAA,CAMUP,SAAA,CAAAQ,cAAA,CAAA,EAAA;AAAA,oBAJP,KAAA,qBAAO,YAAA,CAAA,KAAY,CAAA;AAAA,oBACnB,KAAA,sBAAQR,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,MAAA,CAAA,EAAUA,UAAA,EAAA,CAAA,CAAG,CAAA,CAAC,SAAA,CAAA,CAAA;AAAA;yCAE3B,MAAwC;AAAA,uBAAxCG,eAAA,EAAAO,eAAA,CAAwCC,2BAAA,CAAxB,oBAAA,CAAA,KAAoB,CAAA,CAAA;AAAA;;;;oBAJ5B,CAAAC,SAAA,EAAA,eAAA,CAAgB,IAAI,CAAA;AAAA;;;;;;;;;;QAS1BC,IAAAA,CAAAA,QAAAA,IAAYC,IAAAA,CAAAA,SAAAA,qBADpBf,sBAAA;AAAA,UAMO,MAAA;AAAA,UAAA;AAAA;YAJJ,OAAKO,kBAAA,CAAEN,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,MAAA,CAAA,CAAA;AAAA,YACX,mCAAgBe,IAAAA,CAAAA,WAAS;AAAA;8BAEvB,KAAA,KAAI,CAAA;AAAA,UAAA;AAAA;AAAA,SAAA;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"rate.vue2.js","sources":["../../../../../../packages/components/rate/src/rate.vue"],"sourcesContent":["<template>\n <div\n :id=\"inputId\"\n :class=\"[rateClasses, ns.is('disabled', rateDisabled)]\"\n role=\"slider\"\n :aria-label=\"!isLabeledByFormItem ? ariaLabel || 'rating' : undefined\"\n :aria-labelledby=\"\n isLabeledByFormItem ? formItemContext?.labelId : undefined\n \"\n :aria-valuenow=\"currentValue\"\n :aria-valuetext=\"text || undefined\"\n aria-valuemin=\"0\"\n :aria-valuemax=\"max\"\n tabindex=\"0\"\n :style=\"rateStyles\"\n @keydown=\"handleKey\"\n >\n <span\n v-for=\"(item, key) in max\"\n :key=\"key\"\n :class=\"ns.e('item')\"\n @mousemove=\"setCurrentValue(item, $event)\"\n @mouseleave=\"resetCurrentValue\"\n @click=\"selectValue(item)\"\n >\n <el-icon\n ref=\"iconRefs\"\n :class=\"[\n ns.e('icon'),\n { hover: hoverIndex === item },\n ns.is('active', item <= currentValue),\n ns.is('focus-visible', item === Math.ceil(currentValue || 1)),\n ]\"\n >\n <component\n :is=\"activeComponent\"\n v-show=\"!showDecimalIcon(item) && item <= currentValue\"\n />\n <component\n :is=\"voidComponent\"\n v-show=\"!showDecimalIcon(item) && item > currentValue\"\n />\n <component\n :is=\"voidComponent\"\n v-show=\"showDecimalIcon(item)\"\n :class=\"[ns.em('decimal', 'box')]\"\n />\n <el-icon\n v-show=\"showDecimalIcon(item)\"\n :style=\"decimalStyle\"\n :class=\"[ns.e('icon'), ns.e('decimal')]\"\n >\n <component :is=\"decimalIconComponent\" />\n </el-icon>\n </el-icon>\n </span>\n <span\n v-if=\"showText || showScore\"\n :class=\"ns.e('text')\"\n :style=\"{ color: textColor }\"\n >\n {{ text }}\n </span>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, markRaw, ref, watch } from 'vue'\nimport { clamp } from 'lodash-unified'\nimport {\n CHANGE_EVENT,\n EVENT_CODE,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { getEventCode, isArray, isObject, isString } from '@element-plus/utils'\nimport {\n formItemContextKey,\n useFormDisabled,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { Star, StarFilled } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { rateEmits } from './rate'\n\nimport type { CSSProperties, Component } from 'vue'\nimport type { IconInstance } from '@element-plus/components/icon'\nimport type { RateProps } from './rate'\n\nfunction getValueFromMap<T>(\n value: number,\n map: Record<string, T | { excluded?: boolean; value: T }>\n) {\n const isExcludedObject = (\n val: unknown\n ): val is { excluded?: boolean } & Record<any, unknown> => isObject(val)\n\n const matchedKeys = Object.keys(map)\n .map((key) => +key)\n .filter((key) => {\n const val = map[key]\n const excluded = isExcludedObject(val) ? val.excluded : false\n return excluded ? value < key : value <= key\n })\n .sort((a, b) => a - b)\n const matchedValue = map[matchedKeys[0]]\n return (isExcludedObject(matchedValue) && matchedValue.value) || matchedValue\n}\n\ndefineOptions({\n name: 'ElRate',\n})\n\nconst props = withDefaults(defineProps<RateProps>(), {\n modelValue: 0,\n id: undefined,\n lowThreshold: 2,\n highThreshold: 4,\n max: 5,\n colors: () => ['', '', ''],\n voidColor: '',\n disabledVoidColor: '',\n icons: () => [StarFilled, StarFilled, StarFilled],\n voidIcon: () => Star,\n disabledVoidIcon: () => StarFilled,\n disabled: undefined,\n textColor: '',\n texts: () => [\n 'Extremely bad',\n 'Disappointed',\n 'Fair',\n 'Satisfied',\n 'Surprise',\n ],\n scoreTemplate: '{value}',\n})\nconst emit = defineEmits(rateEmits)\n\nconst formItemContext = inject(formItemContextKey, undefined)\nconst rateSize = useFormSize()\nconst ns = useNamespace('rate')\nconst { inputId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext,\n})\n\nconst currentValue = ref(clamp(props.modelValue, 0, props.max))\nconst hoverIndex = ref(-1)\nconst pointerAtLeftHalf = ref(true)\n\nconst iconRefs = ref<IconInstance[]>([])\nconst iconClientWidths = computed<number[]>(() =>\n iconRefs.value.map((icon) => icon.$el.clientWidth)\n)\nconst rateClasses = computed(() => [ns.b(), ns.m(rateSize.value)])\nconst rateDisabled = useFormDisabled()\nconst rateStyles = computed(() => {\n return ns.cssVarBlock({\n 'void-color': props.voidColor,\n 'disabled-void-color': props.disabledVoidColor,\n 'fill-color': activeColor.value,\n }) as CSSProperties\n})\n\nconst text = computed(() => {\n let result = ''\n if (props.showScore) {\n result = props.scoreTemplate.replace(\n /\\{\\s*value\\s*\\}/,\n rateDisabled.value ? `${props.modelValue}` : `${currentValue.value}`\n )\n } else if (props.showText) {\n result = props.texts[Math.ceil(currentValue.value) - 1]\n }\n return result\n})\nconst valueDecimal = computed(\n () => props.modelValue * 100 - Math.floor(props.modelValue) * 100\n)\nconst colorMap = computed(() =>\n isArray(props.colors)\n ? {\n [props.lowThreshold]: props.colors[0],\n [props.highThreshold]: { value: props.colors[1], excluded: true },\n [props.max]: props.colors[2],\n }\n : props.colors\n)\nconst activeColor = computed(() => {\n const color = getValueFromMap(currentValue.value, colorMap.value)\n // {value: '', excluded: true} returned\n return isObject(color) ? '' : color\n})\nconst decimalStyle = computed(() => {\n let width = ''\n if (rateDisabled.value) {\n width = `${valueDecimal.value}%`\n } else if (props.allowHalf) {\n width = '50%'\n }\n return {\n color: activeColor.value,\n width,\n }\n})\nconst componentMap = computed(() => {\n let icons = isArray(props.icons) ? [...props.icons] : { ...props.icons }\n icons = markRaw(icons) as\n | Array<string | Component>\n | Record<number, string | Component>\n return isArray(icons)\n ? {\n [props.lowThreshold]: icons[0],\n [props.highThreshold]: {\n value: icons[1],\n excluded: true,\n },\n [props.max]: icons[2],\n }\n : icons\n})\nconst decimalIconComponent = computed(() =>\n getValueFromMap(props.modelValue, componentMap.value)\n)\nconst voidComponent = computed(() =>\n rateDisabled.value\n ? isString(props.disabledVoidIcon)\n ? props.disabledVoidIcon\n : (markRaw(props.disabledVoidIcon) as Component)\n : isString(props.voidIcon)\n ? props.voidIcon\n : (markRaw(props.voidIcon) as Component)\n)\nconst activeComponent = computed(() =>\n getValueFromMap(currentValue.value, componentMap.value)\n)\n\nfunction showDecimalIcon(item: number) {\n const showWhenDisabled =\n rateDisabled.value &&\n valueDecimal.value > 0 &&\n item - 1 < props.modelValue &&\n item > props.modelValue\n const showWhenAllowHalf =\n props.allowHalf &&\n pointerAtLeftHalf.value &&\n item - 0.5 <= currentValue.value &&\n item > currentValue.value\n return showWhenDisabled || showWhenAllowHalf\n}\n\nfunction emitValue(value: number) {\n // if allow clear, and selected value is same as modelValue, reset value to 0\n if (props.clearable && value === props.modelValue) {\n value = 0\n }\n\n emit(UPDATE_MODEL_EVENT, value)\n if (props.modelValue !== value) {\n emit(CHANGE_EVENT, value)\n }\n}\n\nfunction selectValue(value: number) {\n if (rateDisabled.value) {\n return\n }\n if (props.allowHalf && pointerAtLeftHalf.value) {\n emitValue(currentValue.value)\n } else {\n emitValue(value)\n }\n}\n\nfunction handleKey(e: KeyboardEvent) {\n if (rateDisabled.value) {\n return\n }\n const code = getEventCode(e)\n const step = props.allowHalf ? 0.5 : 1\n let _currentValue = currentValue.value\n\n switch (code) {\n case EVENT_CODE.up:\n case EVENT_CODE.right:\n _currentValue += step\n break\n case EVENT_CODE.left:\n case EVENT_CODE.down:\n _currentValue -= step\n break\n }\n\n _currentValue = clamp(_currentValue, 0, props.max)\n\n if (_currentValue === currentValue.value) {\n return\n }\n\n e.stopPropagation()\n e.preventDefault()\n emit(UPDATE_MODEL_EVENT, _currentValue)\n emit(CHANGE_EVENT, _currentValue)\n return _currentValue\n}\n\nfunction setCurrentValue(value: number, event?: MouseEvent) {\n if (rateDisabled.value) {\n return\n }\n if (props.allowHalf && event) {\n pointerAtLeftHalf.value =\n event.offsetX * 2 <= iconClientWidths.value[value - 1]\n currentValue.value = pointerAtLeftHalf.value ? value - 0.5 : value\n } else {\n currentValue.value = value\n }\n hoverIndex.value = value\n}\n\nfunction resetCurrentValue() {\n if (rateDisabled.value) {\n return\n }\n if (props.allowHalf) {\n pointerAtLeftHalf.value = props.modelValue !== Math.floor(props.modelValue)\n }\n currentValue.value = clamp(props.modelValue, 0, props.max)\n hoverIndex.value = -1\n}\n\nwatch(\n () => props.modelValue,\n (val) => {\n currentValue.value = clamp(val, 0, props.max)\n pointerAtLeftHalf.value = props.modelValue !== Math.floor(props.modelValue)\n }\n)\n\nif (!props.modelValue) {\n emit(UPDATE_MODEL_EVENT, 0)\n}\n\ndefineExpose({\n /** @description set current value */\n setCurrentValue,\n /** @description reset current value */\n resetCurrentValue,\n})\n</script>\n"],"names":["isObject","inject","formItemContextKey","useFormSize","useNamespace","useFormItemInputId","ref","clamp","computed","useFormDisabled","isArray","markRaw","isString","UPDATE_MODEL_EVENT","CHANGE_EVENT","getEventCode","EVENT_CODE","watch","_createElementBlock","_unref","_openBlock","_Fragment","_renderList","_normalizeClass","_createVNode","ElIcon","_withDirectives","_createBlock","_resolveDynamicComponent","_vShow"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0FA,IAAA,SAAS,eAAA,CACP,OACA,GAAA,EACA;AACA,MAAA,MAAM,gBAAA,GAAmB,CACvB,GAAA,KACyDA,eAAA,CAAS,GAAG,CAAA;AAEvE,MAAA,MAAM,WAAA,GAAc,MAAA,CAAO,IAAA,CAAK,GAAG,CAAA,CAChC,GAAA,CAAI,CAAC,GAAA,KAAQ,CAAC,GAAG,CAAA,CACjB,MAAA,CAAO,CAAC,GAAA,KAAQ;AACf,QAAA,MAAM,GAAA,GAAM,IAAI,GAAG,CAAA;AACnB,QAAA,MAAM,QAAA,GAAW,gBAAA,CAAiB,GAAG,CAAA,GAAI,IAAI,QAAA,GAAW,KAAA;AACxD,QAAA,OAAO,QAAA,GAAW,KAAA,GAAQ,GAAA,GAAM,KAAA,IAAS,GAAA;AAAA,MAC3C,CAAC,CAAA,CACA,IAAA,CAAK,CAAC,CAAA,EAAG,CAAA,KAAM,IAAI,CAAC,CAAA;AACvB,MAAA,MAAM,YAAA,GAAe,GAAA,CAAI,WAAA,CAAY,CAAC,CAAC,CAAA;AACvC,MAAA,OAAQ,gBAAA,CAAiB,YAAY,CAAA,IAAK,YAAA,CAAa,KAAA,IAAU,YAAA;AAAA,IACnE;AAMA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAuBd,IAAA,MAAM,IAAA,GAAO,MAAA;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AAwC;AAAA,uBAAxCC,eAAA,EAAAO,eAAA,CAAwCC,2BAAA,CAAxB,oBAAA,CAAA,KAAoB,CAAA,CAAA;AAAA;;;;oBAJ5B,CAAAC,SAAA,EAAA,eAAA,CAAgB,IAAI,CAAA;AAAA;;;;;;;;;;QAS1B,OAAA,CAAA,QAAA,IAAY,OAAA,CAAA,SAAA,qBADpBX,sBAAA;AAAA,UAMO,MAAA;AAAA,UAAA;AAAA;YAJJ,OAAKK,kBAAA,CAAEJ,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,MAAA,CAAA,CAAA;AAAA,YACX,mCAAgB,OAAA,CAAA,WAAS;AAAA;8BAEvB,KAAA,KAAI,CAAA;AAAA,UAAA;AAAA;AAAA,SAAA;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Component,
|
|
1
|
+
import type { Component, ExtractPublicPropTypes } from 'vue';
|
|
2
2
|
import type Result from './result.vue';
|
|
3
3
|
export declare const IconMap: {
|
|
4
4
|
readonly primary: "icon-primary";
|
|
@@ -8,11 +8,24 @@ export declare const IconMap: {
|
|
|
8
8
|
readonly info: "icon-info";
|
|
9
9
|
};
|
|
10
10
|
export declare const IconComponentMap: Record<(typeof IconMap)[keyof typeof IconMap], Component>;
|
|
11
|
+
export interface ResultProps {
|
|
12
|
+
/**
|
|
13
|
+
* @description title of result
|
|
14
|
+
*/
|
|
15
|
+
title?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @description sub title of result
|
|
18
|
+
*/
|
|
19
|
+
subTitle?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @description icon type of result
|
|
22
|
+
*/
|
|
23
|
+
icon?: 'primary' | 'success' | 'warning' | 'info' | 'error';
|
|
24
|
+
}
|
|
11
25
|
export declare const resultProps: {
|
|
12
26
|
readonly title: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
13
27
|
readonly subTitle: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
14
28
|
readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "primary" | "success" | "warning" | "info", unknown, "info", boolean>;
|
|
15
29
|
};
|
|
16
|
-
export type ResultProps = ExtractPropTypes<typeof resultProps>;
|
|
17
30
|
export type ResultPropsPublic = ExtractPublicPropTypes<typeof resultProps>;
|
|
18
31
|
export type ResultInstance = InstanceType<typeof Result> & unknown;
|