@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton2.js","sources":["../../../../../../packages/components/skeleton/src/skeleton.
|
|
1
|
+
{"version":3,"file":"skeleton2.js","sources":["../../../../../../packages/components/skeleton/src/skeleton.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type Skeleton from './skeleton.vue'\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type { ThrottleType } from '@element-plus/hooks'\n\nexport const skeletonProps = buildProps({\n /**\n * @description whether showing the animation\n */\n animated: Boolean,\n /**\n * @description how many fake items to render to the DOM\n */\n count: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether showing the real DOM\n */\n rows: {\n type: Number,\n default: 3,\n },\n /**\n * @description numbers of the row, only useful when no template slot were given\n */\n loading: {\n type: Boolean,\n default: true,\n },\n /**\n * @description rendering delay in milliseconds\n */\n throttle: {\n type: definePropType<ThrottleType>([Number, Object]),\n },\n} as const)\nexport type SkeletonProps = ExtractPropTypes<typeof skeletonProps>\nexport type SkeletonPropsPublic = ExtractPublicPropTypes<typeof skeletonProps>\n\nexport type SkeletonInstance = InstanceType<typeof Skeleton> & unknown\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAMO,MAAM,gBAAgBA,kBAAW,CAAA;AAAA,EAItC,QAAU,EAAA,OAAA;AAAA,EAIV,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,CAAA;AAAA,GACX;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,CAAA;AAAA,GACX;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAAC,sBAAA,CAA6B,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,GACrD;AACF,CAAU;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var teleport$1 = require('./src/
|
|
6
|
-
var teleport = require('./src/
|
|
5
|
+
var teleport$1 = require('./src/teleport.js');
|
|
6
|
+
var teleport = require('./src/teleport2.js');
|
|
7
7
|
var install = require('../../utils/vue/install.js');
|
|
8
8
|
|
|
9
9
|
const ElTeleport = install.withInstall(teleport$1["default"]);
|
|
@@ -2,15 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var teleport = require('./teleport2.js');
|
|
7
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
6
8
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const _sfc_main = vue.defineComponent({
|
|
10
|
+
__name: "teleport",
|
|
11
|
+
props: teleport.teleportProps,
|
|
12
|
+
setup(__props) {
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return _ctx.disabled ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
15
|
+
key: 1,
|
|
16
|
+
to: _ctx.to
|
|
17
|
+
}, [
|
|
18
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
19
|
+
], 8, ["to"]));
|
|
20
|
+
};
|
|
21
|
+
}
|
|
13
22
|
});
|
|
23
|
+
var Teleport = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);
|
|
14
24
|
|
|
15
|
-
exports
|
|
25
|
+
exports["default"] = Teleport;
|
|
16
26
|
//# sourceMappingURL=teleport.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teleport.js","sources":["../../../../../../packages/components/teleport/src/teleport.
|
|
1
|
+
{"version":3,"file":"teleport.js","sources":["../../../../../../packages/components/teleport/src/teleport.vue"],"sourcesContent":["<template>\n <template v-if=\"disabled\">\n <slot />\n </template>\n <teleport v-else :to=\"to\">\n <slot />\n </teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { teleportProps } from './teleport'\n\ndefineProps(teleportProps)\n</script>\n"],"names":["disabled","_renderSlot","_createBlock","_Teleport","to"],"mappings":";;;;;;;;;;;;;aACkBA,IACd,CAAA,QAAA,GAAAC,cAAQ,CAAA,IAAA,oDAEVC,gBAEWC,YAAA,EAAA;AAAA,QAAA,GAAA,EAAA,CAAA;AAAA,QAFO,IAAIC,IAAAA,CAAAA,EAAAA;AAAAA,OAAAA,EAAAA;AAAAA,QACpBH,cAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,OAAA,EAAA,CAAA,EAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA;AAAA;;;;;;;"}
|
|
@@ -2,25 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var teleport = require('./teleport.js');
|
|
7
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
8
6
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
key: 1,
|
|
16
|
-
to: _ctx.to
|
|
17
|
-
}, [
|
|
18
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
19
|
-
], 8, ["to"]));
|
|
20
|
-
};
|
|
21
|
-
}
|
|
7
|
+
const teleportProps = runtime.buildProps({
|
|
8
|
+
to: {
|
|
9
|
+
type: runtime.definePropType([String, Object]),
|
|
10
|
+
required: true
|
|
11
|
+
},
|
|
12
|
+
disabled: Boolean
|
|
22
13
|
});
|
|
23
|
-
var Teleport = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);
|
|
24
14
|
|
|
25
|
-
exports
|
|
15
|
+
exports.teleportProps = teleportProps;
|
|
26
16
|
//# sourceMappingURL=teleport2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teleport2.js","sources":["../../../../../../packages/components/teleport/src/teleport.
|
|
1
|
+
{"version":3,"file":"teleport2.js","sources":["../../../../../../packages/components/teleport/src/teleport.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type Teleport from './teleport.vue'\n\nexport const teleportProps = buildProps({\n to: {\n type: definePropType<string | HTMLElement>([String, Object]),\n required: true,\n },\n disabled: Boolean,\n} as const)\n\nexport type TeleportProps = ExtractPropTypes<typeof teleportProps>\nexport type TeleportPropsPublic = ExtractPublicPropTypes<typeof teleportProps>\nexport type TeleportInstance = InstanceType<typeof Teleport> & unknown\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAKO,MAAM,gBAAgBA,kBAAW,CAAA;AAAA,EACtC,EAAI,EAAA;AAAA,IACF,IAAM,EAAAC,sBAAA,CAAqC,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IAC3D,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA,EACA,QAAU,EAAA,OAAA;AACZ,CAAU;;;;"}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var index = require('../../../hooks/use-delayed-toggle/index.js');
|
|
6
6
|
var content = require('../../popper/src/content.js');
|
|
7
7
|
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
8
|
-
var teleport = require('../../teleport/src/
|
|
8
|
+
var teleport = require('../../teleport/src/teleport2.js');
|
|
9
9
|
var index$1 = require('../../../hooks/use-aria/index.js');
|
|
10
10
|
|
|
11
11
|
const useTooltipContentProps = runtime.buildProps({
|
|
@@ -6,7 +6,7 @@ var tour$1 = require('./src/tour2.js');
|
|
|
6
6
|
var step$1 = require('./src/step2.js');
|
|
7
7
|
var tour = require('./src/tour.js');
|
|
8
8
|
var step = require('./src/step.js');
|
|
9
|
-
var content = require('./src/
|
|
9
|
+
var content = require('./src/content.js');
|
|
10
10
|
var install = require('../../utils/vue/install.js');
|
|
11
11
|
|
|
12
12
|
const ElTour = install.withInstall(tour$1["default"], {
|
|
@@ -2,94 +2,54 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var focusTrap = require('../../focus-trap/src/focus-trap.js');
|
|
7
|
-
var content = require('./content2.js');
|
|
8
|
-
var helper = require('./helper.js');
|
|
9
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
10
6
|
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
const tourStrategies = ["absolute", "fixed"];
|
|
8
|
+
const tourPlacements = [
|
|
9
|
+
"top-start",
|
|
10
|
+
"top-end",
|
|
11
|
+
"top",
|
|
12
|
+
"bottom-start",
|
|
13
|
+
"bottom-end",
|
|
14
|
+
"bottom",
|
|
15
|
+
"left-start",
|
|
16
|
+
"left-end",
|
|
17
|
+
"left",
|
|
18
|
+
"right-start",
|
|
19
|
+
"right-end",
|
|
20
|
+
"right"
|
|
21
|
+
];
|
|
22
|
+
const tourContentProps = runtime.buildProps({
|
|
23
|
+
placement: {
|
|
24
|
+
type: runtime.definePropType(String),
|
|
25
|
+
values: tourPlacements,
|
|
26
|
+
default: "bottom"
|
|
15
27
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
vue.toRef(props, "reference"),
|
|
34
|
-
contentRef,
|
|
35
|
-
arrowRef,
|
|
36
|
-
placement,
|
|
37
|
-
strategy,
|
|
38
|
-
vue.toRef(props, "offset"),
|
|
39
|
-
vue.toRef(props, "zIndex"),
|
|
40
|
-
vue.toRef(props, "showArrow")
|
|
41
|
-
);
|
|
42
|
-
const side = vue.computed(() => {
|
|
43
|
-
return placement.value.split("-")[0];
|
|
44
|
-
});
|
|
45
|
-
const { ns } = vue.inject(helper.tourKey);
|
|
46
|
-
const onCloseRequested = () => {
|
|
47
|
-
emit("close");
|
|
48
|
-
};
|
|
49
|
-
const onFocusoutPrevented = (event) => {
|
|
50
|
-
if (event.detail.focusReason === "pointer") {
|
|
51
|
-
event.preventDefault();
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
return (_ctx, _cache) => {
|
|
55
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
56
|
-
ref_key: "contentRef",
|
|
57
|
-
ref: contentRef,
|
|
58
|
-
style: vue.normalizeStyle(vue.unref(contentStyle)),
|
|
59
|
-
class: vue.normalizeClass(vue.unref(ns).e("content")),
|
|
60
|
-
"data-side": side.value,
|
|
61
|
-
tabindex: "-1"
|
|
62
|
-
}, [
|
|
63
|
-
vue.createVNode(vue.unref(focusTrap["default"]), {
|
|
64
|
-
loop: "",
|
|
65
|
-
trapped: "",
|
|
66
|
-
"focus-start-el": "container",
|
|
67
|
-
"focus-trap-el": contentRef.value || void 0,
|
|
68
|
-
onReleaseRequested: onCloseRequested,
|
|
69
|
-
onFocusoutPrevented
|
|
70
|
-
}, {
|
|
71
|
-
default: vue.withCtx(() => [
|
|
72
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
73
|
-
]),
|
|
74
|
-
_: 3
|
|
75
|
-
}, 8, ["focus-trap-el"]),
|
|
76
|
-
_ctx.showArrow ? (vue.openBlock(), vue.createElementBlock(
|
|
77
|
-
"span",
|
|
78
|
-
{
|
|
79
|
-
key: 0,
|
|
80
|
-
ref_key: "arrowRef",
|
|
81
|
-
ref: arrowRef,
|
|
82
|
-
style: vue.normalizeStyle(vue.unref(arrowStyle)),
|
|
83
|
-
class: vue.normalizeClass(vue.unref(ns).e("arrow"))
|
|
84
|
-
},
|
|
85
|
-
null,
|
|
86
|
-
6
|
|
87
|
-
)) : vue.createCommentVNode("v-if", true)
|
|
88
|
-
], 14, _hoisted_1);
|
|
89
|
-
};
|
|
28
|
+
reference: {
|
|
29
|
+
type: runtime.definePropType(Object),
|
|
30
|
+
default: null
|
|
31
|
+
},
|
|
32
|
+
strategy: {
|
|
33
|
+
type: runtime.definePropType(String),
|
|
34
|
+
values: tourStrategies,
|
|
35
|
+
default: "absolute"
|
|
36
|
+
},
|
|
37
|
+
offset: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 10
|
|
40
|
+
},
|
|
41
|
+
showArrow: Boolean,
|
|
42
|
+
zIndex: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: 2001
|
|
90
45
|
}
|
|
91
46
|
});
|
|
92
|
-
|
|
47
|
+
const tourContentEmits = {
|
|
48
|
+
close: () => true
|
|
49
|
+
};
|
|
93
50
|
|
|
94
|
-
exports
|
|
51
|
+
exports.tourContentEmits = tourContentEmits;
|
|
52
|
+
exports.tourContentProps = tourContentProps;
|
|
53
|
+
exports.tourPlacements = tourPlacements;
|
|
54
|
+
exports.tourStrategies = tourStrategies;
|
|
95
55
|
//# sourceMappingURL=content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sources":["../../../../../../packages/components/tour/src/content.
|
|
1
|
+
{"version":3,"file":"content.js","sources":["../../../../../../packages/components/tour/src/content.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type { Placement, Strategy, VirtualElement } from '@floating-ui/dom'\n\nexport const tourStrategies = ['absolute', 'fixed'] as const\n\nexport const tourPlacements = [\n 'top-start',\n 'top-end',\n 'top',\n 'bottom-start',\n 'bottom-end',\n 'bottom',\n 'left-start',\n 'left-end',\n 'left',\n 'right-start',\n 'right-end',\n 'right',\n] as const\n\nexport const tourContentProps = buildProps({\n /**\n * @description position of the guide card relative to the target element\n */\n placement: {\n type: definePropType<Placement>(String),\n values: tourPlacements,\n default: 'bottom',\n },\n /**\n * @description the reference dom\n */\n reference: {\n type: definePropType<HTMLElement | VirtualElement | null>(Object),\n default: null,\n },\n /**\n * @description position strategy of the content\n */\n strategy: {\n type: definePropType<Strategy>(String),\n values: tourStrategies,\n default: 'absolute',\n },\n /**\n * @description offset of the arrow\n */\n offset: {\n type: Number,\n default: 10,\n },\n /**\n * @description whether to show the arrow\n */\n showArrow: Boolean,\n /**\n * @description content's zIndex\n */\n zIndex: {\n type: Number,\n default: 2001,\n },\n})\n\nexport type TourContentProps = ExtractPropTypes<typeof tourContentProps>\nexport type TourContentPropsPublic = ExtractPublicPropTypes<\n typeof tourContentProps\n>\n\nexport const tourContentEmits = {\n close: () => true,\n}\nexport type TourContentEmits = typeof tourContentEmits\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAKa,MAAA,cAAA,GAAiB,CAAC,UAAA,EAAY,OAAO,EAAA;AAE3C,MAAM,cAAiB,GAAA;AAAA,EAC5B,WAAA;AAAA,EACA,SAAA;AAAA,EACA,KAAA;AAAA,EACA,cAAA;AAAA,EACA,YAAA;AAAA,EACA,QAAA;AAAA,EACA,YAAA;AAAA,EACA,UAAA;AAAA,EACA,MAAA;AAAA,EACA,aAAA;AAAA,EACA,WAAA;AAAA,EACA,OAAA;AACF,EAAA;AAEO,MAAM,mBAAmBA,kBAAW,CAAA;AAAA,EAIzC,SAAW,EAAA;AAAA,IACT,IAAA,EAAMC,uBAA0B,MAAM,CAAA;AAAA,IACtC,MAAQ,EAAA,cAAA;AAAA,IACR,OAAS,EAAA,QAAA;AAAA,GACX;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAA,EAAMA,uBAAoD,MAAM,CAAA;AAAA,IAChE,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAA,EAAMA,uBAAyB,MAAM,CAAA;AAAA,IACrC,MAAQ,EAAA,cAAA;AAAA,IACR,OAAS,EAAA,UAAA;AAAA,GACX;AAAA,EAIA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,SAAW,EAAA,OAAA;AAAA,EAIX,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AACF,CAAC,EAAA;AAOM,MAAM,gBAAmB,GAAA;AAAA,EAC9B,OAAO,MAAM,IAAA;AACf;;;;;;;"}
|
|
@@ -2,54 +2,94 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var focusTrap = require('../../focus-trap/src/focus-trap.js');
|
|
7
|
+
var content = require('./content.js');
|
|
8
|
+
var helper = require('./helper.js');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
6
10
|
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"top",
|
|
12
|
-
"bottom-start",
|
|
13
|
-
"bottom-end",
|
|
14
|
-
"bottom",
|
|
15
|
-
"left-start",
|
|
16
|
-
"left-end",
|
|
17
|
-
"left",
|
|
18
|
-
"right-start",
|
|
19
|
-
"right-end",
|
|
20
|
-
"right"
|
|
21
|
-
];
|
|
22
|
-
const tourContentProps = runtime.buildProps({
|
|
23
|
-
placement: {
|
|
24
|
-
type: runtime.definePropType(String),
|
|
25
|
-
values: tourPlacements,
|
|
26
|
-
default: "bottom"
|
|
11
|
+
const _hoisted_1 = ["data-side"];
|
|
12
|
+
const _sfc_main = vue.defineComponent({
|
|
13
|
+
...{
|
|
14
|
+
name: "ElTourContent"
|
|
27
15
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
16
|
+
__name: "content",
|
|
17
|
+
props: content.tourContentProps,
|
|
18
|
+
emits: content.tourContentEmits,
|
|
19
|
+
setup(__props, { emit: __emit }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const emit = __emit;
|
|
22
|
+
const placement = vue.ref(props.placement);
|
|
23
|
+
const strategy = vue.ref(props.strategy);
|
|
24
|
+
const contentRef = vue.ref(null);
|
|
25
|
+
const arrowRef = vue.ref(null);
|
|
26
|
+
vue.watch(
|
|
27
|
+
() => props.placement,
|
|
28
|
+
() => {
|
|
29
|
+
placement.value = props.placement;
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
const { contentStyle, arrowStyle } = helper.useFloating(
|
|
33
|
+
vue.toRef(props, "reference"),
|
|
34
|
+
contentRef,
|
|
35
|
+
arrowRef,
|
|
36
|
+
placement,
|
|
37
|
+
strategy,
|
|
38
|
+
vue.toRef(props, "offset"),
|
|
39
|
+
vue.toRef(props, "zIndex"),
|
|
40
|
+
vue.toRef(props, "showArrow")
|
|
41
|
+
);
|
|
42
|
+
const side = vue.computed(() => {
|
|
43
|
+
return placement.value.split("-")[0];
|
|
44
|
+
});
|
|
45
|
+
const { ns } = vue.inject(helper.tourKey);
|
|
46
|
+
const onCloseRequested = () => {
|
|
47
|
+
emit("close");
|
|
48
|
+
};
|
|
49
|
+
const onFocusoutPrevented = (event) => {
|
|
50
|
+
if (event.detail.focusReason === "pointer") {
|
|
51
|
+
event.preventDefault();
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
return (_ctx, _cache) => {
|
|
55
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
56
|
+
ref_key: "contentRef",
|
|
57
|
+
ref: contentRef,
|
|
58
|
+
style: vue.normalizeStyle(vue.unref(contentStyle)),
|
|
59
|
+
class: vue.normalizeClass(vue.unref(ns).e("content")),
|
|
60
|
+
"data-side": side.value,
|
|
61
|
+
tabindex: "-1"
|
|
62
|
+
}, [
|
|
63
|
+
vue.createVNode(vue.unref(focusTrap["default"]), {
|
|
64
|
+
loop: "",
|
|
65
|
+
trapped: "",
|
|
66
|
+
"focus-start-el": "container",
|
|
67
|
+
"focus-trap-el": contentRef.value || void 0,
|
|
68
|
+
onReleaseRequested: onCloseRequested,
|
|
69
|
+
onFocusoutPrevented
|
|
70
|
+
}, {
|
|
71
|
+
default: vue.withCtx(() => [
|
|
72
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
73
|
+
]),
|
|
74
|
+
_: 3
|
|
75
|
+
}, 8, ["focus-trap-el"]),
|
|
76
|
+
_ctx.showArrow ? (vue.openBlock(), vue.createElementBlock(
|
|
77
|
+
"span",
|
|
78
|
+
{
|
|
79
|
+
key: 0,
|
|
80
|
+
ref_key: "arrowRef",
|
|
81
|
+
ref: arrowRef,
|
|
82
|
+
style: vue.normalizeStyle(vue.unref(arrowStyle)),
|
|
83
|
+
class: vue.normalizeClass(vue.unref(ns).e("arrow"))
|
|
84
|
+
},
|
|
85
|
+
null,
|
|
86
|
+
6
|
|
87
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
88
|
+
], 14, _hoisted_1);
|
|
89
|
+
};
|
|
45
90
|
}
|
|
46
91
|
});
|
|
47
|
-
|
|
48
|
-
close: () => true
|
|
49
|
-
};
|
|
92
|
+
var ElTourContent = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tour/src/content.vue"]]);
|
|
50
93
|
|
|
51
|
-
exports
|
|
52
|
-
exports.tourContentProps = tourContentProps;
|
|
53
|
-
exports.tourPlacements = tourPlacements;
|
|
54
|
-
exports.tourStrategies = tourStrategies;
|
|
94
|
+
exports["default"] = ElTourContent;
|
|
55
95
|
//# sourceMappingURL=content2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content2.js","sources":["../../../../../../packages/components/tour/src/content.
|
|
1
|
+
{"version":3,"file":"content2.js","sources":["../../../../../../packages/components/tour/src/content.vue"],"sourcesContent":["<template>\n <div\n ref=\"contentRef\"\n :style=\"contentStyle\"\n :class=\"ns.e('content')\"\n :data-side=\"side\"\n tabindex=\"-1\"\n >\n <el-focus-trap\n loop\n trapped\n focus-start-el=\"container\"\n :focus-trap-el=\"contentRef || undefined\"\n @release-requested=\"onCloseRequested\"\n @focusout-prevented=\"onFocusoutPrevented\"\n >\n <slot />\n </el-focus-trap>\n <span\n v-if=\"showArrow\"\n ref=\"arrowRef\"\n :style=\"arrowStyle\"\n :class=\"ns.e('arrow')\"\n />\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, inject, ref, toRef, watch } from 'vue'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport { tourContentEmits, tourContentProps } from './content'\nimport { tourKey, useFloating } from './helper'\n\ndefineOptions({\n name: 'ElTourContent',\n})\n\nconst props = defineProps(tourContentProps)\nconst emit = defineEmits(tourContentEmits)\n\nconst placement = ref(props.placement)\nconst strategy = ref(props.strategy)\nconst contentRef = ref<HTMLElement | null>(null)\nconst arrowRef = ref<HTMLElement | null>(null)\n\nwatch(\n () => props.placement,\n () => {\n placement.value = props.placement\n }\n)\n\nconst { contentStyle, arrowStyle } = useFloating(\n toRef(props, 'reference'),\n contentRef,\n arrowRef,\n placement,\n strategy,\n toRef(props, 'offset'),\n toRef(props, 'zIndex'),\n toRef(props, 'showArrow')\n)\n\nconst side = computed(() => {\n return placement.value.split('-')[0]\n})\n\nconst { ns } = inject(tourKey)!\n\nconst onCloseRequested = () => {\n emit('close')\n}\n\nconst onFocusoutPrevented = (event: CustomEvent) => {\n if (event.detail.focusReason === 'pointer') {\n event.preventDefault()\n }\n}\n</script>\n"],"names":["ref","watch","useFloating","toRef","computed","inject","tourKey","_createElementBlock","_normalizeStyle","_unref","_normalizeClass","_createVNode","ElFocusTrap","_renderSlot","showArrow","_openBlock"],"mappings":"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"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var content = require('./
|
|
5
|
+
var content = require('./content.js');
|
|
6
6
|
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
7
7
|
var icon = require('../../../utils/vue/icon.js');
|
|
8
8
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var content = require('./
|
|
5
|
+
var content = require('./content.js');
|
|
6
6
|
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
7
7
|
var icon = require('../../../utils/vue/icon.js');
|
|
8
|
-
var teleport = require('../../teleport/src/
|
|
8
|
+
var teleport = require('../../teleport/src/teleport2.js');
|
|
9
9
|
var event = require('../../../constants/event.js');
|
|
10
10
|
var types = require('../../../utils/types.js');
|
|
11
11
|
|
|
@@ -6,7 +6,7 @@ var vue = require('vue');
|
|
|
6
6
|
var core = require('@vueuse/core');
|
|
7
7
|
var index$2 = require('../../teleport/index.js');
|
|
8
8
|
var mask = require('./mask2.js');
|
|
9
|
-
var content = require('./
|
|
9
|
+
var content = require('./content2.js');
|
|
10
10
|
var steps = require('./steps.js');
|
|
11
11
|
var tour = require('./tour.js');
|
|
12
12
|
var helper = require('./helper.js');
|
|
@@ -6,10 +6,6 @@ var defaults = require('../defaults.js');
|
|
|
6
6
|
var raf = require('../../../../utils/raf.js');
|
|
7
7
|
var browser = require('../../../../utils/browser.js');
|
|
8
8
|
|
|
9
|
-
const LayoutKeys = {
|
|
10
|
-
[defaults.HORIZONTAL]: "deltaX",
|
|
11
|
-
[defaults.VERTICAL]: "deltaY"
|
|
12
|
-
};
|
|
13
9
|
const useWheel = ({ atEndEdge, atStartEdge, layout }, onWheelDelta) => {
|
|
14
10
|
let frameHandle;
|
|
15
11
|
let offset = 0;
|
|
@@ -19,11 +15,16 @@ const useWheel = ({ atEndEdge, atStartEdge, layout }, onWheelDelta) => {
|
|
|
19
15
|
};
|
|
20
16
|
const onWheel = (e) => {
|
|
21
17
|
raf.cAF(frameHandle);
|
|
22
|
-
|
|
18
|
+
let { deltaX, deltaY } = e;
|
|
19
|
+
if (e.shiftKey && deltaY !== 0) {
|
|
20
|
+
deltaX = deltaY;
|
|
21
|
+
deltaY = 0;
|
|
22
|
+
}
|
|
23
|
+
const newOffset = layout.value === defaults.HORIZONTAL ? deltaX : deltaY;
|
|
23
24
|
if (hasReachedEdge(offset) && hasReachedEdge(offset + newOffset))
|
|
24
25
|
return;
|
|
25
26
|
offset += newOffset;
|
|
26
|
-
if (!browser.isFirefox()) {
|
|
27
|
+
if (!browser.isFirefox() && newOffset !== 0) {
|
|
27
28
|
e.preventDefault();
|
|
28
29
|
}
|
|
29
30
|
frameHandle = raf.rAF(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-wheel.js","sources":["../../../../../../../packages/components/virtual-list/src/hooks/use-wheel.ts"],"sourcesContent":["import { cAF, isFirefox, rAF } from '@element-plus/utils'\nimport { HORIZONTAL
|
|
1
|
+
{"version":3,"file":"use-wheel.js","sources":["../../../../../../../packages/components/virtual-list/src/hooks/use-wheel.ts"],"sourcesContent":["import { cAF, isFirefox, rAF } from '@element-plus/utils'\nimport { HORIZONTAL } from '../defaults'\n\nimport type { ComputedRef } from 'vue'\nimport type { LayoutDirection } from '../types'\n\ninterface ListWheelState {\n atStartEdge: ComputedRef<boolean> // exclusive to reachEnd\n atEndEdge: ComputedRef<boolean>\n layout: ComputedRef<LayoutDirection>\n}\n\ntype ListWheelHandler = (offset: number) => void\n\nconst useWheel = (\n { atEndEdge, atStartEdge, layout }: ListWheelState,\n onWheelDelta: ListWheelHandler\n) => {\n let frameHandle: number\n let offset = 0\n\n const hasReachedEdge = (offset: number) => {\n const edgeReached =\n (offset < 0 && atStartEdge.value) || (offset > 0 && atEndEdge.value)\n\n return edgeReached\n }\n\n const onWheel = (e: WheelEvent) => {\n cAF(frameHandle)\n\n let { deltaX, deltaY } = e\n // Special case for windows machine with shift key + wheel scrolling\n if (e.shiftKey && deltaY !== 0) {\n deltaX = deltaY\n deltaY = 0\n }\n\n const newOffset = layout.value === HORIZONTAL ? deltaX : deltaY\n\n if (hasReachedEdge(offset) && hasReachedEdge(offset + newOffset)) return\n\n offset += newOffset\n\n if (!isFirefox() && newOffset !== 0) {\n e.preventDefault()\n }\n\n frameHandle = rAF(() => {\n onWheelDelta(offset)\n offset = 0\n })\n }\n\n return {\n hasReachedEdge,\n onWheel,\n }\n}\n\nexport default useWheel\n"],"names":["offset","cAF","HORIZONTAL","isFirefox","rAF"],"mappings":";;;;;;;;AAcA,MAAM,WAAW,CACf,EAAE,WAAW,WAAa,EAAA,MAAA,IAC1B,YACG,KAAA;AACH,EAAI,IAAA,WAAA,CAAA;AACJ,EAAA,IAAI,MAAS,GAAA,CAAA,CAAA;AAEb,EAAM,MAAA,cAAA,GAAiB,CAACA,OAAmB,KAAA;AACzC,IAAA,MAAM,cACHA,OAAS,GAAA,CAAA,IAAK,YAAY,KAAWA,IAAAA,OAAAA,GAAS,KAAK,SAAU,CAAA,KAAA,CAAA;AAEhE,IAAO,OAAA,WAAA,CAAA;AAAA,GACT,CAAA;AAEA,EAAM,MAAA,OAAA,GAAU,CAAC,CAAkB,KAAA;AACjC,IAAAC,OAAA,CAAI,WAAW,CAAA,CAAA;AAEf,IAAI,IAAA,EAAE,MAAQ,EAAA,MAAA,EAAW,GAAA,CAAA,CAAA;AAEzB,IAAI,IAAA,CAAA,CAAE,QAAY,IAAA,MAAA,KAAW,CAAG,EAAA;AAC9B,MAAS,MAAA,GAAA,MAAA,CAAA;AACT,MAAS,MAAA,GAAA,CAAA,CAAA;AAAA,KACX;AAEA,IAAA,MAAM,SAAY,GAAA,MAAA,CAAO,KAAU,KAAAC,mBAAA,GAAa,MAAS,GAAA,MAAA,CAAA;AAEzD,IAAA,IAAI,cAAe,CAAA,MAAM,CAAK,IAAA,cAAA,CAAe,SAAS,SAAS,CAAA;AAAG,MAAA,OAAA;AAElE,IAAU,MAAA,IAAA,SAAA,CAAA;AAEV,IAAA,IAAI,CAACC,iBAAA,EAAe,IAAA,SAAA,KAAc,CAAG,EAAA;AACnC,MAAA,CAAA,CAAE,cAAe,EAAA,CAAA;AAAA,KACnB;AAEA,IAAA,WAAA,GAAcC,QAAI,MAAM;AACtB,MAAA,YAAA,CAAa,MAAM,CAAA,CAAA;AACnB,MAAS,MAAA,GAAA,CAAA,CAAA;AAAA,KACV,CAAA,CAAA;AAAA,GACH,CAAA;AAEA,EAAO,OAAA;AAAA,IACL,cAAA;AAAA,IACA,OAAA;AAAA,GACF,CAAA;AACF;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var watermark$1 = require('./src/
|
|
6
|
-
var watermark = require('./src/
|
|
5
|
+
var watermark$1 = require('./src/watermark2.js');
|
|
6
|
+
var watermark = require('./src/watermark.js');
|
|
7
7
|
var install = require('../../utils/vue/install.js');
|
|
8
8
|
|
|
9
9
|
const ElWatermark = install.withInstall(watermark$1["default"]);
|