@element-plus/nightly 0.0.20240626 → 0.0.20240627
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/icon/index.mjs +2 -2
- package/es/components/icon/src/icon.mjs +36 -8
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +8 -36
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/index.mjs +3 -3
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item-group.mjs +4 -35
- package/es/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group2.mjs +35 -4
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +38 -24
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +24 -38
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +19 -128
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +128 -19
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/index.mjs +3 -3
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/src/icon.js +36 -8
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +8 -36
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/index.js +3 -3
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item-group.js +4 -35
- package/lib/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/components/menu/src/menu-item-group2.js +35 -4
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +38 -24
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +24 -38
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +21 -128
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +128 -21
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/index.js +3 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sources":["../../../../../../packages/components/text/src/text.
|
|
1
|
+
{"version":3,"file":"text.js","sources":["../../../../../../packages/components/text/src/text.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n :class=\"textKls\"\n :style=\"{ '-webkit-line-clamp': lineClamp }\"\n >\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\nimport { isUndefined } from '@element-plus/utils'\nimport { textProps } from './text'\n\ndefineOptions({\n name: 'ElText',\n})\n\nconst props = defineProps(textProps)\n\nconst textSize = useFormSize()\nconst ns = useNamespace('text')\n\nconst textKls = computed(() => [\n ns.b(),\n ns.m(props.type),\n ns.m(textSize.value),\n ns.is('truncated', props.truncated),\n ns.is('line-clamp', !isUndefined(props.lineClamp)),\n])\n</script>\n"],"names":["useFormSize","useNamespace","computed","isUndefined"],"mappings":";;;;;;;;;;;;;;uCAiBc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,WAAWA,8BAAY,EAAA,CAAA;AAC7B,IAAM,MAAA,EAAA,GAAKC,mBAAa,MAAM,CAAA,CAAA;AAE9B,IAAM,MAAA,OAAA,GAAUC,aAAS,MAAM;AAAA,MAC7B,GAAG,CAAE,EAAA;AAAA,MACL,EAAA,CAAG,CAAE,CAAA,KAAA,CAAM,IAAI,CAAA;AAAA,MACf,EAAA,CAAG,CAAE,CAAA,QAAA,CAAS,KAAK,CAAA;AAAA,MACnB,EAAG,CAAA,EAAA,CAAG,WAAa,EAAA,KAAA,CAAM,SAAS,CAAA;AAAA,MAClC,GAAG,EAAG,CAAA,YAAA,EAAc,CAACC,iBAAY,CAAA,KAAA,CAAM,SAAS,CAAC,CAAA;AAAA,KAClD,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,47 +2,33 @@
|
|
|
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
|
-
|
|
34
|
-
|
|
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: {
|
|
22
|
+
type: Boolean
|
|
23
|
+
},
|
|
24
|
+
lineClamp: {
|
|
25
|
+
type: [String, Number]
|
|
26
|
+
},
|
|
27
|
+
tag: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "span"
|
|
43
30
|
}
|
|
44
31
|
});
|
|
45
|
-
var Text = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "text.vue"]]);
|
|
46
32
|
|
|
47
|
-
exports
|
|
33
|
+
exports.textProps = textProps;
|
|
48
34
|
//# 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: {\n type: Boolean,\n },\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;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,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;;;;"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
require('../../../../utils/index.js');
|
|
7
|
-
var transferPanel = require('../transfer-
|
|
7
|
+
var transferPanel = require('../transfer-panel.js');
|
|
8
8
|
var usePropsAlias = require('./use-props-alias.js');
|
|
9
9
|
var shared = require('@vue/shared');
|
|
10
10
|
|
|
@@ -2,136 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
5
|
require('../../../utils/index.js');
|
|
7
|
-
require('
|
|
8
|
-
var
|
|
9
|
-
var index$3 = require('../../input/index.js');
|
|
10
|
-
var iconsVue = require('@element-plus/icons-vue');
|
|
11
|
-
var transferPanel = require('./transfer-panel2.js');
|
|
12
|
-
require('./composables/index.js');
|
|
13
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
|
-
var index = require('../../../hooks/use-locale/index.js');
|
|
15
|
-
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
16
|
-
var usePropsAlias = require('./composables/use-props-alias.js');
|
|
17
|
-
var useCheck = require('./composables/use-check.js');
|
|
18
|
-
var types = require('../../../utils/types.js');
|
|
6
|
+
var transfer = require('./transfer.js');
|
|
7
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
19
8
|
|
|
20
|
-
const
|
|
21
|
-
|
|
9
|
+
const CHECKED_CHANGE_EVENT = "checked-change";
|
|
10
|
+
const transferPanelProps = runtime.buildProps({
|
|
11
|
+
data: transfer.transferProps.data,
|
|
12
|
+
optionRender: {
|
|
13
|
+
type: runtime.definePropType(Function)
|
|
14
|
+
},
|
|
15
|
+
placeholder: String,
|
|
16
|
+
title: String,
|
|
17
|
+
filterable: Boolean,
|
|
18
|
+
format: transfer.transferProps.format,
|
|
19
|
+
filterMethod: transfer.transferProps.filterMethod,
|
|
20
|
+
defaultChecked: transfer.transferProps.leftDefaultChecked,
|
|
21
|
+
props: transfer.transferProps.props
|
|
22
22
|
});
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
emits: transferPanel.transferPanelEmits,
|
|
27
|
-
setup(__props, { expose, emit }) {
|
|
28
|
-
const props = __props;
|
|
29
|
-
const slots = vue.useSlots();
|
|
30
|
-
const OptionContent = ({ option }) => option;
|
|
31
|
-
const { t } = index.useLocale();
|
|
32
|
-
const ns = index$1.useNamespace("transfer");
|
|
33
|
-
const panelState = vue.reactive({
|
|
34
|
-
checked: [],
|
|
35
|
-
allChecked: false,
|
|
36
|
-
query: "",
|
|
37
|
-
checkChangeByUser: true
|
|
38
|
-
});
|
|
39
|
-
const propsAlias = usePropsAlias.usePropsAlias(props);
|
|
40
|
-
const {
|
|
41
|
-
filteredData,
|
|
42
|
-
checkedSummary,
|
|
43
|
-
isIndeterminate,
|
|
44
|
-
handleAllCheckedChange
|
|
45
|
-
} = useCheck.useCheck(props, panelState, emit);
|
|
46
|
-
const hasNoMatch = vue.computed(() => !types.isEmpty(panelState.query) && types.isEmpty(filteredData.value));
|
|
47
|
-
const hasFooter = vue.computed(() => !types.isEmpty(slots.default()[0].children));
|
|
48
|
-
const { checked, allChecked, query } = vue.toRefs(panelState);
|
|
49
|
-
expose({
|
|
50
|
-
query
|
|
51
|
-
});
|
|
52
|
-
return (_ctx, _cache) => {
|
|
53
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
54
|
-
class: vue.normalizeClass(vue.unref(ns).b("panel"))
|
|
55
|
-
}, [
|
|
56
|
-
vue.createElementVNode("p", {
|
|
57
|
-
class: vue.normalizeClass(vue.unref(ns).be("panel", "header"))
|
|
58
|
-
}, [
|
|
59
|
-
vue.createVNode(vue.unref(index$2.ElCheckbox), {
|
|
60
|
-
modelValue: vue.unref(allChecked),
|
|
61
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(allChecked) ? allChecked.value = $event : null),
|
|
62
|
-
indeterminate: vue.unref(isIndeterminate),
|
|
63
|
-
"validate-event": false,
|
|
64
|
-
onChange: vue.unref(handleAllCheckedChange)
|
|
65
|
-
}, {
|
|
66
|
-
default: vue.withCtx(() => [
|
|
67
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.title) + " ", 1),
|
|
68
|
-
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(checkedSummary)), 1)
|
|
69
|
-
]),
|
|
70
|
-
_: 1
|
|
71
|
-
}, 8, ["modelValue", "indeterminate", "onChange"])
|
|
72
|
-
], 2),
|
|
73
|
-
vue.createElementVNode("div", {
|
|
74
|
-
class: vue.normalizeClass([vue.unref(ns).be("panel", "body"), vue.unref(ns).is("with-footer", vue.unref(hasFooter))])
|
|
75
|
-
}, [
|
|
76
|
-
_ctx.filterable ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.ElInput), {
|
|
77
|
-
key: 0,
|
|
78
|
-
modelValue: vue.unref(query),
|
|
79
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(query) ? query.value = $event : null),
|
|
80
|
-
class: vue.normalizeClass(vue.unref(ns).be("panel", "filter")),
|
|
81
|
-
size: "default",
|
|
82
|
-
placeholder: _ctx.placeholder,
|
|
83
|
-
"prefix-icon": vue.unref(iconsVue.Search),
|
|
84
|
-
clearable: "",
|
|
85
|
-
"validate-event": false
|
|
86
|
-
}, null, 8, ["modelValue", "class", "placeholder", "prefix-icon"])) : vue.createCommentVNode("v-if", true),
|
|
87
|
-
vue.withDirectives(vue.createVNode(vue.unref(index$2.ElCheckboxGroup), {
|
|
88
|
-
modelValue: vue.unref(checked),
|
|
89
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(checked) ? checked.value = $event : null),
|
|
90
|
-
"validate-event": false,
|
|
91
|
-
class: vue.normalizeClass([vue.unref(ns).is("filterable", _ctx.filterable), vue.unref(ns).be("panel", "list")])
|
|
92
|
-
}, {
|
|
93
|
-
default: vue.withCtx(() => [
|
|
94
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(filteredData), (item) => {
|
|
95
|
-
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElCheckbox), {
|
|
96
|
-
key: item[vue.unref(propsAlias).key],
|
|
97
|
-
class: vue.normalizeClass(vue.unref(ns).be("panel", "item")),
|
|
98
|
-
value: item[vue.unref(propsAlias).key],
|
|
99
|
-
disabled: item[vue.unref(propsAlias).disabled],
|
|
100
|
-
"validate-event": false
|
|
101
|
-
}, {
|
|
102
|
-
default: vue.withCtx(() => {
|
|
103
|
-
var _a;
|
|
104
|
-
return [
|
|
105
|
-
vue.createVNode(OptionContent, {
|
|
106
|
-
option: (_a = _ctx.optionRender) == null ? void 0 : _a.call(_ctx, item)
|
|
107
|
-
}, null, 8, ["option"])
|
|
108
|
-
];
|
|
109
|
-
}),
|
|
110
|
-
_: 2
|
|
111
|
-
}, 1032, ["class", "value", "disabled"]);
|
|
112
|
-
}), 128))
|
|
113
|
-
]),
|
|
114
|
-
_: 1
|
|
115
|
-
}, 8, ["modelValue", "class"]), [
|
|
116
|
-
[vue.vShow, !vue.unref(hasNoMatch) && !vue.unref(types.isEmpty)(_ctx.data)]
|
|
117
|
-
]),
|
|
118
|
-
vue.withDirectives(vue.createElementVNode("p", {
|
|
119
|
-
class: vue.normalizeClass(vue.unref(ns).be("panel", "empty"))
|
|
120
|
-
}, vue.toDisplayString(vue.unref(hasNoMatch) ? vue.unref(t)("el.transfer.noMatch") : vue.unref(t)("el.transfer.noData")), 3), [
|
|
121
|
-
[vue.vShow, vue.unref(hasNoMatch) || vue.unref(types.isEmpty)(_ctx.data)]
|
|
122
|
-
])
|
|
123
|
-
], 2),
|
|
124
|
-
vue.unref(hasFooter) ? (vue.openBlock(), vue.createElementBlock("p", {
|
|
125
|
-
key: 0,
|
|
126
|
-
class: vue.normalizeClass(vue.unref(ns).be("panel", "footer"))
|
|
127
|
-
}, [
|
|
128
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
129
|
-
], 2)) : vue.createCommentVNode("v-if", true)
|
|
130
|
-
], 2);
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
var TransferPanel = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "transfer-panel.vue"]]);
|
|
23
|
+
const transferPanelEmits = {
|
|
24
|
+
[CHECKED_CHANGE_EVENT]: transfer.transferCheckedChangeFn
|
|
25
|
+
};
|
|
135
26
|
|
|
136
|
-
exports
|
|
27
|
+
exports.CHECKED_CHANGE_EVENT = CHECKED_CHANGE_EVENT;
|
|
28
|
+
exports.transferPanelEmits = transferPanelEmits;
|
|
29
|
+
exports.transferPanelProps = transferPanelProps;
|
|
137
30
|
//# sourceMappingURL=transfer-panel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-panel.js","sources":["../../../../../../packages/components/transfer/src/transfer-panel.
|
|
1
|
+
{"version":3,"file":"transfer-panel.js","sources":["../../../../../../packages/components/transfer/src/transfer-panel.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { transferCheckedChangeFn, transferProps } from './transfer'\n\nimport type { ExtractPropTypes, VNode } from 'vue'\nimport type { TransferDataItem, TransferKey } from './transfer'\nimport type TransferPanel from './transfer-panel.vue'\n\nexport interface TransferPanelState {\n checked: TransferKey[]\n allChecked: boolean\n query: string\n checkChangeByUser: boolean\n}\n\nexport const CHECKED_CHANGE_EVENT = 'checked-change'\n\nexport const transferPanelProps = buildProps({\n data: transferProps.data,\n optionRender: {\n type: definePropType<(option: TransferDataItem) => VNode | VNode[]>(\n Function\n ),\n },\n placeholder: String,\n title: String,\n filterable: Boolean,\n format: transferProps.format,\n filterMethod: transferProps.filterMethod,\n defaultChecked: transferProps.leftDefaultChecked,\n props: transferProps.props,\n} as const)\nexport type TransferPanelProps = ExtractPropTypes<typeof transferPanelProps>\n\nexport const transferPanelEmits = {\n [CHECKED_CHANGE_EVENT]: transferCheckedChangeFn,\n}\nexport type TransferPanelEmits = typeof transferPanelEmits\n\nexport type TransferPanelInstance = InstanceType<typeof TransferPanel>\n"],"names":["buildProps","transferProps","definePropType","transferCheckedChangeFn"],"mappings":";;;;;;;;AAEY,MAAC,oBAAoB,GAAG,iBAAiB;AACzC,MAAC,kBAAkB,GAAGA,kBAAU,CAAC;AAC7C,EAAE,IAAI,EAAEC,sBAAa,CAAC,IAAI;AAC1B,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAEC,sBAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,MAAM,EAAED,sBAAa,CAAC,MAAM;AAC9B,EAAE,YAAY,EAAEA,sBAAa,CAAC,YAAY;AAC1C,EAAE,cAAc,EAAEA,sBAAa,CAAC,kBAAkB;AAClD,EAAE,KAAK,EAAEA,sBAAa,CAAC,KAAK;AAC5B,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG;AAClC,EAAE,CAAC,oBAAoB,GAAGE,gCAAuB;AACjD;;;;;;"}
|
|
@@ -2,29 +2,136 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
5
6
|
require('../../../utils/index.js');
|
|
6
|
-
|
|
7
|
-
var
|
|
7
|
+
require('../../../hooks/index.js');
|
|
8
|
+
var index$2 = require('../../checkbox/index.js');
|
|
9
|
+
var index$3 = require('../../input/index.js');
|
|
10
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
11
|
+
var transferPanel = require('./transfer-panel.js');
|
|
12
|
+
require('./composables/index.js');
|
|
13
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
|
+
var index = require('../../../hooks/use-locale/index.js');
|
|
15
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
16
|
+
var usePropsAlias = require('./composables/use-props-alias.js');
|
|
17
|
+
var useCheck = require('./composables/use-check.js');
|
|
18
|
+
var types = require('../../../utils/types.js');
|
|
8
19
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
data: transfer.transferProps.data,
|
|
12
|
-
optionRender: {
|
|
13
|
-
type: runtime.definePropType(Function)
|
|
14
|
-
},
|
|
15
|
-
placeholder: String,
|
|
16
|
-
title: String,
|
|
17
|
-
filterable: Boolean,
|
|
18
|
-
format: transfer.transferProps.format,
|
|
19
|
-
filterMethod: transfer.transferProps.filterMethod,
|
|
20
|
-
defaultChecked: transfer.transferProps.leftDefaultChecked,
|
|
21
|
-
props: transfer.transferProps.props
|
|
20
|
+
const __default__ = vue.defineComponent({
|
|
21
|
+
name: "ElTransferPanel"
|
|
22
22
|
});
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
24
|
+
...__default__,
|
|
25
|
+
props: transferPanel.transferPanelProps,
|
|
26
|
+
emits: transferPanel.transferPanelEmits,
|
|
27
|
+
setup(__props, { expose, emit }) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const slots = vue.useSlots();
|
|
30
|
+
const OptionContent = ({ option }) => option;
|
|
31
|
+
const { t } = index.useLocale();
|
|
32
|
+
const ns = index$1.useNamespace("transfer");
|
|
33
|
+
const panelState = vue.reactive({
|
|
34
|
+
checked: [],
|
|
35
|
+
allChecked: false,
|
|
36
|
+
query: "",
|
|
37
|
+
checkChangeByUser: true
|
|
38
|
+
});
|
|
39
|
+
const propsAlias = usePropsAlias.usePropsAlias(props);
|
|
40
|
+
const {
|
|
41
|
+
filteredData,
|
|
42
|
+
checkedSummary,
|
|
43
|
+
isIndeterminate,
|
|
44
|
+
handleAllCheckedChange
|
|
45
|
+
} = useCheck.useCheck(props, panelState, emit);
|
|
46
|
+
const hasNoMatch = vue.computed(() => !types.isEmpty(panelState.query) && types.isEmpty(filteredData.value));
|
|
47
|
+
const hasFooter = vue.computed(() => !types.isEmpty(slots.default()[0].children));
|
|
48
|
+
const { checked, allChecked, query } = vue.toRefs(panelState);
|
|
49
|
+
expose({
|
|
50
|
+
query
|
|
51
|
+
});
|
|
52
|
+
return (_ctx, _cache) => {
|
|
53
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
54
|
+
class: vue.normalizeClass(vue.unref(ns).b("panel"))
|
|
55
|
+
}, [
|
|
56
|
+
vue.createElementVNode("p", {
|
|
57
|
+
class: vue.normalizeClass(vue.unref(ns).be("panel", "header"))
|
|
58
|
+
}, [
|
|
59
|
+
vue.createVNode(vue.unref(index$2.ElCheckbox), {
|
|
60
|
+
modelValue: vue.unref(allChecked),
|
|
61
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(allChecked) ? allChecked.value = $event : null),
|
|
62
|
+
indeterminate: vue.unref(isIndeterminate),
|
|
63
|
+
"validate-event": false,
|
|
64
|
+
onChange: vue.unref(handleAllCheckedChange)
|
|
65
|
+
}, {
|
|
66
|
+
default: vue.withCtx(() => [
|
|
67
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.title) + " ", 1),
|
|
68
|
+
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(checkedSummary)), 1)
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}, 8, ["modelValue", "indeterminate", "onChange"])
|
|
72
|
+
], 2),
|
|
73
|
+
vue.createElementVNode("div", {
|
|
74
|
+
class: vue.normalizeClass([vue.unref(ns).be("panel", "body"), vue.unref(ns).is("with-footer", vue.unref(hasFooter))])
|
|
75
|
+
}, [
|
|
76
|
+
_ctx.filterable ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.ElInput), {
|
|
77
|
+
key: 0,
|
|
78
|
+
modelValue: vue.unref(query),
|
|
79
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(query) ? query.value = $event : null),
|
|
80
|
+
class: vue.normalizeClass(vue.unref(ns).be("panel", "filter")),
|
|
81
|
+
size: "default",
|
|
82
|
+
placeholder: _ctx.placeholder,
|
|
83
|
+
"prefix-icon": vue.unref(iconsVue.Search),
|
|
84
|
+
clearable: "",
|
|
85
|
+
"validate-event": false
|
|
86
|
+
}, null, 8, ["modelValue", "class", "placeholder", "prefix-icon"])) : vue.createCommentVNode("v-if", true),
|
|
87
|
+
vue.withDirectives(vue.createVNode(vue.unref(index$2.ElCheckboxGroup), {
|
|
88
|
+
modelValue: vue.unref(checked),
|
|
89
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(checked) ? checked.value = $event : null),
|
|
90
|
+
"validate-event": false,
|
|
91
|
+
class: vue.normalizeClass([vue.unref(ns).is("filterable", _ctx.filterable), vue.unref(ns).be("panel", "list")])
|
|
92
|
+
}, {
|
|
93
|
+
default: vue.withCtx(() => [
|
|
94
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(filteredData), (item) => {
|
|
95
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElCheckbox), {
|
|
96
|
+
key: item[vue.unref(propsAlias).key],
|
|
97
|
+
class: vue.normalizeClass(vue.unref(ns).be("panel", "item")),
|
|
98
|
+
value: item[vue.unref(propsAlias).key],
|
|
99
|
+
disabled: item[vue.unref(propsAlias).disabled],
|
|
100
|
+
"validate-event": false
|
|
101
|
+
}, {
|
|
102
|
+
default: vue.withCtx(() => {
|
|
103
|
+
var _a;
|
|
104
|
+
return [
|
|
105
|
+
vue.createVNode(OptionContent, {
|
|
106
|
+
option: (_a = _ctx.optionRender) == null ? void 0 : _a.call(_ctx, item)
|
|
107
|
+
}, null, 8, ["option"])
|
|
108
|
+
];
|
|
109
|
+
}),
|
|
110
|
+
_: 2
|
|
111
|
+
}, 1032, ["class", "value", "disabled"]);
|
|
112
|
+
}), 128))
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["modelValue", "class"]), [
|
|
116
|
+
[vue.vShow, !vue.unref(hasNoMatch) && !vue.unref(types.isEmpty)(_ctx.data)]
|
|
117
|
+
]),
|
|
118
|
+
vue.withDirectives(vue.createElementVNode("p", {
|
|
119
|
+
class: vue.normalizeClass(vue.unref(ns).be("panel", "empty"))
|
|
120
|
+
}, vue.toDisplayString(vue.unref(hasNoMatch) ? vue.unref(t)("el.transfer.noMatch") : vue.unref(t)("el.transfer.noData")), 3), [
|
|
121
|
+
[vue.vShow, vue.unref(hasNoMatch) || vue.unref(types.isEmpty)(_ctx.data)]
|
|
122
|
+
])
|
|
123
|
+
], 2),
|
|
124
|
+
vue.unref(hasFooter) ? (vue.openBlock(), vue.createElementBlock("p", {
|
|
125
|
+
key: 0,
|
|
126
|
+
class: vue.normalizeClass(vue.unref(ns).be("panel", "footer"))
|
|
127
|
+
}, [
|
|
128
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
129
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
130
|
+
], 2);
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
var TransferPanel = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "transfer-panel.vue"]]);
|
|
26
135
|
|
|
27
|
-
exports
|
|
28
|
-
exports.transferPanelEmits = transferPanelEmits;
|
|
29
|
-
exports.transferPanelProps = transferPanelProps;
|
|
136
|
+
exports["default"] = TransferPanel;
|
|
30
137
|
//# sourceMappingURL=transfer-panel2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-panel2.js","sources":["../../../../../../packages/components/transfer/src/transfer-panel.
|
|
1
|
+
{"version":3,"file":"transfer-panel2.js","sources":["../../../../../../packages/components/transfer/src/transfer-panel.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b('panel')\">\n <p :class=\"ns.be('panel', 'header')\">\n <el-checkbox\n v-model=\"allChecked\"\n :indeterminate=\"isIndeterminate\"\n :validate-event=\"false\"\n @change=\"handleAllCheckedChange\"\n >\n {{ title }}\n <span>{{ checkedSummary }}</span>\n </el-checkbox>\n </p>\n\n <div :class=\"[ns.be('panel', 'body'), ns.is('with-footer', hasFooter)]\">\n <el-input\n v-if=\"filterable\"\n v-model=\"query\"\n :class=\"ns.be('panel', 'filter')\"\n size=\"default\"\n :placeholder=\"placeholder\"\n :prefix-icon=\"Search\"\n clearable\n :validate-event=\"false\"\n />\n <el-checkbox-group\n v-show=\"!hasNoMatch && !isEmpty(data)\"\n v-model=\"checked\"\n :validate-event=\"false\"\n :class=\"[ns.is('filterable', filterable), ns.be('panel', 'list')]\"\n >\n <el-checkbox\n v-for=\"item in filteredData\"\n :key=\"item[propsAlias.key]\"\n :class=\"ns.be('panel', 'item')\"\n :value=\"item[propsAlias.key]\"\n :disabled=\"item[propsAlias.disabled]\"\n :validate-event=\"false\"\n >\n <option-content :option=\"optionRender?.(item)\" />\n </el-checkbox>\n </el-checkbox-group>\n <p v-show=\"hasNoMatch || isEmpty(data)\" :class=\"ns.be('panel', 'empty')\">\n {{ hasNoMatch ? t('el.transfer.noMatch') : t('el.transfer.noData') }}\n </p>\n </div>\n <p v-if=\"hasFooter\" :class=\"ns.be('panel', 'footer')\">\n <slot />\n </p>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, reactive, toRefs, useSlots } from 'vue'\nimport { isEmpty } from '@element-plus/utils'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { ElCheckbox, ElCheckboxGroup } from '@element-plus/components/checkbox'\nimport { ElInput } from '@element-plus/components/input'\nimport { Search } from '@element-plus/icons-vue'\nimport { transferPanelEmits, transferPanelProps } from './transfer-panel'\nimport { useCheck, usePropsAlias } from './composables'\n\nimport type { VNode } from 'vue'\nimport type { TransferPanelState } from './transfer-panel'\n\ndefineOptions({\n name: 'ElTransferPanel',\n})\n\nconst props = defineProps(transferPanelProps)\nconst emit = defineEmits(transferPanelEmits)\nconst slots = useSlots()\n\nconst OptionContent = ({ option }: { option: VNode | VNode[] }) => option\n\nconst { t } = useLocale()\nconst ns = useNamespace('transfer')\n\nconst panelState = reactive<TransferPanelState>({\n checked: [],\n allChecked: false,\n query: '',\n checkChangeByUser: true,\n})\n\nconst propsAlias = usePropsAlias(props)\n\nconst {\n filteredData,\n checkedSummary,\n isIndeterminate,\n handleAllCheckedChange,\n} = useCheck(props, panelState, emit)\n\nconst hasNoMatch = computed(\n () => !isEmpty(panelState.query) && isEmpty(filteredData.value)\n)\n\nconst hasFooter = computed(() => !isEmpty(slots.default!()[0].children))\n\nconst { checked, allChecked, query } = toRefs(panelState)\n\ndefineExpose({\n /** @description filter keyword */\n query,\n})\n</script>\n"],"names":["useSlots","useLocale","useNamespace","reactive","usePropsAlias","useCheck","computed","isEmpty","toRefs"],"mappings":";;;;;;;;;;;;;;;;;;;uCAiEc,CAAA;AAAA,EACZ,IAAM,EAAA,iBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,aAAA,GAAgB,CAAC,EAAE,MAA0C,EAAA,KAAA,MAAA,CAAA;AAEnE,IAAM,MAAA,EAAE,MAAMC,eAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAKC,qBAAa,UAAU,CAAA,CAAA;AAElC,IAAA,MAAM,aAAaC,YAA6B,CAAA;AAAA,MAC9C,SAAS,EAAC;AAAA,MACV,UAAY,EAAA,KAAA;AAAA,MACZ,KAAO,EAAA,EAAA;AAAA,MACP,iBAAmB,EAAA,IAAA;AAAA,KACpB,CAAA,CAAA;AAED,IAAM,MAAA,UAAA,GAAaC,4BAAc,KAAK,CAAA,CAAA;AAEtC,IAAM,MAAA;AAAA,MACJ,YAAA;AAAA,MACA,cAAA;AAAA,MACA,eAAA;AAAA,MACA,sBAAA;AAAA,KACE,GAAAC,iBAAA,CAAS,KAAO,EAAA,UAAA,EAAY,IAAI,CAAA,CAAA;AAEpC,IAAM,MAAA,UAAA,GAAaC,YACjB,CAAA,MAAM,CAACC,aAAA,CAAQ,UAAW,CAAA,KAAK,CAAK,IAAAA,aAAA,CAAQ,YAAa,CAAA,KAAK,CAChE,CAAA,CAAA;AAEA,IAAM,MAAA,SAAA,GAAYD,YAAS,CAAA,MAAM,CAACC,aAAA,CAAQ,MAAM,OAAS,EAAA,CAAE,CAAG,CAAA,CAAA,QAAQ,CAAC,CAAA,CAAA;AAEvE,IAAA,MAAM,EAAE,OAAA,EAAS,UAAY,EAAA,KAAA,EAAA,GAAUC,WAAO,UAAU,CAAA,CAAA;AAExD,IAAa,MAAA,CAAA;AAAA,MAEX,KAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -11,7 +11,7 @@ require('../../form/index.js');
|
|
|
11
11
|
var iconsVue = require('@element-plus/icons-vue');
|
|
12
12
|
var transfer = require('./transfer.js');
|
|
13
13
|
require('./composables/index.js');
|
|
14
|
-
var transferPanel = require('./transfer-
|
|
14
|
+
var transferPanel = require('./transfer-panel2.js');
|
|
15
15
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
16
16
|
var index = require('../../../hooks/use-locale/index.js');
|
|
17
17
|
var index$1 = require('../../../hooks/use-namespace/index.js');
|
package/lib/index.js
CHANGED
|
@@ -89,7 +89,7 @@ var constants$8 = require('./components/form/src/constants.js');
|
|
|
89
89
|
var useFormCommonProps = require('./components/form/src/hooks/use-form-common-props.js');
|
|
90
90
|
var useFormItem = require('./components/form/src/hooks/use-form-item.js');
|
|
91
91
|
var index$t = require('./components/form/index.js');
|
|
92
|
-
var icon = require('./components/icon/src/
|
|
92
|
+
var icon = require('./components/icon/src/icon2.js');
|
|
93
93
|
var index$u = require('./components/icon/index.js');
|
|
94
94
|
var image = require('./components/image/src/image.js');
|
|
95
95
|
var index$v = require('./components/image/index.js');
|
|
@@ -103,7 +103,7 @@ var link = require('./components/link/src/link.js');
|
|
|
103
103
|
var index$z = require('./components/link/index.js');
|
|
104
104
|
var menu = require('./components/menu/src/menu.js');
|
|
105
105
|
var menuItem = require('./components/menu/src/menu-item.js');
|
|
106
|
-
var menuItemGroup = require('./components/menu/src/menu-item-
|
|
106
|
+
var menuItemGroup = require('./components/menu/src/menu-item-group.js');
|
|
107
107
|
var subMenu = require('./components/menu/src/sub-menu.js');
|
|
108
108
|
var index$A = require('./components/menu/index.js');
|
|
109
109
|
var overlay = require('./components/overlay/src/overlay.js');
|
|
@@ -180,7 +180,7 @@ var constants$g = require('./components/tabs/src/constants.js');
|
|
|
180
180
|
var index$W = require('./components/tabs/index.js');
|
|
181
181
|
var tag = require('./components/tag/src/tag.js');
|
|
182
182
|
var index$X = require('./components/tag/index.js');
|
|
183
|
-
var text = require('./components/text/src/
|
|
183
|
+
var text = require('./components/text/src/text2.js');
|
|
184
184
|
var index$Y = require('./components/text/index.js');
|
|
185
185
|
var utils = require('./components/time-picker/src/utils.js');
|
|
186
186
|
var constants$h = require('./components/time-picker/src/constants.js');
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.20240627";
|
package/lib/version.js
CHANGED
package/lib/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20240627'\n"],"names":[],"mappings":";;;;AAAY,MAAC,OAAO,GAAG;;;;"}
|