@unizhen/ui 0.1.63 → 0.1.64
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 +15 -14
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -6147,23 +6147,24 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6147
6147
|
};
|
|
6148
6148
|
s += Number(typeof F.value.actionWidth == "string" ? F.value.actionWidth.replace("px", "") : F.value.actionWidth), t.push(n);
|
|
6149
6149
|
}
|
|
6150
|
-
let u =
|
|
6151
|
-
if (
|
|
6152
|
-
let e =
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6150
|
+
let u = t;
|
|
6151
|
+
if (l) {
|
|
6152
|
+
let e = Y(`tables_filter_${l}`, !1);
|
|
6153
|
+
if (e) try {
|
|
6154
|
+
let n = await Id(l);
|
|
6155
|
+
n && (e = JSON.parse(n), u = yd(t, e));
|
|
6156
|
+
} catch {}
|
|
6156
6157
|
}
|
|
6157
|
-
i && i[0] &&
|
|
6158
|
+
i && i[0] && u.unshift({
|
|
6158
6159
|
type: "expand",
|
|
6159
6160
|
show: !0,
|
|
6160
6161
|
renderExpand: (e) => f(Yp, {
|
|
6161
6162
|
linkId: i[0].link,
|
|
6162
6163
|
value: e[`sub_${i[0].key}`]
|
|
6163
6164
|
})
|
|
6164
|
-
}), u
|
|
6165
|
+
}), u.forEach((e) => {
|
|
6165
6166
|
s += Number(e.width);
|
|
6166
|
-
}), ee.value = n, E.value = s;
|
|
6167
|
+
}), C.value = u, ee.value = n, E.value = s;
|
|
6167
6168
|
}, Ce = (e) => typeof e == "number" ? `${e}px` : e, we = () => {
|
|
6168
6169
|
if (e.height) {
|
|
6169
6170
|
let t = Ce(e.height);
|
|
@@ -6172,10 +6173,10 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6172
6173
|
}
|
|
6173
6174
|
}, Te = (t) => {
|
|
6174
6175
|
let n = e.id || a.params.id;
|
|
6175
|
-
J(`tables_filter_${n}`, t), Ld({
|
|
6176
|
+
n && (J(`tables_filter_${n}`, t), Ld({
|
|
6176
6177
|
table_id: n,
|
|
6177
6178
|
data: JSON.stringify(t)
|
|
6178
|
-
}).catch(() => null);
|
|
6179
|
+
}).catch(() => null));
|
|
6179
6180
|
}, { run: Ee } = Tp(Te), { run: De } = Tp((e, t) => {
|
|
6180
6181
|
let n = [];
|
|
6181
6182
|
C.value.forEach((r) => {
|
|
@@ -6336,12 +6337,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6336
6337
|
if (g.value) return;
|
|
6337
6338
|
g.value = !0;
|
|
6338
6339
|
let t = e.id || a.params.id;
|
|
6339
|
-
od(`tables_filter_${t}`), Ld({
|
|
6340
|
+
t && (od(`tables_filter_${t}`), Ld({
|
|
6340
6341
|
table_id: t,
|
|
6341
6342
|
data: null
|
|
6342
6343
|
}).catch(() => null).finally(() => {
|
|
6343
6344
|
Se(), g.value = !1;
|
|
6344
|
-
});
|
|
6345
|
+
}));
|
|
6345
6346
|
},
|
|
6346
6347
|
handleColumnResize: (e, t, n) => {
|
|
6347
6348
|
De(e, n.key);
|
|
@@ -8498,7 +8499,7 @@ function qh(e, t, n) {
|
|
|
8498
8499
|
}
|
|
8499
8500
|
//#endregion
|
|
8500
8501
|
//#region package.json
|
|
8501
|
-
var Jh = "0.1.
|
|
8502
|
+
var Jh = "0.1.64", Yh;
|
|
8502
8503
|
async function Xh() {
|
|
8503
8504
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8504
8505
|
method: "HEAD",
|