@unizhen/ui 0.1.66 → 0.1.67
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/components/table/factory.d.ts +0 -2
- package/lib/ui.js +9 -17
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -5141,14 +5141,10 @@ var Ip = (e) => e.map((e) => {
|
|
|
5141
5141
|
r: +!!e.form.edit.readonly,
|
|
5142
5142
|
s: +!!e.form.edit.show
|
|
5143
5143
|
},
|
|
5144
|
-
p: {
|
|
5145
|
-
d: +!!e.form.expand.disabled,
|
|
5146
|
-
r: +!!e.form.expand.readonly,
|
|
5147
|
-
s: +!!e.form.expand.show
|
|
5148
|
-
}
|
|
5144
|
+
p: { s: +!!e.form.expand.show }
|
|
5149
5145
|
}
|
|
5150
5146
|
};
|
|
5151
|
-
}), Lp = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
5147
|
+
}), Lp = (e) => !e[0] || e[0] && e[0].input ? e : (console.log(e), e.map((e) => {
|
|
5152
5148
|
let t = {};
|
|
5153
5149
|
return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
|
|
5154
5150
|
input: e.i,
|
|
@@ -5217,14 +5213,10 @@ var Ip = (e) => e.map((e) => {
|
|
|
5217
5213
|
readonly: !!e.f.e.r,
|
|
5218
5214
|
show: !!e.f.e.s
|
|
5219
5215
|
},
|
|
5220
|
-
expand: {
|
|
5221
|
-
disabled: !!e.f.p?.d,
|
|
5222
|
-
readonly: !!e.f.p?.r,
|
|
5223
|
-
show: !!e.f.p?.s
|
|
5224
|
-
}
|
|
5216
|
+
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
5225
5217
|
}
|
|
5226
5218
|
};
|
|
5227
|
-
}), Rp = (e) => ({
|
|
5219
|
+
})), Rp = (e) => ({
|
|
5228
5220
|
f: e.fetch,
|
|
5229
5221
|
o: e.when_drawer_open,
|
|
5230
5222
|
b: e.when_before_save
|
|
@@ -5429,7 +5421,7 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5429
5421
|
if (t) return t.label;
|
|
5430
5422
|
}), p.input === "upload" && !p.table.render && (p.table.render = function(e) {
|
|
5431
5423
|
return f(tp, { value: e[p.key] }, { default: () => null });
|
|
5432
|
-
}), s += Number(p.table.width || 140)
|
|
5424
|
+
}), s += Number(p.table.width || 140);
|
|
5433
5425
|
let m = {
|
|
5434
5426
|
input: p.input,
|
|
5435
5427
|
title: p.label,
|
|
@@ -5444,7 +5436,7 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5444
5436
|
"line-clamp": p.table.clamp ?? 0
|
|
5445
5437
|
} : !1,
|
|
5446
5438
|
render: p.table.render ? await Ap(p.key, p.table.render, i) : void 0,
|
|
5447
|
-
show: K.isMobile ? p.table.mobile ?? !1 :
|
|
5439
|
+
show: K.isMobile ? p.table.mobile ?? !1 : p.table.show ?? !0,
|
|
5448
5440
|
pin: !!p.table.fixed,
|
|
5449
5441
|
fixTemp: p.table.fixed
|
|
5450
5442
|
};
|
|
@@ -5472,7 +5464,7 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5472
5464
|
}) });
|
|
5473
5465
|
};
|
|
5474
5466
|
}
|
|
5475
|
-
if (m && p.input !== "divider" && p.input !== "subTable" && d.push(m), p.input !== "divider" && p.input !== "switch" && p.input !== "subTable" && p.input !== "upload" && p.search.show) {
|
|
5467
|
+
if (m && p.input !== "divider" && p.input !== "subTable" && (o && (m.show = p.form.expand.show), d.push(m)), p.input !== "divider" && p.input !== "switch" && p.input !== "subTable" && p.input !== "upload" && p.search.show) {
|
|
5476
5468
|
if (p.search.title && (p.label = p.search.title), p.search.source) if (p.input = "select", p.params.type = p.search.type, p.params.valueKey = p.search.valueKey, p.params.valueKey = p.search.valueKey, p.search.source === "from-up") p.params.options = p.params.options;
|
|
5477
5469
|
else if (p.params.immediately || p.search.defaultValue) {
|
|
5478
5470
|
let { sourceData: e, n: t } = await Pp(p.search.source);
|
|
@@ -5643,7 +5635,7 @@ var Kp = /*#__PURE__*/ U(Wp, [["render", Gp]]), qp = d({
|
|
|
5643
5635
|
...e,
|
|
5644
5636
|
sorter: !1,
|
|
5645
5637
|
resizable: !1
|
|
5646
|
-
})), i.value = a, t.value = !1;
|
|
5638
|
+
})).filter((e) => e.show), i.value = a, t.value = !1;
|
|
5647
5639
|
}).catch((e) => {
|
|
5648
5640
|
t.value = !1;
|
|
5649
5641
|
});
|
|
@@ -8512,7 +8504,7 @@ function qh(e, t, n) {
|
|
|
8512
8504
|
}
|
|
8513
8505
|
//#endregion
|
|
8514
8506
|
//#region package.json
|
|
8515
|
-
var Jh = "0.1.
|
|
8507
|
+
var Jh = "0.1.67", Yh;
|
|
8516
8508
|
async function Xh() {
|
|
8517
8509
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8518
8510
|
method: "HEAD",
|