@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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TourProps } from './tour';
|
|
1
2
|
declare var __VLS_25: {}, __VLS_27: {
|
|
2
3
|
current: number;
|
|
3
4
|
total: number;
|
|
@@ -7,107 +8,45 @@ type __VLS_Slots = {} & {
|
|
|
7
8
|
} & {
|
|
8
9
|
indicators?: (props: typeof __VLS_27) => any;
|
|
9
10
|
};
|
|
10
|
-
declare const __VLS_base: import("vue").DefineComponent<{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
readonly required: false;
|
|
18
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
|
-
__epPropKey: true;
|
|
20
|
-
};
|
|
21
|
-
placement: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/utils").Placement) | ((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/utils").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, string, boolean>;
|
|
22
|
-
contentStyle: {
|
|
23
|
-
readonly type: import("vue").PropType<import("vue").CSSProperties>;
|
|
24
|
-
readonly required: false;
|
|
25
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
26
|
-
__epPropKey: true;
|
|
27
|
-
};
|
|
28
|
-
mask: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => boolean | {
|
|
29
|
-
style?: import("vue").CSSProperties;
|
|
30
|
-
color?: string;
|
|
31
|
-
}) | (() => import("element-plus").TourMask) | ((new (...args: any[]) => boolean | {
|
|
32
|
-
style?: import("vue").CSSProperties;
|
|
33
|
-
color?: string;
|
|
34
|
-
}) | (() => import("element-plus").TourMask))[], unknown, unknown, boolean, boolean>;
|
|
35
|
-
gap: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").TourGap) | (() => import("element-plus").TourGap) | ((new (...args: any[]) => import("element-plus").TourGap) | (() => import("element-plus").TourGap))[], unknown, unknown, () => {
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<TourProps>, {
|
|
12
|
+
current: number;
|
|
13
|
+
showArrow: boolean;
|
|
14
|
+
showClose: boolean;
|
|
15
|
+
placement: string;
|
|
16
|
+
mask: boolean;
|
|
17
|
+
gap: () => {
|
|
36
18
|
offset: number;
|
|
37
19
|
radius: number;
|
|
38
|
-
}, boolean>;
|
|
39
|
-
zIndex: {
|
|
40
|
-
readonly type: import("vue").PropType<number>;
|
|
41
|
-
readonly required: false;
|
|
42
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
43
|
-
__epPropKey: true;
|
|
44
20
|
};
|
|
45
|
-
scrollIntoViewOptions:
|
|
21
|
+
scrollIntoViewOptions: () => {
|
|
46
22
|
block: string;
|
|
47
|
-
}, boolean>;
|
|
48
|
-
type: {
|
|
49
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "default" | "primary") | (() => "default" | "primary") | ((new (...args: any[]) => "default" | "primary") | (() => "default" | "primary"))[], unknown, unknown>>;
|
|
50
|
-
readonly required: false;
|
|
51
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
52
|
-
__epPropKey: true;
|
|
53
23
|
};
|
|
54
|
-
appendTo:
|
|
55
|
-
closeOnPressEscape:
|
|
56
|
-
targetAreaClickable:
|
|
57
|
-
}
|
|
24
|
+
appendTo: string;
|
|
25
|
+
closeOnPressEscape: boolean;
|
|
26
|
+
targetAreaClickable: boolean;
|
|
27
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
58
28
|
"update:modelValue": (value: boolean) => void;
|
|
59
29
|
change: (current: number) => void;
|
|
60
30
|
close: (current: number) => void;
|
|
61
31
|
finish: () => void;
|
|
62
32
|
"update:current": (current: number) => void;
|
|
63
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
readonly required: false;
|
|
71
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
72
|
-
__epPropKey: true;
|
|
73
|
-
};
|
|
74
|
-
placement: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/utils").Placement) | ((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/utils").Placement))[], "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, string, boolean>;
|
|
75
|
-
contentStyle: {
|
|
76
|
-
readonly type: import("vue").PropType<import("vue").CSSProperties>;
|
|
77
|
-
readonly required: false;
|
|
78
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
79
|
-
__epPropKey: true;
|
|
80
|
-
};
|
|
81
|
-
mask: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => boolean | {
|
|
82
|
-
style?: import("vue").CSSProperties;
|
|
83
|
-
color?: string;
|
|
84
|
-
}) | (() => import("element-plus").TourMask) | ((new (...args: any[]) => boolean | {
|
|
85
|
-
style?: import("vue").CSSProperties;
|
|
86
|
-
color?: string;
|
|
87
|
-
}) | (() => import("element-plus").TourMask))[], unknown, unknown, boolean, boolean>;
|
|
88
|
-
gap: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").TourGap) | (() => import("element-plus").TourGap) | ((new (...args: any[]) => import("element-plus").TourGap) | (() => import("element-plus").TourGap))[], unknown, unknown, () => {
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<TourProps>, {
|
|
34
|
+
current: number;
|
|
35
|
+
showArrow: boolean;
|
|
36
|
+
showClose: boolean;
|
|
37
|
+
placement: string;
|
|
38
|
+
mask: boolean;
|
|
39
|
+
gap: () => {
|
|
89
40
|
offset: number;
|
|
90
41
|
radius: number;
|
|
91
|
-
}, boolean>;
|
|
92
|
-
zIndex: {
|
|
93
|
-
readonly type: import("vue").PropType<number>;
|
|
94
|
-
readonly required: false;
|
|
95
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
|
-
__epPropKey: true;
|
|
97
42
|
};
|
|
98
|
-
scrollIntoViewOptions:
|
|
43
|
+
scrollIntoViewOptions: () => {
|
|
99
44
|
block: string;
|
|
100
|
-
}, boolean>;
|
|
101
|
-
type: {
|
|
102
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "default" | "primary") | (() => "default" | "primary") | ((new (...args: any[]) => "default" | "primary") | (() => "default" | "primary"))[], unknown, unknown>>;
|
|
103
|
-
readonly required: false;
|
|
104
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
105
|
-
__epPropKey: true;
|
|
106
45
|
};
|
|
107
|
-
appendTo:
|
|
108
|
-
closeOnPressEscape:
|
|
109
|
-
targetAreaClickable:
|
|
110
|
-
}
|
|
46
|
+
appendTo: string;
|
|
47
|
+
closeOnPressEscape: boolean;
|
|
48
|
+
targetAreaClickable: boolean;
|
|
49
|
+
}>>> & {
|
|
111
50
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
112
51
|
onChange?: ((current: number) => any) | undefined;
|
|
113
52
|
onClose?: ((current: number) => any) | undefined;
|
|
@@ -116,21 +55,36 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
116
55
|
}, {
|
|
117
56
|
mask: import("element-plus").TourMask;
|
|
118
57
|
gap: import("element-plus").TourGap;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
closeOnPressEscape: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
58
|
+
placement: import("@floating-ui/utils").Placement;
|
|
59
|
+
appendTo: string | HTMLElement;
|
|
60
|
+
scrollIntoViewOptions: boolean | ScrollIntoViewOptions;
|
|
61
|
+
showArrow: boolean;
|
|
62
|
+
showClose: boolean;
|
|
63
|
+
closeOnPressEscape: boolean;
|
|
126
64
|
current: number;
|
|
127
|
-
targetAreaClickable:
|
|
65
|
+
targetAreaClickable: boolean;
|
|
128
66
|
}, {}>;
|
|
129
67
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
130
68
|
declare const _default: typeof __VLS_export;
|
|
131
69
|
export default _default;
|
|
70
|
+
type __VLS_TypePropsToOption<T> = {
|
|
71
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
72
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
73
|
+
} : {
|
|
74
|
+
type: import('vue').PropType<T[K]>;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
type __VLS_WithDefaultsLocal<P, D> = {
|
|
79
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
80
|
+
default: D[K];
|
|
81
|
+
}> : P[K];
|
|
82
|
+
};
|
|
132
83
|
type __VLS_WithSlots<T, S> = T & {
|
|
133
84
|
new (): {
|
|
134
85
|
$slots: S;
|
|
135
86
|
};
|
|
136
87
|
};
|
|
88
|
+
type __VLS_PrettifyLocal<T> = {
|
|
89
|
+
[K in keyof T as K]: T[K];
|
|
90
|
+
} & {};
|
|
@@ -21,7 +21,23 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
21
|
inheritAttrs: false
|
|
22
22
|
},
|
|
23
23
|
__name: "tour",
|
|
24
|
-
props:
|
|
24
|
+
props: {
|
|
25
|
+
modelValue: { type: Boolean, required: false },
|
|
26
|
+
current: { type: Number, required: false, default: 0 },
|
|
27
|
+
showArrow: { type: Boolean, required: false, default: true },
|
|
28
|
+
showClose: { type: Boolean, required: false, default: true },
|
|
29
|
+
closeIcon: { type: null, required: false },
|
|
30
|
+
placement: { type: [String, Object], required: false, default: "bottom" },
|
|
31
|
+
contentStyle: { type: Object, required: false },
|
|
32
|
+
mask: { type: [Boolean, Object], required: false, default: true },
|
|
33
|
+
gap: { type: Object, required: false, default: () => ({ offset: 6, radius: 2 }) },
|
|
34
|
+
zIndex: { type: Number, required: false },
|
|
35
|
+
scrollIntoViewOptions: { type: Boolean, required: false, skipCheck: true, default: () => ({ block: "center" }) },
|
|
36
|
+
type: { type: String, required: false },
|
|
37
|
+
appendTo: { type: null, required: false, default: "body" },
|
|
38
|
+
closeOnPressEscape: { type: Boolean, required: false, default: true },
|
|
39
|
+
targetAreaClickable: { type: Boolean, required: false, default: true }
|
|
40
|
+
},
|
|
25
41
|
emits: tour.tourEmits,
|
|
26
42
|
setup(__props, { emit: __emit }) {
|
|
27
43
|
const props = __props;
|
|
@@ -134,7 +150,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
134
150
|
vue.Fragment,
|
|
135
151
|
null,
|
|
136
152
|
[
|
|
137
|
-
vue.createVNode(vue.unref(index$2.ElTeleport), { to:
|
|
153
|
+
vue.createVNode(vue.unref(index$2.ElTeleport), { to: __props.appendTo }, {
|
|
138
154
|
default: vue.withCtx(() => {
|
|
139
155
|
var _a, _b;
|
|
140
156
|
return [
|
|
@@ -148,9 +164,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
148
164
|
style: vue.normalizeStyle((_b = mergedMaskStyle.value) == null ? void 0 : _b.style),
|
|
149
165
|
pos: vue.unref(pos),
|
|
150
166
|
"z-index": mergedZIndex.value,
|
|
151
|
-
"target-area-clickable":
|
|
167
|
+
"target-area-clickable": __props.targetAreaClickable
|
|
152
168
|
}, null, 8, ["visible", "fill", "style", "pos", "z-index", "target-area-clickable"]),
|
|
153
|
-
|
|
169
|
+
__props.modelValue ? (vue.openBlock(), vue.createBlock(content_vue_vue_type_script_setup_true_lang.default, {
|
|
154
170
|
key: vue.unref(current),
|
|
155
171
|
reference: vue.unref(triggerTarget),
|
|
156
172
|
placement: mergedPlacement.value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tour.vue2.js","sources":["../../../../../../packages/components/tour/src/tour.vue"],"sourcesContent":["<template>\n <el-teleport :to=\"appendTo\">\n <div :class=\"kls\" v-bind=\"$attrs\">\n <el-tour-mask\n :visible=\"mergedShowMask\"\n :fill=\"mergedMaskStyle?.color\"\n :style=\"mergedMaskStyle?.style\"\n :pos=\"pos\"\n :z-index=\"mergedZIndex\"\n :target-area-clickable=\"targetAreaClickable\"\n />\n <el-tour-content\n v-if=\"modelValue\"\n :key=\"current\"\n :reference=\"triggerTarget\"\n :placement=\"mergedPlacement\"\n :show-arrow=\"mergedShowArrow\"\n :z-index=\"mergedZIndex\"\n :style=\"mergedContentStyle\"\n @close=\"onEscClose\"\n >\n <el-tour-steps :current=\"current\" @update-total=\"onUpdateTotal\">\n <slot />\n </el-tour-steps>\n </el-tour-content>\n </div>\n </el-teleport>\n <!-- just for IDE -->\n <slot v-if=\"false\" name=\"indicators\" :current=\"current + 1\" :total=\"total\" />\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, provide, ref, toRef, useSlots, watch } from 'vue'\nimport { useVModel } from '@vueuse/core'\nimport { useNamespace, useZIndex } from '@element-plus/hooks'\nimport { isBoolean } from '@element-plus/utils'\nimport ElTeleport from '@element-plus/components/teleport'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport ElTourMask from './mask.vue'\nimport ElTourContent from './content.vue'\nimport ElTourSteps from './steps'\nimport { tourEmits
|
|
1
|
+
{"version":3,"file":"tour.vue2.js","sources":["../../../../../../packages/components/tour/src/tour.vue"],"sourcesContent":["<template>\n <el-teleport :to=\"appendTo\">\n <div :class=\"kls\" v-bind=\"$attrs\">\n <el-tour-mask\n :visible=\"mergedShowMask\"\n :fill=\"mergedMaskStyle?.color\"\n :style=\"mergedMaskStyle?.style\"\n :pos=\"pos\"\n :z-index=\"mergedZIndex\"\n :target-area-clickable=\"targetAreaClickable\"\n />\n <el-tour-content\n v-if=\"modelValue\"\n :key=\"current\"\n :reference=\"triggerTarget\"\n :placement=\"mergedPlacement\"\n :show-arrow=\"mergedShowArrow\"\n :z-index=\"mergedZIndex\"\n :style=\"mergedContentStyle\"\n @close=\"onEscClose\"\n >\n <el-tour-steps :current=\"current\" @update-total=\"onUpdateTotal\">\n <slot />\n </el-tour-steps>\n </el-tour-content>\n </div>\n </el-teleport>\n <!-- just for IDE -->\n <slot v-if=\"false\" name=\"indicators\" :current=\"current + 1\" :total=\"total\" />\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, provide, ref, toRef, useSlots, watch } from 'vue'\nimport { useVModel } from '@vueuse/core'\nimport { useNamespace, useZIndex } from '@element-plus/hooks'\nimport { isBoolean } from '@element-plus/utils'\nimport ElTeleport from '@element-plus/components/teleport'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport ElTourMask from './mask.vue'\nimport ElTourContent from './content.vue'\nimport ElTourSteps from './steps'\nimport { tourEmits } from './tour'\nimport { tourKey, useTarget } from './helper'\n\nimport type { TourStepProps } from './step'\nimport type { TourProps } from './tour'\n\ndefineOptions({\n name: 'ElTour',\n inheritAttrs: false,\n})\n\nconst props = withDefaults(defineProps<TourProps>(), {\n current: 0,\n showArrow: true,\n showClose: true,\n placement: 'bottom',\n mask: true,\n gap: () => ({ offset: 6, radius: 2 }),\n scrollIntoViewOptions: () => ({ block: 'center' }),\n appendTo: 'body',\n closeOnPressEscape: true,\n targetAreaClickable: true,\n})\nconst emit = defineEmits(tourEmits)\n\nconst ns = useNamespace('tour')\nconst total = ref(0)\nconst currentStep = ref<TourStepProps>()\n\nconst current = useVModel(props, 'current', emit, {\n passive: true,\n})\n\nconst currentTarget = computed(() => currentStep.value?.target)\n\nconst kls = computed(() => [\n ns.b(),\n mergedType.value === 'primary' ? ns.m('primary') : '',\n])\n\nconst mergedPlacement = computed(\n () => currentStep.value?.placement || props.placement\n)\n\nconst mergedContentStyle = computed(\n () => currentStep.value?.contentStyle ?? props.contentStyle\n)\n\nconst mergedMask = computed(() => currentStep.value?.mask ?? props.mask)\nconst mergedShowMask = computed(() => !!mergedMask.value && props.modelValue)\nconst mergedMaskStyle = computed(() =>\n isBoolean(mergedMask.value) ? undefined : mergedMask.value\n)\n\nconst mergedShowArrow = computed(\n () =>\n !!currentTarget.value && (currentStep.value?.showArrow ?? props.showArrow)\n)\n\nconst mergedScrollIntoViewOptions = computed(\n () => currentStep.value?.scrollIntoViewOptions ?? props.scrollIntoViewOptions\n)\nconst mergedType = computed(() => currentStep.value?.type ?? props.type)\n\nconst { nextZIndex } = useZIndex()\nconst nowZIndex = nextZIndex()\nconst mergedZIndex = computed(() => props.zIndex ?? nowZIndex)\n\nconst { mergedPosInfo: pos, triggerTarget } = useTarget(\n currentTarget,\n toRef(props, 'modelValue'),\n toRef(props, 'gap'),\n mergedMask,\n mergedScrollIntoViewOptions\n)\n\nwatch(\n () => props.modelValue,\n (val) => {\n if (!val) {\n current.value = 0\n }\n }\n)\n\nconst onEscClose = () => {\n if (props.closeOnPressEscape) {\n emit(UPDATE_MODEL_EVENT, false)\n emit('close', current.value)\n }\n}\n\nconst onUpdateTotal = (val: number) => {\n total.value = val\n}\n\nconst slots = useSlots()\n\nprovide(tourKey, {\n currentStep,\n current,\n total,\n showClose: toRef(props, 'showClose'),\n closeIcon: toRef(props, 'closeIcon'),\n mergedType,\n ns,\n slots,\n updateModelValue(modelValue) {\n emit(UPDATE_MODEL_EVENT, modelValue)\n },\n onClose() {\n emit('close', current.value)\n },\n onFinish() {\n emit('finish')\n },\n onChange() {\n emit(CHANGE_EVENT, current.value)\n },\n})\n</script>\n"],"names":["useNamespace","ref","useVModel","computed","isBoolean","useZIndex","useTarget","toRef","watch","UPDATE_MODEL_EVENT","useSlots","provide","tourKey","CHANGE_EVENT","_createVNode","_unref","ElTeleport","_createElementVNode","_mergeProps","$attrs","ElTourMask","_normalizeStyle","_createBlock","ElTourContent","ElTourSteps","_renderSlot","_createCommentVNode"],"mappings":";;;;;;;;;;;;;;;;;;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AAA,KAAA;AAAA,sBACX,cAAY,eAAA,CAAA,KAAA;AAAA,sBACZ,WAAS,YAAA,CAAA,KAAA;AAAA,sBACT,KAAA,qBAAO,kBAAA,CAAA,KAAkB,CAAA;AAAA,sBACzB,OAAA,EAAO;AAAA;2CAER,MAEgB;AAAA,wBAFhBD,eAAA,CAEgBC,SAAA,CAAAS,aAAA,CAAA,EAAA;AAAA,0BAFA,OAAA,EAAST,UAAA,OAAA,CAAA;AAAA,0BAAU;AAAA;+CACjC,MAAQ;AAAA,4BAARU,cAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA;AAAA;;;;;;;;;;;;;;;;;UAKhBC,uBAAA,gBAAA,CAAA;AAAA;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
2
|
import type Watermark from './watermark.vue';
|
|
3
3
|
export interface WatermarkFontType {
|
|
4
4
|
color?: string;
|
|
@@ -10,6 +10,47 @@ export interface WatermarkFontType {
|
|
|
10
10
|
textAlign?: 'start' | 'end' | 'left' | 'right' | 'center';
|
|
11
11
|
textBaseline?: 'top' | 'hanging' | 'middle' | 'alphabetic' | 'ideographic' | 'bottom';
|
|
12
12
|
}
|
|
13
|
+
export interface WatermarkProps {
|
|
14
|
+
/**
|
|
15
|
+
* @description The z-index of the appended watermark element
|
|
16
|
+
*/
|
|
17
|
+
zIndex?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @description The rotation angle of the watermark
|
|
20
|
+
*/
|
|
21
|
+
rotate?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @description The width of the watermark
|
|
24
|
+
*/
|
|
25
|
+
width?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @description The height of the watermark
|
|
28
|
+
*/
|
|
29
|
+
height?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @description Image source, it is recommended to export 2x or 3x image, high priority (support base64 format)
|
|
32
|
+
*/
|
|
33
|
+
image?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @description Watermark text content
|
|
36
|
+
*/
|
|
37
|
+
content?: string | string[];
|
|
38
|
+
/**
|
|
39
|
+
* @description Text style
|
|
40
|
+
*/
|
|
41
|
+
font?: WatermarkFontType;
|
|
42
|
+
/**
|
|
43
|
+
* @description The spacing between watermarks
|
|
44
|
+
*/
|
|
45
|
+
gap?: [number, number];
|
|
46
|
+
/**
|
|
47
|
+
* @description The offset of the watermark from the upper left corner of the container. The default is gap/2
|
|
48
|
+
*/
|
|
49
|
+
offset?: [number, number];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Removed after 3.0.0, Use `WatermarkProps` instead.
|
|
53
|
+
*/
|
|
13
54
|
export declare const watermarkProps: {
|
|
14
55
|
readonly zIndex: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 9, boolean>;
|
|
15
56
|
readonly rotate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, -22, boolean>;
|
|
@@ -31,6 +72,8 @@ export declare const watermarkProps: {
|
|
|
31
72
|
__epPropKey: true;
|
|
32
73
|
};
|
|
33
74
|
};
|
|
34
|
-
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated Removed after 3.0.0, Use `WatermarkProps` instead.
|
|
77
|
+
*/
|
|
35
78
|
export type WatermarkPropsPublic = ExtractPublicPropTypes<typeof watermarkProps>;
|
|
36
79
|
export type WatermarkInstance = InstanceType<typeof Watermark> & unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watermark.js","sources":["../../../../../../packages/components/watermark/src/watermark.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type {
|
|
1
|
+
{"version":3,"file":"watermark.js","sources":["../../../../../../packages/components/watermark/src/watermark.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Watermark from './watermark.vue'\n\nexport interface WatermarkFontType {\n color?: string\n fontSize?: number | string\n fontWeight?: 'normal' | 'light' | 'weight' | number\n fontStyle?: 'none' | 'normal' | 'italic' | 'oblique'\n fontFamily?: string\n fontGap?: number\n textAlign?: 'start' | 'end' | 'left' | 'right' | 'center'\n textBaseline?:\n | 'top'\n | 'hanging'\n | 'middle'\n | 'alphabetic'\n | 'ideographic'\n | 'bottom'\n}\n\nexport interface WatermarkProps {\n /**\n * @description The z-index of the appended watermark element\n */\n zIndex?: number\n /**\n * @description The rotation angle of the watermark\n */\n rotate?: number\n /**\n * @description The width of the watermark\n */\n width?: number\n /**\n * @description The height of the watermark\n */\n height?: number\n /**\n * @description Image source, it is recommended to export 2x or 3x image, high priority (support base64 format)\n */\n image?: string\n /**\n * @description Watermark text content\n */\n content?: string | string[]\n /**\n * @description Text style\n */\n font?: WatermarkFontType\n /**\n * @description The spacing between watermarks\n */\n gap?: [number, number]\n /**\n * @description The offset of the watermark from the upper left corner of the container. The default is gap/2\n */\n offset?: [number, number]\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `WatermarkProps` instead.\n */\nexport const watermarkProps = buildProps({\n /**\n * @description The z-index of the appended watermark element\n */\n zIndex: {\n type: Number,\n default: 9,\n },\n /**\n * @description The rotation angle of the watermark\n */\n rotate: {\n type: Number,\n default: -22,\n },\n /**\n * @description The width of the watermark\n */\n width: Number,\n /**\n * @description The height of the watermark\n */\n height: Number,\n /**\n * @description Image source, it is recommended to export 2x or 3x image, high priority (support base64 format)\n */\n image: String,\n /**\n * @description Watermark text content\n */\n content: {\n type: definePropType<string | string[]>([String, Array]),\n default: 'Element Plus',\n },\n /**\n * @description Text style\n */\n font: {\n type: definePropType<WatermarkFontType>(Object),\n },\n /**\n * @description The spacing between watermarks\n */\n gap: {\n type: definePropType<[number, number]>(Array),\n default: () => [100, 100],\n },\n /**\n * @description The offset of the watermark from the upper left corner of the container. The default is gap/2\n */\n offset: {\n type: definePropType<[number, number]>(Array),\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `WatermarkProps` instead.\n */\nexport type WatermarkPropsPublic = ExtractPublicPropTypes<typeof watermarkProps>\nexport type WatermarkInstance = InstanceType<typeof Watermark> & unknown\n"],"names":["buildProps","definePropType"],"mappings":";;;;AAgEO,MAAM,iBAAiBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIvC,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO,MAAA;AAAA;AAAA;AAAA;AAAA,EAIP,MAAA,EAAQ,MAAA;AAAA;AAAA;AAAA;AAAA,EAIR,KAAA,EAAO,MAAA;AAAA;AAAA;AAAA;AAAA,EAIP,OAAA,EAAS;AAAA,IACP,IAAA,EAAMC,sBAAA,CAAkC,CAAC,MAAA,EAAQ,KAAK,CAAC,CAAA;AAAA,IACvD,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMA,uBAAkC,MAAM;AAAA,GAChD;AAAA;AAAA;AAAA;AAAA,EAIA,GAAA,EAAK;AAAA,IACH,IAAA,EAAMA,uBAAiC,KAAK,CAAA;AAAA,IAC5C,OAAA,EAAS,MAAM,CAAC,GAAA,EAAK,GAAG;AAAA,GAC1B;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAMA,uBAAiC,KAAK;AAAA;AAEhD,CAAU;;;;"}
|
|
@@ -1,58 +1,45 @@
|
|
|
1
|
+
import type { WatermarkProps } from './watermark';
|
|
1
2
|
declare var __VLS_1: {};
|
|
2
3
|
type __VLS_Slots = {} & {
|
|
3
4
|
default?: (props: typeof __VLS_1) => any;
|
|
4
5
|
};
|
|
5
|
-
declare const __VLS_base: import("vue").DefineComponent<{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
readonly type: import("vue").PropType<[number, number]>;
|
|
21
|
-
readonly required: false;
|
|
22
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
23
|
-
__epPropKey: true;
|
|
24
|
-
};
|
|
25
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
-
readonly zIndex: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 9, boolean>;
|
|
27
|
-
readonly rotate: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, -22, boolean>;
|
|
28
|
-
readonly width: NumberConstructor;
|
|
29
|
-
readonly height: NumberConstructor;
|
|
30
|
-
readonly image: StringConstructor;
|
|
31
|
-
readonly content: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | string[]) | (() => string | string[]) | ((new (...args: any[]) => string | string[]) | (() => string | string[]))[], unknown, unknown, "Element Plus", boolean>;
|
|
32
|
-
readonly font: {
|
|
33
|
-
readonly type: import("vue").PropType<import("./watermark").WatermarkFontType>;
|
|
34
|
-
readonly required: false;
|
|
35
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
36
|
-
__epPropKey: true;
|
|
37
|
-
};
|
|
38
|
-
readonly gap: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => [number, number]) | (() => [number, number]) | ((new (...args: any[]) => [number, number]) | (() => [number, number]))[], unknown, unknown, () => number[], boolean>;
|
|
39
|
-
readonly offset: {
|
|
40
|
-
readonly type: import("vue").PropType<[number, number]>;
|
|
41
|
-
readonly required: false;
|
|
42
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
43
|
-
__epPropKey: true;
|
|
44
|
-
};
|
|
45
|
-
}>>, {
|
|
46
|
-
readonly content: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => string | string[]) | ((new (...args: any[]) => string | string[]) | (() => string | string[]))[], unknown, unknown>;
|
|
47
|
-
readonly rotate: number;
|
|
48
|
-
readonly zIndex: number;
|
|
49
|
-
readonly gap: [number, number];
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<WatermarkProps>, {
|
|
7
|
+
zIndex: number;
|
|
8
|
+
rotate: number;
|
|
9
|
+
content: string;
|
|
10
|
+
gap: () => number[];
|
|
11
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<WatermarkProps>, {
|
|
12
|
+
zIndex: number;
|
|
13
|
+
rotate: number;
|
|
14
|
+
content: string;
|
|
15
|
+
gap: () => number[];
|
|
16
|
+
}>>>, {
|
|
17
|
+
content: string | string[];
|
|
18
|
+
rotate: number;
|
|
19
|
+
zIndex: number;
|
|
20
|
+
gap: [number, number];
|
|
50
21
|
}, {}>;
|
|
51
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
52
23
|
declare const _default: typeof __VLS_export;
|
|
53
24
|
export default _default;
|
|
25
|
+
type __VLS_TypePropsToOption<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
28
|
+
} : {
|
|
29
|
+
type: import('vue').PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_WithDefaultsLocal<P, D> = {
|
|
34
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
35
|
+
default: D[K];
|
|
36
|
+
}> : P[K];
|
|
37
|
+
};
|
|
54
38
|
type __VLS_WithSlots<T, S> = T & {
|
|
55
39
|
new (): {
|
|
56
40
|
$slots: S;
|
|
57
41
|
};
|
|
58
42
|
};
|
|
43
|
+
type __VLS_PrettifyLocal<T> = {
|
|
44
|
+
[K in keyof T as K]: T[K];
|
|
45
|
+
} & {};
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var core = require('@vueuse/core');
|
|
7
|
-
var watermark = require('./watermark.js');
|
|
8
7
|
var utils = require('./utils.js');
|
|
9
8
|
var useClips = require('./useClips.js');
|
|
10
9
|
var shared = require('@vue/shared');
|
|
@@ -15,7 +14,17 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
15
14
|
name: "ElWatermark"
|
|
16
15
|
},
|
|
17
16
|
__name: "watermark",
|
|
18
|
-
props:
|
|
17
|
+
props: {
|
|
18
|
+
zIndex: { type: Number, required: false, default: 9 },
|
|
19
|
+
rotate: { type: Number, required: false, default: -22 },
|
|
20
|
+
width: { type: Number, required: false },
|
|
21
|
+
height: { type: Number, required: false },
|
|
22
|
+
image: { type: String, required: false },
|
|
23
|
+
content: { type: [String, Array], required: false, default: "Element Plus" },
|
|
24
|
+
font: { type: Object, required: false },
|
|
25
|
+
gap: { type: Array, required: false, default: () => [100, 100] },
|
|
26
|
+
offset: { type: Array, required: false }
|
|
27
|
+
},
|
|
19
28
|
setup(__props) {
|
|
20
29
|
const style = {
|
|
21
30
|
position: "relative"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watermark.vue2.js","sources":["../../../../../../packages/components/watermark/src/watermark.vue"],"sourcesContent":["<template>\n <div ref=\"containerRef\" :style=\"[style]\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n shallowRef,\n watch,\n} from 'vue'\nimport { useMutationObserver } from '@vueuse/core'\nimport { isArray, isUndefined } from '@element-plus/utils'\nimport { watermarkProps } from './watermark'\nimport { getPixelRatio, getStyleStr, reRendering } from './utils'\nimport useClips from './useClips'\n\nimport type { WatermarkProps } from './watermark'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElWatermark',\n})\n\nconst style: CSSProperties = {\n position: 'relative',\n}\n\nconst props = defineProps(watermarkProps)\nconst fontGap = computed(() => props.font?.fontGap ?? 3)\nconst color = computed(() => props.font?.color ?? 'rgba(0,0,0,.15)')\nconst fontSize = computed(() => props.font?.fontSize ?? 16)\nconst fontWeight = computed(() => props.font?.fontWeight ?? 'normal')\nconst fontStyle = computed(() => props.font?.fontStyle ?? 'normal')\nconst fontFamily = computed(() => props.font?.fontFamily ?? 'sans-serif')\nconst textAlign = computed(() => props.font?.textAlign ?? 'center')\nconst textBaseline = computed(() => props.font?.textBaseline ?? 'hanging')\n\nconst gapX = computed(() => props.gap[0])\nconst gapY = computed(() => props.gap[1])\nconst gapXCenter = computed(() => gapX.value / 2)\nconst gapYCenter = computed(() => gapY.value / 2)\nconst offsetLeft = computed(() => props.offset?.[0] ?? gapXCenter.value)\nconst offsetTop = computed(() => props.offset?.[1] ?? gapYCenter.value)\n\nconst getMarkStyle = () => {\n const markStyle: CSSProperties = {\n zIndex: props.zIndex,\n position: 'absolute',\n left: 0,\n top: 0,\n width: '100%',\n height: '100%',\n pointerEvents: 'none',\n backgroundRepeat: 'repeat',\n }\n\n /** Calculate the style of the offset */\n let positionLeft = offsetLeft.value - gapXCenter.value\n let positionTop = offsetTop.value - gapYCenter.value\n if (positionLeft > 0) {\n markStyle.left = `${positionLeft}px`\n markStyle.width = `calc(100% - ${positionLeft}px)`\n positionLeft = 0\n }\n if (positionTop > 0) {\n markStyle.top = `${positionTop}px`\n markStyle.height = `calc(100% - ${positionTop}px)`\n positionTop = 0\n }\n markStyle.backgroundPosition = `${positionLeft}px ${positionTop}px`\n\n return markStyle\n}\n\nconst containerRef = shallowRef<HTMLDivElement | null>(null)\nconst watermarkRef = shallowRef<HTMLDivElement>()\nconst stopObservation = ref(false)\n\nconst destroyWatermark = () => {\n if (watermarkRef.value) {\n watermarkRef.value.remove()\n watermarkRef.value = undefined\n }\n}\nconst appendWatermark = (base64Url: string, markWidth: number) => {\n if (containerRef.value && watermarkRef.value) {\n stopObservation.value = true\n watermarkRef.value.setAttribute(\n 'style',\n getStyleStr({\n ...getMarkStyle(),\n backgroundImage: `url('${base64Url}')`,\n backgroundSize: `${Math.floor(markWidth)}px`,\n })\n )\n containerRef.value?.append(watermarkRef.value)\n // Delayed execution\n setTimeout(() => {\n stopObservation.value = false\n })\n }\n}\n\n/**\n * Get the width and height of the watermark. The default values are as follows\n * Image: [120, 64]; Content: It's calculated by content;\n */\nconst getMarkSize = (ctx: CanvasRenderingContext2D) => {\n let defaultWidth = 120\n let defaultHeight = 64\n let space = 0\n\n const { image, content, width, height, rotate } = props\n\n if (!image && ctx.measureText) {\n ctx.font = `${Number(fontSize.value)}px ${fontFamily.value}`\n\n const contents = isArray(content) ? content : [content]\n let maxWidth = 0\n let maxHeight = 0\n\n contents.forEach((item) => {\n const {\n width,\n fontBoundingBoxAscent,\n fontBoundingBoxDescent,\n actualBoundingBoxAscent,\n actualBoundingBoxDescent,\n } = ctx.measureText(item!)\n // Using `actualBoundingBoxAscent` to be compatible with lower version browsers (eg: Firefox < 116)\n const height = isUndefined(fontBoundingBoxAscent)\n ? actualBoundingBoxAscent + actualBoundingBoxDescent\n : fontBoundingBoxAscent + fontBoundingBoxDescent\n\n if (width > maxWidth) maxWidth = Math.ceil(width)\n if (height > maxHeight) maxHeight = Math.ceil(height)\n })\n\n defaultWidth = maxWidth\n defaultHeight =\n maxHeight * contents.length + (contents.length - 1) * fontGap.value\n\n const angle = (Math.PI / 180) * Number(rotate)\n space = Math.ceil(Math.abs(Math.sin(angle) * defaultHeight) / 2)\n\n defaultWidth += space\n }\n\n return [width ?? defaultWidth, height ?? defaultHeight, space] as const\n}\n\nconst getClips = useClips()\n\nconst renderWatermark = () => {\n const canvas = document.createElement('canvas')\n const ctx = canvas.getContext('2d')\n const image = props.image\n const content = props.content\n const rotate = props.rotate\n\n if (ctx) {\n if (!watermarkRef.value) {\n watermarkRef.value = document.createElement('div')\n }\n\n const ratio = getPixelRatio()\n const [markWidth, markHeight, space] = getMarkSize(ctx)\n\n const drawCanvas = (\n drawContent?: NonNullable<WatermarkProps['content']> | HTMLImageElement\n ) => {\n const [textClips, clipWidth] = getClips(\n drawContent || '',\n rotate,\n ratio,\n markWidth,\n markHeight,\n {\n color: color.value,\n fontSize: fontSize.value,\n fontStyle: fontStyle.value,\n fontWeight: fontWeight.value,\n fontFamily: fontFamily.value,\n fontGap: fontGap.value,\n textAlign: textAlign.value,\n textBaseline: textBaseline.value,\n },\n gapX.value,\n gapY.value,\n space\n )\n\n appendWatermark(textClips, clipWidth)\n }\n\n if (image) {\n const img = new Image()\n img.onload = () => {\n drawCanvas(img)\n }\n img.onerror = () => {\n drawCanvas(content)\n }\n img.crossOrigin = 'anonymous'\n img.referrerPolicy = 'no-referrer'\n img.src = image\n } else {\n drawCanvas(content)\n }\n }\n}\n\nonMounted(() => {\n renderWatermark()\n})\n\nwatch(\n () => props,\n () => {\n renderWatermark()\n },\n {\n deep: true,\n flush: 'post',\n }\n)\n\nonBeforeUnmount(() => {\n destroyWatermark()\n})\n\nconst onMutate = (mutations: MutationRecord[]) => {\n if (stopObservation.value) {\n return\n }\n mutations.forEach((mutation) => {\n if (reRendering(mutation, watermarkRef.value)) {\n destroyWatermark()\n renderWatermark()\n }\n })\n}\n\nuseMutationObserver(containerRef, onMutate, {\n attributes: true,\n subtree: true,\n childList: true,\n})\n</script>\n"],"names":["computed","shallowRef","ref","getStyleStr","isArray","width","height","isUndefined","useClips","getPixelRatio","onMounted","watch","onBeforeUnmount","reRendering","useMutationObserver","_createElementBlock","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;AA4BA,IAAA,MAAM,KAAA,GAAuB;AAAA,MAC3B,QAAA,EAAU;AAAA,KACZ;AAEA,IAAA,MAAM,KAAA,GAAQ,OAAA;AACd,IAAA,MAAM,OAAA,GAAUA,aAAS,MAAG;;AAAG,MAAA,OAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAM,IAAA,KAAN,IAAA,GAAA,MAAA,GAAA,EAAA,CAAY,OAAA,KAAZ,IAAA,GAAA,EAAA,GAAuB,CAAA;AAAA,IAAA,CAAC,CAAA;AACvD,IAAA,MAAM,KAAA,GAAQA,aAAS,MAAG;;AAAG,MAAA,OAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAM,IAAA,KAAN,IAAA,GAAA,MAAA,GAAA,EAAA,CAAY,KAAA,KAAZ,IAAA,GAAA,EAAA,GAAqB,iBAAA;AAAA,IAAA,CAAiB,CAAA;AACnE,IAAA,MAAM,QAAA,GAAWA,aAAS,MAAG;;AAAG,MAAA,OAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAM,IAAA,KAAN,IAAA,GAAA,MAAA,GAAA,EAAA,CAAY,QAAA,KAAZ,IAAA,GAAA,EAAA,GAAwB,EAAA;AAAA,IAAA,CAAE,CAAA;AAC1D,IAAA,MAAM,UAAA,GAAaA,aAAS,MAAG;;AAAG,MAAA,OAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAM,IAAA,KAAN,IAAA,GAAA,MAAA,GAAA,EAAA,CAAY,UAAA,KAAZ,IAAA,GAAA,EAAA,GAA0B,QAAA;AAAA,IAAA,CAAQ,CAAA;AACpE,IAAA,MAAM,SAAA,GAAYA,aAAS,MAAG;;AAAG,MAAA,OAAA,CAAA,EAAA,GAAA,CAAA,EAAA,G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IAAAC,mBAAA,CAAgB,MAAM;AACpB,MAAA,gBAAA,EAAiB;AAAA,IACnB,CAAC,CAAA;AAED,IAAA,MAAM,QAAA,GAAW,CAAC,SAAA,KAAgC;AAChD,MAAA,IAAI,gBAAgB,KAAA,EAAO;AACzB,QAAA;AAAA,MACF;AACA,MAAA,SAAA,CAAU,OAAA,CAAQ,CAAC,QAAA,KAAa;AAC9B,QAAA,IAAIC,iBAAA,CAAY,QAAA,EAAU,YAAA,CAAa,KAAK,CAAA,EAAG;AAC7C,UAAA,gBAAA,EAAiB;AACjB,UAAA,eAAA,EAAgB;AAAA,QAClB;AAAA,MACF,CAAC,CAAA;AAAA,IACH,CAAA;AAEA,IAAAC,wBAAA,CAAoB,cAAc,QAAA,EAAU;AAAA,MAC1C,UAAA,EAAY,IAAA;AAAA,MACZ,OAAA,EAAS,IAAA;AAAA,MACT,SAAA,EAAW;AAAA,KACZ,CAAA;;8BA3PCC,sBAAA;AAAA,QAEM,KAAA;AAAA,QAAA;AAAA,mBAFG,cAAA;AAAA,UAAJ,GAAA,EAAI,YAAA;AAAA,UAAgB,KAAA,sBAAQ,KAAK,CAAA;AAAA;;UACpCC,cAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA;AAAA;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"watermark.vue2.js","sources":["../../../../../../packages/components/watermark/src/watermark.vue"],"sourcesContent":["<template>\n <div ref=\"containerRef\" :style=\"[style]\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n shallowRef,\n watch,\n} from 'vue'\nimport { useMutationObserver } from '@vueuse/core'\nimport { isArray, isUndefined } from '@element-plus/utils'\nimport { getPixelRatio, getStyleStr, reRendering } from './utils'\nimport useClips from './useClips'\n\nimport type { WatermarkProps } from './watermark'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElWatermark',\n})\n\nconst style: CSSProperties = {\n position: 'relative',\n}\n\nconst props = withDefaults(defineProps<WatermarkProps>(), {\n zIndex: 9,\n rotate: -22,\n content: 'Element Plus',\n gap: () => [100, 100],\n})\nconst fontGap = computed(() => props.font?.fontGap ?? 3)\nconst color = computed(() => props.font?.color ?? 'rgba(0,0,0,.15)')\nconst fontSize = computed(() => props.font?.fontSize ?? 16)\nconst fontWeight = computed(() => props.font?.fontWeight ?? 'normal')\nconst fontStyle = computed(() => props.font?.fontStyle ?? 'normal')\nconst fontFamily = computed(() => props.font?.fontFamily ?? 'sans-serif')\nconst textAlign = computed(() => props.font?.textAlign ?? 'center')\nconst textBaseline = computed(() => props.font?.textBaseline ?? 'hanging')\n\nconst gapX = computed(() => props.gap[0])\nconst gapY = computed(() => props.gap[1])\nconst gapXCenter = computed(() => gapX.value / 2)\nconst gapYCenter = computed(() => gapY.value / 2)\nconst offsetLeft = computed(() => props.offset?.[0] ?? gapXCenter.value)\nconst offsetTop = computed(() => props.offset?.[1] ?? gapYCenter.value)\n\nconst getMarkStyle = () => {\n const markStyle: CSSProperties = {\n zIndex: props.zIndex,\n position: 'absolute',\n left: 0,\n top: 0,\n width: '100%',\n height: '100%',\n pointerEvents: 'none',\n backgroundRepeat: 'repeat',\n }\n\n /** Calculate the style of the offset */\n let positionLeft = offsetLeft.value - gapXCenter.value\n let positionTop = offsetTop.value - gapYCenter.value\n if (positionLeft > 0) {\n markStyle.left = `${positionLeft}px`\n markStyle.width = `calc(100% - ${positionLeft}px)`\n positionLeft = 0\n }\n if (positionTop > 0) {\n markStyle.top = `${positionTop}px`\n markStyle.height = `calc(100% - ${positionTop}px)`\n positionTop = 0\n }\n markStyle.backgroundPosition = `${positionLeft}px ${positionTop}px`\n\n return markStyle\n}\n\nconst containerRef = shallowRef<HTMLDivElement | null>(null)\nconst watermarkRef = shallowRef<HTMLDivElement>()\nconst stopObservation = ref(false)\n\nconst destroyWatermark = () => {\n if (watermarkRef.value) {\n watermarkRef.value.remove()\n watermarkRef.value = undefined\n }\n}\nconst appendWatermark = (base64Url: string, markWidth: number) => {\n if (containerRef.value && watermarkRef.value) {\n stopObservation.value = true\n watermarkRef.value.setAttribute(\n 'style',\n getStyleStr({\n ...getMarkStyle(),\n backgroundImage: `url('${base64Url}')`,\n backgroundSize: `${Math.floor(markWidth)}px`,\n })\n )\n containerRef.value?.append(watermarkRef.value)\n // Delayed execution\n setTimeout(() => {\n stopObservation.value = false\n })\n }\n}\n\n/**\n * Get the width and height of the watermark. The default values are as follows\n * Image: [120, 64]; Content: It's calculated by content;\n */\nconst getMarkSize = (ctx: CanvasRenderingContext2D) => {\n let defaultWidth = 120\n let defaultHeight = 64\n let space = 0\n\n const { image, content, width, height, rotate } = props\n\n if (!image && ctx.measureText) {\n ctx.font = `${Number(fontSize.value)}px ${fontFamily.value}`\n\n const contents = isArray(content) ? content : [content]\n let maxWidth = 0\n let maxHeight = 0\n\n contents.forEach((item) => {\n const {\n width,\n fontBoundingBoxAscent,\n fontBoundingBoxDescent,\n actualBoundingBoxAscent,\n actualBoundingBoxDescent,\n } = ctx.measureText(item!)\n // Using `actualBoundingBoxAscent` to be compatible with lower version browsers (eg: Firefox < 116)\n const height = isUndefined(fontBoundingBoxAscent)\n ? actualBoundingBoxAscent + actualBoundingBoxDescent\n : fontBoundingBoxAscent + fontBoundingBoxDescent\n\n if (width > maxWidth) maxWidth = Math.ceil(width)\n if (height > maxHeight) maxHeight = Math.ceil(height)\n })\n\n defaultWidth = maxWidth\n defaultHeight =\n maxHeight * contents.length + (contents.length - 1) * fontGap.value\n\n const angle = (Math.PI / 180) * Number(rotate)\n space = Math.ceil(Math.abs(Math.sin(angle) * defaultHeight) / 2)\n\n defaultWidth += space\n }\n\n return [width ?? defaultWidth, height ?? defaultHeight, space] as const\n}\n\nconst getClips = useClips()\n\nconst renderWatermark = () => {\n const canvas = document.createElement('canvas')\n const ctx = canvas.getContext('2d')\n const image = props.image\n const content = props.content\n const rotate = props.rotate\n\n if (ctx) {\n if (!watermarkRef.value) {\n watermarkRef.value = document.createElement('div')\n }\n\n const ratio = getPixelRatio()\n const [markWidth, markHeight, space] = getMarkSize(ctx)\n\n const drawCanvas = (\n drawContent?: NonNullable<WatermarkProps['content']> | HTMLImageElement\n ) => {\n const [textClips, clipWidth] = getClips(\n drawContent || '',\n rotate,\n ratio,\n markWidth,\n markHeight,\n {\n color: color.value,\n fontSize: fontSize.value,\n fontStyle: fontStyle.value,\n fontWeight: fontWeight.value,\n fontFamily: fontFamily.value,\n fontGap: fontGap.value,\n textAlign: textAlign.value,\n textBaseline: textBaseline.value,\n },\n gapX.value,\n gapY.value,\n space\n )\n\n appendWatermark(textClips, clipWidth)\n }\n\n if (image) {\n const img = new Image()\n img.onload = () => {\n drawCanvas(img)\n }\n img.onerror = () => {\n drawCanvas(content)\n }\n img.crossOrigin = 'anonymous'\n img.referrerPolicy = 'no-referrer'\n img.src = image\n } else {\n drawCanvas(content)\n }\n }\n}\n\nonMounted(() => {\n renderWatermark()\n})\n\nwatch(\n () => props,\n () => {\n renderWatermark()\n },\n {\n deep: true,\n flush: 'post',\n }\n)\n\nonBeforeUnmount(() => {\n destroyWatermark()\n})\n\nconst onMutate = (mutations: MutationRecord[]) => {\n if (stopObservation.value) {\n return\n }\n mutations.forEach((mutation) => {\n if (reRendering(mutation, watermarkRef.value)) {\n destroyWatermark()\n renderWatermark()\n }\n })\n}\n\nuseMutationObserver(containerRef, onMutate, {\n attributes: true,\n subtree: true,\n childList: true,\n})\n</script>\n"],"names":["computed","shallowRef","ref","getStyleStr","isArray","width","height","isUndefined","useClips","getPixelRatio","onMounted","watch","onBeforeUnmount","reRendering","useMutationObserver","_createElementBlock","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,IAAA,MAAM,KAAA,GAAuB;AAAA,MAC3B,QAAA,EAAU;AAAA,KACZ;AAEA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAMd,IAAA,MAAM,OAAA,GAAUA,aAAS,MAAG;;AAAG,MAAA,OAAA,CAAA,E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CAAa,KAAK,CAAA,EAAG;AAC7C,UAAA,gBAAA,EAAiB;AACjB,UAAA,eAAA,EAAgB;AAAA,QAClB;AAAA,MACF,CAAC,CAAA;AAAA,IACH,CAAA;AAEA,IAAAC,wBAAA,CAAoB,cAAc,QAAA,EAAU;AAAA,MAC1C,UAAA,EAAY,IAAA;AAAA,MACZ,OAAA,EAAS,IAAA;AAAA,MACT,SAAA,EAAW;AAAA,KACZ,CAAA;;8BA/PCC,sBAAA;AAAA,QAEM,KAAA;AAAA,QAAA;AAAA,mBAFG,cAAA;AAAA,UAAJ,GAAA,EAAI,YAAA;AAAA,UAAgB,KAAA,sBAAQ,KAAK,CAAA;AAAA;;UACpCC,cAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA;AAAA;;;;;;;;;;"}
|
package/lib/index.js
CHANGED
|
@@ -478,6 +478,7 @@ exports.imageViewerProps = imageViewer.imageViewerProps;
|
|
|
478
478
|
exports.ElImageViewer = index$y.ElImageViewer;
|
|
479
479
|
exports.inputEmits = input.inputEmits;
|
|
480
480
|
exports.inputProps = input.inputProps;
|
|
481
|
+
exports.inputPropsDefaults = input.inputPropsDefaults;
|
|
481
482
|
exports.ElInput = index$z.ElInput;
|
|
482
483
|
exports.inputNumberEmits = inputNumber.inputNumberEmits;
|
|
483
484
|
exports.inputNumberProps = inputNumber.inputNumberProps;
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../packages/element-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n\nexport * from '@element-plus/components'\nexport * from '@element-plus/constants'\nexport * from '@element-plus/directives'\nexport * from '@element-plus/hooks'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n\nexport { default as dayjs } from 'dayjs'\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQO,MAAM,UAAUA,gBAAA,CAAU;AAC1B,MAAM,UAAUA,gBAAA,CAAU
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../packages/element-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n\nexport * from '@element-plus/components'\nexport * from '@element-plus/constants'\nexport * from '@element-plus/directives'\nexport * from '@element-plus/hooks'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n\nexport { default as dayjs } from 'dayjs'\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQO,MAAM,UAAUA,gBAAA,CAAU;AAC1B,MAAM,UAAUA,gBAAA,CAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.20260118";
|
package/lib/version.js
CHANGED
package/lib/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20260118'\n"],"names":[],"mappings":";;AAAO,MAAM,OAAA,GAAU;;;;"}
|