@kengic/vue 0.5.22 → 0.5.23
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/kengic-vue.js +244 -220
- package/dist/src/components/KgTable/index.store.d.ts +16 -2
- package/package.json +83 -83
package/dist/kengic-vue.js
CHANGED
@@ -4585,16 +4585,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4585
4585
|
var I = ["th", "st", "nd", "rd"], O = M % 100;
|
4586
4586
|
return "[" + M + (I[(O - 20) % 10] || I[O] || I[0]) + "]";
|
4587
4587
|
} }, T = function(M, I, O) {
|
4588
|
-
var
|
4589
|
-
return !
|
4588
|
+
var N = String(M);
|
4589
|
+
return !N || N.length >= I ? M : "" + Array(I + 1 - N.length).join(O) + M;
|
4590
4590
|
}, E = { s: T, z: function(M) {
|
4591
|
-
var I = -M.utcOffset(), O = Math.abs(I),
|
4592
|
-
return (I <= 0 ? "+" : "-") + T(
|
4591
|
+
var I = -M.utcOffset(), O = Math.abs(I), N = Math.floor(O / 60), L = O % 60;
|
4592
|
+
return (I <= 0 ? "+" : "-") + T(N, 2, "0") + ":" + T(L, 2, "0");
|
4593
4593
|
}, m: function M(I, O) {
|
4594
4594
|
if (I.date() < O.date())
|
4595
4595
|
return -M(O, I);
|
4596
|
-
var
|
4597
|
-
return +(-(
|
4596
|
+
var N = 12 * (O.year() - I.year()) + (O.month() - I.month()), L = I.clone().add(N, g), G = O - L < 0, P = I.clone().add(N + (G ? -1 : 1), g);
|
4597
|
+
return +(-(N + (O - L) / (G ? L - P : P - L)) || 0);
|
4598
4598
|
}, a: function(M) {
|
4599
4599
|
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
4600
4600
|
}, p: function(M) {
|
@@ -4605,21 +4605,21 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4605
4605
|
k[w] = C;
|
4606
4606
|
var F = function(M) {
|
4607
4607
|
return M instanceof U;
|
4608
|
-
}, R = function M(I, O,
|
4608
|
+
}, R = function M(I, O, N) {
|
4609
4609
|
var L;
|
4610
4610
|
if (!I)
|
4611
4611
|
return w;
|
4612
4612
|
if (typeof I == "string") {
|
4613
4613
|
var G = I.toLowerCase();
|
4614
4614
|
k[G] && (L = G), O && (k[G] = O, L = G);
|
4615
|
-
var
|
4616
|
-
if (!L &&
|
4617
|
-
return M(
|
4615
|
+
var P = I.split("-");
|
4616
|
+
if (!L && P.length > 1)
|
4617
|
+
return M(P[0]);
|
4618
4618
|
} else {
|
4619
4619
|
var B = I.name;
|
4620
4620
|
k[B] = I, L = B;
|
4621
4621
|
}
|
4622
|
-
return !
|
4622
|
+
return !N && L && (w = L), L || !N && w;
|
4623
4623
|
}, $ = function(M, I) {
|
4624
4624
|
if (F(M))
|
4625
4625
|
return M.clone();
|
@@ -4635,8 +4635,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4635
4635
|
}
|
4636
4636
|
var I = M.prototype;
|
4637
4637
|
return I.parse = function(O) {
|
4638
|
-
this.$d = function(
|
4639
|
-
var L =
|
4638
|
+
this.$d = function(N) {
|
4639
|
+
var L = N.date, G = N.utc;
|
4640
4640
|
if (L === null)
|
4641
4641
|
return new Date(NaN);
|
4642
4642
|
if (D.u(L))
|
@@ -4644,10 +4644,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4644
4644
|
if (L instanceof Date)
|
4645
4645
|
return new Date(L);
|
4646
4646
|
if (typeof L == "string" && !/Z$/i.test(L)) {
|
4647
|
-
var
|
4648
|
-
if (
|
4649
|
-
var B =
|
4650
|
-
return G ? new Date(Date.UTC(
|
4647
|
+
var P = L.match(v);
|
4648
|
+
if (P) {
|
4649
|
+
var B = P[2] - 1 || 0, z = (P[7] || "0").substring(0, 3);
|
4650
|
+
return G ? new Date(Date.UTC(P[1], B, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, z)) : new Date(P[1], B, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, z);
|
4651
4651
|
}
|
4652
4652
|
}
|
4653
4653
|
return new Date(L);
|
@@ -4659,27 +4659,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4659
4659
|
return D;
|
4660
4660
|
}, I.isValid = function() {
|
4661
4661
|
return this.$d.toString() !== _;
|
4662
|
-
}, I.isSame = function(O,
|
4662
|
+
}, I.isSame = function(O, N) {
|
4663
4663
|
var L = $(O);
|
4664
|
-
return this.startOf(
|
4665
|
-
}, I.isAfter = function(O,
|
4666
|
-
return $(O) < this.startOf(
|
4667
|
-
}, I.isBefore = function(O,
|
4668
|
-
return this.endOf(
|
4669
|
-
}, I.$g = function(O,
|
4670
|
-
return D.u(O) ? this[
|
4664
|
+
return this.startOf(N) <= L && L <= this.endOf(N);
|
4665
|
+
}, I.isAfter = function(O, N) {
|
4666
|
+
return $(O) < this.startOf(N);
|
4667
|
+
}, I.isBefore = function(O, N) {
|
4668
|
+
return this.endOf(N) < $(O);
|
4669
|
+
}, I.$g = function(O, N, L) {
|
4670
|
+
return D.u(O) ? this[N] : this.set(L, O);
|
4671
4671
|
}, I.unix = function() {
|
4672
4672
|
return Math.floor(this.valueOf() / 1e3);
|
4673
4673
|
}, I.valueOf = function() {
|
4674
4674
|
return this.$d.getTime();
|
4675
|
-
}, I.startOf = function(O,
|
4676
|
-
var L = this, G = !!D.u(
|
4677
|
-
var
|
4678
|
-
return G ?
|
4675
|
+
}, I.startOf = function(O, N) {
|
4676
|
+
var L = this, G = !!D.u(N) || N, P = D.p(O), B = function(ae, V) {
|
4677
|
+
var x = D.w(L.$u ? Date.UTC(L.$y, V, ae) : new Date(L.$y, V, ae), L);
|
4678
|
+
return G ? x : x.endOf(u);
|
4679
4679
|
}, z = function(ae, V) {
|
4680
4680
|
return D.w(L.toDate()[ae].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), L);
|
4681
4681
|
}, Y = this.$W, X = this.$M, re = this.$D, ee = "set" + (this.$u ? "UTC" : "");
|
4682
|
-
switch (
|
4682
|
+
switch (P) {
|
4683
4683
|
case m:
|
4684
4684
|
return G ? B(1, 0) : B(31, 11);
|
4685
4685
|
case g:
|
@@ -4701,65 +4701,65 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4701
4701
|
}
|
4702
4702
|
}, I.endOf = function(O) {
|
4703
4703
|
return this.startOf(O, !1);
|
4704
|
-
}, I.$set = function(O,
|
4705
|
-
var L, G = D.p(O),
|
4704
|
+
}, I.$set = function(O, N) {
|
4705
|
+
var L, G = D.p(O), P = "set" + (this.$u ? "UTC" : ""), B = (L = {}, L[u] = P + "Date", L[b] = P + "Date", L[g] = P + "Month", L[m] = P + "FullYear", L[l] = P + "Hours", L[i] = P + "Minutes", L[s] = P + "Seconds", L[o] = P + "Milliseconds", L)[G], z = G === u ? this.$D + (N - this.$W) : N;
|
4706
4706
|
if (G === g || G === m) {
|
4707
4707
|
var Y = this.clone().set(b, 1);
|
4708
4708
|
Y.$d[B](z), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
|
4709
4709
|
} else
|
4710
4710
|
B && this.$d[B](z);
|
4711
4711
|
return this.init(), this;
|
4712
|
-
}, I.set = function(O,
|
4713
|
-
return this.clone().$set(O,
|
4712
|
+
}, I.set = function(O, N) {
|
4713
|
+
return this.clone().$set(O, N);
|
4714
4714
|
}, I.get = function(O) {
|
4715
4715
|
return this[D.p(O)]();
|
4716
|
-
}, I.add = function(O,
|
4716
|
+
}, I.add = function(O, N) {
|
4717
4717
|
var L, G = this;
|
4718
4718
|
O = Number(O);
|
4719
|
-
var
|
4719
|
+
var P = D.p(N), B = function(X) {
|
4720
4720
|
var re = $(G);
|
4721
4721
|
return D.w(re.date(re.date() + Math.round(X * O)), G);
|
4722
4722
|
};
|
4723
|
-
if (
|
4723
|
+
if (P === g)
|
4724
4724
|
return this.set(g, this.$M + O);
|
4725
|
-
if (
|
4725
|
+
if (P === m)
|
4726
4726
|
return this.set(m, this.$y + O);
|
4727
|
-
if (
|
4727
|
+
if (P === u)
|
4728
4728
|
return B(1);
|
4729
|
-
if (
|
4729
|
+
if (P === c)
|
4730
4730
|
return B(7);
|
4731
|
-
var z = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[
|
4731
|
+
var z = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[P] || 1, Y = this.$d.getTime() + O * z;
|
4732
4732
|
return D.w(Y, this);
|
4733
|
-
}, I.subtract = function(O,
|
4734
|
-
return this.add(-1 * O,
|
4733
|
+
}, I.subtract = function(O, N) {
|
4734
|
+
return this.add(-1 * O, N);
|
4735
4735
|
}, I.format = function(O) {
|
4736
|
-
var
|
4736
|
+
var N = this, L = this.$locale();
|
4737
4737
|
if (!this.isValid())
|
4738
4738
|
return L.invalidDate || _;
|
4739
|
-
var G = O || "YYYY-MM-DDTHH:mm:ssZ",
|
4740
|
-
return V && (V[
|
4739
|
+
var G = O || "YYYY-MM-DDTHH:mm:ssZ", P = D.z(this), B = this.$H, z = this.$m, Y = this.$M, X = L.weekdays, re = L.months, ee = function(V, x, W, q) {
|
4740
|
+
return V && (V[x] || V(N, G)) || W[x].slice(0, q);
|
4741
4741
|
}, ue = function(V) {
|
4742
4742
|
return D.s(B % 12 || 12, V, "0");
|
4743
|
-
}, ce = L.meridiem || function(V,
|
4743
|
+
}, ce = L.meridiem || function(V, x, W) {
|
4744
4744
|
var q = V < 12 ? "AM" : "PM";
|
4745
4745
|
return W ? q.toLowerCase() : q;
|
4746
|
-
}, ae = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: D.s(Y + 1, 2, "0"), MMM: ee(L.monthsShort, Y, re, 3), MMMM: ee(re, Y), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: ee(L.weekdaysMin, this.$W, X, 2), ddd: ee(L.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(B), HH: D.s(B, 2, "0"), h: ue(1), hh: ue(2), a: ce(B, z, !0), A: ce(B, z, !1), m: String(z), mm: D.s(z, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z:
|
4747
|
-
return G.replace(y, function(V,
|
4748
|
-
return
|
4746
|
+
}, ae = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: D.s(Y + 1, 2, "0"), MMM: ee(L.monthsShort, Y, re, 3), MMMM: ee(re, Y), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: ee(L.weekdaysMin, this.$W, X, 2), ddd: ee(L.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(B), HH: D.s(B, 2, "0"), h: ue(1), hh: ue(2), a: ce(B, z, !0), A: ce(B, z, !1), m: String(z), mm: D.s(z, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: P };
|
4747
|
+
return G.replace(y, function(V, x) {
|
4748
|
+
return x || ae[V] || P.replace(":", "");
|
4749
4749
|
});
|
4750
4750
|
}, I.utcOffset = function() {
|
4751
4751
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4752
|
-
}, I.diff = function(O,
|
4753
|
-
var G,
|
4754
|
-
return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y - z) / 6048e5, G[u] = (Y - z) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[
|
4752
|
+
}, I.diff = function(O, N, L) {
|
4753
|
+
var G, P = D.p(N), B = $(O), z = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, X = D.m(this, B);
|
4754
|
+
return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y - z) / 6048e5, G[u] = (Y - z) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[P] || Y, L ? X : D.a(X);
|
4755
4755
|
}, I.daysInMonth = function() {
|
4756
4756
|
return this.endOf(g).$D;
|
4757
4757
|
}, I.$locale = function() {
|
4758
4758
|
return k[this.$L];
|
4759
|
-
}, I.locale = function(O,
|
4759
|
+
}, I.locale = function(O, N) {
|
4760
4760
|
if (!O)
|
4761
4761
|
return this.$L;
|
4762
|
-
var L = this.clone(), G = R(O,
|
4762
|
+
var L = this.clone(), G = R(O, N, !0);
|
4763
4763
|
return G && (L.$L = G), L;
|
4764
4764
|
}, I.clone = function() {
|
4765
4765
|
return D.w(this.$d, this);
|
@@ -6177,11 +6177,11 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6177
6177
|
return function() {
|
6178
6178
|
setActivePinia(n);
|
6179
6179
|
const D = Array.from(arguments), U = [], A = [];
|
6180
|
-
function M(
|
6181
|
-
U.push(
|
6180
|
+
function M(N) {
|
6181
|
+
U.push(N);
|
6182
6182
|
}
|
6183
|
-
function I(
|
6184
|
-
A.push(
|
6183
|
+
function I(N) {
|
6184
|
+
A.push(N);
|
6185
6185
|
}
|
6186
6186
|
triggerSubscriptions(p, {
|
6187
6187
|
args: D,
|
@@ -6193,10 +6193,10 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6193
6193
|
let O;
|
6194
6194
|
try {
|
6195
6195
|
O = $.apply(this && this.$id === e ? this : k, D);
|
6196
|
-
} catch (
|
6197
|
-
throw triggerSubscriptions(A,
|
6196
|
+
} catch (N) {
|
6197
|
+
throw triggerSubscriptions(A, N), N;
|
6198
6198
|
}
|
6199
|
-
return O instanceof Promise ? O.then((
|
6199
|
+
return O instanceof Promise ? O.then((N) => (triggerSubscriptions(U, N), N)).catch((N) => (triggerSubscriptions(A, N), Promise.reject(N))) : (triggerSubscriptions(U, O), O);
|
6200
6200
|
};
|
6201
6201
|
}
|
6202
6202
|
const E = /* @__PURE__ */ markRaw({
|
@@ -7347,7 +7347,7 @@ const KgFormItem = defineComponent({
|
|
7347
7347
|
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), g = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), m = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
|
7348
7348
|
rules: b
|
7349
7349
|
} = _useRules(e), _ = computed(() => {
|
7350
|
-
var M, I, O,
|
7350
|
+
var M, I, O, N, L;
|
7351
7351
|
if (a.isRetrievingVar.value)
|
7352
7352
|
return !0;
|
7353
7353
|
let A = !1;
|
@@ -7367,7 +7367,7 @@ const KgFormItem = defineComponent({
|
|
7367
7367
|
A = ((O = m.value) == null ? void 0 : O.upt_ena_flg) === 0;
|
7368
7368
|
break;
|
7369
7369
|
case a.isCopying.value:
|
7370
|
-
A = ((
|
7370
|
+
A = ((N = m.value) == null ? void 0 : N.cpy_ena_flg) === 0;
|
7371
7371
|
break;
|
7372
7372
|
case a.isDeleting.value:
|
7373
7373
|
A = ((L = m.value) == null ? void 0 : L.del_ena_flg) === 0;
|
@@ -7377,7 +7377,7 @@ const KgFormItem = defineComponent({
|
|
7377
7377
|
}
|
7378
7378
|
return A;
|
7379
7379
|
}), v = computed(() => {
|
7380
|
-
var M, I, O,
|
7380
|
+
var M, I, O, N;
|
7381
7381
|
let A = " ";
|
7382
7382
|
if (e.kgPlaceholder)
|
7383
7383
|
A = e.kgPlaceholder;
|
@@ -7387,12 +7387,12 @@ const KgFormItem = defineComponent({
|
|
7387
7387
|
A = n.t((I = (M = p.value) == null ? void 0 : M.placeholder) != null ? I : " ");
|
7388
7388
|
break;
|
7389
7389
|
case KG_FORM_CONTEXT.SUBMIT:
|
7390
|
-
A = n.t((
|
7390
|
+
A = n.t((N = (O = m.value) == null ? void 0 : O.placeholder) != null ? N : " ");
|
7391
7391
|
break;
|
7392
7392
|
}
|
7393
7393
|
return A;
|
7394
7394
|
}), y = computed(() => {
|
7395
|
-
var M, I, O,
|
7395
|
+
var M, I, O, N, L, G, P, B, z, Y;
|
7396
7396
|
let A = 6;
|
7397
7397
|
if (e.kgSpan !== void 0)
|
7398
7398
|
A = e.kgSpan;
|
@@ -7404,13 +7404,13 @@ const KgFormItem = defineComponent({
|
|
7404
7404
|
case KG_FORM_CONTEXT.SUBMIT:
|
7405
7405
|
switch (!0) {
|
7406
7406
|
case a.isCreating.value:
|
7407
|
-
A = (
|
7407
|
+
A = (N = (O = m.value) == null ? void 0 : O.crt_width) != null ? N : 6;
|
7408
7408
|
break;
|
7409
7409
|
case a.isUpdating.value:
|
7410
7410
|
A = (G = (L = m.value) == null ? void 0 : L.upt_width) != null ? G : 6;
|
7411
7411
|
break;
|
7412
7412
|
case a.isCopying.value:
|
7413
|
-
A = (B = (
|
7413
|
+
A = (B = (P = m.value) == null ? void 0 : P.cpy_width) != null ? B : 6;
|
7414
7414
|
break;
|
7415
7415
|
case a.isDeleting.value:
|
7416
7416
|
A = (Y = (z = m.value) == null ? void 0 : z.del_width) != null ? Y : 6;
|
@@ -7419,18 +7419,18 @@ const KgFormItem = defineComponent({
|
|
7419
7419
|
}
|
7420
7420
|
return Math.min(24, Math.max(1, A));
|
7421
7421
|
}), C = computed(() => {
|
7422
|
-
var O,
|
7422
|
+
var O, N;
|
7423
7423
|
const A = get(F.value, "$el.parentElement");
|
7424
7424
|
if (A && !((O = A.classList) != null && O.contains("ant-row")))
|
7425
7425
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7426
7426
|
let M = {};
|
7427
|
-
const I = Math.abs(Number.parseInt((
|
7427
|
+
const I = Math.abs(Number.parseInt((N = get(F.value, "$el.parentElement.style.marginLeft")) != null ? N : "0px"));
|
7428
7428
|
return Number.isNaN(I) || (M = {
|
7429
7429
|
paddingLeft: `${I}px !important`,
|
7430
7430
|
paddingRight: `${I}px !important`
|
7431
7431
|
}), M;
|
7432
7432
|
}), T = computed(() => {
|
7433
|
-
var M, I, O,
|
7433
|
+
var M, I, O, N;
|
7434
7434
|
let A = "kg-form-item";
|
7435
7435
|
switch (c.value && (A += " kg-form-item-lookup"), e.kgContext) {
|
7436
7436
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -7444,7 +7444,7 @@ const KgFormItem = defineComponent({
|
|
7444
7444
|
switch (!0) {
|
7445
7445
|
case (i.value && ((I = m.value) == null ? void 0 : I.crt_vis_flg) === 0):
|
7446
7446
|
case (l.value && ((O = m.value) == null ? void 0 : O.upt_vis_flg) === 0):
|
7447
|
-
case (u.value && ((
|
7447
|
+
case (u.value && ((N = m.value) == null ? void 0 : N.cpy_vis_flg) === 0):
|
7448
7448
|
A += " kg-form-item--invisible";
|
7449
7449
|
break;
|
7450
7450
|
}
|
@@ -9287,10 +9287,10 @@ const getProps$p = () => ({
|
|
9287
9287
|
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
|
9288
9288
|
_useFormModel();
|
9289
9289
|
const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), m = computed(() => p.value && U.value.length === 0 && A.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), _ = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), y = computed(() => a.store.getVarButtonDelete(a.formID)), C = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), $ = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), U = computed(() => {
|
9290
|
-
var
|
9290
|
+
var K, H, Q;
|
9291
9291
|
switch (!0) {
|
9292
9292
|
case u.value:
|
9293
|
-
return (
|
9293
|
+
return (K = E.value) != null ? K : [];
|
9294
9294
|
case c.value:
|
9295
9295
|
return (H = k.value) != null ? H : [];
|
9296
9296
|
case g.value:
|
@@ -9300,10 +9300,10 @@ const getProps$p = () => ({
|
|
9300
9300
|
}
|
9301
9301
|
return [];
|
9302
9302
|
}), A = computed(() => {
|
9303
|
-
var
|
9303
|
+
var K, H, Q, Z;
|
9304
9304
|
switch (!0) {
|
9305
9305
|
case u.value:
|
9306
|
-
return (
|
9306
|
+
return (K = w.value) != null ? K : [];
|
9307
9307
|
case c.value:
|
9308
9308
|
return (H = F.value) != null ? H : [];
|
9309
9309
|
case g.value:
|
@@ -9312,28 +9312,28 @@ const getProps$p = () => ({
|
|
9312
9312
|
return (Z = D.value) != null ? Z : [];
|
9313
9313
|
}
|
9314
9314
|
return [];
|
9315
|
-
}), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), I = computed(() => M.value || C.value), O = computed(() => C.value),
|
9315
|
+
}), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), I = computed(() => M.value || C.value), O = computed(() => C.value), N = ref({
|
9316
9316
|
kgWidth: 0
|
9317
9317
|
}), L = computed(() => {
|
9318
|
-
var
|
9319
|
-
return !!(m.value || ae.isFullscreen || ((
|
9318
|
+
var K;
|
9319
|
+
return !!(m.value || ae.isFullscreen || ((K = T.value) == null ? void 0 : K.resizable_flg) === 0);
|
9320
9320
|
}), G = computed(() => {
|
9321
|
-
var
|
9322
|
-
return m.value ? 398 : (H = (
|
9323
|
-
}),
|
9324
|
-
var
|
9325
|
-
return m.value ? 398 : (H = (
|
9326
|
-
}), B = computed(() => m.value ? 398 :
|
9321
|
+
var K, H;
|
9322
|
+
return m.value ? 398 : (H = (K = T.value) == null ? void 0 : K.min_width) != null ? H : DEFAULT_MIN_WIDTH;
|
9323
|
+
}), P = computed(() => {
|
9324
|
+
var K, H;
|
9325
|
+
return m.value ? 398 : (H = (K = T.value) == null ? void 0 : K.max_width) != null ? H : DEFAULT_MAX_WIDTH;
|
9326
|
+
}), B = computed(() => m.value ? 398 : N.value.kgWidth), z = ref(null), Y = ref({}), X = ref(null);
|
9327
9327
|
_useResizeObserver$1(X);
|
9328
|
-
const re = _useTitle(), ee = computed(() => m.value ? 400 :
|
9328
|
+
const re = _useTitle(), ee = computed(() => m.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), ue = computed(() => ee.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), ce = computed(() => {
|
9329
9329
|
var H, Q;
|
9330
|
-
let
|
9331
|
-
return ae.isFullscreen && (
|
9330
|
+
let K = "kg-submit";
|
9331
|
+
return ae.isFullscreen && (K += " kg-submit--fullscreen"), ((H = T.value) == null ? void 0 : H.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
|
9332
9332
|
}), ae = reactive({
|
9333
9333
|
isFullscreen: !1
|
9334
9334
|
}), V = computed(() => {
|
9335
|
-
var
|
9336
|
-
switch ((
|
9335
|
+
var K, H, Q, Z;
|
9336
|
+
switch ((K = T.value) == null ? void 0 : K.layout) {
|
9337
9337
|
case "horizontal":
|
9338
9338
|
switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
|
9339
9339
|
case KG_WIDTH_UNIT.SPAN:
|
@@ -9350,9 +9350,9 @@ const getProps$p = () => ({
|
|
9350
9350
|
default:
|
9351
9351
|
return;
|
9352
9352
|
}
|
9353
|
-
}),
|
9354
|
-
var
|
9355
|
-
switch ((
|
9353
|
+
}), x = computed(() => {
|
9354
|
+
var K, H, Q;
|
9355
|
+
switch ((K = T.value) == null ? void 0 : K.layout) {
|
9356
9356
|
case "horizontal":
|
9357
9357
|
switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
|
9358
9358
|
case KG_WIDTH_UNIT.SPAN:
|
@@ -9366,17 +9366,17 @@ const getProps$p = () => ({
|
|
9366
9366
|
return;
|
9367
9367
|
}
|
9368
9368
|
});
|
9369
|
-
watch(ue, (
|
9370
|
-
|
9369
|
+
watch(ue, (K, H) => {
|
9370
|
+
K === !0 && W(), H === !0 && K === !1 && q();
|
9371
9371
|
}, {
|
9372
9372
|
immediate: !0
|
9373
|
-
}), watch(T, (
|
9374
|
-
|
9373
|
+
}), watch(T, (K) => {
|
9374
|
+
K != null && K.dft_width && (N.value.kgWidth = K.dft_width);
|
9375
9375
|
}, {
|
9376
9376
|
immediate: !0
|
9377
9377
|
});
|
9378
9378
|
function W() {
|
9379
|
-
var
|
9379
|
+
var K;
|
9380
9380
|
s.store.emit(a.formID, "open", {
|
9381
9381
|
isCreating: u.value,
|
9382
9382
|
isUpdating: c.value,
|
@@ -9384,11 +9384,11 @@ const getProps$p = () => ({
|
|
9384
9384
|
isDeleting: p.value,
|
9385
9385
|
row: o.selectedRow.value,
|
9386
9386
|
model: s.model
|
9387
|
-
}), ((
|
9387
|
+
}), ((K = T.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && !m.value && (ae.isFullscreen = !0);
|
9388
9388
|
}
|
9389
9389
|
function q() {
|
9390
|
-
var
|
9391
|
-
|
9390
|
+
var K;
|
9391
|
+
N.value.kgWidth = ((K = T.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, ae.isFullscreen = !1, s.store.emit(a.formID, "close");
|
9392
9392
|
}
|
9393
9393
|
function te() {
|
9394
9394
|
switch (!0) {
|
@@ -9407,7 +9407,7 @@ const getProps$p = () => ({
|
|
9407
9407
|
}
|
9408
9408
|
}
|
9409
9409
|
async function J() {
|
9410
|
-
var
|
9410
|
+
var K, H;
|
9411
9411
|
try {
|
9412
9412
|
if (await s.store.emit(a.formID, "beforeOk", {
|
9413
9413
|
rules: Y,
|
@@ -9415,7 +9415,7 @@ const getProps$p = () => ({
|
|
9415
9415
|
}))
|
9416
9416
|
return;
|
9417
9417
|
try {
|
9418
|
-
await ((
|
9418
|
+
await ((K = z.value) == null ? void 0 : K.validate());
|
9419
9419
|
} catch (Z) {
|
9420
9420
|
KgUtil.throwIfNotFormError(Z);
|
9421
9421
|
}
|
@@ -9439,8 +9439,8 @@ const getProps$p = () => ({
|
|
9439
9439
|
}
|
9440
9440
|
async function de() {
|
9441
9441
|
var H, Q, Z, ne, oe, se, ie;
|
9442
|
-
const
|
9443
|
-
if (!
|
9442
|
+
const K = (H = b.value) == null ? void 0 : H.cmd;
|
9443
|
+
if (!K) {
|
9444
9444
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9445
9445
|
VarButton: b.value
|
9446
9446
|
});
|
@@ -9450,7 +9450,7 @@ const getProps$p = () => ({
|
|
9450
9450
|
try {
|
9451
9451
|
await httpClient().request({
|
9452
9452
|
method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9453
|
-
url:
|
9453
|
+
url: K,
|
9454
9454
|
params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((oe = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""), a.formID, r),
|
9455
9455
|
data: KgUtil.parseParams(toRaw(s.model.value), a.formID, r)
|
9456
9456
|
}), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
|
@@ -9462,8 +9462,8 @@ const getProps$p = () => ({
|
|
9462
9462
|
}
|
9463
9463
|
async function fe() {
|
9464
9464
|
var H, Q, Z, ne, oe, se, ie;
|
9465
|
-
const
|
9466
|
-
if (!
|
9465
|
+
const K = (H = _.value) == null ? void 0 : H.cmd;
|
9466
|
+
if (!K) {
|
9467
9467
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9468
9468
|
VarButton: _.value
|
9469
9469
|
});
|
@@ -9472,7 +9472,7 @@ const getProps$p = () => ({
|
|
9472
9472
|
try {
|
9473
9473
|
a.store.setIsUpdatingRequesting(a.formID, !0), await httpClient().request({
|
9474
9474
|
method: (Z = (Q = _.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9475
|
-
url:
|
9475
|
+
url: K,
|
9476
9476
|
params: KgVarUtil.parseCommandParameter((oe = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""),
|
9477
9477
|
data: toRaw(s.model.value)
|
9478
9478
|
}), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se);
|
@@ -9484,8 +9484,8 @@ const getProps$p = () => ({
|
|
9484
9484
|
}
|
9485
9485
|
async function _e() {
|
9486
9486
|
var H, Q, Z, ne, oe, se, ie;
|
9487
|
-
const
|
9488
|
-
if (!
|
9487
|
+
const K = (H = v.value) == null ? void 0 : H.cmd;
|
9488
|
+
if (!K) {
|
9489
9489
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9490
9490
|
VarButton: v.value
|
9491
9491
|
});
|
@@ -9496,7 +9496,7 @@ const getProps$p = () => ({
|
|
9496
9496
|
const le = toRaw(s.model.value);
|
9497
9497
|
delete le.id, await httpClient().request({
|
9498
9498
|
method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9499
|
-
url:
|
9499
|
+
url: K,
|
9500
9500
|
params: KgVarUtil.parseCommandParameter((oe = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""),
|
9501
9501
|
data: toRaw(s.model.value)
|
9502
9502
|
}), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
|
@@ -9508,8 +9508,8 @@ const getProps$p = () => ({
|
|
9508
9508
|
}
|
9509
9509
|
async function ve() {
|
9510
9510
|
var H, Q, Z, ne, oe, se, ie;
|
9511
|
-
const
|
9512
|
-
if (!
|
9511
|
+
const K = (H = y.value) == null ? void 0 : H.cmd;
|
9512
|
+
if (!K) {
|
9513
9513
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9514
9514
|
VarButton: y.value
|
9515
9515
|
});
|
@@ -9518,7 +9518,7 @@ const getProps$p = () => ({
|
|
9518
9518
|
try {
|
9519
9519
|
a.store.setIsDeletingRequesting(a.formID, !0), await httpClient().request({
|
9520
9520
|
method: (Z = (Q = y.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
|
9521
|
-
url:
|
9521
|
+
url: K,
|
9522
9522
|
params: {
|
9523
9523
|
ids: (oe = (ne = o.selectedRows.value) == null ? void 0 : ne.map((le) => {
|
9524
9524
|
var ge, me, he;
|
@@ -9534,13 +9534,13 @@ const getProps$p = () => ({
|
|
9534
9534
|
a.store.setIsDeletingRequesting(a.formID, !1);
|
9535
9535
|
}
|
9536
9536
|
}
|
9537
|
-
function pe(
|
9537
|
+
function pe(K) {
|
9538
9538
|
var Q, Z;
|
9539
|
-
const H = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[
|
9539
|
+
const H = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
|
9540
9540
|
return isFunction$2(H) ? createVNode(KgForm.Item, {
|
9541
|
-
kgVarName:
|
9541
|
+
kgVarName: K.var_nam,
|
9542
9542
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9543
|
-
kgRules: Y.value[
|
9543
|
+
kgRules: Y.value[K.var_nam],
|
9544
9544
|
onKgSubmit: J
|
9545
9545
|
}, {
|
9546
9546
|
control: ({
|
@@ -9559,22 +9559,22 @@ const getProps$p = () => ({
|
|
9559
9559
|
varSubmitField: ge
|
9560
9560
|
})
|
9561
9561
|
}) : createVNode(KgForm.Item, {
|
9562
|
-
kgVarName:
|
9562
|
+
kgVarName: K.var_nam,
|
9563
9563
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9564
|
-
kgRules: Y.value[
|
9564
|
+
kgRules: Y.value[K.var_nam],
|
9565
9565
|
onKgSubmit: J
|
9566
9566
|
}, null);
|
9567
9567
|
}
|
9568
9568
|
function be() {
|
9569
9569
|
var Q;
|
9570
|
-
let
|
9570
|
+
let K, H;
|
9571
9571
|
return createVNode(KgResizable, {
|
9572
9572
|
kgType: ((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
9573
9573
|
kgMinWidth: G.value,
|
9574
|
-
kgMaxWidth:
|
9574
|
+
kgMaxWidth: P.value,
|
9575
9575
|
kgWidth: B.value,
|
9576
9576
|
kgDisabled: L.value,
|
9577
|
-
"onUpdate:kgWidth": (Z) =>
|
9577
|
+
"onUpdate:kgWidth": (Z) => N.value.kgWidth = Z
|
9578
9578
|
}, {
|
9579
9579
|
default: () => [createVNode(Spin, {
|
9580
9580
|
spinning: C.value
|
@@ -9586,14 +9586,14 @@ const getProps$p = () => ({
|
|
9586
9586
|
model: s.model.value,
|
9587
9587
|
layout: (ne = (Z = T.value) == null ? void 0 : Z.layout) != null ? ne : "vertical",
|
9588
9588
|
labelCol: V.value,
|
9589
|
-
wrapperCol:
|
9589
|
+
wrapperCol: x.value
|
9590
9590
|
}, {
|
9591
9591
|
default: () => [createVNode("div", {
|
9592
9592
|
ref: X
|
9593
9593
|
}, [U.value.length > 0 && createVNode(Row, {
|
9594
9594
|
gutter: 12
|
9595
|
-
}, _isSlot$7(
|
9596
|
-
default: () => [
|
9595
|
+
}, _isSlot$7(K = U.value.map(pe)) ? K : {
|
9596
|
+
default: () => [K]
|
9597
9597
|
}), U.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
|
9598
9598
|
gutter: 12
|
9599
9599
|
}, _isSlot$7(H = A.value.map(pe)) ? H : {
|
@@ -9607,14 +9607,14 @@ const getProps$p = () => ({
|
|
9607
9607
|
});
|
9608
9608
|
}
|
9609
9609
|
function ye() {
|
9610
|
-
let
|
9610
|
+
let K, H;
|
9611
9611
|
return createVNode("div", null, [createVNode(Button, {
|
9612
9612
|
type: "primary",
|
9613
9613
|
ghost: !I.value,
|
9614
9614
|
disabled: I.value,
|
9615
9615
|
onClick: te
|
9616
|
-
}, _isSlot$7(
|
9617
|
-
default: () => [
|
9616
|
+
}, _isSlot$7(K = n.t("kg.cancel")) ? K : {
|
9617
|
+
default: () => [K]
|
9618
9618
|
}), createVNode(Button, {
|
9619
9619
|
type: "primary",
|
9620
9620
|
disabled: O.value,
|
@@ -9633,7 +9633,7 @@ const getProps$p = () => ({
|
|
9633
9633
|
function Ce() {
|
9634
9634
|
return createVNode(KgSubmitHeader, {
|
9635
9635
|
isFullscreen: ae.isFullscreen,
|
9636
|
-
"onUpdate:isFullscreen": (
|
9636
|
+
"onUpdate:isFullscreen": (K) => ae.isFullscreen = K,
|
9637
9637
|
kgShowFullscreenButton: !m.value,
|
9638
9638
|
kgShowConfigButton: !m.value && e.kgShowConfigButton,
|
9639
9639
|
onKgCancel: te
|
@@ -10320,6 +10320,8 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
|
|
10320
10320
|
setSelectedRows(e, t) {
|
10321
10321
|
this.selectedRowsMap.set(e, unref(toRaw(t)));
|
10322
10322
|
},
|
10323
|
+
setSelecte(e, t, r) {
|
10324
|
+
},
|
10323
10325
|
setIsRetrieved(e, t) {
|
10324
10326
|
this.isRetrievedMap.set(e, unref(t));
|
10325
10327
|
},
|
@@ -10458,6 +10460,25 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10458
10460
|
G(V);
|
10459
10461
|
}), i.onReset(() => {
|
10460
10462
|
G(!0);
|
10463
|
+
}), u.store.$onAction(async ({
|
10464
|
+
name: V,
|
10465
|
+
args: x
|
10466
|
+
}) => {
|
10467
|
+
switch (V) {
|
10468
|
+
case "setSelecte":
|
10469
|
+
if (x[0] === s.formID) {
|
10470
|
+
const W = x[1], q = x[2];
|
10471
|
+
switch (!0) {
|
10472
|
+
case (q && !M.value.includes(W[w.value])):
|
10473
|
+
P([...M.value, W[w.value]]);
|
10474
|
+
break;
|
10475
|
+
case (!q && M.value.includes(W[w.value])):
|
10476
|
+
P(without$1(M.value, W[w.value]));
|
10477
|
+
break;
|
10478
|
+
}
|
10479
|
+
}
|
10480
|
+
break;
|
10481
|
+
}
|
10461
10482
|
});
|
10462
10483
|
const c = ref(!1), g = ref([]), {
|
10463
10484
|
columns: p,
|
@@ -10479,24 +10500,24 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10479
10500
|
var V;
|
10480
10501
|
return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_right_flg) !== 0;
|
10481
10502
|
}), w = computed(() => {
|
10482
|
-
var V,
|
10483
|
-
return (
|
10503
|
+
var V, x;
|
10504
|
+
return (x = (V = s.varGridConfig.value) == null ? void 0 : V.id_clm) != null ? x : "id";
|
10484
10505
|
}), k = computed(() => {
|
10485
|
-
var V,
|
10486
|
-
return JSON.parse((
|
10506
|
+
var V, x;
|
10507
|
+
return JSON.parse((x = (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opts) != null ? x : "[]");
|
10487
10508
|
}), F = computed(() => {
|
10488
10509
|
var V;
|
10489
10510
|
return (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opt;
|
10490
10511
|
}), R = computed(() => {
|
10491
|
-
var V,
|
10492
|
-
return (
|
10512
|
+
var V, x;
|
10513
|
+
return (x = (V = v.value) == null ? void 0 : V.cmd) != null ? x : null;
|
10493
10514
|
}), $ = computed(() => {
|
10494
|
-
var
|
10515
|
+
var x, W, q, te, J, de, fe;
|
10495
10516
|
let V = {
|
10496
10517
|
pageNo: I.pageIndex,
|
10497
10518
|
pageSize: I.pageSize,
|
10498
10519
|
...O,
|
10499
|
-
...(W = (
|
10520
|
+
...(W = (x = i.model) == null ? void 0 : x.value) != null ? W : {}
|
10500
10521
|
};
|
10501
10522
|
return v.value && (V = {
|
10502
10523
|
...V,
|
@@ -10514,8 +10535,8 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10514
10535
|
hideSelectAll: !y.value,
|
10515
10536
|
selectedRowKeys: M,
|
10516
10537
|
preserveSelectedRowKeys: !1,
|
10517
|
-
onSelect: (
|
10518
|
-
onChange: (
|
10538
|
+
onSelect: (x) => B(x),
|
10539
|
+
onChange: (x) => y.value && P(x)
|
10519
10540
|
};
|
10520
10541
|
}), U = computed(() => {
|
10521
10542
|
let V = "kg-table";
|
@@ -10527,40 +10548,40 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10527
10548
|
}), O = reactive({
|
10528
10549
|
column: void 0,
|
10529
10550
|
order: void 0
|
10530
|
-
}),
|
10531
|
-
V && (setTimeout(() =>
|
10551
|
+
}), N = watch(F, (V) => {
|
10552
|
+
V && (setTimeout(() => N()), I.pageSize = V), c.value = !0;
|
10532
10553
|
});
|
10533
10554
|
watch(k, (V) => {
|
10534
10555
|
V.length > 0 && !V.includes(I.pageSize) && (I.pageSize = F.value);
|
10535
|
-
}), watch([R, C, i.isReady], ([V,
|
10536
|
-
V &&
|
10556
|
+
}), watch([R, C, i.isReady], ([V, x, W]) => {
|
10557
|
+
V && x && W && !u.store.getIsRetrieved(s.formID) && G(!0);
|
10537
10558
|
}, {
|
10538
10559
|
immediate: !0
|
10539
10560
|
}), onUnmounted(() => {
|
10540
10561
|
u.store.dispose(s.formID);
|
10541
10562
|
});
|
10542
|
-
function L(V,
|
10563
|
+
function L(V, x) {
|
10543
10564
|
if (!!D.value) {
|
10544
|
-
if (!
|
10565
|
+
if (!x) {
|
10545
10566
|
M.value = [], u.store.setSelectedRows(s.formID, []);
|
10546
10567
|
return;
|
10547
10568
|
}
|
10548
10569
|
switch (V == null ? void 0 : V.detail) {
|
10549
10570
|
case 1:
|
10550
|
-
M.value = [
|
10571
|
+
M.value = [x[w.value]], u.store.setSelectedRows(s.formID, M.value.map((W) => {
|
10551
10572
|
var q;
|
10552
10573
|
return (q = A.value) == null ? void 0 : q.find((te) => te[w.value] === W);
|
10553
10574
|
}).filter((W) => !!W));
|
10554
10575
|
break;
|
10555
10576
|
case 2:
|
10556
|
-
u.store.emit(s.formID, "rowDoubleClick",
|
10577
|
+
u.store.emit(s.formID, "rowDoubleClick", x);
|
10557
10578
|
break;
|
10558
10579
|
}
|
10559
10580
|
}
|
10560
10581
|
}
|
10561
10582
|
function G(V = !1) {
|
10562
|
-
const
|
10563
|
-
q && (setTimeout(() =>
|
10583
|
+
const x = watch(c, (q) => {
|
10584
|
+
q && (setTimeout(() => x()), W());
|
10564
10585
|
}, {
|
10565
10586
|
immediate: !0
|
10566
10587
|
});
|
@@ -10592,7 +10613,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10592
10613
|
A.value = (q = J.records) != null ? q : [], I.total = (te = J.total) != null ? te : 0;
|
10593
10614
|
break;
|
10594
10615
|
}
|
10595
|
-
u.store.emit(s.formID, "retrieve",
|
10616
|
+
u.store.emit(s.formID, "retrieve", {
|
10617
|
+
page: J,
|
10618
|
+
datas: A
|
10619
|
+
}), L(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
|
10596
10620
|
} catch (J) {
|
10597
10621
|
throw J;
|
10598
10622
|
} finally {
|
@@ -10600,19 +10624,19 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10600
10624
|
}
|
10601
10625
|
}
|
10602
10626
|
}
|
10603
|
-
function
|
10604
|
-
M.value = V, u.store.setSelectedRows(s.formID, M.value.map((
|
10627
|
+
function P(V) {
|
10628
|
+
M.value = V, u.store.setSelectedRows(s.formID, M.value.map((x) => {
|
10605
10629
|
var W;
|
10606
|
-
return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] ===
|
10607
|
-
}).filter((
|
10630
|
+
return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === x);
|
10631
|
+
}).filter((x) => !!x));
|
10608
10632
|
}
|
10609
10633
|
function B(V) {
|
10610
|
-
var
|
10634
|
+
var x, W;
|
10611
10635
|
switch (y.value) {
|
10612
10636
|
case !0:
|
10613
10637
|
{
|
10614
10638
|
const q = V[w.value];
|
10615
|
-
M.value.includes(q) ? M.value = without$1(M.value, q) : M.value = [...(
|
10639
|
+
M.value.includes(q) ? M.value = without$1(M.value, q) : M.value = [...(x = M.value) != null ? x : [], q];
|
10616
10640
|
}
|
10617
10641
|
break;
|
10618
10642
|
case !1:
|
@@ -10627,10 +10651,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10627
10651
|
return (te = A.value) == null ? void 0 : te.find((J) => J[w.value] === q);
|
10628
10652
|
}).filter((q) => !!q));
|
10629
10653
|
}
|
10630
|
-
function z(V,
|
10631
|
-
|
10654
|
+
function z(V, x) {
|
10655
|
+
x.width = V, s.store.setVarGridDetailWidth(s.formID, x.dataIndex, V);
|
10632
10656
|
}
|
10633
|
-
async function Y(V,
|
10657
|
+
async function Y(V, x, W, q) {
|
10634
10658
|
var te;
|
10635
10659
|
switch (q.action) {
|
10636
10660
|
case "sort":
|
@@ -10642,23 +10666,23 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10642
10666
|
break;
|
10643
10667
|
}
|
10644
10668
|
}
|
10645
|
-
function X(V,
|
10646
|
-
V ? g.value = [
|
10669
|
+
function X(V, x) {
|
10670
|
+
V ? g.value = [x[w.value]] : g.value = [];
|
10647
10671
|
}
|
10648
|
-
function re(V,
|
10649
|
-
|
10672
|
+
function re(V, x) {
|
10673
|
+
x !== I.pageSize ? (I.pageIndex = 1, I.pageSize = x) : I.pageIndex = V, G();
|
10650
10674
|
}
|
10651
10675
|
function ee(V) {
|
10652
|
-
M.value = [V[w.value]], u.store.setSelectedRows(s.formID, M.value.map((
|
10676
|
+
M.value = [V[w.value]], u.store.setSelectedRows(s.formID, M.value.map((x) => {
|
10653
10677
|
var W;
|
10654
|
-
return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] ===
|
10655
|
-
}).filter((
|
10678
|
+
return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === x);
|
10679
|
+
}).filter((x) => !!x)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
10656
10680
|
}
|
10657
10681
|
function ue({
|
10658
10682
|
title: V,
|
10659
|
-
column:
|
10683
|
+
column: x
|
10660
10684
|
}) {
|
10661
|
-
switch (
|
10685
|
+
switch (x.dataIndex) {
|
10662
10686
|
case "index":
|
10663
10687
|
return createVNode(KgTableSetting, null, null);
|
10664
10688
|
default:
|
@@ -10667,19 +10691,19 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10667
10691
|
}
|
10668
10692
|
function ce({
|
10669
10693
|
column: V,
|
10670
|
-
index:
|
10694
|
+
index: x,
|
10671
10695
|
record: W,
|
10672
10696
|
value: q,
|
10673
10697
|
text: te
|
10674
10698
|
}) {
|
10675
10699
|
let J = "";
|
10676
10700
|
V.customRender ? J = V.customRender({
|
10677
|
-
index:
|
10701
|
+
index: x,
|
10678
10702
|
record: W,
|
10679
10703
|
column: V,
|
10680
10704
|
text: te,
|
10681
10705
|
value: q,
|
10682
|
-
renderIndex:
|
10706
|
+
renderIndex: x
|
10683
10707
|
}) : J = q;
|
10684
10708
|
const de = createVNode(KgTableCell, {
|
10685
10709
|
kgRow: W,
|
@@ -10690,7 +10714,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10690
10714
|
return t.bodyCell ? t.bodyCell({
|
10691
10715
|
value: q,
|
10692
10716
|
record: W,
|
10693
|
-
index:
|
10717
|
+
index: x,
|
10694
10718
|
column: V,
|
10695
10719
|
defaultRender: de
|
10696
10720
|
}) : de;
|
@@ -10720,8 +10744,8 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10720
10744
|
rowSelection: D.value,
|
10721
10745
|
expandColumnWidth: 28,
|
10722
10746
|
expandedRowKeys: g.value,
|
10723
|
-
customRow: (
|
10724
|
-
onClick: (W) => L(W,
|
10747
|
+
customRow: (x) => ({
|
10748
|
+
onClick: (W) => L(W, x)
|
10725
10749
|
}),
|
10726
10750
|
onResizeColumn: z,
|
10727
10751
|
onChange: Y,
|
@@ -10747,7 +10771,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10747
10771
|
size: "default",
|
10748
10772
|
current: I.pageIndex,
|
10749
10773
|
pageSize: I.pageSize,
|
10750
|
-
pageSizeOptions: k.value.map((
|
10774
|
+
pageSizeOptions: k.value.map((x) => String(x)),
|
10751
10775
|
total: I.total,
|
10752
10776
|
showSizeChanger: !0,
|
10753
10777
|
showQuickJumper: !1,
|
@@ -10756,12 +10780,12 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10756
10780
|
locale: {
|
10757
10781
|
page: ""
|
10758
10782
|
},
|
10759
|
-
showTotal: (
|
10783
|
+
showTotal: (x, W) => o.t("kg.KgTable.totalText", {
|
10760
10784
|
from: W[0],
|
10761
10785
|
to: W[1],
|
10762
|
-
total:
|
10786
|
+
total: x
|
10763
10787
|
}),
|
10764
|
-
onChange: (
|
10788
|
+
onChange: (x, W) => re(x, W)
|
10765
10789
|
}, null)])])]);
|
10766
10790
|
};
|
10767
10791
|
}
|
@@ -12148,11 +12172,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12148
12172
|
const t = inject(DI_KG_SLOTS, null), r = useKg(), n = useKgVar(), a = useKgSearch(), o = useKgTable();
|
12149
12173
|
_useLayoutHeaderResizeObserver();
|
12150
12174
|
const s = computed(() => n.store.getFormLevel(n.formID)), i = computed(() => n.store.getVarProfileConfig(n.formID)), l = computed(() => {
|
12151
|
-
var
|
12152
|
-
return s.value > 0 ? !1 : ((
|
12175
|
+
var P;
|
12176
|
+
return s.value > 0 ? !1 : ((P = i.value) == null ? void 0 : P.header_teleport_flg) !== 0;
|
12153
12177
|
}), u = computed(() => getDefaultHeight(n.currentVarProfileDetails.value, l.value)), c = computed(() => getMaxHeight(n.currentVarProfileDetails.value, l.value)), g = computed(() => l.value ? 1 : HEADER_HEIGHT), p = computed(() => {
|
12154
|
-
var
|
12155
|
-
return !!(o.isRetrieving.value || ((
|
12178
|
+
var P, B;
|
12179
|
+
return !!(o.isRetrieving.value || ((P = E.value) == null ? void 0 : P.permission_type) === 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code));
|
12156
12180
|
}), m = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), _ = ref(null), v = ref({
|
12157
12181
|
kgHeight: g.value
|
12158
12182
|
}), y = ref({
|
@@ -12160,12 +12184,12 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12160
12184
|
});
|
12161
12185
|
let C;
|
12162
12186
|
const T = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), w = computed(() => {
|
12163
|
-
var
|
12164
|
-
if (n.t((
|
12187
|
+
var P, B, z;
|
12188
|
+
if (n.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
|
12165
12189
|
return n.t((z = E.value) == null ? void 0 : z.var_nam).value;
|
12166
12190
|
}), k = computed(() => {
|
12167
|
-
var
|
12168
|
-
switch ((
|
12191
|
+
var P;
|
12192
|
+
switch ((P = E.value) == null ? void 0 : P.primary_flg) {
|
12169
12193
|
case 1:
|
12170
12194
|
return !0;
|
12171
12195
|
case 0:
|
@@ -12174,16 +12198,16 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12174
12198
|
return !0;
|
12175
12199
|
}
|
12176
12200
|
}), F = computed(() => {
|
12177
|
-
var
|
12178
|
-
return ((
|
12201
|
+
var P;
|
12202
|
+
return ((P = i.value) == null ? void 0 : P.vis_flg) === 1;
|
12179
12203
|
}), R = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), $ = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), D = computed(() => {
|
12180
|
-
let
|
12181
|
-
return F.value && (
|
12204
|
+
let P = "kg-search";
|
12205
|
+
return F.value && (P += " kg-search--visible"), l.value && (P += " kg-search--teleport"), P;
|
12182
12206
|
});
|
12183
|
-
watch(n.currentVarProfileDetails, (
|
12184
|
-
if (
|
12207
|
+
watch(n.currentVarProfileDetails, (P) => {
|
12208
|
+
if (P) {
|
12185
12209
|
const B = {};
|
12186
|
-
|
12210
|
+
P.forEach((z) => {
|
12187
12211
|
B[z.var_nam] = "";
|
12188
12212
|
}), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(B)), F.value ? (C == null || C(), C = watch(_, (z) => {
|
12189
12213
|
z && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
@@ -12196,23 +12220,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12196
12220
|
}), onUnmounted(() => {
|
12197
12221
|
a.store.dispose(n.formID);
|
12198
12222
|
});
|
12199
|
-
function U(
|
12223
|
+
function U(P = !1) {
|
12200
12224
|
F.value ? _.value && _.value.validate().then(() => {
|
12201
12225
|
a.store.emit(n.formID, "search", {
|
12202
|
-
resetPageIndex:
|
12226
|
+
resetPageIndex: P
|
12203
12227
|
});
|
12204
12228
|
}).catch((B) => {
|
12205
12229
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12206
12230
|
e: B
|
12207
12231
|
});
|
12208
12232
|
}) : a.store.emit(n.formID, "search", {
|
12209
|
-
resetPageIndex:
|
12233
|
+
resetPageIndex: P
|
12210
12234
|
});
|
12211
12235
|
}
|
12212
12236
|
a.store.setSearchFn(n.formID, U);
|
12213
12237
|
function A() {
|
12214
|
-
var
|
12215
|
-
(
|
12238
|
+
var P;
|
12239
|
+
(P = _.value) == null || P.resetFields(), F.value ? _.value && _.value.validate().then(() => {
|
12216
12240
|
a.store.emit(n.formID, "reset");
|
12217
12241
|
}).catch((B) => {
|
12218
12242
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
@@ -12225,11 +12249,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12225
12249
|
return U(!0), Promise.resolve(!0);
|
12226
12250
|
}
|
12227
12251
|
function I() {
|
12228
|
-
var
|
12252
|
+
var P;
|
12229
12253
|
return createVNode("div", {
|
12230
12254
|
class: "title",
|
12231
12255
|
onClick: G
|
12232
|
-
}, [((
|
12256
|
+
}, [((P = t == null ? void 0 : t.KgSearch) == null ? void 0 : P.left) && createVNode("div", {
|
12233
12257
|
class: "kg-search-title-left",
|
12234
12258
|
onClick: (B) => {
|
12235
12259
|
B.stopPropagation(), B.preventDefault();
|
@@ -12237,8 +12261,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12237
12261
|
}, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
|
12238
12262
|
}
|
12239
12263
|
function O() {
|
12240
|
-
var
|
12241
|
-
return ((z = (B = (
|
12264
|
+
var P, B, z, Y;
|
12265
|
+
return ((z = (B = (P = n.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : B.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
12242
12266
|
value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
|
12243
12267
|
"onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
|
12244
12268
|
disabled: m.value,
|
@@ -12267,9 +12291,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12267
12291
|
hostFormID: n.formID
|
12268
12292
|
}, null)]);
|
12269
12293
|
}
|
12270
|
-
function
|
12271
|
-
var
|
12272
|
-
return createVNode(Fragment, null, [O(), !(((
|
12294
|
+
function N() {
|
12295
|
+
var P, B, z, Y, X;
|
12296
|
+
return createVNode(Fragment, null, [O(), !(((P = E.value) == null ? void 0 : P.permission_type) !== 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
|
12273
12297
|
type: "primary",
|
12274
12298
|
ghost: !p.value,
|
12275
12299
|
disabled: p.value,
|
@@ -12293,10 +12317,10 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12293
12317
|
spinning: $.value
|
12294
12318
|
}, {
|
12295
12319
|
default: () => {
|
12296
|
-
var
|
12320
|
+
var P;
|
12297
12321
|
return [createVNode(KgForm, {
|
12298
12322
|
ref: _,
|
12299
|
-
model: (
|
12323
|
+
model: (P = a.model.value) != null ? P : {}
|
12300
12324
|
}, {
|
12301
12325
|
default: () => [createVNode(Row, {
|
12302
12326
|
gutter: 6
|
@@ -12319,7 +12343,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12319
12343
|
}
|
12320
12344
|
return () => createVNode(KgResizable, {
|
12321
12345
|
kgHeight: v.value.kgHeight,
|
12322
|
-
"onUpdate:kgHeight": (
|
12346
|
+
"onUpdate:kgHeight": (P) => v.value.kgHeight = P,
|
12323
12347
|
kgMinHeight: g.value,
|
12324
12348
|
kgMaxHeight: c.value,
|
12325
12349
|
class: D.value,
|
@@ -12340,7 +12364,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12340
12364
|
}, {
|
12341
12365
|
default: () => [I(), createVNode("div", {
|
12342
12366
|
class: "ant-collapse-extra"
|
12343
|
-
}, [
|
12367
|
+
}, [N()])]
|
12344
12368
|
})])]
|
12345
12369
|
}), createVNode("div", {
|
12346
12370
|
class: "ant-collapse-content ant-collapse-content-active"
|
@@ -12837,7 +12861,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12837
12861
|
a.value = !0;
|
12838
12862
|
try {
|
12839
12863
|
const {
|
12840
|
-
records:
|
12864
|
+
records: N
|
12841
12865
|
} = await List({
|
12842
12866
|
params: {
|
12843
12867
|
pageNo: 1,
|
@@ -12848,16 +12872,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12848
12872
|
order: "asc"
|
12849
12873
|
}
|
12850
12874
|
});
|
12851
|
-
if (c.value = null, u.value =
|
12875
|
+
if (c.value = null, u.value = N != null ? N : [], A) {
|
12852
12876
|
const L = u.value.find((G) => {
|
12853
|
-
var
|
12854
|
-
return G.id === ((
|
12877
|
+
var P;
|
12878
|
+
return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
|
12855
12879
|
});
|
12856
12880
|
n.setSelectedVarCatalog(L != null ? L : null), g.value = L != null && L.id ? [L.id] : [];
|
12857
12881
|
} else
|
12858
12882
|
n.setSelectedVarCatalog((I = u.value[0]) != null ? I : null), g.value = (O = u.value[0]) != null && O.id ? [u.value[0].id] : [];
|
12859
|
-
} catch (
|
12860
|
-
Logger.debug(
|
12883
|
+
} catch (N) {
|
12884
|
+
Logger.debug(N == null ? void 0 : N.message);
|
12861
12885
|
} finally {
|
12862
12886
|
a.value = !1;
|
12863
12887
|
}
|
@@ -12899,14 +12923,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12899
12923
|
isAllForm: A,
|
12900
12924
|
isAllLanguage: M
|
12901
12925
|
}) {
|
12902
|
-
var I, O,
|
12926
|
+
var I, O, N;
|
12903
12927
|
c.value = new VarCatalog({
|
12904
12928
|
id: "",
|
12905
12929
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
12906
12930
|
grp_nam: (I = n.getSelectedVar) == null ? void 0 : I.grp_nam,
|
12907
12931
|
var_nam: (O = n.getSelectedVar) == null ? void 0 : O.var_nam,
|
12908
12932
|
frm_id: A || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
12909
|
-
locale_id: M ? "ALL" : (
|
12933
|
+
locale_id: M ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
|
12910
12934
|
var_text: ""
|
12911
12935
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
|
12912
12936
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
|
+
import { Ref } from 'vue';
|
2
3
|
import { IPage } from '../../apis/WMS/models';
|
3
4
|
import { IKgTableRow } from './index.vm';
|
4
5
|
/**
|
@@ -9,8 +10,14 @@ import { IKgTableRow } from './index.vm';
|
|
9
10
|
export declare type IKgTableEvent = 'rowDoubleClick' | 'retrieve';
|
10
11
|
/** 事件监听函数: rowDoubleClick. */
|
11
12
|
export declare type IKgTableRowDoubleClickCb = (record: IKgTableRow) => void;
|
12
|
-
/**
|
13
|
-
|
13
|
+
/**
|
14
|
+
* 事件监听函数: retrieve.
|
15
|
+
* @param page 分页数据.
|
16
|
+
*/
|
17
|
+
export declare type IKgTableRetrieveCb = (args: {
|
18
|
+
page: IPage<IKgTableRow> | undefined | null;
|
19
|
+
datas: Ref<Array<IKgTableRow>>;
|
20
|
+
}) => void;
|
14
21
|
export declare type IKgTableCb = IKgTableRowDoubleClickCb | IKgTableRetrieveCb;
|
15
22
|
export interface IKgTableState {
|
16
23
|
/** 勾选的行. */
|
@@ -43,6 +50,13 @@ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTabl
|
|
43
50
|
removeEventListener(formID: string, event: IKgTableEvent, cb?: IKgTableCb): void;
|
44
51
|
emit(formID: string, event: IKgTableEvent, args?: any | null): void;
|
45
52
|
setSelectedRows(formID: string, selectedRows: Array<IKgTableRow>): void;
|
53
|
+
/**
|
54
|
+
* 设置某行的勾选状态.
|
55
|
+
* @param formID 界面标识.
|
56
|
+
* @param row 行.
|
57
|
+
* @param selected 是否勾选.
|
58
|
+
*/
|
59
|
+
setSelecte(formID: string, row: IKgTableRow, selected: boolean): void;
|
46
60
|
setIsRetrieved(formID: string, value: boolean): void;
|
47
61
|
setIsRetrieving(formID: string, value: boolean): void;
|
48
62
|
setTableWidth(formID: string, value: number): void;
|
package/package.json
CHANGED
@@ -1,83 +1,83 @@
|
|
1
|
-
{
|
2
|
-
"name": "@kengic/vue",
|
3
|
-
"version": "0.5.
|
4
|
-
"scripts": {
|
5
|
-
"build": "rimraf dist && vue-tsc && vite build",
|
6
|
-
"build:dev": "rimraf dist && vue-tsc && vite build --mode development",
|
7
|
-
"publish:all:beta": "npm run bump-version:beta && npm run publish:all",
|
8
|
-
"publish:all:patch": "npm run bump-version:patch && npm run publish:all",
|
9
|
-
"publish:all:minor": "npm run bump-version:minor && npm run publish:all",
|
10
|
-
"publish:all:major": "npm run bump-version:major && npm run publish:all",
|
11
|
-
"-------------------- C": "",
|
12
|
-
"bump-to:luotao.c.wms-vue3": "tsx scripts/bump-to.luotao.c.wms-vue3.ts",
|
13
|
-
"copy-to:luotao.c.wms-vue3": "tsx scripts/copy-to.luotao.c.wms-vue3.ts",
|
14
|
-
"copy-to:luotao.c.wms-vue3 & build": "npm run build:dev && npm run copy-to:luotao.c.wms-vue3",
|
15
|
-
"-------------------- D": "",
|
16
|
-
"bump-to:luotao.wms-vue3": "tsx scripts/bump-to.luotao.wms-vue3.ts",
|
17
|
-
"copy-to:luotao.wms-vue3": "tsx scripts/copy-to.luotao.wms-vue3.ts",
|
18
|
-
"copy-to:luotao.wms-vue3 & build": "npm run build:dev && npm run copy-to:luotao.wms-vue3",
|
19
|
-
"--------------------": "",
|
20
|
-
"gen:apis:WMS": "kengic-pont generate-apis --config kg.config.ts --origin WMS",
|
21
|
-
"bump-version:beta": "tsx scripts/bump.ts beta",
|
22
|
-
"bump-version:major": "tsx scripts/bump.ts major",
|
23
|
-
"bump-version:minor": "tsx scripts/bump.ts minor",
|
24
|
-
"bump-version:patch": "tsx scripts/bump.ts patch",
|
25
|
-
"publish:all": "tsx scripts/publish.ts",
|
26
|
-
"publish:npm": "npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
|
27
|
-
},
|
28
|
-
"peerDependencies": {
|
29
|
-
"vue": "3.2.43"
|
30
|
-
},
|
31
|
-
"dependencies": {
|
32
|
-
"@ant-design/icons-vue": "6.1.0",
|
33
|
-
"@iconify-icons/ant-design": "1.2.5",
|
34
|
-
"@iconify/vue": "4.1.1",
|
35
|
-
"@vueuse/core": "8.9.4",
|
36
|
-
"@vueuse/shared": "8.9.4",
|
37
|
-
"ant-design-vue": "3.2.14",
|
38
|
-
"axios": "0.26.1",
|
39
|
-
"dayjs": "1.11.6",
|
40
|
-
"filesize": "10.0.6",
|
41
|
-
"lodash-es": "4.17.21",
|
42
|
-
"pinia": "2.0.12",
|
43
|
-
"store": "2.0.12",
|
44
|
-
"vue-router": "4.1.6"
|
45
|
-
},
|
46
|
-
"devDependencies": {
|
47
|
-
"@kengic/pont": "1.2.10-beta.37",
|
48
|
-
"@types/lodash-es": "~4.17.7",
|
49
|
-
"@types/node": "~18.14.6",
|
50
|
-
"@types/semver": "~7.3.13",
|
51
|
-
"@types/store": "2.0.2",
|
52
|
-
"@vitejs/plugin-vue": "~3.2.0",
|
53
|
-
"@vitejs/plugin-vue-jsx": "~1.3.10",
|
54
|
-
"chalk": "~4.1.2",
|
55
|
-
"less": "~4.1.3",
|
56
|
-
"prettier": "~2.8.4",
|
57
|
-
"rimraf": "~3.0.2",
|
58
|
-
"rollup": "~2.79.1",
|
59
|
-
"semver": "~7.3.8",
|
60
|
-
"tsx": "~3.12.3",
|
61
|
-
"typescript": "~4.8.4",
|
62
|
-
"vite": "~3.2.5",
|
63
|
-
"vue": "~3.2.45",
|
64
|
-
"vue-tsc": "~1.2.0"
|
65
|
-
},
|
66
|
-
"main": "./dist/kengic-vue.js",
|
67
|
-
"module": "./dist/kengic-vue.js",
|
68
|
-
"types": "./dist/src/index.d.ts",
|
69
|
-
"exports": {
|
70
|
-
".": {
|
71
|
-
"import": "./dist/kengic-vue.js"
|
72
|
-
},
|
73
|
-
"./dist/index.css": "./dist/index.css"
|
74
|
-
},
|
75
|
-
"prettier": {
|
76
|
-
"endOfLine": "auto",
|
77
|
-
"printWidth": 160,
|
78
|
-
"semi": true,
|
79
|
-
"singleQuote": true,
|
80
|
-
"tabWidth": 4,
|
81
|
-
"trailingComma": "all"
|
82
|
-
}
|
83
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@kengic/vue",
|
3
|
+
"version": "0.5.23",
|
4
|
+
"scripts": {
|
5
|
+
"build": "rimraf dist && vue-tsc && vite build",
|
6
|
+
"build:dev": "rimraf dist && vue-tsc && vite build --mode development",
|
7
|
+
"publish:all:beta": "npm run bump-version:beta && npm run publish:all",
|
8
|
+
"publish:all:patch": "npm run bump-version:patch && npm run publish:all",
|
9
|
+
"publish:all:minor": "npm run bump-version:minor && npm run publish:all",
|
10
|
+
"publish:all:major": "npm run bump-version:major && npm run publish:all",
|
11
|
+
"-------------------- C": "",
|
12
|
+
"bump-to:luotao.c.wms-vue3": "tsx scripts/bump-to.luotao.c.wms-vue3.ts",
|
13
|
+
"copy-to:luotao.c.wms-vue3": "tsx scripts/copy-to.luotao.c.wms-vue3.ts",
|
14
|
+
"copy-to:luotao.c.wms-vue3 & build": "npm run build:dev && npm run copy-to:luotao.c.wms-vue3",
|
15
|
+
"-------------------- D": "",
|
16
|
+
"bump-to:luotao.wms-vue3": "tsx scripts/bump-to.luotao.wms-vue3.ts",
|
17
|
+
"copy-to:luotao.wms-vue3": "tsx scripts/copy-to.luotao.wms-vue3.ts",
|
18
|
+
"copy-to:luotao.wms-vue3 & build": "npm run build:dev && npm run copy-to:luotao.wms-vue3",
|
19
|
+
"--------------------": "",
|
20
|
+
"gen:apis:WMS": "kengic-pont generate-apis --config kg.config.ts --origin WMS",
|
21
|
+
"bump-version:beta": "tsx scripts/bump.ts beta",
|
22
|
+
"bump-version:major": "tsx scripts/bump.ts major",
|
23
|
+
"bump-version:minor": "tsx scripts/bump.ts minor",
|
24
|
+
"bump-version:patch": "tsx scripts/bump.ts patch",
|
25
|
+
"publish:all": "tsx scripts/publish.ts",
|
26
|
+
"publish:npm": "npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
|
27
|
+
},
|
28
|
+
"peerDependencies": {
|
29
|
+
"vue": "3.2.43"
|
30
|
+
},
|
31
|
+
"dependencies": {
|
32
|
+
"@ant-design/icons-vue": "6.1.0",
|
33
|
+
"@iconify-icons/ant-design": "1.2.5",
|
34
|
+
"@iconify/vue": "4.1.1",
|
35
|
+
"@vueuse/core": "8.9.4",
|
36
|
+
"@vueuse/shared": "8.9.4",
|
37
|
+
"ant-design-vue": "3.2.14",
|
38
|
+
"axios": "0.26.1",
|
39
|
+
"dayjs": "1.11.6",
|
40
|
+
"filesize": "10.0.6",
|
41
|
+
"lodash-es": "4.17.21",
|
42
|
+
"pinia": "2.0.12",
|
43
|
+
"store": "2.0.12",
|
44
|
+
"vue-router": "4.1.6"
|
45
|
+
},
|
46
|
+
"devDependencies": {
|
47
|
+
"@kengic/pont": "1.2.10-beta.37",
|
48
|
+
"@types/lodash-es": "~4.17.7",
|
49
|
+
"@types/node": "~18.14.6",
|
50
|
+
"@types/semver": "~7.3.13",
|
51
|
+
"@types/store": "2.0.2",
|
52
|
+
"@vitejs/plugin-vue": "~3.2.0",
|
53
|
+
"@vitejs/plugin-vue-jsx": "~1.3.10",
|
54
|
+
"chalk": "~4.1.2",
|
55
|
+
"less": "~4.1.3",
|
56
|
+
"prettier": "~2.8.4",
|
57
|
+
"rimraf": "~3.0.2",
|
58
|
+
"rollup": "~2.79.1",
|
59
|
+
"semver": "~7.3.8",
|
60
|
+
"tsx": "~3.12.3",
|
61
|
+
"typescript": "~4.8.4",
|
62
|
+
"vite": "~3.2.5",
|
63
|
+
"vue": "~3.2.45",
|
64
|
+
"vue-tsc": "~1.2.0"
|
65
|
+
},
|
66
|
+
"main": "./dist/kengic-vue.js",
|
67
|
+
"module": "./dist/kengic-vue.js",
|
68
|
+
"types": "./dist/src/index.d.ts",
|
69
|
+
"exports": {
|
70
|
+
".": {
|
71
|
+
"import": "./dist/kengic-vue.js"
|
72
|
+
},
|
73
|
+
"./dist/index.css": "./dist/index.css"
|
74
|
+
},
|
75
|
+
"prettier": {
|
76
|
+
"endOfLine": "auto",
|
77
|
+
"printWidth": 160,
|
78
|
+
"semi": true,
|
79
|
+
"singleQuote": true,
|
80
|
+
"tabWidth": 4,
|
81
|
+
"trailingComma": "all"
|
82
|
+
}
|
83
|
+
}
|