@element-plus/nightly 0.0.20240916 → 0.0.20240917
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +5 -2
- package/dist/index.full.min.js +8 -8
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +8 -8
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +5 -2
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/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/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +36 -96
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +96 -36
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel.mjs +62 -205
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +205 -62
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse-item.mjs +19 -90
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +90 -19
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/index.mjs +6 -6
- package/es/components/input-number/src/input-number2.mjs +3 -0
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/segmented/index.mjs +2 -2
- package/es/components/segmented/src/segmented.mjs +158 -30
- package/es/components/segmented/src/segmented.mjs.map +1 -1
- package/es/components/segmented/src/segmented2.mjs +30 -158
- package/es/components/segmented/src/segmented2.mjs.map +1 -1
- package/es/components/slider/src/button.mjs +91 -21
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +21 -91
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +1 -1
- package/es/components/time-select/index.mjs +2 -2
- package/es/components/time-select/src/time-select.mjs +124 -51
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select2.mjs +51 -124
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +2 -2
- package/es/components/tooltip/src/tooltip.mjs +168 -31
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +31 -168
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/index.mjs +6 -6
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +37 -95
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +95 -37
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel.js +63 -205
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +205 -63
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse-item.js +19 -90
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +90 -19
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/index.js +6 -6
- package/lib/components/input-number/src/input-number2.js +3 -0
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/segmented/index.js +2 -2
- package/lib/components/segmented/src/segmented.js +157 -30
- package/lib/components/segmented/src/segmented.js.map +1 -1
- package/lib/components/segmented/src/segmented2.js +30 -157
- package/lib/components/segmented/src/segmented2.js.map +1 -1
- package/lib/components/slider/src/button.js +91 -22
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +22 -91
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider2.js +1 -1
- package/lib/components/time-select/index.js +2 -2
- package/lib/components/time-select/src/time-select.js +129 -51
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select2.js +51 -129
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/tooltip/index.js +2 -2
- package/lib/components/tooltip/src/tooltip.js +168 -35
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +35 -168
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/index.js +6 -6
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -2,105 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var index$1 = require('../../icon/index.js');
|
|
7
5
|
require('../../../utils/index.js');
|
|
8
|
-
require('../../../
|
|
9
|
-
var
|
|
10
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
7
|
+
var objects = require('../../../utils/objects.js');
|
|
11
8
|
var icon = require('../../../utils/vue/icon.js');
|
|
12
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
13
9
|
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}, {
|
|
44
|
-
default: vue.withCtx(() => [
|
|
45
|
-
vue.withDirectives(vue.createElementVNode("div", {
|
|
46
|
-
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).m(_ctx.type), vue.unref(ns).is("center", _ctx.center), vue.unref(ns).is(_ctx.effect)]),
|
|
47
|
-
role: "alert"
|
|
48
|
-
}, [
|
|
49
|
-
_ctx.showIcon && vue.unref(iconComponent) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
50
|
-
key: 0,
|
|
51
|
-
class: vue.normalizeClass(vue.unref(iconClass))
|
|
52
|
-
}, {
|
|
53
|
-
default: vue.withCtx(() => [
|
|
54
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(iconComponent))))
|
|
55
|
-
]),
|
|
56
|
-
_: 1
|
|
57
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
58
|
-
vue.createElementVNode("div", {
|
|
59
|
-
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
60
|
-
}, [
|
|
61
|
-
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
62
|
-
key: 0,
|
|
63
|
-
class: vue.normalizeClass([vue.unref(ns).e("title"), vue.unref(withDescription)])
|
|
64
|
-
}, [
|
|
65
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
66
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
67
|
-
])
|
|
68
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
69
|
-
_ctx.$slots.default || _ctx.description ? (vue.openBlock(), vue.createElementBlock("p", {
|
|
70
|
-
key: 1,
|
|
71
|
-
class: vue.normalizeClass(vue.unref(ns).e("description"))
|
|
72
|
-
}, [
|
|
73
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
74
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
|
|
75
|
-
])
|
|
76
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
77
|
-
_ctx.closable ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
78
|
-
_ctx.closeText ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
79
|
-
key: 0,
|
|
80
|
-
class: vue.normalizeClass([vue.unref(ns).e("close-btn"), vue.unref(ns).is("customed")]),
|
|
81
|
-
onClick: close
|
|
82
|
-
}, vue.toDisplayString(_ctx.closeText), 3)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
83
|
-
key: 1,
|
|
84
|
-
class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
|
|
85
|
-
onClick: close
|
|
86
|
-
}, {
|
|
87
|
-
default: vue.withCtx(() => [
|
|
88
|
-
vue.createVNode(vue.unref(Close))
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
}, 8, ["class"]))
|
|
92
|
-
], 64)) : vue.createCommentVNode("v-if", true)
|
|
93
|
-
], 2)
|
|
94
|
-
], 2), [
|
|
95
|
-
[vue.vShow, visible.value]
|
|
96
|
-
])
|
|
97
|
-
]),
|
|
98
|
-
_: 3
|
|
99
|
-
}, 8, ["name"]);
|
|
100
|
-
};
|
|
10
|
+
const alertEffects = ["light", "dark"];
|
|
11
|
+
const alertProps = runtime.buildProps({
|
|
12
|
+
title: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
16
|
+
description: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: ""
|
|
19
|
+
},
|
|
20
|
+
type: {
|
|
21
|
+
type: String,
|
|
22
|
+
values: objects.keysOf(icon.TypeComponentsMap),
|
|
23
|
+
default: "info"
|
|
24
|
+
},
|
|
25
|
+
closable: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true
|
|
28
|
+
},
|
|
29
|
+
closeText: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ""
|
|
32
|
+
},
|
|
33
|
+
showIcon: Boolean,
|
|
34
|
+
center: Boolean,
|
|
35
|
+
effect: {
|
|
36
|
+
type: String,
|
|
37
|
+
values: alertEffects,
|
|
38
|
+
default: "light"
|
|
101
39
|
}
|
|
102
40
|
});
|
|
103
|
-
|
|
41
|
+
const alertEmits = {
|
|
42
|
+
close: (evt) => evt instanceof MouseEvent
|
|
43
|
+
};
|
|
104
44
|
|
|
105
|
-
exports
|
|
45
|
+
exports.alertEffects = alertEffects;
|
|
46
|
+
exports.alertEmits = alertEmits;
|
|
47
|
+
exports.alertProps = alertProps;
|
|
106
48
|
//# sourceMappingURL=alert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","sources":["../../../../../../packages/components/alert/src/alert.
|
|
1
|
+
{"version":3,"file":"alert.js","sources":["../../../../../../packages/components/alert/src/alert.ts"],"sourcesContent":["import { TypeComponentsMap, buildProps, keysOf } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const alertEffects = ['light', 'dark'] as const\n\nexport const alertProps = buildProps({\n /**\n * @description alert title.\n */\n title: {\n type: String,\n default: '',\n },\n description: {\n type: String,\n default: '',\n },\n /**\n * @description alert type.\n */\n type: {\n type: String,\n values: keysOf(TypeComponentsMap),\n default: 'info',\n },\n /**\n * @description whether alert can be dismissed.\n */\n closable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description text for replacing x button\n */\n closeText: {\n type: String,\n default: '',\n },\n /**\n * @description whether show icon\n */\n showIcon: Boolean,\n /**\n * @description should content be placed in center.\n */\n center: Boolean,\n effect: {\n type: String,\n values: alertEffects,\n default: 'light',\n },\n} as const)\nexport type AlertProps = ExtractPropTypes<typeof alertProps>\n\nexport const alertEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type AlertEmits = typeof alertEmits\n"],"names":["buildProps","keysOf","TypeComponentsMap"],"mappings":";;;;;;;;;AACY,MAAC,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE;AAClC,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,cAAM,CAACC,sBAAiB,CAAC;AACrC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,YAAY;AACxB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;;"}
|
|
@@ -2,47 +2,105 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$1 = require('../../icon/index.js');
|
|
5
7
|
require('../../../utils/index.js');
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
+
require('../../../hooks/index.js');
|
|
9
|
+
var alert = require('./alert.js');
|
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
8
11
|
var icon = require('../../../utils/vue/icon.js');
|
|
12
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
9
13
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
14
|
+
const __default__ = vue.defineComponent({
|
|
15
|
+
name: "ElAlert"
|
|
16
|
+
});
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
18
|
+
...__default__,
|
|
19
|
+
props: alert.alertProps,
|
|
20
|
+
emits: alert.alertEmits,
|
|
21
|
+
setup(__props, { emit }) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const { Close } = icon.TypeComponents;
|
|
24
|
+
const slots = vue.useSlots();
|
|
25
|
+
const ns = index.useNamespace("alert");
|
|
26
|
+
const visible = vue.ref(true);
|
|
27
|
+
const iconComponent = vue.computed(() => icon.TypeComponentsMap[props.type]);
|
|
28
|
+
const iconClass = vue.computed(() => [
|
|
29
|
+
ns.e("icon"),
|
|
30
|
+
{ [ns.is("big")]: !!props.description || !!slots.default }
|
|
31
|
+
]);
|
|
32
|
+
const withDescription = vue.computed(() => {
|
|
33
|
+
return { "with-description": props.description || slots.default };
|
|
34
|
+
});
|
|
35
|
+
const close = (evt) => {
|
|
36
|
+
visible.value = false;
|
|
37
|
+
emit("close", evt);
|
|
38
|
+
};
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
41
|
+
name: vue.unref(ns).b("fade"),
|
|
42
|
+
persisted: ""
|
|
43
|
+
}, {
|
|
44
|
+
default: vue.withCtx(() => [
|
|
45
|
+
vue.withDirectives(vue.createElementVNode("div", {
|
|
46
|
+
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).m(_ctx.type), vue.unref(ns).is("center", _ctx.center), vue.unref(ns).is(_ctx.effect)]),
|
|
47
|
+
role: "alert"
|
|
48
|
+
}, [
|
|
49
|
+
_ctx.showIcon && vue.unref(iconComponent) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: vue.normalizeClass(vue.unref(iconClass))
|
|
52
|
+
}, {
|
|
53
|
+
default: vue.withCtx(() => [
|
|
54
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(iconComponent))))
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
58
|
+
vue.createElementVNode("div", {
|
|
59
|
+
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
60
|
+
}, [
|
|
61
|
+
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: vue.normalizeClass([vue.unref(ns).e("title"), vue.unref(withDescription)])
|
|
64
|
+
}, [
|
|
65
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
66
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
67
|
+
])
|
|
68
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
69
|
+
_ctx.$slots.default || _ctx.description ? (vue.openBlock(), vue.createElementBlock("p", {
|
|
70
|
+
key: 1,
|
|
71
|
+
class: vue.normalizeClass(vue.unref(ns).e("description"))
|
|
72
|
+
}, [
|
|
73
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
74
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
|
|
75
|
+
])
|
|
76
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
77
|
+
_ctx.closable ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
78
|
+
_ctx.closeText ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: vue.normalizeClass([vue.unref(ns).e("close-btn"), vue.unref(ns).is("customed")]),
|
|
81
|
+
onClick: close
|
|
82
|
+
}, vue.toDisplayString(_ctx.closeText), 3)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
|
|
85
|
+
onClick: close
|
|
86
|
+
}, {
|
|
87
|
+
default: vue.withCtx(() => [
|
|
88
|
+
vue.createVNode(vue.unref(Close))
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 8, ["class"]))
|
|
92
|
+
], 64)) : vue.createCommentVNode("v-if", true)
|
|
93
|
+
], 2)
|
|
94
|
+
], 2), [
|
|
95
|
+
[vue.vShow, visible.value]
|
|
96
|
+
])
|
|
97
|
+
]),
|
|
98
|
+
_: 3
|
|
99
|
+
}, 8, ["name"]);
|
|
100
|
+
};
|
|
39
101
|
}
|
|
40
102
|
});
|
|
41
|
-
|
|
42
|
-
close: (evt) => evt instanceof MouseEvent
|
|
43
|
-
};
|
|
103
|
+
var Alert = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "alert.vue"]]);
|
|
44
104
|
|
|
45
|
-
exports
|
|
46
|
-
exports.alertEmits = alertEmits;
|
|
47
|
-
exports.alertProps = alertProps;
|
|
105
|
+
exports["default"] = Alert;
|
|
48
106
|
//# sourceMappingURL=alert2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert2.js","sources":["../../../../../../packages/components/alert/src/alert.
|
|
1
|
+
{"version":3,"file":"alert2.js","sources":["../../../../../../packages/components/alert/src/alert.vue"],"sourcesContent":["<template>\n <transition :name=\"ns.b('fade')\">\n <div\n v-show=\"visible\"\n :class=\"[ns.b(), ns.m(type), ns.is('center', center), ns.is(effect)]\"\n role=\"alert\"\n >\n <el-icon v-if=\"showIcon && iconComponent\" :class=\"iconClass\">\n <component :is=\"iconComponent\" />\n </el-icon>\n\n <div :class=\"ns.e('content')\">\n <span\n v-if=\"title || $slots.title\"\n :class=\"[ns.e('title'), withDescription]\"\n >\n <slot name=\"title\">{{ title }}</slot>\n </span>\n <p v-if=\"$slots.default || description\" :class=\"ns.e('description')\">\n <slot>\n {{ description }}\n </slot>\n </p>\n <template v-if=\"closable\">\n <div\n v-if=\"closeText\"\n :class=\"[ns.e('close-btn'), ns.is('customed')]\"\n @click=\"close\"\n >\n {{ closeText }}\n </div>\n <el-icon v-else :class=\"ns.e('close-btn')\" @click=\"close\">\n <Close />\n </el-icon>\n </template>\n </div>\n </div>\n </transition>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, ref, useSlots } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { TypeComponents, TypeComponentsMap } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { alertEmits, alertProps } from './alert'\n\nconst { Close } = TypeComponents\n\ndefineOptions({\n name: 'ElAlert',\n})\n\nconst props = defineProps(alertProps)\nconst emit = defineEmits(alertEmits)\nconst slots = useSlots()\n\nconst ns = useNamespace('alert')\n\nconst visible = ref(true)\n\nconst iconComponent = computed(() => TypeComponentsMap[props.type])\n\nconst iconClass = computed(() => [\n ns.e('icon'),\n { [ns.is('big')]: !!props.description || !!slots.default },\n])\n\nconst withDescription = computed(() => {\n return { 'with-description': props.description || slots.default }\n})\n\nconst close = (evt: MouseEvent) => {\n visible.value = false\n emit('close', evt)\n}\n</script>\n"],"names":["TypeComponents","useSlots","useNamespace","ref","computed","TypeComponentsMap"],"mappings":";;;;;;;;;;;;;uCAgDc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAJA,IAAA,MAAM,EAAE,KAAU,EAAA,GAAAA,mBAAA,CAAA;AAQlB,IAAA,MAAM,QAAQC,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,EAAA,GAAKC,mBAAa,OAAO,CAAA,CAAA;AAE/B,IAAM,MAAA,OAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AAExB,IAAA,MAAM,aAAgB,GAAAC,YAAA,CAAS,MAAMC,sBAAA,CAAkB,MAAM,IAAK,CAAA,CAAA,CAAA;AAElE,IAAM,MAAA,SAAA,GAAYD,aAAS,MAAM;AAAA,MAC/B,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,MACX,EAAE,CAAC,EAAG,CAAA,EAAA,CAAG,KAAK,CAAA,GAAI,CAAC,CAAC,KAAM,CAAA,WAAA,IAAe,CAAC,CAAC,MAAM,OAAQ,EAAA;AAAA,KAC1D,CAAA,CAAA;AAED,IAAM,MAAA,eAAA,GAAkBA,aAAS,MAAM;AACrC,MAAA,OAAO,EAAE,kBAAA,EAAoB,KAAM,CAAA,WAAA,IAAe,MAAM,OAAQ,EAAA,CAAA;AAAA,KACjE,CAAA,CAAA;AAED,IAAM,MAAA,KAAA,GAAQ,CAAC,GAAoB,KAAA;AACjC,MAAA,OAAA,CAAQ,KAAQ,GAAA,KAAA,CAAA;AAChB,MAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AAAA,KACnB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var carousel$1 = require('./src/
|
|
6
|
+
var carousel$1 = require('./src/carousel2.js');
|
|
7
7
|
var carouselItem$1 = require('./src/carousel-item2.js');
|
|
8
|
-
var carousel = require('./src/
|
|
8
|
+
var carousel = require('./src/carousel.js');
|
|
9
9
|
var carouselItem = require('./src/carousel-item.js');
|
|
10
10
|
var constants = require('./src/constants.js');
|
|
11
11
|
var install = require('../../utils/vue/install.js');
|
|
@@ -2,212 +2,70 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
require('../../../hooks/index.js');
|
|
9
|
-
var carousel = require('./carousel2.js');
|
|
10
|
-
var useCarousel = require('./use-carousel.js');
|
|
11
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
12
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
13
|
-
var index$1 = require('../../../hooks/use-locale/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
7
|
+
var types = require('../../../utils/types.js');
|
|
14
8
|
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
const carouselProps = runtime.buildProps({
|
|
10
|
+
initialIndex: {
|
|
11
|
+
type: Number,
|
|
12
|
+
default: 0
|
|
13
|
+
},
|
|
14
|
+
height: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
trigger: {
|
|
19
|
+
type: String,
|
|
20
|
+
values: ["hover", "click"],
|
|
21
|
+
default: "hover"
|
|
22
|
+
},
|
|
23
|
+
autoplay: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: true
|
|
26
|
+
},
|
|
27
|
+
interval: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 3e3
|
|
30
|
+
},
|
|
31
|
+
indicatorPosition: {
|
|
32
|
+
type: String,
|
|
33
|
+
values: ["", "none", "outside"],
|
|
34
|
+
default: ""
|
|
35
|
+
},
|
|
36
|
+
arrow: {
|
|
37
|
+
type: String,
|
|
38
|
+
values: ["always", "hover", "never"],
|
|
39
|
+
default: "hover"
|
|
40
|
+
},
|
|
41
|
+
type: {
|
|
42
|
+
type: String,
|
|
43
|
+
values: ["", "card"],
|
|
44
|
+
default: ""
|
|
45
|
+
},
|
|
46
|
+
cardScale: {
|
|
47
|
+
type: Number,
|
|
48
|
+
default: 0.83
|
|
49
|
+
},
|
|
50
|
+
loop: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: true
|
|
53
|
+
},
|
|
54
|
+
direction: {
|
|
55
|
+
type: String,
|
|
56
|
+
values: ["horizontal", "vertical"],
|
|
57
|
+
default: "horizontal"
|
|
58
|
+
},
|
|
59
|
+
pauseOnHover: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: true
|
|
62
|
+
},
|
|
63
|
+
motionBlur: Boolean
|
|
18
64
|
});
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
emits: carousel.carouselEmits,
|
|
23
|
-
setup(__props, { expose, emit }) {
|
|
24
|
-
const props = __props;
|
|
25
|
-
const {
|
|
26
|
-
root,
|
|
27
|
-
activeIndex,
|
|
28
|
-
arrowDisplay,
|
|
29
|
-
hasLabel,
|
|
30
|
-
hover,
|
|
31
|
-
isCardType,
|
|
32
|
-
items,
|
|
33
|
-
isVertical,
|
|
34
|
-
containerStyle,
|
|
35
|
-
handleButtonEnter,
|
|
36
|
-
handleButtonLeave,
|
|
37
|
-
isTransitioning,
|
|
38
|
-
handleIndicatorClick,
|
|
39
|
-
handleMouseEnter,
|
|
40
|
-
handleMouseLeave,
|
|
41
|
-
handleTransitionEnd,
|
|
42
|
-
setActiveItem,
|
|
43
|
-
prev,
|
|
44
|
-
next,
|
|
45
|
-
PlaceholderItem,
|
|
46
|
-
isTwoLengthShow,
|
|
47
|
-
throttledArrowClick,
|
|
48
|
-
throttledIndicatorHover
|
|
49
|
-
} = useCarousel.useCarousel(props, emit, COMPONENT_NAME);
|
|
50
|
-
const ns = index.useNamespace("carousel");
|
|
51
|
-
const { t } = index$1.useLocale();
|
|
52
|
-
const carouselClasses = vue.computed(() => {
|
|
53
|
-
const classes = [ns.b(), ns.m(props.direction)];
|
|
54
|
-
if (vue.unref(isCardType)) {
|
|
55
|
-
classes.push(ns.m("card"));
|
|
56
|
-
}
|
|
57
|
-
return classes;
|
|
58
|
-
});
|
|
59
|
-
const carouselContainer = vue.computed(() => {
|
|
60
|
-
const classes = [ns.e("container")];
|
|
61
|
-
if (props.motionBlur && vue.unref(isTransitioning)) {
|
|
62
|
-
classes.push(vue.unref(isVertical) ? `${ns.namespace.value}-transitioning-vertical` : `${ns.namespace.value}-transitioning`);
|
|
63
|
-
}
|
|
64
|
-
return classes;
|
|
65
|
-
});
|
|
66
|
-
const indicatorsClasses = vue.computed(() => {
|
|
67
|
-
const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
|
|
68
|
-
if (vue.unref(hasLabel)) {
|
|
69
|
-
classes.push(ns.em("indicators", "labels"));
|
|
70
|
-
}
|
|
71
|
-
if (props.indicatorPosition === "outside") {
|
|
72
|
-
classes.push(ns.em("indicators", "outside"));
|
|
73
|
-
}
|
|
74
|
-
if (vue.unref(isVertical)) {
|
|
75
|
-
classes.push(ns.em("indicators", "right"));
|
|
76
|
-
}
|
|
77
|
-
return classes;
|
|
78
|
-
});
|
|
79
|
-
expose({
|
|
80
|
-
activeIndex,
|
|
81
|
-
setActiveItem,
|
|
82
|
-
prev,
|
|
83
|
-
next
|
|
84
|
-
});
|
|
85
|
-
return (_ctx, _cache) => {
|
|
86
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
87
|
-
ref_key: "root",
|
|
88
|
-
ref: root,
|
|
89
|
-
class: vue.normalizeClass(vue.unref(carouselClasses)),
|
|
90
|
-
onMouseenter: vue.withModifiers(vue.unref(handleMouseEnter), ["stop"]),
|
|
91
|
-
onMouseleave: vue.withModifiers(vue.unref(handleMouseLeave), ["stop"])
|
|
92
|
-
}, [
|
|
93
|
-
vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
94
|
-
key: 0,
|
|
95
|
-
name: "carousel-arrow-left",
|
|
96
|
-
persisted: ""
|
|
97
|
-
}, {
|
|
98
|
-
default: vue.withCtx(() => [
|
|
99
|
-
vue.withDirectives(vue.createElementVNode("button", {
|
|
100
|
-
type: "button",
|
|
101
|
-
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "left")]),
|
|
102
|
-
"aria-label": vue.unref(t)("el.carousel.leftArrow"),
|
|
103
|
-
onMouseenter: ($event) => vue.unref(handleButtonEnter)("left"),
|
|
104
|
-
onMouseleave: vue.unref(handleButtonLeave),
|
|
105
|
-
onClick: vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) - 1), ["stop"])
|
|
106
|
-
}, [
|
|
107
|
-
vue.createVNode(vue.unref(index$2.ElIcon), null, {
|
|
108
|
-
default: vue.withCtx(() => [
|
|
109
|
-
vue.createVNode(vue.unref(iconsVue.ArrowLeft))
|
|
110
|
-
]),
|
|
111
|
-
_: 1
|
|
112
|
-
})
|
|
113
|
-
], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
|
|
114
|
-
[
|
|
115
|
-
vue.vShow,
|
|
116
|
-
(_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) > 0)
|
|
117
|
-
]
|
|
118
|
-
])
|
|
119
|
-
]),
|
|
120
|
-
_: 1
|
|
121
|
-
})) : vue.createCommentVNode("v-if", true),
|
|
122
|
-
vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
123
|
-
key: 1,
|
|
124
|
-
name: "carousel-arrow-right",
|
|
125
|
-
persisted: ""
|
|
126
|
-
}, {
|
|
127
|
-
default: vue.withCtx(() => [
|
|
128
|
-
vue.withDirectives(vue.createElementVNode("button", {
|
|
129
|
-
type: "button",
|
|
130
|
-
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "right")]),
|
|
131
|
-
"aria-label": vue.unref(t)("el.carousel.rightArrow"),
|
|
132
|
-
onMouseenter: ($event) => vue.unref(handleButtonEnter)("right"),
|
|
133
|
-
onMouseleave: vue.unref(handleButtonLeave),
|
|
134
|
-
onClick: vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) + 1), ["stop"])
|
|
135
|
-
}, [
|
|
136
|
-
vue.createVNode(vue.unref(index$2.ElIcon), null, {
|
|
137
|
-
default: vue.withCtx(() => [
|
|
138
|
-
vue.createVNode(vue.unref(iconsVue.ArrowRight))
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
})
|
|
142
|
-
], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
|
|
143
|
-
[
|
|
144
|
-
vue.vShow,
|
|
145
|
-
(_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) < vue.unref(items).length - 1)
|
|
146
|
-
]
|
|
147
|
-
])
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
})) : vue.createCommentVNode("v-if", true),
|
|
151
|
-
vue.createElementVNode("div", {
|
|
152
|
-
class: vue.normalizeClass(vue.unref(carouselContainer)),
|
|
153
|
-
style: vue.normalizeStyle(vue.unref(containerStyle)),
|
|
154
|
-
onTransitionend: vue.unref(handleTransitionEnd)
|
|
155
|
-
}, [
|
|
156
|
-
vue.createVNode(vue.unref(PlaceholderItem)),
|
|
157
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
158
|
-
], 46, ["onTransitionend"]),
|
|
159
|
-
_ctx.indicatorPosition !== "none" ? (vue.openBlock(), vue.createElementBlock("ul", {
|
|
160
|
-
key: 2,
|
|
161
|
-
class: vue.normalizeClass(vue.unref(indicatorsClasses))
|
|
162
|
-
}, [
|
|
163
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(items), (item, index) => {
|
|
164
|
-
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", {
|
|
165
|
-
key: index,
|
|
166
|
-
class: vue.normalizeClass([
|
|
167
|
-
vue.unref(ns).e("indicator"),
|
|
168
|
-
vue.unref(ns).em("indicator", _ctx.direction),
|
|
169
|
-
vue.unref(ns).is("active", index === vue.unref(activeIndex))
|
|
170
|
-
]),
|
|
171
|
-
onMouseenter: ($event) => vue.unref(throttledIndicatorHover)(index),
|
|
172
|
-
onClick: vue.withModifiers(($event) => vue.unref(handleIndicatorClick)(index), ["stop"])
|
|
173
|
-
}, [
|
|
174
|
-
vue.createElementVNode("button", {
|
|
175
|
-
class: vue.normalizeClass(vue.unref(ns).e("button")),
|
|
176
|
-
"aria-label": vue.unref(t)("el.carousel.indicator", { index: index + 1 })
|
|
177
|
-
}, [
|
|
178
|
-
vue.unref(hasLabel) ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(item.props.label), 1)) : vue.createCommentVNode("v-if", true)
|
|
179
|
-
], 10, ["aria-label"])
|
|
180
|
-
], 42, ["onMouseenter", "onClick"])), [
|
|
181
|
-
[vue.vShow, vue.unref(isTwoLengthShow)(index)]
|
|
182
|
-
]);
|
|
183
|
-
}), 128))
|
|
184
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
185
|
-
props.motionBlur ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
186
|
-
key: 3,
|
|
187
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
188
|
-
version: "1.1",
|
|
189
|
-
style: { "display": "none" }
|
|
190
|
-
}, [
|
|
191
|
-
vue.createElementVNode("defs", null, [
|
|
192
|
-
vue.createElementVNode("filter", { id: "elCarouselHorizontal" }, [
|
|
193
|
-
vue.createElementVNode("feGaussianBlur", {
|
|
194
|
-
in: "SourceGraphic",
|
|
195
|
-
stdDeviation: "12,0"
|
|
196
|
-
})
|
|
197
|
-
]),
|
|
198
|
-
vue.createElementVNode("filter", { id: "elCarouselVertical" }, [
|
|
199
|
-
vue.createElementVNode("feGaussianBlur", {
|
|
200
|
-
in: "SourceGraphic",
|
|
201
|
-
stdDeviation: "0,10"
|
|
202
|
-
})
|
|
203
|
-
])
|
|
204
|
-
])
|
|
205
|
-
])) : vue.createCommentVNode("v-if", true)
|
|
206
|
-
], 42, ["onMouseenter", "onMouseleave"]);
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
var Carousel = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "carousel.vue"]]);
|
|
65
|
+
const carouselEmits = {
|
|
66
|
+
change: (current, prev) => [current, prev].every(types.isNumber)
|
|
67
|
+
};
|
|
211
68
|
|
|
212
|
-
exports
|
|
69
|
+
exports.carouselEmits = carouselEmits;
|
|
70
|
+
exports.carouselProps = carouselProps;
|
|
213
71
|
//# sourceMappingURL=carousel.js.map
|