@element-plus/nightly 0.0.20250108 → 0.0.20250109
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.full.js +30 -23
- 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 +30 -23
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/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 +190 -0
- package/dist/locale/no.min.js +2 -0
- package/dist/locale/no.min.js.map +1 -0
- package/dist/locale/no.min.mjs +2 -0
- package/dist/locale/no.min.mjs.map +1 -0
- package/dist/locale/no.mjs +182 -0
- 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/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-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 +118 -25
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +25 -118
- 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 +192 -42
- package/es/components/anchor/src/anchor.mjs.map +1 -1
- package/es/components/anchor/src/anchor2.mjs +42 -192
- package/es/components/anchor/src/anchor2.mjs.map +1 -1
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/src/button-group.mjs +1 -1
- package/es/components/button/src/button.mjs +77 -56
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +56 -77
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +42 -20
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +20 -42
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel-item.mjs +69 -7
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +7 -69
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -1
- package/es/components/cascader-panel/src/menu.mjs +1 -1
- package/es/components/cascader-panel/src/node.mjs +206 -115
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs +115 -206
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/src/store.mjs +1 -1
- package/es/components/checkbox/index.mjs +4 -4
- package/es/components/checkbox/src/checkbox-button.mjs +1 -1
- package/es/components/checkbox/src/checkbox-group.mjs +29 -71
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group2.mjs +71 -29
- package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.mjs +119 -59
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +59 -119
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/collapse/index.mjs +4 -4
- package/es/components/collapse/src/collapse-item.mjs +90 -18
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +18 -90
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/collapse/src/collapse.mjs +16 -28
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse2.mjs +28 -16
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/color-picker/index.mjs +2 -2
- package/es/components/color-picker/src/color-picker.mjs +402 -40
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +40 -402
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/color-picker/src/components/predefine.mjs +1 -1
- package/es/components/dialog/src/use-dialog.mjs +2 -0
- package/es/components/dialog/src/use-dialog.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +178 -26
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +26 -178
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/form/index.mjs +2 -2
- package/es/components/form/src/form-item.mjs +319 -47
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item2.mjs +47 -319
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/src/image.mjs +232 -64
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +64 -232
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/image-viewer/index.mjs +2 -2
- package/es/components/image-viewer/src/image-viewer.mjs +412 -45
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +45 -412
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +28 -28
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +431 -102
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +102 -431
- package/es/components/input/src/input2.mjs.map +1 -1
- 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/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +2 -2
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item-group.mjs +34 -4
- package/es/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group2.mjs +4 -34
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- 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/prev.mjs +35 -17
- package/es/components/pagination/src/components/prev.mjs.map +1 -1
- package/es/components/pagination/src/components/prev2.mjs +17 -35
- package/es/components/pagination/src/components/prev2.mjs.map +1 -1
- package/es/components/pagination/src/components/total.mjs +6 -26
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +26 -6
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +3 -3
- package/es/components/popconfirm/src/popconfirm.mjs +1 -1
- package/es/components/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +207 -53
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +53 -207
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-group.mjs +34 -65
- package/es/components/radio/src/radio-group.mjs.map +1 -1
- package/es/components/radio/src/radio-group2.mjs +65 -34
- package/es/components/radio/src/radio-group2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +62 -28
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +28 -62
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +2 -2
- package/es/components/scrollbar/src/bar.mjs +64 -10
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar2.mjs +10 -64
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.mjs +55 -170
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +170 -55
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +4 -4
- package/es/components/skeleton/src/skeleton-item.mjs +17 -22
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +22 -17
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton.mjs +21 -48
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +48 -21
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/slider/index.mjs +2 -2
- package/es/components/slider/src/slider.mjs +238 -88
- package/es/components/slider/src/slider.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +88 -238
- package/es/components/slider/src/slider2.mjs.map +1 -1
- package/es/components/statistic/index.mjs +2 -2
- package/es/components/statistic/src/statistic.mjs +25 -69
- package/es/components/statistic/src/statistic.mjs.map +1 -1
- package/es/components/statistic/src/statistic2.mjs +69 -25
- package/es/components/statistic/src/statistic2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +1 -1
- package/es/components/tabs/src/tab-bar.mjs +7 -95
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +95 -7
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/text/src/text2.mjs +25 -20
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +2 -2
- package/es/components/tooltip-v2/src/arrow.mjs +37 -21
- package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
- package/es/components/tooltip-v2/src/arrow2.mjs +21 -37
- package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +2 -2
- package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
- package/es/components/tooltip-v2/src/trigger.mjs +12 -89
- package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
- package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
- package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/tour.mjs +153 -68
- package/es/components/tour/src/tour.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +68 -153
- package/es/components/tour/src/tour2.mjs.map +1 -1
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +1 -1
- package/es/components/upload/src/upload-dragger.mjs +47 -10
- package/es/components/upload/src/upload-dragger.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger2.mjs +10 -47
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +27 -210
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +210 -27
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/index.mjs +28 -28
- package/es/locale/lang/no.d.ts +179 -0
- package/es/locale/lang/no.mjs +181 -0
- package/es/locale/lang/no.mjs.map +1 -0
- 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 +118 -26
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +26 -118
- 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 +191 -42
- package/lib/components/anchor/src/anchor.js.map +1 -1
- package/lib/components/anchor/src/anchor2.js +42 -191
- package/lib/components/anchor/src/anchor2.js.map +1 -1
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/src/button-group.js +1 -1
- package/lib/components/button/src/button.js +77 -59
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +59 -77
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +42 -20
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +20 -42
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel-item.js +69 -7
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +7 -69
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +1 -1
- package/lib/components/cascader-panel/src/menu.js +1 -1
- package/lib/components/cascader-panel/src/node.js +206 -115
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js +115 -206
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/src/store.js +1 -1
- package/lib/components/checkbox/index.js +4 -4
- package/lib/components/checkbox/src/checkbox-button.js +1 -1
- package/lib/components/checkbox/src/checkbox-group.js +30 -71
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group2.js +71 -30
- package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.js +119 -60
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +60 -119
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/collapse/index.js +4 -4
- package/lib/components/collapse/src/collapse-item.js +90 -18
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +18 -90
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/collapse/src/collapse.js +18 -28
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse2.js +28 -18
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/color-picker/index.js +2 -2
- package/lib/components/color-picker/src/color-picker.js +400 -40
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +40 -400
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/color-picker/src/components/predefine.js +1 -1
- package/lib/components/dialog/src/use-dialog.js +2 -0
- package/lib/components/dialog/src/use-dialog.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +178 -27
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +27 -178
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/form/index.js +2 -2
- package/lib/components/form/src/form-item.js +323 -48
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item2.js +48 -323
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/src/image.js +231 -64
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +64 -231
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/image-viewer/index.js +2 -2
- package/lib/components/image-viewer/src/image-viewer.js +412 -46
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +46 -412
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +28 -28
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +430 -102
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +102 -430
- package/lib/components/input/src/input2.js.map +1 -1
- 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/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +2 -2
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item-group.js +34 -4
- package/lib/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/components/menu/src/menu-item-group2.js +4 -34
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- 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/prev.js +35 -18
- package/lib/components/pagination/src/components/prev.js.map +1 -1
- package/lib/components/pagination/src/components/prev2.js +18 -35
- package/lib/components/pagination/src/components/prev2.js.map +1 -1
- package/lib/components/pagination/src/components/total.js +6 -26
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +26 -6
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +3 -3
- package/lib/components/popconfirm/src/popconfirm.js +1 -1
- package/lib/components/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +207 -53
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js +53 -207
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-group.js +35 -65
- package/lib/components/radio/src/radio-group.js.map +1 -1
- package/lib/components/radio/src/radio-group2.js +65 -35
- package/lib/components/radio/src/radio-group2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +62 -30
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +30 -62
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/src/bar.js +64 -10
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar2.js +10 -64
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.js +56 -170
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +170 -56
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/skeleton/index.js +4 -4
- package/lib/components/skeleton/src/skeleton-item.js +17 -22
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +22 -17
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton.js +21 -48
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +48 -21
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/slider/index.js +2 -2
- package/lib/components/slider/src/slider.js +238 -89
- package/lib/components/slider/src/slider.js.map +1 -1
- package/lib/components/slider/src/slider2.js +89 -238
- package/lib/components/slider/src/slider2.js.map +1 -1
- package/lib/components/statistic/index.js +2 -2
- package/lib/components/statistic/src/statistic.js +25 -69
- package/lib/components/statistic/src/statistic.js.map +1 -1
- package/lib/components/statistic/src/statistic2.js +69 -25
- package/lib/components/statistic/src/statistic2.js.map +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/tabs/src/tab-bar.js +7 -95
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +95 -7
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/text/src/text2.js +24 -19
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +2 -2
- package/lib/components/tooltip-v2/src/arrow.js +37 -22
- package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
- package/lib/components/tooltip-v2/src/arrow2.js +22 -37
- package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +2 -2
- package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
- package/lib/components/tooltip-v2/src/trigger.js +12 -89
- package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
- package/lib/components/tooltip-v2/src/trigger2.js +89 -12
- package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/tour.js +152 -68
- package/lib/components/tour/src/tour.js.map +1 -1
- package/lib/components/tour/src/tour2.js +68 -152
- package/lib/components/tour/src/tour2.js.map +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-content2.js +1 -1
- package/lib/components/upload/src/upload-dragger.js +47 -11
- package/lib/components/upload/src/upload-dragger.js.map +1 -1
- package/lib/components/upload/src/upload-dragger2.js +11 -47
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +27 -210
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +210 -27
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/index.js +28 -28
- package/lib/locale/lang/no.d.ts +179 -0
- package/lib/locale/lang/no.js +185 -0
- package/lib/locale/lang/no.js.map +1 -0
- 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":"bar.js","sources":["../../../../../../packages/components/scrollbar/src/bar.
|
1
|
+
{"version":3,"file":"bar.js","sources":["../../../../../../packages/components/scrollbar/src/bar.vue"],"sourcesContent":["<template>\n <thumb :move=\"moveX\" :ratio=\"ratioX\" :size=\"sizeWidth\" :always=\"always\" />\n <thumb\n :move=\"moveY\"\n :ratio=\"ratioY\"\n :size=\"sizeHeight\"\n vertical\n :always=\"always\"\n />\n</template>\n<script lang=\"ts\" setup>\nimport { inject, ref } from 'vue'\nimport { GAP } from './util'\nimport Thumb from './thumb.vue'\nimport { barProps } from './bar'\nimport { scrollbarContextKey } from './constants'\n\nconst props = defineProps(barProps)\n\nconst scrollbar = inject(scrollbarContextKey)\n\nconst moveX = ref(0)\nconst moveY = ref(0)\nconst sizeWidth = ref('')\nconst sizeHeight = ref('')\nconst ratioY = ref(1)\nconst ratioX = ref(1)\n\nconst handleScroll = (wrap: HTMLDivElement) => {\n if (wrap) {\n const offsetHeight = wrap.offsetHeight - GAP\n const offsetWidth = wrap.offsetWidth - GAP\n\n moveY.value = ((wrap.scrollTop * 100) / offsetHeight) * ratioY.value\n moveX.value = ((wrap.scrollLeft * 100) / offsetWidth) * ratioX.value\n }\n}\n\nconst update = () => {\n const wrap = scrollbar?.wrapElement\n if (!wrap) return\n const offsetHeight = wrap.offsetHeight - GAP\n const offsetWidth = wrap.offsetWidth - GAP\n\n const originalHeight = offsetHeight ** 2 / wrap.scrollHeight\n const originalWidth = offsetWidth ** 2 / wrap.scrollWidth\n const height = Math.max(originalHeight, props.minSize)\n const width = Math.max(originalWidth, props.minSize)\n\n ratioY.value =\n originalHeight /\n (offsetHeight - originalHeight) /\n (height / (offsetHeight - height))\n ratioX.value =\n originalWidth /\n (offsetWidth - originalWidth) /\n (width / (offsetWidth - width))\n\n sizeHeight.value = height + GAP < offsetHeight ? `${height}px` : ''\n sizeWidth.value = width + GAP < offsetWidth ? `${width}px` : ''\n}\n\ndefineExpose({\n handleScroll,\n update,\n})\n</script>\n"],"names":["inject","scrollbarContextKey","ref","GAP"],"mappings":";;;;;;;;;;;;;;;;AAmBA,IAAM,MAAA,SAAA,GAAYA,WAAOC,6BAAmB,CAAA,CAAA;AAE5C,IAAM,MAAA,KAAA,GAAQC,QAAI,CAAC,CAAA,CAAA;AACnB,IAAM,MAAA,KAAA,GAAQA,QAAI,CAAC,CAAA,CAAA;AACnB,IAAM,MAAA,SAAA,GAAYA,QAAI,EAAE,CAAA,CAAA;AACxB,IAAM,MAAA,UAAA,GAAaA,QAAI,EAAE,CAAA,CAAA;AACzB,IAAM,MAAA,MAAA,GAASA,QAAI,CAAC,CAAA,CAAA;AACpB,IAAM,MAAA,MAAA,GAASA,QAAI,CAAC,CAAA,CAAA;AAEpB,IAAM,MAAA,YAAA,GAAe,CAAC,IAAyB,KAAA;AAC7C,MAAA,IAAI,IAAM,EAAA;AACR,QAAM,MAAA,YAAA,GAAe,KAAK,YAAe,GAAAC,QAAA,CAAA;AACzC,QAAM,MAAA,WAAA,GAAc,KAAK,WAAc,GAAAA,QAAA,CAAA;AAEvC,QAAA,KAAA,CAAM,KAAU,GAAA,IAAA,CAAK,SAAY,GAAA,GAAA,GAAO,eAAgB,MAAO,CAAA,KAAA,CAAA;AAC/D,QAAA,KAAA,CAAM,KAAU,GAAA,IAAA,CAAK,UAAa,GAAA,GAAA,GAAO,cAAe,MAAO,CAAA,KAAA,CAAA;AAAA,OACjE;AAAA,KACF,CAAA;AAEA,IAAA,MAAM,SAAS,MAAM;AACnB,MAAA,MAAM,OAAO,SAAW,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,SAAA,CAAA,WAAA,CAAA;AACxB,MAAA,IAAI,CAAC,IAAM;AACX,QAAM,OAAA;AACN,MAAM,MAAA,YAAA,OAAmB,CAAc,YAAA,GAAAA,QAAA,CAAA;AAEvC,MAAM,MAAA,WAAA,GAAA,IAAiC,CAAA,WAAA,GAAAA,QAAA,CAAI;AAC3C,MAAM,MAAA,cAAA,GAA+B,YAAA,IAAA,CAAA,GAAS,IAAA,CAAA,YAAA,CAAA;AAC9C,MAAA,MAAM,aAAS,GAAS,WAAA,IAAA,CAAA,QAAsB,WAAO,CAAA;AACrD,MAAA,MAAM,MAAQ,GAAA,IAAK,CAAI,GAAA,CAAA,cAAe,OAAa,CAAA,OAAA,CAAA,CAAA;AAEnD,MAAA,MAAA,KACE,GAAA,IAAA,CAAA,GAAA,CAAA,aACgB,EAAA,KAAA,CAAA,OAAA,CAAA,CAAA;AAElB,MAAA,MAAA,CAAO,KACL,GAAA,cAAA,IACe,YAAA,GAAA,cAAA,CAAA,UACL,IAAc,YAAA,GAAA,MAAA,CAAA,CAAA,CAAA;AAE1B,MAAA,MAAA,CAAA,qBAA4B,IAAA,WAAqB,GAAA,aAAgB,CAAA,IAAA,KAAA,IAAA,WAAA,GAAA,KAAA,CAAA,CAAA,CAAA;AACjE,MAAA,UAAU,SAAgB,MAAA,GAAAA,QAAA,GAAoB,YAAA,GAAG,SAAY,CAAA,EAAA,CAAA,GAAA,EAAA,CAAA;AAAA,MAC/D,SAAA,CAAA,KAAA,GAAA,KAAA,GAAAA,QAAA,GAAA,WAAA,GAAA,CAAA,EAAA,KAAA,CAAA,EAAA,CAAA,GAAA,EAAA,CAAA;AAEA,KAAa,CAAA;AAAA,IACX,MAAA,CAAA;AAAA,MACA,YAAA;AAAA,MACD,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -2,72 +2,18 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var util = require('./util.js');
|
7
|
-
var thumb = require('./thumb2.js');
|
8
|
-
var bar = require('./bar.js');
|
9
|
-
var constants = require('./constants.js');
|
10
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
11
6
|
|
12
|
-
const
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
const sizeWidth = vue.ref("");
|
21
|
-
const sizeHeight = vue.ref("");
|
22
|
-
const ratioY = vue.ref(1);
|
23
|
-
const ratioX = vue.ref(1);
|
24
|
-
const handleScroll = (wrap) => {
|
25
|
-
if (wrap) {
|
26
|
-
const offsetHeight = wrap.offsetHeight - util.GAP;
|
27
|
-
const offsetWidth = wrap.offsetWidth - util.GAP;
|
28
|
-
moveY.value = wrap.scrollTop * 100 / offsetHeight * ratioY.value;
|
29
|
-
moveX.value = wrap.scrollLeft * 100 / offsetWidth * ratioX.value;
|
30
|
-
}
|
31
|
-
};
|
32
|
-
const update = () => {
|
33
|
-
const wrap = scrollbar == null ? void 0 : scrollbar.wrapElement;
|
34
|
-
if (!wrap)
|
35
|
-
return;
|
36
|
-
const offsetHeight = wrap.offsetHeight - util.GAP;
|
37
|
-
const offsetWidth = wrap.offsetWidth - util.GAP;
|
38
|
-
const originalHeight = offsetHeight ** 2 / wrap.scrollHeight;
|
39
|
-
const originalWidth = offsetWidth ** 2 / wrap.scrollWidth;
|
40
|
-
const height = Math.max(originalHeight, props.minSize);
|
41
|
-
const width = Math.max(originalWidth, props.minSize);
|
42
|
-
ratioY.value = originalHeight / (offsetHeight - originalHeight) / (height / (offsetHeight - height));
|
43
|
-
ratioX.value = originalWidth / (offsetWidth - originalWidth) / (width / (offsetWidth - width));
|
44
|
-
sizeHeight.value = height + util.GAP < offsetHeight ? `${height}px` : "";
|
45
|
-
sizeWidth.value = width + util.GAP < offsetWidth ? `${width}px` : "";
|
46
|
-
};
|
47
|
-
expose({
|
48
|
-
handleScroll,
|
49
|
-
update
|
50
|
-
});
|
51
|
-
return (_ctx, _cache) => {
|
52
|
-
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
53
|
-
vue.createVNode(thumb["default"], {
|
54
|
-
move: moveX.value,
|
55
|
-
ratio: ratioX.value,
|
56
|
-
size: sizeWidth.value,
|
57
|
-
always: _ctx.always
|
58
|
-
}, null, 8, ["move", "ratio", "size", "always"]),
|
59
|
-
vue.createVNode(thumb["default"], {
|
60
|
-
move: moveY.value,
|
61
|
-
ratio: ratioY.value,
|
62
|
-
size: sizeHeight.value,
|
63
|
-
vertical: "",
|
64
|
-
always: _ctx.always
|
65
|
-
}, null, 8, ["move", "ratio", "size", "always"])
|
66
|
-
], 64);
|
67
|
-
};
|
7
|
+
const barProps = runtime.buildProps({
|
8
|
+
always: {
|
9
|
+
type: Boolean,
|
10
|
+
default: true
|
11
|
+
},
|
12
|
+
minSize: {
|
13
|
+
type: Number,
|
14
|
+
required: true
|
68
15
|
}
|
69
16
|
});
|
70
|
-
var Bar = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "bar.vue"]]);
|
71
17
|
|
72
|
-
exports
|
18
|
+
exports.barProps = barProps;
|
73
19
|
//# sourceMappingURL=bar2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bar2.js","sources":["../../../../../../packages/components/scrollbar/src/bar.
|
1
|
+
{"version":3,"file":"bar2.js","sources":["../../../../../../packages/components/scrollbar/src/bar.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Bar from './bar.vue'\n\nexport const barProps = buildProps({\n always: {\n type: Boolean,\n default: true,\n },\n minSize: {\n type: Number,\n required: true,\n },\n} as const)\nexport type BarProps = ExtractPropTypes<typeof barProps>\n\nexport type BarInstance = InstanceType<typeof Bar>\n"],"names":["buildProps"],"mappings":";;;;;;AACY,MAAC,QAAQ,GAAGA,kBAAU,CAAC;AACnC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,CAAC;;;;"}
|
@@ -2,178 +2,64 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var
|
7
|
-
var bar = require('./bar2.js');
|
8
|
-
var constants = require('./constants.js');
|
9
|
-
var scrollbar = require('./scrollbar2.js');
|
10
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
11
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
12
|
-
var style = require('../../../utils/dom/style.js');
|
13
|
-
var shared = require('@vue/shared');
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
6
|
+
var index = require('../../../hooks/use-aria/index.js');
|
14
7
|
var types = require('../../../utils/types.js');
|
15
|
-
var error = require('../../../utils/error.js');
|
16
8
|
|
17
|
-
const
|
18
|
-
|
19
|
-
|
9
|
+
const scrollbarProps = runtime.buildProps({
|
10
|
+
height: {
|
11
|
+
type: [String, Number],
|
12
|
+
default: ""
|
13
|
+
},
|
14
|
+
maxHeight: {
|
15
|
+
type: [String, Number],
|
16
|
+
default: ""
|
17
|
+
},
|
18
|
+
native: {
|
19
|
+
type: Boolean,
|
20
|
+
default: false
|
21
|
+
},
|
22
|
+
wrapStyle: {
|
23
|
+
type: runtime.definePropType([String, Object, Array]),
|
24
|
+
default: ""
|
25
|
+
},
|
26
|
+
wrapClass: {
|
27
|
+
type: [String, Array],
|
28
|
+
default: ""
|
29
|
+
},
|
30
|
+
viewClass: {
|
31
|
+
type: [String, Array],
|
32
|
+
default: ""
|
33
|
+
},
|
34
|
+
viewStyle: {
|
35
|
+
type: [String, Array, Object],
|
36
|
+
default: ""
|
37
|
+
},
|
38
|
+
noresize: Boolean,
|
39
|
+
tag: {
|
40
|
+
type: String,
|
41
|
+
default: "div"
|
42
|
+
},
|
43
|
+
always: Boolean,
|
44
|
+
minSize: {
|
45
|
+
type: Number,
|
46
|
+
default: 20
|
47
|
+
},
|
48
|
+
tabindex: {
|
49
|
+
type: [String, Number],
|
50
|
+
default: void 0
|
51
|
+
},
|
52
|
+
id: String,
|
53
|
+
role: String,
|
54
|
+
...index.useAriaProps(["ariaLabel", "ariaOrientation"])
|
20
55
|
});
|
21
|
-
const
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
const ns = index.useNamespace("scrollbar");
|
28
|
-
let stopResizeObserver = void 0;
|
29
|
-
let stopResizeListener = void 0;
|
30
|
-
let wrapScrollTop = 0;
|
31
|
-
let wrapScrollLeft = 0;
|
32
|
-
const scrollbarRef = vue.ref();
|
33
|
-
const wrapRef = vue.ref();
|
34
|
-
const resizeRef = vue.ref();
|
35
|
-
const barRef = vue.ref();
|
36
|
-
const wrapStyle = vue.computed(() => {
|
37
|
-
const style$1 = {};
|
38
|
-
if (props.height)
|
39
|
-
style$1.height = style.addUnit(props.height);
|
40
|
-
if (props.maxHeight)
|
41
|
-
style$1.maxHeight = style.addUnit(props.maxHeight);
|
42
|
-
return [props.wrapStyle, style$1];
|
43
|
-
});
|
44
|
-
const wrapKls = vue.computed(() => {
|
45
|
-
return [
|
46
|
-
props.wrapClass,
|
47
|
-
ns.e("wrap"),
|
48
|
-
{ [ns.em("wrap", "hidden-default")]: !props.native }
|
49
|
-
];
|
50
|
-
});
|
51
|
-
const resizeKls = vue.computed(() => {
|
52
|
-
return [ns.e("view"), props.viewClass];
|
53
|
-
});
|
54
|
-
const handleScroll = () => {
|
55
|
-
var _a;
|
56
|
-
if (wrapRef.value) {
|
57
|
-
(_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
|
58
|
-
wrapScrollTop = wrapRef.value.scrollTop;
|
59
|
-
wrapScrollLeft = wrapRef.value.scrollLeft;
|
60
|
-
emit("scroll", {
|
61
|
-
scrollTop: wrapRef.value.scrollTop,
|
62
|
-
scrollLeft: wrapRef.value.scrollLeft
|
63
|
-
});
|
64
|
-
}
|
65
|
-
};
|
66
|
-
function scrollTo(arg1, arg2) {
|
67
|
-
if (shared.isObject(arg1)) {
|
68
|
-
wrapRef.value.scrollTo(arg1);
|
69
|
-
} else if (types.isNumber(arg1) && types.isNumber(arg2)) {
|
70
|
-
wrapRef.value.scrollTo(arg1, arg2);
|
71
|
-
}
|
72
|
-
}
|
73
|
-
const setScrollTop = (value) => {
|
74
|
-
if (!types.isNumber(value)) {
|
75
|
-
error.debugWarn(COMPONENT_NAME, "value must be a number");
|
76
|
-
return;
|
77
|
-
}
|
78
|
-
wrapRef.value.scrollTop = value;
|
79
|
-
};
|
80
|
-
const setScrollLeft = (value) => {
|
81
|
-
if (!types.isNumber(value)) {
|
82
|
-
error.debugWarn(COMPONENT_NAME, "value must be a number");
|
83
|
-
return;
|
84
|
-
}
|
85
|
-
wrapRef.value.scrollLeft = value;
|
86
|
-
};
|
87
|
-
const update = () => {
|
88
|
-
var _a;
|
89
|
-
(_a = barRef.value) == null ? void 0 : _a.update();
|
90
|
-
};
|
91
|
-
vue.watch(() => props.noresize, (noresize) => {
|
92
|
-
if (noresize) {
|
93
|
-
stopResizeObserver == null ? void 0 : stopResizeObserver();
|
94
|
-
stopResizeListener == null ? void 0 : stopResizeListener();
|
95
|
-
} else {
|
96
|
-
({ stop: stopResizeObserver } = core.useResizeObserver(resizeRef, update));
|
97
|
-
stopResizeListener = core.useEventListener("resize", update);
|
98
|
-
}
|
99
|
-
}, { immediate: true });
|
100
|
-
vue.watch(() => [props.maxHeight, props.height], () => {
|
101
|
-
if (!props.native)
|
102
|
-
vue.nextTick(() => {
|
103
|
-
var _a;
|
104
|
-
update();
|
105
|
-
if (wrapRef.value) {
|
106
|
-
(_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
|
107
|
-
}
|
108
|
-
});
|
109
|
-
});
|
110
|
-
vue.provide(constants.scrollbarContextKey, vue.reactive({
|
111
|
-
scrollbarElement: scrollbarRef,
|
112
|
-
wrapElement: wrapRef
|
113
|
-
}));
|
114
|
-
vue.onActivated(() => {
|
115
|
-
if (wrapRef.value) {
|
116
|
-
wrapRef.value.scrollTop = wrapScrollTop;
|
117
|
-
wrapRef.value.scrollLeft = wrapScrollLeft;
|
118
|
-
}
|
119
|
-
});
|
120
|
-
vue.onMounted(() => {
|
121
|
-
if (!props.native)
|
122
|
-
vue.nextTick(() => {
|
123
|
-
update();
|
124
|
-
});
|
125
|
-
});
|
126
|
-
vue.onUpdated(() => update());
|
127
|
-
expose({
|
128
|
-
wrapRef,
|
129
|
-
update,
|
130
|
-
scrollTo,
|
131
|
-
setScrollTop,
|
132
|
-
setScrollLeft,
|
133
|
-
handleScroll
|
134
|
-
});
|
135
|
-
return (_ctx, _cache) => {
|
136
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
137
|
-
ref_key: "scrollbarRef",
|
138
|
-
ref: scrollbarRef,
|
139
|
-
class: vue.normalizeClass(vue.unref(ns).b())
|
140
|
-
}, [
|
141
|
-
vue.createElementVNode("div", {
|
142
|
-
ref_key: "wrapRef",
|
143
|
-
ref: wrapRef,
|
144
|
-
class: vue.normalizeClass(vue.unref(wrapKls)),
|
145
|
-
style: vue.normalizeStyle(vue.unref(wrapStyle)),
|
146
|
-
tabindex: _ctx.tabindex,
|
147
|
-
onScroll: handleScroll
|
148
|
-
}, [
|
149
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
|
150
|
-
id: _ctx.id,
|
151
|
-
ref_key: "resizeRef",
|
152
|
-
ref: resizeRef,
|
153
|
-
class: vue.normalizeClass(vue.unref(resizeKls)),
|
154
|
-
style: vue.normalizeStyle(_ctx.viewStyle),
|
155
|
-
role: _ctx.role,
|
156
|
-
"aria-label": _ctx.ariaLabel,
|
157
|
-
"aria-orientation": _ctx.ariaOrientation
|
158
|
-
}, {
|
159
|
-
default: vue.withCtx(() => [
|
160
|
-
vue.renderSlot(_ctx.$slots, "default")
|
161
|
-
]),
|
162
|
-
_: 3
|
163
|
-
}, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
|
164
|
-
], 46, ["tabindex"]),
|
165
|
-
!_ctx.native ? (vue.openBlock(), vue.createBlock(bar["default"], {
|
166
|
-
key: 0,
|
167
|
-
ref_key: "barRef",
|
168
|
-
ref: barRef,
|
169
|
-
always: _ctx.always,
|
170
|
-
"min-size": _ctx.minSize
|
171
|
-
}, null, 8, ["always", "min-size"])) : vue.createCommentVNode("v-if", true)
|
172
|
-
], 2);
|
173
|
-
};
|
174
|
-
}
|
175
|
-
});
|
176
|
-
var Scrollbar = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "scrollbar.vue"]]);
|
56
|
+
const scrollbarEmits = {
|
57
|
+
scroll: ({
|
58
|
+
scrollTop,
|
59
|
+
scrollLeft
|
60
|
+
}) => [scrollTop, scrollLeft].every(types.isNumber)
|
61
|
+
};
|
177
62
|
|
178
|
-
exports
|
63
|
+
exports.scrollbarEmits = scrollbarEmits;
|
64
|
+
exports.scrollbarProps = scrollbarProps;
|
179
65
|
//# sourceMappingURL=scrollbar.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scrollbar.js","sources":["../../../../../../packages/components/scrollbar/src/scrollbar.
|
1
|
+
{"version":3,"file":"scrollbar.js","sources":["../../../../../../packages/components/scrollbar/src/scrollbar.ts"],"sourcesContent":["import { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type Scrollbar from './scrollbar.vue'\n\nexport const scrollbarProps = buildProps({\n /**\n * @description height of scrollbar\n */\n height: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description max height of scrollbar\n */\n maxHeight: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether to use the native scrollbar\n */\n native: {\n type: Boolean,\n default: false,\n },\n /**\n * @description style of wrap\n */\n wrapStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n default: '',\n },\n /**\n * @description class of wrap\n */\n wrapClass: {\n type: [String, Array],\n default: '',\n },\n /**\n * @description class of view\n */\n viewClass: {\n type: [String, Array],\n default: '',\n },\n /**\n * @description style of view\n */\n viewStyle: {\n type: [String, Array, Object],\n default: '',\n },\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能\n /**\n * @description element tag of the view\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description always show\n */\n always: Boolean,\n /**\n * @description minimum size of scrollbar\n */\n minSize: {\n type: Number,\n default: 20,\n },\n /**\n * @description Wrap tabindex\n */\n tabindex: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description id of view\n */\n id: String,\n /**\n * @description role of view\n */\n role: String,\n ...useAriaProps(['ariaLabel', 'ariaOrientation']),\n} as const)\nexport type ScrollbarProps = ExtractPropTypes<typeof scrollbarProps>\n\nexport const scrollbarEmits = {\n scroll: ({\n scrollTop,\n scrollLeft,\n }: {\n scrollTop: number\n scrollLeft: number\n }) => [scrollTop, scrollLeft].every(isNumber),\n}\nexport type ScrollbarEmits = typeof scrollbarEmits\n\nexport type ScrollbarInstance = InstanceType<typeof Scrollbar>\n"],"names":["buildProps","definePropType","useAriaProps","isNumber"],"mappings":";;;;;;;;AAEY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC;AACzB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC;AACzB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC;AACjC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,GAAGC,kBAAY,CAAC,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;AACnD,CAAC,EAAE;AACS,MAAC,cAAc,GAAG;AAC9B,EAAE,MAAM,EAAE,CAAC;AACX,IAAI,SAAS;AACb,IAAI,UAAU;AACd,GAAG,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,KAAK,CAACC,cAAQ,CAAC;AAC/C;;;;;"}
|
@@ -2,64 +2,178 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var
|
5
|
+
var vue = require('vue');
|
6
|
+
var core = require('@vueuse/core');
|
7
|
+
var bar = require('./bar.js');
|
8
|
+
var constants = require('./constants.js');
|
9
|
+
var scrollbar = require('./scrollbar.js');
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
11
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
12
|
+
var style = require('../../../utils/dom/style.js');
|
13
|
+
var shared = require('@vue/shared');
|
7
14
|
var types = require('../../../utils/types.js');
|
15
|
+
var error = require('../../../utils/error.js');
|
8
16
|
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
default: ""
|
13
|
-
},
|
14
|
-
maxHeight: {
|
15
|
-
type: [String, Number],
|
16
|
-
default: ""
|
17
|
-
},
|
18
|
-
native: {
|
19
|
-
type: Boolean,
|
20
|
-
default: false
|
21
|
-
},
|
22
|
-
wrapStyle: {
|
23
|
-
type: runtime.definePropType([String, Object, Array]),
|
24
|
-
default: ""
|
25
|
-
},
|
26
|
-
wrapClass: {
|
27
|
-
type: [String, Array],
|
28
|
-
default: ""
|
29
|
-
},
|
30
|
-
viewClass: {
|
31
|
-
type: [String, Array],
|
32
|
-
default: ""
|
33
|
-
},
|
34
|
-
viewStyle: {
|
35
|
-
type: [String, Array, Object],
|
36
|
-
default: ""
|
37
|
-
},
|
38
|
-
noresize: Boolean,
|
39
|
-
tag: {
|
40
|
-
type: String,
|
41
|
-
default: "div"
|
42
|
-
},
|
43
|
-
always: Boolean,
|
44
|
-
minSize: {
|
45
|
-
type: Number,
|
46
|
-
default: 20
|
47
|
-
},
|
48
|
-
tabindex: {
|
49
|
-
type: [String, Number],
|
50
|
-
default: void 0
|
51
|
-
},
|
52
|
-
id: String,
|
53
|
-
role: String,
|
54
|
-
...index.useAriaProps(["ariaLabel", "ariaOrientation"])
|
17
|
+
const COMPONENT_NAME = "ElScrollbar";
|
18
|
+
const __default__ = vue.defineComponent({
|
19
|
+
name: COMPONENT_NAME
|
55
20
|
});
|
56
|
-
const
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
21
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
22
|
+
...__default__,
|
23
|
+
props: scrollbar.scrollbarProps,
|
24
|
+
emits: scrollbar.scrollbarEmits,
|
25
|
+
setup(__props, { expose, emit }) {
|
26
|
+
const props = __props;
|
27
|
+
const ns = index.useNamespace("scrollbar");
|
28
|
+
let stopResizeObserver = void 0;
|
29
|
+
let stopResizeListener = void 0;
|
30
|
+
let wrapScrollTop = 0;
|
31
|
+
let wrapScrollLeft = 0;
|
32
|
+
const scrollbarRef = vue.ref();
|
33
|
+
const wrapRef = vue.ref();
|
34
|
+
const resizeRef = vue.ref();
|
35
|
+
const barRef = vue.ref();
|
36
|
+
const wrapStyle = vue.computed(() => {
|
37
|
+
const style$1 = {};
|
38
|
+
if (props.height)
|
39
|
+
style$1.height = style.addUnit(props.height);
|
40
|
+
if (props.maxHeight)
|
41
|
+
style$1.maxHeight = style.addUnit(props.maxHeight);
|
42
|
+
return [props.wrapStyle, style$1];
|
43
|
+
});
|
44
|
+
const wrapKls = vue.computed(() => {
|
45
|
+
return [
|
46
|
+
props.wrapClass,
|
47
|
+
ns.e("wrap"),
|
48
|
+
{ [ns.em("wrap", "hidden-default")]: !props.native }
|
49
|
+
];
|
50
|
+
});
|
51
|
+
const resizeKls = vue.computed(() => {
|
52
|
+
return [ns.e("view"), props.viewClass];
|
53
|
+
});
|
54
|
+
const handleScroll = () => {
|
55
|
+
var _a;
|
56
|
+
if (wrapRef.value) {
|
57
|
+
(_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
|
58
|
+
wrapScrollTop = wrapRef.value.scrollTop;
|
59
|
+
wrapScrollLeft = wrapRef.value.scrollLeft;
|
60
|
+
emit("scroll", {
|
61
|
+
scrollTop: wrapRef.value.scrollTop,
|
62
|
+
scrollLeft: wrapRef.value.scrollLeft
|
63
|
+
});
|
64
|
+
}
|
65
|
+
};
|
66
|
+
function scrollTo(arg1, arg2) {
|
67
|
+
if (shared.isObject(arg1)) {
|
68
|
+
wrapRef.value.scrollTo(arg1);
|
69
|
+
} else if (types.isNumber(arg1) && types.isNumber(arg2)) {
|
70
|
+
wrapRef.value.scrollTo(arg1, arg2);
|
71
|
+
}
|
72
|
+
}
|
73
|
+
const setScrollTop = (value) => {
|
74
|
+
if (!types.isNumber(value)) {
|
75
|
+
error.debugWarn(COMPONENT_NAME, "value must be a number");
|
76
|
+
return;
|
77
|
+
}
|
78
|
+
wrapRef.value.scrollTop = value;
|
79
|
+
};
|
80
|
+
const setScrollLeft = (value) => {
|
81
|
+
if (!types.isNumber(value)) {
|
82
|
+
error.debugWarn(COMPONENT_NAME, "value must be a number");
|
83
|
+
return;
|
84
|
+
}
|
85
|
+
wrapRef.value.scrollLeft = value;
|
86
|
+
};
|
87
|
+
const update = () => {
|
88
|
+
var _a;
|
89
|
+
(_a = barRef.value) == null ? void 0 : _a.update();
|
90
|
+
};
|
91
|
+
vue.watch(() => props.noresize, (noresize) => {
|
92
|
+
if (noresize) {
|
93
|
+
stopResizeObserver == null ? void 0 : stopResizeObserver();
|
94
|
+
stopResizeListener == null ? void 0 : stopResizeListener();
|
95
|
+
} else {
|
96
|
+
({ stop: stopResizeObserver } = core.useResizeObserver(resizeRef, update));
|
97
|
+
stopResizeListener = core.useEventListener("resize", update);
|
98
|
+
}
|
99
|
+
}, { immediate: true });
|
100
|
+
vue.watch(() => [props.maxHeight, props.height], () => {
|
101
|
+
if (!props.native)
|
102
|
+
vue.nextTick(() => {
|
103
|
+
var _a;
|
104
|
+
update();
|
105
|
+
if (wrapRef.value) {
|
106
|
+
(_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
|
107
|
+
}
|
108
|
+
});
|
109
|
+
});
|
110
|
+
vue.provide(constants.scrollbarContextKey, vue.reactive({
|
111
|
+
scrollbarElement: scrollbarRef,
|
112
|
+
wrapElement: wrapRef
|
113
|
+
}));
|
114
|
+
vue.onActivated(() => {
|
115
|
+
if (wrapRef.value) {
|
116
|
+
wrapRef.value.scrollTop = wrapScrollTop;
|
117
|
+
wrapRef.value.scrollLeft = wrapScrollLeft;
|
118
|
+
}
|
119
|
+
});
|
120
|
+
vue.onMounted(() => {
|
121
|
+
if (!props.native)
|
122
|
+
vue.nextTick(() => {
|
123
|
+
update();
|
124
|
+
});
|
125
|
+
});
|
126
|
+
vue.onUpdated(() => update());
|
127
|
+
expose({
|
128
|
+
wrapRef,
|
129
|
+
update,
|
130
|
+
scrollTo,
|
131
|
+
setScrollTop,
|
132
|
+
setScrollLeft,
|
133
|
+
handleScroll
|
134
|
+
});
|
135
|
+
return (_ctx, _cache) => {
|
136
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
137
|
+
ref_key: "scrollbarRef",
|
138
|
+
ref: scrollbarRef,
|
139
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
140
|
+
}, [
|
141
|
+
vue.createElementVNode("div", {
|
142
|
+
ref_key: "wrapRef",
|
143
|
+
ref: wrapRef,
|
144
|
+
class: vue.normalizeClass(vue.unref(wrapKls)),
|
145
|
+
style: vue.normalizeStyle(vue.unref(wrapStyle)),
|
146
|
+
tabindex: _ctx.tabindex,
|
147
|
+
onScroll: handleScroll
|
148
|
+
}, [
|
149
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
|
150
|
+
id: _ctx.id,
|
151
|
+
ref_key: "resizeRef",
|
152
|
+
ref: resizeRef,
|
153
|
+
class: vue.normalizeClass(vue.unref(resizeKls)),
|
154
|
+
style: vue.normalizeStyle(_ctx.viewStyle),
|
155
|
+
role: _ctx.role,
|
156
|
+
"aria-label": _ctx.ariaLabel,
|
157
|
+
"aria-orientation": _ctx.ariaOrientation
|
158
|
+
}, {
|
159
|
+
default: vue.withCtx(() => [
|
160
|
+
vue.renderSlot(_ctx.$slots, "default")
|
161
|
+
]),
|
162
|
+
_: 3
|
163
|
+
}, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
|
164
|
+
], 46, ["tabindex"]),
|
165
|
+
!_ctx.native ? (vue.openBlock(), vue.createBlock(bar["default"], {
|
166
|
+
key: 0,
|
167
|
+
ref_key: "barRef",
|
168
|
+
ref: barRef,
|
169
|
+
always: _ctx.always,
|
170
|
+
"min-size": _ctx.minSize
|
171
|
+
}, null, 8, ["always", "min-size"])) : vue.createCommentVNode("v-if", true)
|
172
|
+
], 2);
|
173
|
+
};
|
174
|
+
}
|
175
|
+
});
|
176
|
+
var Scrollbar = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "scrollbar.vue"]]);
|
62
177
|
|
63
|
-
exports
|
64
|
-
exports.scrollbarProps = scrollbarProps;
|
178
|
+
exports["default"] = Scrollbar;
|
65
179
|
//# sourceMappingURL=scrollbar2.js.map
|