@element-plus/nightly 0.0.20251227 → 0.0.20251229
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/dist/index.full.js +11 -14
- package/dist/index.full.min.js +11 -11
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11 -11
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +11 -14
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +153 -29
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +29 -153
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +59 -485
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +485 -59
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/avatar/index.mjs +2 -2
- package/es/components/avatar/src/avatar.mjs +74 -30
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/avatar/src/avatar2.mjs +30 -74
- package/es/components/avatar/src/avatar2.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +1 -1
- package/es/components/calendar/src/select-controller.mjs +12 -95
- package/es/components/calendar/src/select-controller.mjs.map +1 -1
- package/es/components/calendar/src/select-controller2.mjs +95 -12
- package/es/components/calendar/src/select-controller2.mjs.map +1 -1
- package/es/components/cascader/index.mjs +2 -2
- package/es/components/cascader/src/cascader.mjs +103 -822
- package/es/components/cascader/src/cascader.mjs.map +1 -1
- package/es/components/cascader/src/cascader2.mjs +822 -103
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/check-tag/index.mjs +2 -2
- package/es/components/check-tag/src/check-tag.mjs +14 -43
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +43 -14
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/form/index.mjs +4 -4
- package/es/components/form/src/form-item.mjs +355 -45
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item2.mjs +45 -355
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form.mjs +174 -54
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +54 -174
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/index.mjs +12 -12
- package/es/components/message/index.mjs +1 -1
- package/es/components/message/src/message.mjs +190 -107
- package/es/components/message/src/message.mjs.map +1 -1
- package/es/components/message/src/message2.mjs +107 -190
- package/es/components/message/src/message2.mjs.map +1 -1
- package/es/components/message/src/method.mjs +2 -2
- package/es/components/pagination/src/components/next.mjs +43 -17
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +17 -43
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/components/pager.mjs +229 -15
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +15 -229
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.mjs +25 -88
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes2.mjs +88 -25
- package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +3 -3
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +96 -29
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +29 -96
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/select/src/option2.mjs +1 -3
- package/es/components/select/src/option2.mjs.map +1 -1
- package/es/components/select-v2/src/option-item.mjs +1 -3
- package/es/components/select-v2/src/option-item.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton.mjs +67 -17
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +17 -67
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +18 -8
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +8 -18
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tour/index.mjs +1 -1
- package/es/components/tour/src/content.mjs +42 -85
- package/es/components/tour/src/content.mjs.map +1 -1
- package/es/components/tour/src/content2.mjs +85 -42
- package/es/components/tour/src/content2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +1 -1
- package/es/components/tour/src/tour.mjs +2 -2
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/virtual-list/src/hooks/use-wheel.mjs +8 -7
- package/es/components/virtual-list/src/hooks/use-wheel.mjs.map +1 -1
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +26 -247
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +247 -26
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/index.mjs +12 -12
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/index.js +2 -2
- package/lib/components/affix/src/affix.js +153 -30
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +30 -153
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +58 -483
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +483 -58
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/avatar/index.js +2 -2
- package/lib/components/avatar/src/avatar.js +74 -31
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/avatar/src/avatar2.js +31 -74
- package/lib/components/avatar/src/avatar2.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +1 -1
- package/lib/components/calendar/src/select-controller.js +12 -98
- package/lib/components/calendar/src/select-controller.js.map +1 -1
- package/lib/components/calendar/src/select-controller2.js +98 -12
- package/lib/components/calendar/src/select-controller2.js.map +1 -1
- package/lib/components/cascader/index.js +2 -2
- package/lib/components/cascader/src/cascader.js +103 -821
- package/lib/components/cascader/src/cascader.js.map +1 -1
- package/lib/components/cascader/src/cascader2.js +821 -103
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/check-tag/index.js +2 -2
- package/lib/components/check-tag/src/check-tag.js +15 -43
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +43 -15
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/form/index.js +4 -4
- package/lib/components/form/src/form-item.js +359 -46
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item2.js +46 -359
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form.js +173 -55
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +55 -173
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/index.js +12 -12
- package/lib/components/message/index.js +1 -1
- package/lib/components/message/src/message.js +189 -111
- package/lib/components/message/src/message.js.map +1 -1
- package/lib/components/message/src/message2.js +111 -189
- package/lib/components/message/src/message2.js.map +1 -1
- package/lib/components/message/src/method.js +2 -2
- package/lib/components/pagination/src/components/next.js +43 -17
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +17 -43
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/components/pager.js +229 -15
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +15 -229
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.js +25 -88
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes2.js +88 -25
- package/lib/components/pagination/src/components/sizes2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +3 -3
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +96 -31
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +31 -96
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/select/src/option2.js +1 -3
- package/lib/components/select/src/option2.js.map +1 -1
- package/lib/components/select-v2/src/option-item.js +1 -3
- package/lib/components/select-v2/src/option-item.js.map +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton.js +67 -17
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +17 -67
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +18 -8
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +8 -18
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tour/index.js +1 -1
- package/lib/components/tour/src/content.js +45 -85
- package/lib/components/tour/src/content.js.map +1 -1
- package/lib/components/tour/src/content2.js +85 -45
- package/lib/components/tour/src/content2.js.map +1 -1
- package/lib/components/tour/src/step.js +1 -1
- package/lib/components/tour/src/tour.js +2 -2
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/virtual-list/src/hooks/use-wheel.js +7 -6
- package/lib/components/virtual-list/src/hooks/use-wheel.js.map +1 -1
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +26 -247
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +247 -26
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/index.js +12 -12
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -2,41 +2,84 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$1 = require('../../icon/index.js');
|
|
7
|
+
var avatar = require('./avatar2.js');
|
|
8
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
9
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
10
|
+
var shared = require('@vue/shared');
|
|
7
11
|
var types = require('../../../utils/types.js');
|
|
8
|
-
var
|
|
12
|
+
var style = require('../../../utils/dom/style.js');
|
|
9
13
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
default: "",
|
|
15
|
-
validator: (val) => types.isNumber(val)
|
|
14
|
+
const _hoisted_1 = ["src", "alt", "srcset"];
|
|
15
|
+
const _sfc_main = vue.defineComponent({
|
|
16
|
+
...{
|
|
17
|
+
name: "ElAvatar"
|
|
16
18
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
19
|
+
__name: "avatar",
|
|
20
|
+
props: avatar.avatarProps,
|
|
21
|
+
emits: avatar.avatarEmits,
|
|
22
|
+
setup(__props, { emit: __emit }) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
const emit = __emit;
|
|
25
|
+
const ns = index.useNamespace("avatar");
|
|
26
|
+
const hasLoadError = vue.ref(false);
|
|
27
|
+
const avatarClass = vue.computed(() => {
|
|
28
|
+
const { size, icon, shape } = props;
|
|
29
|
+
const classList = [ns.b()];
|
|
30
|
+
if (shared.isString(size))
|
|
31
|
+
classList.push(ns.m(size));
|
|
32
|
+
if (icon)
|
|
33
|
+
classList.push(ns.m("icon"));
|
|
34
|
+
if (shape)
|
|
35
|
+
classList.push(ns.m(shape));
|
|
36
|
+
return classList;
|
|
37
|
+
});
|
|
38
|
+
const sizeStyle = vue.computed(() => {
|
|
39
|
+
const { size } = props;
|
|
40
|
+
return types.isNumber(size) ? ns.cssVarBlock({
|
|
41
|
+
size: style.addUnit(size)
|
|
42
|
+
}) : void 0;
|
|
43
|
+
});
|
|
44
|
+
const fitStyle = vue.computed(() => ({
|
|
45
|
+
objectFit: props.fit
|
|
46
|
+
}));
|
|
47
|
+
vue.watch(
|
|
48
|
+
() => props.src,
|
|
49
|
+
() => hasLoadError.value = false
|
|
50
|
+
);
|
|
51
|
+
function handleError(e) {
|
|
52
|
+
hasLoadError.value = true;
|
|
53
|
+
emit("error", e);
|
|
54
|
+
}
|
|
55
|
+
return (_ctx, _cache) => {
|
|
56
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
57
|
+
"span",
|
|
58
|
+
{
|
|
59
|
+
class: vue.normalizeClass(avatarClass.value),
|
|
60
|
+
style: vue.normalizeStyle(sizeStyle.value)
|
|
61
|
+
},
|
|
62
|
+
[
|
|
63
|
+
(_ctx.src || _ctx.srcSet) && !hasLoadError.value ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
64
|
+
key: 0,
|
|
65
|
+
src: _ctx.src,
|
|
66
|
+
alt: _ctx.alt,
|
|
67
|
+
srcset: _ctx.srcSet,
|
|
68
|
+
style: vue.normalizeStyle(fitStyle.value),
|
|
69
|
+
onError: handleError
|
|
70
|
+
}, null, 44, _hoisted_1)) : _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
|
|
71
|
+
default: vue.withCtx(() => [
|
|
72
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
})) : vue.renderSlot(_ctx.$slots, "default", { key: 2 })
|
|
76
|
+
],
|
|
77
|
+
6
|
|
78
|
+
);
|
|
79
|
+
};
|
|
34
80
|
}
|
|
35
81
|
});
|
|
36
|
-
|
|
37
|
-
error: (evt) => evt instanceof Event
|
|
38
|
-
};
|
|
82
|
+
var Avatar = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);
|
|
39
83
|
|
|
40
|
-
exports
|
|
41
|
-
exports.avatarProps = avatarProps;
|
|
84
|
+
exports["default"] = Avatar;
|
|
42
85
|
//# sourceMappingURL=avatar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.js","sources":["../../../../../../packages/components/avatar/src/avatar.
|
|
1
|
+
{"version":3,"file":"avatar.js","sources":["../../../../../../packages/components/avatar/src/avatar.vue"],"sourcesContent":["<template>\n <span :class=\"avatarClass\" :style=\"sizeStyle\">\n <img\n v-if=\"(src || srcSet) && !hasLoadError\"\n :src=\"src\"\n :alt=\"alt\"\n :srcset=\"srcSet\"\n :style=\"fitStyle\"\n @error=\"handleError\"\n />\n <el-icon v-else-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n <slot v-else />\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, watch } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { addUnit, isNumber, isString } from '@element-plus/utils'\nimport { avatarEmits, avatarProps } from './avatar'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElAvatar',\n})\n\nconst props = defineProps(avatarProps)\nconst emit = defineEmits(avatarEmits)\n\nconst ns = useNamespace('avatar')\n\nconst hasLoadError = ref(false)\n\nconst avatarClass = computed(() => {\n const { size, icon, shape } = props\n const classList = [ns.b()]\n if (isString(size)) classList.push(ns.m(size))\n if (icon) classList.push(ns.m('icon'))\n if (shape) classList.push(ns.m(shape))\n return classList\n})\n\nconst sizeStyle = computed(() => {\n const { size } = props\n return isNumber(size)\n ? (ns.cssVarBlock({\n size: addUnit(size)!,\n }) as CSSProperties)\n : undefined\n})\n\nconst fitStyle = computed<CSSProperties>(() => ({\n objectFit: props.fit,\n}))\n\n// need reset hasLoadError to false if src changed\nwatch(\n () => props.src,\n () => (hasLoadError.value = false)\n)\n\nfunction handleError(e: Event) {\n hasLoadError.value = true\n emit('error', e)\n}\n</script>\n"],"names":["useNamespace","ref","computed","isString","isNumber","addUnit","watch","_openBlock","_createElementBlock","_normalizeClass","_normalizeStyle","src","srcSet","alt","icon","_createBlock","_unref","ElIcon","_withCtx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AA,CAAA;AAAA,SAAA;AAAA;;;;;;;;;"}
|
|
@@ -2,84 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var avatar = require('./avatar.js');
|
|
8
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
9
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
10
|
-
var shared = require('@vue/shared');
|
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
6
|
+
var size = require('../../../constants/size.js');
|
|
11
7
|
var types = require('../../../utils/types.js');
|
|
12
|
-
var
|
|
8
|
+
var icon = require('../../../utils/vue/icon.js');
|
|
13
9
|
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
const avatarProps = runtime.buildProps({
|
|
11
|
+
size: {
|
|
12
|
+
type: [Number, String],
|
|
13
|
+
values: size.componentSizes,
|
|
14
|
+
default: "",
|
|
15
|
+
validator: (val) => types.isNumber(val)
|
|
18
16
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return classList;
|
|
37
|
-
});
|
|
38
|
-
const sizeStyle = vue.computed(() => {
|
|
39
|
-
const { size } = props;
|
|
40
|
-
return types.isNumber(size) ? ns.cssVarBlock({
|
|
41
|
-
size: style.addUnit(size)
|
|
42
|
-
}) : void 0;
|
|
43
|
-
});
|
|
44
|
-
const fitStyle = vue.computed(() => ({
|
|
45
|
-
objectFit: props.fit
|
|
46
|
-
}));
|
|
47
|
-
vue.watch(
|
|
48
|
-
() => props.src,
|
|
49
|
-
() => hasLoadError.value = false
|
|
50
|
-
);
|
|
51
|
-
function handleError(e) {
|
|
52
|
-
hasLoadError.value = true;
|
|
53
|
-
emit("error", e);
|
|
54
|
-
}
|
|
55
|
-
return (_ctx, _cache) => {
|
|
56
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
57
|
-
"span",
|
|
58
|
-
{
|
|
59
|
-
class: vue.normalizeClass(avatarClass.value),
|
|
60
|
-
style: vue.normalizeStyle(sizeStyle.value)
|
|
61
|
-
},
|
|
62
|
-
[
|
|
63
|
-
(_ctx.src || _ctx.srcSet) && !hasLoadError.value ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
64
|
-
key: 0,
|
|
65
|
-
src: _ctx.src,
|
|
66
|
-
alt: _ctx.alt,
|
|
67
|
-
srcset: _ctx.srcSet,
|
|
68
|
-
style: vue.normalizeStyle(fitStyle.value),
|
|
69
|
-
onError: handleError
|
|
70
|
-
}, null, 44, _hoisted_1)) : _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
|
|
71
|
-
default: vue.withCtx(() => [
|
|
72
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
})) : vue.renderSlot(_ctx.$slots, "default", { key: 2 })
|
|
76
|
-
],
|
|
77
|
-
6
|
|
78
|
-
);
|
|
79
|
-
};
|
|
17
|
+
shape: {
|
|
18
|
+
type: String,
|
|
19
|
+
values: ["circle", "square"],
|
|
20
|
+
default: "circle"
|
|
21
|
+
},
|
|
22
|
+
icon: {
|
|
23
|
+
type: icon.iconPropType
|
|
24
|
+
},
|
|
25
|
+
src: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
28
|
+
},
|
|
29
|
+
alt: String,
|
|
30
|
+
srcSet: String,
|
|
31
|
+
fit: {
|
|
32
|
+
type: runtime.definePropType(String),
|
|
33
|
+
default: "cover"
|
|
80
34
|
}
|
|
81
35
|
});
|
|
82
|
-
|
|
36
|
+
const avatarEmits = {
|
|
37
|
+
error: (evt) => evt instanceof Event
|
|
38
|
+
};
|
|
83
39
|
|
|
84
|
-
exports
|
|
40
|
+
exports.avatarEmits = avatarEmits;
|
|
41
|
+
exports.avatarProps = avatarProps;
|
|
85
42
|
//# sourceMappingURL=avatar2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar2.js","sources":["../../../../../../packages/components/avatar/src/avatar.
|
|
1
|
+
{"version":3,"file":"avatar2.js","sources":["../../../../../../packages/components/avatar/src/avatar.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isNumber,\n} from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\n\nimport type {\n CSSProperties,\n ExtractPropTypes,\n ExtractPublicPropTypes,\n} from 'vue'\n\nexport const avatarProps = buildProps({\n /**\n * @description avatar size.\n */\n size: {\n type: [Number, String],\n values: componentSizes,\n default: '',\n validator: (val: unknown): val is number => isNumber(val),\n },\n /**\n * @description avatar shape.\n */\n shape: {\n type: String,\n values: ['circle', 'square'],\n default: 'circle',\n },\n /**\n * @description representation type to icon, more info on icon component.\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description the source of the image for an image avatar.\n */\n src: {\n type: String,\n default: '',\n },\n /**\n * @description native attribute `alt` of image avatar.\n */\n alt: String,\n /**\n * @description native attribute srcset of image avatar.\n */\n srcSet: String,\n /**\n * @description set how the image fit its container for an image avatar.\n */\n fit: {\n type: definePropType<CSSProperties['object-fit']>(String),\n default: 'cover',\n },\n} as const)\nexport type AvatarProps = ExtractPropTypes<typeof avatarProps>\nexport type AvatarPropsPublic = ExtractPublicPropTypes<typeof avatarProps>\n\nexport const avatarEmits = {\n error: (evt: Event) => evt instanceof Event,\n}\nexport type AvatarEmits = typeof avatarEmits\n"],"names":["buildProps","componentSizes","isNumber","iconPropType","definePropType"],"mappings":";;;;;;;;;AAcO,MAAM,cAAcA,kBAAW,CAAA;AAAA,EAIpC,IAAM,EAAA;AAAA,IACJ,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,MAAQ,EAAAC,mBAAA;AAAA,IACR,OAAS,EAAA,EAAA;AAAA,IACT,SAAW,EAAA,CAAC,GAAgC,KAAAC,cAAA,CAAS,GAAG,CAAA;AAAA,GAC1D;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,MAAA,EAAQ,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,IAC3B,OAAS,EAAA,QAAA;AAAA,GACX;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAAC,iBAAA;AAAA,GACR;AAAA,EAIA,GAAK,EAAA;AAAA,IACH,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,GAAK,EAAA,MAAA;AAAA,EAIL,MAAQ,EAAA,MAAA;AAAA,EAIR,GAAK,EAAA;AAAA,IACH,IAAA,EAAMC,uBAA4C,MAAM,CAAA;AAAA,IACxD,OAAS,EAAA,OAAA;AAAA,GACX;AACF,CAAU,EAAA;AAIH,MAAM,WAAc,GAAA;AAAA,EACzB,KAAA,EAAO,CAAC,GAAA,KAAe,GAAe,YAAA,KAAA;AACxC;;;;;"}
|
|
@@ -7,7 +7,7 @@ var index$2 = require('../../button/index.js');
|
|
|
7
7
|
var dateTable = require('./date-table2.js');
|
|
8
8
|
var useCalendar = require('./use-calendar.js');
|
|
9
9
|
var calendar = require('./calendar.js');
|
|
10
|
-
var selectController = require('./select-
|
|
10
|
+
var selectController = require('./select-controller2.js');
|
|
11
11
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
12
12
|
var index = require('../../../hooks/use-namespace/index.js');
|
|
13
13
|
var index$1 = require('../../../hooks/use-locale/index.js');
|
|
@@ -2,108 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var dayjs = require('dayjs');
|
|
7
|
-
var index$2 = require('../../select/index.js');
|
|
8
|
-
var index$3 = require('../../button/index.js');
|
|
9
|
-
var selectController = require('./select-controller2.js');
|
|
10
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
12
|
-
var index$1 = require('../../../hooks/use-locale/index.js');
|
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
13
6
|
var shared = require('@vue/shared');
|
|
14
7
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const _sfc_main = vue.defineComponent({
|
|
20
|
-
...{
|
|
21
|
-
name: "SelectController"
|
|
8
|
+
const selectControllerProps = runtime.buildProps({
|
|
9
|
+
date: {
|
|
10
|
+
type: runtime.definePropType(Object),
|
|
11
|
+
required: true
|
|
22
12
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
emits: selectController.selectControllerEmits,
|
|
26
|
-
setup(__props, { emit: __emit }) {
|
|
27
|
-
const props = __props;
|
|
28
|
-
const emit = __emit;
|
|
29
|
-
const nsSelect = index.useNamespace("calendar-select");
|
|
30
|
-
const { t, lang } = index$1.useLocale();
|
|
31
|
-
const monthOptions = Array.from({ length: 12 }, (_, index) => {
|
|
32
|
-
const actualMonth = index + 1;
|
|
33
|
-
const label = shared.isFunction(props.formatter) ? props.formatter(actualMonth, "month") : actualMonth;
|
|
34
|
-
return {
|
|
35
|
-
value: actualMonth,
|
|
36
|
-
label
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
const yearValue = vue.computed(() => props.date.year());
|
|
40
|
-
const monthValue = vue.computed(() => props.date.month() + 1);
|
|
41
|
-
const yearOptions = vue.computed(() => {
|
|
42
|
-
const years = [];
|
|
43
|
-
for (let i = -10; i < 10; i++) {
|
|
44
|
-
const year = yearValue.value + i;
|
|
45
|
-
if (year > 0) {
|
|
46
|
-
const label = shared.isFunction(props.formatter) ? props.formatter(year, "year") : year;
|
|
47
|
-
years.push({ value: year, label });
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return years;
|
|
51
|
-
});
|
|
52
|
-
const handleYearChange = (year) => {
|
|
53
|
-
emit(
|
|
54
|
-
"date-change",
|
|
55
|
-
dayjs__default["default"](new Date(year, monthValue.value - 1, 1)).locale(lang.value)
|
|
56
|
-
);
|
|
57
|
-
};
|
|
58
|
-
const handleMonthChange = (month) => {
|
|
59
|
-
emit(
|
|
60
|
-
"date-change",
|
|
61
|
-
dayjs__default["default"](new Date(yearValue.value, month - 1, 1)).locale(lang.value)
|
|
62
|
-
);
|
|
63
|
-
};
|
|
64
|
-
const selectToday = () => {
|
|
65
|
-
emit("date-change", "today");
|
|
66
|
-
};
|
|
67
|
-
return (_ctx, _cache) => {
|
|
68
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
69
|
-
vue.Fragment,
|
|
70
|
-
null,
|
|
71
|
-
[
|
|
72
|
-
vue.createVNode(vue.unref(index$2.ElSelect), {
|
|
73
|
-
"model-value": yearValue.value,
|
|
74
|
-
size: "small",
|
|
75
|
-
class: vue.normalizeClass(vue.unref(nsSelect).e("year")),
|
|
76
|
-
"validate-event": false,
|
|
77
|
-
options: yearOptions.value,
|
|
78
|
-
onChange: handleYearChange
|
|
79
|
-
}, null, 8, ["model-value", "class", "options"]),
|
|
80
|
-
vue.createVNode(vue.unref(index$2.ElSelect), {
|
|
81
|
-
"model-value": monthValue.value,
|
|
82
|
-
size: "small",
|
|
83
|
-
class: vue.normalizeClass(vue.unref(nsSelect).e("month")),
|
|
84
|
-
"validate-event": false,
|
|
85
|
-
options: vue.unref(monthOptions),
|
|
86
|
-
onChange: handleMonthChange
|
|
87
|
-
}, null, 8, ["model-value", "class", "options"]),
|
|
88
|
-
vue.createVNode(vue.unref(index$3.ElButton), {
|
|
89
|
-
size: "small",
|
|
90
|
-
onClick: selectToday
|
|
91
|
-
}, {
|
|
92
|
-
default: vue.withCtx(() => [
|
|
93
|
-
vue.createTextVNode(
|
|
94
|
-
vue.toDisplayString(vue.unref(t)("el.datepicker.today")),
|
|
95
|
-
1
|
|
96
|
-
)
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
})
|
|
100
|
-
],
|
|
101
|
-
64
|
|
102
|
-
);
|
|
103
|
-
};
|
|
13
|
+
formatter: {
|
|
14
|
+
type: runtime.definePropType(Function)
|
|
104
15
|
}
|
|
105
16
|
});
|
|
106
|
-
|
|
17
|
+
const selectControllerEmits = {
|
|
18
|
+
"date-change": (date) => shared.isObject(date) || shared.isString(date)
|
|
19
|
+
};
|
|
107
20
|
|
|
108
|
-
exports
|
|
21
|
+
exports.selectControllerEmits = selectControllerEmits;
|
|
22
|
+
exports.selectControllerProps = selectControllerProps;
|
|
109
23
|
//# sourceMappingURL=select-controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-controller.js","sources":["../../../../../../packages/components/calendar/src/select-controller.
|
|
1
|
+
{"version":3,"file":"select-controller.js","sources":["../../../../../../packages/components/calendar/src/select-controller.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isObject,\n isString,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type { Dayjs } from 'dayjs'\n\nexport const selectControllerProps = buildProps({\n date: {\n type: definePropType<Dayjs>(Object),\n required: true,\n },\n formatter: {\n type: definePropType<\n (value: number, type: 'year' | 'month') => string | number\n >(Function),\n },\n} as const)\nexport type SelectControllerProps = ExtractPropTypes<\n typeof selectControllerProps\n>\nexport type SelectControllerPropsPublic = ExtractPublicPropTypes<\n typeof selectControllerProps\n>\n\nexport const selectControllerEmits = {\n 'date-change': (date: Dayjs | 'today') => isObject(date) || isString(date),\n}\nexport type SelectControllerEmits = typeof selectControllerEmits\n"],"names":["buildProps","definePropType","isObject","isString"],"mappings":";;;;;;;AAUO,MAAM,wBAAwBA,kBAAW,CAAA;AAAA,EAC9C,IAAM,EAAA;AAAA,IACJ,IAAA,EAAMC,uBAAsB,MAAM,CAAA;AAAA,IAClC,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA,EACA,SAAW,EAAA;AAAA,IACT,IAAA,EAAMA,uBAEJ,QAAQ,CAAA;AAAA,GACZ;AACF,CAAU,EAAA;AAQH,MAAM,qBAAwB,GAAA;AAAA,EACnC,eAAe,CAAC,IAAA,KAA0BC,gBAAS,IAAI,CAAA,IAAKC,gBAAS,IAAI,CAAA;AAC3E;;;;;"}
|
|
@@ -2,22 +2,108 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var dayjs = require('dayjs');
|
|
7
|
+
var index$2 = require('../../select/index.js');
|
|
8
|
+
var index$3 = require('../../button/index.js');
|
|
9
|
+
var selectController = require('./select-controller.js');
|
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
12
|
+
var index$1 = require('../../../hooks/use-locale/index.js');
|
|
6
13
|
var shared = require('@vue/shared');
|
|
7
14
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
15
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
+
|
|
17
|
+
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
18
|
+
|
|
19
|
+
const _sfc_main = vue.defineComponent({
|
|
20
|
+
...{
|
|
21
|
+
name: "SelectController"
|
|
12
22
|
},
|
|
13
|
-
|
|
14
|
-
|
|
23
|
+
__name: "select-controller",
|
|
24
|
+
props: selectController.selectControllerProps,
|
|
25
|
+
emits: selectController.selectControllerEmits,
|
|
26
|
+
setup(__props, { emit: __emit }) {
|
|
27
|
+
const props = __props;
|
|
28
|
+
const emit = __emit;
|
|
29
|
+
const nsSelect = index.useNamespace("calendar-select");
|
|
30
|
+
const { t, lang } = index$1.useLocale();
|
|
31
|
+
const monthOptions = Array.from({ length: 12 }, (_, index) => {
|
|
32
|
+
const actualMonth = index + 1;
|
|
33
|
+
const label = shared.isFunction(props.formatter) ? props.formatter(actualMonth, "month") : actualMonth;
|
|
34
|
+
return {
|
|
35
|
+
value: actualMonth,
|
|
36
|
+
label
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
const yearValue = vue.computed(() => props.date.year());
|
|
40
|
+
const monthValue = vue.computed(() => props.date.month() + 1);
|
|
41
|
+
const yearOptions = vue.computed(() => {
|
|
42
|
+
const years = [];
|
|
43
|
+
for (let i = -10; i < 10; i++) {
|
|
44
|
+
const year = yearValue.value + i;
|
|
45
|
+
if (year > 0) {
|
|
46
|
+
const label = shared.isFunction(props.formatter) ? props.formatter(year, "year") : year;
|
|
47
|
+
years.push({ value: year, label });
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return years;
|
|
51
|
+
});
|
|
52
|
+
const handleYearChange = (year) => {
|
|
53
|
+
emit(
|
|
54
|
+
"date-change",
|
|
55
|
+
dayjs__default["default"](new Date(year, monthValue.value - 1, 1)).locale(lang.value)
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
const handleMonthChange = (month) => {
|
|
59
|
+
emit(
|
|
60
|
+
"date-change",
|
|
61
|
+
dayjs__default["default"](new Date(yearValue.value, month - 1, 1)).locale(lang.value)
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
const selectToday = () => {
|
|
65
|
+
emit("date-change", "today");
|
|
66
|
+
};
|
|
67
|
+
return (_ctx, _cache) => {
|
|
68
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
69
|
+
vue.Fragment,
|
|
70
|
+
null,
|
|
71
|
+
[
|
|
72
|
+
vue.createVNode(vue.unref(index$2.ElSelect), {
|
|
73
|
+
"model-value": yearValue.value,
|
|
74
|
+
size: "small",
|
|
75
|
+
class: vue.normalizeClass(vue.unref(nsSelect).e("year")),
|
|
76
|
+
"validate-event": false,
|
|
77
|
+
options: yearOptions.value,
|
|
78
|
+
onChange: handleYearChange
|
|
79
|
+
}, null, 8, ["model-value", "class", "options"]),
|
|
80
|
+
vue.createVNode(vue.unref(index$2.ElSelect), {
|
|
81
|
+
"model-value": monthValue.value,
|
|
82
|
+
size: "small",
|
|
83
|
+
class: vue.normalizeClass(vue.unref(nsSelect).e("month")),
|
|
84
|
+
"validate-event": false,
|
|
85
|
+
options: vue.unref(monthOptions),
|
|
86
|
+
onChange: handleMonthChange
|
|
87
|
+
}, null, 8, ["model-value", "class", "options"]),
|
|
88
|
+
vue.createVNode(vue.unref(index$3.ElButton), {
|
|
89
|
+
size: "small",
|
|
90
|
+
onClick: selectToday
|
|
91
|
+
}, {
|
|
92
|
+
default: vue.withCtx(() => [
|
|
93
|
+
vue.createTextVNode(
|
|
94
|
+
vue.toDisplayString(vue.unref(t)("el.datepicker.today")),
|
|
95
|
+
1
|
|
96
|
+
)
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
})
|
|
100
|
+
],
|
|
101
|
+
64
|
|
102
|
+
);
|
|
103
|
+
};
|
|
15
104
|
}
|
|
16
105
|
});
|
|
17
|
-
|
|
18
|
-
"date-change": (date) => shared.isObject(date) || shared.isString(date)
|
|
19
|
-
};
|
|
106
|
+
var SelectController = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/calendar/src/select-controller.vue"]]);
|
|
20
107
|
|
|
21
|
-
exports
|
|
22
|
-
exports.selectControllerProps = selectControllerProps;
|
|
108
|
+
exports["default"] = SelectController;
|
|
23
109
|
//# sourceMappingURL=select-controller2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-controller2.js","sources":["../../../../../../packages/components/calendar/src/select-controller.
|
|
1
|
+
{"version":3,"file":"select-controller2.js","sources":["../../../../../../packages/components/calendar/src/select-controller.vue"],"sourcesContent":["<template>\n <el-select\n :model-value=\"yearValue\"\n size=\"small\"\n :class=\"nsSelect.e('year')\"\n :validate-event=\"false\"\n :options=\"yearOptions\"\n @change=\"handleYearChange\"\n />\n <el-select\n :model-value=\"monthValue\"\n size=\"small\"\n :class=\"nsSelect.e('month')\"\n :validate-event=\"false\"\n :options=\"monthOptions\"\n @change=\"handleMonthChange\"\n />\n <el-button size=\"small\" @click=\"selectToday\">\n {{ t('el.datepicker.today') }}\n </el-button>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport dayjs from 'dayjs'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport ElSelect from '@element-plus/components/select'\nimport { ElButton } from '@element-plus/components/button'\nimport { isFunction } from '@element-plus/utils'\nimport {\n selectControllerEmits,\n selectControllerProps,\n} from './select-controller'\n\ndefineOptions({\n name: 'SelectController',\n})\n\nconst props = defineProps(selectControllerProps)\nconst emit = defineEmits(selectControllerEmits)\n\nconst nsSelect = useNamespace('calendar-select')\nconst { t, lang } = useLocale()\n\nconst monthOptions = Array.from({ length: 12 }, (_, index) => {\n const actualMonth = index + 1\n const label = isFunction(props.formatter)\n ? props.formatter(actualMonth, 'month')\n : actualMonth\n return {\n value: actualMonth,\n label,\n }\n})\n\nconst yearValue = computed(() => props.date.year())\nconst monthValue = computed(() => props.date.month() + 1)\n// Get an array of 20 years\nconst yearOptions = computed(() => {\n const years = []\n for (let i = -10; i < 10; i++) {\n const year = yearValue.value + i\n if (year > 0) {\n const label = isFunction(props.formatter)\n ? props.formatter(year, 'year')\n : year\n years.push({ value: year, label })\n }\n }\n return years\n})\n\nconst handleYearChange = (year: number) => {\n emit(\n 'date-change',\n dayjs(new Date(year, monthValue.value - 1, 1)).locale(lang.value)\n )\n}\n\nconst handleMonthChange = (month: number) => {\n emit(\n 'date-change',\n dayjs(new Date(yearValue.value, month - 1, 1)).locale(lang.value)\n )\n}\n\nconst selectToday = () => {\n emit('date-change', 'today')\n}\n</script>\n"],"names":["useNamespace","useLocale","isFunction","computed","dayjs","_createVNode","_unref","ElSelect","_normalizeClass","ElButton","_createTextVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEP,IAAA,MAAA,QAAA,GAAWA,mBAAa,iBAAiB,CAAA,CAAA;AAC/C,IAAA,MAAM,EAAE,CAAA,EAAG,IAAK,EAAA,GAAIC,iBAAU,EAAA,CAAA;AAExB,IAAA,MAAA,YAAA,GAAe,MAAM,IAAK,CAAA,EAAE,QAAQ,EAAG,EAAA,EAAG,CAAC,CAAA,EAAG,KAAU,KAAA;AAC5D,MAAA,MAAM,cAAc,KAAQ,GAAA,CAAA,CAAA;AACtB,MAAA,MAAA,KAAA,GAAQC,kBAAW,KAAM,CAAA,SAAS,IACpC,KAAM,CAAA,SAAA,CAAU,WAAa,EAAA,OAAO,CACpC,GAAA,WAAA,CAAA;AACG,MAAA,OAAA;AAAA,QACL,KAAO,EAAA,WAAA;AAAA,QACP,KAAA;AAAA,OACF,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAA,MAAM,YAAYC,YAAS,CAAA,MAAM,KAAM,CAAA,IAAA,CAAK,MAAM,CAAA,CAAA;AAClD,IAAA,MAAM,aAAaA,YAAS,CAAA,MAAM,MAAM,IAAK,CAAA,KAAA,KAAU,CAAC,CAAA,CAAA;AAElD,IAAA,MAAA,WAAA,GAAcA,aAAS,MAAM;AACjC,MAAA,MAAM,QAAQ,EAAC,CAAA;AACf,MAAA,KAAA,IAAS,CAAI,GAAA,CAAA,EAAA,EAAK,CAAI,GAAA,EAAA,EAAI,CAAK,EAAA,EAAA;AACvB,QAAA,MAAA,IAAA,GAAO,UAAU,KAAQ,GAAA,CAAA,CAAA;AAC/B,QAAA,IAAI,OAAO,C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AAAA,YACT,QAAQ,EAAA,gBAAA;AAAA,aAAA,IAAA,EAAA,CAAA,EAAA,CAAA,aAAA,EAAA,OAAA,EAAA,SAAA,CAAA,CAAA;AAAA,UAEXD,eAAA,CAOEC,SAAA,CAAAC,gBAAA,CAAA,EAAA;AAAA,YANC,eAAa,UAAA,CAAA,KAAA;AAAA,YACd,IAAK,EAAA,OAAA;AAAA,YACJ,OAAKC,kBAAE,CAAAF,SAAA,CAAA,QAAA,CAAS,CAAA,CAAA,CAAC,OAAA,CAAA,CAAA;AAAA,YACjB,gBAAgB,EAAA,KAAA;AAAA,YAChB,OAAA,EAASA,UAAA,YAAA,CAAA;AAAA,YACT,QAAQ,EAAA,iBAAA;AAAA,aAAA,IAAA,EAAA,CAAA,EAAA,CAAA,aAAA,EAAA,OAAA,EAAA,SAAA,CAAA,CAAA;AAAA,UAEXD,eAAA,CAEYC,SAAA,CAAAG,gBAAA,CAAA,EAAA;AAAA,YAFD,IAAK,EAAA,OAAA;AAAA,YAAS,OAAO,EAAA,WAAA;AAAA,WAAA,EAAA;AAAA,iCAC9B,MAA8B;AAAA,cAAAC,mBAAA;AAAA,mCAA3B,CAAAJ,SAAA,CAAC,CAAA,CAAA,CAAA,qBAAA,CAAA,CAAA;AAAA,gBAAA,CAAA;AAAA,eAAA;AAAA,aAAA,CAAA;AAAA;;;;;;;;;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var cascader$1 = require('./src/
|
|
6
|
-
var cascader = require('./src/
|
|
5
|
+
var cascader$1 = require('./src/cascader2.js');
|
|
6
|
+
var cascader = require('./src/cascader.js');
|
|
7
7
|
var install = require('../../utils/vue/install.js');
|
|
8
8
|
|
|
9
9
|
const ElCascader = install.withInstall(cascader$1["default"]);
|