@pubinfo-pr/module-rbac 0.204.4 → 0.220.1
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/ComponentSelect-A7uGTuHW.js +3498 -0
- package/dist/{DynamicRoutesForm-DP_sq_Uu.js → DynamicRoutesForm-DSzy_bh5.js} +43 -42
- package/dist/HCheckList-ODQHidN8.js +37 -0
- package/dist/HoverCard-CmJCoa2b.js +44 -0
- package/dist/{IconSelect-CiLpc63Z.js → IconSelect-DouEg3xY.js} +89 -88
- package/dist/ImportExport-DisdLoY8.js +342 -0
- package/dist/{LayoutForm-Cp4bBrYl.js → LayoutForm-Bdfs5WeK.js} +35 -34
- package/dist/{MetaForm-CVSgktB_.js → MetaForm-CcDwS8vh.js} +6128 -6143
- package/dist/{OrgAndPosition-ClASobEv.js → OrgAndPosition-jDX7m0HD.js} +61 -60
- package/dist/{ResourceEdit-w8qh1MFO.js → ResourceEdit-0BYZRye_.js} +128 -127
- package/dist/{ResourceRelation-ChEwIbWM.js → ResourceRelation-CU-QpUhP.js} +25 -25
- package/dist/{ResourceRelation-D_j898zp.js → ResourceRelation-roz0a8Td.js} +35 -34
- package/dist/{RoleRelation-DzyVn5dk.js → RoleRelation-BQQFaum0.js} +28 -27
- package/dist/{RoleSelector-Cd6_RUsc.js → RoleSelector-gkar_UGG.js} +89 -89
- package/dist/{TenantEdit-BOvXk7BZ.js → TenantEdit-BsahDUlf.js} +94 -93
- package/dist/{UserAuthorization-DLeivbs7.js → UserAuthorization-2Fl4IGw7.js} +81 -80
- package/dist/{UserEdit-YKS1FVW_.js → UserEdit-CX3Qau8T.js} +102 -101
- package/dist/{animation_item-BU-LInxP.js → animation_item-DBOz2rcX.js} +20 -22
- package/dist/{blackWhiteList-CNQltBqC.js → blackWhiteList-DbG7JH8n.js} +69 -69
- package/dist/blackWhiteList.css +1 -1
- package/dist/{breadcrumb_setting-Ds-XJRR1.js → breadcrumb_setting-Dx2Li6xt.js} +19 -19
- package/dist/{browserType-Dn_hQtAN.js → browserType-B8A1Osvk.js} +11 -10
- package/dist/chunk-DiMWNkAf.js +18 -0
- package/dist/cloneDeep-CSOSavu3.js +6 -0
- package/dist/components/GroupSelector/index.vue.d.ts +7 -1
- package/dist/components/ResourceIcones/Select.vue.d.ts +2 -1
- package/dist/components/ResourceSelector/index.vue.d.ts +7 -1
- package/dist/components/RoleSelector/RoleSearch.vue.d.ts +9 -1
- package/dist/components/RoleSelector/RoleSelector.vue.d.ts +7 -1
- package/dist/{createAndEditDataPermission-CaOBJgoV.js → createAndEditDataPermission-8_KNLzJT.js} +49 -48
- package/dist/createAndEditDataPermission.css +1 -1
- package/dist/{data-permission-ZRQ-Aoib.js → data-permission-LpuDLDm0.js} +41 -41
- package/dist/{dayjs.min-sGDSMYRj.js → dayjs.min-Cb7gQFd4.js} +1 -1
- package/dist/{dictionary-CtGgtPfc.js → dictionary-CEaxjqZe.js} +46 -46
- package/dist/drawerBlackWhiteList-DXLdWurZ.js +120 -0
- package/dist/drawerDictionary-DYJTAZr6.js +126 -0
- package/dist/drawerDictionaryItem-BChXD2-q.js +138 -0
- package/dist/{drawerGroup-DEuiiDPP.js → drawerGroup-CdnZkZxi.js} +67 -66
- package/dist/drawerOrganization-CwtSFUj0.js +247 -0
- package/dist/drawerPosition-CfyfeQCN.js +166 -0
- package/dist/drawerRegion-DAwY_29K.js +183 -0
- package/dist/drawerRole-B7uCfHk-.js +154 -0
- package/dist/{drawerRole-Dv61PBZR.js → drawerRole-DK6DrinO.js} +77 -76
- package/dist/{drawerRole-DNDyOvXw.js → drawerRole-DrzMHL0O.js} +69 -68
- package/dist/{group-BbkZjv5e.js → group-CaOhkh72.js} +48 -48
- package/dist/group.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +613 -689
- package/dist/isEmpty-BjEzPyCa.js +12 -0
- package/dist/{itemlist-By-FV6pN.js → itemlist-CFwRUV2Y.js} +44 -44
- package/dist/{layout_setting-BUAgQ1Bk.js → layout_setting-79srmFgJ.js} +11 -11
- package/dist/layout_setting.css +1 -1
- package/dist/{log-vjU7aBPR.js → log-BYris9iT.js} +6 -6
- package/dist/{loginHistoryDetail-C7GT2yME.js → loginHistoryDetail-CZnfmbbM.js} +24 -23
- package/dist/{login_history-D08W00Qu.js → login_history-BiwaLpxA.js} +33 -33
- package/dist/login_history.css +1 -1
- package/dist/{menu_setting-5Jet091Q.js → menu_setting-ChueWHs4.js} +42 -42
- package/dist/not-data-Bml86wdH.js +3 -0
- package/dist/{operateHistoryDetail-BaNJRfwy.js → operateHistoryDetail-HId-EZzy.js} +27 -26
- package/dist/{operate_history-kJwIuPg2.js → operate_history-sPd9IHMV.js} +33 -33
- package/dist/operate_history.css +1 -1
- package/dist/{organization-Cmj3DUXl.js → organization-Dv3FbKke.js} +1438 -1444
- package/dist/organization.css +1 -1
- package/dist/{other_setting-DQ70WnZK.js → other_setting-BEV_UK0g.js} +86 -86
- package/dist/other_setting.css +1 -1
- package/dist/{page_animation_setting-Lp6cMuFM.js → page_animation_setting-Cp5OnFpd.js} +33 -33
- package/dist/page_animation_setting.css +1 -1
- package/dist/{page_w_setting-CD_HtSUv.js → page_w_setting-Q--ct16C.js} +11 -11
- package/dist/page_w_setting.css +1 -1
- package/dist/{position-CLpbgKGj.js → position-CCZ2MSMP.js} +41 -41
- package/dist/{region-Dd9pt_Si.js → region-D3mjqB8H.js} +62 -62
- package/dist/{resource-C7dXB0EE.js → resource-DaQ7CvM_.js} +69 -69
- package/dist/{role-JGtvRObt.js → role-4UgEw3nH.js} +49 -49
- package/dist/{role_group-CKOb_m63.js → role_group-hkRlCnyl.js} +41 -41
- package/dist/{safe_setting-G_ZP-jWQ.js → safe_setting-4fv3qNRZ.js} +85 -85
- package/dist/{setItem-yKhjmUh0.js → setItem-Vkcwkj-O.js} +33 -32
- package/dist/setItem.css +1 -1
- package/dist/{tabbar_setting-B3kMhRNm.js → tabbar_setting-kbuTvrLB.js} +36 -36
- package/dist/{tenant-BBiCJkU_.js → tenant-lWfGw2u1.js} +48 -48
- package/dist/{theme_setting-vhNDLlkc.js → theme_setting-CEb7UYQO.js} +47 -47
- package/dist/theme_setting.css +1 -1
- package/dist/{toolbar_setting-DNBdxeGP.js → toolbar_setting-BG-k2UFc.js} +32 -32
- package/dist/useAppAndResource-B7FmNfKG.js +52 -0
- package/dist/{user-DvCyUhZW.js → user-BkUpcQC8.js} +96 -96
- package/dist/{vanilla-picker-DcG96G63.js → vanilla-picker-Byb6q187.js} +239 -239
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +5 -1
- package/dist/views/components/setItem.vue.d.ts +5 -1
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -1
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +5 -1
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +5 -1
- package/dist/views/group/components/drawerGroup.vue.d.ts +5 -1
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +8 -1
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +8 -1
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +5 -1
- package/dist/views/organization/components/drawerRole.vue.d.ts +5 -1
- package/dist/views/other_setting/interface.d.ts +1 -2
- package/dist/views/position/components/drawerPosition.vue.d.ts +5 -1
- package/dist/views/region/components/drawerRegion.vue.d.ts +5 -1
- package/dist/views/resource/components/ImportExport.vue.d.ts +5 -1
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +5 -1
- package/dist/views/role/components/drawerRole.vue.d.ts +5 -1
- package/dist/views/role_group/components/drawerRole.vue.d.ts +5 -1
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +5 -1
- package/dist/views/user/components/UserAuthorization.vue.d.ts +5 -1
- package/dist/views/user/components/UserEdit.vue.d.ts +5 -1
- package/dist/{watermark_setting-CXp4Og0Y.js → watermark_setting-Cl2EtPAa.js} +98 -98
- package/dist/watermark_setting.css +1 -1
- package/package.json +13 -13
- package/src/views/other_setting/index.vue +2 -2
- package/src/views/other_setting/interface.ts +1 -1
- package/dist/ComponentSelect-D0OCk6H1.js +0 -3572
- package/dist/ComponentSelect-WO-3S5rH.js +0 -2
- package/dist/DynamicRoutesForm-DjZ3eVLW.js +0 -4
- package/dist/HCheckList-B5Qk_HBI.js +0 -2
- package/dist/HCheckList-DLBewmPw.js +0 -36
- package/dist/HoverCard-69ZIOivd.js +0 -2
- package/dist/HoverCard-BDFcxxvk.js +0 -43
- package/dist/IconSelect-C_Gj5G4I.js +0 -3
- package/dist/ImportExport-CL5uPlby.js +0 -342
- package/dist/ImportExport-CPy2rvv7.js +0 -4
- package/dist/LayoutForm-QFjwakyQ.js +0 -4
- package/dist/MetaForm-Bb-um1Zo.js +0 -4
- package/dist/OrgAndPosition-DoiGY5xb.js +0 -2
- package/dist/ResourceEdit-BTaNdwC_.js +0 -10
- package/dist/ResourceRelation-BIOzTOKA.js +0 -2
- package/dist/RoleRelation-CyTcqRfZ.js +0 -2
- package/dist/TenantEdit-BlMmL6q5.js +0 -2
- package/dist/UserAuthorization-qGr1Sdat.js +0 -3
- package/dist/UserEdit-CwfyqNWf.js +0 -3
- package/dist/animation_item-GzGItm3s.js +0 -2
- package/dist/browserType-BXTT4j6i.js +0 -2
- package/dist/chunk-Cpsc_9al.js +0 -18
- package/dist/cloneDeep-DDAtsK42.js +0 -7
- package/dist/createAndEditDataPermission-CChlLDUm.js +0 -5
- package/dist/drawerBlackWhiteList-BqIDyn2Q.js +0 -2
- package/dist/drawerBlackWhiteList-CkbZ_9PZ.js +0 -119
- package/dist/drawerDictionary-D911w7pC.js +0 -2
- package/dist/drawerDictionary-dMHs-6Cw.js +0 -125
- package/dist/drawerDictionaryItem-CbTa_qL-.js +0 -137
- package/dist/drawerDictionaryItem-DLUI5Yuc.js +0 -2
- package/dist/drawerGroup-CEEDMBg9.js +0 -3
- package/dist/drawerOrganization-CqEMD3gE.js +0 -246
- package/dist/drawerOrganization-mks5NMd9.js +0 -2
- package/dist/drawerPosition-Bd0s7qze.js +0 -165
- package/dist/drawerPosition-DwlTrlGA.js +0 -2
- package/dist/drawerRegion-DUbQAZuV.js +0 -182
- package/dist/drawerRegion-DwVzsZfT.js +0 -2
- package/dist/drawerRole-BNrbcSmr.js +0 -3
- package/dist/drawerRole-BxUIekjh.js +0 -3
- package/dist/drawerRole-CyA2oFht.js +0 -4
- package/dist/drawerRole-D5X7oHB_.js +0 -153
- package/dist/isEmpty-BvRqbmpu.js +0 -13
- package/dist/loginHistoryDetail-CkH5UUGU.js +0 -3
- package/dist/not-data-Cx--tk_h.js +0 -2
- package/dist/not-data-tyTawN37.js +0 -2
- package/dist/operateHistoryDetail-CeVPJzD6.js +0 -3
- package/dist/routeSystem-DXMoWhFo.js +0 -2
- package/dist/setItem-Qa7UapHO.js +0 -4
- package/dist/useAppAndResource-CPL2VpOJ.js +0 -52
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as __exportAll } from "./chunk-DiMWNkAf.js";
|
|
2
|
+
import { t as ComponentSelect_default } from "./ComponentSelect-A7uGTuHW.js";
|
|
2
3
|
import { r as RESOURCE_TYPE } from "./enum-3E_sUqRF.js";
|
|
3
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeModels, openBlock, resolveComponent, unref, useModel, withCtx } from "vue";
|
|
4
5
|
import { Col, FormItem, Input } from "ant-design-vue/es";
|
|
5
|
-
var
|
|
6
|
+
var DynamicRoutesForm_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
7
|
name: "DynamicRoutesForm",
|
|
7
8
|
__name: "DynamicRoutesForm",
|
|
8
9
|
props: /* @__PURE__ */ mergeModels({ parent: {} }, {
|
|
@@ -13,9 +14,9 @@ var DynamicRoutesForm_default = /* @__PURE__ */ defineComponent({
|
|
|
13
14
|
modelModifiers: {}
|
|
14
15
|
}),
|
|
15
16
|
emits: ["update:modelValue"],
|
|
16
|
-
setup(
|
|
17
|
-
let
|
|
18
|
-
let e =
|
|
17
|
+
setup(e) {
|
|
18
|
+
let r = useModel(e, "modelValue"), i = computed(() => {
|
|
19
|
+
let e = r.value.type;
|
|
19
20
|
return {
|
|
20
21
|
path: [
|
|
21
22
|
RESOURCE_TYPE.INDEX,
|
|
@@ -40,15 +41,15 @@ var DynamicRoutesForm_default = /* @__PURE__ */ defineComponent({
|
|
|
40
41
|
RESOURCE_TYPE.LINK
|
|
41
42
|
].includes(e)
|
|
42
43
|
};
|
|
43
|
-
}),
|
|
44
|
-
return (
|
|
45
|
-
let
|
|
46
|
-
return unref(
|
|
47
|
-
unref(
|
|
44
|
+
}), a = computed(() => !0);
|
|
45
|
+
return (e, t) => {
|
|
46
|
+
let n = Input, o = FormItem, s = Col;
|
|
47
|
+
return unref(a) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
48
|
+
unref(i).path ? (openBlock(), createBlock(s, {
|
|
48
49
|
key: 0,
|
|
49
50
|
span: 12
|
|
50
51
|
}, {
|
|
51
|
-
default: withCtx(() => [createVNode(
|
|
52
|
+
default: withCtx(() => [createVNode(o, {
|
|
52
53
|
label: "资源路径",
|
|
53
54
|
name: ["meta", "url"],
|
|
54
55
|
rules: [{
|
|
@@ -56,9 +57,9 @@ var DynamicRoutesForm_default = /* @__PURE__ */ defineComponent({
|
|
|
56
57
|
message: "请输入资源路径"
|
|
57
58
|
}]
|
|
58
59
|
}, {
|
|
59
|
-
default: withCtx(() => [createVNode(
|
|
60
|
-
value:
|
|
61
|
-
"onUpdate:value":
|
|
60
|
+
default: withCtx(() => [createVNode(n, {
|
|
61
|
+
value: r.value.meta.url,
|
|
62
|
+
"onUpdate:value": t[0] ||= (e) => r.value.meta.url = e,
|
|
62
63
|
placeholder: "请输入资源路径",
|
|
63
64
|
maxlength: 256
|
|
64
65
|
}, null, 8, ["value"])]),
|
|
@@ -66,11 +67,11 @@ var DynamicRoutesForm_default = /* @__PURE__ */ defineComponent({
|
|
|
66
67
|
})]),
|
|
67
68
|
_: 1
|
|
68
69
|
})) : createCommentVNode("", !0),
|
|
69
|
-
unref(
|
|
70
|
+
unref(i).component ? (openBlock(), createBlock(s, {
|
|
70
71
|
key: 1,
|
|
71
72
|
span: 24
|
|
72
73
|
}, {
|
|
73
|
-
default: withCtx(() => [createVNode(
|
|
74
|
+
default: withCtx(() => [createVNode(o, {
|
|
74
75
|
label: "组件路径",
|
|
75
76
|
name: ["meta", "component"],
|
|
76
77
|
rules: [{
|
|
@@ -79,26 +80,26 @@ var DynamicRoutesForm_default = /* @__PURE__ */ defineComponent({
|
|
|
79
80
|
}]
|
|
80
81
|
}, {
|
|
81
82
|
default: withCtx(() => [createVNode(ComponentSelect_default, {
|
|
82
|
-
modelValue:
|
|
83
|
-
"onUpdate:modelValue":
|
|
84
|
-
scope:
|
|
85
|
-
"onUpdate:scope":
|
|
83
|
+
modelValue: r.value.meta.component,
|
|
84
|
+
"onUpdate:modelValue": t[1] ||= (e) => r.value.meta.component = e,
|
|
85
|
+
scope: r.value.meta.scope,
|
|
86
|
+
"onUpdate:scope": t[2] ||= (e) => r.value.meta.scope = e
|
|
86
87
|
}, null, 8, ["modelValue", "scope"])]),
|
|
87
88
|
_: 1
|
|
88
89
|
})]),
|
|
89
90
|
_: 1
|
|
90
91
|
})) : createCommentVNode("", !0),
|
|
91
|
-
unref(
|
|
92
|
+
unref(i).link ? (openBlock(), createBlock(s, {
|
|
92
93
|
key: 2,
|
|
93
94
|
span: 24
|
|
94
95
|
}, {
|
|
95
|
-
default: withCtx(() => [createVNode(
|
|
96
|
+
default: withCtx(() => [createVNode(o, {
|
|
96
97
|
label: "外链地址",
|
|
97
98
|
name: ["meta", "link"]
|
|
98
99
|
}, {
|
|
99
|
-
default: withCtx(() => [createVNode(
|
|
100
|
-
value:
|
|
101
|
-
"onUpdate:value":
|
|
100
|
+
default: withCtx(() => [createVNode(n, {
|
|
101
|
+
value: r.value.meta.link,
|
|
102
|
+
"onUpdate:value": t[3] ||= (e) => r.value.meta.link = e,
|
|
102
103
|
placeholder: "请输入外链地址",
|
|
103
104
|
maxlength: 256
|
|
104
105
|
}, null, 8, ["value"])]),
|
|
@@ -106,17 +107,17 @@ var DynamicRoutesForm_default = /* @__PURE__ */ defineComponent({
|
|
|
106
107
|
})]),
|
|
107
108
|
_: 1
|
|
108
109
|
})) : createCommentVNode("", !0),
|
|
109
|
-
unref(
|
|
110
|
+
unref(i).iframe ? (openBlock(), createBlock(s, {
|
|
110
111
|
key: 3,
|
|
111
112
|
span: 24
|
|
112
113
|
}, {
|
|
113
|
-
default: withCtx(() => [createVNode(
|
|
114
|
+
default: withCtx(() => [createVNode(o, {
|
|
114
115
|
label: "内嵌地址",
|
|
115
116
|
name: ["meta", "iframe"]
|
|
116
117
|
}, {
|
|
117
|
-
default: withCtx(() => [createVNode(
|
|
118
|
-
value:
|
|
119
|
-
"onUpdate:value":
|
|
118
|
+
default: withCtx(() => [createVNode(n, {
|
|
119
|
+
value: r.value.meta.iframe,
|
|
120
|
+
"onUpdate:value": t[4] ||= (e) => r.value.meta.iframe = e,
|
|
120
121
|
placeholder: "请输入内嵌地址",
|
|
121
122
|
maxlength: 256
|
|
122
123
|
}, null, 8, ["value"])]),
|
|
@@ -124,17 +125,17 @@ var DynamicRoutesForm_default = /* @__PURE__ */ defineComponent({
|
|
|
124
125
|
})]),
|
|
125
126
|
_: 1
|
|
126
127
|
})) : createCommentVNode("", !0),
|
|
127
|
-
unref(
|
|
128
|
+
unref(i).routeName ? (openBlock(), createBlock(s, {
|
|
128
129
|
key: 4,
|
|
129
130
|
span: 12
|
|
130
131
|
}, {
|
|
131
|
-
default: withCtx(() => [createVNode(
|
|
132
|
+
default: withCtx(() => [createVNode(o, {
|
|
132
133
|
label: "路由名称",
|
|
133
134
|
name: ["meta", "routeName"]
|
|
134
135
|
}, {
|
|
135
|
-
default: withCtx(() => [createVNode(
|
|
136
|
-
value:
|
|
137
|
-
"onUpdate:value":
|
|
136
|
+
default: withCtx(() => [createVNode(n, {
|
|
137
|
+
value: r.value.meta.routeName,
|
|
138
|
+
"onUpdate:value": t[5] ||= (e) => r.value.meta.routeName = e,
|
|
138
139
|
placeholder: "请输入路由名称(name)",
|
|
139
140
|
maxlength: 256
|
|
140
141
|
}, null, 8, ["value"])]),
|
|
@@ -142,18 +143,18 @@ var DynamicRoutesForm_default = /* @__PURE__ */ defineComponent({
|
|
|
142
143
|
})]),
|
|
143
144
|
_: 1
|
|
144
145
|
})) : createCommentVNode("", !0),
|
|
145
|
-
unref(
|
|
146
|
+
unref(i).activeMenu ? (openBlock(), createBlock(s, {
|
|
146
147
|
key: 5,
|
|
147
148
|
span: 12
|
|
148
149
|
}, {
|
|
149
|
-
default: withCtx(() => [createVNode(
|
|
150
|
+
default: withCtx(() => [createVNode(o, {
|
|
150
151
|
label: "激活路径",
|
|
151
152
|
name: ["meta", "activeMenu"],
|
|
152
153
|
tooltip: "跳转到当前路由时,需要激活的菜单路径。 当不在导航菜单中显示时,需要指定激活路径"
|
|
153
154
|
}, {
|
|
154
|
-
default: withCtx(() => [createVNode(
|
|
155
|
-
value:
|
|
156
|
-
"onUpdate:value":
|
|
155
|
+
default: withCtx(() => [createVNode(n, {
|
|
156
|
+
value: r.value.meta.activeMenu,
|
|
157
|
+
"onUpdate:value": t[6] ||= (e) => r.value.meta.activeMenu = e,
|
|
157
158
|
placeholder: "请输入激活路径",
|
|
158
159
|
maxlength: 256
|
|
159
160
|
}, null, 8, ["value"])]),
|
|
@@ -164,5 +165,5 @@ var DynamicRoutesForm_default = /* @__PURE__ */ defineComponent({
|
|
|
164
165
|
], 64)) : createCommentVNode("", !0);
|
|
165
166
|
};
|
|
166
167
|
}
|
|
167
|
-
});
|
|
168
|
-
export { DynamicRoutesForm_default as t };
|
|
168
|
+
}), DynamicRoutesForm_exports = /* @__PURE__ */ __exportAll({ default: () => DynamicRoutesForm_default }), DynamicRoutesForm_default = DynamicRoutesForm_vue_vue_type_script_setup_true_lang_default;
|
|
169
|
+
export { DynamicRoutesForm_exports as n, DynamicRoutesForm_default as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { r as __exportAll } from "./chunk-DiMWNkAf.js";
|
|
2
|
+
import { PubinfoIcon } from "pubinfo-pr";
|
|
3
|
+
import { Fragment, createBlock, createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, renderList, resolveComponent, toDisplayString, watch } from "vue";
|
|
4
|
+
var _hoisted_1 = { class: "inline-flex select-none items-center justify-center of-hidden rounded-md bg-stone-3 dark:bg-stone-7" }, _hoisted_2 = ["disabled", "onClick"], HCheckList_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "HCheckList",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
options: {},
|
|
9
|
+
disabled: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !1
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue", "change"],
|
|
15
|
+
setup(e, { emit: n }) {
|
|
16
|
+
let r = e, a = n;
|
|
17
|
+
watch(() => r.modelValue, (e) => {
|
|
18
|
+
a("change", e);
|
|
19
|
+
});
|
|
20
|
+
function o(e) {
|
|
21
|
+
a("update:modelValue", e);
|
|
22
|
+
}
|
|
23
|
+
return (n, r) => {
|
|
24
|
+
let i = PubinfoIcon;
|
|
25
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.options, (t) => (openBlock(), createElementBlock("button", {
|
|
26
|
+
key: t.value,
|
|
27
|
+
disabled: e.disabled || t.disabled,
|
|
28
|
+
class: normalizeClass(["flex cursor-pointer items-center truncate border-size-0 bg-inherit px-2 py-1.5 text-sm disabled:cursor-not-allowed disabled:opacity-50 hover:not-disabled:(bg-ui-primary text-ui-text)", { "text-ui-text bg-ui-primary": e.modelValue === t.value }]),
|
|
29
|
+
onClick: (e) => o(t.value)
|
|
30
|
+
}, [t.icon ? (openBlock(), createBlock(i, {
|
|
31
|
+
key: 0,
|
|
32
|
+
name: t.icon
|
|
33
|
+
}, null, 8, ["name"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(t.label), 1)], 64))], 10, _hoisted_2))), 128))]);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}), HCheckList_exports = /* @__PURE__ */ __exportAll({ default: () => HCheckList_default }), HCheckList_default = HCheckList_vue_vue_type_script_setup_true_lang_default;
|
|
37
|
+
export { HCheckList_exports as n, HCheckList_default as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { r as __exportAll } from "./chunk-DiMWNkAf.js";
|
|
2
|
+
import { Lt as useToggle } from "./index.js";
|
|
3
|
+
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderSlot, unref } from "vue";
|
|
4
|
+
import { DoubleRightOutlined } from "@ant-design/icons-vue";
|
|
5
|
+
import { theme } from "ant-design-vue";
|
|
6
|
+
var HoverCard_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: "HoverCard",
|
|
8
|
+
__name: "HoverCard",
|
|
9
|
+
props: { more: { type: Boolean } },
|
|
10
|
+
setup(e) {
|
|
11
|
+
let { token: n } = theme.useToken(), [i, a] = useToggle(), [o, s] = useToggle();
|
|
12
|
+
return (t, r) => (openBlock(), createElementBlock("div", {
|
|
13
|
+
class: normalizeClass(["relative rounded-t-lg h-[72px] px-5 border border-solid", [unref(o) && e.more ? "rounded-b-none" : "rounded-b-lg"]]),
|
|
14
|
+
style: normalizeStyle({
|
|
15
|
+
borderColor: unref(i) ? unref(n).colorPrimary : unref(n).colorBorder,
|
|
16
|
+
boxShadow: unref(i) ? unref(n).boxShadow : "none"
|
|
17
|
+
}),
|
|
18
|
+
onMouseenter: r[2] ||= (e) => unref(a)(!0),
|
|
19
|
+
onMouseleave: r[3] ||= (e) => unref(a)(!1)
|
|
20
|
+
}, [renderSlot(t.$slots, "default"), e.more ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [unref(o) ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "absolute bottom-1 left-0 w-full text-center text-xs space-x-1 cursor-pointer",
|
|
23
|
+
onClick: r[0] ||= (e) => unref(s)(!0)
|
|
24
|
+
}, [r[4] ||= createElementVNode("span", null, "更多", -1), createVNode(unref(DoubleRightOutlined), {
|
|
25
|
+
rotate: 90,
|
|
26
|
+
class: "animate-bounce"
|
|
27
|
+
})])), unref(o) ? (openBlock(), createElementBlock("div", {
|
|
28
|
+
key: 1,
|
|
29
|
+
class: "absolute top-[70px] -left-px z-50 w-[calc(100%+2px)] pt-5 px-5 border border-solid rounded-b-lg",
|
|
30
|
+
style: normalizeStyle({
|
|
31
|
+
borderColor: unref(i) ? unref(n).colorPrimary : unref(n).colorBorder,
|
|
32
|
+
backgroundColor: unref(n).colorBgElevated,
|
|
33
|
+
boxShadow: unref(n).boxShadow
|
|
34
|
+
})
|
|
35
|
+
}, [renderSlot(t.$slots, "more"), createElementVNode("div", {
|
|
36
|
+
class: "mt-5 pb-1 w-full text-center text-xs space-x-1 cursor-pointer",
|
|
37
|
+
onClick: r[1] ||= (e) => unref(s)(!1)
|
|
38
|
+
}, [r[5] ||= createElementVNode("span", null, "收起", -1), createVNode(unref(DoubleRightOutlined), {
|
|
39
|
+
rotate: 270,
|
|
40
|
+
class: "animate-bounce"
|
|
41
|
+
})])], 4)) : createCommentVNode("", !0)], 64)) : createCommentVNode("", !0)], 38));
|
|
42
|
+
}
|
|
43
|
+
}), HoverCard_exports = /* @__PURE__ */ __exportAll({ default: () => HoverCard_default }), HoverCard_default = HoverCard_vue_vue_type_script_setup_true_lang_default;
|
|
44
|
+
export { HoverCard_exports as n, HoverCard_default as t };
|