@unizhen/ui 0.1.12 → 0.1.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/lib/ui.js +18 -17
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -3680,7 +3680,7 @@ function Ch(e, t, n, c, l, i) {
|
|
|
3680
3680
|
disabled: e.checkDisabled(),
|
|
3681
3681
|
show: e.checkReadonlyShow(),
|
|
3682
3682
|
clearable: e.checkClearable(),
|
|
3683
|
-
filterable: e.
|
|
3683
|
+
filterable: e.item.params.filterable,
|
|
3684
3684
|
tag: e.item.params.tag,
|
|
3685
3685
|
multiple: e.item.params.multiple,
|
|
3686
3686
|
"fallback-option": e.selectFallback,
|
|
@@ -5462,7 +5462,8 @@ function d1(e, t, n, c, l, i) {
|
|
|
5462
5462
|
show: e.drawer,
|
|
5463
5463
|
"onUpdate:show": t[2] || (t[2] = (g) => e.drawer = g),
|
|
5464
5464
|
width: "100%",
|
|
5465
|
-
height: "
|
|
5465
|
+
height: "50%",
|
|
5466
|
+
style: { overflow: "visible" },
|
|
5466
5467
|
placement: "bottom",
|
|
5467
5468
|
"auto-focus": !1,
|
|
5468
5469
|
"close-on-esc": !1
|
|
@@ -5900,12 +5901,12 @@ function wt(e, t, n) {
|
|
|
5900
5901
|
const { sourceData: f, n: u } = await Pe(o.source);
|
|
5901
5902
|
if (f && Array.isArray(f))
|
|
5902
5903
|
if (o.sourceFn) {
|
|
5903
|
-
const g = o.sourceFn
|
|
5904
|
-
|
|
5904
|
+
const g = o.sourceFn;
|
|
5905
|
+
h = new Function("sourceData", g)(f);
|
|
5905
5906
|
} else
|
|
5906
|
-
|
|
5907
|
+
h = Re(o, f, u);
|
|
5907
5908
|
} else
|
|
5908
|
-
o.params.
|
|
5909
|
+
o.params._async = !0, o.params._fetch = !1, o.params._asyncFn = async () => {
|
|
5909
5910
|
const { sourceData: f, n: u } = await Pe(o.source);
|
|
5910
5911
|
if (f && Array.isArray(f))
|
|
5911
5912
|
if (o.sourceFn) {
|
|
@@ -5914,7 +5915,7 @@ function wt(e, t, n) {
|
|
|
5914
5915
|
} else
|
|
5915
5916
|
return Re(o, f, u);
|
|
5916
5917
|
};
|
|
5917
|
-
if (o.form.backfill && t)
|
|
5918
|
+
if (o.params.options = h, o.form.backfill && t)
|
|
5918
5919
|
if (Array.isArray(t))
|
|
5919
5920
|
t.forEach((f, u) => {
|
|
5920
5921
|
const g = h.find((S) => S.value === f[o.key]);
|
|
@@ -7317,12 +7318,12 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7317
7318
|
},
|
|
7318
7319
|
emits: ["update:value"],
|
|
7319
7320
|
setup(e, { emit: t, expose: n }) {
|
|
7320
|
-
const c = De("emitSuffix"), l = De("modules"), i = De("mainFormValue"), { t: a } = Qt(), p = M(), _ = M(), z = M(), D = M(!1), N = M(!0), v = M([]), o = M({ child: [] }), h = M(""), f = M({}), u = M([]), g = M(void 0), S = async (C) => {
|
|
7321
|
-
const { formDefaultValue:
|
|
7322
|
-
e.item.params.columns,
|
|
7321
|
+
const c = De("emitSuffix"), l = De("modules"), i = De("mainFormValue"), { t: a } = Qt(), p = M(), _ = M(), z = M(), D = M(!1), N = M(!0), v = M([]), o = M({ child: [] }), h = M(""), f = M({}), u = M([]), g = M(void 0), S = async (C, R) => {
|
|
7322
|
+
const { formDefaultValue: H, fillingDefaultArray: O } = await wt(
|
|
7323
|
+
G(R ?? e.item.params.columns),
|
|
7323
7324
|
C
|
|
7324
7325
|
);
|
|
7325
|
-
return f.value =
|
|
7326
|
+
return f.value = H, O;
|
|
7326
7327
|
}, y = async (C) => {
|
|
7327
7328
|
if (D.value)
|
|
7328
7329
|
return;
|
|
@@ -7355,7 +7356,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7355
7356
|
U();
|
|
7356
7357
|
});
|
|
7357
7358
|
}, F = (C) => C.delete ? "uz-table-child-delete" : "", K = async (C) => {
|
|
7358
|
-
e.item._suffix && (u.value = e.item._suffix.filter((ue) => ue.sub)), await S(C);
|
|
7359
|
+
e.item._suffix && (u.value = e.item._suffix.filter((ue) => ue.sub)), await S(e.value, C);
|
|
7359
7360
|
const { tableColumns: R, tableWidth: H } = await gt(
|
|
7360
7361
|
G(C ?? e.item.params.columns),
|
|
7361
7362
|
!0,
|
|
@@ -7578,7 +7579,7 @@ function R1(e, t, n, c, l, i) {
|
|
|
7578
7579
|
e.item.form.rule.required ? (s(), d("span", j1, " * ")) : Q("", !0)
|
|
7579
7580
|
]),
|
|
7580
7581
|
r("div", A1, [
|
|
7581
|
-
(s(!0), d(se,
|
|
7582
|
+
e.status !== 2 ? (s(!0), d(se, { key: 0 }, we(e.suffixes, (v) => (s(), B(_, {
|
|
7582
7583
|
key: v.key,
|
|
7583
7584
|
type: v.color,
|
|
7584
7585
|
secondary: "",
|
|
@@ -7603,9 +7604,9 @@ function R1(e, t, n, c, l, i) {
|
|
|
7603
7604
|
]),
|
|
7604
7605
|
key: "0"
|
|
7605
7606
|
} : void 0
|
|
7606
|
-
]), 1032, ["type", "onClick"]))), 128)),
|
|
7607
|
+
]), 1032, ["type", "onClick"]))), 128)) : Q("", !0),
|
|
7607
7608
|
e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
|
|
7608
|
-
key:
|
|
7609
|
+
key: 1,
|
|
7609
7610
|
type: "success",
|
|
7610
7611
|
secondary: "",
|
|
7611
7612
|
onClick: e.onAddFormData
|
|
@@ -7624,7 +7625,7 @@ function R1(e, t, n, c, l, i) {
|
|
|
7624
7625
|
_: 1
|
|
7625
7626
|
}, 8, ["onClick"])) : Q("", !0),
|
|
7626
7627
|
e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
|
|
7627
|
-
key:
|
|
7628
|
+
key: 2,
|
|
7628
7629
|
type: "success",
|
|
7629
7630
|
secondary: "",
|
|
7630
7631
|
onClick: e.onAdd
|
|
@@ -8926,7 +8927,7 @@ function tm(e, t, n) {
|
|
|
8926
8927
|
refetch: S
|
|
8927
8928
|
};
|
|
8928
8929
|
}
|
|
8929
|
-
const x0 = "0.1.
|
|
8930
|
+
const x0 = "0.1.14";
|
|
8930
8931
|
let _a;
|
|
8931
8932
|
async function $a() {
|
|
8932
8933
|
const e = await fetch(
|