@kengic/vue 0.16.6-beta.5 → 0.16.7-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +36 -25
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -2919,7 +2919,7 @@ const emptyIcon = {
|
|
2919
2919
|
...t.data
|
2920
2920
|
}, r);
|
2921
2921
|
}
|
2922
|
-
}), version = "0.16.
|
2922
|
+
}), version = "0.16.7-beta.0";
|
2923
2923
|
var isVue2 = !1;
|
2924
2924
|
function set(e, t, r) {
|
2925
2925
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, r), r) : (e[t] = r, r);
|
@@ -10579,7 +10579,7 @@ function useKgFormItem(e) {
|
|
10579
10579
|
break;
|
10580
10580
|
}
|
10581
10581
|
}
|
10582
|
-
return
|
10582
|
+
return KgUtil.tryParseJSON(o);
|
10583
10583
|
});
|
10584
10584
|
return {
|
10585
10585
|
controlType: s,
|
@@ -10866,25 +10866,34 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
10866
10866
|
emit: r,
|
10867
10867
|
attrs: a
|
10868
10868
|
}) {
|
10869
|
-
const n = inject("$dayjs", dayjs),
|
10870
|
-
|
10871
|
-
|
10872
|
-
|
10869
|
+
const n = inject("$dayjs", dayjs), {
|
10870
|
+
controlProperties: s
|
10871
|
+
} = useKgFormItem(), i = computed(() => {
|
10872
|
+
let l = e.value;
|
10873
|
+
if (!l || !isArray$1(l) || l.length !== 2)
|
10874
|
+
return;
|
10875
|
+
const u = [null, null];
|
10876
|
+
let c = l[0], d = l[1];
|
10877
|
+
return n.isDayjs(c) || (c = n(c)), n.isDayjs(d) || (d = n(d)), c.isValid() && (u[0] = c), d.isValid() && (u[1] = d), u;
|
10873
10878
|
});
|
10874
|
-
function
|
10875
|
-
const
|
10876
|
-
r("update:value",
|
10879
|
+
function o(l) {
|
10880
|
+
const u = l ? [n(l[0]), n(l[1])] : void 0;
|
10881
|
+
r("update:value", u), r("kgChange", u);
|
10877
10882
|
}
|
10878
|
-
return () =>
|
10879
|
-
|
10880
|
-
|
10881
|
-
|
10882
|
-
|
10883
|
-
|
10884
|
-
|
10885
|
-
|
10886
|
-
|
10887
|
-
|
10883
|
+
return () => {
|
10884
|
+
var l;
|
10885
|
+
return createVNode(DatePicker.RangePicker, {
|
10886
|
+
value: i.value,
|
10887
|
+
"onUpdate:value": o,
|
10888
|
+
id: a.id,
|
10889
|
+
disabled: e.kgDisabled,
|
10890
|
+
placeholder: [e.kgPlaceholder, e.kgPlaceholder],
|
10891
|
+
showTime: e.kgShowTime,
|
10892
|
+
allowEmpty: (l = s.value) == null ? void 0 : l.allowEmpty,
|
10893
|
+
picker: e.kgPicker,
|
10894
|
+
style: "width: 100%"
|
10895
|
+
}, null);
|
10896
|
+
};
|
10888
10897
|
}
|
10889
10898
|
}), KgFormItemInput = defineComponent({
|
10890
10899
|
name: "KgFormItemInput",
|
@@ -13907,7 +13916,7 @@ const getProps$r = () => ({
|
|
13907
13916
|
async function ee() {
|
13908
13917
|
R.value.kgWidth = fe.value, te.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
|
13909
13918
|
}
|
13910
|
-
function de() {
|
13919
|
+
async function de() {
|
13911
13920
|
switch (!0) {
|
13912
13921
|
case s.isCreating.value:
|
13913
13922
|
s.store.setIsCreating(s.formID, !1);
|
@@ -13926,7 +13935,7 @@ const getProps$r = () => ({
|
|
13926
13935
|
async function ue() {
|
13927
13936
|
var G, Y;
|
13928
13937
|
try {
|
13929
|
-
if (await l.store.emit(s.formID, "beforeOk", {
|
13938
|
+
if (!l.formRef.value || await l.store.emit(s.formID, "beforeOk", {
|
13930
13939
|
isCreating: s.isCreating.value,
|
13931
13940
|
isUpdating: s.isUpdating.value,
|
13932
13941
|
isCopying: s.isCopying.value,
|
@@ -14560,7 +14569,7 @@ const KgButtonCreate = defineComponent({
|
|
14560
14569
|
}) {
|
14561
14570
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), u = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), c = computed(() => {
|
14562
14571
|
var T, k, M, C, w, A, O, D;
|
14563
|
-
return isNil(e.kgDisabled) ? !!(s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = u.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((M = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) === 0 || ((C = u.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (w = o.selectedRows.value) == null ? void 0 : w.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((O = u.value) == null ? void 0 : O.permission_code) === 2 && !n.p((D = u.value) == null ? void 0 : D.permission_code)) : e.kgDisabled;
|
14572
|
+
return isNil(e.kgDisabled) ? !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = u.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((M = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) === 0 || ((C = u.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (w = o.selectedRows.value) == null ? void 0 : w.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((O = u.value) == null ? void 0 : O.permission_code) === 2 && !n.p((D = u.value) == null ? void 0 : D.permission_code)) : e.kgDisabled;
|
14564
14573
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
14565
14574
|
async function g() {
|
14566
14575
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -14583,7 +14592,7 @@ const KgButtonCreate = defineComponent({
|
|
14583
14592
|
}
|
14584
14593
|
function m() {
|
14585
14594
|
var T, k, M, C, w, A;
|
14586
|
-
return
|
14595
|
+
return createVNode(Button, {
|
14587
14596
|
type: "primary",
|
14588
14597
|
disabled: c.value,
|
14589
14598
|
onClick: g,
|
@@ -15068,7 +15077,7 @@ const KgButtonCreate = defineComponent({
|
|
15068
15077
|
});
|
15069
15078
|
const u = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), c = computed(() => {
|
15070
15079
|
var T, k, M, C, w, A, O, D;
|
15071
|
-
return isNil(e.kgDisabled) ? !!(s.isCreating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((T = u.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((M = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) === 0 || ((C = u.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (w = i.selectedRows.value) == null ? void 0 : w.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((O = u.value) == null ? void 0 : O.permission_code) === 2 && !n.p((D = u.value) == null ? void 0 : D.permission_code)) : e.kgDisabled;
|
15080
|
+
return isNil(e.kgDisabled) ? !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((T = u.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((M = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) === 0 || ((C = u.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (w = i.selectedRows.value) == null ? void 0 : w.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((O = u.value) == null ? void 0 : O.permission_code) === 2 && !n.p((D = u.value) == null ? void 0 : D.permission_code)) : e.kgDisabled;
|
15072
15081
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
15073
15082
|
async function g() {
|
15074
15083
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -15094,7 +15103,7 @@ const KgButtonCreate = defineComponent({
|
|
15094
15103
|
}
|
15095
15104
|
function m() {
|
15096
15105
|
var T, k, M, C, w, A;
|
15097
|
-
return
|
15106
|
+
return createVNode(Button, {
|
15098
15107
|
type: "primary",
|
15099
15108
|
disabled: c.value,
|
15100
15109
|
ghost: !e.kgPrimary && !c.value,
|
@@ -17927,6 +17936,8 @@ class KgUtil {
|
|
17927
17936
|
return t;
|
17928
17937
|
}
|
17929
17938
|
static parseParamFromDayJS(t, r, a, n) {
|
17939
|
+
if (!r || !r.isValid())
|
17940
|
+
return "";
|
17930
17941
|
if (!a)
|
17931
17942
|
return r.format("YYYY-MM-DD HH:mm:ss");
|
17932
17943
|
const s = useKgVar(a), i = useKgTable(a), o = s.store.getVarVariableConfig(a, t);
|
package/package.json
CHANGED