morghulis 3.0.20 → 3.0.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/morghulis.es.js
CHANGED
@@ -11319,7 +11319,11 @@ function QA(t, r) {
|
|
11319
11319
|
delete_many: I,
|
11320
11320
|
load_view: w,
|
11321
11321
|
save_many: S
|
11322
|
-
} = ZA(i, {
|
11322
|
+
} = ZA(i, {
|
11323
|
+
onStop: () => {
|
11324
|
+
ll().then(() => x());
|
11325
|
+
}
|
11326
|
+
}, r.auth), x = () => {
|
11323
11327
|
const O = m.value.map((k) => k.id);
|
11324
11328
|
b(l.value).then((k) => {
|
11325
11329
|
s.value.current = k.results.length, s.value.total = k.total || 0, f.value = k.results, ll().then(() => {
|
@@ -11520,14 +11524,14 @@ const eC = /* @__PURE__ */ Ye({
|
|
11520
11524
|
remove: b
|
11521
11525
|
} = QA(i, r);
|
11522
11526
|
function T() {
|
11523
|
-
const w = nn.range(
|
11527
|
+
const w = nn.range(10).map((S) => ({ name: S }));
|
11524
11528
|
v(w);
|
11525
11529
|
}
|
11526
11530
|
function I(w, S) {
|
11527
11531
|
const x = d.value, C = x.map((q) => q.id), O = x.map((q) => q.sort), k = Math.min(w, S), N = Math.max(w, S), U = C.splice(S, 1)[0];
|
11528
11532
|
C.splice(w, 0, U);
|
11529
11533
|
const z = nn.range(k, N + 1).map((q) => ({ id: C[q], sort: O[q] }));
|
11530
|
-
z.length > 1 && v(z);
|
11534
|
+
console.log(z), z.length > 1 && v(z);
|
11531
11535
|
}
|
11532
11536
|
return (w, S) => {
|
11533
11537
|
const x = ue("el-progress"), C = ue("el-pagination"), O = ue("el-tag"), k = ue("m-table");
|
@@ -11539,7 +11543,8 @@ const eC = /* @__PURE__ */ Ye({
|
|
11539
11543
|
buttons: w.buttons,
|
11540
11544
|
columns: w.columns,
|
11541
11545
|
loading: V(g),
|
11542
|
-
"sortable-callback": I
|
11546
|
+
"sortable-callback": I,
|
11547
|
+
"row-key": "id"
|
11543
11548
|
}, {
|
11544
11549
|
header: K(() => [
|
11545
11550
|
Ve(w.$slots, "header", {}, () => [
|