@element-plus/nightly 0.0.20240529 → 0.0.20240531
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/cascader/src/cascader.mjs +1 -1
- package/es/components/index.mjs +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +94 -29
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +29 -94
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +1 -1
- package/es/components/time-picker/src/common/props.d.ts +1 -31
- package/es/components/time-picker/src/common/props.mjs.map +1 -1
- package/es/index.mjs +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +94 -30
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +30 -94
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +1 -1
- package/lib/components/time-picker/src/common/props.d.ts +1 -31
- package/lib/components/time-picker/src/common/props.js.map +1 -1
- package/lib/index.js +1 -1
- 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
|
@@ -1,33 +1,98 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createElementVNode, renderSlot, createBlock, withModifiers, withCtx, createVNode, createCommentVNode, Transition } from 'vue';
|
|
2
|
+
import { ElIcon } from '../../icon/index.mjs';
|
|
3
|
+
import { Close } from '@element-plus/icons-vue';
|
|
4
|
+
import '../../../hooks/index.mjs';
|
|
5
|
+
import '../../form/index.mjs';
|
|
6
|
+
import { tagProps, tagEmits } from './tag2.mjs';
|
|
7
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
|
+
import { useFormSize } from '../../form/src/hooks/use-form-common-props.mjs';
|
|
9
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
5
10
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
type: String,
|
|
9
|
-
values: ["primary", "success", "info", "warning", "danger"],
|
|
10
|
-
default: "primary"
|
|
11
|
-
},
|
|
12
|
-
closable: Boolean,
|
|
13
|
-
disableTransitions: Boolean,
|
|
14
|
-
hit: Boolean,
|
|
15
|
-
color: String,
|
|
16
|
-
size: {
|
|
17
|
-
type: String,
|
|
18
|
-
values: componentSizes
|
|
19
|
-
},
|
|
20
|
-
effect: {
|
|
21
|
-
type: String,
|
|
22
|
-
values: ["dark", "light", "plain"],
|
|
23
|
-
default: "light"
|
|
24
|
-
},
|
|
25
|
-
round: Boolean
|
|
11
|
+
const __default__ = defineComponent({
|
|
12
|
+
name: "ElTag"
|
|
26
13
|
});
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
|
+
...__default__,
|
|
16
|
+
props: tagProps,
|
|
17
|
+
emits: tagEmits,
|
|
18
|
+
setup(__props, { emit }) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const tagSize = useFormSize();
|
|
21
|
+
const ns = useNamespace("tag");
|
|
22
|
+
const containerKls = computed(() => {
|
|
23
|
+
const { type, hit, effect, closable, round } = props;
|
|
24
|
+
return [
|
|
25
|
+
ns.b(),
|
|
26
|
+
ns.is("closable", closable),
|
|
27
|
+
ns.m(type || "primary"),
|
|
28
|
+
ns.m(tagSize.value),
|
|
29
|
+
ns.m(effect),
|
|
30
|
+
ns.is("hit", hit),
|
|
31
|
+
ns.is("round", round)
|
|
32
|
+
];
|
|
33
|
+
});
|
|
34
|
+
const handleClose = (event) => {
|
|
35
|
+
emit("close", event);
|
|
36
|
+
};
|
|
37
|
+
const handleClick = (event) => {
|
|
38
|
+
emit("click", event);
|
|
39
|
+
};
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return _ctx.disableTransitions ? (openBlock(), createElementBlock("span", {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: normalizeClass(unref(containerKls)),
|
|
44
|
+
style: normalizeStyle({ backgroundColor: _ctx.color }),
|
|
45
|
+
onClick: handleClick
|
|
46
|
+
}, [
|
|
47
|
+
createElementVNode("span", {
|
|
48
|
+
class: normalizeClass(unref(ns).e("content"))
|
|
49
|
+
}, [
|
|
50
|
+
renderSlot(_ctx.$slots, "default")
|
|
51
|
+
], 2),
|
|
52
|
+
_ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: normalizeClass(unref(ns).e("close")),
|
|
55
|
+
onClick: withModifiers(handleClose, ["stop"])
|
|
56
|
+
}, {
|
|
57
|
+
default: withCtx(() => [
|
|
58
|
+
createVNode(unref(Close))
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
}, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
|
|
62
|
+
], 6)) : (openBlock(), createBlock(Transition, {
|
|
63
|
+
key: 1,
|
|
64
|
+
name: `${unref(ns).namespace.value}-zoom-in-center`,
|
|
65
|
+
appear: ""
|
|
66
|
+
}, {
|
|
67
|
+
default: withCtx(() => [
|
|
68
|
+
createElementVNode("span", {
|
|
69
|
+
class: normalizeClass(unref(containerKls)),
|
|
70
|
+
style: normalizeStyle({ backgroundColor: _ctx.color }),
|
|
71
|
+
onClick: handleClick
|
|
72
|
+
}, [
|
|
73
|
+
createElementVNode("span", {
|
|
74
|
+
class: normalizeClass(unref(ns).e("content"))
|
|
75
|
+
}, [
|
|
76
|
+
renderSlot(_ctx.$slots, "default")
|
|
77
|
+
], 2),
|
|
78
|
+
_ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: normalizeClass(unref(ns).e("close")),
|
|
81
|
+
onClick: withModifiers(handleClose, ["stop"])
|
|
82
|
+
}, {
|
|
83
|
+
default: withCtx(() => [
|
|
84
|
+
createVNode(unref(Close))
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
|
|
88
|
+
], 6)
|
|
89
|
+
]),
|
|
90
|
+
_: 3
|
|
91
|
+
}, 8, ["name"]));
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
var Tag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "tag.vue"]]);
|
|
31
96
|
|
|
32
|
-
export {
|
|
97
|
+
export { Tag as default };
|
|
33
98
|
//# sourceMappingURL=tag.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.mjs","sources":["../../../../../../packages/components/tag/src/tag.
|
|
1
|
+
{"version":3,"file":"tag.mjs","sources":["../../../../../../packages/components/tag/src/tag.vue"],"sourcesContent":["<template>\n <span\n v-if=\"disableTransitions\"\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n <transition v-else :name=\"`${ns.namespace.value}-zoom-in-center`\" appear>\n <span\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { Close } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\n\nimport { tagEmits, tagProps } from './tag'\n\ndefineOptions({\n name: 'ElTag',\n})\nconst props = defineProps(tagProps)\nconst emit = defineEmits(tagEmits)\n\nconst tagSize = useFormSize()\nconst ns = useNamespace('tag')\nconst containerKls = computed(() => {\n const { type, hit, effect, closable, round } = props\n return [\n ns.b(),\n ns.is('closable', closable),\n ns.m(type || 'primary'),\n ns.m(tagSize.value),\n ns.m(effect),\n ns.is('hit', hit),\n ns.is('round', round),\n ]\n})\n\n// methods\nconst handleClose = (event: MouseEvent) => {\n emit('close', event)\n}\n\nconst handleClick = (event: MouseEvent) => {\n emit('click', event)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCAuCc,CAAA;AAAA,EACZ,IAAM,EAAA,OAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,UAAU,WAAY,EAAA,CAAA;AAC5B,IAAM,MAAA,EAAA,GAAK,aAAa,KAAK,CAAA,CAAA;AAC7B,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,MAAM,EAAE,IAAA,EAAM,GAAK,EAAA,MAAA,EAAQ,UAAU,KAAU,EAAA,GAAA,KAAA,CAAA;AAC/C,MAAO,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL,EAAA,CAAG,EAAG,CAAA,UAAA,EAAY,QAAQ,CAAA;AAAA,QAC1B,EAAA,CAAG,CAAE,CAAA,IAAA,IAAQ,SAAS,CAAA;AAAA,QACtB,EAAA,CAAG,CAAE,CAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,QAClB,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,QACX,EAAA,CAAG,EAAG,CAAA,KAAA,EAAO,GAAG,CAAA;AAAA,QAChB,EAAA,CAAG,EAAG,CAAA,OAAA,EAAS,KAAK,CAAA;AAAA,OACtB,CAAA;AAAA,KACD,CAAA,CAAA;AAGD,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,98 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import '../../../
|
|
5
|
-
import '../../form/index.mjs';
|
|
6
|
-
import { tagProps, tagEmits } from './tag.mjs';
|
|
7
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
|
-
import { useFormSize } from '../../form/src/hooks/use-form-common-props.mjs';
|
|
9
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import '../../../utils/index.mjs';
|
|
2
|
+
import '../../../constants/index.mjs';
|
|
3
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
4
|
+
import { componentSizes } from '../../../constants/size.mjs';
|
|
10
5
|
|
|
11
|
-
const
|
|
12
|
-
|
|
6
|
+
const tagProps = buildProps({
|
|
7
|
+
type: {
|
|
8
|
+
type: String,
|
|
9
|
+
values: ["primary", "success", "info", "warning", "danger"],
|
|
10
|
+
default: "primary"
|
|
11
|
+
},
|
|
12
|
+
closable: Boolean,
|
|
13
|
+
disableTransitions: Boolean,
|
|
14
|
+
hit: Boolean,
|
|
15
|
+
color: String,
|
|
16
|
+
size: {
|
|
17
|
+
type: String,
|
|
18
|
+
values: componentSizes
|
|
19
|
+
},
|
|
20
|
+
effect: {
|
|
21
|
+
type: String,
|
|
22
|
+
values: ["dark", "light", "plain"],
|
|
23
|
+
default: "light"
|
|
24
|
+
},
|
|
25
|
+
round: Boolean
|
|
13
26
|
});
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
setup(__props, { emit }) {
|
|
19
|
-
const props = __props;
|
|
20
|
-
const tagSize = useFormSize();
|
|
21
|
-
const ns = useNamespace("tag");
|
|
22
|
-
const containerKls = computed(() => {
|
|
23
|
-
const { type, hit, effect, closable, round } = props;
|
|
24
|
-
return [
|
|
25
|
-
ns.b(),
|
|
26
|
-
ns.is("closable", closable),
|
|
27
|
-
ns.m(type || "primary"),
|
|
28
|
-
ns.m(tagSize.value),
|
|
29
|
-
ns.m(effect),
|
|
30
|
-
ns.is("hit", hit),
|
|
31
|
-
ns.is("round", round)
|
|
32
|
-
];
|
|
33
|
-
});
|
|
34
|
-
const handleClose = (event) => {
|
|
35
|
-
emit("close", event);
|
|
36
|
-
};
|
|
37
|
-
const handleClick = (event) => {
|
|
38
|
-
emit("click", event);
|
|
39
|
-
};
|
|
40
|
-
return (_ctx, _cache) => {
|
|
41
|
-
return _ctx.disableTransitions ? (openBlock(), createElementBlock("span", {
|
|
42
|
-
key: 0,
|
|
43
|
-
class: normalizeClass(unref(containerKls)),
|
|
44
|
-
style: normalizeStyle({ backgroundColor: _ctx.color }),
|
|
45
|
-
onClick: handleClick
|
|
46
|
-
}, [
|
|
47
|
-
createElementVNode("span", {
|
|
48
|
-
class: normalizeClass(unref(ns).e("content"))
|
|
49
|
-
}, [
|
|
50
|
-
renderSlot(_ctx.$slots, "default")
|
|
51
|
-
], 2),
|
|
52
|
-
_ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
|
|
53
|
-
key: 0,
|
|
54
|
-
class: normalizeClass(unref(ns).e("close")),
|
|
55
|
-
onClick: withModifiers(handleClose, ["stop"])
|
|
56
|
-
}, {
|
|
57
|
-
default: withCtx(() => [
|
|
58
|
-
createVNode(unref(Close))
|
|
59
|
-
]),
|
|
60
|
-
_: 1
|
|
61
|
-
}, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
|
|
62
|
-
], 6)) : (openBlock(), createBlock(Transition, {
|
|
63
|
-
key: 1,
|
|
64
|
-
name: `${unref(ns).namespace.value}-zoom-in-center`,
|
|
65
|
-
appear: ""
|
|
66
|
-
}, {
|
|
67
|
-
default: withCtx(() => [
|
|
68
|
-
createElementVNode("span", {
|
|
69
|
-
class: normalizeClass(unref(containerKls)),
|
|
70
|
-
style: normalizeStyle({ backgroundColor: _ctx.color }),
|
|
71
|
-
onClick: handleClick
|
|
72
|
-
}, [
|
|
73
|
-
createElementVNode("span", {
|
|
74
|
-
class: normalizeClass(unref(ns).e("content"))
|
|
75
|
-
}, [
|
|
76
|
-
renderSlot(_ctx.$slots, "default")
|
|
77
|
-
], 2),
|
|
78
|
-
_ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
|
|
79
|
-
key: 0,
|
|
80
|
-
class: normalizeClass(unref(ns).e("close")),
|
|
81
|
-
onClick: withModifiers(handleClose, ["stop"])
|
|
82
|
-
}, {
|
|
83
|
-
default: withCtx(() => [
|
|
84
|
-
createVNode(unref(Close))
|
|
85
|
-
]),
|
|
86
|
-
_: 1
|
|
87
|
-
}, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
|
|
88
|
-
], 6)
|
|
89
|
-
]),
|
|
90
|
-
_: 3
|
|
91
|
-
}, 8, ["name"]));
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
var Tag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "tag.vue"]]);
|
|
27
|
+
const tagEmits = {
|
|
28
|
+
close: (evt) => evt instanceof MouseEvent,
|
|
29
|
+
click: (evt) => evt instanceof MouseEvent
|
|
30
|
+
};
|
|
96
31
|
|
|
97
|
-
export {
|
|
32
|
+
export { tagEmits, tagProps };
|
|
98
33
|
//# sourceMappingURL=tag2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag2.mjs","sources":["../../../../../../packages/components/tag/src/tag.
|
|
1
|
+
{"version":3,"file":"tag2.mjs","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type Tag from './tag.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tagProps = buildProps({\n /**\n * @description type of Tag\n */\n type: {\n type: String,\n values: ['primary', 'success', 'info', 'warning', 'danger'],\n default: 'primary',\n },\n /**\n * @description whether Tag can be removed\n */\n closable: Boolean,\n /**\n * @description whether to disable animations\n */\n disableTransitions: Boolean,\n /**\n * @description whether Tag has a highlighted border\n */\n hit: Boolean,\n /**\n * @description background color of the Tag\n */\n color: String,\n /**\n * @description size of Tag\n */\n size: {\n type: String,\n values: componentSizes,\n },\n /**\n * @description theme of Tag\n */\n effect: {\n type: String,\n values: ['dark', 'light', 'plain'],\n default: 'light',\n },\n /**\n * @description whether Tag is rounded\n */\n round: Boolean,\n} as const)\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n\nexport const tagEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type TagEmits = typeof tagEmits\n\nexport type TagInstance = InstanceType<typeof Tag>\n"],"names":[],"mappings":";;;;;AAEY,MAAC,QAAQ,GAAG,UAAU,CAAC;AACnC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC;AAC/D,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,kBAAkB,EAAE,OAAO;AAC7B,EAAE,GAAG,EAAE,OAAO;AACd,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACtC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,EAAE;AACS,MAAC,QAAQ,GAAG;AACxB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
|
|
@@ -6484,7 +6484,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6484
6484
|
inputRef: import("vue").Ref<HTMLElement | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | undefined>;
|
|
6485
6485
|
pickerVisible: import("vue").Ref<boolean>;
|
|
6486
6486
|
pickerActualVisible: import("vue").Ref<boolean>;
|
|
6487
|
-
valueOnOpen: import("vue").Ref<string | number | {
|
|
6487
|
+
valueOnOpen: import("vue").Ref<string | number | string[] | {
|
|
6488
6488
|
toString: () => string;
|
|
6489
6489
|
toDateString: () => string;
|
|
6490
6490
|
toTimeString: () => string;
|
|
@@ -3,7 +3,7 @@ import type { Options } from '@popperjs/core';
|
|
|
3
3
|
import type { Dayjs } from 'dayjs';
|
|
4
4
|
export declare type SingleOrRange<T> = T | [T, T];
|
|
5
5
|
export declare type DateModelType = number | string | Date;
|
|
6
|
-
export declare type ModelValueType = SingleOrRange<DateModelType
|
|
6
|
+
export declare type ModelValueType = SingleOrRange<DateModelType> | string[];
|
|
7
7
|
export declare type DayOrDays = SingleOrRange<Dayjs>;
|
|
8
8
|
export declare type DateOrDates = SingleOrRange<Date>;
|
|
9
9
|
export declare type UserInput = SingleOrRange<string | null>;
|
|
@@ -15,18 +15,12 @@ export declare const timePickerDefaultProps: {
|
|
|
15
15
|
readonly emptyValues: ArrayConstructor;
|
|
16
16
|
readonly valueOnClear: import("@element-plus/nightly/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
|
|
17
17
|
readonly disabledDate: {
|
|
18
|
-
/**
|
|
19
|
-
* @description binding value, if it is an array, the length should be 2
|
|
20
|
-
*/
|
|
21
18
|
readonly type: import("vue").PropType<Function>;
|
|
22
19
|
readonly required: false;
|
|
23
20
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
24
21
|
__epPropKey: true;
|
|
25
22
|
};
|
|
26
23
|
readonly cellClassName: {
|
|
27
|
-
/**
|
|
28
|
-
* @description binding value, if it is an array, the length should be 2
|
|
29
|
-
*/
|
|
30
24
|
readonly type: import("vue").PropType<Function>;
|
|
31
25
|
readonly required: false;
|
|
32
26
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -39,36 +33,24 @@ export declare const timePickerDefaultProps: {
|
|
|
39
33
|
readonly validateEvent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
40
34
|
readonly unlinkPanels: BooleanConstructor;
|
|
41
35
|
readonly disabledHours: {
|
|
42
|
-
/**
|
|
43
|
-
* @description binding value, if it is an array, the length should be 2
|
|
44
|
-
*/
|
|
45
36
|
readonly type: import("vue").PropType<import("../props/shared").GetDisabledHours>;
|
|
46
37
|
readonly required: false;
|
|
47
38
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
48
39
|
__epPropKey: true;
|
|
49
40
|
};
|
|
50
41
|
readonly disabledMinutes: {
|
|
51
|
-
/**
|
|
52
|
-
* @description binding value, if it is an array, the length should be 2
|
|
53
|
-
*/
|
|
54
42
|
readonly type: import("vue").PropType<import("../props/shared").GetDisabledMinutes>;
|
|
55
43
|
readonly required: false;
|
|
56
44
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
57
45
|
__epPropKey: true;
|
|
58
46
|
};
|
|
59
47
|
readonly disabledSeconds: {
|
|
60
|
-
/**
|
|
61
|
-
* @description binding value, if it is an array, the length should be 2
|
|
62
|
-
*/
|
|
63
48
|
readonly type: import("vue").PropType<import("../props/shared").GetDisabledSeconds>;
|
|
64
49
|
readonly required: false;
|
|
65
50
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
51
|
__epPropKey: true;
|
|
67
52
|
};
|
|
68
53
|
readonly id: {
|
|
69
|
-
/**
|
|
70
|
-
* @description binding value, if it is an array, the length should be 2
|
|
71
|
-
*/
|
|
72
54
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => SingleOrRange<string> & {}) | (() => SingleOrRange<string>) | ((new (...args: any[]) => SingleOrRange<string> & {}) | (() => SingleOrRange<string>))[], unknown, unknown>>;
|
|
73
55
|
readonly required: false;
|
|
74
56
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -83,9 +65,6 @@ export declare const timePickerDefaultProps: {
|
|
|
83
65
|
readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
84
66
|
readonly clearable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
85
67
|
readonly clearIcon: {
|
|
86
|
-
/**
|
|
87
|
-
* @description binding value, if it is an array, the length should be 2
|
|
88
|
-
*/
|
|
89
68
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
90
69
|
readonly required: false;
|
|
91
70
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -94,9 +73,6 @@ export declare const timePickerDefaultProps: {
|
|
|
94
73
|
readonly editable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
95
74
|
readonly prefixIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "", boolean>;
|
|
96
75
|
readonly size: {
|
|
97
|
-
/**
|
|
98
|
-
* @description binding value, if it is an array, the length should be 2
|
|
99
|
-
*/
|
|
100
76
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
101
77
|
readonly required: false;
|
|
102
78
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -111,18 +87,12 @@ export declare const timePickerDefaultProps: {
|
|
|
111
87
|
readonly startPlaceholder: StringConstructor;
|
|
112
88
|
readonly endPlaceholder: StringConstructor;
|
|
113
89
|
readonly defaultValue: {
|
|
114
|
-
/**
|
|
115
|
-
* @description binding value, if it is an array, the length should be 2
|
|
116
|
-
*/
|
|
117
90
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
|
|
118
91
|
readonly required: false;
|
|
119
92
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
120
93
|
__epPropKey: true;
|
|
121
94
|
};
|
|
122
95
|
readonly defaultTime: {
|
|
123
|
-
/**
|
|
124
|
-
* @description binding value, if it is an array, the length should be 2
|
|
125
|
-
*/
|
|
126
96
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => SingleOrRange<Date>))[], unknown, unknown>>;
|
|
127
97
|
readonly required: false;
|
|
128
98
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.mjs","sources":["../../../../../../../packages/components/time-picker/src/common/props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { CircleClose } from '@element-plus/icons-vue'\nimport { disabledTimeListsProps } from '../props/shared'\n\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type { Options } from '@popperjs/core'\nimport type { Dayjs } from 'dayjs'\n\nexport type SingleOrRange<T> = T | [T, T]\nexport type DateModelType = number | string | Date\nexport type ModelValueType = SingleOrRange<DateModelType
|
|
1
|
+
{"version":3,"file":"props.mjs","sources":["../../../../../../../packages/components/time-picker/src/common/props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { CircleClose } from '@element-plus/icons-vue'\nimport { disabledTimeListsProps } from '../props/shared'\n\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type { Options } from '@popperjs/core'\nimport type { Dayjs } from 'dayjs'\n\nexport type SingleOrRange<T> = T | [T, T]\nexport type DateModelType = number | string | Date\nexport type ModelValueType = SingleOrRange<DateModelType> | string[]\nexport type DayOrDays = SingleOrRange<Dayjs>\nexport type DateOrDates = SingleOrRange<Date>\nexport type UserInput = SingleOrRange<string | null>\nexport type GetDisabledHours = (role: string, comparingDate?: Dayjs) => number[]\nexport type GetDisabledMinutes = (\n hour: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\nexport type GetDisabledSeconds = (\n hour: number,\n minute: number,\n role: string,\n comparingDate?: Dayjs\n) => number[]\n\nexport const timePickerDefaultProps = buildProps({\n /**\n * @description same as `id` in native input\n */\n id: {\n type: definePropType<SingleOrRange<string>>([Array, String]),\n },\n /**\n * @description same as `name` in native input\n */\n name: {\n type: definePropType<SingleOrRange<string>>([Array, String]),\n default: '',\n },\n /**\n * @description custom class name for TimePicker's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description format of the displayed value in the input box\n */\n format: String,\n /**\n * @description optional, format of binding value. If not specified, the binding value will be a Date object\n */\n valueFormat: String,\n /**\n * @description optional, format of the date displayed value in TimePicker's dropdown\n */\n dateFormat: String,\n /**\n * @description optional, format of the time displayed value in TimePicker's dropdown\n */\n timeFormat: String,\n /**\n * @description type of the picker\n */\n type: {\n type: String,\n default: '',\n },\n /**\n * @description whether to show clear button\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Custom clear icon component\n */\n clearIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: CircleClose,\n },\n /**\n * @description whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Custom prefix icon component\n */\n prefixIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: '',\n },\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description whether TimePicker is read only\n */\n readonly: Boolean,\n /**\n * @description whether TimePicker is disabled\n */\n disabled: Boolean,\n /**\n * @description placeholder in non-range mode\n */\n placeholder: {\n type: String,\n default: '',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n /**\n * @description binding value, if it is an array, the length should be 2\n */\n modelValue: {\n type: definePropType<ModelValueType>([Date, Array, String, Number]),\n default: '',\n },\n /**\n * @description range separator\n */\n rangeSeparator: {\n type: String,\n default: '-',\n },\n /**\n * @description placeholder for the start date in range mode\n */\n startPlaceholder: String,\n /**\n * @description placeholder for the end date in range mode\n */\n endPlaceholder: String,\n /**\n * @description optional, default date of the calendar\n */\n defaultValue: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n /**\n * @description optional, the time value to use when selecting date range\n */\n defaultTime: {\n type: definePropType<SingleOrRange<Date>>([Date, Array]),\n },\n /**\n * @description whether to pick a time range\n */\n isRange: Boolean,\n ...disabledTimeListsProps,\n /**\n * @description a function determining if a date is disabled with that date as its parameter. Should return a Boolean\n */\n disabledDate: {\n type: Function,\n },\n /**\n * @description set custom className\n */\n cellClassName: {\n type: Function,\n },\n /**\n * @description an object array to set shortcut options\n */\n shortcuts: {\n type: Array,\n default: () => [],\n },\n /**\n * @description whether to pick time using arrow buttons\n */\n arrowControl: Boolean,\n /**\n * @deprecated same as `aria-label` in native input\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description input tabindex\n */\n tabindex: {\n type: definePropType<string | number>([String, Number]),\n default: 0,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description unlink two date-panels in range-picker\n */\n unlinkPanels: Boolean,\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport type TimePickerDefaultProps = ExtractPropTypes<\n typeof timePickerDefaultProps\n>\n\nexport interface PickerOptions {\n isValidValue: (date: DayOrDays) => boolean\n handleKeydownInput: (event: KeyboardEvent) => void\n parseUserInput: (value: UserInput) => DayOrDays\n formatToString: (value: DayOrDays) => UserInput\n getRangeAvailableTime: (date: DayOrDays) => DayOrDays\n getDefaultValue: () => DayOrDays\n panelReady: boolean\n handleClear: () => void\n handleFocusPicker?: () => void\n}\n"],"names":[],"mappings":"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"}
|
package/es/index.mjs
CHANGED
|
@@ -175,7 +175,7 @@ export { tabNavEmits, tabNavProps } from './components/tabs/src/tab-nav.mjs';
|
|
|
175
175
|
export { tabPaneProps } from './components/tabs/src/tab-pane.mjs';
|
|
176
176
|
export { tabsRootContextKey } from './components/tabs/src/constants.mjs';
|
|
177
177
|
export { ElTabPane, ElTabs } from './components/tabs/index.mjs';
|
|
178
|
-
export { tagEmits, tagProps } from './components/tag/src/
|
|
178
|
+
export { tagEmits, tagProps } from './components/tag/src/tag2.mjs';
|
|
179
179
|
export { ElTag } from './components/tag/index.mjs';
|
|
180
180
|
export { textProps } from './components/text/src/text.mjs';
|
|
181
181
|
export { ElText } from './components/text/index.mjs';
|
package/es/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.20240531";
|
package/es/version.mjs
CHANGED
package/es/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20240531'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -12,7 +12,7 @@ var runtime = require('../../../utils/vue/props/runtime.js');
|
|
|
12
12
|
var config = require('../../cascader-panel/src/config.js');
|
|
13
13
|
var index = require('../../../hooks/use-size/index.js');
|
|
14
14
|
var content = require('../../tooltip/src/content.js');
|
|
15
|
-
var tag = require('../../tag/src/
|
|
15
|
+
var tag = require('../../tag/src/tag2.js');
|
|
16
16
|
var index$1 = require('../../../hooks/use-empty-values/index.js');
|
|
17
17
|
var event = require('../../../constants/event.js');
|
|
18
18
|
var types = require('../../../utils/types.js');
|
package/lib/components/index.js
CHANGED
|
@@ -193,7 +193,7 @@ var tabBar = require('./tabs/src/tab-bar.js');
|
|
|
193
193
|
var tabNav = require('./tabs/src/tab-nav.js');
|
|
194
194
|
var tabPane = require('./tabs/src/tab-pane.js');
|
|
195
195
|
var constants$g = require('./tabs/src/constants.js');
|
|
196
|
-
var tag = require('./tag/src/
|
|
196
|
+
var tag = require('./tag/src/tag2.js');
|
|
197
197
|
var text = require('./text/src/text.js');
|
|
198
198
|
var utils = require('./time-picker/src/utils.js');
|
|
199
199
|
var constants$h = require('./time-picker/src/constants.js');
|
|
@@ -12,7 +12,7 @@ var runtime = require('../../../utils/vue/props/runtime.js');
|
|
|
12
12
|
var index = require('../../../hooks/use-size/index.js');
|
|
13
13
|
var content = require('../../tooltip/src/content.js');
|
|
14
14
|
var icon = require('../../../utils/vue/icon.js');
|
|
15
|
-
var tag = require('../../tag/src/
|
|
15
|
+
var tag = require('../../tag/src/tag2.js');
|
|
16
16
|
var index$1 = require('../../../hooks/use-empty-values/index.js');
|
|
17
17
|
var index$2 = require('../../../hooks/use-aria/index.js');
|
|
18
18
|
|
|
@@ -13,7 +13,7 @@ var runtime = require('../../../utils/vue/props/runtime.js');
|
|
|
13
13
|
var icon = require('../../../utils/vue/icon.js');
|
|
14
14
|
var content = require('../../tooltip/src/content.js');
|
|
15
15
|
var index = require('../../../hooks/use-size/index.js');
|
|
16
|
-
var tag = require('../../tag/src/
|
|
16
|
+
var tag = require('../../tag/src/tag2.js');
|
|
17
17
|
var index$1 = require('../../../hooks/use-empty-values/index.js');
|
|
18
18
|
var index$2 = require('../../../hooks/use-aria/index.js');
|
|
19
19
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var tag$1 = require('./src/
|
|
7
|
-
var tag = require('./src/
|
|
6
|
+
var tag$1 = require('./src/tag.js');
|
|
7
|
+
var tag = require('./src/tag2.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const ElTag = install.withInstall(tag$1["default"]);
|