@element-plus/nightly 0.0.20241128 → 0.0.20241130
Sign up to get free protection for your applications and to get access to all the features.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +907 -317
- package/dist/index.full.min.js +17 -17
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +14 -14
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +904 -318
- 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/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/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/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/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-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/component.mjs +2 -0
- package/es/component.mjs.map +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +36 -95
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +95 -36
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel-item.mjs +69 -7
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +7 -69
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.mjs +87 -26
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +26 -87
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +6 -4
- package/es/components/index.mjs.map +1 -1
- package/es/components/input-number/src/input-number2.mjs +2 -1
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/input-tag/index.d.ts +6 -0
- package/es/components/input-tag/index.mjs +8 -0
- package/es/components/input-tag/index.mjs.map +1 -0
- package/es/components/input-tag/src/composables/index.d.ts +4 -0
- package/es/components/input-tag/src/composables/index.mjs +5 -0
- package/es/components/input-tag/src/composables/index.mjs.map +1 -0
- package/es/components/input-tag/src/composables/use-drag-tag.d.ts +15 -0
- package/es/components/input-tag/src/composables/use-drag-tag.mjs +92 -0
- package/es/components/input-tag/src/composables/use-drag-tag.mjs.map +1 -0
- package/es/components/input-tag/src/composables/use-hovering.d.ts +5 -0
- package/es/components/input-tag/src/composables/use-hovering.mjs +19 -0
- package/es/components/input-tag/src/composables/use-hovering.mjs.map +1 -0
- package/es/components/input-tag/src/composables/use-input-tag-dom.d.ts +58 -0
- package/es/components/input-tag/src/composables/use-input-tag-dom.mjs +57 -0
- package/es/components/input-tag/src/composables/use-input-tag-dom.mjs.map +1 -0
- package/es/components/input-tag/src/composables/use-input-tag.d.ts +33 -0
- package/es/components/input-tag/src/composables/use-input-tag.mjs +153 -0
- package/es/components/input-tag/src/composables/use-input-tag.mjs.map +1 -0
- package/es/components/input-tag/src/input-tag.d.ts +60 -0
- package/es/components/input-tag/src/input-tag.mjs +219 -0
- package/es/components/input-tag/src/input-tag.mjs.map +1 -0
- package/es/components/input-tag/src/input-tag.vue.d.ts +142 -0
- package/es/components/input-tag/src/input-tag2.mjs +69 -0
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -0
- package/es/components/input-tag/src/instance.d.ts +2 -0
- package/es/components/input-tag/src/instance.mjs +2 -0
- package/es/components/input-tag/src/instance.mjs.map +1 -0
- package/es/components/input-tag/style/css.d.ts +3 -0
- package/es/components/input-tag/style/css.mjs +4 -0
- package/es/components/input-tag/style/css.mjs.map +1 -0
- package/es/components/input-tag/style/index.d.ts +3 -0
- package/es/components/input-tag/style/index.mjs +4 -0
- package/es/components/input-tag/style/index.mjs.map +1 -0
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item.mjs +14 -96
- package/es/components/menu/src/menu-item.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs +96 -14
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/notification/src/notification.d.ts +12 -6
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +5 -8
- package/es/components/notification/src/notify.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker-range-trigger.mjs +1 -1
- package/es/components/time-picker/src/common/picker-range-trigger.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs +3 -0
- package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs.map +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/step.mjs +168 -44
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +44 -168
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/directives/click-outside/index.mjs +1 -1
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-calc-input-width/index.d.ts +7 -0
- package/es/hooks/use-calc-input-width/index.mjs +24 -0
- package/es/hooks/use-calc-input-width/index.mjs.map +1 -0
- package/es/hooks/use-focus-controller/index.mjs +1 -1
- package/es/hooks/use-lockscreen/index.mjs +1 -1
- package/es/index.mjs +7 -4
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/global.d.ts +1 -0
- package/lib/component.js +98 -96
- package/lib/component.js.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +37 -94
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +94 -37
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel-item.js +69 -7
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +7 -69
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.js +86 -26
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +26 -86
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +117 -112
- package/lib/components/index.js.map +1 -1
- package/lib/components/input-number/src/input-number2.js +2 -1
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/input-tag/index.d.ts +6 -0
- package/lib/components/input-tag/index.js +15 -0
- package/lib/components/input-tag/index.js.map +1 -0
- package/lib/components/input-tag/src/composables/index.d.ts +4 -0
- package/lib/components/input-tag/src/composables/index.js +16 -0
- package/lib/components/input-tag/src/composables/index.js.map +1 -0
- package/lib/components/input-tag/src/composables/use-drag-tag.d.ts +15 -0
- package/lib/components/input-tag/src/composables/use-drag-tag.js +96 -0
- package/lib/components/input-tag/src/composables/use-drag-tag.js.map +1 -0
- package/lib/components/input-tag/src/composables/use-hovering.d.ts +5 -0
- package/lib/components/input-tag/src/composables/use-hovering.js +23 -0
- package/lib/components/input-tag/src/composables/use-hovering.js.map +1 -0
- package/lib/components/input-tag/src/composables/use-input-tag-dom.d.ts +58 -0
- package/lib/components/input-tag/src/composables/use-input-tag-dom.js +61 -0
- package/lib/components/input-tag/src/composables/use-input-tag-dom.js.map +1 -0
- package/lib/components/input-tag/src/composables/use-input-tag.d.ts +33 -0
- package/lib/components/input-tag/src/composables/use-input-tag.js +157 -0
- package/lib/components/input-tag/src/composables/use-input-tag.js.map +1 -0
- package/lib/components/input-tag/src/input-tag.d.ts +60 -0
- package/lib/components/input-tag/src/input-tag.js +223 -0
- package/lib/components/input-tag/src/input-tag.js.map +1 -0
- package/lib/components/input-tag/src/input-tag.vue.d.ts +142 -0
- package/lib/components/input-tag/src/input-tag2.js +74 -0
- package/lib/components/input-tag/src/input-tag2.js.map +1 -0
- package/lib/components/input-tag/src/instance.d.ts +2 -0
- package/lib/components/input-tag/src/instance.js +3 -0
- package/lib/components/input-tag/src/instance.js.map +1 -0
- package/lib/components/input-tag/style/css.d.ts +3 -0
- package/lib/components/input-tag/style/css.js +7 -0
- package/lib/components/input-tag/style/css.js.map +1 -0
- package/lib/components/input-tag/style/index.d.ts +3 -0
- package/lib/components/input-tag/style/index.js +7 -0
- package/lib/components/input-tag/style/index.js.map +1 -0
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item.js +15 -96
- package/lib/components/menu/src/menu-item.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js +96 -15
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/notification/src/notification.d.ts +12 -6
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notify.js +4 -7
- package/lib/components/notification/src/notify.js.map +1 -1
- package/lib/components/time-picker/src/common/picker-range-trigger.js +1 -1
- package/lib/components/time-picker/src/common/picker-range-trigger.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.js +3 -0
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.js.map +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/step.js +167 -44
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +44 -167
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/directives/click-outside/index.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +96 -94
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-calc-input-width/index.d.ts +7 -0
- package/lib/hooks/use-calc-input-width/index.js +28 -0
- package/lib/hooks/use-calc-input-width/index.js.map +1 -0
- package/lib/hooks/use-focus-controller/index.js +1 -1
- package/lib/hooks/use-lockscreen/index.js +1 -1
- package/lib/index.js +223 -216
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-form.css +1 -1
- package/theme-chalk/el-input-tag.css +1 -0
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +47 -0
- package/theme-chalk/src/form.scss +2 -1
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/input-tag.scss +215 -0
- package/web-types.json +1 -1
@@ -2,103 +2,46 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var vue = require('vue');
|
6
|
-
var index$1 = require('../../icon/index.js');
|
7
|
-
var alert = require('./alert2.js');
|
8
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
9
5
|
var icon = require('../../../utils/vue/icon.js');
|
10
|
-
var
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
7
|
+
var objects = require('../../../utils/objects.js');
|
11
8
|
|
12
|
-
const
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
}, {
|
42
|
-
default: vue.withCtx(() => [
|
43
|
-
vue.withDirectives(vue.createElementVNode("div", {
|
44
|
-
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).m(_ctx.type), vue.unref(ns).is("center", _ctx.center), vue.unref(ns).is(_ctx.effect)]),
|
45
|
-
role: "alert"
|
46
|
-
}, [
|
47
|
-
_ctx.showIcon && vue.unref(iconComponent) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
48
|
-
key: 0,
|
49
|
-
class: vue.normalizeClass(vue.unref(iconClass))
|
50
|
-
}, {
|
51
|
-
default: vue.withCtx(() => [
|
52
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(iconComponent))))
|
53
|
-
]),
|
54
|
-
_: 1
|
55
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
56
|
-
vue.createElementVNode("div", {
|
57
|
-
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
58
|
-
}, [
|
59
|
-
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", {
|
60
|
-
key: 0,
|
61
|
-
class: vue.normalizeClass([vue.unref(ns).e("title"), vue.unref(withDescription)])
|
62
|
-
}, [
|
63
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
64
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
65
|
-
])
|
66
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
67
|
-
_ctx.$slots.default || _ctx.description ? (vue.openBlock(), vue.createElementBlock("p", {
|
68
|
-
key: 1,
|
69
|
-
class: vue.normalizeClass(vue.unref(ns).e("description"))
|
70
|
-
}, [
|
71
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
72
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
|
73
|
-
])
|
74
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
75
|
-
_ctx.closable ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
76
|
-
_ctx.closeText ? (vue.openBlock(), vue.createElementBlock("div", {
|
77
|
-
key: 0,
|
78
|
-
class: vue.normalizeClass([vue.unref(ns).e("close-btn"), vue.unref(ns).is("customed")]),
|
79
|
-
onClick: close
|
80
|
-
}, vue.toDisplayString(_ctx.closeText), 3)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
81
|
-
key: 1,
|
82
|
-
class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
|
83
|
-
onClick: close
|
84
|
-
}, {
|
85
|
-
default: vue.withCtx(() => [
|
86
|
-
vue.createVNode(vue.unref(Close))
|
87
|
-
]),
|
88
|
-
_: 1
|
89
|
-
}, 8, ["class"]))
|
90
|
-
], 64)) : vue.createCommentVNode("v-if", true)
|
91
|
-
], 2)
|
92
|
-
], 2), [
|
93
|
-
[vue.vShow, visible.value]
|
94
|
-
])
|
95
|
-
]),
|
96
|
-
_: 3
|
97
|
-
}, 8, ["name"]);
|
98
|
-
};
|
9
|
+
const alertEffects = ["light", "dark"];
|
10
|
+
const alertProps = runtime.buildProps({
|
11
|
+
title: {
|
12
|
+
type: String,
|
13
|
+
default: ""
|
14
|
+
},
|
15
|
+
description: {
|
16
|
+
type: String,
|
17
|
+
default: ""
|
18
|
+
},
|
19
|
+
type: {
|
20
|
+
type: String,
|
21
|
+
values: objects.keysOf(icon.TypeComponentsMap),
|
22
|
+
default: "info"
|
23
|
+
},
|
24
|
+
closable: {
|
25
|
+
type: Boolean,
|
26
|
+
default: true
|
27
|
+
},
|
28
|
+
closeText: {
|
29
|
+
type: String,
|
30
|
+
default: ""
|
31
|
+
},
|
32
|
+
showIcon: Boolean,
|
33
|
+
center: Boolean,
|
34
|
+
effect: {
|
35
|
+
type: String,
|
36
|
+
values: alertEffects,
|
37
|
+
default: "light"
|
99
38
|
}
|
100
39
|
});
|
101
|
-
|
40
|
+
const alertEmits = {
|
41
|
+
close: (evt) => evt instanceof MouseEvent
|
42
|
+
};
|
102
43
|
|
103
|
-
exports
|
44
|
+
exports.alertEffects = alertEffects;
|
45
|
+
exports.alertEmits = alertEmits;
|
46
|
+
exports.alertProps = alertProps;
|
104
47
|
//# sourceMappingURL=alert.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"alert.js","sources":["../../../../../../packages/components/alert/src/alert.
|
1
|
+
{"version":3,"file":"alert.js","sources":["../../../../../../packages/components/alert/src/alert.ts"],"sourcesContent":["import { TypeComponentsMap, buildProps, keysOf } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const alertEffects = ['light', 'dark'] as const\n\nexport const alertProps = buildProps({\n /**\n * @description alert title.\n */\n title: {\n type: String,\n default: '',\n },\n description: {\n type: String,\n default: '',\n },\n /**\n * @description alert type.\n */\n type: {\n type: String,\n values: keysOf(TypeComponentsMap),\n default: 'info',\n },\n /**\n * @description whether alert can be dismissed.\n */\n closable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description text for replacing x button\n */\n closeText: {\n type: String,\n default: '',\n },\n /**\n * @description whether show icon\n */\n showIcon: Boolean,\n /**\n * @description should content be placed in center.\n */\n center: Boolean,\n effect: {\n type: String,\n values: alertEffects,\n default: 'light',\n },\n} as const)\nexport type AlertProps = ExtractPropTypes<typeof alertProps>\n\nexport const alertEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type AlertEmits = typeof alertEmits\n"],"names":["buildProps","keysOf","TypeComponentsMap"],"mappings":";;;;;;;;AACY,MAAC,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE;AAClC,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,cAAM,CAACC,sBAAiB,CAAC;AACrC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,YAAY;AACxB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;;"}
|
@@ -2,46 +2,103 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
+
var vue = require('vue');
|
6
|
+
var index$1 = require('../../icon/index.js');
|
7
|
+
var alert = require('./alert.js');
|
8
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
5
9
|
var icon = require('../../../utils/vue/icon.js');
|
6
|
-
var
|
7
|
-
var objects = require('../../../utils/objects.js');
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
8
11
|
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
12
|
+
const __default__ = vue.defineComponent({
|
13
|
+
name: "ElAlert"
|
14
|
+
});
|
15
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
16
|
+
...__default__,
|
17
|
+
props: alert.alertProps,
|
18
|
+
emits: alert.alertEmits,
|
19
|
+
setup(__props, { emit }) {
|
20
|
+
const props = __props;
|
21
|
+
const { Close } = icon.TypeComponents;
|
22
|
+
const slots = vue.useSlots();
|
23
|
+
const ns = index.useNamespace("alert");
|
24
|
+
const visible = vue.ref(true);
|
25
|
+
const iconComponent = vue.computed(() => icon.TypeComponentsMap[props.type]);
|
26
|
+
const iconClass = vue.computed(() => [
|
27
|
+
ns.e("icon"),
|
28
|
+
{ [ns.is("big")]: !!props.description || !!slots.default }
|
29
|
+
]);
|
30
|
+
const withDescription = vue.computed(() => {
|
31
|
+
return { "with-description": props.description || slots.default };
|
32
|
+
});
|
33
|
+
const close = (evt) => {
|
34
|
+
visible.value = false;
|
35
|
+
emit("close", evt);
|
36
|
+
};
|
37
|
+
return (_ctx, _cache) => {
|
38
|
+
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
39
|
+
name: vue.unref(ns).b("fade"),
|
40
|
+
persisted: ""
|
41
|
+
}, {
|
42
|
+
default: vue.withCtx(() => [
|
43
|
+
vue.withDirectives(vue.createElementVNode("div", {
|
44
|
+
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).m(_ctx.type), vue.unref(ns).is("center", _ctx.center), vue.unref(ns).is(_ctx.effect)]),
|
45
|
+
role: "alert"
|
46
|
+
}, [
|
47
|
+
_ctx.showIcon && vue.unref(iconComponent) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
48
|
+
key: 0,
|
49
|
+
class: vue.normalizeClass(vue.unref(iconClass))
|
50
|
+
}, {
|
51
|
+
default: vue.withCtx(() => [
|
52
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(iconComponent))))
|
53
|
+
]),
|
54
|
+
_: 1
|
55
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
56
|
+
vue.createElementVNode("div", {
|
57
|
+
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
58
|
+
}, [
|
59
|
+
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", {
|
60
|
+
key: 0,
|
61
|
+
class: vue.normalizeClass([vue.unref(ns).e("title"), vue.unref(withDescription)])
|
62
|
+
}, [
|
63
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
64
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
65
|
+
])
|
66
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
67
|
+
_ctx.$slots.default || _ctx.description ? (vue.openBlock(), vue.createElementBlock("p", {
|
68
|
+
key: 1,
|
69
|
+
class: vue.normalizeClass(vue.unref(ns).e("description"))
|
70
|
+
}, [
|
71
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
72
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
|
73
|
+
])
|
74
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
75
|
+
_ctx.closable ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
76
|
+
_ctx.closeText ? (vue.openBlock(), vue.createElementBlock("div", {
|
77
|
+
key: 0,
|
78
|
+
class: vue.normalizeClass([vue.unref(ns).e("close-btn"), vue.unref(ns).is("customed")]),
|
79
|
+
onClick: close
|
80
|
+
}, vue.toDisplayString(_ctx.closeText), 3)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
81
|
+
key: 1,
|
82
|
+
class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
|
83
|
+
onClick: close
|
84
|
+
}, {
|
85
|
+
default: vue.withCtx(() => [
|
86
|
+
vue.createVNode(vue.unref(Close))
|
87
|
+
]),
|
88
|
+
_: 1
|
89
|
+
}, 8, ["class"]))
|
90
|
+
], 64)) : vue.createCommentVNode("v-if", true)
|
91
|
+
], 2)
|
92
|
+
], 2), [
|
93
|
+
[vue.vShow, visible.value]
|
94
|
+
])
|
95
|
+
]),
|
96
|
+
_: 3
|
97
|
+
}, 8, ["name"]);
|
98
|
+
};
|
38
99
|
}
|
39
100
|
});
|
40
|
-
|
41
|
-
close: (evt) => evt instanceof MouseEvent
|
42
|
-
};
|
101
|
+
var Alert = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "alert.vue"]]);
|
43
102
|
|
44
|
-
exports
|
45
|
-
exports.alertEmits = alertEmits;
|
46
|
-
exports.alertProps = alertProps;
|
103
|
+
exports["default"] = Alert;
|
47
104
|
//# sourceMappingURL=alert2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"alert2.js","sources":["../../../../../../packages/components/alert/src/alert.
|
1
|
+
{"version":3,"file":"alert2.js","sources":["../../../../../../packages/components/alert/src/alert.vue"],"sourcesContent":["<template>\n <transition :name=\"ns.b('fade')\">\n <div\n v-show=\"visible\"\n :class=\"[ns.b(), ns.m(type), ns.is('center', center), ns.is(effect)]\"\n role=\"alert\"\n >\n <el-icon v-if=\"showIcon && iconComponent\" :class=\"iconClass\">\n <component :is=\"iconComponent\" />\n </el-icon>\n\n <div :class=\"ns.e('content')\">\n <span\n v-if=\"title || $slots.title\"\n :class=\"[ns.e('title'), withDescription]\"\n >\n <slot name=\"title\">{{ title }}</slot>\n </span>\n <p v-if=\"$slots.default || description\" :class=\"ns.e('description')\">\n <slot>\n {{ description }}\n </slot>\n </p>\n <template v-if=\"closable\">\n <div\n v-if=\"closeText\"\n :class=\"[ns.e('close-btn'), ns.is('customed')]\"\n @click=\"close\"\n >\n {{ closeText }}\n </div>\n <el-icon v-else :class=\"ns.e('close-btn')\" @click=\"close\">\n <Close />\n </el-icon>\n </template>\n </div>\n </div>\n </transition>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, ref, useSlots } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { TypeComponents, TypeComponentsMap } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { alertEmits, alertProps } from './alert'\n\nconst { Close } = TypeComponents\n\ndefineOptions({\n name: 'ElAlert',\n})\n\nconst props = defineProps(alertProps)\nconst emit = defineEmits(alertEmits)\nconst slots = useSlots()\n\nconst ns = useNamespace('alert')\n\nconst visible = ref(true)\n\nconst iconComponent = computed(() => TypeComponentsMap[props.type])\n\nconst iconClass = computed(() => [\n ns.e('icon'),\n { [ns.is('big')]: !!props.description || !!slots.default },\n])\n\nconst withDescription = computed(() => {\n return { 'with-description': props.description || slots.default }\n})\n\nconst close = (evt: MouseEvent) => {\n visible.value = false\n emit('close', evt)\n}\n</script>\n"],"names":["TypeComponents","useSlots","useNamespace","ref","computed","TypeComponentsMap"],"mappings":";;;;;;;;;;;uCAgDc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAJA,IAAM,MAAA,EAAE,OAAU,GAAAA,mBAAA,CAAA;AAQlB,IAAA,MAAM,QAAQC,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,EAAA,GAAKC,mBAAa,OAAO,CAAA,CAAA;AAE/B,IAAM,MAAA,OAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AAExB,IAAA,MAAM,gBAAgBC,YAAS,CAAA,MAAMC,sBAAkB,CAAA,KAAA,CAAM,IAAI,CAAC,CAAA,CAAA;AAElE,IAAM,MAAA,SAAA,GAAYD,aAAS,MAAM;AAAA,MAC/B,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,MACX,EAAE,CAAC,EAAG,CAAA,EAAA,CAAG,KAAK,CAAC,GAAG,CAAC,CAAC,KAAM,CAAA,WAAA,IAAe,CAAC,CAAC,MAAM,OAAQ,EAAA;AAAA,KAC1D,CAAA,CAAA;AAED,IAAM,MAAA,eAAA,GAAkBA,aAAS,MAAM;AACrC,MAAA,OAAO,EAAE,kBAAA,EAAoB,KAAM,CAAA,WAAA,IAAe,MAAM,OAAQ,EAAA,CAAA;AAAA,KACjE,CAAA,CAAA;AAED,IAAM,MAAA,KAAA,GAAQ,CAAC,GAAoB,KAAA;AACjC,MAAA,OAAA,CAAQ,KAAQ,GAAA,KAAA,CAAA;AAChB,MAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AAAA,KACnB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -3,9 +3,9 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var carousel$1 = require('./src/carousel2.js');
|
6
|
-
var carouselItem$1 = require('./src/carousel-
|
6
|
+
var carouselItem$1 = require('./src/carousel-item.js');
|
7
7
|
var carousel = require('./src/carousel.js');
|
8
|
-
var carouselItem = require('./src/carousel-
|
8
|
+
var carouselItem = require('./src/carousel-item2.js');
|
9
9
|
var constants = require('./src/constants.js');
|
10
10
|
var install = require('../../utils/vue/install.js');
|
11
11
|
|
@@ -2,15 +2,77 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
5
|
+
var vue = require('vue');
|
6
|
+
var carouselItem = require('./carousel-item2.js');
|
7
|
+
var useCarouselItem = require('./use-carousel-item.js');
|
8
|
+
var constants = require('./constants.js');
|
9
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
6
11
|
|
7
|
-
const
|
8
|
-
name:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
+
const __default__ = vue.defineComponent({
|
13
|
+
name: constants.CAROUSEL_ITEM_NAME
|
14
|
+
});
|
15
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
16
|
+
...__default__,
|
17
|
+
props: carouselItem.carouselItemProps,
|
18
|
+
setup(__props) {
|
19
|
+
const props = __props;
|
20
|
+
const ns = index.useNamespace("carousel");
|
21
|
+
const {
|
22
|
+
carouselItemRef,
|
23
|
+
active,
|
24
|
+
animating,
|
25
|
+
hover,
|
26
|
+
inStage,
|
27
|
+
isVertical,
|
28
|
+
translate,
|
29
|
+
isCardType,
|
30
|
+
scale,
|
31
|
+
ready,
|
32
|
+
handleItemClick
|
33
|
+
} = useCarouselItem.useCarouselItem(props);
|
34
|
+
const itemKls = vue.computed(() => [
|
35
|
+
ns.e("item"),
|
36
|
+
ns.is("active", active.value),
|
37
|
+
ns.is("in-stage", inStage.value),
|
38
|
+
ns.is("hover", hover.value),
|
39
|
+
ns.is("animating", animating.value),
|
40
|
+
{
|
41
|
+
[ns.em("item", "card")]: isCardType.value,
|
42
|
+
[ns.em("item", "card-vertical")]: isCardType.value && isVertical.value
|
43
|
+
}
|
44
|
+
]);
|
45
|
+
const itemStyle = vue.computed(() => {
|
46
|
+
const translateType = `translate${vue.unref(isVertical) ? "Y" : "X"}`;
|
47
|
+
const _translate = `${translateType}(${vue.unref(translate)}px)`;
|
48
|
+
const _scale = `scale(${vue.unref(scale)})`;
|
49
|
+
const transform = [_translate, _scale].join(" ");
|
50
|
+
return {
|
51
|
+
transform
|
52
|
+
};
|
53
|
+
});
|
54
|
+
return (_ctx, _cache) => {
|
55
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
56
|
+
ref_key: "carouselItemRef",
|
57
|
+
ref: carouselItemRef,
|
58
|
+
class: vue.normalizeClass(vue.unref(itemKls)),
|
59
|
+
style: vue.normalizeStyle(vue.unref(itemStyle)),
|
60
|
+
onClick: vue.unref(handleItemClick)
|
61
|
+
}, [
|
62
|
+
vue.unref(isCardType) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
63
|
+
key: 0,
|
64
|
+
class: vue.normalizeClass(vue.unref(ns).e("mask"))
|
65
|
+
}, null, 2)), [
|
66
|
+
[vue.vShow, !vue.unref(active)]
|
67
|
+
]) : vue.createCommentVNode("v-if", true),
|
68
|
+
vue.renderSlot(_ctx.$slots, "default")
|
69
|
+
], 14, ["onClick"])), [
|
70
|
+
[vue.vShow, vue.unref(ready)]
|
71
|
+
]);
|
72
|
+
};
|
12
73
|
}
|
13
74
|
});
|
75
|
+
var CarouselItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "carousel-item.vue"]]);
|
14
76
|
|
15
|
-
exports
|
77
|
+
exports["default"] = CarouselItem;
|
16
78
|
//# sourceMappingURL=carousel-item.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"carousel-item.js","sources":["../../../../../../packages/components/carousel/src/carousel-item.
|
1
|
+
{"version":3,"file":"carousel-item.js","sources":["../../../../../../packages/components/carousel/src/carousel-item.vue"],"sourcesContent":["<template>\n <div\n v-show=\"ready\"\n ref=\"carouselItemRef\"\n :class=\"itemKls\"\n :style=\"itemStyle\"\n @click=\"handleItemClick\"\n >\n <div v-if=\"isCardType\" v-show=\"!active\" :class=\"ns.e('mask')\" />\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, unref } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { carouselItemProps } from './carousel-item'\nimport { useCarouselItem } from './use-carousel-item'\nimport { CAROUSEL_ITEM_NAME } from './constants'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: CAROUSEL_ITEM_NAME,\n})\n\nconst props = defineProps(carouselItemProps)\nconst ns = useNamespace('carousel')\n\n// inject\nconst {\n carouselItemRef,\n active,\n animating,\n hover,\n inStage,\n isVertical,\n translate,\n isCardType,\n scale,\n ready,\n handleItemClick,\n} = useCarouselItem(props)\n\nconst itemKls = computed(() => [\n ns.e('item'),\n ns.is('active', active.value),\n ns.is('in-stage', inStage.value),\n ns.is('hover', hover.value),\n ns.is('animating', animating.value),\n {\n [ns.em('item', 'card')]: isCardType.value,\n [ns.em('item', 'card-vertical')]: isCardType.value && isVertical.value,\n },\n])\n\nconst itemStyle = computed<CSSProperties>(() => {\n const translateType = `translate${unref(isVertical) ? 'Y' : 'X'}`\n const _translate = `${translateType}(${unref(translate)}px)`\n const _scale = `scale(${unref(scale)})`\n const transform = [_translate, _scale].join(' ')\n\n return {\n transform,\n }\n})\n</script>\n"],"names":["CAROUSEL_ITEM_NAME","useNamespace","useCarouselItem","computed","unref"],"mappings":";;;;;;;;;;;uCAsBc,CAAA;AAAA,EACZ,IAAM,EAAAA,4BAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAKC,mBAAa,UAAU,CAAA,CAAA;AAGlC,IAAM,MAAA;AAAA,MACJ,eAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,KAAA;AAAA,MACA,OAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,KAAA;AAAA,MACA,KAAA;AAAA,MACA,eAAA;AAAA,KACF,GAAIC,gCAAgB,KAAK,CAAA,CAAA;AAEzB,IAAM,MAAA,OAAA,GAAUC,aAAS,MAAM;AAAA,MAC7B,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,MACX,EAAG,CAAA,EAAA,CAAG,QAAU,EAAA,MAAA,CAAO,KAAK,CAAA;AAAA,MAC5B,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,MAC/B,EAAG,CAAA,EAAA,CAAG,OAAS,EAAA,KAAA,CAAM,KAAK,CAAA;AAAA,MAC1B,EAAG,CAAA,EAAA,CAAG,WAAa,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,MAClC;AAAA,QACE,CAAC,EAAG,CAAA,EAAA,CAAG,QAAQ,MAAM,CAAC,GAAG,UAAW,CAAA,KAAA;AAAA,QACpC,CAAC,GAAG,EAAG,CAAA,MAAA,EAAQ,eAAe,CAAC,GAAG,UAAW,CAAA,KAAA,IAAS,UAAW,CAAA,KAAA;AAAA,OACnE;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAYA,aAAwB,MAAM;AAC9C,MAAA,MAAM,gBAAgB,CAAY,SAAA,EAAAC,SAAA,CAAM,UAAU,CAAA,GAAI,MAAM,GAAG,CAAA,CAAA,CAAA;AAC/D,MAAA,MAAM,aAAa,CAAG,EAAA,aAAa,CAAI,CAAA,EAAAA,SAAA,CAAM,SAAS,CAAC,CAAA,GAAA,CAAA,CAAA;AACvD,MAAA,MAAM,MAAS,GAAA,CAAA,MAAA,EAASA,SAAM,CAAA,KAAK,CAAC,CAAA,CAAA,CAAA,CAAA;AACpC,MAAA,MAAM,YAAY,CAAC,UAAA,EAAY,MAAM,CAAA,CAAE,KAAK,GAAG,CAAA,CAAA;AAE/C,MAAO,OAAA;AAAA,QACL,SAAA;AAAA,OACF,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -2,77 +2,15 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var carouselItem = require('./carousel-item.js');
|
7
|
-
var useCarouselItem = require('./use-carousel-item.js');
|
8
|
-
var constants = require('./constants.js');
|
9
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
10
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
11
6
|
|
12
|
-
const
|
13
|
-
name:
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
props: carouselItem.carouselItemProps,
|
18
|
-
setup(__props) {
|
19
|
-
const props = __props;
|
20
|
-
const ns = index.useNamespace("carousel");
|
21
|
-
const {
|
22
|
-
carouselItemRef,
|
23
|
-
active,
|
24
|
-
animating,
|
25
|
-
hover,
|
26
|
-
inStage,
|
27
|
-
isVertical,
|
28
|
-
translate,
|
29
|
-
isCardType,
|
30
|
-
scale,
|
31
|
-
ready,
|
32
|
-
handleItemClick
|
33
|
-
} = useCarouselItem.useCarouselItem(props);
|
34
|
-
const itemKls = vue.computed(() => [
|
35
|
-
ns.e("item"),
|
36
|
-
ns.is("active", active.value),
|
37
|
-
ns.is("in-stage", inStage.value),
|
38
|
-
ns.is("hover", hover.value),
|
39
|
-
ns.is("animating", animating.value),
|
40
|
-
{
|
41
|
-
[ns.em("item", "card")]: isCardType.value,
|
42
|
-
[ns.em("item", "card-vertical")]: isCardType.value && isVertical.value
|
43
|
-
}
|
44
|
-
]);
|
45
|
-
const itemStyle = vue.computed(() => {
|
46
|
-
const translateType = `translate${vue.unref(isVertical) ? "Y" : "X"}`;
|
47
|
-
const _translate = `${translateType}(${vue.unref(translate)}px)`;
|
48
|
-
const _scale = `scale(${vue.unref(scale)})`;
|
49
|
-
const transform = [_translate, _scale].join(" ");
|
50
|
-
return {
|
51
|
-
transform
|
52
|
-
};
|
53
|
-
});
|
54
|
-
return (_ctx, _cache) => {
|
55
|
-
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
56
|
-
ref_key: "carouselItemRef",
|
57
|
-
ref: carouselItemRef,
|
58
|
-
class: vue.normalizeClass(vue.unref(itemKls)),
|
59
|
-
style: vue.normalizeStyle(vue.unref(itemStyle)),
|
60
|
-
onClick: vue.unref(handleItemClick)
|
61
|
-
}, [
|
62
|
-
vue.unref(isCardType) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
63
|
-
key: 0,
|
64
|
-
class: vue.normalizeClass(vue.unref(ns).e("mask"))
|
65
|
-
}, null, 2)), [
|
66
|
-
[vue.vShow, !vue.unref(active)]
|
67
|
-
]) : vue.createCommentVNode("v-if", true),
|
68
|
-
vue.renderSlot(_ctx.$slots, "default")
|
69
|
-
], 14, ["onClick"])), [
|
70
|
-
[vue.vShow, vue.unref(ready)]
|
71
|
-
]);
|
72
|
-
};
|
7
|
+
const carouselItemProps = runtime.buildProps({
|
8
|
+
name: { type: String, default: "" },
|
9
|
+
label: {
|
10
|
+
type: [String, Number],
|
11
|
+
default: ""
|
73
12
|
}
|
74
13
|
});
|
75
|
-
var CarouselItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "carousel-item.vue"]]);
|
76
14
|
|
77
|
-
exports
|
15
|
+
exports.carouselItemProps = carouselItemProps;
|
78
16
|
//# sourceMappingURL=carousel-item2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"carousel-item2.js","sources":["../../../../../../packages/components/carousel/src/carousel-item.
|
1
|
+
{"version":3,"file":"carousel-item2.js","sources":["../../../../../../packages/components/carousel/src/carousel-item.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const carouselItemProps = buildProps({\n /**\n * @description name of the item, can be used in `setActiveItem`\n */\n name: { type: String, default: '' },\n /**\n * @description text content for the corresponding indicator\n */\n label: {\n type: [String, Number],\n default: '',\n },\n} as const)\n\nexport type CarouselItemProps = ExtractPropTypes<typeof carouselItemProps>\n"],"names":["buildProps"],"mappings":";;;;;;AACY,MAAC,iBAAiB,GAAGA,kBAAU,CAAC;AAC5C,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
|