@element-plus/nightly 0.0.20260106 → 0.0.20260108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +81 -22
- package/dist/index.full.min.js +16 -16
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +15 -15
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +81 -23
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/src/affix.mjs +1 -1
- package/es/components/alert/src/alert2.mjs +11 -1
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.mjs +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +23 -196
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +196 -23
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +73 -22
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +22 -73
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +65 -42
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +42 -65
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse-item.mjs +118 -17
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +17 -118
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/divider/index.mjs +2 -2
- package/es/components/divider/src/divider.mjs +15 -43
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider2.mjs +43 -15
- package/es/components/divider/src/divider2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +6 -4
- package/es/components/dropdown/src/dropdown-item-impl.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item.mjs +12 -4
- package/es/components/dropdown/src/dropdown-item.mjs.map +1 -1
- package/es/components/form/src/form-item.vue.d.ts +4 -0
- package/es/components/form/src/form-item2.mjs +8 -3
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form.vue.d.ts +4 -0
- package/es/components/form/src/form2.mjs +26 -1
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/form/src/types.d.ts +2 -0
- package/es/components/index.mjs +20 -19
- package/es/components/index.mjs.map +1 -1
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +124 -586
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +586 -124
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag.mjs +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/pagination/src/components/jumper.mjs +7 -69
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +69 -7
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/components/pager.mjs +15 -229
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +229 -15
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/components/total.mjs +27 -6
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +6 -27
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +3 -3
- package/es/components/popover/index.mjs +2 -2
- package/es/components/popover/src/popover.mjs +65 -120
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover2.mjs +120 -65
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/arrow.mjs +7 -38
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +38 -7
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +1 -1
- package/es/components/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +52 -256
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +256 -52
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +85 -295
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +295 -85
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +29 -96
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +96 -29
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +2 -2
- package/es/components/scrollbar/src/scrollbar.mjs +56 -244
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +244 -56
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +2 -2
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton.mjs +17 -67
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +67 -17
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/table-v2/src/components/expand-icon.d.ts +11 -8
- package/es/components/table-v2/src/components/expand-icon.mjs +1 -0
- package/es/components/table-v2/src/components/expand-icon.mjs.map +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +26 -131
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +131 -26
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +8 -18
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +18 -8
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +20 -66
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +66 -20
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/time-select/index.mjs +2 -2
- package/es/components/time-select/src/time-select.mjs +66 -138
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select2.mjs +138 -66
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/timeline/index.mjs +1 -0
- package/es/components/timeline/index.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +11 -2
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/timeline/src/timeline.d.ts +14 -4
- package/es/components/timeline/src/timeline.mjs +15 -7
- package/es/components/timeline/src/timeline.mjs.map +1 -1
- package/es/components/timeline/src/tokens.d.ts +6 -0
- package/es/components/timeline/src/tokens.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/step.mjs +43 -255
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +255 -43
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour.mjs +1 -1
- package/es/components/tour/src/tour2.mjs +2 -1
- package/es/components/tour/src/tour2.mjs.map +1 -1
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +20 -173
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +173 -20
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/components/upload/src/upload-list.mjs +206 -27
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list2.mjs +27 -206
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/index.mjs +20 -19
- 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/lib/components/affix/src/affix.js +1 -1
- package/lib/components/alert/src/alert2.js +11 -1
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.js +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +2 -2
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +24 -196
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +196 -24
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +73 -23
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +23 -73
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +65 -42
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +42 -65
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse-item.js +118 -17
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +17 -118
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/divider/index.js +2 -2
- package/lib/components/divider/src/divider.js +15 -43
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider2.js +43 -15
- package/lib/components/divider/src/divider2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +5 -3
- package/lib/components/dropdown/src/dropdown-item-impl.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item.js +11 -3
- package/lib/components/dropdown/src/dropdown-item.js.map +1 -1
- package/lib/components/form/src/form-item.vue.d.ts +4 -0
- package/lib/components/form/src/form-item2.js +8 -3
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form.vue.d.ts +4 -0
- package/lib/components/form/src/form2.js +26 -1
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/form/src/types.d.ts +2 -0
- package/lib/components/index.js +21 -19
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +121 -582
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +582 -121
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-tag/src/input-tag.js +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/pagination/src/components/jumper.js +7 -69
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +69 -7
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/components/pager.js +15 -229
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +229 -15
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/components/total.js +27 -6
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +6 -27
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +3 -3
- package/lib/components/popover/index.js +2 -2
- package/lib/components/popover/src/popover.js +66 -120
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover2.js +120 -66
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/arrow.js +8 -38
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +38 -8
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/content.js +1 -1
- package/lib/components/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +52 -256
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js +256 -52
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +85 -294
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +294 -85
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +31 -96
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +96 -31
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/src/scrollbar.js +57 -244
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +244 -57
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/select/src/select.js +2 -2
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton.js +17 -67
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +67 -17
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/table-v2/src/components/expand-icon.d.ts +11 -8
- package/lib/components/table-v2/src/components/expand-icon.js +1 -0
- package/lib/components/table-v2/src/components/expand-icon.js.map +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +27 -131
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +131 -27
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +8 -18
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +18 -8
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +20 -66
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +66 -20
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/time-select/index.js +2 -2
- package/lib/components/time-select/src/time-select.js +66 -143
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select2.js +143 -66
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/timeline/index.js +1 -0
- package/lib/components/timeline/index.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +10 -1
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/timeline/src/timeline.d.ts +14 -4
- package/lib/components/timeline/src/timeline.js +14 -5
- package/lib/components/timeline/src/timeline.js.map +1 -1
- package/lib/components/timeline/src/tokens.d.ts +6 -0
- package/lib/components/timeline/src/tokens.js.map +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/step.js +43 -254
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +254 -43
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour.js +1 -1
- package/lib/components/tour/src/tour2.js +2 -1
- package/lib/components/tour/src/tour2.js.map +1 -1
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +22 -173
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +173 -22
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/components/upload/src/upload-list.js +206 -28
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list2.js +28 -206
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/index.js +21 -19
- 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-timeline-item.css +1 -1
- package/theme-chalk/el-timeline.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/timeline-item.scss +55 -4
- package/theme-chalk/src/timeline.scss +55 -0
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-select2.mjs","sources":["../../../../../../packages/components/time-select/src/time-select.
|
|
1
|
+
{"version":3,"file":"time-select2.mjs","sources":["../../../../../../packages/components/time-select/src/time-select.vue"],"sourcesContent":["<template>\n <el-select\n ref=\"select\"\n :model-value=\"value\"\n :disabled=\"_disabled\"\n :clearable=\"clearable\"\n :clear-icon=\"clearIcon\"\n :size=\"size\"\n :effect=\"effect\"\n :placeholder=\"placeholder\"\n default-first-option\n :filterable=\"editable\"\n :empty-values=\"emptyValues\"\n :value-on-clear=\"valueOnClear\"\n :popper-class=\"popperClass\"\n :popper-style=\"popperStyle\"\n @update:model-value=\"(event) => $emit(UPDATE_MODEL_EVENT, event)\"\n @change=\"(event) => $emit(CHANGE_EVENT, event)\"\n @blur=\"(event) => $emit('blur', event)\"\n @focus=\"(event) => $emit('focus', event)\"\n @clear=\"() => $emit('clear')\"\n >\n <el-option\n v-for=\"item in items\"\n :key=\"item.value\"\n :label=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n />\n <template #prefix>\n <el-icon v-if=\"prefixIcon\" :class=\"nsInput.e('prefix-icon')\">\n <component :is=\"prefixIcon\" />\n </el-icon>\n </template>\n </el-select>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js'\nimport ElSelect from '@element-plus/components/select'\nimport { useFormDisabled } from '@element-plus/components/form'\nimport ElIcon from '@element-plus/components/icon'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { timeSelectProps } from './time-select'\nimport { compareTime, formatTime, nextTime, parseTime } from './utils'\n\ndayjs.extend(customParseFormat)\n\nconst { Option: ElOption } = ElSelect\n\ndefineOptions({\n name: 'ElTimeSelect',\n})\n\ndefineEmits([CHANGE_EVENT, 'blur', 'focus', 'clear', UPDATE_MODEL_EVENT])\n\nconst props = defineProps(timeSelectProps)\n\nconst nsInput = useNamespace('input')\nconst select = ref<typeof ElSelect>()\n\nconst _disabled = useFormDisabled()\nconst { lang } = useLocale()\n\nconst value = computed(() => props.modelValue)\nconst start = computed(() => {\n const time = parseTime(props.start)\n return time ? formatTime(time) : null\n})\n\nconst end = computed(() => {\n const time = parseTime(props.end)\n return time ? formatTime(time) : null\n})\n\nconst step = computed(() => {\n const time = parseTime(props.step)\n return time ? formatTime(time) : null\n})\n\nconst minTime = computed(() => {\n const time = parseTime(props.minTime || '')\n return time ? formatTime(time) : null\n})\n\nconst maxTime = computed(() => {\n const time = parseTime(props.maxTime || '')\n return time ? formatTime(time) : null\n})\n\nconst items = computed(() => {\n const result: { value: string; disabled: boolean }[] = []\n const push = (formattedValue: string, rawValue: string) => {\n result.push({\n value: formattedValue,\n disabled:\n compareTime(rawValue, minTime.value || '-1:-1') <= 0 ||\n compareTime(rawValue, maxTime.value || '100:100') >= 0,\n })\n }\n\n if (props.start && props.end && props.step) {\n let current = start.value\n let currentTime: string\n while (current && end.value && compareTime(current, end.value) <= 0) {\n currentTime = dayjs(current, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(currentTime, current)\n current = nextTime(current, step.value!)\n }\n if (\n props.includeEndTime &&\n end.value &&\n result[result.length - 1]?.value !== end.value\n ) {\n const formattedValue = dayjs(end.value, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(formattedValue, end.value)\n }\n }\n return result\n})\n\nconst blur = () => {\n select.value?.blur?.()\n}\n\nconst focus = () => {\n select.value?.focus?.()\n}\n\ndefineExpose({\n /**\n * @description blur the Input component\n */\n blur,\n /**\n * @description focus the Input component\n */\n focus,\n})\n</script>\n"],"names":["_createBlock","_unref","clearable","clearIcon","size","effect","placeholder","editable","emptyValues","valueOnClear","popperClass","popperStyle","$emit","_withCtx","prefixIcon","_normalizeClass","_openBlock","_resolveDynamicComponent","_createElementBlock","_Fragment","_renderList"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAiDA,IAAA,KAAA,CAAM,OAAO,iBAAiB,CAAA,CAAA;AAExB,IAAA,MAAA,EAAE,MAAQ,EAAA,QAAA,EAAa,GAAA,QAAA,CAAA;AAQ7B,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAER,IAAA,MAAA,OAAA,GAAU,aAAa,OAAO,CAAA,CAAA;AACpC,IAAA,MAAM,SAAS,GAAqB,EAAA,CAAA;AAEpC,IAAA,MAAM,YAAY,eAAgB,EAAA,CAAA;AAC5B,IAAA,MAAA,EAAE,IAAK,EAAA,GAAI,SAAU,EAAA,CAAA;AAE3B,IAAA,MAAM,KAAQ,GAAA,QAAA,CAAS,MAAM,KAAA,CAAM,UAAU,CAAA,CAAA;AACvC,IAAA,MAAA,KAAA,GAAQ,SAAS,MAAM;AACrB,MAAA,MAAA,IAAA,GAAO,SAAU,CAAA,KAAA,CAAM,KAAK,CAAA,CAAA;AAC3B,MAAA,OAAA,IAAA,GAAO,UAAW,CAAA,IAAI,CAAI,GAAA,IAAA,CAAA;AAAA,KAClC,CAAA,CAAA;AAEK,IAAA,MAAA,GAAA,GAAM,SAAS,MAAM;AACnB,MAAA,MAAA,IAAA,GAAO,SAAU,CAAA,KAAA,CAAM,GAAG,CAAA,CAAA;AACzB,MAAA,OAAA,IAAA,GAAO,UAAW,CAAA,IAAI,CAAI,GAAA,IAAA,CAAA;AAAA,KAClC,CAAA,CAAA;AAEK,IAAA,MAAA,IAAA,GAAO,SAAS,MAAM;AACpB,MAAA,MAAA,IAAA,GAAO,SAAU,CAAA,KAAA,CAAM,IAAI,CAAA,CAAA;AAC1B,MAAA,OAAA,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elineItemProps } from './src/timeline-item.mjs';
|
|
4
5
|
export { TIMELINE_INJECTION_KEY } from './src/tokens.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/timeline/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils'\nimport Timeline from './src/timeline'\nimport TimelineItem from './src/timeline-item.vue'\n\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport const ElTimeline: SFCWithInstall<typeof Timeline> & {\n TimelineItem: typeof TimelineItem\n} = withInstall(Timeline, {\n TimelineItem,\n})\nexport default ElTimeline\nexport const ElTimelineItem: SFCWithInstall<typeof TimelineItem> =\n withNoopInstall(TimelineItem)\n\nexport * from './src/timeline'\nexport * from './src/timeline-item'\nexport * from './src/tokens'\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/timeline/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils'\nimport Timeline from './src/timeline'\nimport TimelineItem from './src/timeline-item.vue'\n\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport const ElTimeline: SFCWithInstall<typeof Timeline> & {\n TimelineItem: typeof TimelineItem\n} = withInstall(Timeline, {\n TimelineItem,\n})\nexport default ElTimeline\nexport const ElTimelineItem: SFCWithInstall<typeof TimelineItem> =\n withNoopInstall(TimelineItem)\n\nexport * from './src/timeline'\nexport * from './src/timeline-item'\nexport * from './src/tokens'\n"],"names":[],"mappings":";;;;;;;AAMa,MAAA,UAAA,GAET,YAAY,QAAU,EAAA;AAAA,EACxB,YAAA;AACF,CAAC,EAAA;AAEY,MAAA,cAAA,GACX,gBAAgB,YAAY;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass,
|
|
1
|
+
import { defineComponent, inject, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, normalizeStyle, createBlock, withCtx, resolveDynamicComponent, createCommentVNode, renderSlot, toDisplayString } from 'vue';
|
|
2
2
|
import { ElIcon } from '../../icon/index.mjs';
|
|
3
3
|
import { timelineItemProps } from './timeline-item.mjs';
|
|
4
|
+
import { TIMELINE_INJECTION_KEY } from './tokens.mjs';
|
|
4
5
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
5
6
|
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
6
7
|
|
|
@@ -12,6 +13,9 @@ const _sfc_main = defineComponent({
|
|
|
12
13
|
props: timelineItemProps,
|
|
13
14
|
setup(__props) {
|
|
14
15
|
const props = __props;
|
|
16
|
+
const { props: timelineProps } = inject(
|
|
17
|
+
TIMELINE_INJECTION_KEY
|
|
18
|
+
);
|
|
15
19
|
const ns = useNamespace("timeline-item");
|
|
16
20
|
const defaultNodeKls = computed(() => [
|
|
17
21
|
ns.e("node"),
|
|
@@ -19,11 +23,16 @@ const _sfc_main = defineComponent({
|
|
|
19
23
|
ns.em("node", props.type || ""),
|
|
20
24
|
ns.is("hollow", props.hollow)
|
|
21
25
|
]);
|
|
26
|
+
const timelineItemKls = computed(() => [
|
|
27
|
+
ns.b(),
|
|
28
|
+
{ [ns.e("center")]: props.center },
|
|
29
|
+
ns.is(timelineProps.mode)
|
|
30
|
+
]);
|
|
22
31
|
return (_ctx, _cache) => {
|
|
23
32
|
return openBlock(), createElementBlock(
|
|
24
33
|
"li",
|
|
25
34
|
{
|
|
26
|
-
class: normalizeClass(
|
|
35
|
+
class: normalizeClass(timelineItemKls.value)
|
|
27
36
|
},
|
|
28
37
|
[
|
|
29
38
|
createElementVNode(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-item2.mjs","sources":["../../../../../../packages/components/timeline/src/timeline-item.vue"],"sourcesContent":["<template>\n <li :class=\"
|
|
1
|
+
{"version":3,"file":"timeline-item2.mjs","sources":["../../../../../../packages/components/timeline/src/timeline-item.vue"],"sourcesContent":["<template>\n <li :class=\"timelineItemKls\">\n <div :class=\"ns.e('tail')\" />\n <div\n v-if=\"!$slots.dot\"\n :class=\"defaultNodeKls\"\n :style=\"{\n backgroundColor: color,\n }\"\n >\n <el-icon v-if=\"icon\" :class=\"ns.e('icon')\">\n <component :is=\"icon\" />\n </el-icon>\n </div>\n <div v-if=\"$slots.dot\" :class=\"ns.e('dot')\">\n <slot name=\"dot\" />\n </div>\n\n <div :class=\"ns.e('wrapper')\">\n <div\n v-if=\"!hideTimestamp && placement === 'top'\"\n :class=\"[ns.e('timestamp'), ns.is('top')]\"\n >\n {{ timestamp }}\n </div>\n\n <div :class=\"ns.e('content')\">\n <slot />\n </div>\n\n <div\n v-if=\"!hideTimestamp && placement === 'bottom'\"\n :class=\"[ns.e('timestamp'), ns.is('bottom')]\"\n >\n {{ timestamp }}\n </div>\n </div>\n </li>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { timelineItemProps } from './timeline-item'\nimport { TIMELINE_INJECTION_KEY } from './tokens'\n\nimport type { TimelineProvider } from './tokens'\n\ndefineOptions({\n name: 'ElTimelineItem',\n})\n\nconst props = defineProps(timelineItemProps)\n\nconst { props: timelineProps } = inject<TimelineProvider>(\n TIMELINE_INJECTION_KEY\n)!\n\nconst ns = useNamespace('timeline-item')\nconst defaultNodeKls = computed(() => [\n ns.e('node'),\n ns.em('node', props.size || ''),\n ns.em('node', props.type || ''),\n ns.is('hollow', props.hollow),\n])\n\nconst timelineItemKls = computed(() => [\n ns.b(),\n { [ns.e('center')]: props.center },\n ns.is(timelineProps.mode),\n])\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_createElementVNode","_unref","$slots","_normalizeStyle","color","icon","_createBlock","_resolveDynamicComponent","_renderSlot","hideTimestamp","placement","timestamp","_createCommentVNode"],"mappings":";;;;;;;;;;;;;;AAqDA,IAAA,MAAM,KAAQ,GAAA,OAA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,KAAA,CAAA,CAAA,CAAA;AAAA,iBAAA;AAAA,gCAE9BU,KAAS,SAAA,CAAA;AAAA,gBAAA,CAAA;AAAA,eAAA,IAAAC,kBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;AAAA,cAGdZ,kBAAA;AAAA,gBAEM,KAAA;AAAA,gBAAA;AAAA,kBAFA,OAAKD,cAAE,CAAAE,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,SAAA,CAAA,CAAA;AAAA,iBAAA;AAAA;kBACfO,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,iBAAA;AAAA;;cAIDC,CAAAA,IAAAA,CAAAA,aAAAA,IAAiBC,cAAS,KAAA,QAAA,IADnCb,WAAA,EAAAC,kBAAA;AAAA,gBAKM,KAAA;AAAA,gBAAA;AAAA,kBAAA,GAAA,EAAA,CAAA;AAAA,kBAHH,KAAK,EAAAC,cAAA,CAAG,CAAAE,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,WAAA,CAAA,EAAeA,UAAG,EAAE,CAAA,QAAA,CAAA,CAAA,CAAA;AAAA,iBAAA;AAAA,gCAE9BU,KAAS,SAAA,CAAA;AAAA,gBAAA,CAAA;AAAA,eAAA,IAAAC,kBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;AAAA;;;;;;;;;;;;;"}
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
+
import type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
export declare const timelineProps: {
|
|
3
|
+
readonly mode: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "end" | "start" | "alternate" | "alternate-reverse", unknown, "start", boolean>;
|
|
4
|
+
readonly reverse: BooleanConstructor;
|
|
5
|
+
};
|
|
6
|
+
export type TimelineProps = ExtractPropTypes<typeof timelineProps>;
|
|
7
|
+
export type TimelinePropsPublic = ExtractPublicPropTypes<typeof timelineProps>;
|
|
1
8
|
declare const Timeline: import("vue").DefineComponent<{
|
|
2
|
-
|
|
9
|
+
readonly mode: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "end" | "start" | "alternate" | "alternate-reverse", unknown, "start", boolean>;
|
|
10
|
+
readonly reverse: BooleanConstructor;
|
|
3
11
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
4
12
|
[key: string]: any;
|
|
5
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<
|
|
6
|
-
|
|
13
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
14
|
+
readonly mode: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "end" | "start" | "alternate" | "alternate-reverse", unknown, "start", boolean>;
|
|
15
|
+
readonly reverse: BooleanConstructor;
|
|
7
16
|
}>>, {
|
|
8
|
-
reverse: boolean;
|
|
17
|
+
readonly reverse: boolean;
|
|
18
|
+
readonly mode: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "end" | "start" | "alternate" | "alternate-reverse", unknown>;
|
|
9
19
|
}, {}>;
|
|
10
20
|
export default Timeline;
|
|
11
21
|
export type TimelineInstance = InstanceType<typeof Timeline> & unknown;
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import { defineComponent, provide, h } from 'vue';
|
|
1
|
+
import { defineComponent, provide, computed, h } from 'vue';
|
|
2
2
|
import { TIMELINE_INJECTION_KEY } from './tokens.mjs';
|
|
3
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
3
4
|
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
4
5
|
import { flattedChildren } from '../../../utils/vue/vnode.mjs';
|
|
5
6
|
|
|
7
|
+
const timelineProps = buildProps({
|
|
8
|
+
mode: {
|
|
9
|
+
type: String,
|
|
10
|
+
values: ["start", "alternate", "alternate-reverse", "end"],
|
|
11
|
+
default: "start"
|
|
12
|
+
},
|
|
13
|
+
reverse: Boolean
|
|
14
|
+
});
|
|
6
15
|
const Timeline = defineComponent({
|
|
7
16
|
name: "ElTimeline",
|
|
8
|
-
props:
|
|
9
|
-
reverse: Boolean
|
|
10
|
-
},
|
|
17
|
+
props: timelineProps,
|
|
11
18
|
setup(props, { slots }) {
|
|
12
19
|
const ns = useNamespace("timeline");
|
|
13
|
-
provide(TIMELINE_INJECTION_KEY, slots);
|
|
20
|
+
provide(TIMELINE_INJECTION_KEY, { props, slots });
|
|
21
|
+
const timelineKls = computed(() => [ns.b(), ns.is(props.mode)]);
|
|
14
22
|
return () => {
|
|
15
23
|
var _a, _b;
|
|
16
24
|
const children = flattedChildren(
|
|
@@ -18,12 +26,12 @@ const Timeline = defineComponent({
|
|
|
18
26
|
);
|
|
19
27
|
return h(
|
|
20
28
|
"ul",
|
|
21
|
-
{ class:
|
|
29
|
+
{ class: timelineKls.value },
|
|
22
30
|
props.reverse ? children.reverse() : children
|
|
23
31
|
);
|
|
24
32
|
};
|
|
25
33
|
}
|
|
26
34
|
});
|
|
27
35
|
|
|
28
|
-
export { Timeline as default };
|
|
36
|
+
export { Timeline as default, timelineProps };
|
|
29
37
|
//# sourceMappingURL=timeline.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline.mjs","sources":["../../../../../../packages/components/timeline/src/timeline.ts"],"sourcesContent":["import { defineComponent, h, provide } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { TIMELINE_INJECTION_KEY } from './tokens'\nimport { flattedChildren } from '@element-plus/utils'\n\nimport type { VNodeChildAtom } from '@element-plus/utils'\n\
|
|
1
|
+
{"version":3,"file":"timeline.mjs","sources":["../../../../../../packages/components/timeline/src/timeline.ts"],"sourcesContent":["import { computed, defineComponent, h, provide } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { TIMELINE_INJECTION_KEY } from './tokens'\nimport { buildProps, flattedChildren } from '@element-plus/utils'\n\nimport type { VNodeChildAtom } from '@element-plus/utils'\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type { TimelineProvider } from './tokens'\n\nexport const timelineProps = buildProps({\n /**\n * @description relative position of timeline and content\n */\n mode: {\n type: String,\n values: ['start', 'alternate', 'alternate-reverse', 'end'],\n default: 'start',\n },\n /**\n * @description whether reverse order\n */\n reverse: Boolean,\n} as const)\nexport type TimelineProps = ExtractPropTypes<typeof timelineProps>\nexport type TimelinePropsPublic = ExtractPublicPropTypes<typeof timelineProps>\n\nconst Timeline = defineComponent({\n name: 'ElTimeline',\n props: timelineProps,\n\n setup(props, { slots }) {\n const ns = useNamespace('timeline')\n\n provide<TimelineProvider>(TIMELINE_INJECTION_KEY, { props, slots })\n\n const timelineKls = computed(() => [ns.b(), ns.is(props.mode)])\n\n return () => {\n const children = flattedChildren(\n slots.default?.() ?? []\n ) as VNodeChildAtom[]\n\n return h(\n 'ul',\n { class: timelineKls.value },\n props.reverse ? children.reverse() : children\n )\n }\n },\n})\n\nexport default Timeline\nexport type TimelineInstance = InstanceType<typeof Timeline> & unknown\n"],"names":[],"mappings":";;;;;;AASO,MAAM,gBAAgB,UAAW,CAAA;AAAA,EAItC,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,CAAC,OAAS,EAAA,WAAA,EAAa,qBAAqB,KAAK,CAAA;AAAA,IACzD,OAAS,EAAA,OAAA;AAAA,GACX;AAAA,EAIA,OAAS,EAAA,OAAA;AACX,CAAU,EAAA;AAIV,MAAM,WAAW,eAAgB,CAAA;AAAA,EAC/B,IAAM,EAAA,YAAA;AAAA,EACN,KAAO,EAAA,aAAA;AAAA,EAEP,KAAM,CAAA,KAAA,EAAO,EAAE,KAAA,EAAS,EAAA;AACtB,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAElC,IAAA,OAAA,CAA0B,sBAAwB,EAAA,EAAE,KAAO,EAAA,KAAA,EAAO,CAAA,CAAA;AAElE,IAAA,MAAM,WAAc,GAAA,QAAA,CAAS,MAAM,CAAC,EAAG,CAAA,CAAA,EAAK,EAAA,EAAA,CAAG,EAAG,CAAA,KAAA,CAAM,IAAI,CAAC,CAAC,CAAA,CAAA;AAE9D,IAAA,OAAO,MAAM;AArCjB,MAAA,IAAA,EAAA,EAAA,EAAA,CAAA;AAsCM,MAAA,MAAM,QAAW,GAAA,eAAA;AAAA,QACf,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAM,OAAN,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,KAAA,CAAA,KAAA,IAAA,GAAA,EAAA,GAAqB,EAAC;AAAA,OACxB,CAAA;AAEA,MAAO,OAAA,CAAA;AAAA,QACL,IAAA;AAAA,QACA,EAAE,KAAO,EAAA,WAAA,CAAY,KAAM,EAAA;AAAA,QAC3B,KAAM,CAAA,OAAA,GAAU,QAAS,CAAA,OAAA,EAAY,GAAA,QAAA;AAAA,OACvC,CAAA;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.mjs","sources":["../../../../../../packages/components/timeline/src/tokens.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"tokens.mjs","sources":["../../../../../../packages/components/timeline/src/tokens.ts"],"sourcesContent":["import type { Slots } from 'vue'\nimport type { TimelineProps } from './timeline'\n\nexport interface TimelineProvider {\n props: TimelineProps\n slots: Slots\n}\n\nexport const TIMELINE_INJECTION_KEY = 'timeline'\n"],"names":[],"mappings":"AAQO,MAAM,sBAAyB,GAAA;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useDelayedToggleProps } from '../../../hooks/use-delayed-toggle/index.mjs';
|
|
2
2
|
import { popperContentProps } from '../../popper/src/content.mjs';
|
|
3
3
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
4
|
-
import { teleportProps } from '../../teleport/src/
|
|
4
|
+
import { teleportProps } from '../../teleport/src/teleport.mjs';
|
|
5
5
|
import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
|
|
6
6
|
|
|
7
7
|
const useTooltipContentProps = buildProps({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useTooltipContentProps } from './content.mjs';
|
|
2
2
|
import { useTooltipTriggerProps } from './trigger.mjs';
|
|
3
3
|
import { popperProps } from '../../popper/src/popper.mjs';
|
|
4
|
-
import { popperArrowProps } from '../../popper/src/
|
|
4
|
+
import { popperArrowProps } from '../../popper/src/arrow.mjs';
|
|
5
5
|
import { createModelToggleComposable } from '../../../hooks/use-model-toggle/index.mjs';
|
|
6
6
|
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
7
7
|
|
|
@@ -7,7 +7,7 @@ import ElTooltipContent from './content2.mjs';
|
|
|
7
7
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
8
|
import { usePopperContainer } from '../../../hooks/use-popper-container/index.mjs';
|
|
9
9
|
import { useDelayedToggle } from '../../../hooks/use-delayed-toggle/index.mjs';
|
|
10
|
-
import ElPopperArrow from '../../popper/src/
|
|
10
|
+
import ElPopperArrow from '../../popper/src/arrow2.mjs';
|
|
11
11
|
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
12
12
|
import { useId } from '../../../hooks/use-id/index.mjs';
|
|
13
13
|
import { isBoolean } from '../../../utils/types.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Tour from './src/tour2.mjs';
|
|
2
|
-
import TourStep from './src/
|
|
2
|
+
import TourStep from './src/step2.mjs';
|
|
3
3
|
export { tourEmits, tourProps } from './src/tour.mjs';
|
|
4
|
-
export { tourStepEmits, tourStepProps } from './src/
|
|
4
|
+
export { tourStepEmits, tourStepProps } from './src/step.mjs';
|
|
5
5
|
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './src/content.mjs';
|
|
6
6
|
import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
|
|
7
7
|
|
|
@@ -1,261 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ElIcon } from '../../icon/index.mjs';
|
|
5
|
-
import { tourStepProps, tourStepEmits } from './step2.mjs';
|
|
6
|
-
import { tourKey } from './helper.mjs';
|
|
7
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
9
|
-
import { CloseComponents } from '../../../utils/vue/icon.mjs';
|
|
10
|
-
import { getEventCode } from '../../../utils/dom/event.mjs';
|
|
11
|
-
import { EVENT_CODE } from '../../../constants/aria.mjs';
|
|
1
|
+
import { tourContentProps } from './content.mjs';
|
|
2
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
3
|
+
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
|
12
4
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
name: "ElTourStep"
|
|
5
|
+
const tourStepProps = buildProps({
|
|
6
|
+
target: {
|
|
7
|
+
type: definePropType([String, Object, Function])
|
|
17
8
|
},
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return (_a = props.showClose) != null ? _a : showClose.value;
|
|
52
|
-
});
|
|
53
|
-
const mergedCloseIcon = computed(
|
|
54
|
-
() => {
|
|
55
|
-
var _a, _b;
|
|
56
|
-
return (_b = (_a = props.closeIcon) != null ? _a : closeIcon.value) != null ? _b : Close;
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
const filterButtonProps = (btnProps) => {
|
|
60
|
-
if (!btnProps)
|
|
61
|
-
return;
|
|
62
|
-
return omit(btnProps, ["children", "onClick"]);
|
|
63
|
-
};
|
|
64
|
-
const onPrev = () => {
|
|
65
|
-
var _a, _b;
|
|
66
|
-
current.value -= 1;
|
|
67
|
-
if ((_a = props.prevButtonProps) == null ? void 0 : _a.onClick) {
|
|
68
|
-
(_b = props.prevButtonProps) == null ? void 0 : _b.onClick();
|
|
69
|
-
}
|
|
70
|
-
onChange();
|
|
71
|
-
};
|
|
72
|
-
const onNext = () => {
|
|
73
|
-
var _a;
|
|
74
|
-
if (current.value >= total.value - 1) {
|
|
75
|
-
onFinish();
|
|
76
|
-
} else {
|
|
77
|
-
current.value += 1;
|
|
78
|
-
}
|
|
79
|
-
if ((_a = props.nextButtonProps) == null ? void 0 : _a.onClick) {
|
|
80
|
-
props.nextButtonProps.onClick();
|
|
81
|
-
}
|
|
82
|
-
onChange();
|
|
83
|
-
};
|
|
84
|
-
const onFinish = () => {
|
|
85
|
-
onClose();
|
|
86
|
-
tourOnFinish();
|
|
87
|
-
};
|
|
88
|
-
const onClose = () => {
|
|
89
|
-
updateModelValue(false);
|
|
90
|
-
tourOnClose();
|
|
91
|
-
emit("close");
|
|
92
|
-
};
|
|
93
|
-
const handleKeydown = (e) => {
|
|
94
|
-
const target = e.target;
|
|
95
|
-
if (target == null ? void 0 : target.isContentEditable)
|
|
96
|
-
return;
|
|
97
|
-
const code = getEventCode(e);
|
|
98
|
-
switch (code) {
|
|
99
|
-
case EVENT_CODE.left:
|
|
100
|
-
e.preventDefault();
|
|
101
|
-
current.value > 0 && onPrev();
|
|
102
|
-
break;
|
|
103
|
-
case EVENT_CODE.right:
|
|
104
|
-
e.preventDefault();
|
|
105
|
-
onNext();
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
onMounted(() => {
|
|
110
|
-
window.addEventListener("keydown", handleKeydown);
|
|
111
|
-
});
|
|
112
|
-
onBeforeUnmount(() => {
|
|
113
|
-
window.removeEventListener("keydown", handleKeydown);
|
|
114
|
-
});
|
|
115
|
-
return (_ctx, _cache) => {
|
|
116
|
-
return openBlock(), createElementBlock(
|
|
117
|
-
Fragment,
|
|
118
|
-
null,
|
|
119
|
-
[
|
|
120
|
-
mergedShowClose.value ? (openBlock(), createElementBlock("button", {
|
|
121
|
-
key: 0,
|
|
122
|
-
"aria-label": unref(t)("el.tour.close"),
|
|
123
|
-
class: normalizeClass(unref(ns).e("closebtn")),
|
|
124
|
-
type: "button",
|
|
125
|
-
onClick: onClose
|
|
126
|
-
}, [
|
|
127
|
-
createVNode(unref(ElIcon), {
|
|
128
|
-
class: normalizeClass(unref(ns).e("close"))
|
|
129
|
-
}, {
|
|
130
|
-
default: withCtx(() => [
|
|
131
|
-
(openBlock(), createBlock(resolveDynamicComponent(mergedCloseIcon.value)))
|
|
132
|
-
]),
|
|
133
|
-
_: 1
|
|
134
|
-
}, 8, ["class"])
|
|
135
|
-
], 10, _hoisted_1)) : createCommentVNode("v-if", true),
|
|
136
|
-
createElementVNode(
|
|
137
|
-
"header",
|
|
138
|
-
{
|
|
139
|
-
class: normalizeClass([unref(ns).e("header"), { "show-close": unref(showClose) }])
|
|
140
|
-
},
|
|
141
|
-
[
|
|
142
|
-
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
143
|
-
createElementVNode(
|
|
144
|
-
"span",
|
|
145
|
-
{
|
|
146
|
-
role: "heading",
|
|
147
|
-
class: normalizeClass(unref(ns).e("title"))
|
|
148
|
-
},
|
|
149
|
-
toDisplayString(_ctx.title),
|
|
150
|
-
3
|
|
151
|
-
)
|
|
152
|
-
])
|
|
153
|
-
],
|
|
154
|
-
2
|
|
155
|
-
),
|
|
156
|
-
createElementVNode(
|
|
157
|
-
"div",
|
|
158
|
-
{
|
|
159
|
-
class: normalizeClass(unref(ns).e("body"))
|
|
160
|
-
},
|
|
161
|
-
[
|
|
162
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
163
|
-
createElementVNode(
|
|
164
|
-
"span",
|
|
165
|
-
null,
|
|
166
|
-
toDisplayString(_ctx.description),
|
|
167
|
-
1
|
|
168
|
-
)
|
|
169
|
-
])
|
|
170
|
-
],
|
|
171
|
-
2
|
|
172
|
-
),
|
|
173
|
-
createElementVNode(
|
|
174
|
-
"footer",
|
|
175
|
-
{
|
|
176
|
-
class: normalizeClass(unref(ns).e("footer"))
|
|
177
|
-
},
|
|
178
|
-
[
|
|
179
|
-
createElementVNode(
|
|
180
|
-
"div",
|
|
181
|
-
{
|
|
182
|
-
class: normalizeClass(unref(ns).b("indicators"))
|
|
183
|
-
},
|
|
184
|
-
[
|
|
185
|
-
unref(tourSlots).indicators ? (openBlock(), createBlock(resolveDynamicComponent(unref(tourSlots).indicators), {
|
|
186
|
-
key: 0,
|
|
187
|
-
current: unref(current),
|
|
188
|
-
total: unref(total)
|
|
189
|
-
}, null, 8, ["current", "total"])) : (openBlock(true), createElementBlock(
|
|
190
|
-
Fragment,
|
|
191
|
-
{ key: 1 },
|
|
192
|
-
renderList(unref(total), (item, index) => {
|
|
193
|
-
return openBlock(), createElementBlock(
|
|
194
|
-
"span",
|
|
195
|
-
{
|
|
196
|
-
key: item,
|
|
197
|
-
class: normalizeClass([unref(ns).b("indicator"), unref(ns).is("active", index === unref(current))])
|
|
198
|
-
},
|
|
199
|
-
null,
|
|
200
|
-
2
|
|
201
|
-
);
|
|
202
|
-
}),
|
|
203
|
-
128
|
|
204
|
-
))
|
|
205
|
-
],
|
|
206
|
-
2
|
|
207
|
-
),
|
|
208
|
-
createElementVNode(
|
|
209
|
-
"div",
|
|
210
|
-
{
|
|
211
|
-
class: normalizeClass(unref(ns).b("buttons"))
|
|
212
|
-
},
|
|
213
|
-
[
|
|
214
|
-
unref(current) > 0 ? (openBlock(), createBlock(unref(ElButton), mergeProps({
|
|
215
|
-
key: 0,
|
|
216
|
-
size: "small",
|
|
217
|
-
type: unref(mergedType)
|
|
218
|
-
}, filterButtonProps(_ctx.prevButtonProps), { onClick: onPrev }), {
|
|
219
|
-
default: withCtx(() => {
|
|
220
|
-
var _a, _b;
|
|
221
|
-
return [
|
|
222
|
-
createTextVNode(
|
|
223
|
-
toDisplayString((_b = (_a = _ctx.prevButtonProps) == null ? void 0 : _a.children) != null ? _b : unref(t)("el.tour.previous")),
|
|
224
|
-
1
|
|
225
|
-
)
|
|
226
|
-
];
|
|
227
|
-
}),
|
|
228
|
-
_: 1
|
|
229
|
-
}, 16, ["type"])) : createCommentVNode("v-if", true),
|
|
230
|
-
unref(current) <= unref(total) - 1 ? (openBlock(), createBlock(unref(ElButton), mergeProps({
|
|
231
|
-
key: 1,
|
|
232
|
-
size: "small",
|
|
233
|
-
type: unref(mergedType) === "primary" ? "default" : "primary"
|
|
234
|
-
}, filterButtonProps(_ctx.nextButtonProps), { onClick: onNext }), {
|
|
235
|
-
default: withCtx(() => {
|
|
236
|
-
var _a, _b;
|
|
237
|
-
return [
|
|
238
|
-
createTextVNode(
|
|
239
|
-
toDisplayString((_b = (_a = _ctx.nextButtonProps) == null ? void 0 : _a.children) != null ? _b : unref(current) === unref(total) - 1 ? unref(t)("el.tour.finish") : unref(t)("el.tour.next")),
|
|
240
|
-
1
|
|
241
|
-
)
|
|
242
|
-
];
|
|
243
|
-
}),
|
|
244
|
-
_: 1
|
|
245
|
-
}, 16, ["type"])) : createCommentVNode("v-if", true)
|
|
246
|
-
],
|
|
247
|
-
2
|
|
248
|
-
)
|
|
249
|
-
],
|
|
250
|
-
2
|
|
251
|
-
)
|
|
252
|
-
],
|
|
253
|
-
64
|
|
254
|
-
);
|
|
255
|
-
};
|
|
9
|
+
title: String,
|
|
10
|
+
description: String,
|
|
11
|
+
showClose: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: void 0
|
|
14
|
+
},
|
|
15
|
+
closeIcon: {
|
|
16
|
+
type: iconPropType
|
|
17
|
+
},
|
|
18
|
+
showArrow: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: void 0
|
|
21
|
+
},
|
|
22
|
+
placement: tourContentProps.placement,
|
|
23
|
+
mask: {
|
|
24
|
+
type: definePropType([Boolean, Object]),
|
|
25
|
+
default: void 0
|
|
26
|
+
},
|
|
27
|
+
contentStyle: {
|
|
28
|
+
type: definePropType([Object])
|
|
29
|
+
},
|
|
30
|
+
prevButtonProps: {
|
|
31
|
+
type: definePropType(Object)
|
|
32
|
+
},
|
|
33
|
+
nextButtonProps: {
|
|
34
|
+
type: definePropType(Object)
|
|
35
|
+
},
|
|
36
|
+
scrollIntoViewOptions: {
|
|
37
|
+
type: definePropType([Boolean, Object]),
|
|
38
|
+
default: void 0
|
|
39
|
+
},
|
|
40
|
+
type: {
|
|
41
|
+
type: definePropType(String)
|
|
256
42
|
}
|
|
257
43
|
});
|
|
258
|
-
|
|
44
|
+
const tourStepEmits = {
|
|
45
|
+
close: () => true
|
|
46
|
+
};
|
|
259
47
|
|
|
260
|
-
export {
|
|
48
|
+
export { tourStepEmits, tourStepProps };
|
|
261
49
|
//# sourceMappingURL=step.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step.mjs","sources":["../../../../../../packages/components/tour/src/step.vue"],"sourcesContent":["<template>\n <button\n v-if=\"mergedShowClose\"\n :aria-label=\"t('el.tour.close')\"\n :class=\"ns.e('closebtn')\"\n type=\"button\"\n @click=\"onClose\"\n >\n <el-icon :class=\"ns.e('close')\">\n <component :is=\"mergedCloseIcon\" />\n </el-icon>\n </button>\n <header :class=\"[ns.e('header'), { 'show-close': showClose }]\">\n <slot name=\"header\">\n <span role=\"heading\" :class=\"ns.e('title')\">\n {{ title }}\n </span>\n </slot>\n </header>\n <div :class=\"ns.e('body')\">\n <slot>\n <span>{{ description }}</span>\n </slot>\n </div>\n <footer :class=\"ns.e('footer')\">\n <div :class=\"ns.b('indicators')\">\n <component\n :is=\"tourSlots.indicators\"\n v-if=\"tourSlots.indicators\"\n :current=\"current\"\n :total=\"total\"\n />\n <template v-else>\n <span\n v-for=\"(item, index) in total\"\n :key=\"item\"\n :class=\"[ns.b('indicator'), ns.is('active', index === current)]\"\n />\n </template>\n </div>\n <div :class=\"ns.b('buttons')\">\n <el-button\n v-if=\"current > 0\"\n size=\"small\"\n :type=\"mergedType\"\n v-bind=\"filterButtonProps(prevButtonProps)\"\n @click=\"onPrev\"\n >\n {{ prevButtonProps?.children ?? t('el.tour.previous') }}\n </el-button>\n <el-button\n v-if=\"current <= total - 1\"\n size=\"small\"\n :type=\"mergedType === 'primary' ? 'default' : 'primary'\"\n v-bind=\"filterButtonProps(nextButtonProps)\"\n @click=\"onNext\"\n >\n {{\n nextButtonProps?.children ??\n (current === total - 1 ? t('el.tour.finish') : t('el.tour.next'))\n }}\n </el-button>\n </div>\n </footer>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, onBeforeUnmount, onMounted, watch } from 'vue'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { omit } from 'lodash-unified'\nimport { ElButton } from '@element-plus/components/button'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CloseComponents, getEventCode } from '@element-plus/utils'\nimport { useLocale } from '@element-plus/hooks'\nimport { tourStepEmits, tourStepProps } from './step'\nimport { tourKey } from './helper'\n\nimport type { TourBtnProps } from './types'\n\ndefineOptions({\n name: 'ElTourStep',\n})\n\nconst props = defineProps(tourStepProps)\nconst emit = defineEmits(tourStepEmits)\n\nconst { Close } = CloseComponents\n\nconst { t } = useLocale()\n\nconst {\n currentStep,\n current,\n total,\n showClose,\n closeIcon,\n mergedType,\n ns,\n slots: tourSlots,\n updateModelValue,\n onClose: tourOnClose,\n onFinish: tourOnFinish,\n onChange,\n} = inject(tourKey)!\n\nwatch(\n props,\n (val) => {\n currentStep.value = val\n },\n {\n immediate: true,\n }\n)\n\nconst mergedShowClose = computed(() => props.showClose ?? showClose.value)\nconst mergedCloseIcon = computed(\n () => props.closeIcon ?? closeIcon.value ?? Close\n)\n\nconst filterButtonProps = (btnProps?: TourBtnProps) => {\n if (!btnProps) return\n return omit(btnProps, ['children', 'onClick'])\n}\n\nconst onPrev = () => {\n current.value -= 1\n if (props.prevButtonProps?.onClick) {\n props.prevButtonProps?.onClick()\n }\n onChange()\n}\n\nconst onNext = () => {\n if (current.value >= total.value - 1) {\n onFinish()\n } else {\n current.value += 1\n }\n if (props.nextButtonProps?.onClick) {\n props.nextButtonProps.onClick()\n }\n onChange()\n}\n\nconst onFinish = () => {\n onClose()\n tourOnFinish()\n}\n\nconst onClose = () => {\n updateModelValue(false)\n tourOnClose()\n emit('close')\n}\n\nconst handleKeydown = (e: KeyboardEvent) => {\n const target = e.target as HTMLElement | null\n if (target?.isContentEditable) return\n const code = getEventCode(e)\n\n switch (code) {\n case EVENT_CODE.left:\n e.preventDefault()\n current.value > 0 && onPrev()\n break\n case EVENT_CODE.right:\n e.preventDefault()\n onNext()\n break\n }\n}\n\nonMounted(() => {\n window.addEventListener('keydown', handleKeydown)\n})\n\nonBeforeUnmount(() => {\n window.removeEventListener('keydown', handleKeydown)\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_unref","_normalizeClass","_createVNode","_createBlock","_resolveDynamicComponent","_createElementVNode","_renderSlot","title","_toDisplayString","description","_Fragment","_renderList","_mergeProps","prevButtonProps","_withCtx","_createTextVNode","nextButtonProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAmFA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEP,IAAA,MAAA,EAAE,OAAU,GAAA,eAAA,CAAA;AAEZ,IAAA,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AAElB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
|
+
{"version":3,"file":"step.mjs","sources":["../../../../../../packages/components/tour/src/step.ts"],"sourcesContent":["import { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { tourContentProps } from './content'\n\nimport type {\n CSSProperties,\n ExtractPropTypes,\n ExtractPublicPropTypes,\n} from 'vue'\nimport type { TourBtnProps, TourMask } from './types'\n\nexport const tourStepProps = buildProps({\n /**\n * @description get the element the guide card points to. empty makes it show in center of screen\n */\n target: {\n type: definePropType<\n string | HTMLElement | (() => HTMLElement | null) | null\n >([String, Object, Function]),\n },\n /**\n * @description the title of the tour content\n */\n title: String,\n /**\n * @description description\n */\n description: String,\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n },\n /**\n * @description whether to show the arrow\n */\n showArrow: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description position of the guide card relative to the target element\n */\n placement: tourContentProps.placement,\n /**\n * @description whether to enable masking, change mask style and fill color by pass custom props\n */\n mask: {\n type: definePropType<TourMask>([Boolean, Object]),\n default: undefined,\n },\n /**\n * @description custom style for content\n */\n contentStyle: {\n type: definePropType<CSSProperties>([Object]),\n },\n /**\n * @description properties of the previous button\n */\n prevButtonProps: {\n type: definePropType<TourBtnProps>(Object),\n },\n /**\n * @description properties of the Next button\n */\n nextButtonProps: {\n type: definePropType<TourBtnProps>(Object),\n },\n /**\n * @description support pass custom scrollIntoView options\n */\n scrollIntoViewOptions: {\n type: definePropType<boolean | ScrollIntoViewOptions>([Boolean, Object]),\n default: undefined,\n },\n /**\n * @description type, affects the background color and text color\n */\n type: {\n type: definePropType<'default' | 'primary'>(String),\n },\n})\n\nexport type TourStepProps = ExtractPropTypes<typeof tourStepProps>\nexport type TourStepPropsPublic = ExtractPublicPropTypes<typeof tourStepProps>\n\nexport const tourStepEmits = {\n close: () => true,\n}\nexport type TourStepEmits = typeof tourStepEmits\n"],"names":[],"mappings":";;;;AAU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