@element-plus/nightly 0.0.20250715 → 0.0.20250716
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 +12 -3
- package/dist/index.full.min.js +10 -10
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +10 -10
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +12 -3
- 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 +24 -129
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +129 -24
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +41 -108
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +108 -41
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/anchor/index.mjs +3 -3
- package/es/components/anchor/src/anchor-link.mjs +81 -5
- package/es/components/anchor/src/anchor-link.mjs.map +1 -1
- package/es/components/anchor/src/anchor-link2.mjs +5 -81
- package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
- package/es/components/anchor/src/anchor.mjs +40 -207
- package/es/components/anchor/src/anchor.mjs.map +1 -1
- package/es/components/anchor/src/anchor2.mjs +207 -40
- package/es/components/anchor/src/anchor2.mjs.map +1 -1
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +58 -366
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +366 -58
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +64 -43
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +43 -64
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +1 -1
- package/es/components/form/src/form2.mjs +1 -1
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/index.mjs +18 -18
- package/es/components/mention/src/mention-dropdown.mjs +15 -166
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown2.mjs +166 -15
- package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/notification/src/notification.d.ts +1 -0
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notify.d.ts +1 -0
- package/es/components/notification/src/notify.mjs +10 -1
- package/es/components/notification/src/notify.mjs.map +1 -1
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +42 -114
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +114 -42
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +1 -1
- package/es/components/radio/src/radio-group.mjs +1 -1
- package/es/components/radio/src/radio.mjs +32 -74
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio2.mjs +74 -32
- package/es/components/radio/src/radio2.mjs.map +1 -1
- package/es/components/row/index.mjs +2 -2
- package/es/components/row/src/row.mjs +44 -28
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/row/src/row2.mjs +28 -44
- package/es/components/row/src/row2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +1 -1
- package/es/components/scrollbar/src/bar2.mjs +1 -1
- package/es/components/scrollbar/src/thumb.mjs +139 -11
- package/es/components/scrollbar/src/thumb.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb2.mjs +11 -139
- package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/slider/index.mjs +2 -2
- package/es/components/slider/src/slider.mjs +92 -238
- package/es/components/slider/src/slider.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +238 -92
- package/es/components/slider/src/slider2.mjs.map +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/steps.mjs +41 -35
- package/es/components/steps/src/steps.mjs.map +1 -1
- package/es/components/steps/src/steps2.mjs +35 -41
- package/es/components/steps/src/steps2.mjs.map +1 -1
- package/es/components/switch/index.mjs +2 -2
- package/es/components/switch/src/switch.mjs +228 -72
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +72 -228
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/table/src/filter-panel.mjs +1 -1
- package/es/components/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-pane.mjs +82 -13
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +13 -82
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +3 -3
- package/es/components/tooltip/src/content.mjs +198 -29
- package/es/components/tooltip/src/content.mjs.map +1 -1
- package/es/components/tooltip/src/content2.mjs +29 -198
- package/es/components/tooltip/src/content2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +169 -30
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +30 -169
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +1 -1
- package/es/components/tooltip-v2/src/root.mjs +17 -79
- package/es/components/tooltip-v2/src/root.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root2.mjs +79 -17
- package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/mask.mjs +18 -75
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask2.mjs +75 -18
- package/es/components/tour/src/mask2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +44 -168
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +168 -44
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/transfer/index.mjs +2 -2
- package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +1 -1
- package/es/components/transfer/src/transfer.mjs +164 -68
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +68 -164
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/components/upload/index.mjs +2 -2
- package/es/components/upload/src/upload-content.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +1 -1
- package/es/components/upload/src/upload.mjs +125 -97
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +97 -125
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.mjs +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +18 -18
- 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 +25 -129
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +129 -25
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +42 -107
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +107 -42
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/anchor/index.js +3 -3
- package/lib/components/anchor/src/anchor-link.js +81 -5
- package/lib/components/anchor/src/anchor-link.js.map +1 -1
- package/lib/components/anchor/src/anchor-link2.js +5 -81
- package/lib/components/anchor/src/anchor-link2.js.map +1 -1
- package/lib/components/anchor/src/anchor.js +40 -206
- package/lib/components/anchor/src/anchor.js.map +1 -1
- package/lib/components/anchor/src/anchor2.js +206 -40
- package/lib/components/anchor/src/anchor2.js.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +57 -364
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +364 -57
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +64 -43
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +43 -64
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/color-picker/src/color-picker.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +1 -1
- package/lib/components/form/src/form2.js +1 -1
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/index.js +18 -18
- package/lib/components/mention/src/mention-dropdown.js +16 -166
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown2.js +166 -16
- package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/notification/src/notification.d.ts +1 -0
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notify.d.ts +1 -0
- package/lib/components/notification/src/notify.js +10 -0
- package/lib/components/notification/src/notify.js.map +1 -1
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +43 -114
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +114 -43
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +1 -1
- package/lib/components/radio/src/radio-group.js +1 -1
- package/lib/components/radio/src/radio.js +33 -73
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio2.js +73 -33
- package/lib/components/radio/src/radio2.js.map +1 -1
- package/lib/components/row/index.js +2 -2
- package/lib/components/row/src/row.js +44 -30
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/row/src/row2.js +30 -44
- package/lib/components/row/src/row2.js.map +1 -1
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/src/bar2.js +1 -1
- package/lib/components/scrollbar/src/thumb.js +139 -11
- package/lib/components/scrollbar/src/thumb.js.map +1 -1
- package/lib/components/scrollbar/src/thumb2.js +11 -139
- package/lib/components/scrollbar/src/thumb2.js.map +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/slider/index.js +2 -2
- package/lib/components/slider/src/slider.js +93 -238
- package/lib/components/slider/src/slider.js.map +1 -1
- package/lib/components/slider/src/slider2.js +238 -93
- package/lib/components/slider/src/slider2.js.map +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/steps.js +41 -36
- package/lib/components/steps/src/steps.js.map +1 -1
- package/lib/components/steps/src/steps2.js +36 -41
- package/lib/components/steps/src/steps2.js.map +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/switch/src/switch.js +227 -72
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +72 -227
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/table/src/filter-panel.js +1 -1
- package/lib/components/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-pane.js +82 -13
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +13 -82
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tooltip/index.js +3 -3
- package/lib/components/tooltip/src/content.js +198 -29
- package/lib/components/tooltip/src/content.js.map +1 -1
- package/lib/components/tooltip/src/content2.js +29 -198
- package/lib/components/tooltip/src/content2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +168 -33
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +33 -168
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +1 -1
- package/lib/components/tooltip-v2/src/root.js +17 -79
- package/lib/components/tooltip-v2/src/root.js.map +1 -1
- package/lib/components/tooltip-v2/src/root2.js +79 -17
- package/lib/components/tooltip-v2/src/root2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/mask.js +18 -75
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask2.js +75 -18
- package/lib/components/tour/src/mask2.js.map +1 -1
- package/lib/components/tour/src/step.js +44 -167
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +167 -44
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/transfer/index.js +2 -2
- package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +1 -1
- package/lib/components/transfer/src/transfer.js +164 -72
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +72 -164
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upload/src/upload-content.js +1 -1
- package/lib/components/upload/src/upload-content2.js +1 -1
- package/lib/components/upload/src/upload-list.js +1 -1
- package/lib/components/upload/src/upload.js +125 -100
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload2.js +100 -125
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/components/upload/src/use-handlers.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +18 -18
- 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":"upload2.mjs","sources":["../../../../../../packages/components/upload/src/upload.
|
1
|
+
{"version":3,"file":"upload2.mjs","sources":["../../../../../../packages/components/upload/src/upload.ts"],"sourcesContent":["import { NOOP, buildProps, definePropType, mutable } from '@element-plus/utils'\nimport { ajaxUpload } from './ajax'\n\nimport type { Awaitable, Mutable } from '@element-plus/utils'\nimport type { UploadAjaxError } from './ajax'\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type Upload from './upload.vue'\n\nexport const uploadListTypes = ['text', 'picture', 'picture-card'] as const\n\nlet fileId = 1\nexport const genFileId = () => Date.now() + fileId++\n\nexport type UploadStatus = 'ready' | 'uploading' | 'success' | 'fail'\nexport interface UploadProgressEvent extends ProgressEvent {\n percent: number\n}\n\nexport interface UploadRequestOptions {\n action: string\n method: string\n data: Record<string, string | Blob | [Blob, string]>\n filename: string\n file: UploadRawFile\n headers: Headers | Record<string, string | number | null | undefined>\n onError: (evt: UploadAjaxError) => void\n onProgress: (evt: UploadProgressEvent) => void\n onSuccess: (response: any) => void\n withCredentials: boolean\n}\nexport interface UploadFile {\n name: string\n percentage?: number\n status: UploadStatus\n size?: number\n response?: unknown\n uid: number\n url?: string\n raw?: UploadRawFile\n}\nexport type UploadUserFile = Omit<UploadFile, 'status' | 'uid'> &\n Partial<Pick<UploadFile, 'status' | 'uid'>>\n\nexport type UploadFiles = UploadFile[]\nexport interface UploadRawFile extends File {\n uid: number\n isDirectory?: boolean\n}\nexport type UploadRequestHandler = (\n options: UploadRequestOptions\n) => XMLHttpRequest | Promise<unknown>\nexport interface UploadHooks {\n beforeUpload: (\n rawFile: UploadRawFile\n ) => Awaitable<void | undefined | null | boolean | File | Blob>\n beforeRemove: (\n uploadFile: UploadFile,\n uploadFiles: UploadFiles\n ) => Awaitable<boolean>\n onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void\n onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void\n onPreview: (uploadFile: UploadFile) => void\n onSuccess: (\n response: any,\n uploadFile: UploadFile,\n uploadFiles: UploadFiles\n ) => void\n onProgress: (\n evt: UploadProgressEvent,\n uploadFile: UploadFile,\n uploadFiles: UploadFiles\n ) => void\n onError: (\n error: Error,\n uploadFile: UploadFile,\n uploadFiles: UploadFiles\n ) => void\n onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void\n}\n\nexport type UploadData = Mutable<Record<string, any>>\n\nexport const uploadBaseProps = buildProps({\n /**\n * @description request URL\n */\n action: {\n type: String,\n default: '#',\n },\n /**\n * @description request headers\n */\n headers: {\n type: definePropType<Headers | Record<string, any>>(Object),\n },\n /**\n * @description set upload request method\n */\n method: {\n type: String,\n default: 'post',\n },\n /**\n * @description additions options of request\n */\n data: {\n type: definePropType<\n | Awaitable<UploadData>\n | ((rawFile: UploadRawFile) => Awaitable<UploadData>)\n >([Object, Function, Promise]),\n default: () => mutable({} as const),\n },\n /**\n * @description whether uploading multiple files is permitted\n */\n multiple: Boolean,\n /**\n * @description key name for uploaded file\n */\n name: {\n type: String,\n default: 'file',\n },\n /**\n * @description whether to activate drag and drop mode\n */\n drag: Boolean,\n /**\n * @description whether cookies are sent\n */\n withCredentials: Boolean,\n /**\n * @description whether to show the uploaded file list\n */\n showFileList: {\n type: Boolean,\n default: true,\n },\n /**\n * @description accepted [file types](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept), will not work when `thumbnail-mode === true`\n */\n accept: {\n type: String,\n default: '',\n },\n /**\n * @description default uploaded files\n */\n fileList: {\n type: definePropType<UploadUserFile[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description whether to auto upload file\n */\n autoUpload: {\n type: Boolean,\n default: true,\n },\n /**\n * @description type of file list\n */\n listType: {\n type: String,\n values: uploadListTypes,\n default: 'text',\n },\n /**\n * @description override default xhr behavior, allowing you to implement your own upload-file's request\n */\n httpRequest: {\n type: definePropType<UploadRequestHandler>(Function),\n default: ajaxUpload,\n },\n /**\n * @description whether to disable upload\n */\n disabled: Boolean,\n /**\n * @description maximum number of uploads allowed\n */\n limit: Number,\n} as const)\n\nexport const uploadProps = buildProps({\n ...uploadBaseProps,\n /**\n * @description hook function before uploading with the file to be uploaded as its parameter. If `false` is returned or a `Promise` is returned and then is rejected, uploading will be aborted\n */\n beforeUpload: {\n type: definePropType<UploadHooks['beforeUpload']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function before removing a file with the file and file list as its parameters. If `false` is returned or a `Promise` is returned and then is rejected, removing will be aborted\n */\n beforeRemove: {\n type: definePropType<UploadHooks['beforeRemove']>(Function),\n },\n /**\n * @description hook function when files are removed\n */\n onRemove: {\n type: definePropType<UploadHooks['onRemove']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function when select file or upload file success or upload file fail\n */\n onChange: {\n type: definePropType<UploadHooks['onChange']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function when clicking the uploaded files\n */\n onPreview: {\n type: definePropType<UploadHooks['onPreview']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function when uploaded successfully\n */\n onSuccess: {\n type: definePropType<UploadHooks['onSuccess']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function when some progress occurs\n */\n onProgress: {\n type: definePropType<UploadHooks['onProgress']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function when some errors occurs\n */\n onError: {\n type: definePropType<UploadHooks['onError']>(Function),\n default: NOOP,\n },\n /**\n * @description hook function when limit is exceeded\n */\n onExceed: {\n type: definePropType<UploadHooks['onExceed']>(Function),\n default: NOOP,\n },\n /**\n * @description set HTML attribute: crossorigin.\n */\n crossorigin: {\n type: definePropType<'anonymous' | 'use-credentials' | ''>(String),\n },\n} as const)\n\nexport type UploadProps = ExtractPropTypes<typeof uploadProps>\nexport type UploadPropsPublic = __ExtractPublicPropTypes<typeof uploadProps>\n\nexport type UploadInstance = InstanceType<typeof Upload> & unknown\n"],"names":[],"mappings":";;;;;AAEY,MAAC,eAAe,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE;AACnE,IAAI,MAAM,GAAG,CAAC,CAAC;AACH,MAAC,SAAS,GAAG,MAAM,IAAI,CAAC,GAAG,EAAE,GAAG,MAAM,GAAG;AACzC,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACrD,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,eAAe,EAAE,OAAO;AAC1B,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,eAAe;AAC3B,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,UAAU;AACvB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,KAAK,EAAE,MAAM;AACf,CAAC,EAAE;AACS,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,GAAG,eAAe;AACpB,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,CAAC;;;;"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { watch } from 'vue';
|
2
2
|
import { isNil } from 'lodash-unified';
|
3
3
|
import { useVModel } from '@vueuse/core';
|
4
|
-
import { genFileId } from './
|
4
|
+
import { genFileId } from './upload2.mjs';
|
5
5
|
import { debugWarn, throwError } from '../../../utils/error.mjs';
|
6
6
|
|
7
7
|
const SCOPE = "ElUpload";
|
package/es/index.d.ts
CHANGED
@@ -20088,6 +20088,7 @@ export declare interface Notify extends NotifyFn {
|
|
20088
20088
|
export declare interface NotifyFn {
|
20089
20089
|
(options?: NotificationParams, appContext?: null | AppContext): NotificationHandle;
|
20090
20090
|
closeAll(): void;
|
20091
|
+
updateOffsets(position?: NotificationOptions_2["position"]): void;
|
20091
20092
|
_context: AppContext | null;
|
20092
20093
|
}
|
20093
20094
|
export declare type NotifyTypedFn = (options?: NotificationParamsTyped, appContext?: null | AppContext) => NotificationHandle;
|
package/es/index.mjs
CHANGED
@@ -2,11 +2,11 @@ import installer from './defaults.mjs';
|
|
2
2
|
export { default } from './defaults.mjs';
|
3
3
|
export { makeInstaller } from './make-installer.mjs';
|
4
4
|
export { default as dayjs } from 'dayjs';
|
5
|
-
export { affixEmits, affixProps } from './components/affix/src/
|
5
|
+
export { affixEmits, affixProps } from './components/affix/src/affix.mjs';
|
6
6
|
export { ElAffix } from './components/affix/index.mjs';
|
7
|
-
export { alertEffects, alertEmits, alertProps } from './components/alert/src/
|
7
|
+
export { alertEffects, alertEmits, alertProps } from './components/alert/src/alert.mjs';
|
8
8
|
export { ElAlert } from './components/alert/index.mjs';
|
9
|
-
export { autocompleteEmits, autocompleteProps } from './components/autocomplete/src/
|
9
|
+
export { autocompleteEmits, autocompleteProps } from './components/autocomplete/src/autocomplete.mjs';
|
10
10
|
export { ElAutocomplete } from './components/autocomplete/index.mjs';
|
11
11
|
export { avatarEmits, avatarProps } from './components/avatar/src/avatar.mjs';
|
12
12
|
export { ElAvatar } from './components/avatar/index.mjs';
|
@@ -40,7 +40,7 @@ export { checkboxGroupEmits, checkboxGroupProps } from './components/checkbox/sr
|
|
40
40
|
export { checkboxEmits, checkboxProps } from './components/checkbox/src/checkbox.mjs';
|
41
41
|
export { checkboxGroupContextKey } from './components/checkbox/src/constants.mjs';
|
42
42
|
export { ElCheckbox, ElCheckboxButton, ElCheckboxGroup } from './components/checkbox/index.mjs';
|
43
|
-
export { colProps } from './components/col/src/
|
43
|
+
export { colProps } from './components/col/src/col2.mjs';
|
44
44
|
export { ElCol } from './components/col/index.mjs';
|
45
45
|
export { collapseEmits, collapseProps, emitChangeFn } from './components/collapse/src/collapse.mjs';
|
46
46
|
export { collapseItemProps } from './components/collapse/src/collapse-item.mjs';
|
@@ -109,7 +109,7 @@ export { ElPageHeader } from './components/page-header/index.mjs';
|
|
109
109
|
export { paginationEmits, paginationProps } from './components/pagination/src/pagination.mjs';
|
110
110
|
export { elPaginationKey } from './components/pagination/src/constants.mjs';
|
111
111
|
export { ElPagination } from './components/pagination/index.mjs';
|
112
|
-
export { popconfirmEmits, popconfirmProps } from './components/popconfirm/src/
|
112
|
+
export { popconfirmEmits, popconfirmProps } from './components/popconfirm/src/popconfirm.mjs';
|
113
113
|
export { ElPopconfirm } from './components/popconfirm/index.mjs';
|
114
114
|
export { Effect, popperProps, roleTypes, usePopperProps } from './components/popper/src/popper.mjs';
|
115
115
|
export { popperTriggerProps, usePopperTriggerProps } from './components/popper/src/trigger.mjs';
|
@@ -122,7 +122,7 @@ export { default as ElPopperContent } from './components/popper/src/content2.mjs
|
|
122
122
|
export { ElPopper } from './components/popper/index.mjs';
|
123
123
|
export { progressProps } from './components/progress/src/progress.mjs';
|
124
124
|
export { ElProgress } from './components/progress/index.mjs';
|
125
|
-
export { radioEmits, radioProps, radioPropsBase } from './components/radio/src/
|
125
|
+
export { radioEmits, radioProps, radioPropsBase } from './components/radio/src/radio.mjs';
|
126
126
|
export { radioGroupEmits, radioGroupProps } from './components/radio/src/radio-group.mjs';
|
127
127
|
export { radioButtonProps } from './components/radio/src/radio-button.mjs';
|
128
128
|
export { radioGroupKey } from './components/radio/src/constants.mjs';
|
@@ -131,12 +131,12 @@ export { rateEmits, rateProps } from './components/rate/src/rate.mjs';
|
|
131
131
|
export { ElRate } from './components/rate/index.mjs';
|
132
132
|
export { IconComponentMap, IconMap, resultProps } from './components/result/src/result.mjs';
|
133
133
|
export { ElResult } from './components/result/index.mjs';
|
134
|
-
export { RowAlign, RowJustify, rowProps } from './components/row/src/
|
134
|
+
export { RowAlign, RowJustify, rowProps } from './components/row/src/row2.mjs';
|
135
135
|
export { rowContextKey } from './components/row/src/constants.mjs';
|
136
136
|
export { ElRow } from './components/row/index.mjs';
|
137
137
|
export { BAR_MAP, GAP, renderThumbStyle } from './components/scrollbar/src/util.mjs';
|
138
138
|
export { scrollbarEmits, scrollbarProps } from './components/scrollbar/src/scrollbar.mjs';
|
139
|
-
export { thumbProps } from './components/scrollbar/src/
|
139
|
+
export { thumbProps } from './components/scrollbar/src/thumb2.mjs';
|
140
140
|
export { scrollbarContextKey } from './components/scrollbar/src/constants.mjs';
|
141
141
|
export { ElScrollbar } from './components/scrollbar/index.mjs';
|
142
142
|
export { selectGroupKey, selectKey } from './components/select/src/token.mjs';
|
@@ -147,7 +147,7 @@ export { ElSelectV2 } from './components/select-v2/index.mjs';
|
|
147
147
|
export { skeletonProps } from './components/skeleton/src/skeleton.mjs';
|
148
148
|
export { skeletonItemProps } from './components/skeleton/src/skeleton-item.mjs';
|
149
149
|
export { ElSkeleton, ElSkeletonItem } from './components/skeleton/index.mjs';
|
150
|
-
export { sliderEmits, sliderProps } from './components/slider/src/
|
150
|
+
export { sliderEmits, sliderProps } from './components/slider/src/slider.mjs';
|
151
151
|
export { sliderContextKey } from './components/slider/src/constants.mjs';
|
152
152
|
export { ElSlider } from './components/slider/index.mjs';
|
153
153
|
export { spaceProps } from './components/space/src/space.mjs';
|
@@ -157,10 +157,10 @@ export { ElSpace } from './components/space/index.mjs';
|
|
157
157
|
export { statisticProps } from './components/statistic/src/statistic.mjs';
|
158
158
|
export { ElStatistic } from './components/statistic/index.mjs';
|
159
159
|
export { stepProps } from './components/steps/src/item.mjs';
|
160
|
-
export { stepsEmits, stepsProps } from './components/steps/src/
|
160
|
+
export { stepsEmits, stepsProps } from './components/steps/src/steps2.mjs';
|
161
161
|
export { STEPS_INJECTION_KEY } from './components/steps/src/tokens.mjs';
|
162
162
|
export { ElStep, ElSteps } from './components/steps/index.mjs';
|
163
|
-
export { switchEmits, switchProps } from './components/switch/src/
|
163
|
+
export { switchEmits, switchProps } from './components/switch/src/switch2.mjs';
|
164
164
|
export { ElSwitch } from './components/switch/index.mjs';
|
165
165
|
export { ElTable, ElTableColumn } from './components/table/index.mjs';
|
166
166
|
export { Alignment as TableV2Alignment, FixedDir as TableV2FixedDir, SortOrder as TableV2SortOrder } from './components/table-v2/src/constants.mjs';
|
@@ -173,7 +173,7 @@ export { ElAutoResizer, ElTableV2 } from './components/table-v2/index.mjs';
|
|
173
173
|
export { tabsEmits, tabsProps } from './components/tabs/src/tabs.mjs';
|
174
174
|
export { tabBarProps } from './components/tabs/src/tab-bar.mjs';
|
175
175
|
export { tabNavEmits, tabNavProps } from './components/tabs/src/tab-nav.mjs';
|
176
|
-
export { tabPaneProps } from './components/tabs/src/tab-
|
176
|
+
export { tabPaneProps } from './components/tabs/src/tab-pane2.mjs';
|
177
177
|
export { tabsRootContextKey } from './components/tabs/src/constants.mjs';
|
178
178
|
export { ElTabPane, ElTabs } from './components/tabs/index.mjs';
|
179
179
|
export { tagEmits, tagProps } from './components/tag/src/tag.mjs';
|
@@ -191,18 +191,18 @@ export { ElTimeSelect } from './components/time-select/index.mjs';
|
|
191
191
|
export { timelineItemProps } from './components/timeline/src/timeline-item.mjs';
|
192
192
|
export { TIMELINE_INJECTION_KEY } from './components/timeline/src/tokens.mjs';
|
193
193
|
export { ElTimeline, ElTimelineItem } from './components/timeline/index.mjs';
|
194
|
-
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './components/tooltip/src/
|
194
|
+
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './components/tooltip/src/tooltip2.mjs';
|
195
195
|
export { useTooltipTriggerProps } from './components/tooltip/src/trigger.mjs';
|
196
|
-
export { useTooltipContentProps } from './components/tooltip/src/
|
196
|
+
export { useTooltipContentProps } from './components/tooltip/src/content2.mjs';
|
197
197
|
export { TOOLTIP_INJECTION_KEY } from './components/tooltip/src/constants.mjs';
|
198
198
|
export { ElTooltip } from './components/tooltip/index.mjs';
|
199
|
-
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './components/transfer/src/
|
199
|
+
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './components/transfer/src/transfer2.mjs';
|
200
200
|
export { ElTransfer } from './components/transfer/index.mjs';
|
201
201
|
export { NODE_INSTANCE_INJECTION_KEY, ROOT_TREE_INJECTION_KEY, TREE_NODE_MAP_INJECTION_KEY } from './components/tree/src/tokens.mjs';
|
202
202
|
export { ElTree } from './components/tree/index.mjs';
|
203
203
|
export { ElTreeSelect } from './components/tree-select/index.mjs';
|
204
204
|
export { ElTreeV2 } from './components/tree-v2/index.mjs';
|
205
|
-
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './components/upload/src/
|
205
|
+
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './components/upload/src/upload2.mjs';
|
206
206
|
export { uploadContentProps } from './components/upload/src/upload-content.mjs';
|
207
207
|
export { uploadListEmits, uploadListProps } from './components/upload/src/upload-list.mjs';
|
208
208
|
export { uploadDraggerEmits, uploadDraggerProps } from './components/upload/src/upload-dragger.mjs';
|
@@ -216,10 +216,10 @@ export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualiz
|
|
216
216
|
export { watermarkProps } from './components/watermark/src/watermark.mjs';
|
217
217
|
export { ElWatermark } from './components/watermark/index.mjs';
|
218
218
|
export { tourEmits, tourProps } from './components/tour/src/tour.mjs';
|
219
|
-
export { tourStepEmits, tourStepProps } from './components/tour/src/
|
219
|
+
export { tourStepEmits, tourStepProps } from './components/tour/src/step.mjs';
|
220
220
|
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './components/tour/src/content.mjs';
|
221
221
|
export { ElTour, ElTourStep } from './components/tour/index.mjs';
|
222
|
-
export { anchorEmits, anchorProps } from './components/anchor/src/
|
222
|
+
export { anchorEmits, anchorProps } from './components/anchor/src/anchor.mjs';
|
223
223
|
export { ElAnchor, ElAnchorLink } from './components/anchor/index.mjs';
|
224
224
|
export { defaultProps, segmentedEmits, segmentedProps } from './components/segmented/src/segmented.mjs';
|
225
225
|
export { ElSegmented } from './components/segmented/index.mjs';
|
package/es/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const version = "0.0.
|
1
|
+
export declare const version = "0.0.20250716";
|
package/es/version.mjs
CHANGED
package/es/version.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20250716'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var affix$1 = require('./src/
|
6
|
-
var affix = require('./src/
|
5
|
+
var affix$1 = require('./src/affix2.js');
|
6
|
+
var affix = require('./src/affix.js');
|
7
7
|
var install = require('../../utils/vue/install.js');
|
8
8
|
|
9
9
|
const ElAffix = install.withInstall(affix$1["default"]);
|
@@ -2,138 +2,34 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var vue = require('vue');
|
6
|
-
var core = require('@vueuse/core');
|
7
|
-
var affix = require('./affix2.js');
|
8
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
9
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
10
|
-
var scroll = require('../../../utils/dom/scroll.js');
|
11
|
-
var style = require('../../../utils/dom/style.js');
|
12
5
|
var event = require('../../../constants/event.js');
|
13
|
-
var
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
7
|
+
var types = require('../../../utils/types.js');
|
14
8
|
|
15
|
-
const
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
width: rootWidth,
|
33
|
-
top: rootTop,
|
34
|
-
bottom: rootBottom,
|
35
|
-
update: updateRoot
|
36
|
-
} = core.useElementBounding(root, { windowScroll: false });
|
37
|
-
const targetRect = core.useElementBounding(target);
|
38
|
-
const fixed = vue.ref(false);
|
39
|
-
const scrollTop = vue.ref(0);
|
40
|
-
const transform = vue.ref(0);
|
41
|
-
const rootStyle = vue.computed(() => {
|
42
|
-
return {
|
43
|
-
height: fixed.value ? `${rootHeight.value}px` : "",
|
44
|
-
width: fixed.value ? `${rootWidth.value}px` : ""
|
45
|
-
};
|
46
|
-
});
|
47
|
-
const affixStyle = vue.computed(() => {
|
48
|
-
if (!fixed.value)
|
49
|
-
return {};
|
50
|
-
const offset = props.offset ? style.addUnit(props.offset) : 0;
|
51
|
-
return {
|
52
|
-
height: `${rootHeight.value}px`,
|
53
|
-
width: `${rootWidth.value}px`,
|
54
|
-
top: props.position === "top" ? offset : "",
|
55
|
-
bottom: props.position === "bottom" ? offset : "",
|
56
|
-
transform: transform.value ? `translateY(${transform.value}px)` : "",
|
57
|
-
zIndex: props.zIndex
|
58
|
-
};
|
59
|
-
});
|
60
|
-
const update = () => {
|
61
|
-
if (!scrollContainer.value)
|
62
|
-
return;
|
63
|
-
scrollTop.value = scrollContainer.value instanceof Window ? document.documentElement.scrollTop : scrollContainer.value.scrollTop || 0;
|
64
|
-
const { position, target: target2, offset } = props;
|
65
|
-
const rootHeightOffset = offset + rootHeight.value;
|
66
|
-
if (position === "top") {
|
67
|
-
if (target2) {
|
68
|
-
const difference = targetRect.bottom.value - rootHeightOffset;
|
69
|
-
fixed.value = offset > rootTop.value && targetRect.bottom.value > 0;
|
70
|
-
transform.value = difference < 0 ? difference : 0;
|
71
|
-
} else {
|
72
|
-
fixed.value = offset > rootTop.value;
|
73
|
-
}
|
74
|
-
} else if (target2) {
|
75
|
-
const difference = windowHeight.value - targetRect.top.value - rootHeightOffset;
|
76
|
-
fixed.value = windowHeight.value - offset < rootBottom.value && windowHeight.value > targetRect.top.value;
|
77
|
-
transform.value = difference < 0 ? -difference : 0;
|
78
|
-
} else {
|
79
|
-
fixed.value = windowHeight.value - offset < rootBottom.value;
|
80
|
-
}
|
81
|
-
};
|
82
|
-
const updateRootRect = async () => {
|
83
|
-
if (!fixed.value) {
|
84
|
-
updateRoot();
|
85
|
-
return;
|
86
|
-
}
|
87
|
-
fixed.value = false;
|
88
|
-
await vue.nextTick();
|
89
|
-
updateRoot();
|
90
|
-
fixed.value = true;
|
91
|
-
};
|
92
|
-
const handleScroll = async () => {
|
93
|
-
updateRoot();
|
94
|
-
await vue.nextTick();
|
95
|
-
emit("scroll", {
|
96
|
-
scrollTop: scrollTop.value,
|
97
|
-
fixed: fixed.value
|
98
|
-
});
|
99
|
-
};
|
100
|
-
vue.watch(fixed, (val) => emit(event.CHANGE_EVENT, val));
|
101
|
-
vue.onMounted(() => {
|
102
|
-
var _a;
|
103
|
-
if (props.target) {
|
104
|
-
target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
105
|
-
if (!target.value)
|
106
|
-
error.throwError(COMPONENT_NAME, `Target does not exist: ${props.target}`);
|
107
|
-
} else {
|
108
|
-
target.value = document.documentElement;
|
109
|
-
}
|
110
|
-
scrollContainer.value = scroll.getScrollContainer(root.value, true);
|
111
|
-
updateRoot();
|
112
|
-
});
|
113
|
-
core.useEventListener(scrollContainer, "scroll", handleScroll);
|
114
|
-
vue.watchEffect(update);
|
115
|
-
expose({
|
116
|
-
update,
|
117
|
-
updateRoot: updateRootRect
|
118
|
-
});
|
119
|
-
return (_ctx, _cache) => {
|
120
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
121
|
-
ref_key: "root",
|
122
|
-
ref: root,
|
123
|
-
class: vue.normalizeClass(vue.unref(ns).b()),
|
124
|
-
style: vue.normalizeStyle(vue.unref(rootStyle))
|
125
|
-
}, [
|
126
|
-
vue.createElementVNode("div", {
|
127
|
-
class: vue.normalizeClass({ [vue.unref(ns).m("fixed")]: fixed.value }),
|
128
|
-
style: vue.normalizeStyle(vue.unref(affixStyle))
|
129
|
-
}, [
|
130
|
-
vue.renderSlot(_ctx.$slots, "default")
|
131
|
-
], 6)
|
132
|
-
], 6);
|
133
|
-
};
|
9
|
+
const affixProps = runtime.buildProps({
|
10
|
+
zIndex: {
|
11
|
+
type: runtime.definePropType([Number, String]),
|
12
|
+
default: 100
|
13
|
+
},
|
14
|
+
target: {
|
15
|
+
type: String,
|
16
|
+
default: ""
|
17
|
+
},
|
18
|
+
offset: {
|
19
|
+
type: Number,
|
20
|
+
default: 0
|
21
|
+
},
|
22
|
+
position: {
|
23
|
+
type: String,
|
24
|
+
values: ["top", "bottom"],
|
25
|
+
default: "top"
|
134
26
|
}
|
135
27
|
});
|
136
|
-
|
28
|
+
const affixEmits = {
|
29
|
+
scroll: ({ scrollTop, fixed }) => types.isNumber(scrollTop) && types.isBoolean(fixed),
|
30
|
+
[event.CHANGE_EVENT]: (fixed) => types.isBoolean(fixed)
|
31
|
+
};
|
137
32
|
|
138
|
-
exports
|
33
|
+
exports.affixEmits = affixEmits;
|
34
|
+
exports.affixProps = affixProps;
|
139
35
|
//# sourceMappingURL=affix.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"affix.js","sources":["../../../../../../packages/components/affix/src/affix.
|
1
|
+
{"version":3,"file":"affix.js","sources":["../../../../../../packages/components/affix/src/affix.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isBoolean,\n isNumber,\n} from '@element-plus/utils'\nimport { CHANGE_EVENT } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type { ZIndexProperty } from 'csstype'\nimport type Affix from './affix.vue'\n\nexport const affixProps = buildProps({\n /**\n * @description affix element zIndex value\n * */\n zIndex: {\n type: definePropType<ZIndexProperty>([Number, String]),\n default: 100,\n },\n /**\n * @description target container. (CSS selector)\n */\n target: {\n type: String,\n default: '',\n },\n /**\n * @description offset distance\n * */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description position of affix\n * */\n position: {\n type: String,\n values: ['top', 'bottom'],\n default: 'top',\n },\n} as const)\nexport type AffixProps = ExtractPropTypes<typeof affixProps>\nexport type AffixPropsPublic = __ExtractPublicPropTypes<typeof affixProps>\n\nexport const affixEmits = {\n scroll: ({ scrollTop, fixed }: { scrollTop: number; fixed: boolean }) =>\n isNumber(scrollTop) && isBoolean(fixed),\n [CHANGE_EVENT]: (fixed: boolean) => isBoolean(fixed),\n}\nexport type AffixEmits = typeof affixEmits\n\nexport type AffixInstance = InstanceType<typeof Affix> & unknown\n"],"names":["buildProps","definePropType","isNumber","isBoolean","CHANGE_EVENT"],"mappings":";;;;;;;;AAOY,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;AAC7B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAKC,cAAQ,CAAC,SAAS,CAAC,IAAIC,eAAS,CAAC,KAAK,CAAC;AAC3E,EAAE,CAACC,kBAAY,GAAG,CAAC,KAAK,KAAKD,eAAS,CAAC,KAAK,CAAC;AAC7C;;;;;"}
|
@@ -2,34 +2,138 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
+
var vue = require('vue');
|
6
|
+
var core = require('@vueuse/core');
|
7
|
+
var affix = require('./affix.js');
|
8
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
9
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
10
|
+
var scroll = require('../../../utils/dom/scroll.js');
|
11
|
+
var style = require('../../../utils/dom/style.js');
|
5
12
|
var event = require('../../../constants/event.js');
|
6
|
-
var
|
7
|
-
var types = require('../../../utils/types.js');
|
13
|
+
var error = require('../../../utils/error.js');
|
8
14
|
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
}
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
15
|
+
const COMPONENT_NAME = "ElAffix";
|
16
|
+
const __default__ = vue.defineComponent({
|
17
|
+
name: COMPONENT_NAME
|
18
|
+
});
|
19
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
20
|
+
...__default__,
|
21
|
+
props: affix.affixProps,
|
22
|
+
emits: affix.affixEmits,
|
23
|
+
setup(__props, { expose, emit }) {
|
24
|
+
const props = __props;
|
25
|
+
const ns = index.useNamespace("affix");
|
26
|
+
const target = vue.shallowRef();
|
27
|
+
const root = vue.shallowRef();
|
28
|
+
const scrollContainer = vue.shallowRef();
|
29
|
+
const { height: windowHeight } = core.useWindowSize();
|
30
|
+
const {
|
31
|
+
height: rootHeight,
|
32
|
+
width: rootWidth,
|
33
|
+
top: rootTop,
|
34
|
+
bottom: rootBottom,
|
35
|
+
update: updateRoot
|
36
|
+
} = core.useElementBounding(root, { windowScroll: false });
|
37
|
+
const targetRect = core.useElementBounding(target);
|
38
|
+
const fixed = vue.ref(false);
|
39
|
+
const scrollTop = vue.ref(0);
|
40
|
+
const transform = vue.ref(0);
|
41
|
+
const rootStyle = vue.computed(() => {
|
42
|
+
return {
|
43
|
+
height: fixed.value ? `${rootHeight.value}px` : "",
|
44
|
+
width: fixed.value ? `${rootWidth.value}px` : ""
|
45
|
+
};
|
46
|
+
});
|
47
|
+
const affixStyle = vue.computed(() => {
|
48
|
+
if (!fixed.value)
|
49
|
+
return {};
|
50
|
+
const offset = props.offset ? style.addUnit(props.offset) : 0;
|
51
|
+
return {
|
52
|
+
height: `${rootHeight.value}px`,
|
53
|
+
width: `${rootWidth.value}px`,
|
54
|
+
top: props.position === "top" ? offset : "",
|
55
|
+
bottom: props.position === "bottom" ? offset : "",
|
56
|
+
transform: transform.value ? `translateY(${transform.value}px)` : "",
|
57
|
+
zIndex: props.zIndex
|
58
|
+
};
|
59
|
+
});
|
60
|
+
const update = () => {
|
61
|
+
if (!scrollContainer.value)
|
62
|
+
return;
|
63
|
+
scrollTop.value = scrollContainer.value instanceof Window ? document.documentElement.scrollTop : scrollContainer.value.scrollTop || 0;
|
64
|
+
const { position, target: target2, offset } = props;
|
65
|
+
const rootHeightOffset = offset + rootHeight.value;
|
66
|
+
if (position === "top") {
|
67
|
+
if (target2) {
|
68
|
+
const difference = targetRect.bottom.value - rootHeightOffset;
|
69
|
+
fixed.value = offset > rootTop.value && targetRect.bottom.value > 0;
|
70
|
+
transform.value = difference < 0 ? difference : 0;
|
71
|
+
} else {
|
72
|
+
fixed.value = offset > rootTop.value;
|
73
|
+
}
|
74
|
+
} else if (target2) {
|
75
|
+
const difference = windowHeight.value - targetRect.top.value - rootHeightOffset;
|
76
|
+
fixed.value = windowHeight.value - offset < rootBottom.value && windowHeight.value > targetRect.top.value;
|
77
|
+
transform.value = difference < 0 ? -difference : 0;
|
78
|
+
} else {
|
79
|
+
fixed.value = windowHeight.value - offset < rootBottom.value;
|
80
|
+
}
|
81
|
+
};
|
82
|
+
const updateRootRect = async () => {
|
83
|
+
if (!fixed.value) {
|
84
|
+
updateRoot();
|
85
|
+
return;
|
86
|
+
}
|
87
|
+
fixed.value = false;
|
88
|
+
await vue.nextTick();
|
89
|
+
updateRoot();
|
90
|
+
fixed.value = true;
|
91
|
+
};
|
92
|
+
const handleScroll = async () => {
|
93
|
+
updateRoot();
|
94
|
+
await vue.nextTick();
|
95
|
+
emit("scroll", {
|
96
|
+
scrollTop: scrollTop.value,
|
97
|
+
fixed: fixed.value
|
98
|
+
});
|
99
|
+
};
|
100
|
+
vue.watch(fixed, (val) => emit(event.CHANGE_EVENT, val));
|
101
|
+
vue.onMounted(() => {
|
102
|
+
var _a;
|
103
|
+
if (props.target) {
|
104
|
+
target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
105
|
+
if (!target.value)
|
106
|
+
error.throwError(COMPONENT_NAME, `Target does not exist: ${props.target}`);
|
107
|
+
} else {
|
108
|
+
target.value = document.documentElement;
|
109
|
+
}
|
110
|
+
scrollContainer.value = scroll.getScrollContainer(root.value, true);
|
111
|
+
updateRoot();
|
112
|
+
});
|
113
|
+
core.useEventListener(scrollContainer, "scroll", handleScroll);
|
114
|
+
vue.watchEffect(update);
|
115
|
+
expose({
|
116
|
+
update,
|
117
|
+
updateRoot: updateRootRect
|
118
|
+
});
|
119
|
+
return (_ctx, _cache) => {
|
120
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
121
|
+
ref_key: "root",
|
122
|
+
ref: root,
|
123
|
+
class: vue.normalizeClass(vue.unref(ns).b()),
|
124
|
+
style: vue.normalizeStyle(vue.unref(rootStyle))
|
125
|
+
}, [
|
126
|
+
vue.createElementVNode("div", {
|
127
|
+
class: vue.normalizeClass({ [vue.unref(ns).m("fixed")]: fixed.value }),
|
128
|
+
style: vue.normalizeStyle(vue.unref(affixStyle))
|
129
|
+
}, [
|
130
|
+
vue.renderSlot(_ctx.$slots, "default")
|
131
|
+
], 6)
|
132
|
+
], 6);
|
133
|
+
};
|
26
134
|
}
|
27
135
|
});
|
28
|
-
|
29
|
-
scroll: ({ scrollTop, fixed }) => types.isNumber(scrollTop) && types.isBoolean(fixed),
|
30
|
-
[event.CHANGE_EVENT]: (fixed) => types.isBoolean(fixed)
|
31
|
-
};
|
136
|
+
var Affix = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "affix.vue"]]);
|
32
137
|
|
33
|
-
exports
|
34
|
-
exports.affixProps = affixProps;
|
138
|
+
exports["default"] = Affix;
|
35
139
|
//# sourceMappingURL=affix2.js.map
|