@element-plus/nightly 0.0.20231230 → 0.0.20240101
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 +8 -3
- package/dist/index.full.min.js +21 -21
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +21 -21
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +8 -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/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/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +11 -56
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -11
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +26 -176
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +176 -26
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/form/index.d.ts +1 -0
- package/es/components/form/src/form-item2.mjs +1 -0
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form.vue.d.ts +1 -0
- package/es/components/form/src/form2.mjs +4 -0
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/form/src/types.d.ts +2 -0
- package/es/components/index.mjs +2 -2
- package/es/components/message/src/message2.mjs +1 -1
- package/es/components/message/src/message2.mjs.map +1 -1
- package/es/components/pagination/src/components/next.mjs +19 -38
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +38 -19
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.mjs +23 -69
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes2.mjs +69 -23
- package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- 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/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb-item.js +11 -56
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -11
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +27 -176
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +176 -27
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/form/index.d.ts +1 -0
- package/lib/components/form/src/form-item2.js +1 -0
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form.vue.d.ts +1 -0
- package/lib/components/form/src/form2.js +4 -0
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/form/src/types.d.ts +2 -0
- package/lib/components/index.js +2 -2
- package/lib/components/message/src/message2.js +1 -1
- package/lib/components/message/src/message2.js.map +1 -1
- package/lib/components/pagination/src/components/next.js +19 -38
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +38 -19
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.js +23 -69
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes2.js +69 -23
- package/lib/components/pagination/src/components/sizes2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- 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/web-types.json +1 -1
|
@@ -1,28 +1,74 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent, ref, watch, computed, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, Fragment, renderList, createBlock } from 'vue';
|
|
2
|
+
import { isEqual } from 'lodash-unified';
|
|
3
|
+
import { ElSelect, ElOption } from '../../../select/index.mjs';
|
|
4
|
+
import '../../../../hooks/index.mjs';
|
|
5
|
+
import { usePagination } from '../usePagination.mjs';
|
|
6
|
+
import { paginationSizesProps } from './sizes.mjs';
|
|
7
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
|
+
import { useLocale } from '../../../../hooks/use-locale/index.mjs';
|
|
9
|
+
import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
|
|
6
10
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
const __default__ = defineComponent({
|
|
12
|
+
name: "ElPaginationSizes"
|
|
13
|
+
});
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
|
+
...__default__,
|
|
16
|
+
props: paginationSizesProps,
|
|
17
|
+
emits: ["page-size-change"],
|
|
18
|
+
setup(__props, { emit }) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const { t } = useLocale();
|
|
21
|
+
const ns = useNamespace("pagination");
|
|
22
|
+
const pagination = usePagination();
|
|
23
|
+
const innerPageSize = ref(props.pageSize);
|
|
24
|
+
watch(() => props.pageSizes, (newVal, oldVal) => {
|
|
25
|
+
if (isEqual(newVal, oldVal))
|
|
26
|
+
return;
|
|
27
|
+
if (Array.isArray(newVal)) {
|
|
28
|
+
const pageSize = newVal.includes(props.pageSize) ? props.pageSize : props.pageSizes[0];
|
|
29
|
+
emit("page-size-change", pageSize);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
watch(() => props.pageSize, (newVal) => {
|
|
33
|
+
innerPageSize.value = newVal;
|
|
34
|
+
});
|
|
35
|
+
const innerPageSizes = computed(() => props.pageSizes);
|
|
36
|
+
function handleChange(val) {
|
|
37
|
+
var _a;
|
|
38
|
+
if (val !== innerPageSize.value) {
|
|
39
|
+
innerPageSize.value = val;
|
|
40
|
+
(_a = pagination.handleSizeChange) == null ? void 0 : _a.call(pagination, Number(val));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return openBlock(), createElementBlock("span", {
|
|
45
|
+
class: normalizeClass(unref(ns).e("sizes"))
|
|
46
|
+
}, [
|
|
47
|
+
createVNode(unref(ElSelect), {
|
|
48
|
+
"model-value": innerPageSize.value,
|
|
49
|
+
disabled: _ctx.disabled,
|
|
50
|
+
"popper-class": _ctx.popperClass,
|
|
51
|
+
size: _ctx.size,
|
|
52
|
+
teleported: _ctx.teleported,
|
|
53
|
+
"validate-event": false,
|
|
54
|
+
onChange: handleChange
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [
|
|
57
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(innerPageSizes), (item) => {
|
|
58
|
+
return openBlock(), createBlock(unref(ElOption), {
|
|
59
|
+
key: item,
|
|
60
|
+
value: item,
|
|
61
|
+
label: item + unref(t)("el.pagination.pagesize")
|
|
62
|
+
}, null, 8, ["value", "label"]);
|
|
63
|
+
}), 128))
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
}, 8, ["model-value", "disabled", "popper-class", "size", "teleported"])
|
|
67
|
+
], 2);
|
|
68
|
+
};
|
|
24
69
|
}
|
|
25
70
|
});
|
|
71
|
+
var Sizes = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "sizes.vue"]]);
|
|
26
72
|
|
|
27
|
-
export {
|
|
73
|
+
export { Sizes as default };
|
|
28
74
|
//# sourceMappingURL=sizes2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sizes2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/sizes.
|
|
1
|
+
{"version":3,"file":"sizes2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/sizes.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('sizes')\">\n <el-select\n :model-value=\"innerPageSize\"\n :disabled=\"disabled\"\n :popper-class=\"popperClass\"\n :size=\"size\"\n :teleported=\"teleported\"\n :validate-event=\"false\"\n @change=\"handleChange\"\n >\n <el-option\n v-for=\"item in innerPageSizes\"\n :key=\"item\"\n :value=\"item\"\n :label=\"item + t('el.pagination.pagesize')\"\n />\n </el-select>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, watch } from 'vue'\nimport { isEqual } from 'lodash-unified'\nimport { ElOption, ElSelect } from '@element-plus/components/select'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { usePagination } from '../usePagination'\nimport { paginationSizesProps } from './sizes'\n\ndefineOptions({\n name: 'ElPaginationSizes',\n})\n\nconst props = defineProps(paginationSizesProps)\nconst emit = defineEmits(['page-size-change'])\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst pagination = usePagination()\nconst innerPageSize = ref<number>(props.pageSize!)\n\nwatch(\n () => props.pageSizes,\n (newVal, oldVal) => {\n if (isEqual(newVal, oldVal)) return\n if (Array.isArray(newVal)) {\n const pageSize = newVal.includes(props.pageSize!)\n ? props.pageSize\n : props.pageSizes[0]\n emit('page-size-change', pageSize)\n }\n }\n)\n\nwatch(\n () => props.pageSize,\n (newVal) => {\n innerPageSize.value = newVal!\n }\n)\n\nconst innerPageSizes = computed(() => props.pageSizes)\nfunction handleChange(val: number) {\n if (val !== innerPageSize.value) {\n innerPageSize.value = val\n pagination.handleSizeChange?.(Number(val))\n }\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCA6Bc,CAAA;AAAA,EACZ,IAAM,EAAA,mBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAM,MAAA,EAAE,MAAM,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAa,aAAc,EAAA,CAAA;AACjC,IAAM,MAAA,aAAA,GAA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from './components/prev2.mjs';
|
|
7
|
-
import Next from './components/
|
|
8
|
-
import Sizes from './components/
|
|
7
|
+
import Next from './components/next2.mjs';
|
|
8
|
+
import Sizes from './components/sizes2.mjs';
|
|
9
9
|
import Jumper from './components/jumper2.mjs';
|
|
10
10
|
import Total from './components/total2.mjs';
|
|
11
11
|
import Pager from './components/pager2.mjs';
|
package/es/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ export { ElBacktop } from './components/backtop/index.mjs';
|
|
|
19
19
|
export { badgeProps } from './components/badge/src/badge.mjs';
|
|
20
20
|
export { ElBadge } from './components/badge/index.mjs';
|
|
21
21
|
export { breadcrumbProps } from './components/breadcrumb/src/breadcrumb.mjs';
|
|
22
|
-
export { breadcrumbItemProps } from './components/breadcrumb/src/breadcrumb-
|
|
22
|
+
export { breadcrumbItemProps } from './components/breadcrumb/src/breadcrumb-item.mjs';
|
|
23
23
|
export { breadcrumbKey } from './components/breadcrumb/src/constants.mjs';
|
|
24
24
|
export { ElBreadcrumb, ElBreadcrumbItem } from './components/breadcrumb/index.mjs';
|
|
25
25
|
export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './components/button/src/button.mjs';
|
|
@@ -72,7 +72,7 @@ export { dialogInjectionKey } from './components/dialog/src/constants.mjs';
|
|
|
72
72
|
export { ElDialog } from './components/dialog/index.mjs';
|
|
73
73
|
export { dividerProps } from './components/divider/src/divider.mjs';
|
|
74
74
|
export { ElDivider } from './components/divider/index.mjs';
|
|
75
|
-
export { drawerEmits, drawerProps } from './components/drawer/src/
|
|
75
|
+
export { drawerEmits, drawerProps } from './components/drawer/src/drawer.mjs';
|
|
76
76
|
export { ElDrawer } from './components/drawer/index.mjs';
|
|
77
77
|
export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './components/dropdown/src/dropdown.mjs';
|
|
78
78
|
export { DROPDOWN_INJECTION_KEY } from './components/dropdown/src/tokens.mjs';
|
package/es/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.20240101";
|
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.20240101'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
6
|
var breadcrumb$1 = require('./src/breadcrumb2.js');
|
|
7
|
-
var breadcrumbItem$1 = require('./src/breadcrumb-
|
|
7
|
+
var breadcrumbItem$1 = require('./src/breadcrumb-item2.js');
|
|
8
8
|
var breadcrumb = require('./src/breadcrumb.js');
|
|
9
|
-
var breadcrumbItem = require('./src/breadcrumb-
|
|
9
|
+
var breadcrumbItem = require('./src/breadcrumb-item.js');
|
|
10
10
|
var constants = require('./src/constants.js');
|
|
11
11
|
var install = require('../../utils/vue/install.js');
|
|
12
12
|
|
|
@@ -2,64 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
require('../../../hooks/index.js');
|
|
8
|
-
var constants = require('./constants.js');
|
|
9
|
-
var breadcrumbItem = require('./breadcrumb-item2.js');
|
|
10
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
12
7
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const instance = vue.getCurrentInstance();
|
|
22
|
-
const breadcrumbContext = vue.inject(constants.breadcrumbKey, void 0);
|
|
23
|
-
const ns = index.useNamespace("breadcrumb");
|
|
24
|
-
const router = instance.appContext.config.globalProperties.$router;
|
|
25
|
-
const link = vue.ref();
|
|
26
|
-
const onClick = () => {
|
|
27
|
-
if (!props.to || !router)
|
|
28
|
-
return;
|
|
29
|
-
props.replace ? router.replace(props.to) : router.push(props.to);
|
|
30
|
-
};
|
|
31
|
-
return (_ctx, _cache) => {
|
|
32
|
-
var _a, _b;
|
|
33
|
-
return vue.openBlock(), vue.createElementBlock("span", {
|
|
34
|
-
class: vue.normalizeClass(vue.unref(ns).e("item"))
|
|
35
|
-
}, [
|
|
36
|
-
vue.createElementVNode("span", {
|
|
37
|
-
ref_key: "link",
|
|
38
|
-
ref: link,
|
|
39
|
-
class: vue.normalizeClass([vue.unref(ns).e("inner"), vue.unref(ns).is("link", !!_ctx.to)]),
|
|
40
|
-
role: "link",
|
|
41
|
-
onClick
|
|
42
|
-
}, [
|
|
43
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
44
|
-
], 2),
|
|
45
|
-
((_a = vue.unref(breadcrumbContext)) == null ? void 0 : _a.separatorIcon) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: vue.normalizeClass(vue.unref(ns).e("separator"))
|
|
48
|
-
}, {
|
|
49
|
-
default: vue.withCtx(() => [
|
|
50
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(breadcrumbContext).separatorIcon)))
|
|
51
|
-
]),
|
|
52
|
-
_: 1
|
|
53
|
-
}, 8, ["class"])) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
54
|
-
key: 1,
|
|
55
|
-
class: vue.normalizeClass(vue.unref(ns).e("separator")),
|
|
56
|
-
role: "presentation"
|
|
57
|
-
}, vue.toDisplayString((_b = vue.unref(breadcrumbContext)) == null ? void 0 : _b.separator), 3))
|
|
58
|
-
], 2);
|
|
59
|
-
};
|
|
8
|
+
const breadcrumbItemProps = runtime.buildProps({
|
|
9
|
+
to: {
|
|
10
|
+
type: runtime.definePropType([String, Object]),
|
|
11
|
+
default: ""
|
|
12
|
+
},
|
|
13
|
+
replace: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false
|
|
60
16
|
}
|
|
61
17
|
});
|
|
62
|
-
var BreadcrumbItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "breadcrumb-item.vue"]]);
|
|
63
18
|
|
|
64
|
-
exports
|
|
19
|
+
exports.breadcrumbItemProps = breadcrumbItemProps;
|
|
65
20
|
//# sourceMappingURL=breadcrumb-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb-item.js","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.
|
|
1
|
+
{"version":3,"file":"breadcrumb-item.js","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\n\nexport const breadcrumbItemProps = buildProps({\n /**\n * @description target route of the link, same as `to` of `vue-router`\n */\n to: {\n type: definePropType<RouteLocationRaw>([String, Object]),\n default: '',\n },\n /**\n * @description if `true`, the navigation will not leave a history record\n */\n replace: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type BreadcrumbItemProps = ExtractPropTypes<typeof breadcrumbItemProps>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACY,MAAC,mBAAmB,GAAGA,kBAAU,CAAC;AAC9C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -2,19 +2,64 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$1 = require('../../icon/index.js');
|
|
7
|
+
require('../../../hooks/index.js');
|
|
8
|
+
var constants = require('./constants.js');
|
|
9
|
+
var breadcrumbItem = require('./breadcrumb-item.js');
|
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
7
12
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
const __default__ = vue.defineComponent({
|
|
14
|
+
name: "ElBreadcrumbItem"
|
|
15
|
+
});
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
17
|
+
...__default__,
|
|
18
|
+
props: breadcrumbItem.breadcrumbItemProps,
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const instance = vue.getCurrentInstance();
|
|
22
|
+
const breadcrumbContext = vue.inject(constants.breadcrumbKey, void 0);
|
|
23
|
+
const ns = index.useNamespace("breadcrumb");
|
|
24
|
+
const router = instance.appContext.config.globalProperties.$router;
|
|
25
|
+
const link = vue.ref();
|
|
26
|
+
const onClick = () => {
|
|
27
|
+
if (!props.to || !router)
|
|
28
|
+
return;
|
|
29
|
+
props.replace ? router.replace(props.to) : router.push(props.to);
|
|
30
|
+
};
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
return vue.openBlock(), vue.createElementBlock("span", {
|
|
34
|
+
class: vue.normalizeClass(vue.unref(ns).e("item"))
|
|
35
|
+
}, [
|
|
36
|
+
vue.createElementVNode("span", {
|
|
37
|
+
ref_key: "link",
|
|
38
|
+
ref: link,
|
|
39
|
+
class: vue.normalizeClass([vue.unref(ns).e("inner"), vue.unref(ns).is("link", !!_ctx.to)]),
|
|
40
|
+
role: "link",
|
|
41
|
+
onClick
|
|
42
|
+
}, [
|
|
43
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
44
|
+
], 2),
|
|
45
|
+
((_a = vue.unref(breadcrumbContext)) == null ? void 0 : _a.separatorIcon) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: vue.normalizeClass(vue.unref(ns).e("separator"))
|
|
48
|
+
}, {
|
|
49
|
+
default: vue.withCtx(() => [
|
|
50
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(breadcrumbContext).separatorIcon)))
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["class"])) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
54
|
+
key: 1,
|
|
55
|
+
class: vue.normalizeClass(vue.unref(ns).e("separator")),
|
|
56
|
+
role: "presentation"
|
|
57
|
+
}, vue.toDisplayString((_b = vue.unref(breadcrumbContext)) == null ? void 0 : _b.separator), 3))
|
|
58
|
+
], 2);
|
|
59
|
+
};
|
|
16
60
|
}
|
|
17
61
|
});
|
|
62
|
+
var BreadcrumbItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "breadcrumb-item.vue"]]);
|
|
18
63
|
|
|
19
|
-
exports
|
|
64
|
+
exports["default"] = BreadcrumbItem;
|
|
20
65
|
//# sourceMappingURL=breadcrumb-item2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb-item2.js","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.
|
|
1
|
+
{"version":3,"file":"breadcrumb-item2.js","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('item')\">\n <span\n ref=\"link\"\n :class=\"[ns.e('inner'), ns.is('link', !!to)]\"\n role=\"link\"\n @click=\"onClick\"\n >\n <slot />\n </span>\n <el-icon v-if=\"breadcrumbContext?.separatorIcon\" :class=\"ns.e('separator')\">\n <component :is=\"breadcrumbContext.separatorIcon\" />\n </el-icon>\n <span v-else :class=\"ns.e('separator')\" role=\"presentation\">\n {{ breadcrumbContext?.separator }}\n </span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, inject, ref } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { breadcrumbKey } from './constants'\nimport { breadcrumbItemProps } from './breadcrumb-item'\n\nimport type { Router } from 'vue-router'\n\ndefineOptions({\n name: 'ElBreadcrumbItem',\n})\n\nconst props = defineProps(breadcrumbItemProps)\n\nconst instance = getCurrentInstance()!\nconst breadcrumbContext = inject(breadcrumbKey, undefined)\nconst ns = useNamespace('breadcrumb')\n\nconst router = instance.appContext.config.globalProperties.$router as Router\n\nconst link = ref<HTMLSpanElement>()\n\nconst onClick = () => {\n if (!props.to || !router) return\n props.replace ? router.replace(props.to) : router.push(props.to)\n}\n</script>\n"],"names":["getCurrentInstance","inject","breadcrumbKey","useNamespace","ref"],"mappings":";;;;;;;;;;;;uCA4Bc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,WAAWA,sBAAmB,EAAA,CAAA;AACpC,IAAM,MAAA,iBAAA,GAAoBC,UAAO,CAAAC,uBAAA,EAAe,KAAS,CAAA,CAAA,CAAA;AACzD,IAAM,MAAA,EAAA,GAAKC,mBAAa,YAAY,CAAA,CAAA;AAEpC,IAAA,MAAM,MAAS,GAAA,QAAA,CAAS,UAAW,CAAA,MAAA,CAAO,gBAAiB,CAAA,OAAA,CAAA;AAE3D,IAAA,MAAM,OAAOC,OAAqB,EAAA,CAAA;AAElC,IAAA,MAAM,UAAU,MAAM;AACpB,MAAI,IAAA,CAAC,KAAM,CAAA,EAAA,IAAM,CAAC,MAAA;AAAQ,QAAA,OAAA;AAC1B,MAAM,KAAA,CAAA,OAAA,GAAU,OAAO,OAAQ,CAAA,KAAA,CAAM,EAAE,CAAI,GAAA,MAAA,CAAO,IAAK,CAAA,KAAA,CAAM,EAAE,CAAA,CAAA;AAAA,KACjE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var drawer$1 = require('./src/
|
|
7
|
-
var drawer = require('./src/
|
|
6
|
+
var drawer$1 = require('./src/drawer2.js');
|
|
7
|
+
var drawer = require('./src/drawer.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const ElDrawer = install.withInstall(drawer$1["default"]);
|
|
@@ -2,186 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var iconsVue = require('@element-plus/icons-vue');
|
|
7
|
-
var index = require('../../overlay/index.js');
|
|
8
|
-
require('../../focus-trap/index.js');
|
|
9
|
-
require('../../dialog/index.js');
|
|
10
5
|
require('../../../utils/index.js');
|
|
11
|
-
|
|
12
|
-
require('../../../
|
|
13
|
-
var
|
|
14
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
15
|
-
var focusTrap = require('../../focus-trap/src/focus-trap.js');
|
|
16
|
-
var index$2 = require('../../../hooks/use-deprecated/index.js');
|
|
17
|
-
var index$3 = require('../../../hooks/use-namespace/index.js');
|
|
18
|
-
var index$4 = require('../../../hooks/use-locale/index.js');
|
|
19
|
-
var style = require('../../../utils/dom/style.js');
|
|
20
|
-
var useDialog = require('../../dialog/src/use-dialog.js');
|
|
6
|
+
require('../../dialog/index.js');
|
|
7
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
8
|
+
var dialog = require('../../dialog/src/dialog.js');
|
|
21
9
|
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
10
|
+
const drawerProps = runtime.buildProps({
|
|
11
|
+
...dialog.dialogProps,
|
|
12
|
+
direction: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "rtl",
|
|
15
|
+
values: ["ltr", "rtl", "ttb", "btt"]
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
type: [String, Number],
|
|
19
|
+
default: "30%"
|
|
20
|
+
},
|
|
21
|
+
withHeader: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: true
|
|
24
|
+
},
|
|
25
|
+
modalFade: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true
|
|
29
28
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
setup(props, { slots }) {
|
|
34
|
-
index$2.useDeprecated({
|
|
35
|
-
scope: "el-drawer",
|
|
36
|
-
from: "the title slot",
|
|
37
|
-
replacement: "the header slot",
|
|
38
|
-
version: "3.0.0",
|
|
39
|
-
ref: "https://element-plus.org/en-US/component/drawer.html#slots"
|
|
40
|
-
}, vue.computed(() => !!slots.title));
|
|
41
|
-
index$2.useDeprecated({
|
|
42
|
-
scope: "el-drawer",
|
|
43
|
-
from: "custom-class",
|
|
44
|
-
replacement: "class",
|
|
45
|
-
version: "2.3.0",
|
|
46
|
-
ref: "https://element-plus.org/en-US/component/drawer.html#attributes",
|
|
47
|
-
type: "Attribute"
|
|
48
|
-
}, vue.computed(() => !!props.customClass));
|
|
49
|
-
const drawerRef = vue.ref();
|
|
50
|
-
const focusStartRef = vue.ref();
|
|
51
|
-
const ns = index$3.useNamespace("drawer");
|
|
52
|
-
const { t } = index$4.useLocale();
|
|
53
|
-
const isHorizontal = vue.computed(() => props.direction === "rtl" || props.direction === "ltr");
|
|
54
|
-
const drawerSize = vue.computed(() => style.addUnit(props.size));
|
|
55
|
-
return {
|
|
56
|
-
...useDialog.useDialog(props, drawerRef),
|
|
57
|
-
drawerRef,
|
|
58
|
-
focusStartRef,
|
|
59
|
-
isHorizontal,
|
|
60
|
-
drawerSize,
|
|
61
|
-
ns,
|
|
62
|
-
t
|
|
63
|
-
};
|
|
29
|
+
headerAriaLevel: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "2"
|
|
64
32
|
}
|
|
65
33
|
});
|
|
66
|
-
const
|
|
67
|
-
const _hoisted_2 = ["id", "aria-level"];
|
|
68
|
-
const _hoisted_3 = ["aria-label"];
|
|
69
|
-
const _hoisted_4 = ["id"];
|
|
70
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
71
|
-
const _component_close = vue.resolveComponent("close");
|
|
72
|
-
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
73
|
-
const _component_el_focus_trap = vue.resolveComponent("el-focus-trap");
|
|
74
|
-
const _component_el_overlay = vue.resolveComponent("el-overlay");
|
|
75
|
-
return vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
76
|
-
to: "body",
|
|
77
|
-
disabled: !_ctx.appendToBody
|
|
78
|
-
}, [
|
|
79
|
-
vue.createVNode(vue.Transition, {
|
|
80
|
-
name: _ctx.ns.b("fade"),
|
|
81
|
-
onAfterEnter: _ctx.afterEnter,
|
|
82
|
-
onAfterLeave: _ctx.afterLeave,
|
|
83
|
-
onBeforeLeave: _ctx.beforeLeave,
|
|
84
|
-
persisted: ""
|
|
85
|
-
}, {
|
|
86
|
-
default: vue.withCtx(() => [
|
|
87
|
-
vue.withDirectives(vue.createVNode(_component_el_overlay, {
|
|
88
|
-
mask: _ctx.modal,
|
|
89
|
-
"overlay-class": _ctx.modalClass,
|
|
90
|
-
"z-index": _ctx.zIndex,
|
|
91
|
-
onClick: _ctx.onModalClick
|
|
92
|
-
}, {
|
|
93
|
-
default: vue.withCtx(() => [
|
|
94
|
-
vue.createVNode(_component_el_focus_trap, {
|
|
95
|
-
loop: "",
|
|
96
|
-
trapped: _ctx.visible,
|
|
97
|
-
"focus-trap-el": _ctx.drawerRef,
|
|
98
|
-
"focus-start-el": _ctx.focusStartRef,
|
|
99
|
-
onReleaseRequested: _ctx.onCloseRequested
|
|
100
|
-
}, {
|
|
101
|
-
default: vue.withCtx(() => [
|
|
102
|
-
vue.createElementVNode("div", vue.mergeProps({
|
|
103
|
-
ref: "drawerRef",
|
|
104
|
-
"aria-modal": "true",
|
|
105
|
-
"aria-label": _ctx.title || void 0,
|
|
106
|
-
"aria-labelledby": !_ctx.title ? _ctx.titleId : void 0,
|
|
107
|
-
"aria-describedby": _ctx.bodyId
|
|
108
|
-
}, _ctx.$attrs, {
|
|
109
|
-
class: [_ctx.ns.b(), _ctx.direction, _ctx.visible && "open", _ctx.customClass],
|
|
110
|
-
style: _ctx.isHorizontal ? "width: " + _ctx.drawerSize : "height: " + _ctx.drawerSize,
|
|
111
|
-
role: "dialog",
|
|
112
|
-
onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
|
|
113
|
-
}, ["stop"]))
|
|
114
|
-
}), [
|
|
115
|
-
vue.createElementVNode("span", {
|
|
116
|
-
ref: "focusStartRef",
|
|
117
|
-
class: vue.normalizeClass(_ctx.ns.e("sr-focus")),
|
|
118
|
-
tabindex: "-1"
|
|
119
|
-
}, null, 2),
|
|
120
|
-
_ctx.withHeader ? (vue.openBlock(), vue.createElementBlock("header", {
|
|
121
|
-
key: 0,
|
|
122
|
-
class: vue.normalizeClass(_ctx.ns.e("header"))
|
|
123
|
-
}, [
|
|
124
|
-
!_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "header", {
|
|
125
|
-
key: 0,
|
|
126
|
-
close: _ctx.handleClose,
|
|
127
|
-
titleId: _ctx.titleId,
|
|
128
|
-
titleClass: _ctx.ns.e("title")
|
|
129
|
-
}, () => [
|
|
130
|
-
!_ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
131
|
-
key: 0,
|
|
132
|
-
id: _ctx.titleId,
|
|
133
|
-
role: "heading",
|
|
134
|
-
"aria-level": _ctx.headerAriaLevel,
|
|
135
|
-
class: vue.normalizeClass(_ctx.ns.e("title"))
|
|
136
|
-
}, vue.toDisplayString(_ctx.title), 11, _hoisted_2)) : vue.createCommentVNode("v-if", true)
|
|
137
|
-
]) : vue.renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
138
|
-
vue.createCommentVNode(" DEPRECATED SLOT ")
|
|
139
|
-
]),
|
|
140
|
-
_ctx.showClose ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
141
|
-
key: 2,
|
|
142
|
-
"aria-label": _ctx.t("el.drawer.close"),
|
|
143
|
-
class: vue.normalizeClass(_ctx.ns.e("close-btn")),
|
|
144
|
-
type: "button",
|
|
145
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClose && _ctx.handleClose(...args))
|
|
146
|
-
}, [
|
|
147
|
-
vue.createVNode(_component_el_icon, {
|
|
148
|
-
class: vue.normalizeClass(_ctx.ns.e("close"))
|
|
149
|
-
}, {
|
|
150
|
-
default: vue.withCtx(() => [
|
|
151
|
-
vue.createVNode(_component_close)
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
}, 8, ["class"])
|
|
155
|
-
], 10, _hoisted_3)) : vue.createCommentVNode("v-if", true)
|
|
156
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
157
|
-
_ctx.rendered ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
158
|
-
key: 1,
|
|
159
|
-
id: _ctx.bodyId,
|
|
160
|
-
class: vue.normalizeClass(_ctx.ns.e("body"))
|
|
161
|
-
}, [
|
|
162
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
163
|
-
], 10, _hoisted_4)) : vue.createCommentVNode("v-if", true),
|
|
164
|
-
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
165
|
-
key: 2,
|
|
166
|
-
class: vue.normalizeClass(_ctx.ns.e("footer"))
|
|
167
|
-
}, [
|
|
168
|
-
vue.renderSlot(_ctx.$slots, "footer")
|
|
169
|
-
], 2)) : vue.createCommentVNode("v-if", true)
|
|
170
|
-
], 16, _hoisted_1)
|
|
171
|
-
]),
|
|
172
|
-
_: 3
|
|
173
|
-
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onReleaseRequested"])
|
|
174
|
-
]),
|
|
175
|
-
_: 3
|
|
176
|
-
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
|
177
|
-
[vue.vShow, _ctx.visible]
|
|
178
|
-
])
|
|
179
|
-
]),
|
|
180
|
-
_: 3
|
|
181
|
-
}, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
|
|
182
|
-
], 8, ["disabled"]);
|
|
183
|
-
}
|
|
184
|
-
var Drawer = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "drawer.vue"]]);
|
|
34
|
+
const drawerEmits = dialog.dialogEmits;
|
|
185
35
|
|
|
186
|
-
exports
|
|
36
|
+
exports.drawerEmits = drawerEmits;
|
|
37
|
+
exports.drawerProps = drawerProps;
|
|
187
38
|
//# sourceMappingURL=drawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","sources":["../../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <teleport to=\"body\" :disabled=\"!appendToBody\">\n <transition\n :name=\"ns.b('fade')\"\n @after-enter=\"afterEnter\"\n @after-leave=\"afterLeave\"\n @before-leave=\"beforeLeave\"\n >\n <el-overlay\n v-show=\"visible\"\n :mask=\"modal\"\n :overlay-class=\"modalClass\"\n :z-index=\"zIndex\"\n @click=\"onModalClick\"\n >\n <el-focus-trap\n loop\n :trapped=\"visible\"\n :focus-trap-el=\"drawerRef\"\n :focus-start-el=\"focusStartRef\"\n @release-requested=\"onCloseRequested\"\n >\n <div\n ref=\"drawerRef\"\n aria-modal=\"true\"\n :aria-label=\"title || undefined\"\n :aria-labelledby=\"!title ? titleId : undefined\"\n :aria-describedby=\"bodyId\"\n v-bind=\"$attrs\"\n :class=\"[ns.b(), direction, visible && 'open', customClass]\"\n :style=\"\n isHorizontal ? 'width: ' + drawerSize : 'height: ' + drawerSize\n \"\n role=\"dialog\"\n @click.stop\n >\n <span ref=\"focusStartRef\" :class=\"ns.e('sr-focus')\" tabindex=\"-1\" />\n <header v-if=\"withHeader\" :class=\"ns.e('header')\">\n <slot\n v-if=\"!$slots.title\"\n name=\"header\"\n :close=\"handleClose\"\n :title-id=\"titleId\"\n :title-class=\"ns.e('title')\"\n >\n <span\n v-if=\"!$slots.title\"\n :id=\"titleId\"\n role=\"heading\"\n :aria-level=\"headerAriaLevel\"\n :class=\"ns.e('title')\"\n >\n {{ title }}\n </span>\n </slot>\n <slot v-else name=\"title\">\n <!-- DEPRECATED SLOT -->\n </slot>\n <button\n v-if=\"showClose\"\n :aria-label=\"t('el.drawer.close')\"\n :class=\"ns.e('close-btn')\"\n type=\"button\"\n @click=\"handleClose\"\n >\n <el-icon :class=\"ns.e('close')\"><close /></el-icon>\n </button>\n </header>\n <template v-if=\"rendered\">\n <div :id=\"bodyId\" :class=\"ns.e('body')\">\n <slot />\n </div>\n </template>\n <div v-if=\"$slots.footer\" :class=\"ns.e('footer')\">\n <slot name=\"footer\" />\n </div>\n </div>\n </el-focus-trap>\n </el-overlay>\n </transition>\n </teleport>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, ref } from 'vue'\nimport { Close } from '@element-plus/icons-vue'\n\nimport { ElOverlay } from '@element-plus/components/overlay'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport { useDialog } from '@element-plus/components/dialog'\nimport { addUnit } from '@element-plus/utils'\nimport ElIcon from '@element-plus/components/icon'\nimport { useDeprecated, useLocale, useNamespace } from '@element-plus/hooks'\nimport { drawerEmits, drawerProps } from './drawer'\n\nexport default defineComponent({\n name: 'ElDrawer',\n components: {\n ElOverlay,\n ElFocusTrap,\n ElIcon,\n Close,\n },\n inheritAttrs: false,\n props: drawerProps,\n emits: drawerEmits,\n\n setup(props, { slots }) {\n useDeprecated(\n {\n scope: 'el-drawer',\n from: 'the title slot',\n replacement: 'the header slot',\n version: '3.0.0',\n ref: 'https://element-plus.org/en-US/component/drawer.html#slots',\n },\n computed(() => !!slots.title)\n )\n useDeprecated(\n {\n scope: 'el-drawer',\n from: 'custom-class',\n replacement: 'class',\n version: '2.3.0',\n ref: 'https://element-plus.org/en-US/component/drawer.html#attributes',\n type: 'Attribute',\n },\n computed(() => !!props.customClass)\n )\n\n const drawerRef = ref<HTMLElement>()\n const focusStartRef = ref<HTMLElement>()\n const ns = useNamespace('drawer')\n const { t } = useLocale()\n\n const isHorizontal = computed(\n () => props.direction === 'rtl' || props.direction === 'ltr'\n )\n const drawerSize = computed(() => addUnit(props.size))\n\n return {\n ...useDialog(props, drawerRef),\n drawerRef,\n focusStartRef,\n isHorizontal,\n drawerSize,\n ns,\n t,\n }\n },\n})\n</script>\n"],"names":["defineComponent","ElOverlay","ElFocusTrap","ElIcon","Close","drawerProps","drawerEmits","useDeprecated","computed","ref","useNamespace","useLocale","addUnit","useDialog","_createBlock","_Teleport","_createVNode","_Transition","_withDirectives","_createElementVNode","_mergeProps","_withModifiers","_normalizeClass","_openBlock","_createElementBlock","_renderSlot","_toDisplayString","_createCommentVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA+FA,MAAK,YAAaA,mBAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,UAAA;AAAA,EACN,UAA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A,CAAA,CAAA;AAAA,qBAAA,EAAA;sBAERN,eAAmD,CAAA,kBAAA,EAAA;AAAA,wBAAzC,KAAA,EAAKM,kBAAE,CAAA,IAAA,CAAA,EAAA,CAAG,CAAC,CAAA,OAAA,CAAA,CAAA;AAAA,uBAAA,EAAA;6CAAW,MAAS;AAAA,0BAATN,eAAS,CAAA,gBAAA,CAAA;AAAA,yBAAA,CAAA;;;;;AAG7B,kBAAA,IAAA,CAAA,QAAA,IAAAO,aAAA,EAAA,EACdC,sBAEM,CAAA,KAAA,EAAA;AAAA,oBAAA,GAAA,EAAA,CAAA;oBAFA,EAAI,EAAA,IAAA,CAAA,MAAA;AAAA,oBAAS,KAAA,EAAKF,kBAAE,CAAA,IAAA,CAAA,EAAA,CAAG,CAAC,CAAA,MAAA,CAAA,CAAA;AAAA,mBAAA,EAAA;oBAC5BG,cAAQ,CAAA,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,mBAAA,EAAA,EAAA,EAAA,UAAA,CAAA,IAAAE,sBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;AAGD,kBAAA,IAAA,CAAA,MAAA,CAAO,2BAAlBH,sBAEM,CAAA,KAAA,EAAA;AAAA,oBAAA,GAAA,EAAA,CAAA;oBAFqB,KAAK,EAAAF,kBAAA,CAAE,QAAG,CAAC,CAAA,QAAA,CAAA,CAAA;AAAA,mBAAA,EAAA;oBACpCG,cAAsB,CAAA,IAAA,CAAA,MAAA,EAAA,QAAA,CAAA;AAAA,mBAAA,EAAA,CAAA,CAAA,IAAAE,sBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;;;;;;;;sBAjEpB,IAAO,CAAA,OAAA,CAAA;AAAA,SAAA,CAAA;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"drawer.js","sources":["../../../../../../packages/components/drawer/src/drawer.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { dialogEmits, dialogProps } from '@element-plus/components/dialog'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const drawerProps = buildProps({\n ...dialogProps,\n direction: {\n type: String,\n default: 'rtl',\n values: ['ltr', 'rtl', 'ttb', 'btt'],\n },\n size: {\n type: [String, Number],\n default: '30%',\n },\n withHeader: {\n type: Boolean,\n default: true,\n },\n modalFade: {\n type: Boolean,\n default: true,\n },\n headerAriaLevel: {\n type: String,\n default: '2',\n },\n} as const)\n\nexport type DrawerProps = ExtractPropTypes<typeof drawerProps>\n\nexport const drawerEmits = dialogEmits\n"],"names":["buildProps","dialogProps","dialogEmits"],"mappings":";;;;;;;;;AAEY,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,GAAGC,kBAAW;AAChB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;AACxC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAGC;;;;;"}
|