@element-plus/nightly 0.0.20220314 → 0.0.20220317
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/README.md +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +683 -669
- package/dist/index.full.min.js +7 -7
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +9 -9
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +681 -671
- 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.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/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/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/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/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/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/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/_virtual/plugin-vue_export-helper.mjs.map +1 -1
- package/es/components/autocomplete/index.d.ts +4 -4
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +4 -4
- package/es/components/carousel/index.d.ts +243 -149
- package/es/components/carousel/index.mjs +7 -5
- package/es/components/carousel/index.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item.d.ts +8 -0
- package/es/components/carousel/src/carousel-item.mjs +13 -0
- package/es/components/carousel/src/carousel-item.mjs.map +1 -0
- package/es/components/carousel/src/carousel-item.vue.d.ts +52 -0
- package/es/components/carousel/src/carousel-item2.mjs +159 -0
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -0
- package/es/components/carousel/src/carousel.d.ts +22 -44
- package/es/components/carousel/src/carousel.mjs +52 -0
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +170 -0
- package/es/components/carousel/src/carousel2.mjs +323 -0
- package/es/components/carousel/src/carousel2.mjs.map +1 -0
- package/es/components/cascader/index.d.ts +6 -6
- package/es/components/cascader/src/index.vue.d.ts +3 -3
- package/es/components/col/src/col.d.ts +37 -37
- package/es/components/dialog/src/dialog.d.ts +1 -1
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/use-dialog.mjs.map +1 -1
- package/es/components/dropdown/index.d.ts +4 -4
- package/es/components/dropdown/src/dropdown.vue.d.ts +4 -4
- package/es/components/form/index.d.ts +26 -20
- package/es/components/form/index.mjs.map +1 -1
- package/es/components/form/src/form-item.d.ts +1 -3
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item.vue.d.ts +3 -3
- package/es/components/form/src/form-item2.mjs +15 -6
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form.d.ts +1 -3
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form.vue.d.ts +6 -7
- package/es/components/form/src/form2.mjs +4 -2
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/form/src/types.d.ts +0 -12
- package/es/components/index.mjs +2 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/input-number/src/input-number2.mjs +5 -0
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs +1 -0
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/menu/src/menu.mjs +1 -1
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/popover/index.d.ts +8 -8
- package/es/components/popover/src/index.vue.d.ts +4 -4
- package/es/components/result/src/result2.mjs +14 -4
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/row/src/row.d.ts +14 -14
- package/es/components/select/index.d.ts +3 -3
- package/es/components/select/src/select.vue.d.ts +3 -3
- package/es/components/select/src/useSelect.d.ts +3 -3
- package/es/components/select-v2/index.d.ts +6 -6
- package/es/components/select-v2/src/select-dropdown.mjs +3 -2
- package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +3 -3
- package/es/components/select-v2/src/useSelect.d.ts +3 -3
- package/es/components/select-v2/src/useSelect.mjs +3 -2
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/table/index.d.ts +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +3 -3
- package/es/components/table/src/table/style-helper.d.ts +1 -1
- package/es/components/table/src/table/style-helper.mjs +3 -3
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table.vue.d.ts +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +3 -3
- package/es/components/tooltip/index.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +1 -1
- package/es/hooks/use-deprecated/index.d.ts +2 -1
- package/es/hooks/use-deprecated/index.mjs +2 -2
- package/es/hooks/use-deprecated/index.mjs.map +1 -1
- package/es/index.mjs +3 -0
- package/es/index.mjs.map +1 -1
- package/es/tokens/carousel.d.ts +28 -0
- package/es/tokens/carousel.mjs +4 -0
- package/es/tokens/carousel.mjs.map +1 -0
- package/es/tokens/form.d.ts +12 -1
- package/es/tokens/form.mjs.map +1 -1
- package/es/tokens/index.d.ts +1 -0
- package/es/tokens/index.mjs +1 -0
- package/es/tokens/index.mjs.map +1 -1
- package/es/utils/types.mjs +5 -1
- package/es/utils/types.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/_virtual/plugin-vue_export-helper.js.map +1 -1
- package/lib/components/autocomplete/index.d.ts +4 -4
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +4 -4
- package/lib/components/carousel/index.d.ts +243 -149
- package/lib/components/carousel/index.js +10 -5
- package/lib/components/carousel/index.js.map +1 -1
- package/lib/components/carousel/src/carousel-item.d.ts +8 -0
- package/lib/components/carousel/src/carousel-item.js +17 -0
- package/lib/components/carousel/src/carousel-item.js.map +1 -0
- package/lib/components/carousel/src/carousel-item.vue.d.ts +52 -0
- package/lib/components/carousel/src/carousel-item2.js +163 -0
- package/lib/components/carousel/src/carousel-item2.js.map +1 -0
- package/lib/components/carousel/src/carousel.d.ts +22 -44
- package/lib/components/carousel/src/carousel.js +56 -0
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +170 -0
- package/lib/components/carousel/src/carousel2.js +327 -0
- package/lib/components/carousel/src/carousel2.js.map +1 -0
- package/lib/components/cascader/index.d.ts +6 -6
- package/lib/components/cascader/src/index.vue.d.ts +3 -3
- package/lib/components/col/src/col.d.ts +37 -37
- package/lib/components/dialog/src/dialog.d.ts +1 -1
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/use-dialog.js.map +1 -1
- package/lib/components/dropdown/index.d.ts +4 -4
- package/lib/components/dropdown/src/dropdown.vue.d.ts +4 -4
- package/lib/components/form/index.d.ts +26 -20
- package/lib/components/form/index.js.map +1 -1
- package/lib/components/form/src/form-item.d.ts +1 -3
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item.vue.d.ts +3 -3
- package/lib/components/form/src/form-item2.js +14 -5
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form.d.ts +1 -3
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form.vue.d.ts +6 -7
- package/lib/components/form/src/form2.js +4 -2
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/form/src/types.d.ts +0 -12
- package/lib/components/index.js +5 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/input-number/src/input-number2.js +5 -0
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js +1 -0
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/menu/src/menu.js +1 -1
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/popover/index.d.ts +8 -8
- package/lib/components/popover/src/index.vue.d.ts +4 -4
- package/lib/components/result/src/result2.js +14 -4
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/row/src/row.d.ts +14 -14
- package/lib/components/select/index.d.ts +3 -3
- package/lib/components/select/src/select.vue.d.ts +3 -3
- package/lib/components/select/src/useSelect.d.ts +3 -3
- package/lib/components/select-v2/index.d.ts +6 -6
- package/lib/components/select-v2/src/select-dropdown.js +3 -2
- package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +3 -3
- package/lib/components/select-v2/src/useSelect.d.ts +3 -3
- package/lib/components/select-v2/src/useSelect.js +3 -2
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/table/index.d.ts +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +3 -3
- package/lib/components/table/src/table/style-helper.d.ts +1 -1
- package/lib/components/table/src/table/style-helper.js +3 -3
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table.vue.d.ts +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +3 -3
- package/lib/components/tooltip/index.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +1 -1
- package/lib/hooks/use-deprecated/index.d.ts +2 -1
- package/lib/hooks/use-deprecated/index.js +2 -2
- package/lib/hooks/use-deprecated/index.js.map +1 -1
- package/lib/index.js +7 -0
- package/lib/index.js.map +1 -1
- package/lib/tokens/carousel.d.ts +28 -0
- package/lib/tokens/carousel.js +8 -0
- package/lib/tokens/carousel.js.map +1 -0
- package/lib/tokens/form.d.ts +12 -1
- package/lib/tokens/form.js.map +1 -1
- package/lib/tokens/index.d.ts +1 -0
- package/lib/tokens/index.js +2 -0
- package/lib/tokens/index.js.map +1 -1
- package/lib/utils/types.js +5 -1
- package/lib/utils/types.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +3 -3
- package/theme-chalk/el-drawer.css +1 -1
- package/theme-chalk/el-table.css +1 -1
- package/theme-chalk/el-upload.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +6 -2
- package/theme-chalk/src/mixins/_var.scss +14 -2
- package/theme-chalk/src/mixins/mixins.scss +2 -0
- package/theme-chalk/src/table.scss +2 -0
- package/theme-chalk/src/upload.scss +3 -3
- package/web-types.json +1 -1
- package/es/components/carousel/src/item.mjs +0 -152
- package/es/components/carousel/src/item.mjs.map +0 -1
- package/es/components/carousel/src/item.vue.d.ts +0 -2
- package/es/components/carousel/src/main.mjs +0 -368
- package/es/components/carousel/src/main.mjs.map +0 -1
- package/es/components/carousel/src/main.vue.d.ts +0 -176
- package/lib/components/carousel/src/item.js +0 -156
- package/lib/components/carousel/src/item.js.map +0 -1
- package/lib/components/carousel/src/item.vue.d.ts +0 -2
- package/lib/components/carousel/src/main.js +0 -372
- package/lib/components/carousel/src/main.js.map +0 -1
- package/lib/components/carousel/src/main.vue.d.ts +0 -176
|
@@ -1,372 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var lodashUnified = require('lodash-unified');
|
|
7
|
-
require('../../../utils/index.js');
|
|
8
|
-
var index = require('../../icon/index.js');
|
|
9
|
-
var iconsVue = require('@element-plus/icons-vue');
|
|
10
|
-
require('../../../hooks/index.js');
|
|
11
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
12
|
-
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
13
|
-
var error = require('../../../utils/error.js');
|
|
14
|
-
var resizeEvent = require('../../../utils/dom/resize-event.js');
|
|
15
|
-
|
|
16
|
-
const _sfc_main = vue.defineComponent({
|
|
17
|
-
name: "ElCarousel",
|
|
18
|
-
components: {
|
|
19
|
-
ElIcon: index.ElIcon,
|
|
20
|
-
ArrowLeft: iconsVue.ArrowLeft,
|
|
21
|
-
ArrowRight: iconsVue.ArrowRight
|
|
22
|
-
},
|
|
23
|
-
props: {
|
|
24
|
-
initialIndex: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default: 0
|
|
27
|
-
},
|
|
28
|
-
height: { type: String, default: "" },
|
|
29
|
-
trigger: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: "hover"
|
|
32
|
-
},
|
|
33
|
-
autoplay: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: true
|
|
36
|
-
},
|
|
37
|
-
interval: {
|
|
38
|
-
type: Number,
|
|
39
|
-
default: 3e3
|
|
40
|
-
},
|
|
41
|
-
indicatorPosition: { type: String, default: "" },
|
|
42
|
-
indicator: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: true
|
|
45
|
-
},
|
|
46
|
-
arrow: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: "hover"
|
|
49
|
-
},
|
|
50
|
-
type: { type: String, default: "" },
|
|
51
|
-
loop: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: true
|
|
54
|
-
},
|
|
55
|
-
direction: {
|
|
56
|
-
type: String,
|
|
57
|
-
default: "horizontal",
|
|
58
|
-
validator(val) {
|
|
59
|
-
return ["horizontal", "vertical"].includes(val);
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
pauseOnHover: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: true
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
emits: ["change"],
|
|
68
|
-
setup(props, { emit }) {
|
|
69
|
-
const ns = index$1.useNamespace("carousel");
|
|
70
|
-
const data = vue.reactive({
|
|
71
|
-
activeIndex: -1,
|
|
72
|
-
containerWidth: 0,
|
|
73
|
-
timer: null,
|
|
74
|
-
hover: false
|
|
75
|
-
});
|
|
76
|
-
const root = vue.ref(null);
|
|
77
|
-
const items = vue.ref([]);
|
|
78
|
-
const arrowDisplay = vue.computed(() => props.arrow !== "never" && props.direction !== "vertical");
|
|
79
|
-
const hasLabel = vue.computed(() => {
|
|
80
|
-
return items.value.some((item) => item.label.toString().length > 0);
|
|
81
|
-
});
|
|
82
|
-
const carouselClasses = vue.computed(() => {
|
|
83
|
-
const classes = [ns.b(), ns.m(props.direction)];
|
|
84
|
-
if (props.type === "card") {
|
|
85
|
-
classes.push(ns.m("card"));
|
|
86
|
-
}
|
|
87
|
-
return classes;
|
|
88
|
-
});
|
|
89
|
-
const indicatorsClasses = vue.computed(() => {
|
|
90
|
-
const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
|
|
91
|
-
if (hasLabel.value) {
|
|
92
|
-
classes.push(ns.em("indicators", "labels"));
|
|
93
|
-
}
|
|
94
|
-
if (props.indicatorPosition === "outside" || props.type === "card") {
|
|
95
|
-
classes.push(ns.em("indicators", "outside"));
|
|
96
|
-
}
|
|
97
|
-
return classes;
|
|
98
|
-
});
|
|
99
|
-
const throttledArrowClick = lodashUnified.throttle((index) => {
|
|
100
|
-
setActiveItem(index);
|
|
101
|
-
}, 300, { trailing: true });
|
|
102
|
-
const throttledIndicatorHover = lodashUnified.throttle((index) => {
|
|
103
|
-
handleIndicatorHover(index);
|
|
104
|
-
}, 300);
|
|
105
|
-
function pauseTimer() {
|
|
106
|
-
if (data.timer) {
|
|
107
|
-
clearInterval(data.timer);
|
|
108
|
-
data.timer = null;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
function startTimer() {
|
|
112
|
-
if (props.interval <= 0 || !props.autoplay || data.timer)
|
|
113
|
-
return;
|
|
114
|
-
data.timer = setInterval(() => playSlides(), props.interval);
|
|
115
|
-
}
|
|
116
|
-
const playSlides = () => {
|
|
117
|
-
if (data.activeIndex < items.value.length - 1) {
|
|
118
|
-
data.activeIndex = data.activeIndex + 1;
|
|
119
|
-
} else if (props.loop) {
|
|
120
|
-
data.activeIndex = 0;
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
function setActiveItem(index) {
|
|
124
|
-
if (typeof index === "string") {
|
|
125
|
-
const filteredItems = items.value.filter((item) => item.name === index);
|
|
126
|
-
if (filteredItems.length > 0) {
|
|
127
|
-
index = items.value.indexOf(filteredItems[0]);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
index = Number(index);
|
|
131
|
-
if (Number.isNaN(index) || index !== Math.floor(index)) {
|
|
132
|
-
error.debugWarn("Carousel", "index must be an integer.");
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
const length = items.value.length;
|
|
136
|
-
const oldIndex = data.activeIndex;
|
|
137
|
-
if (index < 0) {
|
|
138
|
-
data.activeIndex = props.loop ? length - 1 : 0;
|
|
139
|
-
} else if (index >= length) {
|
|
140
|
-
data.activeIndex = props.loop ? 0 : length - 1;
|
|
141
|
-
} else {
|
|
142
|
-
data.activeIndex = index;
|
|
143
|
-
}
|
|
144
|
-
if (oldIndex === data.activeIndex) {
|
|
145
|
-
resetItemPosition(oldIndex);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
function resetItemPosition(oldIndex) {
|
|
149
|
-
items.value.forEach((item, index) => {
|
|
150
|
-
item.translateItem(index, data.activeIndex, oldIndex);
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
function addItem(item) {
|
|
154
|
-
items.value.push(item);
|
|
155
|
-
}
|
|
156
|
-
function removeItem(uid) {
|
|
157
|
-
const index = items.value.findIndex((item) => item.uid === uid);
|
|
158
|
-
if (index !== -1) {
|
|
159
|
-
items.value.splice(index, 1);
|
|
160
|
-
if (data.activeIndex === index)
|
|
161
|
-
next();
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
function itemInStage(item, index) {
|
|
165
|
-
const length = items.value.length;
|
|
166
|
-
if (index === length - 1 && item.inStage && items.value[0].active || item.inStage && items.value[index + 1] && items.value[index + 1].active) {
|
|
167
|
-
return "left";
|
|
168
|
-
} else if (index === 0 && item.inStage && items.value[length - 1].active || item.inStage && items.value[index - 1] && items.value[index - 1].active) {
|
|
169
|
-
return "right";
|
|
170
|
-
}
|
|
171
|
-
return false;
|
|
172
|
-
}
|
|
173
|
-
function handleMouseEnter() {
|
|
174
|
-
data.hover = true;
|
|
175
|
-
if (props.pauseOnHover) {
|
|
176
|
-
pauseTimer();
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
function handleMouseLeave() {
|
|
180
|
-
data.hover = false;
|
|
181
|
-
startTimer();
|
|
182
|
-
}
|
|
183
|
-
function handleButtonEnter(arrow) {
|
|
184
|
-
if (props.direction === "vertical")
|
|
185
|
-
return;
|
|
186
|
-
items.value.forEach((item, index) => {
|
|
187
|
-
if (arrow === itemInStage(item, index)) {
|
|
188
|
-
item.hover = true;
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
function handleButtonLeave() {
|
|
193
|
-
if (props.direction === "vertical")
|
|
194
|
-
return;
|
|
195
|
-
items.value.forEach((item) => {
|
|
196
|
-
item.hover = false;
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
function handleIndicatorClick(index) {
|
|
200
|
-
data.activeIndex = index;
|
|
201
|
-
}
|
|
202
|
-
function handleIndicatorHover(index) {
|
|
203
|
-
if (props.trigger === "hover" && index !== data.activeIndex) {
|
|
204
|
-
data.activeIndex = index;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
function prev() {
|
|
208
|
-
setActiveItem(data.activeIndex - 1);
|
|
209
|
-
}
|
|
210
|
-
function next() {
|
|
211
|
-
setActiveItem(data.activeIndex + 1);
|
|
212
|
-
}
|
|
213
|
-
vue.watch(() => data.activeIndex, (current, prev2) => {
|
|
214
|
-
resetItemPosition(prev2);
|
|
215
|
-
if (prev2 > -1) {
|
|
216
|
-
emit("change", current, prev2);
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
vue.watch(() => props.autoplay, (current) => {
|
|
220
|
-
current ? startTimer() : pauseTimer();
|
|
221
|
-
});
|
|
222
|
-
vue.watch(() => props.loop, () => {
|
|
223
|
-
setActiveItem(data.activeIndex);
|
|
224
|
-
});
|
|
225
|
-
vue.onMounted(() => {
|
|
226
|
-
vue.nextTick(() => {
|
|
227
|
-
resizeEvent.addResizeListener(root.value, resetItemPosition);
|
|
228
|
-
if (props.initialIndex < items.value.length && props.initialIndex >= 0) {
|
|
229
|
-
data.activeIndex = props.initialIndex;
|
|
230
|
-
}
|
|
231
|
-
startTimer();
|
|
232
|
-
});
|
|
233
|
-
});
|
|
234
|
-
vue.onBeforeUnmount(() => {
|
|
235
|
-
if (root.value)
|
|
236
|
-
resizeEvent.removeResizeListener(root.value, resetItemPosition);
|
|
237
|
-
pauseTimer();
|
|
238
|
-
});
|
|
239
|
-
vue.provide("injectCarouselScope", {
|
|
240
|
-
root,
|
|
241
|
-
direction: props.direction,
|
|
242
|
-
type: props.type,
|
|
243
|
-
items,
|
|
244
|
-
loop: props.loop,
|
|
245
|
-
addItem,
|
|
246
|
-
removeItem,
|
|
247
|
-
setActiveItem
|
|
248
|
-
});
|
|
249
|
-
return {
|
|
250
|
-
data,
|
|
251
|
-
props,
|
|
252
|
-
items,
|
|
253
|
-
arrowDisplay,
|
|
254
|
-
carouselClasses,
|
|
255
|
-
indicatorsClasses,
|
|
256
|
-
hasLabel,
|
|
257
|
-
handleMouseEnter,
|
|
258
|
-
handleMouseLeave,
|
|
259
|
-
handleIndicatorClick,
|
|
260
|
-
throttledArrowClick,
|
|
261
|
-
throttledIndicatorHover,
|
|
262
|
-
handleButtonEnter,
|
|
263
|
-
handleButtonLeave,
|
|
264
|
-
prev,
|
|
265
|
-
next,
|
|
266
|
-
setActiveItem,
|
|
267
|
-
root,
|
|
268
|
-
ns
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
});
|
|
272
|
-
const _hoisted_1 = ["onMouseenter", "onClick"];
|
|
273
|
-
const _hoisted_2 = { key: 0 };
|
|
274
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
275
|
-
const _component_arrow_left = vue.resolveComponent("arrow-left");
|
|
276
|
-
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
277
|
-
const _component_arrow_right = vue.resolveComponent("arrow-right");
|
|
278
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
279
|
-
ref: "root",
|
|
280
|
-
class: vue.normalizeClass(_ctx.carouselClasses),
|
|
281
|
-
onMouseenter: _cache[6] || (_cache[6] = vue.withModifiers((...args) => _ctx.handleMouseEnter && _ctx.handleMouseEnter(...args), ["stop"])),
|
|
282
|
-
onMouseleave: _cache[7] || (_cache[7] = vue.withModifiers((...args) => _ctx.handleMouseLeave && _ctx.handleMouseLeave(...args), ["stop"]))
|
|
283
|
-
}, [
|
|
284
|
-
vue.createElementVNode("div", {
|
|
285
|
-
class: vue.normalizeClass(_ctx.ns.e("container")),
|
|
286
|
-
style: vue.normalizeStyle({ height: _ctx.height })
|
|
287
|
-
}, [
|
|
288
|
-
_ctx.arrowDisplay ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
289
|
-
key: 0,
|
|
290
|
-
name: "carousel-arrow-left"
|
|
291
|
-
}, {
|
|
292
|
-
default: vue.withCtx(() => [
|
|
293
|
-
vue.withDirectives(vue.createElementVNode("button", {
|
|
294
|
-
type: "button",
|
|
295
|
-
class: vue.normalizeClass([_ctx.ns.e("arrow"), _ctx.ns.em("arrow", "left")]),
|
|
296
|
-
onMouseenter: _cache[0] || (_cache[0] = ($event) => _ctx.handleButtonEnter("left")),
|
|
297
|
-
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.handleButtonLeave && _ctx.handleButtonLeave(...args)),
|
|
298
|
-
onClick: _cache[2] || (_cache[2] = vue.withModifiers(($event) => _ctx.throttledArrowClick(_ctx.data.activeIndex - 1), ["stop"]))
|
|
299
|
-
}, [
|
|
300
|
-
vue.createVNode(_component_el_icon, null, {
|
|
301
|
-
default: vue.withCtx(() => [
|
|
302
|
-
vue.createVNode(_component_arrow_left)
|
|
303
|
-
]),
|
|
304
|
-
_: 1
|
|
305
|
-
})
|
|
306
|
-
], 34), [
|
|
307
|
-
[
|
|
308
|
-
vue.vShow,
|
|
309
|
-
(_ctx.arrow === "always" || _ctx.data.hover) && (_ctx.props.loop || _ctx.data.activeIndex > 0)
|
|
310
|
-
]
|
|
311
|
-
])
|
|
312
|
-
]),
|
|
313
|
-
_: 1
|
|
314
|
-
})) : vue.createCommentVNode("v-if", true),
|
|
315
|
-
_ctx.arrowDisplay ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
316
|
-
key: 1,
|
|
317
|
-
name: "carousel-arrow-right"
|
|
318
|
-
}, {
|
|
319
|
-
default: vue.withCtx(() => [
|
|
320
|
-
vue.withDirectives(vue.createElementVNode("button", {
|
|
321
|
-
type: "button",
|
|
322
|
-
class: vue.normalizeClass([_ctx.ns.e("arrow"), _ctx.ns.em("arrow", "right")]),
|
|
323
|
-
onMouseenter: _cache[3] || (_cache[3] = ($event) => _ctx.handleButtonEnter("right")),
|
|
324
|
-
onMouseleave: _cache[4] || (_cache[4] = (...args) => _ctx.handleButtonLeave && _ctx.handleButtonLeave(...args)),
|
|
325
|
-
onClick: _cache[5] || (_cache[5] = vue.withModifiers(($event) => _ctx.throttledArrowClick(_ctx.data.activeIndex + 1), ["stop"]))
|
|
326
|
-
}, [
|
|
327
|
-
vue.createVNode(_component_el_icon, null, {
|
|
328
|
-
default: vue.withCtx(() => [
|
|
329
|
-
vue.createVNode(_component_arrow_right)
|
|
330
|
-
]),
|
|
331
|
-
_: 1
|
|
332
|
-
})
|
|
333
|
-
], 34), [
|
|
334
|
-
[
|
|
335
|
-
vue.vShow,
|
|
336
|
-
(_ctx.arrow === "always" || _ctx.data.hover) && (_ctx.props.loop || _ctx.data.activeIndex < _ctx.items.length - 1)
|
|
337
|
-
]
|
|
338
|
-
])
|
|
339
|
-
]),
|
|
340
|
-
_: 1
|
|
341
|
-
})) : vue.createCommentVNode("v-if", true),
|
|
342
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
343
|
-
], 6),
|
|
344
|
-
_ctx.indicatorPosition !== "none" ? (vue.openBlock(), vue.createElementBlock("ul", {
|
|
345
|
-
key: 0,
|
|
346
|
-
class: vue.normalizeClass(_ctx.indicatorsClasses)
|
|
347
|
-
}, [
|
|
348
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.items, (item, index) => {
|
|
349
|
-
return vue.openBlock(), vue.createElementBlock("li", {
|
|
350
|
-
key: index,
|
|
351
|
-
class: vue.normalizeClass([
|
|
352
|
-
_ctx.ns.e("indicator"),
|
|
353
|
-
_ctx.ns.em("indicator", _ctx.direction),
|
|
354
|
-
_ctx.ns.is("active", index === _ctx.data.activeIndex)
|
|
355
|
-
]),
|
|
356
|
-
onMouseenter: ($event) => _ctx.throttledIndicatorHover(index),
|
|
357
|
-
onClick: vue.withModifiers(($event) => _ctx.handleIndicatorClick(index), ["stop"])
|
|
358
|
-
}, [
|
|
359
|
-
vue.createElementVNode("button", {
|
|
360
|
-
class: vue.normalizeClass(_ctx.ns.e("button"))
|
|
361
|
-
}, [
|
|
362
|
-
_ctx.hasLabel ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(item.label), 1)) : vue.createCommentVNode("v-if", true)
|
|
363
|
-
], 2)
|
|
364
|
-
], 42, _hoisted_1);
|
|
365
|
-
}), 128))
|
|
366
|
-
], 2)) : vue.createCommentVNode("v-if", true)
|
|
367
|
-
], 34);
|
|
368
|
-
}
|
|
369
|
-
var Carousel = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render]]);
|
|
370
|
-
|
|
371
|
-
exports["default"] = Carousel;
|
|
372
|
-
//# sourceMappingURL=main.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../../../../../../packages/components/carousel/src/main.vue"],"sourcesContent":["<template>\n <div\n ref=\"root\"\n :class=\"carouselClasses\"\n @mouseenter.stop=\"handleMouseEnter\"\n @mouseleave.stop=\"handleMouseLeave\"\n >\n <div :class=\"ns.e('container')\" :style=\"{ height: height }\">\n <transition v-if=\"arrowDisplay\" name=\"carousel-arrow-left\">\n <button\n v-show=\"\n (arrow === 'always' || data.hover) &&\n (props.loop || data.activeIndex > 0)\n \"\n type=\"button\"\n :class=\"[ns.e('arrow'), ns.em('arrow', 'left')]\"\n @mouseenter=\"handleButtonEnter('left')\"\n @mouseleave=\"handleButtonLeave\"\n @click.stop=\"throttledArrowClick(data.activeIndex - 1)\"\n >\n <el-icon>\n <arrow-left />\n </el-icon>\n </button>\n </transition>\n <transition v-if=\"arrowDisplay\" name=\"carousel-arrow-right\">\n <button\n v-show=\"\n (arrow === 'always' || data.hover) &&\n (props.loop || data.activeIndex < items.length - 1)\n \"\n type=\"button\"\n :class=\"[ns.e('arrow'), ns.em('arrow', 'right')]\"\n @mouseenter=\"handleButtonEnter('right')\"\n @mouseleave=\"handleButtonLeave\"\n @click.stop=\"throttledArrowClick(data.activeIndex + 1)\"\n >\n <el-icon>\n <arrow-right />\n </el-icon>\n </button>\n </transition>\n <slot />\n </div>\n <ul v-if=\"indicatorPosition !== 'none'\" :class=\"indicatorsClasses\">\n <li\n v-for=\"(item, index) in items\"\n :key=\"index\"\n :class=\"[\n ns.e('indicator'),\n ns.em('indicator', direction),\n ns.is('active', index === data.activeIndex),\n ]\"\n @mouseenter=\"throttledIndicatorHover(index)\"\n @click.stop=\"handleIndicatorClick(index)\"\n >\n <button :class=\"ns.e('button')\">\n <span v-if=\"hasLabel\">{{ item.label }}</span>\n </button>\n </li>\n </ul>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport {\n defineComponent,\n reactive,\n computed,\n ref,\n provide,\n onMounted,\n onBeforeUnmount,\n watch,\n nextTick,\n} from 'vue'\nimport { throttle } from 'lodash-unified'\nimport {\n addResizeListener,\n removeResizeListener,\n debugWarn,\n} from '@element-plus/utils'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ArrowLeft, ArrowRight } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\n\nimport type {\n ICarouselProps,\n CarouselItem,\n InjectCarouselScope,\n} from './carousel'\n\nexport default defineComponent({\n name: 'ElCarousel',\n components: {\n ElIcon,\n ArrowLeft,\n ArrowRight,\n },\n props: {\n initialIndex: {\n type: Number,\n default: 0,\n },\n height: { type: String, default: '' },\n trigger: {\n type: String,\n default: 'hover',\n },\n autoplay: {\n type: Boolean,\n default: true,\n },\n interval: {\n type: Number,\n default: 3000,\n },\n indicatorPosition: { type: String, default: '' },\n indicator: {\n type: Boolean,\n default: true,\n },\n arrow: {\n type: String,\n default: 'hover',\n },\n type: { type: String, default: '' },\n loop: {\n type: Boolean,\n default: true,\n },\n direction: {\n type: String,\n default: 'horizontal',\n validator(val: string) {\n return ['horizontal', 'vertical'].includes(val)\n },\n },\n pauseOnHover: {\n type: Boolean,\n default: true,\n },\n },\n emits: ['change'],\n setup(props: ICarouselProps, { emit }) {\n const ns = useNamespace('carousel')\n // data\n const data = reactive<{\n activeIndex: number\n containerWidth: number\n timer: null | ReturnType<typeof setInterval>\n hover: boolean\n }>({\n activeIndex: -1,\n containerWidth: 0,\n timer: null,\n hover: false,\n })\n\n // refs\n const root = ref(null)\n const items = ref<CarouselItem[]>([])\n\n // computed\n const arrowDisplay = computed(\n () => props.arrow !== 'never' && props.direction !== 'vertical'\n )\n\n const hasLabel = computed(() => {\n return items.value.some((item) => item.label.toString().length > 0)\n })\n\n const carouselClasses = computed(() => {\n const classes = [ns.b(), ns.m(props.direction)]\n if (props.type === 'card') {\n classes.push(ns.m('card'))\n }\n return classes\n })\n\n const indicatorsClasses = computed(() => {\n const classes = [ns.e('indicators'), ns.em('indicators', props.direction)]\n if (hasLabel.value) {\n classes.push(ns.em('indicators', 'labels'))\n }\n if (props.indicatorPosition === 'outside' || props.type === 'card') {\n classes.push(ns.em('indicators', 'outside'))\n }\n return classes\n })\n\n // methods\n const throttledArrowClick = throttle(\n (index) => {\n setActiveItem(index)\n },\n 300,\n { trailing: true }\n )\n\n const throttledIndicatorHover = throttle((index) => {\n handleIndicatorHover(index)\n }, 300)\n\n function pauseTimer() {\n if (data.timer) {\n clearInterval(data.timer)\n data.timer = null\n }\n }\n\n function startTimer() {\n if (props.interval <= 0 || !props.autoplay || data.timer) return\n data.timer = setInterval(() => playSlides(), props.interval)\n }\n\n const playSlides = () => {\n if (data.activeIndex < items.value.length - 1) {\n data.activeIndex = data.activeIndex + 1\n } else if (props.loop) {\n data.activeIndex = 0\n }\n }\n\n function setActiveItem(index) {\n if (typeof index === 'string') {\n const filteredItems = items.value.filter((item) => item.name === index)\n if (filteredItems.length > 0) {\n index = items.value.indexOf(filteredItems[0])\n }\n }\n index = Number(index)\n if (Number.isNaN(index) || index !== Math.floor(index)) {\n debugWarn('Carousel', 'index must be an integer.')\n return\n }\n const length = items.value.length\n const oldIndex = data.activeIndex\n if (index < 0) {\n data.activeIndex = props.loop ? length - 1 : 0\n } else if (index >= length) {\n data.activeIndex = props.loop ? 0 : length - 1\n } else {\n data.activeIndex = index\n }\n if (oldIndex === data.activeIndex) {\n resetItemPosition(oldIndex)\n }\n }\n\n function resetItemPosition(oldIndex) {\n items.value.forEach((item, index) => {\n item.translateItem(index, data.activeIndex, oldIndex)\n })\n }\n\n function addItem(item) {\n items.value.push(item)\n }\n\n function removeItem(uid) {\n const index = items.value.findIndex((item) => item.uid === uid)\n if (index !== -1) {\n items.value.splice(index, 1)\n if (data.activeIndex === index) next()\n }\n }\n\n function itemInStage(item, index) {\n const length = items.value.length\n if (\n (index === length - 1 && item.inStage && items.value[0].active) ||\n (item.inStage &&\n items.value[index + 1] &&\n items.value[index + 1].active)\n ) {\n return 'left'\n } else if (\n (index === 0 && item.inStage && items.value[length - 1].active) ||\n (item.inStage &&\n items.value[index - 1] &&\n items.value[index - 1].active)\n ) {\n return 'right'\n }\n return false\n }\n\n function handleMouseEnter() {\n data.hover = true\n if (props.pauseOnHover) {\n pauseTimer()\n }\n }\n\n function handleMouseLeave() {\n data.hover = false\n startTimer()\n }\n\n function handleButtonEnter(arrow) {\n if (props.direction === 'vertical') return\n items.value.forEach((item, index) => {\n if (arrow === itemInStage(item, index)) {\n item.hover = true\n }\n })\n }\n\n function handleButtonLeave() {\n if (props.direction === 'vertical') return\n items.value.forEach((item) => {\n item.hover = false\n })\n }\n\n function handleIndicatorClick(index) {\n data.activeIndex = index\n }\n\n function handleIndicatorHover(index) {\n if (props.trigger === 'hover' && index !== data.activeIndex) {\n data.activeIndex = index\n }\n }\n\n function prev() {\n setActiveItem(data.activeIndex - 1)\n }\n\n function next() {\n setActiveItem(data.activeIndex + 1)\n }\n\n // watch\n watch(\n () => data.activeIndex,\n (current, prev) => {\n resetItemPosition(prev)\n if (prev > -1) {\n emit('change', current, prev)\n }\n }\n )\n watch(\n () => props.autoplay,\n (current) => {\n current ? startTimer() : pauseTimer()\n }\n )\n watch(\n () => props.loop,\n () => {\n setActiveItem(data.activeIndex)\n }\n )\n\n // lifecycle\n onMounted(() => {\n nextTick(() => {\n addResizeListener(root.value, resetItemPosition)\n if (\n props.initialIndex < items.value.length &&\n props.initialIndex >= 0\n ) {\n data.activeIndex = props.initialIndex\n }\n startTimer()\n })\n })\n\n onBeforeUnmount(() => {\n if (root.value) removeResizeListener(root.value, resetItemPosition)\n pauseTimer()\n })\n\n // provide\n provide<InjectCarouselScope>('injectCarouselScope', {\n root,\n direction: props.direction,\n type: props.type,\n items,\n loop: props.loop,\n addItem,\n removeItem,\n setActiveItem,\n })\n\n return {\n data,\n props,\n items,\n\n arrowDisplay,\n carouselClasses,\n indicatorsClasses,\n hasLabel,\n\n handleMouseEnter,\n handleMouseLeave,\n handleIndicatorClick,\n throttledArrowClick,\n throttledIndicatorHover,\n handleButtonEnter,\n handleButtonLeave,\n\n prev,\n next,\n setActiveItem,\n\n root,\n ns,\n }\n },\n})\n</script>\n"],"names":["defineComponent","ElIcon","ArrowLeft","ArrowRight","useNamespace","reactive","ref","computed","throttle","debugWarn","watch","onMounted","nextTick","addResizeListener","onBeforeUnmount","removeResizeListener","provide","_createElementBlock","_normalizeClass","_createElementVNode","_normalizeStyle","_openBlock","_createBlock","_Transition","_withDirectives","_withModifiers","_createVNode","_withCtx","_renderSlot","_Fragment","_renderList","_toDisplayString","_createCommentVNode"],"mappings":";;;;;;;;;;;;;;;AA4FA,MAAK,YAAaA,mBAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,YAAA;AAAA,EACN,UAAY,EAAA;AAAA,YACVC,YAAA;AAAA,eACAC,kBAAA;AAAA,gBACAC,mBAAA;AAAA,GAAA;AAAA,EAEF,KAAO,EAAA;AAAA,IACL,YAAc,EAAA;AAAA,MACZ,IAAM,EAAA,MAAA;AAAA,MACN,OAAS,EAAA,CAAA;AAAA,KAAA;AAAA,IAEX,MAAQ,EAAA,EAAE,IAAM,EAAA,MAAA,EAAQ,OAAS,EAAA,EAAA,EAAA;AAAA,IACjC,OAAS,EAAA;AAAA,MACP,IAAM,EAAA,MAAA;AAAA,MACN,OAAS,EAAA,OAAA;AAAA,KAAA;AAAA,IAEX,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,OAAA;AAAA,MACN,OAAS,EAAA,IAAA;AAAA,KAAA;AAAA,IAEX,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,MAAA;AAAA,MACN,OAAS,EAAA,GAAA;AAAA,KAAA;AAAA,IAEX,iBAAmB,EAAA,EAAE,IAAM,EAAA,MAAA,EAAQ,OAAS,EAAA,EAAA,EAAA;AAAA,IAC5C,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,OAAA;AAAA,MACN,OAAS,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AAE,CAAA,IAAA,CAAA,EAAA,CAAG,CAAC,CAAA,QAAA,CAAA,CAAA;AAAA,WAAA,EAAA;YACN,IAAZ,CAAA,QAAA,IAAAG,aAAA,EAAA,EAAAJ,sBAAA,CAA6C,MAApB,EAAA,UAAA,EAAAc,mBAAA,CAAA,IAAA,CAAK,KAAK,CAAA,EAAA,CAAA,CAAA,IAAAC,sBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;;;;;;;;;;;"}
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import type { ICarouselProps } from './carousel';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
initialIndex: {
|
|
5
|
-
type: NumberConstructor;
|
|
6
|
-
default: number;
|
|
7
|
-
};
|
|
8
|
-
height: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
trigger: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
autoplay: {
|
|
17
|
-
type: BooleanConstructor;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
|
-
interval: {
|
|
21
|
-
type: NumberConstructor;
|
|
22
|
-
default: number;
|
|
23
|
-
};
|
|
24
|
-
indicatorPosition: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
indicator: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
arrow: {
|
|
33
|
-
type: StringConstructor;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
type: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
loop: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
direction: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
validator(val: string): boolean;
|
|
48
|
-
};
|
|
49
|
-
pauseOnHover: {
|
|
50
|
-
type: BooleanConstructor;
|
|
51
|
-
default: boolean;
|
|
52
|
-
};
|
|
53
|
-
}, {
|
|
54
|
-
data: {
|
|
55
|
-
activeIndex: number;
|
|
56
|
-
containerWidth: number;
|
|
57
|
-
timer: {
|
|
58
|
-
hasRef: () => boolean;
|
|
59
|
-
refresh: () => NodeJS.Timer;
|
|
60
|
-
[Symbol.toPrimitive]: () => number;
|
|
61
|
-
ref: () => NodeJS.Timer;
|
|
62
|
-
unref: () => NodeJS.Timer;
|
|
63
|
-
} | null;
|
|
64
|
-
hover: boolean;
|
|
65
|
-
};
|
|
66
|
-
props: ICarouselProps;
|
|
67
|
-
items: import("vue").Ref<{
|
|
68
|
-
uid: number;
|
|
69
|
-
translateItem: (index: number, activeIndex: number, oldIndex: number) => void;
|
|
70
|
-
name: string;
|
|
71
|
-
label: string | number;
|
|
72
|
-
key: string;
|
|
73
|
-
hover: boolean;
|
|
74
|
-
translate: number;
|
|
75
|
-
scale: number;
|
|
76
|
-
active: boolean;
|
|
77
|
-
ready: boolean;
|
|
78
|
-
inStage: boolean;
|
|
79
|
-
animating: boolean;
|
|
80
|
-
}[]>;
|
|
81
|
-
arrowDisplay: import("vue").ComputedRef<boolean>;
|
|
82
|
-
carouselClasses: import("vue").ComputedRef<string[]>;
|
|
83
|
-
indicatorsClasses: import("vue").ComputedRef<string[]>;
|
|
84
|
-
hasLabel: import("vue").ComputedRef<boolean>;
|
|
85
|
-
handleMouseEnter: () => void;
|
|
86
|
-
handleMouseLeave: () => void;
|
|
87
|
-
handleIndicatorClick: (index: any) => void;
|
|
88
|
-
throttledArrowClick: import("lodash").DebouncedFunc<(index: any) => void>;
|
|
89
|
-
throttledIndicatorHover: import("lodash").DebouncedFunc<(index: any) => void>;
|
|
90
|
-
handleButtonEnter: (arrow: any) => void;
|
|
91
|
-
handleButtonLeave: () => void;
|
|
92
|
-
prev: () => void;
|
|
93
|
-
next: () => void;
|
|
94
|
-
setActiveItem: (index: any) => void;
|
|
95
|
-
root: import("vue").Ref<null>;
|
|
96
|
-
ns: {
|
|
97
|
-
namespace: import("vue").ComputedRef<string>;
|
|
98
|
-
b: (blockSuffix?: string) => string;
|
|
99
|
-
e: (element?: string | undefined) => string;
|
|
100
|
-
m: (modifier?: string | undefined) => string;
|
|
101
|
-
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
102
|
-
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
103
|
-
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
104
|
-
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
105
|
-
is: {
|
|
106
|
-
(name: string, state: boolean | undefined): string;
|
|
107
|
-
(name: string): string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
111
|
-
initialIndex: {
|
|
112
|
-
type: NumberConstructor;
|
|
113
|
-
default: number;
|
|
114
|
-
};
|
|
115
|
-
height: {
|
|
116
|
-
type: StringConstructor;
|
|
117
|
-
default: string;
|
|
118
|
-
};
|
|
119
|
-
trigger: {
|
|
120
|
-
type: StringConstructor;
|
|
121
|
-
default: string;
|
|
122
|
-
};
|
|
123
|
-
autoplay: {
|
|
124
|
-
type: BooleanConstructor;
|
|
125
|
-
default: boolean;
|
|
126
|
-
};
|
|
127
|
-
interval: {
|
|
128
|
-
type: NumberConstructor;
|
|
129
|
-
default: number;
|
|
130
|
-
};
|
|
131
|
-
indicatorPosition: {
|
|
132
|
-
type: StringConstructor;
|
|
133
|
-
default: string;
|
|
134
|
-
};
|
|
135
|
-
indicator: {
|
|
136
|
-
type: BooleanConstructor;
|
|
137
|
-
default: boolean;
|
|
138
|
-
};
|
|
139
|
-
arrow: {
|
|
140
|
-
type: StringConstructor;
|
|
141
|
-
default: string;
|
|
142
|
-
};
|
|
143
|
-
type: {
|
|
144
|
-
type: StringConstructor;
|
|
145
|
-
default: string;
|
|
146
|
-
};
|
|
147
|
-
loop: {
|
|
148
|
-
type: BooleanConstructor;
|
|
149
|
-
default: boolean;
|
|
150
|
-
};
|
|
151
|
-
direction: {
|
|
152
|
-
type: StringConstructor;
|
|
153
|
-
default: string;
|
|
154
|
-
validator(val: string): boolean;
|
|
155
|
-
};
|
|
156
|
-
pauseOnHover: {
|
|
157
|
-
type: BooleanConstructor;
|
|
158
|
-
default: boolean;
|
|
159
|
-
};
|
|
160
|
-
}>> & {
|
|
161
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
162
|
-
}, {
|
|
163
|
-
type: string;
|
|
164
|
-
height: string;
|
|
165
|
-
direction: string;
|
|
166
|
-
trigger: string;
|
|
167
|
-
indicator: boolean;
|
|
168
|
-
initialIndex: number;
|
|
169
|
-
autoplay: boolean;
|
|
170
|
-
interval: number;
|
|
171
|
-
indicatorPosition: string;
|
|
172
|
-
arrow: string;
|
|
173
|
-
loop: boolean;
|
|
174
|
-
pauseOnHover: boolean;
|
|
175
|
-
}>;
|
|
176
|
-
export default _default;
|