@yqg/permission 1.0.11-alpha.3 → 1.0.11-alpha.4
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/{apply-modal-CdEg70GU.js → apply-modal-DY2YGw0c.js} +3 -3
- package/dist/{checkbox-item-Duly3rHV.js → checkbox-item-CR9B5tmf.js} +3 -3
- package/dist/{index-Cv0dL3i_.js → index-BZLdofdQ.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/index.umd.cjs +28 -28
- package/dist/{yqg-permission-BbjS_00F.js → yqg-permission-DCP1zkIz.js} +209 -206
- package/package.json +1 -1
- package/src/components/yqg-permission.vue +2 -2
package/package.json
CHANGED
|
@@ -168,10 +168,10 @@
|
|
|
168
168
|
|
|
169
169
|
const allPermissions = computed(() => {
|
|
170
170
|
if (Array.isArray(props.permissions)) {
|
|
171
|
-
return props.permissions;
|
|
171
|
+
return props.permissions.map((item) => item.trim());
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
return props.permissions
|
|
174
|
+
return props.permissions?.split(',')?.map((item) => item.trim()) || [];
|
|
175
175
|
});
|
|
176
176
|
|
|
177
177
|
const businessCode = computed(() => {
|