@element-plus/nightly 0.0.20220124 → 0.0.20220128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +711 -601
- package/dist/index.full.min.js +11 -11
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11 -11
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +711 -601
- 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/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/components/avatar/index.d.ts +1 -1
- package/es/components/avatar/src/avatar.vue.d.ts +1 -1
- package/es/components/avatar/src/avatar2.mjs +3 -3
- package/es/components/avatar/src/avatar2.mjs.map +1 -1
- package/es/components/carousel/index.d.ts +11 -0
- package/es/components/carousel/src/item.mjs +17 -13
- package/es/components/carousel/src/item.mjs.map +1 -1
- package/es/components/carousel/src/main.mjs +25 -23
- package/es/components/carousel/src/main.mjs.map +1 -1
- package/es/components/carousel/src/main.vue.d.ts +11 -0
- package/es/components/cascader/index.d.ts +4 -0
- package/es/components/cascader/src/index.vue.d.ts +2 -0
- package/es/components/checkbox/index.d.ts +3 -3
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
- package/es/components/checkbox/src/checkbox.vue.d.ts +1 -1
- package/es/components/checkbox/src/useCheckbox.d.ts +1 -1
- package/es/components/checkbox/src/useCheckbox.mjs +2 -2
- package/es/components/checkbox/src/useCheckbox.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +11 -0
- package/es/components/drawer/src/drawer.vue.d.ts +11 -0
- package/es/components/drawer/src/drawer2.mjs +33 -29
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/empty/src/img-empty.mjs +13 -13
- package/es/components/empty/src/img-empty.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +3 -4
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/image-viewer/index.d.ts +1 -1
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +34 -23
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- package/es/components/message-box/src/index.mjs +5 -2
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/message-box/src/index.vue.d.ts +1 -0
- package/es/components/pagination/src/components/jumper.mjs +6 -3
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.mjs +7 -3
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +3 -0
- package/es/components/pagination/src/components/total.mjs +10 -4
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total.vue.d.ts +1 -0
- package/es/components/pagination/src/pagination.mjs +12 -1
- package/es/components/pagination/src/pagination.mjs.map +1 -1
- package/es/components/popover/index.d.ts +0 -6
- package/es/components/popover/src/index.vue.d.ts +0 -3
- package/es/components/popover/src/popover.d.ts +0 -1
- package/es/components/popover/src/popover.mjs +0 -4
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/rate/index.d.ts +8 -8
- package/es/components/rate/src/rate.d.ts +4 -4
- package/es/components/rate/src/rate.mjs +8 -4
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate.vue.d.ts +8 -8
- package/es/components/scrollbar/index.d.ts +2 -1
- package/es/components/scrollbar/index.mjs +1 -1
- package/es/components/scrollbar/index.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.d.ts +5 -5
- package/es/components/scrollbar/src/bar.mjs +18 -6
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.vue.d.ts +18 -37
- package/es/components/scrollbar/src/bar2.mjs +34 -118
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +1 -0
- package/es/components/scrollbar/src/scrollbar2.mjs +14 -20
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb.d.ts +9 -0
- package/es/components/scrollbar/src/thumb.mjs +15 -0
- package/es/components/scrollbar/src/thumb.mjs.map +1 -0
- package/es/components/scrollbar/src/thumb.vue.d.ts +43 -0
- package/es/components/scrollbar/src/thumb2.mjs +135 -0
- package/es/components/scrollbar/src/thumb2.mjs.map +1 -0
- package/es/components/select/src/select.mjs +3 -0
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/table/src/table-body/index.mjs +1 -1
- package/es/components/table/src/table-body/index.mjs.map +1 -1
- package/es/components/table/src/table.mjs +3 -2
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/tag/index.d.ts +12 -1
- package/es/components/tag/src/tag.vue.d.ts +12 -1
- package/es/components/tag/src/tag2.mjs +23 -18
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/transfer/index.d.ts +492 -0
- package/es/components/transfer/src/index.mjs +11 -6
- package/es/components/transfer/src/index.mjs.map +1 -1
- package/es/components/transfer/src/index.vue.d.ts +246 -0
- package/es/index.mjs +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/avatar/index.d.ts +1 -1
- package/lib/components/avatar/src/avatar.vue.d.ts +1 -1
- package/lib/components/avatar/src/avatar2.js +3 -3
- package/lib/components/avatar/src/avatar2.js.map +1 -1
- package/lib/components/carousel/index.d.ts +11 -0
- package/lib/components/carousel/src/item.js +17 -13
- package/lib/components/carousel/src/item.js.map +1 -1
- package/lib/components/carousel/src/main.js +25 -23
- package/lib/components/carousel/src/main.js.map +1 -1
- package/lib/components/carousel/src/main.vue.d.ts +11 -0
- package/lib/components/cascader/index.d.ts +4 -0
- package/lib/components/cascader/src/index.vue.d.ts +2 -0
- package/lib/components/checkbox/index.d.ts +3 -3
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox.vue.d.ts +1 -1
- package/lib/components/checkbox/src/useCheckbox.d.ts +1 -1
- package/lib/components/checkbox/src/useCheckbox.js +2 -2
- package/lib/components/checkbox/src/useCheckbox.js.map +1 -1
- package/lib/components/drawer/index.d.ts +11 -0
- package/lib/components/drawer/src/drawer.vue.d.ts +11 -0
- package/lib/components/drawer/src/drawer2.js +33 -29
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/empty/src/img-empty.js +13 -13
- package/lib/components/empty/src/img-empty.js.map +1 -1
- package/lib/components/image/src/image2.js +3 -4
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/image-viewer/index.d.ts +1 -1
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +34 -23
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +2 -2
- package/lib/components/message-box/src/index.js +13 -10
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/message-box/src/index.vue.d.ts +1 -0
- package/lib/components/pagination/src/components/jumper.js +6 -3
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.js +7 -3
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +3 -0
- package/lib/components/pagination/src/components/total.js +10 -4
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total.vue.d.ts +1 -0
- package/lib/components/pagination/src/pagination.js +12 -1
- package/lib/components/pagination/src/pagination.js.map +1 -1
- package/lib/components/popover/index.d.ts +0 -6
- package/lib/components/popover/src/index.vue.d.ts +0 -3
- package/lib/components/popover/src/popover.d.ts +0 -1
- package/lib/components/popover/src/popover.js +0 -4
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/rate/index.d.ts +8 -8
- package/lib/components/rate/src/rate.d.ts +4 -4
- package/lib/components/rate/src/rate.js +8 -4
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +8 -8
- package/lib/components/scrollbar/index.d.ts +2 -1
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/index.js.map +1 -1
- package/lib/components/scrollbar/src/bar.d.ts +5 -5
- package/lib/components/scrollbar/src/bar.js +18 -6
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar.vue.d.ts +18 -37
- package/lib/components/scrollbar/src/bar2.js +33 -117
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +1 -0
- package/lib/components/scrollbar/src/scrollbar2.js +13 -19
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/scrollbar/src/thumb.d.ts +9 -0
- package/lib/components/scrollbar/src/thumb.js +19 -0
- package/lib/components/scrollbar/src/thumb.js.map +1 -0
- package/lib/components/scrollbar/src/thumb.vue.d.ts +43 -0
- package/lib/components/scrollbar/src/thumb2.js +139 -0
- package/lib/components/scrollbar/src/thumb2.js.map +1 -0
- package/lib/components/select/src/select.js +3 -0
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/table/src/table-body/index.js +1 -1
- package/lib/components/table/src/table-body/index.js.map +1 -1
- package/lib/components/table/src/table.js +3 -2
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/tag/index.d.ts +12 -1
- package/lib/components/tag/src/tag.vue.d.ts +12 -1
- package/lib/components/tag/src/tag2.js +23 -18
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/transfer/index.d.ts +492 -0
- package/lib/components/transfer/src/index.js +11 -6
- package/lib/components/transfer/src/index.js.map +1 -1
- package/lib/components/transfer/src/index.vue.d.ts +246 -0
- package/lib/index.js +2 -2
- 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/tags.json +1 -1
- package/theme-chalk/el-breadcrumb.css +1 -1
- package/theme-chalk/el-empty.css +1 -1
- package/theme-chalk/el-image-viewer.css +1 -1
- package/theme-chalk/el-pagination.css +1 -1
- package/theme-chalk/el-popper.css +1 -1
- package/theme-chalk/el-rate.css +1 -1
- package/theme-chalk/el-select.css +1 -1
- package/theme-chalk/el-table.css +1 -1
- package/theme-chalk/el-tooltip.css +0 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/breadcrumb.scss +2 -0
- package/theme-chalk/src/common/var.scss +18 -19
- package/theme-chalk/src/image-viewer.scss +1 -0
- package/theme-chalk/src/pagination.scss +73 -56
- package/theme-chalk/src/popper.scss +20 -2
- package/theme-chalk/src/select.scss +3 -3
- package/theme-chalk/src/table.scss +0 -12
- package/theme-chalk/src/tooltip.scss +0 -95
- package/web-types.json +1 -1
|
@@ -58,6 +58,252 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
58
|
rightPanelTitle: import("vue").ComputedRef<string>;
|
|
59
59
|
panelFilterPlaceholder: import("vue").ComputedRef<string>;
|
|
60
60
|
clearQuery: (which: 'left' | 'right') => void;
|
|
61
|
+
leftPanel: import("vue").Ref<({
|
|
62
|
+
$: import("vue").ComponentInternalInstance;
|
|
63
|
+
$data: {};
|
|
64
|
+
$props: Partial<{
|
|
65
|
+
data: unknown[];
|
|
66
|
+
filterable: boolean;
|
|
67
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
68
|
+
data: {
|
|
69
|
+
type: ArrayConstructor;
|
|
70
|
+
default(): never[];
|
|
71
|
+
};
|
|
72
|
+
optionRender: FunctionConstructor;
|
|
73
|
+
placeholder: StringConstructor;
|
|
74
|
+
title: StringConstructor;
|
|
75
|
+
filterable: BooleanConstructor;
|
|
76
|
+
format: ObjectConstructor;
|
|
77
|
+
filterMethod: FunctionConstructor;
|
|
78
|
+
defaultChecked: ArrayConstructor;
|
|
79
|
+
props: ObjectConstructor;
|
|
80
|
+
}>> & {
|
|
81
|
+
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "data" | "filterable">;
|
|
83
|
+
$attrs: {
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
};
|
|
86
|
+
$refs: {
|
|
87
|
+
[x: string]: unknown;
|
|
88
|
+
};
|
|
89
|
+
$slots: Readonly<{
|
|
90
|
+
[name: string]: import("vue").Slot | undefined;
|
|
91
|
+
}>;
|
|
92
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
93
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
94
|
+
$emit: (event: "checked-change", ...args: any[]) => void;
|
|
95
|
+
$el: any;
|
|
96
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
97
|
+
data: {
|
|
98
|
+
type: ArrayConstructor;
|
|
99
|
+
default(): never[];
|
|
100
|
+
};
|
|
101
|
+
optionRender: FunctionConstructor;
|
|
102
|
+
placeholder: StringConstructor;
|
|
103
|
+
title: StringConstructor;
|
|
104
|
+
filterable: BooleanConstructor;
|
|
105
|
+
format: ObjectConstructor;
|
|
106
|
+
filterMethod: FunctionConstructor;
|
|
107
|
+
defaultChecked: ArrayConstructor;
|
|
108
|
+
props: ObjectConstructor;
|
|
109
|
+
}>> & {
|
|
110
|
+
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
labelProp: import("vue").ComputedRef<any>;
|
|
113
|
+
keyProp: import("vue").ComputedRef<any>;
|
|
114
|
+
disabledProp: import("vue").ComputedRef<any>;
|
|
115
|
+
filteredData: import("vue").ComputedRef<unknown[]>;
|
|
116
|
+
checkedSummary: import("vue").ComputedRef<any>;
|
|
117
|
+
isIndeterminate: import("vue").ComputedRef<boolean>;
|
|
118
|
+
handleAllCheckedChange: (value: Key[]) => void;
|
|
119
|
+
checked: import("vue").Ref<never[]>;
|
|
120
|
+
allChecked: import("vue").Ref<boolean>;
|
|
121
|
+
query: import("vue").Ref<string>;
|
|
122
|
+
inputHover: import("vue").Ref<boolean>;
|
|
123
|
+
checkChangeByUser: import("vue").Ref<boolean>;
|
|
124
|
+
hasNoMatch: import("vue").ComputedRef<boolean>;
|
|
125
|
+
SearchIcon: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
126
|
+
hasFooter: import("vue").ComputedRef<boolean>;
|
|
127
|
+
t: import("element-plus/es/hooks").Translator;
|
|
128
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "checked-change"[], string, {
|
|
129
|
+
data: unknown[];
|
|
130
|
+
filterable: boolean;
|
|
131
|
+
}> & {
|
|
132
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
133
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
134
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
135
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
136
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
137
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
138
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
139
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
140
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
141
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
142
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
143
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
144
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
145
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
146
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
147
|
+
};
|
|
148
|
+
$forceUpdate: () => void;
|
|
149
|
+
$nextTick: typeof import("vue").nextTick;
|
|
150
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
151
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
152
|
+
data: {
|
|
153
|
+
type: ArrayConstructor;
|
|
154
|
+
default(): never[];
|
|
155
|
+
};
|
|
156
|
+
optionRender: FunctionConstructor;
|
|
157
|
+
placeholder: StringConstructor;
|
|
158
|
+
title: StringConstructor;
|
|
159
|
+
filterable: BooleanConstructor;
|
|
160
|
+
format: ObjectConstructor;
|
|
161
|
+
filterMethod: FunctionConstructor;
|
|
162
|
+
defaultChecked: ArrayConstructor;
|
|
163
|
+
props: ObjectConstructor;
|
|
164
|
+
}>> & {
|
|
165
|
+
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
166
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
167
|
+
labelProp: import("vue").ComputedRef<any>;
|
|
168
|
+
keyProp: import("vue").ComputedRef<any>;
|
|
169
|
+
disabledProp: import("vue").ComputedRef<any>;
|
|
170
|
+
filteredData: import("vue").ComputedRef<unknown[]>;
|
|
171
|
+
checkedSummary: import("vue").ComputedRef<any>;
|
|
172
|
+
isIndeterminate: import("vue").ComputedRef<boolean>;
|
|
173
|
+
handleAllCheckedChange: (value: Key[]) => void;
|
|
174
|
+
checked: import("vue").Ref<never[]>;
|
|
175
|
+
allChecked: import("vue").Ref<boolean>;
|
|
176
|
+
query: import("vue").Ref<string>;
|
|
177
|
+
inputHover: import("vue").Ref<boolean>;
|
|
178
|
+
checkChangeByUser: import("vue").Ref<boolean>;
|
|
179
|
+
hasNoMatch: import("vue").ComputedRef<boolean>;
|
|
180
|
+
SearchIcon: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
181
|
+
hasFooter: import("vue").ComputedRef<boolean>;
|
|
182
|
+
t: import("element-plus/es/hooks").Translator;
|
|
183
|
+
}> & {} & {} & import("vue").ComponentCustomProperties) | undefined>;
|
|
184
|
+
rightPanel: import("vue").Ref<({
|
|
185
|
+
$: import("vue").ComponentInternalInstance;
|
|
186
|
+
$data: {};
|
|
187
|
+
$props: Partial<{
|
|
188
|
+
data: unknown[];
|
|
189
|
+
filterable: boolean;
|
|
190
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
191
|
+
data: {
|
|
192
|
+
type: ArrayConstructor;
|
|
193
|
+
default(): never[];
|
|
194
|
+
};
|
|
195
|
+
optionRender: FunctionConstructor;
|
|
196
|
+
placeholder: StringConstructor;
|
|
197
|
+
title: StringConstructor;
|
|
198
|
+
filterable: BooleanConstructor;
|
|
199
|
+
format: ObjectConstructor;
|
|
200
|
+
filterMethod: FunctionConstructor;
|
|
201
|
+
defaultChecked: ArrayConstructor;
|
|
202
|
+
props: ObjectConstructor;
|
|
203
|
+
}>> & {
|
|
204
|
+
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
205
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "data" | "filterable">;
|
|
206
|
+
$attrs: {
|
|
207
|
+
[x: string]: unknown;
|
|
208
|
+
};
|
|
209
|
+
$refs: {
|
|
210
|
+
[x: string]: unknown;
|
|
211
|
+
};
|
|
212
|
+
$slots: Readonly<{
|
|
213
|
+
[name: string]: import("vue").Slot | undefined;
|
|
214
|
+
}>;
|
|
215
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
216
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
217
|
+
$emit: (event: "checked-change", ...args: any[]) => void;
|
|
218
|
+
$el: any;
|
|
219
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
220
|
+
data: {
|
|
221
|
+
type: ArrayConstructor;
|
|
222
|
+
default(): never[];
|
|
223
|
+
};
|
|
224
|
+
optionRender: FunctionConstructor;
|
|
225
|
+
placeholder: StringConstructor;
|
|
226
|
+
title: StringConstructor;
|
|
227
|
+
filterable: BooleanConstructor;
|
|
228
|
+
format: ObjectConstructor;
|
|
229
|
+
filterMethod: FunctionConstructor;
|
|
230
|
+
defaultChecked: ArrayConstructor;
|
|
231
|
+
props: ObjectConstructor;
|
|
232
|
+
}>> & {
|
|
233
|
+
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
234
|
+
}, {
|
|
235
|
+
labelProp: import("vue").ComputedRef<any>;
|
|
236
|
+
keyProp: import("vue").ComputedRef<any>;
|
|
237
|
+
disabledProp: import("vue").ComputedRef<any>;
|
|
238
|
+
filteredData: import("vue").ComputedRef<unknown[]>;
|
|
239
|
+
checkedSummary: import("vue").ComputedRef<any>;
|
|
240
|
+
isIndeterminate: import("vue").ComputedRef<boolean>;
|
|
241
|
+
handleAllCheckedChange: (value: Key[]) => void;
|
|
242
|
+
checked: import("vue").Ref<never[]>;
|
|
243
|
+
allChecked: import("vue").Ref<boolean>;
|
|
244
|
+
query: import("vue").Ref<string>;
|
|
245
|
+
inputHover: import("vue").Ref<boolean>;
|
|
246
|
+
checkChangeByUser: import("vue").Ref<boolean>;
|
|
247
|
+
hasNoMatch: import("vue").ComputedRef<boolean>;
|
|
248
|
+
SearchIcon: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
249
|
+
hasFooter: import("vue").ComputedRef<boolean>;
|
|
250
|
+
t: import("element-plus/es/hooks").Translator;
|
|
251
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "checked-change"[], string, {
|
|
252
|
+
data: unknown[];
|
|
253
|
+
filterable: boolean;
|
|
254
|
+
}> & {
|
|
255
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
256
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
257
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
258
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
259
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
260
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
261
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
262
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
263
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
264
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
265
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
266
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
267
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
268
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
269
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
270
|
+
};
|
|
271
|
+
$forceUpdate: () => void;
|
|
272
|
+
$nextTick: typeof import("vue").nextTick;
|
|
273
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
274
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
275
|
+
data: {
|
|
276
|
+
type: ArrayConstructor;
|
|
277
|
+
default(): never[];
|
|
278
|
+
};
|
|
279
|
+
optionRender: FunctionConstructor;
|
|
280
|
+
placeholder: StringConstructor;
|
|
281
|
+
title: StringConstructor;
|
|
282
|
+
filterable: BooleanConstructor;
|
|
283
|
+
format: ObjectConstructor;
|
|
284
|
+
filterMethod: FunctionConstructor;
|
|
285
|
+
defaultChecked: ArrayConstructor;
|
|
286
|
+
props: ObjectConstructor;
|
|
287
|
+
}>> & {
|
|
288
|
+
"onChecked-change"?: ((...args: any[]) => any) | undefined;
|
|
289
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
290
|
+
labelProp: import("vue").ComputedRef<any>;
|
|
291
|
+
keyProp: import("vue").ComputedRef<any>;
|
|
292
|
+
disabledProp: import("vue").ComputedRef<any>;
|
|
293
|
+
filteredData: import("vue").ComputedRef<unknown[]>;
|
|
294
|
+
checkedSummary: import("vue").ComputedRef<any>;
|
|
295
|
+
isIndeterminate: import("vue").ComputedRef<boolean>;
|
|
296
|
+
handleAllCheckedChange: (value: Key[]) => void;
|
|
297
|
+
checked: import("vue").Ref<never[]>;
|
|
298
|
+
allChecked: import("vue").Ref<boolean>;
|
|
299
|
+
query: import("vue").Ref<string>;
|
|
300
|
+
inputHover: import("vue").Ref<boolean>;
|
|
301
|
+
checkChangeByUser: import("vue").Ref<boolean>;
|
|
302
|
+
hasNoMatch: import("vue").ComputedRef<boolean>;
|
|
303
|
+
SearchIcon: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
304
|
+
hasFooter: import("vue").ComputedRef<boolean>;
|
|
305
|
+
t: import("element-plus/es/hooks").Translator;
|
|
306
|
+
}> & {} & {} & import("vue").ComponentCustomProperties) | undefined>;
|
|
61
307
|
optionRender: import("vue").ComputedRef<(option: any) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
62
308
|
[key: string]: any;
|
|
63
309
|
}> | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
package/es/index.mjs
CHANGED
|
@@ -100,7 +100,7 @@ export { rowProps } from './components/row/src/row.mjs';
|
|
|
100
100
|
export { ElRow } from './components/row/index.mjs';
|
|
101
101
|
export { BAR_MAP, renderThumbStyle } from './components/scrollbar/src/util.mjs';
|
|
102
102
|
export { scrollbarEmits, scrollbarProps } from './components/scrollbar/src/scrollbar.mjs';
|
|
103
|
-
export {
|
|
103
|
+
export { thumbProps } from './components/scrollbar/src/thumb.mjs';
|
|
104
104
|
export { ElScrollbar } from './components/scrollbar/index.mjs';
|
|
105
105
|
export { selectGroupKey, selectKey } from './components/select/src/token.mjs';
|
|
106
106
|
export { ElOption, ElOptionGroup, ElSelect } from './components/select/index.mjs';
|
package/es/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.20220128";
|
package/es/version.mjs
CHANGED
package/es/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20220128'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -9,7 +9,7 @@ export declare const ElAvatar: import("../../utils/types").SFCWithInstall<import
|
|
|
9
9
|
}, {
|
|
10
10
|
hasLoadError: import("vue").Ref<boolean>;
|
|
11
11
|
avatarClass: import("vue").ComputedRef<string[]>;
|
|
12
|
-
sizeStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
12
|
+
sizeStyle: import("vue").ComputedRef<import("vue").CSSProperties | undefined>;
|
|
13
13
|
fitStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
14
14
|
handleError: (e: Event) => void;
|
|
15
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
}, {
|
|
11
11
|
hasLoadError: import("vue").Ref<boolean>;
|
|
12
12
|
avatarClass: import("vue").ComputedRef<string[]>;
|
|
13
|
-
sizeStyle: import("vue").ComputedRef<CSSProperties>;
|
|
13
|
+
sizeStyle: import("vue").ComputedRef<CSSProperties | undefined>;
|
|
14
14
|
fitStyle: import("vue").ComputedRef<CSSProperties>;
|
|
15
15
|
handleError: (e: Event) => void;
|
|
16
16
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -34,9 +34,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
34
34
|
});
|
|
35
35
|
const sizeStyle = vue.computed(() => {
|
|
36
36
|
const { size } = props;
|
|
37
|
-
return {
|
|
38
|
-
"--el-avatar-size": util.
|
|
39
|
-
};
|
|
37
|
+
return util.isNumber(size) ? {
|
|
38
|
+
"--el-avatar-size": util.addUnit(size)
|
|
39
|
+
} : void 0;
|
|
40
40
|
});
|
|
41
41
|
const fitStyle = vue.computed(() => ({
|
|
42
42
|
objectFit: props.fit
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar2.js","sources":["../../../../../../packages/components/avatar/src/avatar.vue"],"sourcesContent":["<template>\n <span :class=\"avatarClass\" :style=\"sizeStyle\">\n <img\n v-if=\"(src || srcSet) && !hasLoadError\"\n :src=\"src\"\n :alt=\"alt\"\n :srcset=\"srcSet\"\n :style=\"fitStyle\"\n @error=\"handleError\"\n />\n <el-icon v-else-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n <slot v-else></slot>\n </span>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, computed, ref, watch } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { addUnit, isNumber, isString } from '@element-plus/utils/util'\nimport { avatarEmits, avatarProps } from './avatar'\n\nimport type { CSSProperties } from 'vue'\n\nexport default defineComponent({\n name: 'ElAvatar',\n components: {\n ElIcon,\n },\n props: avatarProps,\n emits: avatarEmits,\n\n setup(props, { emit }) {\n const ns = useNamespace('avatar')\n\n const hasLoadError = ref(false)\n\n const avatarClass = computed(() => {\n const { size, icon, shape } = props\n const classList = [ns.b()]\n if (isString(size)) classList.push(ns.m(size))\n if (icon) classList.push(ns.m('icon'))\n if (shape) classList.push(ns.m(shape))\n return classList\n })\n\n const sizeStyle = computed(() => {\n const { size } = props\n return {\n
|
|
1
|
+
{"version":3,"file":"avatar2.js","sources":["../../../../../../packages/components/avatar/src/avatar.vue"],"sourcesContent":["<template>\n <span :class=\"avatarClass\" :style=\"sizeStyle\">\n <img\n v-if=\"(src || srcSet) && !hasLoadError\"\n :src=\"src\"\n :alt=\"alt\"\n :srcset=\"srcSet\"\n :style=\"fitStyle\"\n @error=\"handleError\"\n />\n <el-icon v-else-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n <slot v-else></slot>\n </span>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, computed, ref, watch } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { addUnit, isNumber, isString } from '@element-plus/utils/util'\nimport { avatarEmits, avatarProps } from './avatar'\n\nimport type { CSSProperties } from 'vue'\n\nexport default defineComponent({\n name: 'ElAvatar',\n components: {\n ElIcon,\n },\n props: avatarProps,\n emits: avatarEmits,\n\n setup(props, { emit }) {\n const ns = useNamespace('avatar')\n\n const hasLoadError = ref(false)\n\n const avatarClass = computed(() => {\n const { size, icon, shape } = props\n const classList = [ns.b()]\n if (isString(size)) classList.push(ns.m(size))\n if (icon) classList.push(ns.m('icon'))\n if (shape) classList.push(ns.m(shape))\n return classList\n })\n\n const sizeStyle = computed(() => {\n const { size } = props\n return isNumber(size)\n ? ({\n '--el-avatar-size': addUnit(size),\n } as CSSProperties)\n : undefined\n })\n\n const fitStyle = computed<CSSProperties>(() => ({\n objectFit: props.fit,\n }))\n\n // need reset hasLoadError to false if src changed\n watch(\n () => props.src,\n () => (hasLoadError.value = false)\n )\n\n function handleError(e: Event) {\n hasLoadError.value = true\n emit('error', e)\n }\n\n return {\n hasLoadError,\n avatarClass,\n sizeStyle,\n fitStyle,\n handleError,\n }\n },\n})\n</script>\n"],"names":["defineComponent","ElIcon","avatarProps","avatarEmits","useNamespace","ref","computed","isString","isNumber","addUnit","_openBlock","_normalizeClass","_normalizeStyle"],"mappings":";;;;;;;;;;;;;AA0BA,MAAK,YAAaA,oBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,YACVC;AAAA;AAAA,EAEF,OAAOC;AAAA,EACP,OAAOC;AAAA,EAEP,MAAM,OAAO,EAAE,QAAQ;AACrB,UAAM,KAAKC,qBAAa;AAExB,UAAM,eAAeC,QAAI;AAEzB,UAAM,cAAcC,aAAS,MAAM;AACjC,YAAM,EAAE,MAAM,MAAM,UAAU;AAC9B,YAAM,YAAY,CAAC,GAAG;AACtB,UAAIC,gBAAS;AAAO,kBAAU,KAAK,GAAG,EAAE;AACxC,UAAI;AAAM,kBAAU,KAAK,GAAG,EAAE;AAC9B,UAAI;AAAO,kBAAU,KAAK,GAAG,EAAE;AAC/B,aAAO;AAAA;AAGT,UAAM,YAAYD,aAAS,MAAM;AAC/B,YAAM,EAAE,SAAS;AACjB,aAAOE,cAAS,QACX;AAAA,QACC,oBAAoBC,aAAQ;AAAA,UAE9B;AAAA;AAGN,UAAM,WAAWH,aAAwB;AAAO,MAC9C,WAAW,MAAM;AAAA;AAInB,cACE,MAAM,MAAM,KACZ,MAAO,aAAa,QAAQ;AAG9B,yBAAqB,GAAU;AAC7B,mBAAa,QAAQ;AACrB,WAAK,SAAS;AAAA;AAGhB,WAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA;AAAA;;;;SA5EQI,wCAAa;AAAA,IAAG,OAAKC,mBAAE;AAAA;;sBACjC;MAEG,KAAK;AAAA,MACL,KAAK;AAAA,MACL,UAAQ;AAAA,MACR,QAAK;AAAA,MACL,OAAKC;AAAA;OAEY,UAAI,6DACE;AAAA,2BAAxB;AAAA;;;;;;;;;;"}
|
|
@@ -85,6 +85,17 @@ export declare const ElCarousel: import("../../utils/types").SFCWithInstall<impo
|
|
|
85
85
|
next: () => void;
|
|
86
86
|
setActiveItem: (index: any) => void;
|
|
87
87
|
root: import("vue").Ref<null>;
|
|
88
|
+
ns: {
|
|
89
|
+
namespace: import("vue").ComputedRef<string>;
|
|
90
|
+
b: (blockSuffix?: string) => string;
|
|
91
|
+
e: (element?: string | undefined) => string;
|
|
92
|
+
m: (modifier?: string | undefined) => string;
|
|
93
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
94
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
95
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
96
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
97
|
+
is: (name: string, state?: boolean) => string;
|
|
98
|
+
};
|
|
88
99
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
89
100
|
initialIndex: {
|
|
90
101
|
type: NumberConstructor;
|
|
@@ -5,7 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var util = require('../../../utils/util.js');
|
|
7
7
|
var error = require('../../../utils/error.js');
|
|
8
|
+
require('../../../hooks/index.js');
|
|
8
9
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
9
11
|
|
|
10
12
|
const CARD_SCALE = 0.83;
|
|
11
13
|
const _sfc_main = vue.defineComponent({
|
|
@@ -18,6 +20,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
18
20
|
}
|
|
19
21
|
},
|
|
20
22
|
setup(props) {
|
|
23
|
+
const ns = index.useNamespace("carousel");
|
|
21
24
|
const instance = vue.getCurrentInstance();
|
|
22
25
|
const data = vue.reactive({
|
|
23
26
|
hover: false,
|
|
@@ -118,27 +121,28 @@ const _sfc_main = vue.defineComponent({
|
|
|
118
121
|
itemStyle,
|
|
119
122
|
translateItem,
|
|
120
123
|
type: injectCarouselScope.type,
|
|
121
|
-
handleItemClick
|
|
124
|
+
handleItemClick,
|
|
125
|
+
ns
|
|
122
126
|
};
|
|
123
127
|
}
|
|
124
128
|
});
|
|
125
|
-
const _hoisted_1 = {
|
|
126
|
-
key: 0,
|
|
127
|
-
class: "el-carousel__mask"
|
|
128
|
-
};
|
|
129
129
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
130
130
|
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
131
|
-
class: vue.normalizeClass([
|
|
132
|
-
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
|
|
131
|
+
class: vue.normalizeClass([
|
|
132
|
+
_ctx.ns.e("item"),
|
|
133
|
+
_ctx.ns.is("active", _ctx.data.active),
|
|
134
|
+
_ctx.ns.is("in-stage", _ctx.data.inStage),
|
|
135
|
+
_ctx.ns.is("hover", _ctx.data.hover),
|
|
136
|
+
_ctx.ns.is("animating", _ctx.data.animating),
|
|
137
|
+
{ [_ctx.ns.em("item", "card")]: _ctx.type === "card" }
|
|
138
|
+
]),
|
|
138
139
|
style: vue.normalizeStyle(_ctx.itemStyle),
|
|
139
140
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleItemClick && _ctx.handleItemClick(...args))
|
|
140
141
|
}, [
|
|
141
|
-
_ctx.type === "card" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div",
|
|
142
|
+
_ctx.type === "card" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
143
|
+
key: 0,
|
|
144
|
+
class: vue.normalizeClass(_ctx.ns.e("mask"))
|
|
145
|
+
}, null, 2)), [
|
|
142
146
|
[vue.vShow, !_ctx.data.active]
|
|
143
147
|
]) : vue.createCommentVNode("v-if", true),
|
|
144
148
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","sources":["../../../../../../packages/components/carousel/src/item.vue"],"sourcesContent":["<template>\n <div\n v-show=\"data.ready\"\n
|
|
1
|
+
{"version":3,"file":"item.js","sources":["../../../../../../packages/components/carousel/src/item.vue"],"sourcesContent":["<template>\n <div\n v-show=\"data.ready\"\n :class=\"[\n ns.e('item'),\n ns.is('active', data.active),\n ns.is('in-stage', data.inStage),\n ns.is('hover', data.hover),\n ns.is('animating', data.animating),\n { [ns.em('item', 'card')]: type === 'card' },\n ]\"\n :style=\"itemStyle\"\n @click=\"handleItemClick\"\n >\n <div\n v-if=\"type === 'card'\"\n v-show=\"!data.active\"\n :class=\"ns.e('mask')\"\n ></div>\n <slot></slot>\n </div>\n</template>\n<script lang=\"ts\">\nimport {\n defineComponent,\n reactive,\n onMounted,\n inject,\n computed,\n toRefs,\n getCurrentInstance,\n onUnmounted,\n} from 'vue'\nimport { autoprefixer } from '@element-plus/utils/util'\nimport { debugWarn } from '@element-plus/utils/error'\nimport { useNamespace } from '@element-plus/hooks'\nimport type { CSSProperties } from 'vue'\nimport type { InjectCarouselScope, ICarouselItemProps } from './carousel'\n\nconst CARD_SCALE = 0.83\nexport default defineComponent({\n name: 'ElCarouselItem',\n props: {\n name: { type: String, default: '' },\n label: {\n type: [String, Number],\n default: '',\n },\n },\n setup(props: ICarouselItemProps) {\n const ns = useNamespace('carousel')\n // instance\n const instance = getCurrentInstance()\n\n // data\n const data = reactive({\n hover: false,\n translate: 0,\n scale: 1,\n active: false,\n ready: false,\n inStage: false,\n animating: false,\n })\n\n // inject\n const injectCarouselScope: InjectCarouselScope = inject(\n 'injectCarouselScope'\n )\n\n // computed\n const parentDirection = computed(() => {\n return injectCarouselScope.direction\n })\n\n const itemStyle = computed(() => {\n const translateType =\n parentDirection.value === 'vertical' ? 'translateY' : 'translateX'\n const value = `${translateType}(${data.translate}px) scale(${data.scale})`\n const style: CSSProperties = {\n transform: value,\n }\n return autoprefixer(style)\n })\n\n // methods\n\n function processIndex(index, activeIndex, length) {\n if (activeIndex === 0 && index === length - 1) {\n return -1\n } else if (activeIndex === length - 1 && index === 0) {\n return length\n } else if (index < activeIndex - 1 && activeIndex - index >= length / 2) {\n return length + 1\n } else if (index > activeIndex + 1 && index - activeIndex >= length / 2) {\n return -2\n }\n return index\n }\n\n function calcCardTranslate(index, activeIndex) {\n const parentWidth = injectCarouselScope.root.value?.offsetWidth || 0\n if (data.inStage) {\n return (\n (parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1)) / 4\n )\n } else if (index < activeIndex) {\n return (-(1 + CARD_SCALE) * parentWidth) / 4\n } else {\n return ((3 + CARD_SCALE) * parentWidth) / 4\n }\n }\n\n function calcTranslate(index, activeIndex, isVertical) {\n const distance =\n (isVertical\n ? injectCarouselScope.root.value?.offsetHeight\n : injectCarouselScope.root.value?.offsetWidth) || 0\n return distance * (index - activeIndex)\n }\n\n const translateItem = (\n index: number,\n activeIndex: number,\n oldIndex: number\n ) => {\n const parentType = injectCarouselScope.type\n const length = injectCarouselScope.items.value.length\n if (parentType !== 'card' && oldIndex !== undefined) {\n data.animating = index === activeIndex || index === oldIndex\n }\n if (index !== activeIndex && length > 2 && injectCarouselScope.loop) {\n index = processIndex(index, activeIndex, length)\n }\n if (parentType === 'card') {\n if (parentDirection.value === 'vertical') {\n debugWarn(\n 'Carousel',\n 'vertical direction is not supported in card mode'\n )\n }\n data.inStage = Math.round(Math.abs(index - activeIndex)) <= 1\n data.active = index === activeIndex\n data.translate = calcCardTranslate(index, activeIndex)\n data.scale = data.active ? 1 : CARD_SCALE\n } else {\n data.active = index === activeIndex\n const isVertical = parentDirection.value === 'vertical'\n data.translate = calcTranslate(index, activeIndex, isVertical)\n }\n data.ready = true\n }\n\n function handleItemClick() {\n if (injectCarouselScope && injectCarouselScope.type === 'card') {\n const index = injectCarouselScope.items.value\n .map((d) => d.uid)\n .indexOf(instance.uid)\n injectCarouselScope.setActiveItem(index)\n }\n }\n\n // lifecycle\n onMounted(() => {\n if (injectCarouselScope.addItem) {\n injectCarouselScope.addItem({\n uid: instance.uid,\n ...props,\n ...toRefs(data),\n translateItem,\n })\n }\n })\n\n onUnmounted(() => {\n if (injectCarouselScope.removeItem) {\n injectCarouselScope.removeItem(instance.uid)\n }\n })\n\n return {\n data,\n itemStyle,\n translateItem,\n type: injectCarouselScope.type,\n handleItemClick,\n ns,\n }\n },\n})\n</script>\n"],"names":["defineComponent","useNamespace","getCurrentInstance","reactive","inject","computed","autoprefixer"],"mappings":";;;;;;;;;;;AAuCA,MAAM,aAAa;AACnB,MAAK,YAAaA,oBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,OAAO;AAAA,IACL,MAAM,EAAE,MAAM,QAAQ,SAAS;AAAA,IAC/B,OAAO;AAAA,MACL,MAAM,CAAC,QAAQ;AAAA,MACf,SAAS;AAAA;AAAA;AAAA,EAGb,MAAM,OAA2B;AAC/B,UAAM,KAAKC,mBAAa;AAExB,UAAM,WAAWC;AAGjB,UAAM,OAAOC,aAAS;AAAA,MACpB,OAAO;AAAA,MACP,WAAW;AAAA,MACX,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,SAAS;AAAA,MACT,WAAW;AAAA;AAIb,UAAM,sBAA2CC,WAC/C;AAIF,UAAM,kBAAkBC,aAAS,MAAM;AACrC,aAAO,oBAAoB;AAAA;AAG7B,UAAM,YAAYA,aAAS,MAAM;AAC/B,YAAM,gBACJ,gBAAgB,UAAU,aAAa,eAAe;AACxD,YAAM,QAAQ,GAAG,iBAAiB,KAAK,sBAAsB,KAAK;AAClE,YAAM,QAAuB;AAAA,QAC3B,WAAW;AAAA;AAEb,aAAOC,kBAAa;AAAA;AAKtB,0BAAsB,OAAO,aAAa,QAAQ;AAChD,UAAI,gBAAgB,KAAK,UAAU,SAAS,GAAG;AAC7C,eAAO;AAAA,iBACE,gBAAgB,SAAS,KAAK,UAAU,GAAG;AACpD,eAAO;AAAA,iBACE,QAAQ,cAAc,KAAK,cAAc,SAAS,SAAS,GAAG;AACvE,eAAO,SAAS;AAAA,iBACP,QAAQ,cAAc,KAAK,QAAQ,eAAe,SAAS,GAAG;AACvE,eAAO;AAAA;AAET,aAAO;AAAA;AAGT,+BAA2B,OAAO,aAAa;AAC7C,YAAM;AACN;AACE,eACG;AAAgE;AAGnE;AAA2C;AAE3C;AAA0C;AAAA;AAI9C;AACE,yDAE0B;AAE1B;AAA2B;AAG7B;AAKE;AACA,+CAAyC;AACzC,yBAAmB;AACjB,4DAAoD;AAAA;AAEtD,mCAA6B,kCAAkC;AAC7D;AAAyC;AAE3C;AACE;AACE,oBACE;AACA;AAGJ;AACA;AACA,aAAK,8BAA8B;AACnC,aAAK;AAA0B,aAC1B;AACL,aAAK,mBAAmB;AACxB;AACA,aAAK;AAA8C;AAErD;AAAa;AAGf;AACE;AACE;AAGA;AAAkC;AAAA;AAKtC;AACE;AACE;AAA4B,UAC1B;AAAc;AACX,aACA;AAAO,UACV;AAAA;AAAA;AAAA;AAKN;AACE;AACE;AAAwC;AAAA;AAI5C;AAAO,MACL;AAAA;AACA,MACA;AAAA,MACA;AAA0B,MAC1B;AAAA,MACA;AAAA;AAAA;AAAA;;;AAvLI,2BAAc;AAAA;AAAqB;AAAiD,MAAqB,QAAG;AAAiB,MAAc,QAAG,GAAE,cAAc;AAAA,WAA0B,MAAG;AAAqB;;;AAShN;;AAGE;;AAEA;;AADQ;;AAGH;;AAjBK;;;;;;;;;"}
|
|
@@ -7,8 +7,10 @@ var throttle = require('lodash/throttle');
|
|
|
7
7
|
var resizeEvent = require('../../../utils/resize-event.js');
|
|
8
8
|
var index = require('../../icon/index.js');
|
|
9
9
|
var iconsVue = require('@element-plus/icons-vue');
|
|
10
|
+
require('../../../hooks/index.js');
|
|
10
11
|
var error = require('../../../utils/error.js');
|
|
11
12
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
13
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
12
14
|
|
|
13
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
16
|
|
|
@@ -67,6 +69,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
67
69
|
},
|
|
68
70
|
emits: ["change"],
|
|
69
71
|
setup(props, { emit }) {
|
|
72
|
+
const ns = index$1.useNamespace("carousel");
|
|
70
73
|
const data = vue.reactive({
|
|
71
74
|
activeIndex: -1,
|
|
72
75
|
containerWidth: 0,
|
|
@@ -80,22 +83,19 @@ const _sfc_main = vue.defineComponent({
|
|
|
80
83
|
return items.value.some((item) => item.label.toString().length > 0);
|
|
81
84
|
});
|
|
82
85
|
const carouselClasses = vue.computed(() => {
|
|
83
|
-
const classes = [
|
|
86
|
+
const classes = [ns.b(), ns.m(props.direction)];
|
|
84
87
|
if (props.type === "card") {
|
|
85
|
-
classes.push("
|
|
88
|
+
classes.push(ns.m("card"));
|
|
86
89
|
}
|
|
87
90
|
return classes;
|
|
88
91
|
});
|
|
89
92
|
const indicatorsClasses = vue.computed(() => {
|
|
90
|
-
const classes = [
|
|
91
|
-
"el-carousel__indicators",
|
|
92
|
-
`el-carousel__indicators--${props.direction}`
|
|
93
|
-
];
|
|
93
|
+
const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
|
|
94
94
|
if (hasLabel.value) {
|
|
95
|
-
classes.push("
|
|
95
|
+
classes.push(ns.em("indicators", "labels"));
|
|
96
96
|
}
|
|
97
97
|
if (props.indicatorPosition === "outside" || props.type === "card") {
|
|
98
|
-
classes.push("
|
|
98
|
+
classes.push(ns.em("indicators", "outside"));
|
|
99
99
|
}
|
|
100
100
|
return classes;
|
|
101
101
|
});
|
|
@@ -267,13 +267,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
267
267
|
prev,
|
|
268
268
|
next,
|
|
269
269
|
setActiveItem,
|
|
270
|
-
root
|
|
270
|
+
root,
|
|
271
|
+
ns
|
|
271
272
|
};
|
|
272
273
|
}
|
|
273
274
|
});
|
|
274
275
|
const _hoisted_1 = ["onMouseenter", "onClick"];
|
|
275
|
-
const _hoisted_2 = {
|
|
276
|
-
const _hoisted_3 = { key: 0 };
|
|
276
|
+
const _hoisted_2 = { key: 0 };
|
|
277
277
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
278
278
|
const _component_arrow_left = vue.resolveComponent("arrow-left");
|
|
279
279
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
@@ -285,7 +285,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
285
285
|
onMouseleave: _cache[7] || (_cache[7] = vue.withModifiers((...args) => _ctx.handleMouseLeave && _ctx.handleMouseLeave(...args), ["stop"]))
|
|
286
286
|
}, [
|
|
287
287
|
vue.createElementVNode("div", {
|
|
288
|
-
class: "
|
|
288
|
+
class: vue.normalizeClass(_ctx.ns.e("container")),
|
|
289
289
|
style: vue.normalizeStyle({ height: _ctx.height })
|
|
290
290
|
}, [
|
|
291
291
|
_ctx.arrowDisplay ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
@@ -295,7 +295,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
295
295
|
default: vue.withCtx(() => [
|
|
296
296
|
vue.withDirectives(vue.createElementVNode("button", {
|
|
297
297
|
type: "button",
|
|
298
|
-
class: "
|
|
298
|
+
class: vue.normalizeClass([_ctx.ns.e("arrow"), _ctx.ns.em("arrow", "left")]),
|
|
299
299
|
onMouseenter: _cache[0] || (_cache[0] = ($event) => _ctx.handleButtonEnter("left")),
|
|
300
300
|
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.handleButtonLeave && _ctx.handleButtonLeave(...args)),
|
|
301
301
|
onClick: _cache[2] || (_cache[2] = vue.withModifiers(($event) => _ctx.throttledArrowClick(_ctx.data.activeIndex - 1), ["stop"]))
|
|
@@ -306,7 +306,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
306
306
|
]),
|
|
307
307
|
_: 1
|
|
308
308
|
})
|
|
309
|
-
],
|
|
309
|
+
], 34), [
|
|
310
310
|
[
|
|
311
311
|
vue.vShow,
|
|
312
312
|
(_ctx.arrow === "always" || _ctx.data.hover) && (_ctx.props.loop || _ctx.data.activeIndex > 0)
|
|
@@ -322,7 +322,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
322
322
|
default: vue.withCtx(() => [
|
|
323
323
|
vue.withDirectives(vue.createElementVNode("button", {
|
|
324
324
|
type: "button",
|
|
325
|
-
class: "
|
|
325
|
+
class: vue.normalizeClass([_ctx.ns.e("arrow"), _ctx.ns.em("arrow", "right")]),
|
|
326
326
|
onMouseenter: _cache[3] || (_cache[3] = ($event) => _ctx.handleButtonEnter("right")),
|
|
327
327
|
onMouseleave: _cache[4] || (_cache[4] = (...args) => _ctx.handleButtonLeave && _ctx.handleButtonLeave(...args)),
|
|
328
328
|
onClick: _cache[5] || (_cache[5] = vue.withModifiers(($event) => _ctx.throttledArrowClick(_ctx.data.activeIndex + 1), ["stop"]))
|
|
@@ -333,7 +333,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
333
333
|
]),
|
|
334
334
|
_: 1
|
|
335
335
|
})
|
|
336
|
-
],
|
|
336
|
+
], 34), [
|
|
337
337
|
[
|
|
338
338
|
vue.vShow,
|
|
339
339
|
(_ctx.arrow === "always" || _ctx.data.hover) && (_ctx.props.loop || _ctx.data.activeIndex < _ctx.items.length - 1)
|
|
@@ -343,7 +343,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
343
343
|
_: 1
|
|
344
344
|
})) : vue.createCommentVNode("v-if", true),
|
|
345
345
|
vue.renderSlot(_ctx.$slots, "default")
|
|
346
|
-
],
|
|
346
|
+
], 6),
|
|
347
347
|
_ctx.indicatorPosition !== "none" ? (vue.openBlock(), vue.createElementBlock("ul", {
|
|
348
348
|
key: 0,
|
|
349
349
|
class: vue.normalizeClass(_ctx.indicatorsClasses)
|
|
@@ -352,16 +352,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
352
352
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
353
353
|
key: index,
|
|
354
354
|
class: vue.normalizeClass([
|
|
355
|
-
"
|
|
356
|
-
"
|
|
357
|
-
|
|
355
|
+
_ctx.ns.e("indicator"),
|
|
356
|
+
_ctx.ns.em("indicator", _ctx.direction),
|
|
357
|
+
_ctx.ns.is("active", index === _ctx.data.activeIndex)
|
|
358
358
|
]),
|
|
359
359
|
onMouseenter: ($event) => _ctx.throttledIndicatorHover(index),
|
|
360
360
|
onClick: vue.withModifiers(($event) => _ctx.handleIndicatorClick(index), ["stop"])
|
|
361
361
|
}, [
|
|
362
|
-
vue.createElementVNode("button",
|
|
363
|
-
|
|
364
|
-
|
|
362
|
+
vue.createElementVNode("button", {
|
|
363
|
+
class: vue.normalizeClass(_ctx.ns.e("button"))
|
|
364
|
+
}, [
|
|
365
|
+
_ctx.hasLabel ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(item.label), 1)) : vue.createCommentVNode("v-if", true)
|
|
366
|
+
], 2)
|
|
365
367
|
], 42, _hoisted_1);
|
|
366
368
|
}), 128))
|
|
367
369
|
], 2)) : vue.createCommentVNode("v-if", true)
|