@element-plus/nightly 0.0.20251023 → 0.0.20251025
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.full.js +6 -6
- package/dist/index.full.min.js +12 -12
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +12 -12
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +6 -6
- 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 +129 -24
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +24 -129
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/anchor/index.mjs +2 -2
- 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/breadcrumb/index.mjs +4 -4
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +8 -56
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -8
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb.mjs +10 -37
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +37 -10
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel.mjs +61 -212
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +212 -61
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/basic-date-table.mjs +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/basic-date-table.mjs.map +1 -1
- package/es/components/descriptions/index.mjs +2 -2
- package/es/components/descriptions/src/description.mjs +26 -127
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +127 -26
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/dialog/index.mjs +2 -2
- package/es/components/dialog/src/dialog.mjs +174 -74
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog2.mjs +74 -174
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +27 -198
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +198 -27
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +1 -1
- package/es/components/index.mjs +15 -15
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +73 -147
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +147 -73
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/pagination/src/components/jumper.mjs +58 -7
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +7 -58
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/components/total.mjs +26 -6
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +6 -26
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +5 -65
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +65 -5
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/radio/src/radio-group2.mjs +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +83 -256
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +256 -83
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/roving-focus-group/index.mjs +3 -3
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -27
- package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -27
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
- package/es/components/select/src/useSelect.mjs +2 -2
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/switch/index.mjs +2 -2
- package/es/components/switch/src/switch.mjs +224 -72
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +72 -224
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-pane.mjs +16 -85
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +85 -16
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tooltip/src/content2.mjs +3 -2
- package/es/components/tooltip/src/content2.mjs.map +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/mask.mjs +18 -76
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask2.mjs +76 -18
- package/es/components/tour/src/mask2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +192 -44
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +44 -192
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/tree/index.mjs +2 -2
- package/es/components/tree/src/tree.mjs +17 -336
- package/es/components/tree/src/tree.mjs.map +1 -1
- package/es/components/tree/src/tree2.mjs +336 -17
- package/es/components/tree/src/tree2.mjs.map +1 -1
- package/es/index.mjs +15 -15
- 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 +129 -25
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +25 -129
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/anchor/index.js +2 -2
- 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/breadcrumb/index.js +4 -4
- package/lib/components/breadcrumb/src/breadcrumb-item.js +8 -56
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -8
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb.js +10 -37
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +37 -10
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel.js +62 -212
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +212 -62
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/basic-date-table.js +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/basic-date-table.js.map +1 -1
- package/lib/components/descriptions/index.js +2 -2
- package/lib/components/descriptions/src/description.js +26 -127
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +127 -26
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/dialog/index.js +2 -2
- package/lib/components/dialog/src/dialog.js +174 -76
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog2.js +76 -174
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +28 -198
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +198 -28
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown2.js +1 -1
- package/lib/components/index.js +15 -15
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +74 -146
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +146 -74
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/pagination/src/components/jumper.js +58 -7
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +7 -58
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/components/total.js +26 -6
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +6 -26
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +5 -65
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +65 -5
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/radio/src/radio-group2.js +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +83 -255
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +255 -83
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/roving-focus-group/index.js +2 -2
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -31
- package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group2.js +31 -27
- package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
- package/lib/components/select/src/useSelect.js +1 -1
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/switch/src/switch.js +223 -72
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +72 -223
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-pane.js +16 -85
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +85 -16
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tooltip/src/content2.js +3 -2
- package/lib/components/tooltip/src/content2.js.map +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/mask.js +18 -76
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask2.js +76 -18
- package/lib/components/tour/src/mask2.js.map +1 -1
- package/lib/components/tour/src/step.js +191 -44
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +44 -191
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/tree/index.js +2 -2
- package/lib/components/tree/src/tree.js +17 -336
- package/lib/components/tree/src/tree.js.map +1 -1
- package/lib/components/tree/src/tree2.js +336 -17
- package/lib/components/tree/src/tree2.js.map +1 -1
- package/lib/index.js +15 -15
- 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,197 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ElIcon } from '../../icon/index.mjs';
|
|
5
|
-
import { tourStepProps, tourStepEmits } from './step.mjs';
|
|
6
|
-
import { tourKey } from './helper.mjs';
|
|
7
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
9
|
-
import { CloseComponents } from '../../../utils/vue/icon.mjs';
|
|
10
|
-
import { getEventCode } from '../../../utils/dom/event.mjs';
|
|
11
|
-
import { EVENT_CODE } from '../../../constants/aria.mjs';
|
|
1
|
+
import { tourContentProps } from './content2.mjs';
|
|
2
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
3
|
+
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
|
12
4
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
});
|
|
51
|
-
const filterButtonProps = (btnProps) => {
|
|
52
|
-
if (!btnProps)
|
|
53
|
-
return;
|
|
54
|
-
return omit(btnProps, ["children", "onClick"]);
|
|
55
|
-
};
|
|
56
|
-
const onPrev = () => {
|
|
57
|
-
var _a, _b;
|
|
58
|
-
current.value -= 1;
|
|
59
|
-
if ((_a = props.prevButtonProps) == null ? void 0 : _a.onClick) {
|
|
60
|
-
(_b = props.prevButtonProps) == null ? void 0 : _b.onClick();
|
|
61
|
-
}
|
|
62
|
-
onChange();
|
|
63
|
-
};
|
|
64
|
-
const onNext = () => {
|
|
65
|
-
var _a;
|
|
66
|
-
if (current.value >= total.value - 1) {
|
|
67
|
-
onFinish();
|
|
68
|
-
} else {
|
|
69
|
-
current.value += 1;
|
|
70
|
-
}
|
|
71
|
-
if ((_a = props.nextButtonProps) == null ? void 0 : _a.onClick) {
|
|
72
|
-
props.nextButtonProps.onClick();
|
|
73
|
-
}
|
|
74
|
-
onChange();
|
|
75
|
-
};
|
|
76
|
-
const onFinish = () => {
|
|
77
|
-
onClose();
|
|
78
|
-
tourOnFinish();
|
|
79
|
-
};
|
|
80
|
-
const onClose = () => {
|
|
81
|
-
updateModelValue(false);
|
|
82
|
-
tourOnClose();
|
|
83
|
-
emit("close");
|
|
84
|
-
};
|
|
85
|
-
const handleKeydown = (e) => {
|
|
86
|
-
const target = e.target;
|
|
87
|
-
if (target == null ? void 0 : target.isContentEditable)
|
|
88
|
-
return;
|
|
89
|
-
const code = getEventCode(e);
|
|
90
|
-
switch (code) {
|
|
91
|
-
case EVENT_CODE.left:
|
|
92
|
-
e.preventDefault();
|
|
93
|
-
current.value > 0 && onPrev();
|
|
94
|
-
break;
|
|
95
|
-
case EVENT_CODE.right:
|
|
96
|
-
e.preventDefault();
|
|
97
|
-
onNext();
|
|
98
|
-
break;
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
onMounted(() => {
|
|
102
|
-
window.addEventListener("keydown", handleKeydown);
|
|
103
|
-
});
|
|
104
|
-
onBeforeUnmount(() => {
|
|
105
|
-
window.removeEventListener("keydown", handleKeydown);
|
|
106
|
-
});
|
|
107
|
-
return (_ctx, _cache) => {
|
|
108
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
109
|
-
unref(mergedShowClose) ? (openBlock(), createElementBlock("button", {
|
|
110
|
-
key: 0,
|
|
111
|
-
"aria-label": unref(t)("el.tour.close"),
|
|
112
|
-
class: normalizeClass(unref(ns).e("closebtn")),
|
|
113
|
-
type: "button",
|
|
114
|
-
onClick: onClose
|
|
115
|
-
}, [
|
|
116
|
-
createVNode(unref(ElIcon), {
|
|
117
|
-
class: normalizeClass(unref(ns).e("close"))
|
|
118
|
-
}, {
|
|
119
|
-
default: withCtx(() => [
|
|
120
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(mergedCloseIcon))))
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
}, 8, ["class"])
|
|
124
|
-
], 10, ["aria-label"])) : createCommentVNode("v-if", true),
|
|
125
|
-
createElementVNode("header", {
|
|
126
|
-
class: normalizeClass([unref(ns).e("header"), { "show-close": unref(showClose) }])
|
|
127
|
-
}, [
|
|
128
|
-
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
129
|
-
createElementVNode("span", {
|
|
130
|
-
role: "heading",
|
|
131
|
-
class: normalizeClass(unref(ns).e("title"))
|
|
132
|
-
}, toDisplayString(_ctx.title), 3)
|
|
133
|
-
])
|
|
134
|
-
], 2),
|
|
135
|
-
createElementVNode("div", {
|
|
136
|
-
class: normalizeClass(unref(ns).e("body"))
|
|
137
|
-
}, [
|
|
138
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
139
|
-
createElementVNode("span", null, toDisplayString(_ctx.description), 1)
|
|
140
|
-
])
|
|
141
|
-
], 2),
|
|
142
|
-
createElementVNode("footer", {
|
|
143
|
-
class: normalizeClass(unref(ns).e("footer"))
|
|
144
|
-
}, [
|
|
145
|
-
createElementVNode("div", {
|
|
146
|
-
class: normalizeClass(unref(ns).b("indicators"))
|
|
147
|
-
}, [
|
|
148
|
-
unref(tourSlots).indicators ? (openBlock(), createBlock(resolveDynamicComponent(unref(tourSlots).indicators), {
|
|
149
|
-
key: 0,
|
|
150
|
-
current: unref(current),
|
|
151
|
-
total: unref(total)
|
|
152
|
-
}, null, 8, ["current", "total"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(total), (item, index) => {
|
|
153
|
-
return openBlock(), createElementBlock("span", {
|
|
154
|
-
key: item,
|
|
155
|
-
class: normalizeClass([unref(ns).b("indicator"), unref(ns).is("active", index === unref(current))])
|
|
156
|
-
}, null, 2);
|
|
157
|
-
}), 128))
|
|
158
|
-
], 2),
|
|
159
|
-
createElementVNode("div", {
|
|
160
|
-
class: normalizeClass(unref(ns).b("buttons"))
|
|
161
|
-
}, [
|
|
162
|
-
unref(current) > 0 ? (openBlock(), createBlock(unref(ElButton), mergeProps({
|
|
163
|
-
key: 0,
|
|
164
|
-
size: "small",
|
|
165
|
-
type: unref(mergedType)
|
|
166
|
-
}, filterButtonProps(_ctx.prevButtonProps), { onClick: onPrev }), {
|
|
167
|
-
default: withCtx(() => {
|
|
168
|
-
var _a, _b;
|
|
169
|
-
return [
|
|
170
|
-
createTextVNode(toDisplayString((_b = (_a = _ctx.prevButtonProps) == null ? void 0 : _a.children) != null ? _b : unref(t)("el.tour.previous")), 1)
|
|
171
|
-
];
|
|
172
|
-
}),
|
|
173
|
-
_: 1
|
|
174
|
-
}, 16, ["type"])) : createCommentVNode("v-if", true),
|
|
175
|
-
unref(current) <= unref(total) - 1 ? (openBlock(), createBlock(unref(ElButton), mergeProps({
|
|
176
|
-
key: 1,
|
|
177
|
-
size: "small",
|
|
178
|
-
type: unref(mergedType) === "primary" ? "default" : "primary"
|
|
179
|
-
}, filterButtonProps(_ctx.nextButtonProps), { onClick: onNext }), {
|
|
180
|
-
default: withCtx(() => {
|
|
181
|
-
var _a, _b;
|
|
182
|
-
return [
|
|
183
|
-
createTextVNode(toDisplayString((_b = (_a = _ctx.nextButtonProps) == null ? void 0 : _a.children) != null ? _b : unref(current) === unref(total) - 1 ? unref(t)("el.tour.finish") : unref(t)("el.tour.next")), 1)
|
|
184
|
-
];
|
|
185
|
-
}),
|
|
186
|
-
_: 1
|
|
187
|
-
}, 16, ["type"])) : createCommentVNode("v-if", true)
|
|
188
|
-
], 2)
|
|
189
|
-
], 2)
|
|
190
|
-
], 64);
|
|
191
|
-
};
|
|
5
|
+
const tourStepProps = buildProps({
|
|
6
|
+
target: {
|
|
7
|
+
type: definePropType([String, Object, Function])
|
|
8
|
+
},
|
|
9
|
+
title: String,
|
|
10
|
+
description: String,
|
|
11
|
+
showClose: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: void 0
|
|
14
|
+
},
|
|
15
|
+
closeIcon: {
|
|
16
|
+
type: iconPropType
|
|
17
|
+
},
|
|
18
|
+
showArrow: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: void 0
|
|
21
|
+
},
|
|
22
|
+
placement: tourContentProps.placement,
|
|
23
|
+
mask: {
|
|
24
|
+
type: definePropType([Boolean, Object]),
|
|
25
|
+
default: void 0
|
|
26
|
+
},
|
|
27
|
+
contentStyle: {
|
|
28
|
+
type: definePropType([Object])
|
|
29
|
+
},
|
|
30
|
+
prevButtonProps: {
|
|
31
|
+
type: definePropType(Object)
|
|
32
|
+
},
|
|
33
|
+
nextButtonProps: {
|
|
34
|
+
type: definePropType(Object)
|
|
35
|
+
},
|
|
36
|
+
scrollIntoViewOptions: {
|
|
37
|
+
type: definePropType([Boolean, Object]),
|
|
38
|
+
default: void 0
|
|
39
|
+
},
|
|
40
|
+
type: {
|
|
41
|
+
type: definePropType(String)
|
|
192
42
|
}
|
|
193
43
|
});
|
|
194
|
-
|
|
44
|
+
const tourStepEmits = {
|
|
45
|
+
close: () => true
|
|
46
|
+
};
|
|
195
47
|
|
|
196
|
-
export {
|
|
48
|
+
export { tourStepEmits, tourStepProps };
|
|
197
49
|
//# sourceMappingURL=step2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step2.mjs","sources":["../../../../../../packages/components/tour/src/step.
|
|
1
|
+
{"version":3,"file":"step2.mjs","sources":["../../../../../../packages/components/tour/src/step.ts"],"sourcesContent":["import { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { tourContentProps } from './content'\n\nimport type {\n CSSProperties,\n ExtractPropTypes,\n __ExtractPublicPropTypes,\n} from 'vue'\nimport type { TourBtnProps, TourMask } from './types'\n\nexport const tourStepProps = buildProps({\n /**\n * @description get the element the guide card points to. empty makes it show in center of screen\n */\n target: {\n type: definePropType<\n string | HTMLElement | (() => HTMLElement | null) | null\n >([String, Object, Function]),\n },\n /**\n * @description the title of the tour content\n */\n title: String,\n /**\n * @description description\n */\n description: String,\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n },\n /**\n * @description whether to show the arrow\n */\n showArrow: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description position of the guide card relative to the target element\n */\n placement: tourContentProps.placement,\n /**\n * @description whether to enable masking, change mask style and fill color by pass custom props\n */\n mask: {\n type: definePropType<TourMask>([Boolean, Object]),\n default: undefined,\n },\n /**\n * @description custom style for content\n */\n contentStyle: {\n type: definePropType<CSSProperties>([Object]),\n },\n /**\n * @description properties of the previous button\n */\n prevButtonProps: {\n type: definePropType<TourBtnProps>(Object),\n },\n /**\n * @description properties of the Next button\n */\n nextButtonProps: {\n type: definePropType<TourBtnProps>(Object),\n },\n /**\n * @description support pass custom scrollIntoView options\n */\n scrollIntoViewOptions: {\n type: definePropType<boolean | ScrollIntoViewOptions>([Boolean, Object]),\n default: undefined,\n },\n /**\n * @description type, affects the background color and text color\n */\n type: {\n type: definePropType<'default' | 'primary'>(String),\n },\n})\n\nexport type TourStepProps = ExtractPropTypes<typeof tourStepProps>\nexport type TourStepPropsPublic = __ExtractPublicPropTypes<typeof tourStepProps>\n\nexport const tourStepEmits = {\n close: () => true,\n}\nexport type TourStepEmits = typeof tourStepEmits\n"],"names":[],"mappings":";;;;AAEY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;AACpD,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE,gBAAgB,CAAC,SAAS;AACvC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC3C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAClC,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,qBAAqB,EAAE;AACzB,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC3C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch, useSlots, provide, openBlock, createElementBlock, Fragment, createVNode, unref, withCtx, createElementVNode, mergeProps, normalizeStyle, createBlock, renderSlot, createCommentVNode } from 'vue';
|
|
2
2
|
import { useVModel } from '@vueuse/core';
|
|
3
3
|
import { ElTeleport } from '../../teleport/index.mjs';
|
|
4
|
-
import ElTourMask from './
|
|
4
|
+
import ElTourMask from './mask2.mjs';
|
|
5
5
|
import ElTourContent from './content.mjs';
|
|
6
6
|
import ElTourSteps from './steps.mjs';
|
|
7
7
|
import { tourProps, tourEmits } from './tour.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Tree from './src/
|
|
1
|
+
import Tree from './src/tree2.mjs';
|
|
2
2
|
export { NODE_INSTANCE_INJECTION_KEY, ROOT_TREE_INJECTION_KEY, TREE_NODE_MAP_INJECTION_KEY } from './src/tokens.mjs';
|
|
3
|
-
export { treeEmits } from './src/
|
|
3
|
+
export { treeEmits } from './src/tree.mjs';
|
|
4
4
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
5
5
|
|
|
6
6
|
const ElTree = withInstall(Tree);
|
|
@@ -1,339 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import TreeStore from './model/tree-store.mjs';
|
|
3
|
-
import { getNodeKey, handleCurrentChange } from './model/util.mjs';
|
|
4
|
-
import ElTreeNode from './tree-node.mjs';
|
|
5
|
-
import { useNodeExpandEventBroadcast } from './model/useNodeExpandEventBroadcast.mjs';
|
|
6
|
-
import { useDragNodeHandler } from './model/useDragNode.mjs';
|
|
7
|
-
import { useKeydown } from './model/useKeydown.mjs';
|
|
8
|
-
import { ROOT_TREE_INJECTION_KEY } from './tokens.mjs';
|
|
9
|
-
import { isEqual } from 'lodash-unified';
|
|
10
|
-
import { treeEmits } from './tree2.mjs';
|
|
11
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
12
|
-
import { definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
13
|
-
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
|
14
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
15
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
16
|
-
import { formItemContextKey } from '../../form/src/constants.mjs';
|
|
1
|
+
import { isBoolean } from '../../../utils/types.mjs';
|
|
17
2
|
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
nodeKey: String,
|
|
34
|
-
checkStrictly: Boolean,
|
|
35
|
-
defaultExpandAll: Boolean,
|
|
36
|
-
expandOnClickNode: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: true
|
|
39
|
-
},
|
|
40
|
-
checkOnClickNode: Boolean,
|
|
41
|
-
checkOnClickLeaf: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: true
|
|
44
|
-
},
|
|
45
|
-
checkDescendants: Boolean,
|
|
46
|
-
autoExpandParent: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: true
|
|
49
|
-
},
|
|
50
|
-
defaultCheckedKeys: Array,
|
|
51
|
-
defaultExpandedKeys: Array,
|
|
52
|
-
currentNodeKey: [String, Number],
|
|
53
|
-
renderContent: {
|
|
54
|
-
type: definePropType(Function)
|
|
55
|
-
},
|
|
56
|
-
showCheckbox: Boolean,
|
|
57
|
-
draggable: Boolean,
|
|
58
|
-
allowDrag: {
|
|
59
|
-
type: definePropType(Function)
|
|
60
|
-
},
|
|
61
|
-
allowDrop: {
|
|
62
|
-
type: definePropType(Function)
|
|
63
|
-
},
|
|
64
|
-
props: {
|
|
65
|
-
type: Object,
|
|
66
|
-
default: () => ({
|
|
67
|
-
children: "children",
|
|
68
|
-
label: "label",
|
|
69
|
-
disabled: "disabled"
|
|
70
|
-
})
|
|
71
|
-
},
|
|
72
|
-
lazy: Boolean,
|
|
73
|
-
highlightCurrent: Boolean,
|
|
74
|
-
load: Function,
|
|
75
|
-
filterNodeMethod: Function,
|
|
76
|
-
accordion: Boolean,
|
|
77
|
-
indent: {
|
|
78
|
-
type: Number,
|
|
79
|
-
default: 18
|
|
80
|
-
},
|
|
81
|
-
icon: {
|
|
82
|
-
type: iconPropType
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
emits: treeEmits,
|
|
86
|
-
setup(props, ctx) {
|
|
87
|
-
const { t } = useLocale();
|
|
88
|
-
const ns = useNamespace("tree");
|
|
89
|
-
const store = ref(new TreeStore({
|
|
90
|
-
key: props.nodeKey,
|
|
91
|
-
data: props.data,
|
|
92
|
-
lazy: props.lazy,
|
|
93
|
-
props: props.props,
|
|
94
|
-
load: props.load,
|
|
95
|
-
currentNodeKey: props.currentNodeKey,
|
|
96
|
-
checkStrictly: props.checkStrictly,
|
|
97
|
-
checkDescendants: props.checkDescendants,
|
|
98
|
-
defaultCheckedKeys: props.defaultCheckedKeys,
|
|
99
|
-
defaultExpandedKeys: props.defaultExpandedKeys,
|
|
100
|
-
autoExpandParent: props.autoExpandParent,
|
|
101
|
-
defaultExpandAll: props.defaultExpandAll,
|
|
102
|
-
filterNodeMethod: props.filterNodeMethod
|
|
103
|
-
}));
|
|
104
|
-
store.value.initialize();
|
|
105
|
-
const root = ref(store.value.root);
|
|
106
|
-
const currentNode = ref(null);
|
|
107
|
-
const el$ = ref(null);
|
|
108
|
-
const dropIndicator$ = ref(null);
|
|
109
|
-
const { broadcastExpanded } = useNodeExpandEventBroadcast(props);
|
|
110
|
-
const { dragState } = useDragNodeHandler({
|
|
111
|
-
props,
|
|
112
|
-
ctx,
|
|
113
|
-
el$,
|
|
114
|
-
dropIndicator$,
|
|
115
|
-
store
|
|
116
|
-
});
|
|
117
|
-
useKeydown({ el$ }, store);
|
|
118
|
-
const instance = getCurrentInstance();
|
|
119
|
-
const isSelectTree = computed(() => {
|
|
120
|
-
let parent = instance == null ? void 0 : instance.parent;
|
|
121
|
-
while (parent) {
|
|
122
|
-
if (parent.type.name === "ElTreeSelect") {
|
|
123
|
-
return true;
|
|
124
|
-
}
|
|
125
|
-
parent = parent.parent;
|
|
126
|
-
}
|
|
127
|
-
return false;
|
|
128
|
-
});
|
|
129
|
-
const isEmpty = computed(() => {
|
|
130
|
-
const { childNodes } = root.value;
|
|
131
|
-
return (!childNodes || childNodes.length === 0 || childNodes.every(({ visible }) => !visible)) && !isSelectTree.value;
|
|
132
|
-
});
|
|
133
|
-
watch(() => props.currentNodeKey, (newVal) => {
|
|
134
|
-
store.value.setCurrentNodeKey(newVal != null ? newVal : null);
|
|
135
|
-
});
|
|
136
|
-
watch(() => props.defaultCheckedKeys, (newVal, oldVal) => {
|
|
137
|
-
if (isEqual(newVal, oldVal))
|
|
138
|
-
return;
|
|
139
|
-
store.value.setDefaultCheckedKey(newVal != null ? newVal : []);
|
|
140
|
-
});
|
|
141
|
-
watch(() => props.defaultExpandedKeys, (newVal) => {
|
|
142
|
-
store.value.setDefaultExpandedKeys(newVal != null ? newVal : []);
|
|
143
|
-
});
|
|
144
|
-
watch(() => props.data, (newVal) => {
|
|
145
|
-
store.value.setData(newVal);
|
|
146
|
-
}, { deep: true });
|
|
147
|
-
watch(() => props.checkStrictly, (newVal) => {
|
|
148
|
-
store.value.checkStrictly = newVal;
|
|
149
|
-
});
|
|
150
|
-
const filter = (value) => {
|
|
151
|
-
if (!props.filterNodeMethod)
|
|
152
|
-
throw new Error("[Tree] filterNodeMethod is required when filter");
|
|
153
|
-
store.value.filter(value);
|
|
154
|
-
};
|
|
155
|
-
const getNodeKey$1 = (node) => {
|
|
156
|
-
return getNodeKey(props.nodeKey, node.data);
|
|
157
|
-
};
|
|
158
|
-
const getNodePath = (data) => {
|
|
159
|
-
if (!props.nodeKey)
|
|
160
|
-
throw new Error("[Tree] nodeKey is required in getNodePath");
|
|
161
|
-
const node = store.value.getNode(data);
|
|
162
|
-
if (!node)
|
|
163
|
-
return [];
|
|
164
|
-
const path = [node.data];
|
|
165
|
-
let parent = node.parent;
|
|
166
|
-
while (parent && parent !== root.value) {
|
|
167
|
-
path.push(parent.data);
|
|
168
|
-
parent = parent.parent;
|
|
169
|
-
}
|
|
170
|
-
return path.reverse();
|
|
171
|
-
};
|
|
172
|
-
const getCheckedNodes = (leafOnly, includeHalfChecked) => {
|
|
173
|
-
return store.value.getCheckedNodes(leafOnly, includeHalfChecked);
|
|
174
|
-
};
|
|
175
|
-
const getCheckedKeys = (leafOnly) => {
|
|
176
|
-
return store.value.getCheckedKeys(leafOnly);
|
|
177
|
-
};
|
|
178
|
-
const getCurrentNode = () => {
|
|
179
|
-
const currentNode2 = store.value.getCurrentNode();
|
|
180
|
-
return currentNode2 ? currentNode2.data : null;
|
|
181
|
-
};
|
|
182
|
-
const getCurrentKey = () => {
|
|
183
|
-
if (!props.nodeKey)
|
|
184
|
-
throw new Error("[Tree] nodeKey is required in getCurrentKey");
|
|
185
|
-
const currentNode2 = getCurrentNode();
|
|
186
|
-
return currentNode2 ? currentNode2[props.nodeKey] : null;
|
|
187
|
-
};
|
|
188
|
-
const setCheckedNodes = (nodes, leafOnly) => {
|
|
189
|
-
if (!props.nodeKey)
|
|
190
|
-
throw new Error("[Tree] nodeKey is required in setCheckedNodes");
|
|
191
|
-
store.value.setCheckedNodes(nodes, leafOnly);
|
|
192
|
-
};
|
|
193
|
-
const setCheckedKeys = (keys, leafOnly) => {
|
|
194
|
-
if (!props.nodeKey)
|
|
195
|
-
throw new Error("[Tree] nodeKey is required in setCheckedKeys");
|
|
196
|
-
store.value.setCheckedKeys(keys, leafOnly);
|
|
197
|
-
};
|
|
198
|
-
const setChecked = (data, checked, deep) => {
|
|
199
|
-
store.value.setChecked(data, checked, deep);
|
|
200
|
-
};
|
|
201
|
-
const getHalfCheckedNodes = () => {
|
|
202
|
-
return store.value.getHalfCheckedNodes();
|
|
203
|
-
};
|
|
204
|
-
const getHalfCheckedKeys = () => {
|
|
205
|
-
return store.value.getHalfCheckedKeys();
|
|
206
|
-
};
|
|
207
|
-
const setCurrentNode = (node, shouldAutoExpandParent = true) => {
|
|
208
|
-
if (!props.nodeKey)
|
|
209
|
-
throw new Error("[Tree] nodeKey is required in setCurrentNode");
|
|
210
|
-
handleCurrentChange(store, ctx.emit, () => {
|
|
211
|
-
broadcastExpanded(node);
|
|
212
|
-
store.value.setUserCurrentNode(node, shouldAutoExpandParent);
|
|
213
|
-
});
|
|
214
|
-
};
|
|
215
|
-
const setCurrentKey = (key = null, shouldAutoExpandParent = true) => {
|
|
216
|
-
if (!props.nodeKey)
|
|
217
|
-
throw new Error("[Tree] nodeKey is required in setCurrentKey");
|
|
218
|
-
handleCurrentChange(store, ctx.emit, () => {
|
|
219
|
-
broadcastExpanded();
|
|
220
|
-
store.value.setCurrentNodeKey(key, shouldAutoExpandParent);
|
|
221
|
-
});
|
|
222
|
-
};
|
|
223
|
-
const getNode = (data) => {
|
|
224
|
-
return store.value.getNode(data);
|
|
225
|
-
};
|
|
226
|
-
const remove = (data) => {
|
|
227
|
-
store.value.remove(data);
|
|
228
|
-
};
|
|
229
|
-
const append = (data, parentNode) => {
|
|
230
|
-
store.value.append(data, parentNode);
|
|
231
|
-
};
|
|
232
|
-
const insertBefore = (data, refNode) => {
|
|
233
|
-
store.value.insertBefore(data, refNode);
|
|
234
|
-
};
|
|
235
|
-
const insertAfter = (data, refNode) => {
|
|
236
|
-
store.value.insertAfter(data, refNode);
|
|
237
|
-
};
|
|
238
|
-
const handleNodeExpand = (nodeData, node, instance2) => {
|
|
239
|
-
broadcastExpanded(node);
|
|
240
|
-
ctx.emit("node-expand", nodeData, node, instance2);
|
|
241
|
-
};
|
|
242
|
-
const updateKeyChildren = (key, data) => {
|
|
243
|
-
if (!props.nodeKey)
|
|
244
|
-
throw new Error("[Tree] nodeKey is required in updateKeyChild");
|
|
245
|
-
store.value.updateChildren(key, data);
|
|
246
|
-
};
|
|
247
|
-
provide(ROOT_TREE_INJECTION_KEY, {
|
|
248
|
-
ctx,
|
|
249
|
-
props,
|
|
250
|
-
store,
|
|
251
|
-
root,
|
|
252
|
-
currentNode,
|
|
253
|
-
instance
|
|
254
|
-
});
|
|
255
|
-
provide(formItemContextKey, void 0);
|
|
256
|
-
return {
|
|
257
|
-
ns,
|
|
258
|
-
store,
|
|
259
|
-
root,
|
|
260
|
-
currentNode,
|
|
261
|
-
dragState,
|
|
262
|
-
el$,
|
|
263
|
-
dropIndicator$,
|
|
264
|
-
isEmpty,
|
|
265
|
-
filter,
|
|
266
|
-
getNodeKey: getNodeKey$1,
|
|
267
|
-
getNodePath,
|
|
268
|
-
getCheckedNodes,
|
|
269
|
-
getCheckedKeys,
|
|
270
|
-
getCurrentNode,
|
|
271
|
-
getCurrentKey,
|
|
272
|
-
setCheckedNodes,
|
|
273
|
-
setCheckedKeys,
|
|
274
|
-
setChecked,
|
|
275
|
-
getHalfCheckedNodes,
|
|
276
|
-
getHalfCheckedKeys,
|
|
277
|
-
setCurrentNode,
|
|
278
|
-
setCurrentKey,
|
|
279
|
-
t,
|
|
280
|
-
getNode,
|
|
281
|
-
remove,
|
|
282
|
-
append,
|
|
283
|
-
insertBefore,
|
|
284
|
-
insertAfter,
|
|
285
|
-
handleNodeExpand,
|
|
286
|
-
updateKeyChildren
|
|
287
|
-
};
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
291
|
-
const _component_el_tree_node = resolveComponent("el-tree-node");
|
|
292
|
-
return openBlock(), createElementBlock("div", {
|
|
293
|
-
ref: "el$",
|
|
294
|
-
class: normalizeClass([
|
|
295
|
-
_ctx.ns.b(),
|
|
296
|
-
_ctx.ns.is("dragging", !!_ctx.dragState.draggingNode),
|
|
297
|
-
_ctx.ns.is("drop-not-allow", !_ctx.dragState.allowDrop),
|
|
298
|
-
_ctx.ns.is("drop-inner", _ctx.dragState.dropType === "inner"),
|
|
299
|
-
{ [_ctx.ns.m("highlight-current")]: _ctx.highlightCurrent }
|
|
300
|
-
]),
|
|
301
|
-
role: "tree"
|
|
302
|
-
}, [
|
|
303
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.root.childNodes, (child) => {
|
|
304
|
-
return openBlock(), createBlock(_component_el_tree_node, {
|
|
305
|
-
key: _ctx.getNodeKey(child),
|
|
306
|
-
node: child,
|
|
307
|
-
props: _ctx.props,
|
|
308
|
-
accordion: _ctx.accordion,
|
|
309
|
-
"render-after-expand": _ctx.renderAfterExpand,
|
|
310
|
-
"show-checkbox": _ctx.showCheckbox,
|
|
311
|
-
"render-content": _ctx.renderContent,
|
|
312
|
-
onNodeExpand: _ctx.handleNodeExpand
|
|
313
|
-
}, null, 8, ["node", "props", "accordion", "render-after-expand", "show-checkbox", "render-content", "onNodeExpand"]);
|
|
314
|
-
}), 128)),
|
|
315
|
-
_ctx.isEmpty ? (openBlock(), createElementBlock("div", {
|
|
316
|
-
key: 0,
|
|
317
|
-
class: normalizeClass(_ctx.ns.e("empty-block"))
|
|
318
|
-
}, [
|
|
319
|
-
renderSlot(_ctx.$slots, "empty", {}, () => {
|
|
320
|
-
var _a;
|
|
321
|
-
return [
|
|
322
|
-
createElementVNode("span", {
|
|
323
|
-
class: normalizeClass(_ctx.ns.e("empty-text"))
|
|
324
|
-
}, toDisplayString((_a = _ctx.emptyText) != null ? _a : _ctx.t("el.tree.emptyText")), 3)
|
|
325
|
-
];
|
|
326
|
-
})
|
|
327
|
-
], 2)) : createCommentVNode("v-if", true),
|
|
328
|
-
withDirectives(createElementVNode("div", {
|
|
329
|
-
ref: "dropIndicator$",
|
|
330
|
-
class: normalizeClass(_ctx.ns.e("drop-indicator"))
|
|
331
|
-
}, null, 2), [
|
|
332
|
-
[vShow, _ctx.dragState.showDropIndicator]
|
|
333
|
-
])
|
|
334
|
-
], 2);
|
|
335
|
-
}
|
|
336
|
-
var Tree = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "tree.vue"]]);
|
|
3
|
+
const treeEmits = {
|
|
4
|
+
"check-change": (data, checked, indeterminate) => data && isBoolean(checked) && isBoolean(indeterminate),
|
|
5
|
+
"current-change": (data, node) => true,
|
|
6
|
+
"node-click": (data, node, nodeInstance, evt) => data && node && evt instanceof Event,
|
|
7
|
+
"node-contextmenu": (evt, data, node, nodeInstance) => evt instanceof Event && data && node,
|
|
8
|
+
"node-collapse": (data, node, nodeInstance) => data && node,
|
|
9
|
+
"node-expand": (data, node, nodeInstance) => data && node,
|
|
10
|
+
check: (data, checkedInfo) => data && checkedInfo,
|
|
11
|
+
"node-drag-start": (node, evt) => node && evt,
|
|
12
|
+
"node-drag-end": (draggingNode, dropNode, dropType, evt) => draggingNode && evt,
|
|
13
|
+
"node-drop": (draggingNode, dropNode, dropType, evt) => draggingNode && dropNode && evt,
|
|
14
|
+
"node-drag-leave": (draggingNode, oldDropNode, evt) => draggingNode && oldDropNode && evt,
|
|
15
|
+
"node-drag-enter": (draggingNode, dropNode, evt) => draggingNode && dropNode && evt,
|
|
16
|
+
"node-drag-over": (draggingNode, dropNode, evt) => draggingNode && dropNode && evt
|
|
17
|
+
};
|
|
337
18
|
|
|
338
|
-
export {
|
|
19
|
+
export { treeEmits };
|
|
339
20
|
//# sourceMappingURL=tree.mjs.map
|