@element-plus/nightly 0.0.20241126 → 0.0.20241127
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/index.full.js +4 -3
- package/dist/index.full.min.js +3 -3
- 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 +4 -3
- 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/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/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/index.mjs +2 -2
- package/es/components/table/src/table-header/index.mjs +3 -2
- package/es/components/table/src/table-header/index.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +38 -22
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +22 -38
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/tour/src/mask.mjs +19 -76
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask2.mjs +76 -19
- package/es/components/tour/src/mask2.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +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 +167 -69
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +69 -167
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/index.mjs +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/index.js +2 -2
- package/lib/components/table/src/table-header/index.js +2 -1
- package/lib/components/table/src/table-header/index.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +38 -22
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +22 -38
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/tour/src/mask.js +19 -76
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask2.js +76 -19
- package/lib/components/tour/src/mask2.js.map +1 -1
- package/lib/components/tour/src/tour2.js +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 +167 -73
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +73 -167
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- 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/theme-chalk/el-table-v2.css +1 -1
- package/theme-chalk/el-table.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +2 -2
- package/theme-chalk/src/table-v2.scss +1 -1
- package/theme-chalk/src/table.scss +1 -1
- package/web-types.json +1 -1
@@ -2,47 +2,31 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var vue = require('vue');
|
6
|
-
require('../../../hooks/index.js');
|
7
|
-
require('../../form/index.js');
|
8
5
|
require('../../../utils/index.js');
|
9
|
-
|
10
|
-
var
|
11
|
-
var
|
12
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
13
|
-
var types = require('../../../utils/types.js');
|
6
|
+
require('../../../constants/index.js');
|
7
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
8
|
+
var size = require('../../../constants/size.js');
|
14
9
|
|
15
|
-
const
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
|
34
|
-
class: vue.normalizeClass(vue.unref(textKls)),
|
35
|
-
style: vue.normalizeStyle({ "-webkit-line-clamp": _ctx.lineClamp })
|
36
|
-
}, {
|
37
|
-
default: vue.withCtx(() => [
|
38
|
-
vue.renderSlot(_ctx.$slots, "default")
|
39
|
-
]),
|
40
|
-
_: 3
|
41
|
-
}, 8, ["class", "style"]);
|
42
|
-
};
|
10
|
+
const textProps = runtime.buildProps({
|
11
|
+
type: {
|
12
|
+
type: String,
|
13
|
+
values: ["primary", "success", "info", "warning", "danger", ""],
|
14
|
+
default: ""
|
15
|
+
},
|
16
|
+
size: {
|
17
|
+
type: String,
|
18
|
+
values: size.componentSizes,
|
19
|
+
default: ""
|
20
|
+
},
|
21
|
+
truncated: Boolean,
|
22
|
+
lineClamp: {
|
23
|
+
type: [String, Number]
|
24
|
+
},
|
25
|
+
tag: {
|
26
|
+
type: String,
|
27
|
+
default: "span"
|
43
28
|
}
|
44
29
|
});
|
45
|
-
var Text = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "text.vue"]]);
|
46
30
|
|
47
|
-
exports
|
31
|
+
exports.textProps = textProps;
|
48
32
|
//# sourceMappingURL=text2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text2.js","sources":["../../../../../../packages/components/text/src/text.
|
1
|
+
{"version":3,"file":"text2.js","sources":["../../../../../../packages/components/text/src/text.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const textProps = buildProps({\n /**\n * @description text type\n */\n type: {\n type: String,\n values: ['primary', 'success', 'info', 'warning', 'danger', ''],\n default: '',\n },\n /**\n * @description text size\n */\n size: {\n type: String,\n values: componentSizes,\n default: '',\n },\n /**\n * @description render ellipsis\n */\n truncated: Boolean,\n /**\n * @description maximum lines\n */\n lineClamp: {\n type: [String, Number],\n },\n /**\n * @description custom element tag\n */\n tag: {\n type: String,\n default: 'span',\n },\n} as const)\n\nexport type TextProps = ExtractPropTypes<typeof textProps>\n"],"names":["buildProps","componentSizes"],"mappings":";;;;;;;;;AAEY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC;AACnE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,mBAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
|
@@ -2,84 +2,27 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
|
6
|
-
require('../../../
|
7
|
-
var mask = require('./mask2.js');
|
8
|
-
var helper = require('./helper.js');
|
9
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
10
|
-
var index = require('../../../hooks/use-lockscreen/index.js');
|
5
|
+
require('../../../utils/index.js');
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
11
7
|
|
12
|
-
const
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
const baseInfo = `a${v},${v} 0 0 1`;
|
29
|
-
return {
|
30
|
-
topRight: `${baseInfo} ${v},${v}`,
|
31
|
-
bottomRight: `${baseInfo} ${-v},${v}`,
|
32
|
-
bottomLeft: `${baseInfo} ${-v},${-v}`,
|
33
|
-
topLeft: `${baseInfo} ${v},${-v}`
|
34
|
-
};
|
35
|
-
});
|
36
|
-
const path = vue.computed(() => {
|
37
|
-
const width = window.innerWidth;
|
38
|
-
const height = window.innerHeight;
|
39
|
-
const info = roundInfo.value;
|
40
|
-
const _path = `M${width},0 L0,0 L0,${height} L${width},${height} L${width},0 Z`;
|
41
|
-
const _radius = radius.value;
|
42
|
-
return props.pos ? `${_path} M${props.pos.left + _radius},${props.pos.top} h${props.pos.width - _radius * 2} ${info.topRight} v${props.pos.height - _radius * 2} ${info.bottomRight} h${-props.pos.width + _radius * 2} ${info.bottomLeft} v${-props.pos.height + _radius * 2} ${info.topLeft} z` : _path;
|
43
|
-
});
|
44
|
-
const pathStyle = vue.computed(() => {
|
45
|
-
return {
|
46
|
-
fill: props.fill,
|
47
|
-
pointerEvents: "auto",
|
48
|
-
cursor: "auto"
|
49
|
-
};
|
50
|
-
});
|
51
|
-
index.useLockscreen(vue.toRef(props, "visible"), {
|
52
|
-
ns
|
53
|
-
});
|
54
|
-
return (_ctx, _cache) => {
|
55
|
-
return _ctx.visible ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
56
|
-
key: 0,
|
57
|
-
class: vue.unref(ns).e("mask"),
|
58
|
-
style: {
|
59
|
-
position: "fixed",
|
60
|
-
left: 0,
|
61
|
-
right: 0,
|
62
|
-
top: 0,
|
63
|
-
bottom: 0,
|
64
|
-
zIndex: _ctx.zIndex,
|
65
|
-
pointerEvents: _ctx.pos && _ctx.targetAreaClickable ? "none" : "auto"
|
66
|
-
}
|
67
|
-
}, _ctx.$attrs), [
|
68
|
-
(vue.openBlock(), vue.createElementBlock("svg", { style: {
|
69
|
-
width: "100%",
|
70
|
-
height: "100%"
|
71
|
-
} }, [
|
72
|
-
vue.createElementVNode("path", {
|
73
|
-
class: vue.normalizeClass(vue.unref(ns).e("hollow")),
|
74
|
-
style: vue.normalizeStyle(vue.unref(pathStyle)),
|
75
|
-
d: vue.unref(path)
|
76
|
-
}, null, 14, ["d"])
|
77
|
-
]))
|
78
|
-
], 16)) : vue.createCommentVNode("v-if", true);
|
79
|
-
};
|
8
|
+
const maskProps = runtime.buildProps({
|
9
|
+
zIndex: {
|
10
|
+
type: Number,
|
11
|
+
default: 1001
|
12
|
+
},
|
13
|
+
visible: Boolean,
|
14
|
+
fill: {
|
15
|
+
type: String,
|
16
|
+
default: "rgba(0,0,0,0.5)"
|
17
|
+
},
|
18
|
+
pos: {
|
19
|
+
type: runtime.definePropType(Object)
|
20
|
+
},
|
21
|
+
targetAreaClickable: {
|
22
|
+
type: Boolean,
|
23
|
+
default: true
|
80
24
|
}
|
81
25
|
});
|
82
|
-
var ElTourMask = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "mask.vue"]]);
|
83
26
|
|
84
|
-
exports
|
27
|
+
exports.maskProps = maskProps;
|
85
28
|
//# sourceMappingURL=mask.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mask.js","sources":["../../../../../../packages/components/tour/src/mask.
|
1
|
+
{"version":3,"file":"mask.js","sources":["../../../../../../packages/components/tour/src/mask.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { PosInfo } from './types'\n\nexport const maskProps = buildProps({\n /**\n * @description mask's zIndex\n */\n zIndex: {\n type: Number,\n default: 1001,\n },\n /**\n * @description whether to show the mask\n */\n visible: Boolean,\n /**\n * @description mask's fill\n */\n fill: {\n type: String,\n default: 'rgba(0,0,0,0.5)',\n },\n /***\n * @description mask's transparent space position\n */\n pos: {\n type: definePropType<PosInfo | null>(Object),\n },\n /**\n * @description whether the target element can be clickable, when using mask\n */\n targetAreaClickable: {\n type: Boolean,\n default: true,\n },\n})\n\nexport type MaskProps = ExtractPropTypes<typeof maskProps>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,iBAAiB;AAC9B,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,mBAAmB,EAAE;AACvB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC;;;;"}
|
@@ -2,27 +2,84 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
require('
|
6
|
-
|
5
|
+
var vue = require('vue');
|
6
|
+
require('../../../hooks/index.js');
|
7
|
+
var mask = require('./mask.js');
|
8
|
+
var helper = require('./helper.js');
|
9
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
10
|
+
var index = require('../../../hooks/use-lockscreen/index.js');
|
7
11
|
|
8
|
-
const
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
12
|
+
const __default__ = vue.defineComponent({
|
13
|
+
name: "ElTourMask",
|
14
|
+
inheritAttrs: false
|
15
|
+
});
|
16
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
17
|
+
...__default__,
|
18
|
+
props: mask.maskProps,
|
19
|
+
setup(__props) {
|
20
|
+
const props = __props;
|
21
|
+
const { ns } = vue.inject(helper.tourKey);
|
22
|
+
const radius = vue.computed(() => {
|
23
|
+
var _a, _b;
|
24
|
+
return (_b = (_a = props.pos) == null ? void 0 : _a.radius) != null ? _b : 2;
|
25
|
+
});
|
26
|
+
const roundInfo = vue.computed(() => {
|
27
|
+
const v = radius.value;
|
28
|
+
const baseInfo = `a${v},${v} 0 0 1`;
|
29
|
+
return {
|
30
|
+
topRight: `${baseInfo} ${v},${v}`,
|
31
|
+
bottomRight: `${baseInfo} ${-v},${v}`,
|
32
|
+
bottomLeft: `${baseInfo} ${-v},${-v}`,
|
33
|
+
topLeft: `${baseInfo} ${v},${-v}`
|
34
|
+
};
|
35
|
+
});
|
36
|
+
const path = vue.computed(() => {
|
37
|
+
const width = window.innerWidth;
|
38
|
+
const height = window.innerHeight;
|
39
|
+
const info = roundInfo.value;
|
40
|
+
const _path = `M${width},0 L0,0 L0,${height} L${width},${height} L${width},0 Z`;
|
41
|
+
const _radius = radius.value;
|
42
|
+
return props.pos ? `${_path} M${props.pos.left + _radius},${props.pos.top} h${props.pos.width - _radius * 2} ${info.topRight} v${props.pos.height - _radius * 2} ${info.bottomRight} h${-props.pos.width + _radius * 2} ${info.bottomLeft} v${-props.pos.height + _radius * 2} ${info.topLeft} z` : _path;
|
43
|
+
});
|
44
|
+
const pathStyle = vue.computed(() => {
|
45
|
+
return {
|
46
|
+
fill: props.fill,
|
47
|
+
pointerEvents: "auto",
|
48
|
+
cursor: "auto"
|
49
|
+
};
|
50
|
+
});
|
51
|
+
index.useLockscreen(vue.toRef(props, "visible"), {
|
52
|
+
ns
|
53
|
+
});
|
54
|
+
return (_ctx, _cache) => {
|
55
|
+
return _ctx.visible ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
56
|
+
key: 0,
|
57
|
+
class: vue.unref(ns).e("mask"),
|
58
|
+
style: {
|
59
|
+
position: "fixed",
|
60
|
+
left: 0,
|
61
|
+
right: 0,
|
62
|
+
top: 0,
|
63
|
+
bottom: 0,
|
64
|
+
zIndex: _ctx.zIndex,
|
65
|
+
pointerEvents: _ctx.pos && _ctx.targetAreaClickable ? "none" : "auto"
|
66
|
+
}
|
67
|
+
}, _ctx.$attrs), [
|
68
|
+
(vue.openBlock(), vue.createElementBlock("svg", { style: {
|
69
|
+
width: "100%",
|
70
|
+
height: "100%"
|
71
|
+
} }, [
|
72
|
+
vue.createElementVNode("path", {
|
73
|
+
class: vue.normalizeClass(vue.unref(ns).e("hollow")),
|
74
|
+
style: vue.normalizeStyle(vue.unref(pathStyle)),
|
75
|
+
d: vue.unref(path)
|
76
|
+
}, null, 14, ["d"])
|
77
|
+
]))
|
78
|
+
], 16)) : vue.createCommentVNode("v-if", true);
|
79
|
+
};
|
24
80
|
}
|
25
81
|
});
|
82
|
+
var ElTourMask = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "mask.vue"]]);
|
26
83
|
|
27
|
-
exports
|
84
|
+
exports["default"] = ElTourMask;
|
28
85
|
//# sourceMappingURL=mask2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mask2.js","sources":["../../../../../../packages/components/tour/src/mask.
|
1
|
+
{"version":3,"file":"mask2.js","sources":["../../../../../../packages/components/tour/src/mask.vue"],"sourcesContent":["<template>\n <div\n v-if=\"visible\"\n :class=\"ns.e('mask')\"\n :style=\"({\n position: 'fixed',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n zIndex,\n pointerEvents: pos && targetAreaClickable ? 'none' : 'auto',\n } as any)\"\n v-bind=\"$attrs\"\n >\n <svg\n :style=\"{\n width: '100%',\n height: '100%',\n }\"\n >\n <path :class=\"ns.e('hollow')\" :style=\"pathStyle\" :d=\"path\" />\n </svg>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, inject, toRef } from 'vue'\nimport { useLockscreen } from '@element-plus/hooks'\nimport { maskProps } from './mask'\nimport { tourKey } from './helper'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElTourMask',\n inheritAttrs: false,\n})\n\nconst props = defineProps(maskProps)\n\nconst { ns } = inject(tourKey)!\nconst radius = computed(() => props.pos?.radius ?? 2)\nconst roundInfo = computed(() => {\n const v = radius.value\n const baseInfo = `a${v},${v} 0 0 1`\n return {\n topRight: `${baseInfo} ${v},${v}`,\n bottomRight: `${baseInfo} ${-v},${v}`,\n bottomLeft: `${baseInfo} ${-v},${-v}`,\n topLeft: `${baseInfo} ${v},${-v}`,\n }\n})\n\nconst path = computed(() => {\n const width = window.innerWidth\n const height = window.innerHeight\n const info = roundInfo.value\n const _path = `M${width},0 L0,0 L0,${height} L${width},${height} L${width},0 Z`\n const _radius = radius.value\n return props.pos\n ? `${_path} M${props.pos.left + _radius},${props.pos.top} h${\n props.pos.width - _radius * 2\n } ${info.topRight} v${props.pos.height - _radius * 2} ${\n info.bottomRight\n } h${-props.pos.width + _radius * 2} ${info.bottomLeft} v${\n -props.pos.height + _radius * 2\n } ${info.topLeft} z`\n : _path\n})\n\nconst pathStyle = computed<CSSProperties>(() => {\n return {\n fill: props.fill,\n pointerEvents: 'auto',\n cursor: 'auto',\n }\n})\n\nuseLockscreen(toRef(props, 'visible'), {\n ns,\n})\n</script>\n"],"names":["inject","tourKey","computed"],"mappings":"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"}
|
@@ -7,7 +7,7 @@ var core = require('@vueuse/core');
|
|
7
7
|
require('../../../hooks/index.js');
|
8
8
|
require('../../../utils/index.js');
|
9
9
|
var index$2 = require('../../teleport/index.js');
|
10
|
-
var mask = require('./
|
10
|
+
var mask = require('./mask2.js');
|
11
11
|
var content = require('./content2.js');
|
12
12
|
var steps = require('./steps.js');
|
13
13
|
var tour = require('./tour.js');
|
@@ -3,8 +3,8 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
require('../../utils/index.js');
|
6
|
-
var transfer$1 = require('./src/
|
7
|
-
var transfer = require('./src/
|
6
|
+
var transfer$1 = require('./src/transfer.js');
|
7
|
+
var transfer = require('./src/transfer2.js');
|
8
8
|
var install = require('../../utils/vue/install.js');
|
9
9
|
|
10
10
|
const ElTransfer = install.withInstall(transfer$1["default"]);
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
require('../../../utils/index.js');
|
6
|
-
var transfer = require('./
|
6
|
+
var transfer = require('./transfer2.js');
|
7
7
|
var runtime = require('../../../utils/vue/props/runtime.js');
|
8
8
|
|
9
9
|
const CHECKED_CHANGE_EVENT = "checked-change";
|
@@ -2,82 +2,176 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
5
|
+
var vue = require('vue');
|
6
6
|
require('../../../utils/index.js');
|
7
|
-
require('../../../
|
8
|
-
var
|
9
|
-
var
|
10
|
-
|
11
|
-
var
|
7
|
+
require('../../../hooks/index.js');
|
8
|
+
var index$2 = require('../../button/index.js');
|
9
|
+
var index$3 = require('../../icon/index.js');
|
10
|
+
require('../../form/index.js');
|
11
|
+
var iconsVue = require('@element-plus/icons-vue');
|
12
|
+
var transfer = require('./transfer2.js');
|
13
|
+
require('./composables/index.js');
|
14
|
+
var transferPanel = require('./transfer-panel2.js');
|
15
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
16
|
+
var index = require('../../../hooks/use-locale/index.js');
|
17
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
18
|
+
var useFormItem = require('../../form/src/hooks/use-form-item.js');
|
19
|
+
var usePropsAlias = require('./composables/use-props-alias.js');
|
20
|
+
var useComputedData = require('./composables/use-computed-data.js');
|
21
|
+
var useCheckedChange = require('./composables/use-checked-change.js');
|
22
|
+
var useMove = require('./composables/use-move.js');
|
23
|
+
var error = require('../../../utils/error.js');
|
24
|
+
var types = require('../../../utils/types.js');
|
12
25
|
|
13
|
-
const
|
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
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
26
|
+
const __default__ = vue.defineComponent({
|
27
|
+
name: "ElTransfer"
|
28
|
+
});
|
29
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
30
|
+
...__default__,
|
31
|
+
props: transfer.transferProps,
|
32
|
+
emits: transfer.transferEmits,
|
33
|
+
setup(__props, { expose, emit }) {
|
34
|
+
const props = __props;
|
35
|
+
const slots = vue.useSlots();
|
36
|
+
const { t } = index.useLocale();
|
37
|
+
const ns = index$1.useNamespace("transfer");
|
38
|
+
const { formItem } = useFormItem.useFormItem();
|
39
|
+
const checkedState = vue.reactive({
|
40
|
+
leftChecked: [],
|
41
|
+
rightChecked: []
|
42
|
+
});
|
43
|
+
const propsAlias = usePropsAlias.usePropsAlias(props);
|
44
|
+
const { sourceData, targetData } = useComputedData.useComputedData(props);
|
45
|
+
const { onSourceCheckedChange, onTargetCheckedChange } = useCheckedChange.useCheckedChange(checkedState, emit);
|
46
|
+
const { addToLeft, addToRight } = useMove.useMove(props, checkedState, emit);
|
47
|
+
const leftPanel = vue.ref();
|
48
|
+
const rightPanel = vue.ref();
|
49
|
+
const clearQuery = (which) => {
|
50
|
+
switch (which) {
|
51
|
+
case "left":
|
52
|
+
leftPanel.value.query = "";
|
53
|
+
break;
|
54
|
+
case "right":
|
55
|
+
rightPanel.value.query = "";
|
56
|
+
break;
|
57
|
+
}
|
58
|
+
};
|
59
|
+
const hasButtonTexts = vue.computed(() => props.buttonTexts.length === 2);
|
60
|
+
const leftPanelTitle = vue.computed(() => props.titles[0] || t("el.transfer.titles.0"));
|
61
|
+
const rightPanelTitle = vue.computed(() => props.titles[1] || t("el.transfer.titles.1"));
|
62
|
+
const panelFilterPlaceholder = vue.computed(() => props.filterPlaceholder || t("el.transfer.filterPlaceholder"));
|
63
|
+
vue.watch(() => props.modelValue, () => {
|
64
|
+
var _a;
|
65
|
+
if (props.validateEvent) {
|
66
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => error.debugWarn(err));
|
67
|
+
}
|
68
|
+
});
|
69
|
+
const optionRender = vue.computed(() => (option) => {
|
70
|
+
var _a;
|
71
|
+
if (props.renderContent)
|
72
|
+
return props.renderContent(vue.h, option);
|
73
|
+
const defaultSlotVNodes = (((_a = slots.default) == null ? void 0 : _a.call(slots, { option })) || []).filter((node) => node.type !== vue.Comment);
|
74
|
+
if (defaultSlotVNodes.length) {
|
75
|
+
return defaultSlotVNodes;
|
76
|
+
}
|
77
|
+
return vue.h("span", option[propsAlias.value.label] || option[propsAlias.value.key]);
|
78
|
+
});
|
79
|
+
expose({
|
80
|
+
clearQuery,
|
81
|
+
leftPanel,
|
82
|
+
rightPanel
|
83
|
+
});
|
84
|
+
return (_ctx, _cache) => {
|
85
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
86
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
87
|
+
}, [
|
88
|
+
vue.createVNode(transferPanel["default"], {
|
89
|
+
ref_key: "leftPanel",
|
90
|
+
ref: leftPanel,
|
91
|
+
data: vue.unref(sourceData),
|
92
|
+
"option-render": vue.unref(optionRender),
|
93
|
+
placeholder: vue.unref(panelFilterPlaceholder),
|
94
|
+
title: vue.unref(leftPanelTitle),
|
95
|
+
filterable: _ctx.filterable,
|
96
|
+
format: _ctx.format,
|
97
|
+
"filter-method": _ctx.filterMethod,
|
98
|
+
"default-checked": _ctx.leftDefaultChecked,
|
99
|
+
props: props.props,
|
100
|
+
onCheckedChange: vue.unref(onSourceCheckedChange)
|
101
|
+
}, {
|
102
|
+
empty: vue.withCtx(() => [
|
103
|
+
vue.renderSlot(_ctx.$slots, "left-empty")
|
104
|
+
]),
|
105
|
+
default: vue.withCtx(() => [
|
106
|
+
vue.renderSlot(_ctx.$slots, "left-footer")
|
107
|
+
]),
|
108
|
+
_: 3
|
109
|
+
}, 8, ["data", "option-render", "placeholder", "title", "filterable", "format", "filter-method", "default-checked", "props", "onCheckedChange"]),
|
110
|
+
vue.createElementVNode("div", {
|
111
|
+
class: vue.normalizeClass(vue.unref(ns).e("buttons"))
|
112
|
+
}, [
|
113
|
+
vue.createVNode(vue.unref(index$2.ElButton), {
|
114
|
+
type: "primary",
|
115
|
+
class: vue.normalizeClass([vue.unref(ns).e("button"), vue.unref(ns).is("with-texts", vue.unref(hasButtonTexts))]),
|
116
|
+
disabled: vue.unref(types.isEmpty)(checkedState.rightChecked),
|
117
|
+
onClick: vue.unref(addToLeft)
|
118
|
+
}, {
|
119
|
+
default: vue.withCtx(() => [
|
120
|
+
vue.createVNode(vue.unref(index$3.ElIcon), null, {
|
121
|
+
default: vue.withCtx(() => [
|
122
|
+
vue.createVNode(vue.unref(iconsVue.ArrowLeft))
|
123
|
+
]),
|
124
|
+
_: 1
|
125
|
+
}),
|
126
|
+
!vue.unref(types.isUndefined)(_ctx.buttonTexts[0]) ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(_ctx.buttonTexts[0]), 1)) : vue.createCommentVNode("v-if", true)
|
127
|
+
]),
|
128
|
+
_: 1
|
129
|
+
}, 8, ["class", "disabled", "onClick"]),
|
130
|
+
vue.createVNode(vue.unref(index$2.ElButton), {
|
131
|
+
type: "primary",
|
132
|
+
class: vue.normalizeClass([vue.unref(ns).e("button"), vue.unref(ns).is("with-texts", vue.unref(hasButtonTexts))]),
|
133
|
+
disabled: vue.unref(types.isEmpty)(checkedState.leftChecked),
|
134
|
+
onClick: vue.unref(addToRight)
|
135
|
+
}, {
|
136
|
+
default: vue.withCtx(() => [
|
137
|
+
!vue.unref(types.isUndefined)(_ctx.buttonTexts[1]) ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(_ctx.buttonTexts[1]), 1)) : vue.createCommentVNode("v-if", true),
|
138
|
+
vue.createVNode(vue.unref(index$3.ElIcon), null, {
|
139
|
+
default: vue.withCtx(() => [
|
140
|
+
vue.createVNode(vue.unref(iconsVue.ArrowRight))
|
141
|
+
]),
|
142
|
+
_: 1
|
143
|
+
})
|
144
|
+
]),
|
145
|
+
_: 1
|
146
|
+
}, 8, ["class", "disabled", "onClick"])
|
147
|
+
], 2),
|
148
|
+
vue.createVNode(transferPanel["default"], {
|
149
|
+
ref_key: "rightPanel",
|
150
|
+
ref: rightPanel,
|
151
|
+
data: vue.unref(targetData),
|
152
|
+
"option-render": vue.unref(optionRender),
|
153
|
+
placeholder: vue.unref(panelFilterPlaceholder),
|
154
|
+
filterable: _ctx.filterable,
|
155
|
+
format: _ctx.format,
|
156
|
+
"filter-method": _ctx.filterMethod,
|
157
|
+
title: vue.unref(rightPanelTitle),
|
158
|
+
"default-checked": _ctx.rightDefaultChecked,
|
159
|
+
props: props.props,
|
160
|
+
onCheckedChange: vue.unref(onTargetCheckedChange)
|
161
|
+
}, {
|
162
|
+
empty: vue.withCtx(() => [
|
163
|
+
vue.renderSlot(_ctx.$slots, "right-empty")
|
164
|
+
]),
|
165
|
+
default: vue.withCtx(() => [
|
166
|
+
vue.renderSlot(_ctx.$slots, "right-footer")
|
167
|
+
]),
|
168
|
+
_: 3
|
169
|
+
}, 8, ["data", "option-render", "placeholder", "filterable", "format", "filter-method", "title", "default-checked", "props", "onCheckedChange"])
|
170
|
+
], 2);
|
171
|
+
};
|
68
172
|
}
|
69
173
|
});
|
70
|
-
|
71
|
-
const transferEmits = {
|
72
|
-
[event.CHANGE_EVENT]: (value, direction, movedKeys) => [value, movedKeys].every(shared.isArray) && ["left", "right"].includes(direction),
|
73
|
-
[event.UPDATE_MODEL_EVENT]: (value) => shared.isArray(value),
|
74
|
-
[LEFT_CHECK_CHANGE_EVENT]: transferCheckedChangeFn,
|
75
|
-
[RIGHT_CHECK_CHANGE_EVENT]: transferCheckedChangeFn
|
76
|
-
};
|
174
|
+
var Transfer = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "transfer.vue"]]);
|
77
175
|
|
78
|
-
exports
|
79
|
-
exports.RIGHT_CHECK_CHANGE_EVENT = RIGHT_CHECK_CHANGE_EVENT;
|
80
|
-
exports.transferCheckedChangeFn = transferCheckedChangeFn;
|
81
|
-
exports.transferEmits = transferEmits;
|
82
|
-
exports.transferProps = transferProps;
|
176
|
+
exports["default"] = Transfer;
|
83
177
|
//# sourceMappingURL=transfer.js.map
|