@pubinfo/module-rbac 2.0.1 → 2.0.3
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/LICENSE +21 -0
- package/dist/{IconSelect-D50456Yh.js → IconSelect-BMlRIxBx.js} +117 -114
- package/dist/{IconSelect-BEetYi8i.js → IconSelect-BeZfjsl0.js} +1 -1
- package/dist/IconSelect.css +1 -1
- package/dist/{ResourceEdit-BVdRFGOK.js → ResourceEdit-BSaHxlbT.js} +1 -1
- package/dist/{ResourceEdit-JPc5dCoU.js → ResourceEdit-Beu0QLBf.js} +2 -2
- package/dist/index.css +1 -1
- package/dist/index.js +8 -8
- package/dist/{resource-Bzx2Tx8m.js → resource-UmUb9yZa.js} +2 -2
- package/package.json +3 -3
- package/src/components/ResourceIcones/Select.vue +76 -67
package/dist/index.js
CHANGED
|
@@ -75,9 +75,9 @@ import './index.css';var We = {
|
|
|
75
75
|
"src/views/page_w_setting/index.vue": () => import("./page_w_setting-B_im6vBo.js"),
|
|
76
76
|
"src/views/position/index.vue": () => import("./position-BkpbHXYP.js"),
|
|
77
77
|
"src/views/region/index.vue": () => import("./region-DVkbjI9t.js"),
|
|
78
|
-
"src/views/resource/index.vue": () => import("./resource-
|
|
79
|
-
"src/views/role_group/index.vue": () => import("./role_group-DqzFHwKx.js"),
|
|
78
|
+
"src/views/resource/index.vue": () => import("./resource-UmUb9yZa.js"),
|
|
80
79
|
"src/views/role/index.vue": () => import("./role-B2tKqUvP.js"),
|
|
80
|
+
"src/views/role_group/index.vue": () => import("./role_group-DqzFHwKx.js"),
|
|
81
81
|
"src/views/safe_setting/index.vue": () => import("./safe_setting-uj9p_wW0.js"),
|
|
82
82
|
"src/views/tabbar_setting/index.vue": () => import("./tabbar_setting-HFHrLVgt.js"),
|
|
83
83
|
"src/views/tenant/index.vue": () => import("./tenant-C8kVbfgt.js"),
|
|
@@ -89,10 +89,10 @@ import './index.css';var We = {
|
|
|
89
89
|
"src/views/data-permission/components/createAndEditDataPermission.vue": () => import("./createAndEditDataPermission-CAaxueTy.js"),
|
|
90
90
|
"src/views/dictionary/components/drawerDictionary.vue": () => import("./drawerDictionary-Bk0BgL7i.js"),
|
|
91
91
|
"src/views/dictionary/components/drawerDictionaryItem.vue": () => import("./drawerDictionaryItem-Dy2T56AH.js"),
|
|
92
|
+
"src/views/group/components/drawerGroup.vue": () => import("./drawerGroup-ZyzAWXOl.js"),
|
|
92
93
|
"src/views/log_center/components/browserType.vue": () => import("./browserType-BGl2j5RW.js"),
|
|
93
94
|
"src/views/log_center/components/loginHistoryDetail.vue": () => import("./loginHistoryDetail-DiuNa6Sv.js"),
|
|
94
95
|
"src/views/log_center/components/operateHistoryDetail.vue": () => import("./operateHistoryDetail-r30ZBNqw.js"),
|
|
95
|
-
"src/views/group/components/drawerGroup.vue": () => import("./drawerGroup-ZyzAWXOl.js"),
|
|
96
96
|
"src/views/organization/components/drawerOrganization.vue": () => import("./drawerOrganization-HSVB8JzO.js"),
|
|
97
97
|
"src/views/organization/components/drawerRole.vue": () => import("./drawerRole-BVeaz3Yb.js"),
|
|
98
98
|
"src/views/position/components/drawerPosition.vue": () => import("./drawerPosition-vsuG4JYe.js"),
|
|
@@ -100,15 +100,15 @@ import './index.css';var We = {
|
|
|
100
100
|
"src/views/resource/components/ComponentSelect.vue": () => import("./ComponentSelect-Bhwuc86o.js"),
|
|
101
101
|
"src/views/resource/components/DynamicRoutesForm.vue": () => import("./DynamicRoutesForm-D35jFnxF.js"),
|
|
102
102
|
"src/views/resource/components/HoverCard.vue": () => import("./HoverCard-U5WTpvFy.js"),
|
|
103
|
-
"src/views/resource/components/IconSelect.vue": () => import("./IconSelect-
|
|
103
|
+
"src/views/resource/components/IconSelect.vue": () => import("./IconSelect-BeZfjsl0.js"),
|
|
104
104
|
"src/views/resource/components/ImportExport.vue": () => import("./ImportExport-D8uzaOMz.js"),
|
|
105
105
|
"src/views/resource/components/MetaForm.vue": () => import("./MetaForm-BSGuZXgj.js"),
|
|
106
|
-
"src/views/resource/components/ResourceEdit.vue": () => import("./ResourceEdit-
|
|
106
|
+
"src/views/resource/components/ResourceEdit.vue": () => import("./ResourceEdit-Beu0QLBf.js"),
|
|
107
107
|
"src/views/resource/components/RoleRelation.vue": () => import("./RoleRelation-YaSQQxQ2.js"),
|
|
108
|
-
"src/views/role_group/components/ResourceRelation.vue": () => import("./ResourceRelation-CKolCnHC.js"),
|
|
109
|
-
"src/views/role_group/components/drawerRole.vue": () => import("./drawerRole-CzTW_I2H.js"),
|
|
110
108
|
"src/views/role/components/ResourceRelation.vue": () => import("./ResourceRelation-BRseTUw2.js"),
|
|
111
109
|
"src/views/role/components/drawerRole.vue": () => import("./drawerRole-tan379DU.js"),
|
|
110
|
+
"src/views/role_group/components/ResourceRelation.vue": () => import("./ResourceRelation-CKolCnHC.js"),
|
|
111
|
+
"src/views/role_group/components/drawerRole.vue": () => import("./drawerRole-CzTW_I2H.js"),
|
|
112
112
|
"src/views/tenant/components/TenantEdit.vue": () => import("./TenantEdit-C28473_2.js"),
|
|
113
113
|
"src/views/user/components/OrgAndPosition.vue": () => import("./OrgAndPosition-CF7ZJtNB.js"),
|
|
114
114
|
"src/views/user/components/UserAuthorization.vue": () => import("./UserAuthorization-C4SLMNmh.js"),
|
|
@@ -1413,7 +1413,7 @@ const rf = {
|
|
|
1413
1413
|
children: [
|
|
1414
1414
|
{
|
|
1415
1415
|
path: "resource",
|
|
1416
|
-
component: () => import("./resource-
|
|
1416
|
+
component: () => import("./resource-UmUb9yZa.js"),
|
|
1417
1417
|
name: "Resource",
|
|
1418
1418
|
meta: {
|
|
1419
1419
|
title: "资源管理",
|
|
@@ -6,11 +6,11 @@ import "./enum-CYW8g64p.js";
|
|
|
6
6
|
import { b as r, c as i, d as a, e as o } from "./enum-BMY6bmPA.js";
|
|
7
7
|
import "./DynamicRoutesForm-CE2RPs7y.js";
|
|
8
8
|
import "./HoverCard-B79q5sly.js";
|
|
9
|
-
import "./IconSelect-
|
|
9
|
+
import "./IconSelect-BMlRIxBx.js";
|
|
10
10
|
import "./dayjs.min-CdDcH50N.js";
|
|
11
11
|
import { b as s } from "./ImportExport-ByRTssxP.js";
|
|
12
12
|
import "./MetaForm-DErrpELP.js";
|
|
13
|
-
import { b as c } from "./ResourceEdit-
|
|
13
|
+
import { b as c } from "./ResourceEdit-BSaHxlbT.js";
|
|
14
14
|
import { b as l } from "./RoleRelation-DXZxscPY.js";
|
|
15
15
|
import { PubinfoIcon as u, useAuth as d } from "pubinfo";
|
|
16
16
|
import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, openBlock as b, ref as x, resolveDirective as S, toDisplayString as C, unref as w, withCtx as T, withDirectives as E } from "vue";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo/module-rbac",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@pubinfo/pro-components": "^1.7.3",
|
|
25
25
|
"alova": "^3.3.4",
|
|
26
26
|
"ant-design-vue": "^4.2.6",
|
|
27
|
-
"pubinfo": "2.0.
|
|
27
|
+
"pubinfo": "2.0.3"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@destyler/color-picker": "^0.1.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"alova": "^3.3.4",
|
|
49
49
|
"ant-design-vue": "^4.2.6",
|
|
50
50
|
"type-fest": "^4.41.0",
|
|
51
|
-
"pubinfo": "2.0.
|
|
51
|
+
"pubinfo": "2.0.3"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"dev": "pubinfo build -w --sourcemap",
|
|
@@ -356,77 +356,86 @@ const previewBoxPadding = 4; // 与 shapeBoxDefaults 中的 padding 对齐
|
|
|
356
356
|
/>
|
|
357
357
|
</div>
|
|
358
358
|
<!-- 图标颜色设置:始终显示;非 AntD 图标时禁用 -->
|
|
359
|
-
<div class="flex items-center gap-3 w-full">
|
|
360
|
-
<
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
>
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
<
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
359
|
+
<div class="flex items-center gap-3 mb-0! w-full flex-col">
|
|
360
|
+
<div class="flex">
|
|
361
|
+
<label class="text-12px opacity-70 w-14 shrink-0 flex items-center">
|
|
362
|
+
图标色
|
|
363
|
+
<a-tooltip>
|
|
364
|
+
<template #title>
|
|
365
|
+
仅 Ant Design 图标有效
|
|
366
|
+
</template>
|
|
367
|
+
<PubinfoIcon name="i-carbon-information" size="12px" class="ml-1 cursor-help" />
|
|
368
|
+
</a-tooltip>
|
|
369
|
+
</label>
|
|
370
|
+
<div class="flex flex-col">
|
|
371
|
+
<a-input
|
|
372
|
+
v-model:value="iconColor"
|
|
373
|
+
allow-clear
|
|
374
|
+
:placeholder="boxType === 'null' ? '默认' : '#ffffff'"
|
|
375
|
+
size="small"
|
|
376
|
+
class="flex-1 min-w-0"
|
|
377
|
+
:disabled="!isAntdIcon"
|
|
378
|
+
>
|
|
379
|
+
<template #prefix>
|
|
380
|
+
<div class="relative inline-flex items-center">
|
|
381
|
+
<button
|
|
382
|
+
type="button"
|
|
383
|
+
:disabled="!isAntdIcon"
|
|
384
|
+
class="w-4 h-4 rounded border border-gray-300 dark:border-gray-700"
|
|
385
|
+
:class="!isAntdIcon ? 'opacity-50 cursor-not-allowed' : ''"
|
|
386
|
+
:style="{ background: iconColor || '#ffffff' }"
|
|
387
|
+
@click="openIconColorPicker"
|
|
388
|
+
/>
|
|
389
|
+
<input
|
|
390
|
+
ref="iconColorPickerRef"
|
|
391
|
+
type="color"
|
|
392
|
+
:value="iconColor || '#ffffff'"
|
|
393
|
+
:disabled="!isAntdIcon"
|
|
394
|
+
class="absolute left-0 top-0 opacity-0 pointer-events-none"
|
|
395
|
+
style="width:16px;height:16px;"
|
|
396
|
+
@input="iconColor = ($event.target as HTMLInputElement).value"
|
|
397
|
+
>
|
|
398
|
+
</div>
|
|
399
|
+
</template>
|
|
400
|
+
</a-input>
|
|
401
|
+
</div>
|
|
393
402
|
</div>
|
|
394
403
|
</div>
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
</
|
|
418
|
-
</
|
|
404
|
+
<!-- 预览:固定底部 -->
|
|
405
|
+
<div class="w-full mt-auto flex aspect-square">
|
|
406
|
+
<div class="flex-1 w-full h-full py-4 rounded-md border-t border-t-dashed border-t-[#d0d7de] dark:border-t-[#30363d] flex flex-col items-center gap-2">
|
|
407
|
+
<template v-if="tempValueRef">
|
|
408
|
+
<div class="w-full h-full flex items-center justify-center">
|
|
409
|
+
<PubinfoIcon
|
|
410
|
+
v-if="boxType === 'null'"
|
|
411
|
+
:name="tempValueRef"
|
|
412
|
+
:size="80"
|
|
413
|
+
:color="(isAntdIcon && iconColor) ? iconColor : undefined"
|
|
414
|
+
/>
|
|
415
|
+
<PubinfoIcon
|
|
416
|
+
v-else
|
|
417
|
+
:name="tempValueRef"
|
|
418
|
+
:box="boxType"
|
|
419
|
+
:size="80"
|
|
420
|
+
:angle="boxAngle"
|
|
421
|
+
:background="boxBackground"
|
|
422
|
+
:radius="boxRadius"
|
|
423
|
+
:color="isAntdIcon ? (iconColor || '#ffffff') : undefined"
|
|
424
|
+
/>
|
|
425
|
+
</div>
|
|
426
|
+
</template>
|
|
427
|
+
</div>
|
|
419
428
|
</div>
|
|
420
429
|
</div>
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
</
|
|
430
|
+
<!-- 侧栏底部操作按钮 -->
|
|
431
|
+
<div class="mt-4 flex justify-end gap-2">
|
|
432
|
+
<a-button @click="handleClose">
|
|
433
|
+
取消
|
|
434
|
+
</a-button>
|
|
435
|
+
<a-button type="primary" @click="handleConfirm">
|
|
436
|
+
确定
|
|
437
|
+
</a-button>
|
|
438
|
+
</div>
|
|
430
439
|
</div>
|
|
431
440
|
</div>
|
|
432
441
|
</div>
|