@element-plus/nightly 0.0.20240413 → 0.0.20240414
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 +2 -2
- package/dist/index.full.min.js +2 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +2 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2 -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/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/button/index.mjs +2 -2
- package/es/components/button/src/button-group.mjs +1 -1
- package/es/components/button/src/button.mjs +57 -77
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +77 -57
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/index.mjs +7 -7
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +47 -110
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +110 -47
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/popper.mjs +25 -32
- package/es/components/popper/src/popper.mjs.map +1 -1
- package/es/components/popper/src/popper2.mjs +32 -25
- package/es/components/popper/src/popper2.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +6 -67
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +67 -6
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton.mjs +49 -22
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +22 -49
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/tour.mjs +69 -152
- package/es/components/tour/src/tour.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +152 -69
- package/es/components/tour/src/tour2.mjs.map +1 -1
- package/es/components/transfer/index.mjs +2 -2
- package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +1 -1
- package/es/components/transfer/src/transfer.mjs +160 -69
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +69 -160
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/index.mjs +7 -7
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/src/button-group.js +1 -1
- package/lib/components/button/src/button.js +60 -77
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +77 -60
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/index.js +7 -7
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +48 -110
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +110 -48
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/popper.js +28 -32
- package/lib/components/popper/src/popper.js.map +1 -1
- package/lib/components/popper/src/popper2.js +32 -28
- package/lib/components/popper/src/popper2.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +6 -67
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +67 -6
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton.js +49 -22
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +22 -49
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/tour.js +69 -151
- package/lib/components/tour/src/tour.js.map +1 -1
- package/lib/components/tour/src/tour2.js +151 -69
- package/lib/components/tour/src/tour2.js.map +1 -1
- package/lib/components/transfer/index.js +2 -2
- package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +1 -1
- package/lib/components/transfer/src/transfer.js +160 -73
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +73 -160
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- package/lib/index.js +7 -7
- 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,69 +2,86 @@
|
|
|
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('../../../hooks/index.js');
|
|
6
|
-
require('
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
8
|
+
var useButton = require('./use-button.js');
|
|
9
|
+
var button = require('./button.js');
|
|
10
|
+
var buttonCustom = require('./button-custom.js');
|
|
11
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
12
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
11
13
|
|
|
12
|
-
const
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
14
|
+
const __default__ = vue.defineComponent({
|
|
15
|
+
name: "ElButton"
|
|
16
|
+
});
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
18
|
+
...__default__,
|
|
19
|
+
props: button.buttonProps,
|
|
20
|
+
emits: button.buttonEmits,
|
|
21
|
+
setup(__props, { expose, emit }) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const buttonStyle = buttonCustom.useButtonCustomStyle(props);
|
|
24
|
+
const ns = index.useNamespace("button");
|
|
25
|
+
const { _ref, _size, _type, _disabled, _props, shouldAddSpace, handleClick } = useButton.useButton(props, emit);
|
|
26
|
+
const buttonKls = vue.computed(() => [
|
|
27
|
+
ns.b(),
|
|
28
|
+
ns.m(_type.value),
|
|
29
|
+
ns.m(_size.value),
|
|
30
|
+
ns.is("disabled", _disabled.value),
|
|
31
|
+
ns.is("loading", props.loading),
|
|
32
|
+
ns.is("plain", props.plain),
|
|
33
|
+
ns.is("round", props.round),
|
|
34
|
+
ns.is("circle", props.circle),
|
|
35
|
+
ns.is("text", props.text),
|
|
36
|
+
ns.is("link", props.link),
|
|
37
|
+
ns.is("has-bg", props.bg)
|
|
38
|
+
]);
|
|
39
|
+
expose({
|
|
40
|
+
ref: _ref,
|
|
41
|
+
size: _size,
|
|
42
|
+
type: _type,
|
|
43
|
+
disabled: _disabled,
|
|
44
|
+
shouldAddSpace
|
|
45
|
+
});
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), vue.mergeProps({
|
|
48
|
+
ref_key: "_ref",
|
|
49
|
+
ref: _ref
|
|
50
|
+
}, vue.unref(_props), {
|
|
51
|
+
class: vue.unref(buttonKls),
|
|
52
|
+
style: vue.unref(buttonStyle),
|
|
53
|
+
onClick: vue.unref(handleClick)
|
|
54
|
+
}), {
|
|
55
|
+
default: vue.withCtx(() => [
|
|
56
|
+
_ctx.loading ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
57
|
+
_ctx.$slots.loading ? vue.renderSlot(_ctx.$slots, "loading", { key: 0 }) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
58
|
+
key: 1,
|
|
59
|
+
class: vue.normalizeClass(vue.unref(ns).is("loading"))
|
|
60
|
+
}, {
|
|
61
|
+
default: vue.withCtx(() => [
|
|
62
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.loadingIcon)))
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 8, ["class"]))
|
|
66
|
+
], 64)) : _ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
|
|
67
|
+
default: vue.withCtx(() => [
|
|
68
|
+
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon), { key: 0 })) : vue.renderSlot(_ctx.$slots, "icon", { key: 1 })
|
|
69
|
+
]),
|
|
70
|
+
_: 3
|
|
71
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
72
|
+
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
73
|
+
key: 2,
|
|
74
|
+
class: vue.normalizeClass({ [vue.unref(ns).em("text", "expand")]: vue.unref(shouldAddSpace) })
|
|
75
|
+
}, [
|
|
76
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
77
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
78
|
+
]),
|
|
79
|
+
_: 3
|
|
80
|
+
}, 16, ["class", "style", "onClick"]);
|
|
81
|
+
};
|
|
60
82
|
}
|
|
61
83
|
});
|
|
62
|
-
|
|
63
|
-
click: (evt) => evt instanceof MouseEvent
|
|
64
|
-
};
|
|
84
|
+
var Button = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "button.vue"]]);
|
|
65
85
|
|
|
66
|
-
exports
|
|
67
|
-
exports.buttonNativeTypes = buttonNativeTypes;
|
|
68
|
-
exports.buttonProps = buttonProps;
|
|
69
|
-
exports.buttonTypes = buttonTypes;
|
|
86
|
+
exports["default"] = Button;
|
|
70
87
|
//# sourceMappingURL=button2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button2.js","sources":["../../../../../../packages/components/button/src/button.
|
|
1
|
+
{"version":3,"file":"button2.js","sources":["../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n ref=\"_ref\"\n v-bind=\"_props\"\n :class=\"buttonKls\"\n :style=\"buttonStyle\"\n @click=\"handleClick\"\n >\n <template v-if=\"loading\">\n <slot v-if=\"$slots.loading\" name=\"loading\" />\n <el-icon v-else :class=\"ns.is('loading')\">\n <component :is=\"loadingIcon\" />\n </el-icon>\n </template>\n <el-icon v-else-if=\"icon || $slots.icon\">\n <component :is=\"icon\" v-if=\"icon\" />\n <slot v-else name=\"icon\" />\n </el-icon>\n <span\n v-if=\"$slots.default\"\n :class=\"{ [ns.em('text', 'expand')]: shouldAddSpace }\"\n >\n <slot />\n </span>\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useButton } from './use-button'\nimport { buttonEmits, buttonProps } from './button'\nimport { useButtonCustomStyle } from './button-custom'\n\ndefineOptions({\n name: 'ElButton',\n})\n\nconst props = defineProps(buttonProps)\nconst emit = defineEmits(buttonEmits)\n\nconst buttonStyle = useButtonCustomStyle(props)\nconst ns = useNamespace('button')\nconst { _ref, _size, _type, _disabled, _props, shouldAddSpace, handleClick } =\n useButton(props, emit)\nconst buttonKls = computed(() => [\n ns.b(),\n ns.m(_type.value),\n ns.m(_size.value),\n ns.is('disabled', _disabled.value),\n ns.is('loading', props.loading),\n ns.is('plain', props.plain),\n ns.is('round', props.round),\n ns.is('circle', props.circle),\n ns.is('text', props.text),\n ns.is('link', props.link),\n ns.is('has-bg', props.bg),\n])\n\ndefineExpose({\n /** @description button html element */\n ref: _ref,\n /** @description button size */\n size: _size,\n /** @description button type */\n type: _type,\n /** @description button disabled */\n disabled: _disabled,\n /** @description whether adding space */\n shouldAddSpace,\n})\n</script>\n"],"names":["useButtonCustomStyle","useNamespace","useButton","computed"],"mappings":";;;;;;;;;;;;;uCAoCc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,WAAA,GAAcA,kCAAqB,KAAK,CAAA,CAAA;AAC9C,IAAM,MAAA,EAAA,GAAKC,mBAAa,QAAQ,CAAA,CAAA;AAChC,IAAM,MAAA,EAAE,IAAM,EAAA,KAAA,EAAO,KAAO,EAAA,SAAA,EAAW,QAAQ,cAAgB,EAAA,WAAA,EAAA,GAC7DC,mBAAU,CAAA,KAAA,EAAO,IAAI,CAAA,CAAA;AACvB,IAAM,MAAA,SAAA,GAAYC,aAAS,MAAM;AAAA,MAC/B,GAAG,CAAE,EAAA;AAAA,MACL,EAAA,CAAG,CAAE,CAAA,KAAA,CAAM,KAAK,CAAA;AAAA,MAChB,EAAA,CAAG,CAAE,CAAA,KAAA,CAAM,KAAK,CAAA;AAAA,MAChB,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,MACjC,EAAG,CAAA,EAAA,CAAG,SAAW,EAAA,KAAA,CAAM,OAAO,CAAA;AAAA,MAC9B,EAAG,CAAA,EAAA,CAAG,OAAS,EAAA,KAAA,CAAM,KAAK,CAAA;AAAA,MAC1B,EAAG,CAAA,EAAA,CAAG,OAAS,EAAA,KAAA,CAAM,KAAK,CAAA;AAAA,MAC1B,EAAG,CAAA,EAAA,CAAG,QAAU,EAAA,KAAA,CAAM,MAAM,CAAA;AAAA,MAC5B,EAAG,CAAA,EAAA,CAAG,MAAQ,EAAA,KAAA,CAAM,IAAI,CAAA;AAAA,MACxB,EAAG,CAAA,EAAA,CAAG,MAAQ,EAAA,KAAA,CAAM,IAAI,CAAA;AAAA,MACxB,EAAG,CAAA,EAAA,CAAG,QAAU,EAAA,KAAA,CAAM,EAAE,CAAA;AAAA,KACzB,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAEX,GAAK,EAAA,IAAA;AAAA,MAEL,IAAM,EAAA,KAAA;AAAA,MAEN,IAAM,EAAA,KAAA;AAAA,MAEN,QAAU,EAAA,SAAA;AAAA,MAEV,cAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/components/index.js
CHANGED
|
@@ -92,7 +92,7 @@ var badge = require('./badge/src/badge.js');
|
|
|
92
92
|
var breadcrumb = require('./breadcrumb/src/breadcrumb.js');
|
|
93
93
|
var breadcrumbItem = require('./breadcrumb/src/breadcrumb-item.js');
|
|
94
94
|
var constants = require('./breadcrumb/src/constants.js');
|
|
95
|
-
var button = require('./button/src/
|
|
95
|
+
var button = require('./button/src/button.js');
|
|
96
96
|
var constants$1 = require('./button/src/constants.js');
|
|
97
97
|
var calendar = require('./calendar/src/calendar.js');
|
|
98
98
|
var card = require('./card/src/card.js');
|
|
@@ -146,8 +146,8 @@ var overlay = require('./overlay/src/overlay.js');
|
|
|
146
146
|
var pageHeader = require('./page-header/src/page-header.js');
|
|
147
147
|
var pagination = require('./pagination/src/pagination.js');
|
|
148
148
|
var constants$9 = require('./pagination/src/constants.js');
|
|
149
|
-
var popconfirm = require('./popconfirm/src/
|
|
150
|
-
var popper = require('./popper/src/
|
|
149
|
+
var popconfirm = require('./popconfirm/src/popconfirm.js');
|
|
150
|
+
var popper = require('./popper/src/popper.js');
|
|
151
151
|
var trigger$1 = require('./popper/src/trigger.js');
|
|
152
152
|
var content$1 = require('./popper/src/content.js');
|
|
153
153
|
var arrow$1 = require('./popper/src/arrow.js');
|
|
@@ -158,7 +158,7 @@ var content = require('./popper/src/content2.js');
|
|
|
158
158
|
var progress = require('./progress/src/progress.js');
|
|
159
159
|
var radio = require('./radio/src/radio.js');
|
|
160
160
|
var radioGroup = require('./radio/src/radio-group.js');
|
|
161
|
-
var radioButton = require('./radio/src/radio-
|
|
161
|
+
var radioButton = require('./radio/src/radio-button.js');
|
|
162
162
|
var constants$b = require('./radio/src/constants.js');
|
|
163
163
|
var rate = require('./rate/src/rate.js');
|
|
164
164
|
var result = require('./result/src/result.js');
|
|
@@ -170,7 +170,7 @@ var thumb = require('./scrollbar/src/thumb.js');
|
|
|
170
170
|
var constants$d = require('./scrollbar/src/constants.js');
|
|
171
171
|
var token = require('./select/src/token.js');
|
|
172
172
|
var token$1 = require('./select-v2/src/token.js');
|
|
173
|
-
var skeleton = require('./skeleton/src/
|
|
173
|
+
var skeleton = require('./skeleton/src/skeleton2.js');
|
|
174
174
|
var skeletonItem = require('./skeleton/src/skeleton-item.js');
|
|
175
175
|
var slider = require('./slider/src/slider.js');
|
|
176
176
|
var constants$e = require('./slider/src/constants.js');
|
|
@@ -203,7 +203,7 @@ var tooltip = require('./tooltip/src/tooltip.js');
|
|
|
203
203
|
var trigger$2 = require('./tooltip/src/trigger.js');
|
|
204
204
|
var content$2 = require('./tooltip/src/content.js');
|
|
205
205
|
var constants$i = require('./tooltip/src/constants.js');
|
|
206
|
-
var transfer = require('./transfer/src/
|
|
206
|
+
var transfer = require('./transfer/src/transfer2.js');
|
|
207
207
|
var upload = require('./upload/src/upload.js');
|
|
208
208
|
var uploadContent = require('./upload/src/upload-content.js');
|
|
209
209
|
var uploadList = require('./upload/src/upload-list.js');
|
|
@@ -215,7 +215,7 @@ var fixedSizeGrid = require('./virtual-list/src/components/fixed-size-grid.js');
|
|
|
215
215
|
var dynamicSizeGrid = require('./virtual-list/src/components/dynamic-size-grid.js');
|
|
216
216
|
var props$1 = require('./virtual-list/src/props.js');
|
|
217
217
|
var watermark = require('./watermark/src/watermark.js');
|
|
218
|
-
var tour = require('./tour/src/
|
|
218
|
+
var tour = require('./tour/src/tour.js');
|
|
219
219
|
var anchor = require('./anchor/src/anchor.js');
|
|
220
220
|
var segmented = require('./segmented/src/segmented.js');
|
|
221
221
|
var directive = require('./loading/src/directive.js');
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var popconfirm$1 = require('./src/
|
|
7
|
-
var popconfirm = require('./src/
|
|
6
|
+
var popconfirm$1 = require('./src/popconfirm2.js');
|
|
7
|
+
var popconfirm = require('./src/popconfirm.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const ElPopconfirm = install.withInstall(popconfirm$1["default"]);
|
|
@@ -2,119 +2,57 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
var index$3 = require('../../icon/index.js');
|
|
8
|
-
var index$2 = require('../../tooltip/index.js');
|
|
9
|
-
require('../../../hooks/index.js');
|
|
5
|
+
require('../../button/index.js');
|
|
6
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
10
7
|
require('../../../utils/index.js');
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
8
|
+
require('../../tooltip/index.js');
|
|
9
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
10
|
+
var button = require('../../button/src/button.js');
|
|
11
|
+
var icon = require('../../../utils/vue/icon.js');
|
|
12
|
+
var content = require('../../tooltip/src/content.js');
|
|
16
13
|
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
trigger: "click",
|
|
53
|
-
effect: "light"
|
|
54
|
-
}, _ctx.$attrs, {
|
|
55
|
-
"popper-class": `${vue.unref(ns).namespace.value}-popover`,
|
|
56
|
-
"popper-style": vue.unref(style$1),
|
|
57
|
-
teleported: _ctx.teleported,
|
|
58
|
-
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
59
|
-
"hide-after": _ctx.hideAfter,
|
|
60
|
-
persistent: _ctx.persistent
|
|
61
|
-
}), {
|
|
62
|
-
content: vue.withCtx(() => [
|
|
63
|
-
vue.createElementVNode("div", {
|
|
64
|
-
class: vue.normalizeClass(vue.unref(ns).b())
|
|
65
|
-
}, [
|
|
66
|
-
vue.createElementVNode("div", {
|
|
67
|
-
class: vue.normalizeClass(vue.unref(ns).e("main"))
|
|
68
|
-
}, [
|
|
69
|
-
!_ctx.hideIcon && _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.ElIcon), {
|
|
70
|
-
key: 0,
|
|
71
|
-
class: vue.normalizeClass(vue.unref(ns).e("icon")),
|
|
72
|
-
style: vue.normalizeStyle({ color: _ctx.iconColor })
|
|
73
|
-
}, {
|
|
74
|
-
default: vue.withCtx(() => [
|
|
75
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
|
|
76
|
-
]),
|
|
77
|
-
_: 1
|
|
78
|
-
}, 8, ["class", "style"])) : vue.createCommentVNode("v-if", true),
|
|
79
|
-
vue.createTextVNode(" " + vue.toDisplayString(_ctx.title), 1)
|
|
80
|
-
], 2),
|
|
81
|
-
vue.createElementVNode("div", {
|
|
82
|
-
class: vue.normalizeClass(vue.unref(ns).e("action"))
|
|
83
|
-
}, [
|
|
84
|
-
vue.createVNode(vue.unref(index$4.ElButton), {
|
|
85
|
-
size: "small",
|
|
86
|
-
type: _ctx.cancelButtonType === "text" ? "" : _ctx.cancelButtonType,
|
|
87
|
-
text: _ctx.cancelButtonType === "text",
|
|
88
|
-
onClick: cancel
|
|
89
|
-
}, {
|
|
90
|
-
default: vue.withCtx(() => [
|
|
91
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(finalCancelButtonText)), 1)
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
}, 8, ["type", "text"]),
|
|
95
|
-
vue.createVNode(vue.unref(index$4.ElButton), {
|
|
96
|
-
size: "small",
|
|
97
|
-
type: _ctx.confirmButtonType === "text" ? "" : _ctx.confirmButtonType,
|
|
98
|
-
text: _ctx.confirmButtonType === "text",
|
|
99
|
-
onClick: confirm
|
|
100
|
-
}, {
|
|
101
|
-
default: vue.withCtx(() => [
|
|
102
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(finalConfirmButtonText)), 1)
|
|
103
|
-
]),
|
|
104
|
-
_: 1
|
|
105
|
-
}, 8, ["type", "text"])
|
|
106
|
-
], 2)
|
|
107
|
-
], 2)
|
|
108
|
-
]),
|
|
109
|
-
default: vue.withCtx(() => [
|
|
110
|
-
_ctx.$slots.reference ? vue.renderSlot(_ctx.$slots, "reference", { key: 0 }) : vue.createCommentVNode("v-if", true)
|
|
111
|
-
]),
|
|
112
|
-
_: 3
|
|
113
|
-
}, 16, ["popper-class", "popper-style", "teleported", "hide-after", "persistent"]);
|
|
114
|
-
};
|
|
14
|
+
const popconfirmProps = runtime.buildProps({
|
|
15
|
+
title: String,
|
|
16
|
+
confirmButtonText: String,
|
|
17
|
+
cancelButtonText: String,
|
|
18
|
+
confirmButtonType: {
|
|
19
|
+
type: String,
|
|
20
|
+
values: button.buttonTypes,
|
|
21
|
+
default: "primary"
|
|
22
|
+
},
|
|
23
|
+
cancelButtonType: {
|
|
24
|
+
type: String,
|
|
25
|
+
values: button.buttonTypes,
|
|
26
|
+
default: "text"
|
|
27
|
+
},
|
|
28
|
+
icon: {
|
|
29
|
+
type: icon.iconPropType,
|
|
30
|
+
default: () => iconsVue.QuestionFilled
|
|
31
|
+
},
|
|
32
|
+
iconColor: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "#f90"
|
|
35
|
+
},
|
|
36
|
+
hideIcon: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
39
|
+
},
|
|
40
|
+
hideAfter: {
|
|
41
|
+
type: Number,
|
|
42
|
+
default: 200
|
|
43
|
+
},
|
|
44
|
+
teleported: content.useTooltipContentProps.teleported,
|
|
45
|
+
persistent: content.useTooltipContentProps.persistent,
|
|
46
|
+
width: {
|
|
47
|
+
type: [String, Number],
|
|
48
|
+
default: 150
|
|
115
49
|
}
|
|
116
50
|
});
|
|
117
|
-
|
|
51
|
+
const popconfirmEmits = {
|
|
52
|
+
confirm: (e) => e instanceof MouseEvent,
|
|
53
|
+
cancel: (e) => e instanceof MouseEvent
|
|
54
|
+
};
|
|
118
55
|
|
|
119
|
-
exports
|
|
56
|
+
exports.popconfirmEmits = popconfirmEmits;
|
|
57
|
+
exports.popconfirmProps = popconfirmProps;
|
|
120
58
|
//# sourceMappingURL=popconfirm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popconfirm.js","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.
|
|
1
|
+
{"version":3,"file":"popconfirm.js","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.ts"],"sourcesContent":["import { buttonTypes } from '@element-plus/components/button'\nimport { QuestionFilled } from '@element-plus/icons-vue'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport type { ExtractPropTypes } from 'vue'\nimport type Popconfirm from './popconfirm.vue'\n\nexport const popconfirmProps = buildProps({\n /**\n * @description Title\n */\n title: String,\n /**\n * @description Confirm button text\n */\n confirmButtonText: String,\n /**\n * @description Cancel button text\n */\n cancelButtonText: String,\n /**\n * @description Confirm button type\n */\n confirmButtonType: {\n type: String,\n values: buttonTypes,\n default: 'primary',\n },\n /**\n * @description Cancel button type\n */\n cancelButtonType: {\n type: String,\n values: buttonTypes,\n default: 'text',\n },\n /**\n * @description Icon Component\n */\n icon: {\n type: iconPropType,\n default: () => QuestionFilled,\n },\n /**\n * @description Icon color\n */\n iconColor: {\n type: String,\n default: '#f90',\n },\n /**\n * @description is hide Icon\n */\n hideIcon: {\n type: Boolean,\n default: false,\n },\n /**\n * @description delay of disappear, in millisecond\n */\n hideAfter: {\n type: Number,\n default: 200,\n },\n /**\n * @description whether popconfirm is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed\n */\n persistent: useTooltipContentProps.persistent,\n /**\n * @description popconfirm width, min width 150px\n */\n width: {\n type: [String, Number],\n default: 150,\n },\n} as const)\n\nexport const popconfirmEmits = {\n /**\n * @description triggers when click confirm button\n */\n confirm: (e: MouseEvent) => e instanceof MouseEvent,\n /**\n * @description triggers when click cancel button\n */\n cancel: (e: MouseEvent) => e instanceof MouseEvent,\n}\n\nexport type PopconfirmEmits = typeof popconfirmEmits\n\nexport type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>\n\nexport type PopconfirmInstance = InstanceType<typeof Popconfirm>\n"],"names":["buildProps","buttonTypes","iconPropType","QuestionFilled","useTooltipContentProps"],"mappings":";;;;;;;;;;;;;AAIY,MAAC,eAAe,GAAGA,kBAAU,CAAC;AAC1C,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,iBAAiB,EAAE,MAAM;AAC3B,EAAE,gBAAgB,EAAE,MAAM;AAC1B,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,kBAAW;AACvB,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEA,kBAAW;AACvB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,IAAI,OAAO,EAAE,MAAMC,uBAAc;AACjC,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,UAAU,EAAEC,8BAAsB,CAAC,UAAU;AAC/C,EAAE,UAAU,EAAEA,8BAAsB,CAAC,UAAU;AAC/C,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;AAC/B,EAAE,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,UAAU;AACzC,EAAE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,UAAU;AACxC;;;;;"}
|
|
@@ -2,57 +2,119 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$4 = require('../../button/index.js');
|
|
7
|
+
var index$3 = require('../../icon/index.js');
|
|
8
|
+
var index$2 = require('../../tooltip/index.js');
|
|
9
|
+
require('../../../hooks/index.js');
|
|
7
10
|
require('../../../utils/index.js');
|
|
8
|
-
require('
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var popconfirm = require('./popconfirm.js');
|
|
12
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
13
|
+
var index = require('../../../hooks/use-locale/index.js');
|
|
14
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
15
|
+
var style = require('../../../utils/dom/style.js');
|
|
13
16
|
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
17
|
+
const __default__ = vue.defineComponent({
|
|
18
|
+
name: "ElPopconfirm"
|
|
19
|
+
});
|
|
20
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
21
|
+
...__default__,
|
|
22
|
+
props: popconfirm.popconfirmProps,
|
|
23
|
+
emits: popconfirm.popconfirmEmits,
|
|
24
|
+
setup(__props, { emit }) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const { t } = index.useLocale();
|
|
27
|
+
const ns = index$1.useNamespace("popconfirm");
|
|
28
|
+
const tooltipRef = vue.ref();
|
|
29
|
+
const hidePopper = () => {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
(_b = (_a = tooltipRef.value) == null ? void 0 : _a.onClose) == null ? void 0 : _b.call(_a);
|
|
32
|
+
};
|
|
33
|
+
const style$1 = vue.computed(() => {
|
|
34
|
+
return {
|
|
35
|
+
width: style.addUnit(props.width)
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
const confirm = (e) => {
|
|
39
|
+
emit("confirm", e);
|
|
40
|
+
hidePopper();
|
|
41
|
+
};
|
|
42
|
+
const cancel = (e) => {
|
|
43
|
+
emit("cancel", e);
|
|
44
|
+
hidePopper();
|
|
45
|
+
};
|
|
46
|
+
const finalConfirmButtonText = vue.computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
|
|
47
|
+
const finalCancelButtonText = vue.computed(() => props.cancelButtonText || t("el.popconfirm.cancelButtonText"));
|
|
48
|
+
return (_ctx, _cache) => {
|
|
49
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElTooltip), vue.mergeProps({
|
|
50
|
+
ref_key: "tooltipRef",
|
|
51
|
+
ref: tooltipRef,
|
|
52
|
+
trigger: "click",
|
|
53
|
+
effect: "light"
|
|
54
|
+
}, _ctx.$attrs, {
|
|
55
|
+
"popper-class": `${vue.unref(ns).namespace.value}-popover`,
|
|
56
|
+
"popper-style": vue.unref(style$1),
|
|
57
|
+
teleported: _ctx.teleported,
|
|
58
|
+
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
59
|
+
"hide-after": _ctx.hideAfter,
|
|
60
|
+
persistent: _ctx.persistent
|
|
61
|
+
}), {
|
|
62
|
+
content: vue.withCtx(() => [
|
|
63
|
+
vue.createElementVNode("div", {
|
|
64
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
|
65
|
+
}, [
|
|
66
|
+
vue.createElementVNode("div", {
|
|
67
|
+
class: vue.normalizeClass(vue.unref(ns).e("main"))
|
|
68
|
+
}, [
|
|
69
|
+
!_ctx.hideIcon && _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.ElIcon), {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: vue.normalizeClass(vue.unref(ns).e("icon")),
|
|
72
|
+
style: vue.normalizeStyle({ color: _ctx.iconColor })
|
|
73
|
+
}, {
|
|
74
|
+
default: vue.withCtx(() => [
|
|
75
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
}, 8, ["class", "style"])) : vue.createCommentVNode("v-if", true),
|
|
79
|
+
vue.createTextVNode(" " + vue.toDisplayString(_ctx.title), 1)
|
|
80
|
+
], 2),
|
|
81
|
+
vue.createElementVNode("div", {
|
|
82
|
+
class: vue.normalizeClass(vue.unref(ns).e("action"))
|
|
83
|
+
}, [
|
|
84
|
+
vue.createVNode(vue.unref(index$4.ElButton), {
|
|
85
|
+
size: "small",
|
|
86
|
+
type: _ctx.cancelButtonType === "text" ? "" : _ctx.cancelButtonType,
|
|
87
|
+
text: _ctx.cancelButtonType === "text",
|
|
88
|
+
onClick: cancel
|
|
89
|
+
}, {
|
|
90
|
+
default: vue.withCtx(() => [
|
|
91
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(finalCancelButtonText)), 1)
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}, 8, ["type", "text"]),
|
|
95
|
+
vue.createVNode(vue.unref(index$4.ElButton), {
|
|
96
|
+
size: "small",
|
|
97
|
+
type: _ctx.confirmButtonType === "text" ? "" : _ctx.confirmButtonType,
|
|
98
|
+
text: _ctx.confirmButtonType === "text",
|
|
99
|
+
onClick: confirm
|
|
100
|
+
}, {
|
|
101
|
+
default: vue.withCtx(() => [
|
|
102
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(finalConfirmButtonText)), 1)
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
}, 8, ["type", "text"])
|
|
106
|
+
], 2)
|
|
107
|
+
], 2)
|
|
108
|
+
]),
|
|
109
|
+
default: vue.withCtx(() => [
|
|
110
|
+
_ctx.$slots.reference ? vue.renderSlot(_ctx.$slots, "reference", { key: 0 }) : vue.createCommentVNode("v-if", true)
|
|
111
|
+
]),
|
|
112
|
+
_: 3
|
|
113
|
+
}, 16, ["popper-class", "popper-style", "teleported", "hide-after", "persistent"]);
|
|
114
|
+
};
|
|
49
115
|
}
|
|
50
116
|
});
|
|
51
|
-
|
|
52
|
-
confirm: (e) => e instanceof MouseEvent,
|
|
53
|
-
cancel: (e) => e instanceof MouseEvent
|
|
54
|
-
};
|
|
117
|
+
var Popconfirm = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "popconfirm.vue"]]);
|
|
55
118
|
|
|
56
|
-
exports
|
|
57
|
-
exports.popconfirmProps = popconfirmProps;
|
|
119
|
+
exports["default"] = Popconfirm;
|
|
58
120
|
//# sourceMappingURL=popconfirm2.js.map
|