@kengic/vue 0.16.6 → 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 +7 -7
- 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);
|
@@ -13916,7 +13916,7 @@ const getProps$r = () => ({
|
|
13916
13916
|
async function ee() {
|
13917
13917
|
R.value.kgWidth = fe.value, te.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
|
13918
13918
|
}
|
13919
|
-
function de() {
|
13919
|
+
async function de() {
|
13920
13920
|
switch (!0) {
|
13921
13921
|
case s.isCreating.value:
|
13922
13922
|
s.store.setIsCreating(s.formID, !1);
|
@@ -13935,7 +13935,7 @@ const getProps$r = () => ({
|
|
13935
13935
|
async function ue() {
|
13936
13936
|
var G, Y;
|
13937
13937
|
try {
|
13938
|
-
if (await l.store.emit(s.formID, "beforeOk", {
|
13938
|
+
if (!l.formRef.value || await l.store.emit(s.formID, "beforeOk", {
|
13939
13939
|
isCreating: s.isCreating.value,
|
13940
13940
|
isUpdating: s.isUpdating.value,
|
13941
13941
|
isCopying: s.isCopying.value,
|
@@ -14569,7 +14569,7 @@ const KgButtonCreate = defineComponent({
|
|
14569
14569
|
}) {
|
14570
14570
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), u = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), c = computed(() => {
|
14571
14571
|
var T, k, M, C, w, A, O, D;
|
14572
|
-
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;
|
14573
14573
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
14574
14574
|
async function g() {
|
14575
14575
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -14592,7 +14592,7 @@ const KgButtonCreate = defineComponent({
|
|
14592
14592
|
}
|
14593
14593
|
function m() {
|
14594
14594
|
var T, k, M, C, w, A;
|
14595
|
-
return
|
14595
|
+
return createVNode(Button, {
|
14596
14596
|
type: "primary",
|
14597
14597
|
disabled: c.value,
|
14598
14598
|
onClick: g,
|
@@ -15077,7 +15077,7 @@ const KgButtonCreate = defineComponent({
|
|
15077
15077
|
});
|
15078
15078
|
const u = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), c = computed(() => {
|
15079
15079
|
var T, k, M, C, w, A, O, D;
|
15080
|
-
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;
|
15081
15081
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
15082
15082
|
async function g() {
|
15083
15083
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -15103,7 +15103,7 @@ const KgButtonCreate = defineComponent({
|
|
15103
15103
|
}
|
15104
15104
|
function m() {
|
15105
15105
|
var T, k, M, C, w, A;
|
15106
|
-
return
|
15106
|
+
return createVNode(Button, {
|
15107
15107
|
type: "primary",
|
15108
15108
|
disabled: c.value,
|
15109
15109
|
ghost: !e.kgPrimary && !c.value,
|
package/package.json
CHANGED