qk-pc-ui 4.2.5 → 4.2.7
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/qk-pc-ui.mjs +28 -31
- package/dist/qk-pc-ui.umd.js +28 -28
- package/package.json +1 -1
package/dist/qk-pc-ui.mjs
CHANGED
|
@@ -16174,41 +16174,33 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16174
16174
|
emits: ["click"],
|
|
16175
16175
|
setup(e, { emit: r }) {
|
|
16176
16176
|
const t = r, a = e, n = computed(() => typeof a.commandInfo == "string" ? a.commandInfo == "删除" ? "danger" : "primary" : a.commandInfo.Name == "删除" ? "danger" : "primary"), i = computed(() => {
|
|
16177
|
-
let
|
|
16178
|
-
return
|
|
16179
|
-
}), l =
|
|
16180
|
-
|
|
16181
|
-
return f || !1;
|
|
16182
|
-
}), s = computed(() => {
|
|
16183
|
-
let f = a.commandInfo.IsDisabled || a.commandInfo.isDisabled;
|
|
16184
|
-
return f || (() => !1);
|
|
16185
|
-
}), o = (f) => {
|
|
16186
|
-
t("click", f, a.row);
|
|
16177
|
+
let s = a.commandInfo.IsDisabled || a.commandInfo.isDisabled;
|
|
16178
|
+
return s || (() => !1);
|
|
16179
|
+
}), l = (s) => {
|
|
16180
|
+
t("click", s, a.row);
|
|
16187
16181
|
};
|
|
16188
|
-
return (
|
|
16182
|
+
return (s, o) => typeof e.commandInfo == "string" ? (openBlock(), createBlock(unref(ElLink), {
|
|
16189
16183
|
key: 0,
|
|
16190
16184
|
style: { "margin-right": "5px" },
|
|
16191
16185
|
type: n.value,
|
|
16192
|
-
onClick:
|
|
16186
|
+
onClick: o[0] || (o[0] = (f) => l(e.commandInfo))
|
|
16193
16187
|
}, {
|
|
16194
16188
|
default: withCtx(() => [
|
|
16195
16189
|
createTextVNode(toDisplayString(unref(L)(e.commandInfo)), 1)
|
|
16196
16190
|
]),
|
|
16197
16191
|
_: 1
|
|
16198
|
-
}, 8, ["type"])) :
|
|
16199
|
-
|
|
16200
|
-
|
|
16201
|
-
|
|
16202
|
-
|
|
16203
|
-
|
|
16204
|
-
|
|
16205
|
-
|
|
16206
|
-
|
|
16207
|
-
|
|
16208
|
-
|
|
16209
|
-
|
|
16210
|
-
}, 8, ["type", "disabled"])) : createCommentVNode("", !0)
|
|
16211
|
-
], 64)) : createCommentVNode("", !0);
|
|
16192
|
+
}, 8, ["type"])) : (openBlock(), createBlock(unref(ElLink), {
|
|
16193
|
+
key: 1,
|
|
16194
|
+
style: { "margin-right": "5px" },
|
|
16195
|
+
type: n.value,
|
|
16196
|
+
onClick: o[1] || (o[1] = (f) => l(e.commandInfo.Name)),
|
|
16197
|
+
disabled: i.value(e.row)
|
|
16198
|
+
}, {
|
|
16199
|
+
default: withCtx(() => [
|
|
16200
|
+
createTextVNode(toDisplayString(unref(L)(e.commandInfo.Name)), 1)
|
|
16201
|
+
]),
|
|
16202
|
+
_: 1
|
|
16203
|
+
}, 8, ["type", "disabled"]));
|
|
16212
16204
|
}
|
|
16213
16205
|
}, _hoisted_1$g = {
|
|
16214
16206
|
key: 0,
|
|
@@ -16224,8 +16216,13 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16224
16216
|
emits: ["command"],
|
|
16225
16217
|
setup(e, { emit: r }) {
|
|
16226
16218
|
const t = r, a = e, n = (l, s) => {
|
|
16227
|
-
let o = a.commandArray.Where((f) =>
|
|
16228
|
-
|
|
16219
|
+
let o = a.commandArray.Where((f) => {
|
|
16220
|
+
let c = "";
|
|
16221
|
+
typeof f == "string" ? c = f : c = f.Name;
|
|
16222
|
+
let _ = f.IsShow ?? f.isShow;
|
|
16223
|
+
return !(_ && !_(l, a.powerArray) || (f.CheckPower ?? f.checkPower) && !a.powerArray.Exists((u) => u.Name == c));
|
|
16224
|
+
});
|
|
16225
|
+
switch (console.log(o), s) {
|
|
16229
16226
|
case 1:
|
|
16230
16227
|
return o;
|
|
16231
16228
|
case 2:
|
|
@@ -16261,7 +16258,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16261
16258
|
createTextVNode(toDisplayString(unref(L)(o)), 1)
|
|
16262
16259
|
]),
|
|
16263
16260
|
_: 2
|
|
16264
|
-
}, 1032, ["command"])) :
|
|
16261
|
+
}, 1032, ["command"])) : (openBlock(), createBlock(unref(ElDropdownItem), {
|
|
16265
16262
|
key: 1,
|
|
16266
16263
|
command: o.Name,
|
|
16267
16264
|
disabled: o.IsDisabled ? o.IsDisabled(e.row) : !1
|
|
@@ -16270,7 +16267,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16270
16267
|
createTextVNode(toDisplayString(unref(L)(o.Name)), 1)
|
|
16271
16268
|
]),
|
|
16272
16269
|
_: 2
|
|
16273
|
-
}, 1032, ["command", "disabled"]))
|
|
16270
|
+
}, 1032, ["command", "disabled"]))
|
|
16274
16271
|
], 64))), 256))
|
|
16275
16272
|
]),
|
|
16276
16273
|
_: 1
|
|
@@ -16294,7 +16291,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16294
16291
|
row: e.row,
|
|
16295
16292
|
onClick: i
|
|
16296
16293
|
}, null, 8, ["commandInfo", "row"]))), 256))
|
|
16297
|
-
])) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(
|
|
16294
|
+
])) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(n(e.row, 1), (o) => (openBlock(), createBlock(_sfc_main$m, {
|
|
16298
16295
|
commandInfo: o,
|
|
16299
16296
|
row: e.row,
|
|
16300
16297
|
onClick: i
|