@airpower/web 0.2.67 → 0.2.69
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/main.js +11 -3
- package/dist/web.css +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1280,7 +1280,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1280
1280
|
return true;
|
|
1281
1281
|
}
|
|
1282
1282
|
if (props.permission) {
|
|
1283
|
-
|
|
1283
|
+
const forbidden = !PermissionUtil.has(props.permission) && !WebConfig.disablePermission;
|
|
1284
|
+
if (forbidden) {
|
|
1285
|
+
console.warn(`[AButton] 权限不足(${props.permission})`);
|
|
1286
|
+
}
|
|
1287
|
+
return forbidden;
|
|
1284
1288
|
}
|
|
1285
1289
|
return false;
|
|
1286
1290
|
});
|
|
@@ -17360,7 +17364,11 @@ function useTableButton(params) {
|
|
|
17360
17364
|
if (!permission) {
|
|
17361
17365
|
return true;
|
|
17362
17366
|
}
|
|
17363
|
-
|
|
17367
|
+
const hasPermission2 = PermissionUtil.has(permission);
|
|
17368
|
+
if (!hasPermission2) {
|
|
17369
|
+
console.warn(`[ATable] 权限不足 (${permission})`);
|
|
17370
|
+
}
|
|
17371
|
+
return hasPermission2;
|
|
17364
17372
|
}
|
|
17365
17373
|
function isAddRowDisabled(row) {
|
|
17366
17374
|
if (!hasPermission(addRowPermission)) {
|
|
@@ -18262,7 +18270,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18262
18270
|
money: getValue(scope, item.key)
|
|
18263
18271
|
}, null, 8, ["money"])) : item.payload ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
18264
18272
|
item.array ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
18265
|
-
createTextVNode(toDisplayString(getPayloadArray(scope, item.key).map((
|
|
18273
|
+
createTextVNode(toDisplayString(getPayloadArray(scope, item.key).map((payload) => payload.getPayloadLabel()).join(",")), 1)
|
|
18266
18274
|
], 64)) : (openBlock(), createBlock(unref(APayload), {
|
|
18267
18275
|
key: 1,
|
|
18268
18276
|
payload: getValue(scope, item.key)
|
package/dist/web.css
CHANGED
|
@@ -1307,7 +1307,7 @@ textarea {
|
|
|
1307
1307
|
margin-bottom: 10px;
|
|
1308
1308
|
}
|
|
1309
1309
|
.a-table-container .a-table-toolbar .a-table-toolbar-left .el-button + .el-button {
|
|
1310
|
-
margin-left:
|
|
1310
|
+
margin-left: 0;
|
|
1311
1311
|
}
|
|
1312
1312
|
.a-table-container .a-table-toolbar .a-table-toolbar-right {
|
|
1313
1313
|
flex: 1;
|