@pungfe/element 0.0.1-alpha.20 → 0.0.1-alpha.21
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/cjs/Button-Dkqk8lXH.cjs +2 -0
- package/dist/cjs/Button-Dkqk8lXH.cjs.map +1 -0
- package/dist/cjs/Button.cjs +1 -1
- package/dist/cjs/ButtonPopconfirm.cjs +1 -1
- package/dist/cjs/ConfigProvider-lII820wO.cjs +2 -0
- package/dist/cjs/{ConfigProvider-CF5710p3.cjs.map → ConfigProvider-lII820wO.cjs.map} +1 -1
- package/dist/cjs/ConfigProvider.cjs +1 -1
- package/dist/cjs/DatePicker-DvW11A5y.cjs +2 -0
- package/dist/cjs/DatePicker-DvW11A5y.cjs.map +1 -0
- package/dist/cjs/DatePicker.cjs +1 -1
- package/dist/cjs/Dialog.cjs +1 -1
- package/dist/cjs/Form-269B6UNo.cjs +2 -0
- package/dist/cjs/Form-269B6UNo.cjs.map +1 -0
- package/dist/cjs/Form.cjs +1 -1
- package/dist/cjs/{FormItem-Dpf2GUq-.cjs → FormItem-Dr0G-5Q4.cjs} +2 -2
- package/dist/cjs/{FormItem-Dpf2GUq-.cjs.map → FormItem-Dr0G-5Q4.cjs.map} +1 -1
- package/dist/cjs/FormItem.cjs +1 -1
- package/dist/cjs/Input-DuZALrON.cjs +2 -0
- package/dist/cjs/Input-DuZALrON.cjs.map +1 -0
- package/dist/cjs/Input.cjs +1 -1
- package/dist/cjs/InputNumber-DPd4h9mJ.cjs +2 -0
- package/dist/cjs/InputNumber-DPd4h9mJ.cjs.map +1 -0
- package/dist/cjs/InputNumber.cjs +1 -1
- package/dist/cjs/Pagination.cjs +1 -1
- package/dist/cjs/Select-C-b-Biw3.cjs +2 -0
- package/dist/cjs/Select-C-b-Biw3.cjs.map +1 -0
- package/dist/cjs/Select.cjs +1 -1
- package/dist/cjs/{TabPane-9vViJx44.cjs → TabPane-6xH7oG0B.cjs} +2 -2
- package/dist/cjs/{TabPane-9vViJx44.cjs.map → TabPane-6xH7oG0B.cjs.map} +1 -1
- package/dist/cjs/TabPane.cjs +1 -1
- package/dist/cjs/Table-DpQglHP2.cjs +2 -0
- package/dist/cjs/Table-DpQglHP2.cjs.map +1 -0
- package/dist/cjs/Table.cjs +1 -1
- package/dist/cjs/{Tabs-DvJ62WAc.cjs → Tabs-BjfrK6HM.cjs} +2 -2
- package/dist/cjs/{Tabs-DvJ62WAc.cjs.map → Tabs-BjfrK6HM.cjs.map} +1 -1
- package/dist/cjs/Tabs.cjs +1 -1
- package/dist/cjs/{Upload-DP-wG7wt.cjs → Upload-CXRSAOCS.cjs} +2 -2
- package/dist/cjs/Upload-CXRSAOCS.cjs.map +1 -0
- package/dist/cjs/Upload.cjs +1 -1
- package/dist/cjs/components-Xete52W-.cjs +2 -0
- package/dist/cjs/components-Xete52W-.cjs.map +1 -0
- package/dist/cjs/constants-C1UtNKNR.cjs +2 -0
- package/dist/cjs/{constants-498ChIuS.cjs.map → constants-C1UtNKNR.cjs.map} +1 -1
- package/dist/cjs/{en-DDRiWSYm.cjs → en-B0d-nlXX.cjs} +2 -2
- package/dist/cjs/{en-DDRiWSYm.cjs.map → en-B0d-nlXX.cjs.map} +1 -1
- package/dist/cjs/en.cjs +1 -1
- package/dist/cjs/index.cjs +2 -1
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index2.cjs +1 -1
- package/dist/cjs/resolver.cjs +1 -1
- package/dist/cjs/resolver.cjs.map +1 -1
- package/dist/cjs/{zh-cn-D5-GtCK7.cjs → zh-cn-DsaoBOfv.cjs} +2 -2
- package/dist/cjs/{zh-cn-D5-GtCK7.cjs.map → zh-cn-DsaoBOfv.cjs.map} +1 -1
- package/dist/cjs/zh-cn.cjs +1 -1
- package/dist/es/{Button-JMW0j5pe.js → Button-BgxatYKq.js} +5 -2
- package/dist/es/Button-BgxatYKq.js.map +1 -0
- package/dist/es/Button.js +1 -1
- package/dist/es/ButtonPopconfirm.js +15 -15
- package/dist/es/{ConfigProvider-kajsj06e.js → ConfigProvider-BlRc251T.js} +3 -3
- package/dist/es/{ConfigProvider-kajsj06e.js.map → ConfigProvider-BlRc251T.js.map} +1 -1
- package/dist/es/ConfigProvider.js +3 -3
- package/dist/es/{DatePicker-Bk5znp2I.js → DatePicker-BDjnMA3B.js} +8 -5
- package/dist/es/DatePicker-BDjnMA3B.js.map +1 -0
- package/dist/es/DatePicker.js +1 -1
- package/dist/es/{Form-BDvJQmaK.js → Form-wBMmnwZj.js} +16 -16
- package/dist/es/Form-wBMmnwZj.js.map +1 -0
- package/dist/es/Form.js +1 -1
- package/dist/es/{FormItem-D1urI0Le.js → FormItem--C1bP0wY.js} +4 -4
- package/dist/es/{FormItem-D1urI0Le.js.map → FormItem--C1bP0wY.js.map} +1 -1
- package/dist/es/FormItem.js +1 -1
- package/dist/es/{Input-DzvAvypN.js → Input-JT0g3gkf.js} +7 -4
- package/dist/es/Input-JT0g3gkf.js.map +1 -0
- package/dist/es/Input.js +1 -1
- package/dist/es/{InputNumber-DIO6CJCX.js → InputNumber-CFTLdulD.js} +7 -4
- package/dist/es/InputNumber-CFTLdulD.js.map +1 -0
- package/dist/es/InputNumber.js +1 -1
- package/dist/es/{Select-CFKKE0I-.js → Select-BKdDBeJC.js} +5 -5
- package/dist/es/Select-BKdDBeJC.js.map +1 -0
- package/dist/es/Select.js +1 -1
- package/dist/es/{TabPane-DhCA6CP1.js → TabPane-CzInYf67.js} +3 -3
- package/dist/es/{TabPane-DhCA6CP1.js.map → TabPane-CzInYf67.js.map} +1 -1
- package/dist/es/TabPane.js +1 -1
- package/dist/es/Table-Cm_Dki-c.js +104 -0
- package/dist/es/Table-Cm_Dki-c.js.map +1 -0
- package/dist/es/Table.js +1 -1
- package/dist/es/{Tabs-BOs1W9TP.js → Tabs-CKIkuQ81.js} +2 -2
- package/dist/es/{Tabs-BOs1W9TP.js.map → Tabs-CKIkuQ81.js.map} +1 -1
- package/dist/es/Tabs.js +1 -1
- package/dist/es/Upload-DCnEcRkL.js +52 -0
- package/dist/es/Upload-DCnEcRkL.js.map +1 -0
- package/dist/es/Upload.js +1 -1
- package/dist/es/components-DKoUIsFy.js +91 -0
- package/dist/es/components-DKoUIsFy.js.map +1 -0
- package/dist/es/constants-TVJ7auaC.js +6 -0
- package/dist/es/{constants-C3A6yPOr.js.map → constants-TVJ7auaC.js.map} +1 -1
- package/dist/es/{en-DgZ1R4Cz.js → en-BAY1fB2Q.js} +2 -5
- package/dist/es/{en-DgZ1R4Cz.js.map → en-BAY1fB2Q.js.map} +1 -1
- package/dist/es/en.js +1 -1
- package/dist/es/index.js +27 -18
- package/dist/es/index.js.map +1 -0
- package/dist/es/index2.js +2 -2
- package/dist/es/{zh-cn-ddOn6b4x.js → zh-cn-UaM4b5St.js} +2 -5
- package/dist/es/{zh-cn-ddOn6b4x.js.map → zh-cn-UaM4b5St.js.map} +1 -1
- package/dist/es/zh-cn.js +1 -1
- package/dist/types/components/ConfigProvider.vue.d.ts +21 -0
- package/dist/types/components/Dialog.vue.d.ts +9 -7
- package/dist/types/components/Form.vue.d.ts +0 -7
- package/dist/types/components/FormItem.vue.d.ts +1 -8
- package/dist/types/components/Input.vue.d.ts +7 -5
- package/dist/types/components/Select.vue.d.ts +6 -2
- package/dist/types/components/Table.vue.d.ts +1 -0
- package/dist/types/components/Upload.vue.d.ts +16 -3
- package/dist/types/components/index.d.ts +50 -14
- package/dist/types/constants/index.d.ts +3 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/install.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cjs/Button-BvJXFXQb.cjs +0 -2
- package/dist/cjs/Button-BvJXFXQb.cjs.map +0 -1
- package/dist/cjs/ConfigProvider-CF5710p3.cjs +0 -2
- package/dist/cjs/DatePicker-DokBZGcA.cjs +0 -2
- package/dist/cjs/DatePicker-DokBZGcA.cjs.map +0 -1
- package/dist/cjs/Form-B2jzuMRl.cjs +0 -2
- package/dist/cjs/Form-B2jzuMRl.cjs.map +0 -1
- package/dist/cjs/Input-DebAbTvN.cjs +0 -2
- package/dist/cjs/Input-DebAbTvN.cjs.map +0 -1
- package/dist/cjs/InputNumber-Bkgf6gyB.cjs +0 -2
- package/dist/cjs/InputNumber-Bkgf6gyB.cjs.map +0 -1
- package/dist/cjs/Select-ClHQizmh.cjs +0 -2
- package/dist/cjs/Select-ClHQizmh.cjs.map +0 -1
- package/dist/cjs/Table-BxehOmrv.cjs +0 -2
- package/dist/cjs/Table-BxehOmrv.cjs.map +0 -1
- package/dist/cjs/TableColumn.cjs +0 -2
- package/dist/cjs/TableColumn.cjs.map +0 -1
- package/dist/cjs/Upload-DP-wG7wt.cjs.map +0 -1
- package/dist/cjs/components-B4ncCgXt.cjs +0 -2
- package/dist/cjs/components-B4ncCgXt.cjs.map +0 -1
- package/dist/cjs/constants-498ChIuS.cjs +0 -2
- package/dist/es/Button-JMW0j5pe.js.map +0 -1
- package/dist/es/DatePicker-Bk5znp2I.js.map +0 -1
- package/dist/es/Form-BDvJQmaK.js.map +0 -1
- package/dist/es/Input-DzvAvypN.js.map +0 -1
- package/dist/es/InputNumber-DIO6CJCX.js.map +0 -1
- package/dist/es/Select-CFKKE0I-.js.map +0 -1
- package/dist/es/Table-ZkfKXNqO.js +0 -101
- package/dist/es/Table-ZkfKXNqO.js.map +0 -1
- package/dist/es/TableColumn.js +0 -17
- package/dist/es/TableColumn.js.map +0 -1
- package/dist/es/Upload-BvTAas_1.js +0 -44
- package/dist/es/Upload-BvTAas_1.js.map +0 -1
- package/dist/es/components-BMcANiOi.js +0 -56
- package/dist/es/components-BMcANiOi.js.map +0 -1
- package/dist/es/constants-C3A6yPOr.js +0 -6
- package/dist/types/src/composables/useGlobalConfig.d.ts +0 -1172
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as e, u as t } from "./constants-TVJ7auaC.js";
|
|
2
2
|
import { createBlock as n, defineComponent as r, guardReactiveProps as i, normalizeProps as a, openBlock as o, provide as s, renderSlot as c, unref as l, withCtx as u } from "vue";
|
|
3
3
|
import { ElTabPane as d } from "element-plus";
|
|
4
4
|
//#endregion
|
|
@@ -16,7 +16,7 @@ var f = /* @__PURE__ */ r({
|
|
|
16
16
|
return f({
|
|
17
17
|
label: r.label,
|
|
18
18
|
name: r.name
|
|
19
|
-
}), s(
|
|
19
|
+
}), s(e, !0), s(t, r.name), (e, t) => (o(), n(l(d), a(i({
|
|
20
20
|
label: r.label,
|
|
21
21
|
name: r.name,
|
|
22
22
|
disabled: r.disabled,
|
|
@@ -31,4 +31,4 @@ var f = /* @__PURE__ */ r({
|
|
|
31
31
|
//#endregion
|
|
32
32
|
export { f as t };
|
|
33
33
|
|
|
34
|
-
//# sourceMappingURL=TabPane-
|
|
34
|
+
//# sourceMappingURL=TabPane-CzInYf67.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabPane-
|
|
1
|
+
{"version":3,"file":"TabPane-CzInYf67.js","names":[],"sources":["../../src/components/TabPane.vue","../../src/components/TabPane.vue"],"sourcesContent":["<script setup lang=\"tsx\">\r\nimport type { TabPaneProps } from 'element-plus'\r\nimport { ElTabPane } from 'element-plus'\r\nimport { provide } from 'vue'\r\nimport { X_ELEMENT_IN_TAB_PANE, X_TAB_PANE_NAME } from '../constants'\r\n\r\nexport interface XTabPaneConfig {\r\n label?: string\r\n name?: number | string\r\n}\r\n\r\nexport interface XTabPaneProps {\r\n closable?: TabPaneProps['closable']\r\n disabled?: TabPaneProps['disabled']\r\n label?: TabPaneProps['label']\r\n lazy?: TabPaneProps['lazy']\r\n name?: TabPaneProps['name']\r\n}\r\n\r\nconst { label, name } = defineProps<XTabPaneProps>()\r\n\r\nconst pane = { label, name }\r\n\r\ndefineExpose({ ...pane })\r\n\r\nprovide(X_ELEMENT_IN_TAB_PANE, true)\r\nprovide(X_TAB_PANE_NAME, name)\r\n</script>\r\n\r\n<template>\r\n <ElTabPane\r\n v-bind=\"{ label, name, disabled, closable, lazy }\"\r\n >\r\n <slot />\r\n </ElTabPane>\r\n</template>\r\n","<script setup lang=\"tsx\">\r\nimport type { TabPaneProps } from 'element-plus'\r\nimport { ElTabPane } from 'element-plus'\r\nimport { provide } from 'vue'\r\nimport { X_ELEMENT_IN_TAB_PANE, X_TAB_PANE_NAME } from '../constants'\r\n\r\nexport interface XTabPaneConfig {\r\n label?: string\r\n name?: number | string\r\n}\r\n\r\nexport interface XTabPaneProps {\r\n closable?: TabPaneProps['closable']\r\n disabled?: TabPaneProps['disabled']\r\n label?: TabPaneProps['label']\r\n lazy?: TabPaneProps['lazy']\r\n name?: TabPaneProps['name']\r\n}\r\n\r\nconst { label, name } = defineProps<XTabPaneProps>()\r\n\r\nconst pane = { label, name }\r\n\r\ndefineExpose({ ...pane })\r\n\r\nprovide(X_ELEMENT_IN_TAB_PANE, true)\r\nprovide(X_TAB_PANE_NAME, name)\r\n</script>\r\n\r\n<template>\r\n <ElTabPane\r\n v-bind=\"{ label, name, disabled, closable, lazy }\"\r\n >\r\n <slot />\r\n </ElTabPane>\r\n</template>\r\n"],"mappings":";;;;;;;;;;;;;;;SCuBA,EAAa;GAFE,OAAI,EAAA;GAAG,MAAG,EAAA;GAED,CAAC,EAEzB,EAAQ,GAAuB,GAAK,EACpC,EAAQ,GAAiB,EAAA,KAAK,kBAI5B,EAIY,EAAA,EAAA,EAAA,EAAA,EAAA;GAAA,OAHA,EAAA;GAAK,MAAE,EAAA;GAAI,UAAE,EAAA;GAAQ,UAAE,EAAA;GAAQ,MAAE,EAAA;GAAI,CAAA,CAAA,EAAA;oBAEvC,CAAR,EAAQ,EAAA,QAAA,UAAA,CAAA,CAAA"}
|
package/dist/es/TabPane.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./TabPane-
|
|
1
|
+
import { t as e } from "./TabPane-CzInYf67.js";
|
|
2
2
|
export { e as default };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { c as e, n as t, r as n } from "./constants-TVJ7auaC.js";
|
|
2
|
+
import { Fragment as r, createBlock as i, createElementBlock as a, createVNode as o, defineComponent as s, inject as c, mergeProps as l, openBlock as u, provide as d, renderList as f, unref as p, useTemplateRef as m, withCtx as h } from "vue";
|
|
3
|
+
import { ElConfigProvider as g, ElTable as _, ElTableColumn as v, useLocale as y } from "element-plus";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/Table.vue
|
|
6
|
+
var b = /* @__PURE__ */ s({
|
|
7
|
+
__name: "Table",
|
|
8
|
+
props: {
|
|
9
|
+
border: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !0
|
|
12
|
+
},
|
|
13
|
+
cellClassName: { type: [Function, String] },
|
|
14
|
+
cellStyle: { type: [Function, Object] },
|
|
15
|
+
columns: {},
|
|
16
|
+
data: {},
|
|
17
|
+
height: {},
|
|
18
|
+
emptyText: {},
|
|
19
|
+
rowClassName: { type: [Function, String] },
|
|
20
|
+
rowKey: { type: Function },
|
|
21
|
+
rowStyle: { type: [Function, Object] },
|
|
22
|
+
showOverflowTooltip: {
|
|
23
|
+
type: [Boolean, Object],
|
|
24
|
+
default: !0
|
|
25
|
+
},
|
|
26
|
+
showSummary: { type: Boolean },
|
|
27
|
+
size: {},
|
|
28
|
+
spanMethod: { type: Function },
|
|
29
|
+
summaryMethod: { type: Function }
|
|
30
|
+
},
|
|
31
|
+
emits: [
|
|
32
|
+
"headerDragend",
|
|
33
|
+
"rowClick",
|
|
34
|
+
"rowDbClick",
|
|
35
|
+
"selectionChange"
|
|
36
|
+
],
|
|
37
|
+
setup(b, { expose: x, emit: S }) {
|
|
38
|
+
let C = S, w = c(e), { t: T } = y(w), E = m("table");
|
|
39
|
+
x({
|
|
40
|
+
clearSelection: () => E.value?.clearSelection(),
|
|
41
|
+
getSelectionRows: () => E.value?.getSelectionRows(),
|
|
42
|
+
scrollTo: (e, t) => E.value?.scrollTo(e, t),
|
|
43
|
+
setCurrentRow: (e) => E.value?.setCurrentRow(e),
|
|
44
|
+
setScrollLeft: (e) => E.value?.scrollTo(e),
|
|
45
|
+
setScrollTop: (e) => E.value?.scrollTo(e),
|
|
46
|
+
toggleRowSelection: (e, t, n) => E.value?.toggleRowSelection(e, t, n)
|
|
47
|
+
}), d(t, !0);
|
|
48
|
+
let D = /* @__PURE__ */ s((e) => (d(n, !0), () => o(v, {
|
|
49
|
+
fixed: e.fixed,
|
|
50
|
+
label: e.label,
|
|
51
|
+
prop: e.prop,
|
|
52
|
+
type: e.type
|
|
53
|
+
}, {
|
|
54
|
+
default: ({ row: t, $index: n }) => e.content?.({
|
|
55
|
+
row: t,
|
|
56
|
+
index: n
|
|
57
|
+
}),
|
|
58
|
+
header: () => e.header?.({ column: { ...e } })
|
|
59
|
+
})), { props: [
|
|
60
|
+
"content",
|
|
61
|
+
"fixed",
|
|
62
|
+
"header",
|
|
63
|
+
"label",
|
|
64
|
+
"prop",
|
|
65
|
+
"selectable",
|
|
66
|
+
"type",
|
|
67
|
+
"width"
|
|
68
|
+
] });
|
|
69
|
+
return (e, t) => (u(), i(p(g), { locale: p(w) }, {
|
|
70
|
+
default: h(() => [o(p(_), l({
|
|
71
|
+
ref_key: "table",
|
|
72
|
+
ref: E
|
|
73
|
+
}, {
|
|
74
|
+
data: b.data,
|
|
75
|
+
height: b.height,
|
|
76
|
+
rowClassName: b.rowClassName,
|
|
77
|
+
rowStyle: b.rowStyle,
|
|
78
|
+
cellClassName: b.cellClassName,
|
|
79
|
+
cellStyle: b.cellStyle,
|
|
80
|
+
showSummary: b.showSummary,
|
|
81
|
+
showOverflowTooltip: b.showOverflowTooltip,
|
|
82
|
+
spanMethod: b.spanMethod,
|
|
83
|
+
summaryMethod: b.summaryMethod,
|
|
84
|
+
size: b.size,
|
|
85
|
+
rowKey: b.rowKey,
|
|
86
|
+
border: b.border,
|
|
87
|
+
emptyText: b.emptyText ?? p(T)("el.table.emptyText")
|
|
88
|
+
}, {
|
|
89
|
+
onRowClick: t[0] ||= (e) => C("rowClick", e),
|
|
90
|
+
onRowDblclick: t[1] ||= (e) => C("rowDbClick", e),
|
|
91
|
+
onSelectionChange: t[2] ||= (e) => C("selectionChange", e),
|
|
92
|
+
onHeaderDragend: t[3] ||= (e, t, n) => C("headerDragend", e, t, n)
|
|
93
|
+
}), {
|
|
94
|
+
default: h(() => [(u(!0), a(r, null, f(b.columns, (e) => (u(), i(p(D), l({ ref_for: !0 }, e), null, 16))), 256))]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 16)]),
|
|
97
|
+
_: 1
|
|
98
|
+
}, 8, ["locale"]));
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
//#endregion
|
|
102
|
+
export { b as t };
|
|
103
|
+
|
|
104
|
+
//# sourceMappingURL=Table-Cm_Dki-c.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table-Cm_Dki-c.js","names":[],"sources":["../../src/components/Table.vue","../../src/components/Table.vue"],"sourcesContent":["<script setup lang=\"tsx\" generic=\"D\">\r\nimport type { TableColumnCtx, TableProps } from 'element-plus'\r\nimport type { CSSProperties, VNode, VNodeChild } from 'vue'\r\n\r\nimport { ElConfigProvider, ElTable, ElTableColumn, useLocale } from 'element-plus'\r\nimport { defineComponent, inject, provide, useTemplateRef } from 'vue'\r\n\r\nimport { X_ELEMENT_IN_TABLE, X_ELEMENT_IN_TABLE_COLUMN, X_LOCALE_CONFIG } from '../constants'\r\n\r\nexport interface XTableColumnProps<D> {\r\n content?: (scope: { index: number, row: D }) => VNodeChild\r\n fixed?: 'left' | 'right'\r\n header?: (scope: { column: XTableColumnProps<D> }) => VNodeChild\r\n label?: string\r\n prop?: string\r\n selectable?: (row: D, index: number) => boolean\r\n type?: 'index' | 'selection'\r\n width?: number\r\n}\r\n\r\nexport interface XTableProps<D> {\r\n border?: TableProps<any>['border']\r\n cellClassName?: ((scope: { column: TableColumnCtx, columnIndex: number, row: D, rowIndex: number }) => string) | string\r\n cellStyle?: ((scope: { column: TableColumnCtx, columnIndex: number, row: D, rowIndex: number }) => CSSProperties) | CSSProperties\r\n columns?: XTableColumnProps<D>[]\r\n data?: D[]\r\n height?: TableProps<any>['height']\r\n emptyText?: TableProps<any>['emptyText']\r\n rowClassName?: ((scope: { row: D, rowIndex: number }) => string) | string\r\n rowKey?: (scope: { row: D }) => string\r\n rowStyle?: ((scope: { row: D, rowIndex: number }) => CSSProperties) | CSSProperties\r\n showOverflowTooltip?: TableProps<any>['showOverflowTooltip']\r\n showSummary?: TableProps<any>['showSummary']\r\n size?: TableProps<any>['size']\r\n spanMethod?: (scope: { column: TableColumnCtx, columnIndex: number, row: D, rowIndex: number }) => number[] | undefined | { colspan: number, rowspan: number }\r\n summaryMethod?: (scope: { columns: TableColumnCtx[], data: D[] }) => (string | VNode)[]\r\n}\r\n\r\nconst { columns, data, showOverflowTooltip = true, border = true } = defineProps<XTableProps<D>>()\r\n\r\nconst emit = defineEmits<{\r\n headerDragend: [newWidth: number, oldWidth: number, column: TableColumnCtx]\r\n rowClick: [row: D]\r\n rowDbClick: [row: D]\r\n selectionChange: [rows: D[]]\r\n}>()\r\n\r\nconst locale = inject(X_LOCALE_CONFIG)\r\nconst { t } = useLocale(locale)\r\n\r\nconst table = useTemplateRef('table')\r\n\r\ndefineExpose({\r\n clearSelection: () => table.value?.clearSelection(),\r\n getSelectionRows: () => table.value?.getSelectionRows(),\r\n scrollTo: (options: number | ScrollToOptions, yCoord?: number) => table.value?.scrollTo(options, yCoord),\r\n setCurrentRow: (row: D) => table.value?.setCurrentRow(row),\r\n setScrollLeft: (left: number) => table.value?.scrollTo(left),\r\n setScrollTop: (top: number) => table.value?.scrollTo(top),\r\n toggleRowSelection: (row: D, selected?: boolean, ignoreSelectable?: boolean) => table.value?.toggleRowSelection(row, selected, ignoreSelectable)\r\n})\r\n\r\nprovide(X_ELEMENT_IN_TABLE, true)\r\n\r\nconst XTableColumn = defineComponent((props: XTableColumnProps<D>) => {\r\n provide(X_ELEMENT_IN_TABLE_COLUMN, true)\r\n return () => (\r\n <ElTableColumn\r\n fixed={props.fixed}\r\n label={props.label}\r\n prop={props.prop}\r\n type={props.type}\r\n >\r\n {{\r\n default: ({ row, $index }: { row: D, $index: number }) => props.content?.({ row, index: $index }),\r\n header: () => props.header?.({ column: { ...props } })\r\n }}\r\n </ElTableColumn>\r\n )\r\n}, { props: ['content', 'fixed', 'header', 'label', 'prop', 'selectable', 'type', 'width'] })\r\n</script>\r\n\r\n<template>\r\n <ElConfigProvider :locale=\"locale\">\r\n <ElTable\r\n ref=\"table\"\r\n v-bind=\"{\r\n data,\r\n height,\r\n rowClassName,\r\n rowStyle,\r\n cellClassName,\r\n cellStyle,\r\n showSummary,\r\n showOverflowTooltip,\r\n spanMethod,\r\n summaryMethod,\r\n size,\r\n rowKey,\r\n border,\r\n emptyText: emptyText ?? t('el.table.emptyText'),\r\n }\"\r\n @row-click=\"(row: D) => emit('rowClick', row)\"\r\n @row-dblclick=\"(row: D) => emit('rowDbClick', row)\"\r\n @selection-change=\"(rows: D[]) => emit('selectionChange', rows)\"\r\n @header-dragend=\"(newWidth, oldWidth, column) => emit('headerDragend', newWidth, oldWidth, column)\"\r\n >\r\n <XTableColumn\r\n v-for=\"column of columns\"\r\n v-bind=\"column\"\r\n />\r\n </ElTable>\r\n </ElConfigProvider>\r\n</template>\r\n","<script setup lang=\"tsx\" generic=\"D\">\r\nimport type { TableColumnCtx, TableProps } from 'element-plus'\r\nimport type { CSSProperties, VNode, VNodeChild } from 'vue'\r\n\r\nimport { ElConfigProvider, ElTable, ElTableColumn, useLocale } from 'element-plus'\r\nimport { defineComponent, inject, provide, useTemplateRef } from 'vue'\r\n\r\nimport { X_ELEMENT_IN_TABLE, X_ELEMENT_IN_TABLE_COLUMN, X_LOCALE_CONFIG } from '../constants'\r\n\r\nexport interface XTableColumnProps<D> {\r\n content?: (scope: { index: number, row: D }) => VNodeChild\r\n fixed?: 'left' | 'right'\r\n header?: (scope: { column: XTableColumnProps<D> }) => VNodeChild\r\n label?: string\r\n prop?: string\r\n selectable?: (row: D, index: number) => boolean\r\n type?: 'index' | 'selection'\r\n width?: number\r\n}\r\n\r\nexport interface XTableProps<D> {\r\n border?: TableProps<any>['border']\r\n cellClassName?: ((scope: { column: TableColumnCtx, columnIndex: number, row: D, rowIndex: number }) => string) | string\r\n cellStyle?: ((scope: { column: TableColumnCtx, columnIndex: number, row: D, rowIndex: number }) => CSSProperties) | CSSProperties\r\n columns?: XTableColumnProps<D>[]\r\n data?: D[]\r\n height?: TableProps<any>['height']\r\n emptyText?: TableProps<any>['emptyText']\r\n rowClassName?: ((scope: { row: D, rowIndex: number }) => string) | string\r\n rowKey?: (scope: { row: D }) => string\r\n rowStyle?: ((scope: { row: D, rowIndex: number }) => CSSProperties) | CSSProperties\r\n showOverflowTooltip?: TableProps<any>['showOverflowTooltip']\r\n showSummary?: TableProps<any>['showSummary']\r\n size?: TableProps<any>['size']\r\n spanMethod?: (scope: { column: TableColumnCtx, columnIndex: number, row: D, rowIndex: number }) => number[] | undefined | { colspan: number, rowspan: number }\r\n summaryMethod?: (scope: { columns: TableColumnCtx[], data: D[] }) => (string | VNode)[]\r\n}\r\n\r\nconst { columns, data, showOverflowTooltip = true, border = true } = defineProps<XTableProps<D>>()\r\n\r\nconst emit = defineEmits<{\r\n headerDragend: [newWidth: number, oldWidth: number, column: TableColumnCtx]\r\n rowClick: [row: D]\r\n rowDbClick: [row: D]\r\n selectionChange: [rows: D[]]\r\n}>()\r\n\r\nconst locale = inject(X_LOCALE_CONFIG)\r\nconst { t } = useLocale(locale)\r\n\r\nconst table = useTemplateRef('table')\r\n\r\ndefineExpose({\r\n clearSelection: () => table.value?.clearSelection(),\r\n getSelectionRows: () => table.value?.getSelectionRows(),\r\n scrollTo: (options: number | ScrollToOptions, yCoord?: number) => table.value?.scrollTo(options, yCoord),\r\n setCurrentRow: (row: D) => table.value?.setCurrentRow(row),\r\n setScrollLeft: (left: number) => table.value?.scrollTo(left),\r\n setScrollTop: (top: number) => table.value?.scrollTo(top),\r\n toggleRowSelection: (row: D, selected?: boolean, ignoreSelectable?: boolean) => table.value?.toggleRowSelection(row, selected, ignoreSelectable)\r\n})\r\n\r\nprovide(X_ELEMENT_IN_TABLE, true)\r\n\r\nconst XTableColumn = defineComponent((props: XTableColumnProps<D>) => {\r\n provide(X_ELEMENT_IN_TABLE_COLUMN, true)\r\n return () => (\r\n <ElTableColumn\r\n fixed={props.fixed}\r\n label={props.label}\r\n prop={props.prop}\r\n type={props.type}\r\n >\r\n {{\r\n default: ({ row, $index }: { row: D, $index: number }) => props.content?.({ row, index: $index }),\r\n header: () => props.header?.({ column: { ...props } })\r\n }}\r\n </ElTableColumn>\r\n )\r\n}, { props: ['content', 'fixed', 'header', 'label', 'prop', 'selectable', 'type', 'width'] })\r\n</script>\r\n\r\n<template>\r\n <ElConfigProvider :locale=\"locale\">\r\n <ElTable\r\n ref=\"table\"\r\n v-bind=\"{\r\n data,\r\n height,\r\n rowClassName,\r\n rowStyle,\r\n cellClassName,\r\n cellStyle,\r\n showSummary,\r\n showOverflowTooltip,\r\n spanMethod,\r\n summaryMethod,\r\n size,\r\n rowKey,\r\n border,\r\n emptyText: emptyText ?? t('el.table.emptyText'),\r\n }\"\r\n @row-click=\"(row: D) => emit('rowClick', row)\"\r\n @row-dblclick=\"(row: D) => emit('rowDbClick', row)\"\r\n @selection-change=\"(rows: D[]) => emit('selectionChange', rows)\"\r\n @header-dragend=\"(newWidth, oldWidth, column) => emit('headerDragend', newWidth, oldWidth, column)\"\r\n >\r\n <XTableColumn\r\n v-for=\"column of columns\"\r\n v-bind=\"column\"\r\n />\r\n </ElTable>\r\n </ElConfigProvider>\r\n</template>\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ECwCA,IAAM,IAAO,GAOP,IAAS,EAAO,EAAgB,EAChC,EAAE,SAAM,EAAU,EAAO,EAEzB,IAAQ,EAAe,QAAQ;AAYrC,EAVA,EAAa;GACX,sBAAsB,EAAM,OAAO,gBAAgB;GACnD,wBAAwB,EAAM,OAAO,kBAAkB;GACvD,WAAW,GAAmC,MAAoB,EAAM,OAAO,SAAS,GAAS,EAAO;GACxG,gBAAgB,MAAW,EAAM,OAAO,cAAc,EAAI;GAC1D,gBAAgB,MAAiB,EAAM,OAAO,SAAS,EAAK;GAC5D,eAAe,MAAgB,EAAM,OAAO,SAAS,EAAI;GACzD,qBAAqB,GAAQ,GAAoB,MAA+B,EAAM,OAAO,mBAAmB,GAAK,GAAU,EAAgB;GAChJ,CAAC,EAEF,EAAQ,GAAoB,GAAK;EAEjC,IAAM,IAAe,mBAAiB,OACpC,EAAQ,GAA2B,GAAK,QACjC,EAAA,GAAA;GAAA,OAEI,EAAM;GAAK,OACX,EAAM;GAAK,MACZ,EAAM;GAAI,MACV,EAAM;GAAI,EAAA;GAGd,UAAU,EAAE,QAAK,gBAAyC,EAAM,UAAU;IAAE;IAAK,OAAO;IAAQ,CAAC;GACjG,cAAc,EAAM,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAM,EAAG,CAAA;GAAC,CAG3D,GACA,EAAE,OAAO;GAAC;GAAW;GAAS;GAAU;GAAS;GAAQ;GAAc;GAAQ;GAAO,EAAG,CAAC;yBAI3F,EA6BmB,EAAA,EAAA,EAAA,EA7BA,QAAQ,EAAA,EAAA,EAAM,EAAA;oBA4BrB,CA3BV,EA2BU,EAAA,EAAA,EA3BV,EA2BU;aA1BJ;IAAJ,KAAI;;UACe,EAAA;YAAe,EAAA;kBAAiB,EAAA;cAAuB,EAAA;mBAAmB,EAAA;eAAwB,EAAA;iBAAoB,EAAA;yBAAsB,EAAA;gBAA8B,EAAA;mBAAqB,EAAA;UAAwB,EAAA;YAAe,EAAA;YAAiB,EAAA;eAA4B,EAAA,aAAa,EAAA,EAAC,CAAA,qBAAA;;IAgBnT,YAAS,AAAA,EAAA,QAAG,MAAW,EAAI,YAAa,EAAG;IAC3C,eAAY,AAAA,EAAA,QAAG,MAAW,EAAI,cAAe,EAAG;IAChD,mBAAgB,AAAA,EAAA,QAAG,MAAc,EAAI,mBAAoB,EAAI;IAC7D,iBAAc,AAAA,EAAA,QAAG,GAAU,GAAU,MAAW,EAAI,iBAAkB,GAAU,GAAU,EAAM;;qBAGtE,EAAA,EAAA,GAAA,EAD3B,EAGE,GAAA,MAAA,EAFiB,EAAA,UAAV,YADT,EAGE,EAAA,EAAA,EAHF,EAGE,EAAA,SAAA,IAAA,EADQ,EAAM,EAAA,MAAA,GAAA"}
|
package/dist/es/Table.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./Table-
|
|
1
|
+
import { t as e } from "./Table-Cm_Dki-c.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as e, l as t } from "./constants-TVJ7auaC.js";
|
|
2
2
|
import { t as n } from "./dist-BPi3_vgC.js";
|
|
3
3
|
import { createBlock as r, defineComponent as i, mergeModels as a, mergeProps as o, openBlock as s, provide as c, renderSlot as l, unref as u, useModel as d, withCtx as f } from "vue";
|
|
4
4
|
import { ElTabs as p } from "element-plus";
|
|
@@ -37,4 +37,4 @@ var m = /* @__PURE__ */ i({
|
|
|
37
37
|
//#endregion
|
|
38
38
|
export { m as t };
|
|
39
39
|
|
|
40
|
-
//# sourceMappingURL=Tabs-
|
|
40
|
+
//# sourceMappingURL=Tabs-CKIkuQ81.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs-
|
|
1
|
+
{"version":3,"file":"Tabs-CKIkuQ81.js","names":[],"sources":["../../src/components/Tabs.vue","../../src/components/Tabs.vue"],"sourcesContent":["<script setup lang=\"tsx\" generic=\"V extends string | number\">\r\nimport type { TabsProps } from 'element-plus'\r\nimport { createEventHook } from '@vueuse/core'\r\nimport { ElTabs } from 'element-plus'\r\nimport { provide } from 'vue'\r\nimport { X_ELEMENT_IN_TABS, X_TABS_MODEL_UPDATE_HOOK } from '../constants'\r\n\r\nexport interface XTabsProps {\r\n addable?: TabsProps['addable']\r\n editable?: TabsProps['editable']\r\n tabPosition?: TabsProps['tabPosition']\r\n type?: TabsProps['type']\r\n}\r\n\r\ndefineProps<XTabsProps>()\r\n\r\nconst model = defineModel<V>()\r\nprovide(X_ELEMENT_IN_TABS, true)\r\n\r\nconst modelUpdateHook = createEventHook()\r\nprovide(X_TABS_MODEL_UPDATE_HOOK, modelUpdateHook)\r\nmodelUpdateHook.on(value => model.value = value)\r\n</script>\r\n\r\n<template>\r\n <ElTabs\r\n v-bind=\"{ addable, editable, tabPosition, type }\"\r\n v-model=\"model\"\r\n >\r\n <slot />\r\n </ElTabs>\r\n</template>\r\n","<script setup lang=\"tsx\" generic=\"V extends string | number\">\r\nimport type { TabsProps } from 'element-plus'\r\nimport { createEventHook } from '@vueuse/core'\r\nimport { ElTabs } from 'element-plus'\r\nimport { provide } from 'vue'\r\nimport { X_ELEMENT_IN_TABS, X_TABS_MODEL_UPDATE_HOOK } from '../constants'\r\n\r\nexport interface XTabsProps {\r\n addable?: TabsProps['addable']\r\n editable?: TabsProps['editable']\r\n tabPosition?: TabsProps['tabPosition']\r\n type?: TabsProps['type']\r\n}\r\n\r\ndefineProps<XTabsProps>()\r\n\r\nconst model = defineModel<V>()\r\nprovide(X_ELEMENT_IN_TABS, true)\r\n\r\nconst modelUpdateHook = createEventHook()\r\nprovide(X_TABS_MODEL_UPDATE_HOOK, modelUpdateHook)\r\nmodelUpdateHook.on(value => model.value = value)\r\n</script>\r\n\r\n<template>\r\n <ElTabs\r\n v-bind=\"{ addable, editable, tabPosition, type }\"\r\n v-model=\"model\"\r\n >\r\n <slot />\r\n </ElTabs>\r\n</template>\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;ECgBA,IAAM,IAAQ,EAAc,GAAA,aAAE;AAC9B,IAAQ,GAAmB,GAAK;EAEhC,IAAM,IAAkB,GAAiB;SACzC,EAAQ,GAA0B,EAAgB,EAClD,EAAgB,IAAG,MAAS,EAAM,QAAQ,EAAM,kBAI9C,EAKS,EAAA,EAAA,EALT,EAKS;GAAA,SAJG,EAAA;GAAO,UAAE,EAAA;GAAQ,aAAE,EAAA;GAAW,MAAE,EAAA;GAAI,EAAA;eACrC,EAAA;0CAAA,EAAK,QAAA;;oBAEN,CAAR,EAAQ,EAAA,QAAA,UAAA,CAAA,CAAA"}
|
package/dist/es/Tabs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./Tabs-
|
|
1
|
+
import { t as e } from "./Tabs-CKIkuQ81.js";
|
|
2
2
|
export { e as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { o as e } from "./constants-TVJ7auaC.js";
|
|
2
|
+
import { computed as t, createBlock as n, createSlots as r, defineComponent as i, guardReactiveProps as a, inject as o, mergeModels as s, normalizeProps as c, openBlock as l, renderSlot as u, unref as d, useModel as f, withCtx as p } from "vue";
|
|
3
|
+
import { ElUpload as m } from "element-plus";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/Upload.vue
|
|
6
|
+
var h = /* @__PURE__ */ i({
|
|
7
|
+
__name: "Upload",
|
|
8
|
+
props: /* @__PURE__ */ s({
|
|
9
|
+
accept: {},
|
|
10
|
+
data: { type: [Promise, Function] },
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
limit: {},
|
|
13
|
+
showFileList: { type: Boolean }
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: {},
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(i) {
|
|
20
|
+
let s = f(i, "modelValue"), h = t(() => [...[], ...s.value || []].reverse().map((e) => ({
|
|
21
|
+
name: e.split("/").findLast(() => !0),
|
|
22
|
+
url: e
|
|
23
|
+
}))), g = o(e, void 0);
|
|
24
|
+
if (g?.required) {
|
|
25
|
+
let { label: e, validator: t } = g;
|
|
26
|
+
g.validator = () => !s.value || Array.isArray(s.value) && s.value.length === 0 ? `请选择${e}` : t?.();
|
|
27
|
+
}
|
|
28
|
+
return (e, t) => (l(), n(d(m), c(a({
|
|
29
|
+
disabled: i.disabled,
|
|
30
|
+
accept: i.accept,
|
|
31
|
+
data: i.data,
|
|
32
|
+
limit: i.limit,
|
|
33
|
+
fileList: h.value,
|
|
34
|
+
showFileList: i.showFileList
|
|
35
|
+
})), r({
|
|
36
|
+
default: p(() => [u(e.$slots, "default")]),
|
|
37
|
+
_: 2
|
|
38
|
+
}, ["file" in e.$slots ? {
|
|
39
|
+
name: "file",
|
|
40
|
+
fn: p(() => [u(e.$slots, "file")]),
|
|
41
|
+
key: "0"
|
|
42
|
+
} : void 0, "tips" in e.$slots ? {
|
|
43
|
+
name: "tips",
|
|
44
|
+
fn: p(() => [u(e.$slots, "tips")]),
|
|
45
|
+
key: "1"
|
|
46
|
+
} : void 0]), 1040));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
export { h as t };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=Upload-DCnEcRkL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Upload-DCnEcRkL.js","names":["$slots"],"sources":["../../src/components/Upload.vue","../../src/components/Upload.vue"],"sourcesContent":["<script setup lang=\"tsx\" generic=\"MV extends string | string[]\">\r\nimport type { UploadFile, UploadProps } from 'element-plus'\r\n\r\nimport type { VNodeChild } from 'vue'\r\nimport { ElUpload } from 'element-plus'\r\nimport { computed, inject } from 'vue'\r\n\r\nimport { X_FORM_ITEM_VALIDATION } from '../constants'\r\n\r\nexport interface XUploadProps {\r\n accept?: UploadProps['accept']\r\n data?: UploadProps['data']\r\n disabled?: UploadProps['disabled']\r\n limit?: UploadProps['limit']\r\n showFileList?: UploadProps['showFileList']\r\n}\r\n\r\ndefineProps<XUploadProps>()\r\n\r\ndefineSlots<{\r\n default: () => VNodeChild\r\n file: (scope: { file: UploadFile, index: number }) => VNodeChild\r\n tips: () => VNodeChild\r\n}>()\r\n\r\nconst model = defineModel<MV>()\r\n\r\nconst fileList = computed(() => [...[] as string[], ...model.value || []].reverse().map(item => ({ name: item.split('/').findLast(() => true)!, url: item })))\r\n\r\nconst formItemValidation = inject(X_FORM_ITEM_VALIDATION, undefined)\r\nif (formItemValidation?.required) {\r\n const { label, validator } = formItemValidation\r\n formItemValidation.validator = () => {\r\n if (!model.value || (Array.isArray(model.value) && model.value.length === 0)) {\r\n return `请选择${label}`\r\n }\r\n return validator?.()\r\n }\r\n}\r\n</script>\r\n\r\n<template>\r\n <ElUpload v-bind=\"{ disabled, accept, data, limit, fileList, showFileList }\">\r\n <slot />\r\n\r\n <template v-if=\"'file' in $slots\" #file>\r\n <slot name=\"file\" />\r\n </template>\r\n <template v-if=\"'tips' in $slots\" #tips>\r\n <slot name=\"tips\" />\r\n </template>\r\n </ElUpload>\r\n</template>\r\n","<script setup lang=\"tsx\" generic=\"MV extends string | string[]\">\r\nimport type { UploadFile, UploadProps } from 'element-plus'\r\n\r\nimport type { VNodeChild } from 'vue'\r\nimport { ElUpload } from 'element-plus'\r\nimport { computed, inject } from 'vue'\r\n\r\nimport { X_FORM_ITEM_VALIDATION } from '../constants'\r\n\r\nexport interface XUploadProps {\r\n accept?: UploadProps['accept']\r\n data?: UploadProps['data']\r\n disabled?: UploadProps['disabled']\r\n limit?: UploadProps['limit']\r\n showFileList?: UploadProps['showFileList']\r\n}\r\n\r\ndefineProps<XUploadProps>()\r\n\r\ndefineSlots<{\r\n default: () => VNodeChild\r\n file: (scope: { file: UploadFile, index: number }) => VNodeChild\r\n tips: () => VNodeChild\r\n}>()\r\n\r\nconst model = defineModel<MV>()\r\n\r\nconst fileList = computed(() => [...[] as string[], ...model.value || []].reverse().map(item => ({ name: item.split('/').findLast(() => true)!, url: item })))\r\n\r\nconst formItemValidation = inject(X_FORM_ITEM_VALIDATION, undefined)\r\nif (formItemValidation?.required) {\r\n const { label, validator } = formItemValidation\r\n formItemValidation.validator = () => {\r\n if (!model.value || (Array.isArray(model.value) && model.value.length === 0)) {\r\n return `请选择${label}`\r\n }\r\n return validator?.()\r\n }\r\n}\r\n</script>\r\n\r\n<template>\r\n <ElUpload v-bind=\"{ disabled, accept, data, limit, fileList, showFileList }\">\r\n <slot />\r\n\r\n <template v-if=\"'file' in $slots\" #file>\r\n <slot name=\"file\" />\r\n </template>\r\n <template v-if=\"'tips' in $slots\" #tips>\r\n <slot name=\"tips\" />\r\n </template>\r\n </ElUpload>\r\n</template>\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;ECyBA,IAAM,IAAQ,EAAe,GAAA,aAAE,EAEzB,IAAW,QAAe,CAAC,GAAG,EAAc,EAAE,GAAG,EAAM,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,KAAI,OAAS;GAAE,MAAM,EAAK,MAAM,IAAI,CAAC,eAAe,GAAM;GAAE,KAAK;GAAM,EAAE,CAAC,EAExJ,IAAqB,EAAO,GAAwB,KAAA,EAAU;AACpE,MAAI,GAAoB,UAAU;GAChC,IAAM,EAAE,UAAO,iBAAc;AAC7B,KAAmB,kBACb,CAAC,EAAM,SAAU,MAAM,QAAQ,EAAM,MAAM,IAAI,EAAM,MAAM,WAAW,IACjE,MAAM,MAER,KAAa;;yBAMtB,EASW,EAAA,EAAA,EAAA,EAAA,EAAA;GAAA,UATS,EAAA;GAAQ,QAAE,EAAA;GAAM,MAAE,EAAA;GAAI,OAAE,EAAA;GAAK,UAAE,EAAA;GAAQ,cAAE,EAAA;GAAY,CAAA,CAAA,EAAA,EAAA;oBAC/D,CAAR,EAAQ,EAAA,QAAA,UAAA,CAAA,CAAA;;gBAEkBA,EAAAA,SAAAA;SAAS;eACb,CAApB,EAAoB,EAAA,QAAA,OAAA,CAAA,CAAA;;wBAEIA,EAAAA,SAAAA;SAAS;eACb,CAApB,EAAoB,EAAA,QAAA,OAAA,CAAA,CAAA"}
|
package/dist/es/Upload.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./Upload-
|
|
1
|
+
import { t as e } from "./Upload-DCnEcRkL.js";
|
|
2
2
|
export { e as default };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { t as e } from "./Button-BgxatYKq.js";
|
|
2
|
+
import { t } from "./ConfigProvider-BlRc251T.js";
|
|
3
|
+
import { t as n } from "./DatePicker-BDjnMA3B.js";
|
|
4
|
+
import { t as r } from "./Dialog-BahbAebJ.js";
|
|
5
|
+
import { t as i } from "./Form-wBMmnwZj.js";
|
|
6
|
+
import { t as a } from "./FormItem--C1bP0wY.js";
|
|
7
|
+
import { t as o } from "./Input-JT0g3gkf.js";
|
|
8
|
+
import { t as s } from "./InputNumber-CFTLdulD.js";
|
|
9
|
+
import { t as c } from "./Pagination-CGeelxQR.js";
|
|
10
|
+
import { t as l } from "./Select-BKdDBeJC.js";
|
|
11
|
+
import { t as u } from "./Table-Cm_Dki-c.js";
|
|
12
|
+
import { t as d } from "./TabPane-CzInYf67.js";
|
|
13
|
+
import { t as f } from "./Tabs-CKIkuQ81.js";
|
|
14
|
+
import { t as p } from "./Upload-DCnEcRkL.js";
|
|
15
|
+
import { createBlock as m, createTextVNode as h, createVNode as g, defineComponent as _, guardReactiveProps as v, normalizeProps as y, openBlock as b, renderSlot as x, unref as S, withCtx as C } from "vue";
|
|
16
|
+
import { ElPopconfirm as w } from "element-plus";
|
|
17
|
+
//#region \0rolldown/runtime.js
|
|
18
|
+
var T = Object.defineProperty, E = (e, t) => {
|
|
19
|
+
let n = {};
|
|
20
|
+
for (var r in e) T(n, r, {
|
|
21
|
+
get: e[r],
|
|
22
|
+
enumerable: !0
|
|
23
|
+
});
|
|
24
|
+
return t || T(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
25
|
+
}, D = /* @__PURE__ */ _({
|
|
26
|
+
__name: "ButtonPopconfirm",
|
|
27
|
+
props: {
|
|
28
|
+
title: { default: "是否执行?" },
|
|
29
|
+
disabled: { type: Boolean },
|
|
30
|
+
link: { type: Boolean },
|
|
31
|
+
size: {},
|
|
32
|
+
text: { type: Boolean },
|
|
33
|
+
type: {},
|
|
34
|
+
icon: {}
|
|
35
|
+
},
|
|
36
|
+
emits: ["cancel", "confirm"],
|
|
37
|
+
setup(t, { emit: n }) {
|
|
38
|
+
let r = n;
|
|
39
|
+
return (n, i) => (b(), m(S(w), {
|
|
40
|
+
title: t.title,
|
|
41
|
+
onCancel: i[0] ||= () => r("cancel"),
|
|
42
|
+
onConfirm: i[1] ||= () => r("confirm")
|
|
43
|
+
}, {
|
|
44
|
+
reference: C(() => [g(S(e), y(v({
|
|
45
|
+
disabled: t.disabled,
|
|
46
|
+
type: t.type,
|
|
47
|
+
text: t.text,
|
|
48
|
+
size: t.size,
|
|
49
|
+
link: t.link
|
|
50
|
+
})), {
|
|
51
|
+
default: C(() => [x(n.$slots, "default")]),
|
|
52
|
+
_: 3
|
|
53
|
+
}, 16)]),
|
|
54
|
+
actions: C(({ confirm: t, cancel: n }) => [g(S(e), {
|
|
55
|
+
size: "small",
|
|
56
|
+
onClick: n
|
|
57
|
+
}, {
|
|
58
|
+
default: C(() => [...i[2] ||= [h(" 取消 ", -1)]]),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 8, ["onClick"]), g(S(e), {
|
|
61
|
+
type: "danger",
|
|
62
|
+
size: "small",
|
|
63
|
+
onClick: t
|
|
64
|
+
}, {
|
|
65
|
+
default: C(() => [...i[3] ||= [h(" 确定 ", -1)]]),
|
|
66
|
+
_: 1
|
|
67
|
+
}, 8, ["onClick"])]),
|
|
68
|
+
_: 3
|
|
69
|
+
}, 8, ["title"]));
|
|
70
|
+
}
|
|
71
|
+
}), O = /* @__PURE__ */ E({
|
|
72
|
+
XButton: () => e,
|
|
73
|
+
XButtonPopconfirm: () => D,
|
|
74
|
+
XConfigProvider: () => t,
|
|
75
|
+
XDatePicker: () => n,
|
|
76
|
+
XDialog: () => r,
|
|
77
|
+
XForm: () => i,
|
|
78
|
+
XFormItem: () => a,
|
|
79
|
+
XInput: () => o,
|
|
80
|
+
XInputNumber: () => s,
|
|
81
|
+
XPagination: () => c,
|
|
82
|
+
XSelect: () => l,
|
|
83
|
+
XTabPane: () => d,
|
|
84
|
+
XTable: () => u,
|
|
85
|
+
XTabs: () => f,
|
|
86
|
+
XUpload: () => p
|
|
87
|
+
});
|
|
88
|
+
//#endregion
|
|
89
|
+
export { D as n, O as t };
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=components-DKoUIsFy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components-DKoUIsFy.js","names":[],"sources":["../../src/components/ButtonPopconfirm.vue","../../src/components/ButtonPopconfirm.vue","../../src/components/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\r\nimport type { XButtonProps } from '@/components/Button.vue'\r\nimport { ElPopconfirm } from 'element-plus'\r\nimport { XButton } from '@/components'\r\n\r\nexport interface XButtonPopconfirmProps extends XButtonProps {\r\n title?: string\r\n}\r\n\r\nconst { title = '是否执行?' } = defineProps<XButtonPopconfirmProps>()\r\n\r\nconst emit = defineEmits<{\r\n cancel: []\r\n confirm: []\r\n}>()\r\n</script>\r\n\r\n<template>\r\n <ElPopconfirm\r\n :title=\"title\"\r\n @cancel=\"() => emit('cancel')\"\r\n @confirm=\"() => emit('confirm')\"\r\n >\r\n <template #reference>\r\n <XButton v-bind=\"{ disabled, type, text, size, link }\">\r\n <slot></slot>\r\n </XButton>\r\n </template>\r\n <template #actions=\"{ confirm, cancel }\">\r\n <XButton size=\"small\" @click=\"cancel\">\r\n 取消\r\n </XButton>\r\n <XButton type=\"danger\" size=\"small\" @click=\"confirm\">\r\n 确定\r\n </XButton>\r\n </template>\r\n </ElPopconfirm>\r\n</template>\r\n","<script setup lang=\"ts\">\r\nimport type { XButtonProps } from '@/components/Button.vue'\r\nimport { ElPopconfirm } from 'element-plus'\r\nimport { XButton } from '@/components'\r\n\r\nexport interface XButtonPopconfirmProps extends XButtonProps {\r\n title?: string\r\n}\r\n\r\nconst { title = '是否执行?' } = defineProps<XButtonPopconfirmProps>()\r\n\r\nconst emit = defineEmits<{\r\n cancel: []\r\n confirm: []\r\n}>()\r\n</script>\r\n\r\n<template>\r\n <ElPopconfirm\r\n :title=\"title\"\r\n @cancel=\"() => emit('cancel')\"\r\n @confirm=\"() => emit('confirm')\"\r\n >\r\n <template #reference>\r\n <XButton v-bind=\"{ disabled, type, text, size, link }\">\r\n <slot></slot>\r\n </XButton>\r\n </template>\r\n <template #actions=\"{ confirm, cancel }\">\r\n <XButton size=\"small\" @click=\"cancel\">\r\n 取消\r\n </XButton>\r\n <XButton type=\"danger\" size=\"small\" @click=\"confirm\">\r\n 确定\r\n </XButton>\r\n </template>\r\n </ElPopconfirm>\r\n</template>\r\n","import XButton from '@/components/Button.vue'\r\nimport XButtonPopconfirm from '@/components/ButtonPopconfirm.vue'\r\nimport XConfigProvider from '@/components/ConfigProvider.vue'\r\nimport XDatePicker from '@/components/DatePicker.vue'\r\nimport XDialog from '@/components/Dialog.vue'\r\nimport XForm from '@/components/Form.vue'\r\nimport XFormItem from '@/components/FormItem.vue'\r\nimport XInput from '@/components/Input.vue'\r\nimport XInputNumber from '@/components/InputNumber.vue'\r\nimport XPagination from '@/components/Pagination.vue'\r\nimport XSelect from '@/components/Select.vue'\r\nimport XTable from '@/components/Table.vue'\r\nimport XTabPane from '@/components/TabPane.vue'\r\nimport XTabs from '@/components/Tabs.vue'\r\nimport XUpload from '@/components/Upload.vue'\r\n\r\nexport {\r\n XButton,\r\n XButtonPopconfirm,\r\n XConfigProvider,\r\n XDatePicker,\r\n XDialog,\r\n XForm,\r\n XFormItem,\r\n XInput,\r\n XInputNumber,\r\n XPagination,\r\n XSelect,\r\n XTable,\r\n XTabPane,\r\n XTabs,\r\n XUpload\r\n}\r\n\r\nexport * from '@/components/Button.vue'\r\nexport * from '@/components/ButtonPopconfirm.vue'\r\nexport * from '@/components/ConfigProvider.vue'\r\nexport * from '@/components/DatePicker.vue'\r\nexport * from '@/components/Dialog.vue'\r\nexport * from '@/components/Form.vue'\r\nexport * from '@/components/FormItem.vue'\r\nexport * from '@/components/Input.vue'\r\nexport * from '@/components/InputNumber.vue'\r\nexport * from '@/components/Pagination.vue'\r\nexport * from '@/components/Select.vue'\r\nexport * from '@/components/Table.vue'\r\nexport * from '@/components/TabPane.vue'\r\nexport * from '@/components/Tabs.vue'\r\nexport * from '@/components/Upload.vue'\r\n\r\ndeclare module 'vue' {\r\n export interface GlobalComponents {\r\n XButton: typeof XButton\r\n XButtonPopconfirm: typeof XButtonPopconfirm\r\n XConfigProvider: typeof XConfigProvider\r\n XDatePicker: typeof XDatePicker\r\n XDialog: typeof XDialog\r\n XForm: typeof XForm\r\n XFormItem: typeof XFormItem\r\n XInput: typeof XInput\r\n XInputNumber: typeof XInputNumber\r\n XPagination: typeof XPagination\r\n XSelect: typeof XSelect\r\n XTable: typeof XTable\r\n XTabPane: typeof XTabPane\r\n XTabs: typeof XTabs\r\n XUpload: typeof XUpload\r\n }\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ECWA,IAAM,IAAO;yBAOX,EAkBe,EAAA,EAAA,EAAA;GAjBZ,OAAO,EAAA;GACP,UAAM,AAAA,EAAA,aAAQ,EAAI,SAAA;GAClB,WAAO,AAAA,EAAA,aAAQ,EAAI,UAAA;;GAET,WAAS,QAGR,CAFV,EAEU,EAAA,EAAA,EAAA,EAAA,EAAA;IAAA,UAFS,EAAA;IAAQ,MAAE,EAAA;IAAI,MAAE,EAAA;IAAI,MAAE,EAAA;IAAI,MAAE,EAAA;IAAI,CAAA,CAAA,EAAA;qBACpC,CAAb,EAAa,EAAA,QAAA,UAAA,CAAA,CAAA;;;GAGN,SAAO,GAGN,EAHU,YAAS,gBAAM,CACnC,EAEU,EAAA,EAAA,EAAA;IAFD,MAAK;IAAS,SAAO;;qBAE9B,CAAA,GAAA,AAAA,EAAA,OAAA,CAAA,EAFsC,QAEtC,GAAA,CAAA,CAAA,CAAA;;uBACA,EAEU,EAAA,EAAA,EAAA;IAFD,MAAK;IAAS,MAAK;IAAS,SAAO;;qBAE5C,CAAA,GAAA,AAAA,EAAA,OAAA,CAAA,EAFqD,QAErD,GAAA,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/constants/index.ts
|
|
2
|
+
var e = Symbol("X_LOCALE_CONFIG"), t = Symbol("X_ELEMENT_IN_TABLE"), n = Symbol("X_ELEMENT_IN_TABLE_COLUMN"), r = Symbol("X_ELEMENT_IN_FORM"), i = Symbol("X_ELEMENT_IN_TABS"), a = Symbol("X_ELEMENT_IN_TAB_PANE"), o = Symbol("X_FORM_VALIDATIONS"), s = Symbol("X_FORM_ITEM_VALIDATION"), c = Symbol("X_TAB_PANE"), l = Symbol("X_TABS_MODEL_UPDATE_HOOK");
|
|
3
|
+
//#endregion
|
|
4
|
+
export { a, e as c, i, l, t as n, s as o, n as r, o as s, r as t, c as u };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=constants-TVJ7auaC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-
|
|
1
|
+
{"version":3,"file":"constants-TVJ7auaC.js","names":[],"sources":["../../src/constants/index.ts"],"sourcesContent":["import type { EventHook } from '@vueuse/core'\r\nimport type { Language } from 'element-plus/es/locale'\r\nimport type { InjectionKey, Ref } from 'vue'\r\n\r\nimport type { XFormItemValidation } from '@/components/FormItem.vue'\r\n\r\nexport const X_LOCALE_CONFIG: InjectionKey<Ref<Language>> = Symbol('X_LOCALE_CONFIG')\r\n\r\nexport const X_ELEMENT_IN_TABLE: InjectionKey<boolean> = Symbol('X_ELEMENT_IN_TABLE')\r\nexport const X_ELEMENT_IN_TABLE_COLUMN: InjectionKey<boolean> = Symbol('X_ELEMENT_IN_TABLE_COLUMN')\r\nexport const X_ELEMENT_IN_FORM: InjectionKey<boolean> = Symbol('X_ELEMENT_IN_FORM')\r\nexport const X_ELEMENT_IN_FORM_ITEM: InjectionKey<boolean> = Symbol('X_ELEMENT_IN_FORM_ITEM')\r\nexport const X_ELEMENT_IN_TABS: InjectionKey<boolean> = Symbol('X_ELEMENT_IN_TABS')\r\nexport const X_ELEMENT_IN_TAB_PANE: InjectionKey<boolean> = Symbol('X_ELEMENT_IN_TAB_PANE')\r\n\r\nexport const X_FORM_VALIDATIONS: InjectionKey<XFormItemValidation[]> = Symbol('X_FORM_VALIDATIONS')\r\nexport const X_FORM_ITEM_VALIDATION: InjectionKey<XFormItemValidation> = Symbol('X_FORM_ITEM_VALIDATION')\r\n\r\nexport const X_TAB_PANE_NAME: InjectionKey<string | number | undefined> = Symbol('X_TAB_PANE')\r\n\r\nexport const X_TABS_MODEL_UPDATE_HOOK: InjectionKey<EventHook> = Symbol('X_TABS_MODEL_UPDATE_HOOK')\r\n"],"mappings":";AAMA,IAAa,IAA+C,OAAO,kBAAkB,EAExE,IAA4C,OAAO,qBAAqB,EACxE,IAAmD,OAAO,4BAA4B,EACtF,IAA2C,OAAO,oBAAoB,EAEtE,IAA2C,OAAO,oBAAoB,EACtE,IAA+C,OAAO,wBAAwB,EAE9E,IAA0D,OAAO,qBAAqB,EACtF,IAA4D,OAAO,yBAAyB,EAE5F,IAA6D,OAAO,aAAa,EAEjF,IAAoD,OAAO,2BAA2B"}
|
|
@@ -189,12 +189,9 @@ Object.assign(e.el, {
|
|
|
189
189
|
startPlaceholder: "Start Date",
|
|
190
190
|
endPlaceholder: "End Date"
|
|
191
191
|
},
|
|
192
|
-
select: {
|
|
193
|
-
...e.el.select,
|
|
194
|
-
noDataText: "No data"
|
|
195
|
-
}
|
|
192
|
+
select: { ...e.el.select }
|
|
196
193
|
});
|
|
197
194
|
//#endregion
|
|
198
195
|
export { e as t };
|
|
199
196
|
|
|
200
|
-
//# sourceMappingURL=en-
|
|
197
|
+
//# sourceMappingURL=en-BAY1fB2Q.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-
|
|
1
|
+
{"version":3,"file":"en-BAY1fB2Q.js","names":[],"sources":["../../node_modules/element-plus/es/locale/lang/en.mjs","../../src/locales/en.ts"],"sourcesContent":["//#region ../../packages/locale/lang/en.ts\nvar en_default = {\n\tname: \"en\",\n\tel: {\n\t\tbreadcrumb: { label: \"Breadcrumb\" },\n\t\tcolorpicker: {\n\t\t\tconfirm: \"OK\",\n\t\t\tclear: \"Clear\",\n\t\t\tdefaultLabel: \"color picker\",\n\t\t\tdescription: \"current color is {color}. press enter to select a new color.\",\n\t\t\talphaLabel: \"pick alpha value\",\n\t\t\talphaDescription: \"alpha {alpha}, current color is {color}\",\n\t\t\thueLabel: \"pick hue value\",\n\t\t\thueDescription: \"hue {hue}, current color is {color}\",\n\t\t\tsvLabel: \"pick saturation and brightness value\",\n\t\t\tsvDescription: \"saturation {saturation}, brightness {brightness}, current color is {color}\",\n\t\t\tpredefineDescription: \"select {value} as the color\"\n\t\t},\n\t\tdatepicker: {\n\t\t\tnow: \"Now\",\n\t\t\ttoday: \"Today\",\n\t\t\tcancel: \"Cancel\",\n\t\t\tclear: \"Clear\",\n\t\t\tconfirm: \"OK\",\n\t\t\tdateTablePrompt: \"Use the arrow keys and enter to select the day of the month\",\n\t\t\tmonthTablePrompt: \"Use the arrow keys and enter to select the month\",\n\t\t\tyearTablePrompt: \"Use the arrow keys and enter to select the year\",\n\t\t\tselectedDate: \"Selected date\",\n\t\t\tselectDate: \"Select date\",\n\t\t\tselectTime: \"Select time\",\n\t\t\tstartDate: \"Start Date\",\n\t\t\tstartTime: \"Start Time\",\n\t\t\tendDate: \"End Date\",\n\t\t\tendTime: \"End Time\",\n\t\t\tprevYear: \"Previous Year\",\n\t\t\tnextYear: \"Next Year\",\n\t\t\tprevMonth: \"Previous Month\",\n\t\t\tnextMonth: \"Next Month\",\n\t\t\tyear: \"\",\n\t\t\tmonth1: \"January\",\n\t\t\tmonth2: \"February\",\n\t\t\tmonth3: \"March\",\n\t\t\tmonth4: \"April\",\n\t\t\tmonth5: \"May\",\n\t\t\tmonth6: \"June\",\n\t\t\tmonth7: \"July\",\n\t\t\tmonth8: \"August\",\n\t\t\tmonth9: \"September\",\n\t\t\tmonth10: \"October\",\n\t\t\tmonth11: \"November\",\n\t\t\tmonth12: \"December\",\n\t\t\tweeks: {\n\t\t\t\tsun: \"Sun\",\n\t\t\t\tmon: \"Mon\",\n\t\t\t\ttue: \"Tue\",\n\t\t\t\twed: \"Wed\",\n\t\t\t\tthu: \"Thu\",\n\t\t\t\tfri: \"Fri\",\n\t\t\t\tsat: \"Sat\"\n\t\t\t},\n\t\t\tweeksFull: {\n\t\t\t\tsun: \"Sunday\",\n\t\t\t\tmon: \"Monday\",\n\t\t\t\ttue: \"Tuesday\",\n\t\t\t\twed: \"Wednesday\",\n\t\t\t\tthu: \"Thursday\",\n\t\t\t\tfri: \"Friday\",\n\t\t\t\tsat: \"Saturday\"\n\t\t\t},\n\t\t\tmonths: {\n\t\t\t\tjan: \"Jan\",\n\t\t\t\tfeb: \"Feb\",\n\t\t\t\tmar: \"Mar\",\n\t\t\t\tapr: \"Apr\",\n\t\t\t\tmay: \"May\",\n\t\t\t\tjun: \"Jun\",\n\t\t\t\tjul: \"Jul\",\n\t\t\t\taug: \"Aug\",\n\t\t\t\tsep: \"Sep\",\n\t\t\t\toct: \"Oct\",\n\t\t\t\tnov: \"Nov\",\n\t\t\t\tdec: \"Dec\"\n\t\t\t}\n\t\t},\n\t\tinputNumber: {\n\t\t\tdecrease: \"decrease number\",\n\t\t\tincrease: \"increase number\"\n\t\t},\n\t\tselect: {\n\t\t\tloading: \"Loading\",\n\t\t\tnoMatch: \"No matching data\",\n\t\t\tnoData: \"No data\",\n\t\t\tplaceholder: \"Select\"\n\t\t},\n\t\tmention: { loading: \"Loading\" },\n\t\tdropdown: { toggleDropdown: \"Toggle Dropdown\" },\n\t\tcascader: {\n\t\t\tnoMatch: \"No matching data\",\n\t\t\tloading: \"Loading\",\n\t\t\tplaceholder: \"Select\",\n\t\t\tnoData: \"No data\"\n\t\t},\n\t\tpagination: {\n\t\t\tgoto: \"Go to\",\n\t\t\tpagesize: \"/page\",\n\t\t\ttotal: \"Total {total}\",\n\t\t\tpageClassifier: \"\",\n\t\t\tpage: \"Page\",\n\t\t\tprev: \"Go to previous page\",\n\t\t\tnext: \"Go to next page\",\n\t\t\tcurrentPage: \"page {pager}\",\n\t\t\tprevPages: \"Previous {pager} pages\",\n\t\t\tnextPages: \"Next {pager} pages\",\n\t\t\tdeprecationWarning: \"Deprecated usages detected, please refer to the el-pagination documentation for more details\"\n\t\t},\n\t\tdialog: { close: \"Close this dialog\" },\n\t\tdrawer: { close: \"Close this dialog\" },\n\t\tmessagebox: {\n\t\t\ttitle: \"Message\",\n\t\t\tconfirm: \"OK\",\n\t\t\tcancel: \"Cancel\",\n\t\t\terror: \"Illegal input\",\n\t\t\tclose: \"Close this dialog\"\n\t\t},\n\t\tupload: {\n\t\t\tdeleteTip: \"press delete to remove\",\n\t\t\tdelete: \"Delete\",\n\t\t\tpreview: \"Preview\",\n\t\t\tcontinue: \"Continue\"\n\t\t},\n\t\tslider: {\n\t\t\tdefaultLabel: \"slider between {min} and {max}\",\n\t\t\tdefaultRangeStartLabel: \"pick start value\",\n\t\t\tdefaultRangeEndLabel: \"pick end value\"\n\t\t},\n\t\ttable: {\n\t\t\temptyText: \"No Data\",\n\t\t\tconfirmFilter: \"Confirm\",\n\t\t\tresetFilter: \"Reset\",\n\t\t\tclearFilter: \"All\",\n\t\t\tsumText: \"Sum\",\n\t\t\tselectAllLabel: \"Select all rows\",\n\t\t\tselectRowLabel: \"Select this row\",\n\t\t\texpandRowLabel: \"Expand this row\",\n\t\t\tcollapseRowLabel: \"Collapse this row\",\n\t\t\tsortLabel: \"Sort by {column}\",\n\t\t\tfilterLabel: \"Filter by {column}\"\n\t\t},\n\t\ttag: { close: \"Close this tag\" },\n\t\ttour: {\n\t\t\tnext: \"Next\",\n\t\t\tprevious: \"Previous\",\n\t\t\tfinish: \"Finish\",\n\t\t\tclose: \"Close this dialog\"\n\t\t},\n\t\ttree: { emptyText: \"No Data\" },\n\t\ttransfer: {\n\t\t\tnoMatch: \"No matching data\",\n\t\t\tnoData: \"No data\",\n\t\t\ttitles: [\"List 1\", \"List 2\"],\n\t\t\tfilterPlaceholder: \"Enter keyword\",\n\t\t\tnoCheckedFormat: \"{total} items\",\n\t\t\thasCheckedFormat: \"{checked}/{total} checked\"\n\t\t},\n\t\timage: { error: \"FAILED\" },\n\t\tpageHeader: { title: \"Back\" },\n\t\tpopconfirm: {\n\t\t\tconfirmButtonText: \"Yes\",\n\t\t\tcancelButtonText: \"No\"\n\t\t},\n\t\tcarousel: {\n\t\t\tleftArrow: \"Carousel arrow left\",\n\t\t\trightArrow: \"Carousel arrow right\",\n\t\t\tindicator: \"Carousel switch to index {index}\"\n\t\t}\n\t}\n};\n\n//#endregion\nexport { en_default as default };\n//# sourceMappingURL=en.mjs.map","import en from 'element-plus/es/locale/lang/en'\r\n\r\nObject.assign(en.el, {\r\n input: {\r\n placeholder: 'Please input'\r\n },\r\n inputNumber: {\r\n ...en.el.inputNumber,\r\n placeholder: 'Please input'\r\n },\r\n datepicker: {\r\n ...en.el.datepicker,\r\n placeholder: 'Please select',\r\n startPlaceholder: 'Start Date',\r\n endPlaceholder: 'End Date'\r\n },\r\n select: {\r\n ...en.el.select\r\n }\r\n})\r\n\r\nexport { en }\r\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
package/dist/es/en.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./en-
|
|
1
|
+
import { t as e } from "./en-BAY1fB2Q.js";
|
|
2
2
|
export { e as en };
|
package/dist/es/index.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
1
|
+
import { n as e, t } from "./components-DKoUIsFy.js";
|
|
2
|
+
import { t as n } from "./Button-BgxatYKq.js";
|
|
3
|
+
import { t as r } from "./en-BAY1fB2Q.js";
|
|
4
|
+
import { t as i } from "./zh-cn-UaM4b5St.js";
|
|
5
5
|
import "./index2.js";
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
|
|
6
|
+
import { t as a } from "./ConfigProvider-BlRc251T.js";
|
|
7
|
+
import { t as o } from "./DatePicker-BDjnMA3B.js";
|
|
8
|
+
import { t as s } from "./Dialog-BahbAebJ.js";
|
|
9
|
+
import { t as c } from "./Form-wBMmnwZj.js";
|
|
10
|
+
import { t as l } from "./FormItem--C1bP0wY.js";
|
|
11
|
+
import { t as u } from "./Input-JT0g3gkf.js";
|
|
12
|
+
import { t as d } from "./InputNumber-CFTLdulD.js";
|
|
13
|
+
import { t as f } from "./Pagination-CGeelxQR.js";
|
|
14
|
+
import { t as p } from "./Select-BKdDBeJC.js";
|
|
15
|
+
import { t as m } from "./Table-Cm_Dki-c.js";
|
|
16
|
+
import { t as h } from "./TabPane-CzInYf67.js";
|
|
17
|
+
import { t as g } from "./Tabs-CKIkuQ81.js";
|
|
18
|
+
import { t as _ } from "./Upload-DCnEcRkL.js";
|
|
19
|
+
//#region src/install.ts
|
|
20
|
+
var v = (e) => {
|
|
21
|
+
Object.entries(t).forEach(([t, n]) => {
|
|
22
|
+
e.component(t, n);
|
|
23
|
+
});
|
|
24
|
+
}, y = v;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { n as XButton, e as XButtonPopconfirm, a as XConfigProvider, o as XDatePicker, s as XDialog, c as XForm, l as XFormItem, u as XInput, d as XInputNumber, f as XPagination, p as XSelect, h as XTabPane, m as XTable, g as XTabs, _ as XUpload, y as default, r as en, v as install, i as zhCn };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/install.ts","../../src/index.ts"],"sourcesContent":["import type { App, Component } from 'vue'\r\n\r\nimport * as components from '@/components'\r\n\r\nexport const install = (app: App) => {\r\n Object.entries(components).forEach(([name, component]) => {\r\n app.component(name, component as Component)\r\n })\r\n}\r\n","import { install } from './install'\r\n\r\nexport * from './components'\r\nexport * from './install'\r\nexport * from './locales'\r\n\r\nexport default install\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAIA,IAAa,KAAW,MAAa;AACnC,QAAO,QAAQ,EAAW,CAAC,SAAS,CAAC,GAAM,OAAe;AACxD,IAAI,UAAU,GAAM,EAAuB;GAC3C;GCDJ,IAAe"}
|
package/dist/es/index2.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "./en-
|
|
2
|
-
import { t } from "./zh-cn-
|
|
1
|
+
import { t as e } from "./en-BAY1fB2Q.js";
|
|
2
|
+
import { t } from "./zh-cn-UaM4b5St.js";
|
|
3
3
|
export { e as en, t as zhCn };
|
|
@@ -189,12 +189,9 @@ Object.assign(e.el, {
|
|
|
189
189
|
startPlaceholder: "开始日期",
|
|
190
190
|
endPlaceholder: "结束日期"
|
|
191
191
|
},
|
|
192
|
-
select: {
|
|
193
|
-
...e.el.select,
|
|
194
|
-
noDataText: "无数据"
|
|
195
|
-
}
|
|
192
|
+
select: { ...e.el.select }
|
|
196
193
|
});
|
|
197
194
|
//#endregion
|
|
198
195
|
export { e as t };
|
|
199
196
|
|
|
200
|
-
//# sourceMappingURL=zh-cn-
|
|
197
|
+
//# sourceMappingURL=zh-cn-UaM4b5St.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-cn-
|
|
1
|
+
{"version":3,"file":"zh-cn-UaM4b5St.js","names":[],"sources":["../../node_modules/element-plus/es/locale/lang/zh-cn.mjs","../../src/locales/zh-cn.ts"],"sourcesContent":["//#region ../../packages/locale/lang/zh-cn.ts\nvar zh_cn_default = {\n\tname: \"zh-cn\",\n\tel: {\n\t\tbreadcrumb: { label: \"面包屑\" },\n\t\tcolorpicker: {\n\t\t\tconfirm: \"确定\",\n\t\t\tclear: \"清空\",\n\t\t\tdefaultLabel: \"颜色选择器\",\n\t\t\tdescription: \"当前颜色 {color},按 Enter 键选择新颜色\",\n\t\t\talphaLabel: \"选择透明度的值\",\n\t\t\talphaDescription: \"透明度 {alpha}, 当前颜色 {color}\",\n\t\t\thueLabel: \"选择色相值\",\n\t\t\thueDescription: \"色相 {hue}, 当前颜色 {color}\",\n\t\t\tsvLabel: \"选择饱和度与明度的值\",\n\t\t\tsvDescription: \"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}\",\n\t\t\tpredefineDescription: \"选择 {value} 作为颜色\"\n\t\t},\n\t\tdatepicker: {\n\t\t\tnow: \"此刻\",\n\t\t\ttoday: \"今天\",\n\t\t\tcancel: \"取消\",\n\t\t\tclear: \"清空\",\n\t\t\tconfirm: \"确定\",\n\t\t\tdateTablePrompt: \"使用方向键与 Enter 键可选择日期\",\n\t\t\tmonthTablePrompt: \"使用方向键与 Enter 键可选择月份\",\n\t\t\tyearTablePrompt: \"使用方向键与 Enter 键可选择年份\",\n\t\t\tselectedDate: \"已选日期\",\n\t\t\tselectDate: \"选择日期\",\n\t\t\tselectTime: \"选择时间\",\n\t\t\tstartDate: \"开始日期\",\n\t\t\tstartTime: \"开始时间\",\n\t\t\tendDate: \"结束日期\",\n\t\t\tendTime: \"结束时间\",\n\t\t\tprevYear: \"前一年\",\n\t\t\tnextYear: \"后一年\",\n\t\t\tprevMonth: \"上个月\",\n\t\t\tnextMonth: \"下个月\",\n\t\t\tyear: \"年\",\n\t\t\tmonth1: \"1 月\",\n\t\t\tmonth2: \"2 月\",\n\t\t\tmonth3: \"3 月\",\n\t\t\tmonth4: \"4 月\",\n\t\t\tmonth5: \"5 月\",\n\t\t\tmonth6: \"6 月\",\n\t\t\tmonth7: \"7 月\",\n\t\t\tmonth8: \"8 月\",\n\t\t\tmonth9: \"9 月\",\n\t\t\tmonth10: \"10 月\",\n\t\t\tmonth11: \"11 月\",\n\t\t\tmonth12: \"12 月\",\n\t\t\tweeks: {\n\t\t\t\tsun: \"日\",\n\t\t\t\tmon: \"一\",\n\t\t\t\ttue: \"二\",\n\t\t\t\twed: \"三\",\n\t\t\t\tthu: \"四\",\n\t\t\t\tfri: \"五\",\n\t\t\t\tsat: \"六\"\n\t\t\t},\n\t\t\tweeksFull: {\n\t\t\t\tsun: \"星期日\",\n\t\t\t\tmon: \"星期一\",\n\t\t\t\ttue: \"星期二\",\n\t\t\t\twed: \"星期三\",\n\t\t\t\tthu: \"星期四\",\n\t\t\t\tfri: \"星期五\",\n\t\t\t\tsat: \"星期六\"\n\t\t\t},\n\t\t\tmonths: {\n\t\t\t\tjan: \"一月\",\n\t\t\t\tfeb: \"二月\",\n\t\t\t\tmar: \"三月\",\n\t\t\t\tapr: \"四月\",\n\t\t\t\tmay: \"五月\",\n\t\t\t\tjun: \"六月\",\n\t\t\t\tjul: \"七月\",\n\t\t\t\taug: \"八月\",\n\t\t\t\tsep: \"九月\",\n\t\t\t\toct: \"十月\",\n\t\t\t\tnov: \"十一月\",\n\t\t\t\tdec: \"十二月\"\n\t\t\t}\n\t\t},\n\t\tinputNumber: {\n\t\t\tdecrease: \"减少数值\",\n\t\t\tincrease: \"增加数值\"\n\t\t},\n\t\tselect: {\n\t\t\tloading: \"加载中\",\n\t\t\tnoMatch: \"无匹配数据\",\n\t\t\tnoData: \"无数据\",\n\t\t\tplaceholder: \"请选择\"\n\t\t},\n\t\tmention: { loading: \"加载中\" },\n\t\tdropdown: { toggleDropdown: \"切换下拉选项\" },\n\t\tcascader: {\n\t\t\tnoMatch: \"无匹配数据\",\n\t\t\tloading: \"加载中\",\n\t\t\tplaceholder: \"请选择\",\n\t\t\tnoData: \"暂无数据\"\n\t\t},\n\t\tpagination: {\n\t\t\tgoto: \"前往\",\n\t\t\tpagesize: \"条/页\",\n\t\t\ttotal: \"共 {total} 条\",\n\t\t\tpageClassifier: \"页\",\n\t\t\tpage: \"页\",\n\t\t\tprev: \"上一页\",\n\t\t\tnext: \"下一页\",\n\t\t\tcurrentPage: \"第 {pager} 页\",\n\t\t\tprevPages: \"向前 {pager} 页\",\n\t\t\tnextPages: \"向后 {pager} 页\",\n\t\t\tdeprecationWarning: \"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档\"\n\t\t},\n\t\tdialog: { close: \"关闭此对话框\" },\n\t\tdrawer: { close: \"关闭此对话框\" },\n\t\tmessagebox: {\n\t\t\ttitle: \"提示\",\n\t\t\tconfirm: \"确定\",\n\t\t\tcancel: \"取消\",\n\t\t\terror: \"输入的数据不合法!\",\n\t\t\tclose: \"关闭此对话框\"\n\t\t},\n\t\tupload: {\n\t\t\tdeleteTip: \"按 Delete 键可删除\",\n\t\t\tdelete: \"删除\",\n\t\t\tpreview: \"查看图片\",\n\t\t\tcontinue: \"继续上传\"\n\t\t},\n\t\tslider: {\n\t\t\tdefaultLabel: \"滑块介于 {min} 至 {max}\",\n\t\t\tdefaultRangeStartLabel: \"选择起始值\",\n\t\t\tdefaultRangeEndLabel: \"选择结束值\"\n\t\t},\n\t\ttable: {\n\t\t\temptyText: \"暂无数据\",\n\t\t\tconfirmFilter: \"筛选\",\n\t\t\tresetFilter: \"重置\",\n\t\t\tclearFilter: \"全部\",\n\t\t\tsumText: \"合计\",\n\t\t\tselectAllLabel: \"选择所有行\",\n\t\t\tselectRowLabel: \"选择当前行\",\n\t\t\texpandRowLabel: \"展开当前行\",\n\t\t\tcollapseRowLabel: \"收起当前行\",\n\t\t\tsortLabel: \"按 {column} 排序\",\n\t\t\tfilterLabel: \"按 {column} 过滤\"\n\t\t},\n\t\ttag: { close: \"关闭此标签\" },\n\t\ttour: {\n\t\t\tnext: \"下一步\",\n\t\t\tprevious: \"上一步\",\n\t\t\tfinish: \"结束导览\",\n\t\t\tclose: \"关闭此对话框\"\n\t\t},\n\t\ttree: { emptyText: \"暂无数据\" },\n\t\ttransfer: {\n\t\t\tnoMatch: \"无匹配数据\",\n\t\t\tnoData: \"无数据\",\n\t\t\ttitles: [\"列表 1\", \"列表 2\"],\n\t\t\tfilterPlaceholder: \"请输入搜索内容\",\n\t\t\tnoCheckedFormat: \"共 {total} 项\",\n\t\t\thasCheckedFormat: \"已选 {checked}/{total} 项\"\n\t\t},\n\t\timage: { error: \"加载失败\" },\n\t\tpageHeader: { title: \"返回\" },\n\t\tpopconfirm: {\n\t\t\tconfirmButtonText: \"确定\",\n\t\t\tcancelButtonText: \"取消\"\n\t\t},\n\t\tcarousel: {\n\t\t\tleftArrow: \"上一张幻灯片\",\n\t\t\trightArrow: \"下一张幻灯片\",\n\t\t\tindicator: \"幻灯片切换至索引 {index}\"\n\t\t}\n\t}\n};\n\n//#endregion\nexport { zh_cn_default as default };\n//# sourceMappingURL=zh-cn.mjs.map","import zhCn from 'element-plus/es/locale/lang/zh-cn'\r\n\r\nObject.assign(\r\n zhCn.el,\r\n {\r\n input: { placeholder: '请输入' },\r\n inputNumber: {\r\n ...zhCn.el.inputNumber,\r\n placeholder: '请输入'\r\n },\r\n datepicker: {\r\n ...zhCn.el.datepicker,\r\n placeholder: '请选择日期',\r\n startPlaceholder: '开始日期',\r\n endPlaceholder: '结束日期'\r\n },\r\n select: {\r\n ...zhCn.el.select\r\n }\r\n }\r\n)\r\n\r\nexport { zhCn }\r\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
package/dist/es/zh-cn.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./zh-cn-
|
|
1
|
+
import { t as e } from "./zh-cn-UaM4b5St.js";
|
|
2
2
|
export { e as zhCn };
|