@pungfe/element 0.0.1-alpha.13 → 0.0.1-alpha.14
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/basic/XUpload.vue.d.ts +2 -2
- package/dist/index.js +19 -21
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UploadFile } from 'element-plus';
|
|
1
|
+
import { UploadFile, UploadProps } from 'element-plus';
|
|
2
2
|
export interface XUploadProps {
|
|
3
3
|
action?: string;
|
|
4
|
-
data?:
|
|
4
|
+
data?: UploadProps['data'];
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
limit?: number;
|
|
7
7
|
multiple?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, openBlock as p, createBlock as g, unref as B, mergeProps as C, withCtx as h, renderSlot as S, useModel as x, inject as f, mergeModels as V, computed as X, toValue as
|
|
1
|
+
import { defineComponent as y, openBlock as p, createBlock as g, unref as B, mergeProps as C, withCtx as h, renderSlot as S, useModel as x, inject as f, mergeModels as V, computed as X, toValue as U, onMounted as Y, nextTick as re, getCurrentScope as de, onScopeDispose as ue, getCurrentInstance as _, shallowRef as Q, watch as K, createElementBlock as G, Fragment as J, renderList as Z, useSlots as se, createSlots as ce, normalizeProps as O, guardReactiveProps as M, ref as H, provide as A, createVNode as z, resolveComponent as F, createTextVNode as j, useTemplateRef as ee, toDisplayString as me, normalizeClass as fe } from "vue";
|
|
2
2
|
import { ElButton as pe, ElCascader as be, ElCheckboxGroup as ve, ElCheckbox as ye, ElColorPicker as ge, ElDatePicker as he, ElDialog as Be, ElDivider as we, ElForm as Ve, ElFormItem as Te, ElMessage as te, ElImage as Xe, ElInput as Ce, ElPagination as xe, ElRate as Ee, ElPopconfirm as Se, ElScrollbar as ke, ElSpace as Ie, ElTable as ze, ElTableColumn as Pe, ElTabs as $e, ElTabPane as Ae, ElTag as Oe, ElText as Me, ElUpload as Re } from "element-plus";
|
|
3
3
|
const De = /* @__PURE__ */ y({
|
|
4
4
|
__name: "XButton",
|
|
@@ -36,13 +36,13 @@ const De = /* @__PURE__ */ y({
|
|
|
36
36
|
}
|
|
37
37
|
}), $ = /* @__PURE__ */ Symbol("X_FORM_ITEM_LABEL"), ae = /* @__PURE__ */ Symbol("X_FORM_VALIDATIONS"), k = /* @__PURE__ */ Symbol(
|
|
38
38
|
"X_FORM_ITEM_VALIDATION"
|
|
39
|
-
),
|
|
39
|
+
), Le = /* @__PURE__ */ Symbol(
|
|
40
40
|
"X_FORM_TAB_UPDATE_HOOK"
|
|
41
41
|
), le = /* @__PURE__ */ Symbol("X_TAB_PANES"), oe = /* @__PURE__ */ Symbol("X_TAB_PANE"), R = /* @__PURE__ */ Symbol(
|
|
42
42
|
"X_TABLE_QUERY_UPDATE_HOOK"
|
|
43
43
|
), D = /* @__PURE__ */ Symbol(
|
|
44
44
|
"X_TABLE_QUERY_EXECUTE_HOOK"
|
|
45
|
-
),
|
|
45
|
+
), Ue = /* @__PURE__ */ y({
|
|
46
46
|
__name: "XCascader",
|
|
47
47
|
props: /* @__PURE__ */ V({
|
|
48
48
|
clearable: {
|
|
@@ -84,7 +84,7 @@ const De = /* @__PURE__ */ y({
|
|
|
84
84
|
}), null, 16, ["modelValue"]));
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
|
-
function
|
|
87
|
+
function Fe(e, t) {
|
|
88
88
|
return de() ? (ue(e, t), !0) : !1;
|
|
89
89
|
}
|
|
90
90
|
const He = typeof window < "u" && typeof document < "u";
|
|
@@ -100,12 +100,12 @@ function Qe(e, t = !0, a) {
|
|
|
100
100
|
}
|
|
101
101
|
// @__NO_SIDE_EFFECTS__
|
|
102
102
|
function W(e, t) {
|
|
103
|
-
return X(() =>
|
|
103
|
+
return X(() => U(e).map((a) => U(a)).map(t));
|
|
104
104
|
}
|
|
105
105
|
const ne = He ? window : void 0;
|
|
106
106
|
function P(e) {
|
|
107
107
|
var t;
|
|
108
|
-
const a =
|
|
108
|
+
const a = U(e);
|
|
109
109
|
return (t = a?.$el) !== null && t !== void 0 ? t : a;
|
|
110
110
|
}
|
|
111
111
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -126,7 +126,7 @@ function Ke(e, t, a = {}) {
|
|
|
126
126
|
const i = /* @__PURE__ */ We(() => n && "ResizeObserver" in n), l = () => {
|
|
127
127
|
r && (r.disconnect(), r = void 0);
|
|
128
128
|
}, u = K(X(() => {
|
|
129
|
-
const c =
|
|
129
|
+
const c = U(e);
|
|
130
130
|
return Array.isArray(c) ? c.map((d) => P(d)) : [P(c)];
|
|
131
131
|
}), (c) => {
|
|
132
132
|
if (l(), i.value && n) {
|
|
@@ -139,7 +139,7 @@ function Ke(e, t, a = {}) {
|
|
|
139
139
|
}), s = () => {
|
|
140
140
|
l(), u();
|
|
141
141
|
};
|
|
142
|
-
return
|
|
142
|
+
return Fe(s), {
|
|
143
143
|
isSupported: i,
|
|
144
144
|
stop: s
|
|
145
145
|
};
|
|
@@ -513,7 +513,7 @@ const Ye = /* @__PURE__ */ y({
|
|
|
513
513
|
}), tt = /* @__PURE__ */ y((e, {
|
|
514
514
|
expose: t
|
|
515
515
|
}) => {
|
|
516
|
-
const a = f(oe, void 0), n = f(
|
|
516
|
+
const a = f(oe, void 0), n = f(Le, void 0), o = H(), r = {
|
|
517
517
|
label: e.label,
|
|
518
518
|
required: e.required,
|
|
519
519
|
clearValidate() {
|
|
@@ -713,7 +713,7 @@ const Ye = /* @__PURE__ */ y({
|
|
|
713
713
|
r?.validate(), n("blur");
|
|
714
714
|
};
|
|
715
715
|
return (l, u) => {
|
|
716
|
-
const s =
|
|
716
|
+
const s = F("ElInputNumber");
|
|
717
717
|
return p(), g(s, C(a, {
|
|
718
718
|
modelValue: o.value,
|
|
719
719
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => o.value = c),
|
|
@@ -819,7 +819,7 @@ const Ye = /* @__PURE__ */ y({
|
|
|
819
819
|
setup(e, { emit: t }) {
|
|
820
820
|
const a = t;
|
|
821
821
|
return (n, o) => {
|
|
822
|
-
const r =
|
|
822
|
+
const r = F("XButton");
|
|
823
823
|
return p(), g(B(Se), {
|
|
824
824
|
title: e.title,
|
|
825
825
|
onCancel: o[0] || (o[0] = () => a("cancel")),
|
|
@@ -1016,8 +1016,8 @@ const Ye = /* @__PURE__ */ y({
|
|
|
1016
1016
|
let s = 0;
|
|
1017
1017
|
K([n, r], async () => {
|
|
1018
1018
|
if (s++, n.value) {
|
|
1019
|
-
const b = [].concat(n.value).filter((q) => !r.value.map((I) => l(I.value)).includes(l(q))), w = s,
|
|
1020
|
-
w === s &&
|
|
1019
|
+
const b = [].concat(n.value).filter((q) => !r.value.map((I) => l(I.value)).includes(l(q))), w = s, L = await e.supplement?.(b);
|
|
1020
|
+
w === s && L && (o.value = L);
|
|
1021
1021
|
} else
|
|
1022
1022
|
o.value = [];
|
|
1023
1023
|
}, {
|
|
@@ -1049,7 +1049,7 @@ const Ye = /* @__PURE__ */ y({
|
|
|
1049
1049
|
T?.validate(), a("blur");
|
|
1050
1050
|
};
|
|
1051
1051
|
return (b, w) => {
|
|
1052
|
-
const
|
|
1052
|
+
const L = F("ElOption"), q = F("ElSelect");
|
|
1053
1053
|
return p(), g(q, C({
|
|
1054
1054
|
allowCreate: e.allowCreate,
|
|
1055
1055
|
clearable: e.clearable,
|
|
@@ -1069,7 +1069,7 @@ const Ye = /* @__PURE__ */ y({
|
|
|
1069
1069
|
onBlur: ie,
|
|
1070
1070
|
onChange: N
|
|
1071
1071
|
}), {
|
|
1072
|
-
default: h(() => [(p(!0), G(J, null, Z(c.value, (I) => (p(), g(
|
|
1072
|
+
default: h(() => [(p(!0), G(J, null, Z(c.value, (I) => (p(), g(L, {
|
|
1073
1073
|
key: I.key,
|
|
1074
1074
|
label: I.label,
|
|
1075
1075
|
value: I.value
|
|
@@ -1255,9 +1255,7 @@ const Ye = /* @__PURE__ */ y({
|
|
|
1255
1255
|
__name: "XUpload",
|
|
1256
1256
|
props: /* @__PURE__ */ V({
|
|
1257
1257
|
action: {},
|
|
1258
|
-
data: {
|
|
1259
|
-
type: Function
|
|
1260
|
-
},
|
|
1258
|
+
data: {},
|
|
1261
1259
|
disabled: {
|
|
1262
1260
|
type: Boolean,
|
|
1263
1261
|
default: () => {
|
|
@@ -1323,7 +1321,7 @@ const Ye = /* @__PURE__ */ y({
|
|
|
1323
1321
|
}), gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1324
1322
|
__proto__: null,
|
|
1325
1323
|
XButton: De,
|
|
1326
|
-
XCascader:
|
|
1324
|
+
XCascader: Ue,
|
|
1327
1325
|
XCheckbox: Ye,
|
|
1328
1326
|
XColorPicker: _e,
|
|
1329
1327
|
XDatePicker: Je,
|
|
@@ -1353,7 +1351,7 @@ const Ye = /* @__PURE__ */ y({
|
|
|
1353
1351
|
};
|
|
1354
1352
|
export {
|
|
1355
1353
|
De as XButton,
|
|
1356
|
-
|
|
1354
|
+
Ue as XCascader,
|
|
1357
1355
|
Ye as XCheckbox,
|
|
1358
1356
|
_e as XColorPicker,
|
|
1359
1357
|
Je as XDatePicker,
|
|
@@ -1378,7 +1376,7 @@ export {
|
|
|
1378
1376
|
yt as XUpload,
|
|
1379
1377
|
$ as X_FORM_ITEM_LABEL,
|
|
1380
1378
|
k as X_FORM_ITEM_VALIDATION,
|
|
1381
|
-
|
|
1379
|
+
Le as X_FORM_TAB_UPDATE_HOOK,
|
|
1382
1380
|
ae as X_FORM_VALIDATIONS,
|
|
1383
1381
|
D as X_TABLE_QUERY_EXECUTE_HOOK,
|
|
1384
1382
|
R as X_TABLE_QUERY_UPDATE_HOOK,
|
package/package.json
CHANGED