@guodun/antdv 1.1.1 → 1.2.0

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.
@@ -3,155 +3,164 @@ import t from "../../pro-modal/index.mjs";
3
3
  import n from "../../icon/index.mjs";
4
4
  import { GTE_OPTIONS_URL as r, roleSelectorEmits as i, roleSelectorProps as a } from "./types.mjs";
5
5
  import o from "../../pro-dynamic-tags/index.mjs";
6
- import { computed as s, createVNode as c, defineComponent as l, isVNode as u, ref as d, watch as f } from "vue";
7
- import { Checkbox as p, CheckboxGroup as m, Empty as h, FormItemRest as g, InputSearch as _, Radio as v, RadioGroup as y, message as b } from "ant-design-vue";
6
+ import { computed as s, createVNode as c, defineComponent as l, isVNode as u, onMounted as d, ref as f, watch as p } from "vue";
7
+ import { Checkbox as m, CheckboxGroup as h, Empty as g, FormItemRest as _, InputSearch as v, Radio as y, RadioGroup as b, Spin as x, message as S } from "ant-design-vue";
8
8
  //#region src/components/role-selector/src/role.tsx
9
- function x(e) {
9
+ function C(e) {
10
10
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !u(e);
11
11
  }
12
- var S = e("role-selector"), C = /* @__PURE__ */ l({
12
+ var w = e("role-selector"), T = /* @__PURE__ */ l({
13
13
  name: "KRoleSelector",
14
14
  props: a,
15
15
  emits: i,
16
16
  setup(e, { emit: i, attrs: a, slots: l }) {
17
- let u = d([]), C = d(""), w = d([]), T = d([]), E = d([]), D = d(""), O = d(!1), k = d(e.options || []);
18
- if (e.isBuiltInRequest) {
19
- if (!e.http) throw Error("请传入http实例");
20
- e.http.get(`${e.prefix}${r}`).then((e) => {
21
- e.status === 0 && (w.value = e.data.list.map((e) => ({
22
- label: e.roleName,
23
- value: e.roleKey
24
- })), k.value = w.value, E.value = P(E.value), N(), A());
25
- }).catch((e) => {
26
- console.log(e);
27
- });
28
- }
29
- let A = () => {
30
- if (!O.value) {
31
- D.value = "";
17
+ let u = f([]), T = f(""), E = f([]), D = f([]), O = f([]), k = f(""), A = f(!1), j = f(e.options || []), M = f(!1), N = f(!1), P = (t) => t.filter((e) => e.enable !== !1).map((t) => ({
18
+ label: t.roleName,
19
+ value: t[e.valueField]
20
+ })), F = () => {
21
+ let e = T.value.trim();
22
+ e ? E.value = j.value.filter((t) => t.label?.includes(e) || t.value?.includes(e)) : E.value = [...j.value];
23
+ }, I = async () => {
24
+ if (!(!e.isBuiltInRequest || N.value)) {
25
+ if (!e.http) throw Error("请传入http实例");
26
+ M.value = !0;
27
+ try {
28
+ let t = await e.http.get(`${e.prefix}${r}`);
29
+ t.status === 0 && (j.value = P(Array.isArray(t.data) ? t.data : []), F(), N.value = !0, O.value = V(O.value), B(), L());
30
+ } catch (e) {
31
+ S.error(typeof e == "string" ? e : "获取角色列表失败");
32
+ } finally {
33
+ M.value = !1;
34
+ }
35
+ }
36
+ };
37
+ d(() => {
38
+ e.isBuiltInRequest && I();
39
+ });
40
+ let L = () => {
41
+ if (!A.value) {
42
+ k.value = "";
32
43
  let e = [];
33
- k.value.forEach((t) => {
44
+ j.value.forEach((t) => {
34
45
  Array.isArray(u.value) ? u.value.includes(t.value) && e.push(t.label) : u.value === t.value && e.push(t.label);
35
- }), D.value = e.join(",");
46
+ }), k.value = e.join(",");
36
47
  }
37
- }, j = () => {
48
+ }, R = () => {
38
49
  let e = [];
39
50
  if (Array.isArray(u.value)) u.value.forEach((t) => {
40
- let n = w.value.find((e) => e.value === t);
51
+ let n = j.value.find((e) => e.value === t);
41
52
  n && e.push(n);
42
53
  });
43
54
  else {
44
- let t = w.value.find((e) => e.value === u.value);
55
+ let t = j.value.find((e) => e.value === u.value);
45
56
  t && e.push(t);
46
57
  }
47
- T.value = e;
48
- }, M = (e) => typeof e == "object" && !!e && "value" in e && e.value !== void 0 && e.value !== null, N = () => {
49
- Array.isArray(e.modelValue) ? u.value = e.modelValue.map((e) => e.value) : e.type === "radio" ? M(e.modelValue) ? u.value = e.modelValue.value : u.value = "" : u.value = e.modelValue?.value || "";
50
- }, P = (e) => e.length ? k.value.length === 0 ? e : e.map((e) => {
51
- let t = k.value.find((t) => t.value === e.value);
58
+ D.value = e;
59
+ }, z = (e) => typeof e == "object" && !!e && "value" in e && e.value !== void 0 && e.value !== null, B = () => {
60
+ Array.isArray(e.modelValue) ? u.value = e.modelValue.map((e) => e.value) : e.type === "radio" ? z(e.modelValue) ? u.value = e.modelValue.value : u.value = "" : u.value = e.modelValue?.value || "";
61
+ }, V = (e) => e.length ? j.value.length === 0 ? e : e.map((e) => {
62
+ let t = j.value.find((t) => t.value === e.value);
52
63
  return t ? {
53
64
  ...e,
54
65
  label: t.label
55
66
  } : e;
56
67
  }) : [];
57
- f(() => e.visible, (e) => {
58
- N();
59
- }), f(() => e.modelValue, (e) => {
60
- if (O.value) O.value = !1;
68
+ p(() => e.visible, (e) => {
69
+ B();
70
+ }), p(() => e.modelValue, (e) => {
71
+ if (A.value) A.value = !1;
61
72
  else {
62
- N(), k.value.length > 0 && A();
73
+ B(), j.value.length > 0 && L();
63
74
  let t = [];
64
- Array.isArray(e) ? t = [...e] : M(e) && (t = [e]), E.value = P(t);
75
+ Array.isArray(e) ? t = [...e] : z(e) && (t = [e]), O.value = V(t);
65
76
  }
66
77
  }, {
67
78
  deep: !0,
68
79
  immediate: !0
69
- }), f(() => e.options, (t) => {
70
- e.isBuiltInRequest || (k.value = t || [], w.value = t || [], E.value = P(E.value), A(), j());
80
+ }), p(() => e.options, (t) => {
81
+ e.isBuiltInRequest || (j.value = t || [], E.value = t || [], O.value = V(O.value), L(), R());
71
82
  }, {
72
83
  deep: !0,
73
84
  immediate: !0
74
- }), f(u, () => {
75
- j();
85
+ }), p(u, () => {
86
+ R();
76
87
  }, {
77
88
  deep: !0,
78
89
  immediate: !0
90
+ }), p(T, () => {
91
+ F();
79
92
  });
80
- let F = (e) => {
81
- e ? w.value = w.value.filter((t) => t.label?.includes(e)) : w.value = [...k.value];
82
- }, I = () => {
93
+ let H = () => {
83
94
  i("update:visible", !1), i("cancel");
84
- }, L = () => {
95
+ }, U = () => {
85
96
  if (e.type === "radio" && !u.value) {
86
- b.warn("请选择角色");
97
+ S.warn("请选择角色");
87
98
  return;
88
99
  }
89
100
  if (Array.isArray(u.value) && u.value.length === 0) {
90
- b.warn("请选择角色");
101
+ S.warn("请选择角色");
91
102
  return;
92
103
  }
93
- E.value = [...T.value], Array.isArray(u.value) ? (D.value = T.value.map((e) => e.label).join(","), i("update:modelValue", T.value)) : (D.value = T.value[0]?.label || "", i("update:modelValue", T.value[0] || null)), O.value = !0, i("update:visible", !1), i("confirm", T.value);
94
- }, R = (e) => {
104
+ O.value = [...D.value], Array.isArray(u.value) ? (k.value = D.value.map((e) => e.label).join(","), i("update:modelValue", D.value)) : (k.value = D.value[0]?.label || "", i("update:modelValue", D.value[0] || null)), A.value = !0, i("update:visible", !1), i("confirm", D.value);
105
+ }, W = (e) => {
95
106
  Array.isArray(u.value) ? u.value = u.value.filter((t) => t !== e.value) : u.value = "";
96
- }, z = s(() => E.value.map((e) => ({
107
+ }, G = s(() => O.value.map((e) => ({
97
108
  label: e.label,
98
109
  value: e.value,
99
110
  closable: !0
100
- }))), B = (e, t) => {
101
- let n = E.value[t];
102
- if (n) if (E.value = E.value.filter((e, n) => n !== t), R(n), Array.isArray(u.value)) {
103
- let e = E.value;
104
- D.value = e.map((e) => e.label).join(","), i("update:modelValue", e);
105
- } else D.value = E.value[0]?.label || "", i("update:modelValue", E.value[0] || null);
106
- }, V = () => {
111
+ }))), K = (e, t) => {
112
+ let n = O.value[t];
113
+ if (n) if (O.value = O.value.filter((e, n) => n !== t), W(n), Array.isArray(u.value)) {
114
+ let e = O.value;
115
+ k.value = e.map((e) => e.label).join(","), i("update:modelValue", e);
116
+ } else k.value = O.value[0]?.label || "", i("update:modelValue", O.value[0] || null);
117
+ }, q = () => {
107
118
  i("update:visible", !0);
108
- }, H = (e, t) => c("div", { class: [S.e("role-item"), t && S.is("active")] }, [c("div", { class: S.e("role-item-label") }, [c(n, {
119
+ }, J = (e, t) => c("div", { class: [w.e("role-item"), t && w.is("active")] }, [c("div", { class: w.e("role-item-label") }, [c(n, {
109
120
  name: "a-jiaoseguanli2",
110
121
  size: 18,
111
122
  color: "#606266"
112
- }, null), c("span", { class: S.e("label") }, [e.label], 2)], 2), c("div", {
113
- class: S.e("role-item-del"),
114
- onClick: () => R(e)
123
+ }, null), c("span", { class: w.e("label") }, [e.label], 2)], 2), c("div", {
124
+ class: w.e("role-item-del"),
125
+ onClick: () => W(e)
115
126
  }, [t && c(n, {
116
127
  name: "shanchu",
117
128
  size: 18,
118
129
  color: "#606266"
119
- }, null)], 10, ["onClick"])], 2), U = () => c("div", { class: S.b("left") }, [c(_, {
130
+ }, null)], 10, ["onClick"])], 2), Y = () => c("div", { class: w.b("left") }, [c(v, {
120
131
  allowClear: !0,
121
132
  placeholder: "请输入角色名称",
122
- value: C.value,
123
- "onUpdate:value": (e) => C.value = e,
124
- onSearch: F
133
+ value: T.value,
134
+ "onUpdate:value": (e) => T.value = e
125
135
  }, null, 8, [
126
136
  "allowClear",
127
137
  "value",
128
- "onUpdate:value",
129
- "onSearch"
130
- ]), c("div", { class: S.e("role-list") }, [w.value.length === 0 && c(h, {
138
+ "onUpdate:value"
139
+ ]), c(x, { spinning: M.value }, { default: () => [c("div", { class: w.e("role-list") }, [!M.value && E.value.length === 0 && c(g, {
131
140
  description: "暂无数据",
132
- image: h.PRESENTED_IMAGE_SIMPLE
133
- }, null, 8, ["image"]), e.type === "radio" ? c(y, {
141
+ image: g.PRESENTED_IMAGE_SIMPLE
142
+ }, null, 8, ["image"]), e.type === "radio" ? c(b, {
134
143
  value: u.value,
135
144
  "onUpdate:value": (e) => u.value = e
136
- }, { default: () => [c("div", { style: "width: 100%;" }, [w.value.map((e, t) => {
137
- let n;
138
- return c("div", { key: t }, [c(v, { value: e.value }, x(n = H(e)) ? n : {
139
- default: () => [n],
145
+ }, { default: () => [c("div", { style: "width: 100%;" }, [E.value.map((e) => {
146
+ let t;
147
+ return c("div", { key: e.value }, [c(y, { value: e.value }, C(t = J(e)) ? t : {
148
+ default: () => [t],
140
149
  _: 1
141
150
  }, 8, ["value"])]);
142
- })])] }, 8, ["value", "onUpdate:value"]) : c(m, {
151
+ })])] }, 8, ["value", "onUpdate:value"]) : c(h, {
143
152
  value: u.value,
144
153
  "onUpdate:value": (e) => u.value = e
145
- }, { default: () => [c("div", { style: "width: 100%;" }, [w.value.map((e, t) => {
146
- let n;
147
- return c("div", { key: t }, [c(p, { value: e.value }, x(n = H(e)) ? n : {
148
- default: () => [n],
154
+ }, { default: () => [c("div", { style: "width: 100%;" }, [E.value.map((e) => {
155
+ let t;
156
+ return c("div", { key: e.value }, [c(m, { value: e.value }, C(t = J(e)) ? t : {
157
+ default: () => [t],
149
158
  _: 1
150
159
  }, 8, ["value"])]);
151
- })])] }, 8, ["value", "onUpdate:value"])], 2)], 2), W = () => c("div", { class: S.b("right") }, [T.value.map((e, t) => c("div", { key: t }, [H(e, !0)])), T.value.length === 0 && c(h, {
160
+ })])] }, 8, ["value", "onUpdate:value"])], 2)] }, 8, ["spinning"])], 2), X = () => c("div", { class: w.b("right") }, [D.value.map((e) => c("div", { key: e.value }, [J(e, !0)])), D.value.length === 0 && c(g, {
152
161
  description: "暂无数据",
153
- image: h.PRESENTED_IMAGE_SIMPLE
154
- }, null, 8, ["image"])], 2), G = () => c("div", null, [c(t, {
162
+ image: g.PRESENTED_IMAGE_SIMPLE
163
+ }, null, 8, ["image"])], 2), Z = () => c("div", null, [c(t, {
155
164
  modelValue: e.visible,
156
165
  title: "选择角色",
157
166
  modalProps: {
@@ -160,21 +169,21 @@ var S = e("role-selector"), C = /* @__PURE__ */ l({
160
169
  width: "700px",
161
170
  ...a
162
171
  },
163
- onOnCancel: () => I(),
164
- onOnConfirm: () => L()
165
- }, { default: () => [c("div", { class: S.b("modal") }, [U(), W()], 2)] }, 8, [
172
+ onOnCancel: () => H(),
173
+ onOnConfirm: () => U()
174
+ }, { default: () => [c("div", { class: w.b("modal") }, [Y(), X()], 2)] }, 8, [
166
175
  "modelValue",
167
176
  "modalProps",
168
177
  "onOnCancel",
169
178
  "onOnConfirm"
170
179
  ])]);
171
- return () => c(g, null, { default: () => [c("div", { class: S.b() }, [e.hideSlot ? null : l.default ? l.default() : c(o, {
172
- modelValue: z.value,
180
+ return () => c(_, null, { default: () => [c("div", { class: w.b() }, [e.hideSlot ? null : l.default ? l.default() : c(o, {
181
+ modelValue: G.value,
173
182
  showAdd: !0,
174
183
  addText: "选择角色",
175
184
  closable: !0,
176
- onClose: B,
177
- onAdd: V,
185
+ onClose: K,
186
+ onAdd: q,
178
187
  customStyle: {
179
188
  width: "100%",
180
189
  minHeight: "30px"
@@ -183,8 +192,8 @@ var S = e("role-selector"), C = /* @__PURE__ */ l({
183
192
  "modelValue",
184
193
  "onClose",
185
194
  "onAdd"
186
- ]), G()], 2)] });
195
+ ]), Z()], 2)] });
187
196
  }
188
197
  });
189
198
  //#endregion
190
- export { C as default };
199
+ export { T as default };
@@ -22,11 +22,15 @@ var e = {
22
22
  default: () => {}
23
23
  },
24
24
  prefix: String,
25
+ valueField: {
26
+ type: String,
27
+ default: "roleKey"
28
+ },
25
29
  hideSlot: {
26
30
  type: Boolean,
27
31
  default: !1
28
32
  }
29
- }, t = "/security/company/role/page?pageNum=1&pageSize=1000", n = {
33
+ }, t = "/security/business/company/role/list?pageNum=1&pageSize=500", n = {
30
34
  "update:visible": (e) => !0,
31
35
  "update:modelValue": (e) => !0,
32
36
  confirm: (e) => !0,
@@ -1 +1 @@
1
- const e=require(`../../../hooks/use-namespace/index.cjs`),t=require(`../../pro-modal/index.cjs`),n=require(`../../icon/index.cjs`),r=require(`./types.cjs`),i=require(`../../pro-dynamic-tags/index.cjs`);let a=require(`vue`),o=require(`ant-design-vue`);function s(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!(0,a.isVNode)(e)}var c=e.useNamespace(`role-selector`),l=(0,a.defineComponent)({name:`KRoleSelector`,props:r.roleSelectorProps,emits:r.roleSelectorEmits,setup(e,{emit:l,attrs:u,slots:d}){let f=(0,a.ref)([]),p=(0,a.ref)(``),m=(0,a.ref)([]),h=(0,a.ref)([]),g=(0,a.ref)([]),_=(0,a.ref)(``),v=(0,a.ref)(!1),y=(0,a.ref)(e.options||[]);if(e.isBuiltInRequest){if(!e.http)throw Error(`请传入http实例`);e.http.get(`${e.prefix}${r.GTE_OPTIONS_URL}`).then(e=>{e.status===0&&(m.value=e.data.list.map(e=>({label:e.roleName,value:e.roleKey})),y.value=m.value,g.value=w(g.value),C(),b())}).catch(e=>{console.log(e)})}let b=()=>{if(!v.value){_.value=``;let e=[];y.value.forEach(t=>{Array.isArray(f.value)?f.value.includes(t.value)&&e.push(t.label):f.value===t.value&&e.push(t.label)}),_.value=e.join(`,`)}},x=()=>{let e=[];if(Array.isArray(f.value))f.value.forEach(t=>{let n=m.value.find(e=>e.value===t);n&&e.push(n)});else{let t=m.value.find(e=>e.value===f.value);t&&e.push(t)}h.value=e},S=e=>typeof e==`object`&&!!e&&`value`in e&&e.value!==void 0&&e.value!==null,C=()=>{Array.isArray(e.modelValue)?f.value=e.modelValue.map(e=>e.value):e.type===`radio`?S(e.modelValue)?f.value=e.modelValue.value:f.value=``:f.value=e.modelValue?.value||``},w=e=>e.length?y.value.length===0?e:e.map(e=>{let t=y.value.find(t=>t.value===e.value);return t?{...e,label:t.label}:e}):[];(0,a.watch)(()=>e.visible,e=>{C()}),(0,a.watch)(()=>e.modelValue,e=>{if(v.value)v.value=!1;else{C(),y.value.length>0&&b();let t=[];Array.isArray(e)?t=[...e]:S(e)&&(t=[e]),g.value=w(t)}},{deep:!0,immediate:!0}),(0,a.watch)(()=>e.options,t=>{e.isBuiltInRequest||(y.value=t||[],m.value=t||[],g.value=w(g.value),b(),x())},{deep:!0,immediate:!0}),(0,a.watch)(f,()=>{x()},{deep:!0,immediate:!0});let T=e=>{e?m.value=m.value.filter(t=>t.label?.includes(e)):m.value=[...y.value]},E=()=>{l(`update:visible`,!1),l(`cancel`)},D=()=>{if(e.type===`radio`&&!f.value){o.message.warn(`请选择角色`);return}if(Array.isArray(f.value)&&f.value.length===0){o.message.warn(`请选择角色`);return}g.value=[...h.value],Array.isArray(f.value)?(_.value=h.value.map(e=>e.label).join(`,`),l(`update:modelValue`,h.value)):(_.value=h.value[0]?.label||``,l(`update:modelValue`,h.value[0]||null)),v.value=!0,l(`update:visible`,!1),l(`confirm`,h.value)},O=e=>{Array.isArray(f.value)?f.value=f.value.filter(t=>t!==e.value):f.value=``},k=(0,a.computed)(()=>g.value.map(e=>({label:e.label,value:e.value,closable:!0}))),A=(e,t)=>{let n=g.value[t];if(n)if(g.value=g.value.filter((e,n)=>n!==t),O(n),Array.isArray(f.value)){let e=g.value;_.value=e.map(e=>e.label).join(`,`),l(`update:modelValue`,e)}else _.value=g.value[0]?.label||``,l(`update:modelValue`,g.value[0]||null)},j=()=>{l(`update:visible`,!0)},M=(e,t)=>(0,a.createVNode)(`div`,{class:[c.e(`role-item`),t&&c.is(`active`)]},[(0,a.createVNode)(`div`,{class:c.e(`role-item-label`)},[(0,a.createVNode)(n.default,{name:`a-jiaoseguanli2`,size:18,color:`#606266`},null),(0,a.createVNode)(`span`,{class:c.e(`label`)},[e.label],2)],2),(0,a.createVNode)(`div`,{class:c.e(`role-item-del`),onClick:()=>O(e)},[t&&(0,a.createVNode)(n.default,{name:`shanchu`,size:18,color:`#606266`},null)],10,[`onClick`])],2),N=()=>(0,a.createVNode)(`div`,{class:c.b(`left`)},[(0,a.createVNode)(o.InputSearch,{allowClear:!0,placeholder:`请输入角色名称`,value:p.value,"onUpdate:value":e=>p.value=e,onSearch:T},null,8,[`allowClear`,`value`,`onUpdate:value`,`onSearch`]),(0,a.createVNode)(`div`,{class:c.e(`role-list`)},[m.value.length===0&&(0,a.createVNode)(o.Empty,{description:`暂无数据`,image:o.Empty.PRESENTED_IMAGE_SIMPLE},null,8,[`image`]),e.type===`radio`?(0,a.createVNode)(o.RadioGroup,{value:f.value,"onUpdate:value":e=>f.value=e},{default:()=>[(0,a.createVNode)(`div`,{style:`width: 100%;`},[m.value.map((e,t)=>{let n;return(0,a.createVNode)(`div`,{key:t},[(0,a.createVNode)(o.Radio,{value:e.value},s(n=M(e))?n:{default:()=>[n],_:1},8,[`value`])])})])]},8,[`value`,`onUpdate:value`]):(0,a.createVNode)(o.CheckboxGroup,{value:f.value,"onUpdate:value":e=>f.value=e},{default:()=>[(0,a.createVNode)(`div`,{style:`width: 100%;`},[m.value.map((e,t)=>{let n;return(0,a.createVNode)(`div`,{key:t},[(0,a.createVNode)(o.Checkbox,{value:e.value},s(n=M(e))?n:{default:()=>[n],_:1},8,[`value`])])})])]},8,[`value`,`onUpdate:value`])],2)],2),P=()=>(0,a.createVNode)(`div`,{class:c.b(`right`)},[h.value.map((e,t)=>(0,a.createVNode)(`div`,{key:t},[M(e,!0)])),h.value.length===0&&(0,a.createVNode)(o.Empty,{description:`暂无数据`,image:o.Empty.PRESENTED_IMAGE_SIMPLE},null,8,[`image`])],2),F=()=>(0,a.createVNode)(`div`,null,[(0,a.createVNode)(t.default,{modelValue:e.visible,title:`选择角色`,modalProps:{cancelText:`取消`,okText:`确定`,width:`700px`,...u},onOnCancel:()=>E(),onOnConfirm:()=>D()},{default:()=>[(0,a.createVNode)(`div`,{class:c.b(`modal`)},[N(),P()],2)]},8,[`modelValue`,`modalProps`,`onOnCancel`,`onOnConfirm`])]);return()=>(0,a.createVNode)(o.FormItemRest,null,{default:()=>[(0,a.createVNode)(`div`,{class:c.b()},[e.hideSlot?null:d.default?d.default():(0,a.createVNode)(i.default,{modelValue:k.value,showAdd:!0,addText:`选择角色`,closable:!0,onClose:A,onAdd:j,customStyle:{width:`100%`,minHeight:`30px`}},null,8,[`modelValue`,`onClose`,`onAdd`]),F()],2)]})}});exports.default=l;
1
+ const e=require(`../../../hooks/use-namespace/index.cjs`),t=require(`../../pro-modal/index.cjs`),n=require(`../../icon/index.cjs`),r=require(`./types.cjs`),i=require(`../../pro-dynamic-tags/index.cjs`);let a=require(`vue`),o=require(`ant-design-vue`);function s(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!(0,a.isVNode)(e)}var c=e.useNamespace(`role-selector`),l=(0,a.defineComponent)({name:`KRoleSelector`,props:r.roleSelectorProps,emits:r.roleSelectorEmits,setup(e,{emit:l,attrs:u,slots:d}){let f=(0,a.ref)([]),p=(0,a.ref)(``),m=(0,a.ref)([]),h=(0,a.ref)([]),g=(0,a.ref)([]),_=(0,a.ref)(``),v=(0,a.ref)(!1),y=(0,a.ref)(e.options||[]),b=(0,a.ref)(!1),x=(0,a.ref)(!1),S=t=>t.filter(e=>e.enable!==!1).map(t=>({label:t.roleName,value:t[e.valueField]})),C=()=>{let e=p.value.trim();e?m.value=y.value.filter(t=>t.label?.includes(e)||t.value?.includes(e)):m.value=[...y.value]},w=async()=>{if(!(!e.isBuiltInRequest||x.value)){if(!e.http)throw Error(`请传入http实例`);b.value=!0;try{let t=await e.http.get(`${e.prefix}${r.GTE_OPTIONS_URL}`);t.status===0&&(y.value=S(Array.isArray(t.data)?t.data:[]),C(),x.value=!0,g.value=k(g.value),O(),T())}catch(e){o.message.error(typeof e==`string`?e:`获取角色列表失败`)}finally{b.value=!1}}};(0,a.onMounted)(()=>{e.isBuiltInRequest&&w()});let T=()=>{if(!v.value){_.value=``;let e=[];y.value.forEach(t=>{Array.isArray(f.value)?f.value.includes(t.value)&&e.push(t.label):f.value===t.value&&e.push(t.label)}),_.value=e.join(`,`)}},E=()=>{let e=[];if(Array.isArray(f.value))f.value.forEach(t=>{let n=y.value.find(e=>e.value===t);n&&e.push(n)});else{let t=y.value.find(e=>e.value===f.value);t&&e.push(t)}h.value=e},D=e=>typeof e==`object`&&!!e&&`value`in e&&e.value!==void 0&&e.value!==null,O=()=>{Array.isArray(e.modelValue)?f.value=e.modelValue.map(e=>e.value):e.type===`radio`?D(e.modelValue)?f.value=e.modelValue.value:f.value=``:f.value=e.modelValue?.value||``},k=e=>e.length?y.value.length===0?e:e.map(e=>{let t=y.value.find(t=>t.value===e.value);return t?{...e,label:t.label}:e}):[];(0,a.watch)(()=>e.visible,e=>{O()}),(0,a.watch)(()=>e.modelValue,e=>{if(v.value)v.value=!1;else{O(),y.value.length>0&&T();let t=[];Array.isArray(e)?t=[...e]:D(e)&&(t=[e]),g.value=k(t)}},{deep:!0,immediate:!0}),(0,a.watch)(()=>e.options,t=>{e.isBuiltInRequest||(y.value=t||[],m.value=t||[],g.value=k(g.value),T(),E())},{deep:!0,immediate:!0}),(0,a.watch)(f,()=>{E()},{deep:!0,immediate:!0}),(0,a.watch)(p,()=>{C()});let A=()=>{l(`update:visible`,!1),l(`cancel`)},j=()=>{if(e.type===`radio`&&!f.value){o.message.warn(`请选择角色`);return}if(Array.isArray(f.value)&&f.value.length===0){o.message.warn(`请选择角色`);return}g.value=[...h.value],Array.isArray(f.value)?(_.value=h.value.map(e=>e.label).join(`,`),l(`update:modelValue`,h.value)):(_.value=h.value[0]?.label||``,l(`update:modelValue`,h.value[0]||null)),v.value=!0,l(`update:visible`,!1),l(`confirm`,h.value)},M=e=>{Array.isArray(f.value)?f.value=f.value.filter(t=>t!==e.value):f.value=``},N=(0,a.computed)(()=>g.value.map(e=>({label:e.label,value:e.value,closable:!0}))),P=(e,t)=>{let n=g.value[t];if(n)if(g.value=g.value.filter((e,n)=>n!==t),M(n),Array.isArray(f.value)){let e=g.value;_.value=e.map(e=>e.label).join(`,`),l(`update:modelValue`,e)}else _.value=g.value[0]?.label||``,l(`update:modelValue`,g.value[0]||null)},F=()=>{l(`update:visible`,!0)},I=(e,t)=>(0,a.createVNode)(`div`,{class:[c.e(`role-item`),t&&c.is(`active`)]},[(0,a.createVNode)(`div`,{class:c.e(`role-item-label`)},[(0,a.createVNode)(n.default,{name:`a-jiaoseguanli2`,size:18,color:`#606266`},null),(0,a.createVNode)(`span`,{class:c.e(`label`)},[e.label],2)],2),(0,a.createVNode)(`div`,{class:c.e(`role-item-del`),onClick:()=>M(e)},[t&&(0,a.createVNode)(n.default,{name:`shanchu`,size:18,color:`#606266`},null)],10,[`onClick`])],2),L=()=>(0,a.createVNode)(`div`,{class:c.b(`left`)},[(0,a.createVNode)(o.InputSearch,{allowClear:!0,placeholder:`请输入角色名称`,value:p.value,"onUpdate:value":e=>p.value=e},null,8,[`allowClear`,`value`,`onUpdate:value`]),(0,a.createVNode)(o.Spin,{spinning:b.value},{default:()=>[(0,a.createVNode)(`div`,{class:c.e(`role-list`)},[!b.value&&m.value.length===0&&(0,a.createVNode)(o.Empty,{description:`暂无数据`,image:o.Empty.PRESENTED_IMAGE_SIMPLE},null,8,[`image`]),e.type===`radio`?(0,a.createVNode)(o.RadioGroup,{value:f.value,"onUpdate:value":e=>f.value=e},{default:()=>[(0,a.createVNode)(`div`,{style:`width: 100%;`},[m.value.map(e=>{let t;return(0,a.createVNode)(`div`,{key:e.value},[(0,a.createVNode)(o.Radio,{value:e.value},s(t=I(e))?t:{default:()=>[t],_:1},8,[`value`])])})])]},8,[`value`,`onUpdate:value`]):(0,a.createVNode)(o.CheckboxGroup,{value:f.value,"onUpdate:value":e=>f.value=e},{default:()=>[(0,a.createVNode)(`div`,{style:`width: 100%;`},[m.value.map(e=>{let t;return(0,a.createVNode)(`div`,{key:e.value},[(0,a.createVNode)(o.Checkbox,{value:e.value},s(t=I(e))?t:{default:()=>[t],_:1},8,[`value`])])})])]},8,[`value`,`onUpdate:value`])],2)]},8,[`spinning`])],2),R=()=>(0,a.createVNode)(`div`,{class:c.b(`right`)},[h.value.map(e=>(0,a.createVNode)(`div`,{key:e.value},[I(e,!0)])),h.value.length===0&&(0,a.createVNode)(o.Empty,{description:`暂无数据`,image:o.Empty.PRESENTED_IMAGE_SIMPLE},null,8,[`image`])],2),z=()=>(0,a.createVNode)(`div`,null,[(0,a.createVNode)(t.default,{modelValue:e.visible,title:`选择角色`,modalProps:{cancelText:`取消`,okText:`确定`,width:`700px`,...u},onOnCancel:()=>A(),onOnConfirm:()=>j()},{default:()=>[(0,a.createVNode)(`div`,{class:c.b(`modal`)},[L(),R()],2)]},8,[`modelValue`,`modalProps`,`onOnCancel`,`onOnConfirm`])]);return()=>(0,a.createVNode)(o.FormItemRest,null,{default:()=>[(0,a.createVNode)(`div`,{class:c.b()},[e.hideSlot?null:d.default?d.default():(0,a.createVNode)(i.default,{modelValue:N.value,showAdd:!0,addText:`选择角色`,closable:!0,onClose:P,onAdd:F,customStyle:{width:`100%`,minHeight:`30px`}},null,8,[`modelValue`,`onClose`,`onAdd`]),z()],2)]})}});exports.default=l;
@@ -1 +1 @@
1
- var e={visible:Boolean,modelValue:{type:[Array,Object],default:()=>[]},type:{type:String,default:`checkbox`},options:{type:Array,default:()=>[]},isBuiltInRequest:{type:Boolean,default:!1},http:{type:[Object,Function],default:()=>{}},prefix:String,hideSlot:{type:Boolean,default:!1}},t=`/security/company/role/page?pageNum=1&pageSize=1000`,n={"update:visible":e=>!0,"update:modelValue":e=>!0,confirm:e=>!0,cancel:()=>!0};exports.GTE_OPTIONS_URL=t,exports.roleSelectorEmits=n,exports.roleSelectorProps=e;
1
+ var e={visible:Boolean,modelValue:{type:[Array,Object],default:()=>[]},type:{type:String,default:`checkbox`},options:{type:Array,default:()=>[]},isBuiltInRequest:{type:Boolean,default:!1},http:{type:[Object,Function],default:()=>{}},prefix:String,valueField:{type:String,default:`roleKey`},hideSlot:{type:Boolean,default:!1}},t=`/security/business/company/role/list?pageNum=1&pageSize=500`,n={"update:visible":e=>!0,"update:modelValue":e=>!0,confirm:e=>!0,cancel:()=>!0};exports.GTE_OPTIONS_URL=t,exports.roleSelectorEmits=n,exports.roleSelectorProps=e;
@@ -1 +1 @@
1
- @font-face{font-family:gd-ant-iconfont;src:url(./fonts/iconfont.woff2?t=16200)format("woff2"),url(./fonts/iconfont.woff?t=18960)format("woff"),url(./fonts/iconfont.ttf?t=24526)format("truetype")}.gd-ant-icon{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;font-style:normal;font-family:gd-ant-iconfont!important}.icon-gd-ant-xinzeng:before{content:""}.icon-gd-ant-guanbi:before{content:"𐈔"}.icon-gd-ant-sync:before{content:""}.icon-gd-ant-tupianjiazaishibai:before{content:""}.icon-gd-ant-double-left:before{content:""}.icon-gd-ant-double-right:before{content:""}.icon-gd-ant-question-circle:before{content:""}.icon-gd-ant-sound:before{content:""}.icon-gd-ant-code:before{content:""}.icon-gd-ant-desktop:before{content:""}.icon-gd-ant-delete1:before{content:""}.icon-gd-ant-mobile:before{content:""}.icon-gd-ant-qiye:before{content:""}.icon-gd-ant-bumen:before{content:""}.icon-gd-ant-a-jiaoseguanli2:before{content:""}.icon-gd-ant-shanchu:before{content:""}.icon-gd-ant-zuzhijiagou:before{content:""}.icon-gd-ant-search:before{content:""}.icon-gd-ant-calendar:before{content:""}.icon-gd-ant-carry-out:before{content:""}.icon-gd-ant-file-add:before{content:""}.icon-gd-ant-form:before{content:""}.icon-gd-ant-close-circle:before{content:""}.icon-gd-ant-close-circle-o:before{content:""}.icon-gd-ant-vertical-align-bottom:before{content:""}.icon-gd-ant-merge-cells:before{content:""}.icon-gd-ant-split-cells:before{content:""}.icon-gd-ant-down:before{content:""}.icon-gd-ant-left:before{content:""}.icon-gd-ant-right:before{content:""}.icon-gd-ant-up:before{content:""}.icon-gd-ant-plus:before{content:""}.icon-gd-ant-xsl:before{content:""}.icon-gd-ant-word:before{content:""}.icon-gd-ant-eye:before{content:""}.icon-gd-ant-PDF:before{content:""}.icon-gd-ant-delete:before{content:""}.icon-gd-ant-upload-icon:before{content:""}.icon-gd-ant-title-icon:before{content:""}
1
+ @font-face{font-family:gd-ant-iconfont;src:url(./fonts/iconfont.woff2?t=27647)format("woff2"),url(./fonts/iconfont.woff?t=90233)format("woff"),url(./fonts/iconfont.ttf?t=30234)format("truetype")}.gd-ant-icon{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;font-style:normal;font-family:gd-ant-iconfont!important}.icon-gd-ant-xinzeng:before{content:""}.icon-gd-ant-guanbi:before{content:"𐈔"}.icon-gd-ant-sync:before{content:""}.icon-gd-ant-tupianjiazaishibai:before{content:""}.icon-gd-ant-double-left:before{content:""}.icon-gd-ant-double-right:before{content:""}.icon-gd-ant-question-circle:before{content:""}.icon-gd-ant-sound:before{content:""}.icon-gd-ant-code:before{content:""}.icon-gd-ant-desktop:before{content:""}.icon-gd-ant-delete1:before{content:""}.icon-gd-ant-mobile:before{content:""}.icon-gd-ant-qiye:before{content:""}.icon-gd-ant-bumen:before{content:""}.icon-gd-ant-a-jiaoseguanli2:before{content:""}.icon-gd-ant-shanchu:before{content:""}.icon-gd-ant-zuzhijiagou:before{content:""}.icon-gd-ant-search:before{content:""}.icon-gd-ant-calendar:before{content:""}.icon-gd-ant-carry-out:before{content:""}.icon-gd-ant-file-add:before{content:""}.icon-gd-ant-form:before{content:""}.icon-gd-ant-close-circle:before{content:""}.icon-gd-ant-close-circle-o:before{content:""}.icon-gd-ant-vertical-align-bottom:before{content:""}.icon-gd-ant-merge-cells:before{content:""}.icon-gd-ant-split-cells:before{content:""}.icon-gd-ant-down:before{content:""}.icon-gd-ant-left:before{content:""}.icon-gd-ant-right:before{content:""}.icon-gd-ant-up:before{content:""}.icon-gd-ant-plus:before{content:""}.icon-gd-ant-xsl:before{content:""}.icon-gd-ant-word:before{content:""}.icon-gd-ant-eye:before{content:""}.icon-gd-ant-PDF:before{content:""}.icon-gd-ant-delete:before{content:""}.icon-gd-ant-upload-icon:before{content:""}.icon-gd-ant-title-icon:before{content:""}
@@ -1 +1 @@
1
- :root{--gd-color-white:#fff;--gd-color-primary:#1161ff;--gd-color-primary-light-3:#5890ff;--gd-color-primary-light-5:#88b0ff;--gd-color-primary-light-7:#b8d0ff;--gd-color-primary-light-8:#cfdfff;--gd-color-primary-light-9:#e7efff;--gd-color-success:#67c23a;--gd-color-success-light-3:#95d475;--gd-color-success-light-5:#b3e19d;--gd-color-success-light-7:#d1edc4;--gd-color-success-light-8:#e1f3d8;--gd-color-success-light-9:#f0f9eb;--gd-color-warning:#e6a23c;--gd-color-warning-light-3:#eebe77;--gd-color-warning-light-5:#f3d19e;--gd-color-warning-light-7:#f8e3c5;--gd-color-warning-light-8:#faecd8;--gd-color-warning-light-9:#fdf6ec;--gd-color-danger:#f56c6c;--gd-color-danger-light-3:#f89898;--gd-color-danger-light-5:#fab6b6;--gd-color-danger-light-7:#fcd3d3;--gd-color-danger-light-8:#fde2e2;--gd-color-danger-light-9:#fef0f0;--gd-color-error:#f56c6c;--gd-color-error-light-3:#f89898;--gd-color-error-light-5:#fab6b6;--gd-color-error-light-7:#fcd3d3;--gd-color-error-light-8:#fde2e2;--gd-color-error-light-9:#fef0f0;--gd-color-info:#909399;--gd-color-info-light-3:#b1b3b8;--gd-color-info-light-5:#c8c9cc;--gd-color-info-light-7:#dedfe0;--gd-color-info-light-8:#e9e9eb;--gd-color-info-light-9:#f4f4f5;--king-transition-duration:.3s}.gd-ant-scrollbar{z-index:auto;width:100%;height:100%;position:relative;overflow:hidden}.gd-ant-scrollbar .gd-ant-scrollbar-container{width:100%;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none;overflow:scroll}.gd-ant-scrollbar .gd-ant-scrollbar-content{width:fit-content}.gd-ant-scrollbar .gd-ant-scrollbar-rail{position:absolute}.gd-ant-scrollbar .gd-ant-scrollbar-rail--vertical{width:5px;top:2px;bottom:2px;right:4px}.gd-ant-scrollbar .gd-ant-scrollbar-rail--horizontal{height:5px;bottom:2px;left:2px;right:2px}.gd-ant-scrollbar .gd-ant-scrollbar-rail__scrollbar--vertical{cursor:pointer;background:#00000040;border-radius:5px;width:100%;position:absolute}.gd-ant-scrollbar .gd-ant-scrollbar-rail__scrollbar--horizontal{cursor:pointer;background:#00000040;border-radius:5px;height:100%;position:absolute}.v-vl-items{width:fit-content}.gd-ant-scale-virtual-list{width:100%;height:100%}.gd-ant-scale-virtual-list .gd-ant-scale-virtual-list-container{margin:0 auto;position:relative}.gd-ant-scale-virtual-list .gd-ant-scale-vittual-wrapper{width:fit-content;margin:0 auto;position:absolute;left:50%}.gd-ant-pro-title{border-bottom:1px solid #ccc;align-items:center;font-weight:500;display:flex}.gd-ant-pro-title .icon{margin-right:10px}.gd-ant-pro-title--unborder{border:none}.gd-ant-pro-modal .ant-modal-content{padding:0}.gd-ant-pro-modal .ant-modal-header{background:#f1f7ff;border-bottom:1px solid #e6e8ea;justify-content:space-between;align-items:center;height:56px;padding-left:32px;padding-right:24px;display:flex}.gd-ant-pro-modal .ant-modal-body{max-height:80vh;padding:10px 20px;overflow:auto}.gd-ant-pro-modal .ant-modal-footer{border-top:1px solid #e6e8ea;justify-content:flex-end;align-items:center;height:56px;padding:0 16px;display:flex}.gd-ant-pro-modal .ant-modal-title{flex:1}.gd-ant-pro-modal .pro-modal-title{cursor:move;width:100%}.gd-ant-pro-area-select{width:100%}@font-face{font-family:gd-ant-iconfont;src:url(./fonts/iconfont.woff2?t=70095)format("woff2"),url(./fonts/iconfont.woff?t=22724)format("woff"),url(./fonts/iconfont.ttf?t=34568)format("truetype")}.gd-ant-icon{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;font-style:normal;font-family:gd-ant-iconfont!important}.icon-gd-ant-xinzeng:before{content:""}.icon-gd-ant-guanbi:before{content:"𐈔"}.icon-gd-ant-sync:before{content:""}.icon-gd-ant-tupianjiazaishibai:before{content:""}.icon-gd-ant-double-left:before{content:""}.icon-gd-ant-double-right:before{content:""}.icon-gd-ant-question-circle:before{content:""}.icon-gd-ant-sound:before{content:""}.icon-gd-ant-code:before{content:""}.icon-gd-ant-desktop:before{content:""}.icon-gd-ant-delete1:before{content:""}.icon-gd-ant-mobile:before{content:""}.icon-gd-ant-qiye:before{content:""}.icon-gd-ant-bumen:before{content:""}.icon-gd-ant-a-jiaoseguanli2:before{content:""}.icon-gd-ant-shanchu:before{content:""}.icon-gd-ant-zuzhijiagou:before{content:""}.icon-gd-ant-search:before{content:""}.icon-gd-ant-calendar:before{content:""}.icon-gd-ant-carry-out:before{content:""}.icon-gd-ant-file-add:before{content:""}.icon-gd-ant-form:before{content:""}.icon-gd-ant-close-circle:before{content:""}.icon-gd-ant-close-circle-o:before{content:""}.icon-gd-ant-vertical-align-bottom:before{content:""}.icon-gd-ant-merge-cells:before{content:""}.icon-gd-ant-split-cells:before{content:""}.icon-gd-ant-down:before{content:""}.icon-gd-ant-left:before{content:""}.icon-gd-ant-right:before{content:""}.icon-gd-ant-up:before{content:""}.icon-gd-ant-plus:before{content:""}.icon-gd-ant-xsl:before{content:""}.icon-gd-ant-word:before{content:""}.icon-gd-ant-eye:before{content:""}.icon-gd-ant-PDF:before{content:""}.icon-gd-ant-delete:before{content:""}.icon-gd-ant-upload-icon:before{content:""}.icon-gd-ant-title-icon:before{content:""}.gd-ant-cover-scrollbar{width:100%;height:100%;position:relative;overflow:hidden}.gd-ant-cover-scrollbar .gd-ant-cover-scrollbar-container{scrollbar-width:none;width:100%;height:100%;overflow:scroll}.gd-ant-cover-scrollbar .gd-ant-cover-scrollbar-rail{width:5px;position:absolute;top:2px;bottom:2px}.gd-ant-cover-scrollbar .gd-ant-cover-scrollbar-rail__scrollbar--vertical{cursor:pointer;border-radius:5px;width:100%;position:absolute}.gd-ant-pro-overlay{cursor:pointer;display:inline-block;position:relative}.gd-ant-pro-overlay .gd-ant-pro-overlay__content{opacity:0;justify-content:center;align-items:center;transition:all .2s linear;display:flex;position:absolute;inset:0}.gd-ant-pro-overlay:hover .gd-ant-pro-overlay__content{opacity:1;background:#00000080}.gd-ant-plus-upload .gd-ant-plus-upload__icon-plus{font-size:32px!important}.gd-ant-plus-upload .gd-ant-plus-upload__icon-eye,.gd-ant-plus-upload .gd-ant-plus-upload__icon-delete{margin-right:5px;color:#fff!important;font-size:16px!important}.gd-ant-plus-upload .gd-ant-plus-upload__file-item{border:1px solid #cbcdd3;border-radius:3px;justify-content:center;align-items:center;width:102px;height:102px;display:flex}.gd-ant-pro-tag-group{color:#3b3b3b;border:1px solid #d9d9d9;border-radius:3px;align-items:center;width:100%;height:30px;padding:5px;display:flex}.gd-ant-pro-tag-group .gd-ant-pro-tag-group__tags{scrollbar-width:none;flex:1;align-items:center;gap:5px;height:100%;display:flex;overflow-x:hidden}.gd-ant-pro-tag-group .gd-ant-pro-tag-group__count{text-align:center;white-space:nowrap;text-overflow:ellipsis;background:#d9d9d9;height:100%;margin-left:5px;padding:0 5px;line-height:normal;overflow:hidden}.gd-ant-pro-tag-group .gd-ant-pro-tag-group__item{visibility:hidden;background:#d9d9d9;flex-shrink:0;padding:0 5px;line-height:normal}.gd-ant-pro-tag-group .gd-ant-pro-tag-group__item:hover .gd-ant-pro-tag-group__remove-icon{background:#a3a3a3;border-radius:50%;color:#fff!important}.gd-ant-pro-tag-group .gd-ant-pro-tag-group__remove-icon{cursor:pointer;margin-left:2px;padding:1px}.gd-ant-pro-tag-group .gd-ant-pro-tag-group__visible{visibility:inherit}.gd-ant-role-selector-modal{border:1px solid #e5e5e5;border-radius:4px;width:100%;height:300px;display:flex;overflow:hidden}.gd-ant-role-selector-modal .gd-ant-role-selector__role-item{cursor:pointer;justify-content:space-between;align-items:center;width:100%;height:40px;display:flex}.gd-ant-role-selector-modal .gd-ant-role-selector__role-item.is-active{padding:0 10px}.gd-ant-role-selector-modal .gd-ant-role-selector__role-item:hover.is-active{background-color:#f5f7fa;border-radius:4px}.gd-ant-role-selector-modal .gd-ant-role-selector__role-item .gd-ant-role-selector-role-item-label{display:flex}.gd-ant-role-selector-modal .gd-ant-role-selector__role-item .gd-ant-role-selector__label{color:#606266;padding-left:5px;font-size:14px}.gd-ant-role-selector-modal .gd-ant-role-selector__role-item .gd-ant-role-selector__role-item-del:hover .icon-gd-ant-shanchu{color:var(--gd-color-primary)!important}.gd-ant-role-selector-modal .gd-ant-role-selector-left{box-sizing:border-box;width:50%;height:300px;padding:15px}.gd-ant-role-selector-modal .gd-ant-role-selector-left .gd-ant-role-selector__role-list{width:100%;height:230px;margin-top:15px;overflow-y:auto}.gd-ant-role-selector-modal .gd-ant-role-selector-left .gd-ant-role-selector__role-list::-webkit-scrollbar{width:6px;height:6px}.gd-ant-role-selector-modal .gd-ant-role-selector-left .gd-ant-role-selector__role-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.gd-ant-role-selector-modal .gd-ant-role-selector-left .gd-ant-role-selector__role-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.gd-ant-role-selector-modal .gd-ant-role-selector-left .gd-ant-role-selector__role-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.gd-ant-role-selector-modal .gd-ant-role-selector-right{box-sizing:border-box;border-left:1px solid #e5e5e5;flex:1;height:300px;padding:15px;overflow-y:auto}.gd-ant-role-selector-modal .gd-ant-role-selector-right::-webkit-scrollbar{width:6px;height:6px}.gd-ant-role-selector-modal .gd-ant-role-selector-right::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.gd-ant-role-selector-modal .gd-ant-role-selector-right::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.gd-ant-role-selector-modal .gd-ant-role-selector-right::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.gd-ant-user-avatar{box-sizing:border-box;cursor:pointer;margin:5px;position:relative}.gd-ant-user-avatar .gd-ant-user-avatar__img{box-sizing:border-box;width:100%;height:100%;display:block}.gd-ant-user-avatar .gd-ant-user-avatar__name{color:#fff;box-sizing:border-box;border-radius:50%;justify-content:center;align-items:center;width:100%;min-width:24px;height:100%;min-height:24px;display:flex}.gd-ant-user-avatar-default{width:32px;height:32px}.gd-ant-user-avatar-default .gd-ant-user-avatar__name{font-size:12px}.gd-ant-user-avatar-small{width:24px;height:24px}.gd-ant-user-avatar-small .gd-ant-user-avatar__name{font-size:8px}.gd-ant-user-avatar-large{width:40px;height:40px}.gd-ant-user-avatar-large .gd-ant-user-avatar__name{font-size:14px}.gd-ant-dept-selector__modal-content{box-sizing:border-box;border:1px solid #e5e5e5;border-radius:4px;height:400px;display:flex}.gd-ant-dept-selector__modal-content-left{box-sizing:border-box;border-right:1px solid #e5e5e5;width:50%;height:100%;padding:12px}.gd-ant-dept-selector__modal-content-left .gd-ant-dept-selector__modal-content-left-tree{height:320px;overflow-y:auto}.gd-ant-dept-selector__modal-content-left .gd-ant-dept-selector__modal-content-left-tree::-webkit-scrollbar{width:6px;height:6px}.gd-ant-dept-selector__modal-content-left .gd-ant-dept-selector__modal-content-left-tree::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.gd-ant-dept-selector__modal-content-left .gd-ant-dept-selector__modal-content-left-tree::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.gd-ant-dept-selector__modal-content-left .gd-ant-dept-selector__modal-content-left-tree::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.gd-ant-dept-selector__modal-content-right{box-sizing:border-box;flex:1;height:100%;padding:12px;overflow-y:auto}.gd-ant-dept-selector__modal-content-right::-webkit-scrollbar{width:6px;height:6px}.gd-ant-dept-selector__modal-content-right::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.gd-ant-dept-selector__modal-content-right::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.gd-ant-dept-selector__modal-content-right::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.gd-ant-dept-selector__modal-content-right .gd-ant-dept-selector__modal-content-right-item{cursor:pointer;border-radius:4px;justify-content:space-between;align-items:center;height:40px;padding:0 12px;display:flex}.gd-ant-dept-selector__modal-content-right .gd-ant-dept-selector__modal-content-right-item:hover{background-color:#f5f7fa}.gd-ant-dept-selector__modal-content-right .gd-ant-dept-selector__modal-content-right-item .gd-ant-dept-selector__modal-content-right-item-label{align-items:center;display:flex}.gd-ant-dept-selector__modal-content-right .gd-ant-dept-selector__modal-content-right-item span{padding:0 4px}.gd-ant-dept-selector__modal-content-right .gd-ant-dept-selector__modal-content-right-item .gd-ant-dept-selector__modal-content-right-item-del:hover .icon-gd-ant-shanchu{color:var(--gd-color-primary)!important}.gd-ant-pro-user-selector{border:1px solid #e5e5e5;border-radius:4px;justify-content:center;height:300px;display:flex;overflow:hidden}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree{height:200px;margin-top:16px;overflow:hidden auto}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree::-webkit-scrollbar{width:6px;height:6px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree .gd-ant-pro-user-selector-org-tree-item{box-sizing:border-box;justify-content:space-between;align-items:center;height:48px;margin:0 10px;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree .gd-ant-pro-user-selector-org-tree-item:hover{cursor:pointer;background-color:#1f232914;border-radius:6px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree .gd-ant-pro-user-selector-org-tree-item .gd-ant-pro-user-selector-org-tree-item-title{align-items:center;width:100%;height:100%;padding:0 6px;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree .gd-ant-pro-user-selector-org-tree-item .gd-ant-pro-user-selector-org-tree-item-title .gd-ant-pro-user-selector-org-tree-dept-icon{background-color:#4954e6;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree .gd-ant-pro-user-selector-org-tree-item .gd-ant-pro-user-selector-org-tree-item-title .gd-ant-pro-user-selector-org-tree-item-title-text{color:#1f2329;margin-left:10px;font-size:14px}.gd-ant-pro-user-selector .select-user-list{height:240px;margin-top:16px;overflow:hidden auto}.gd-ant-pro-user-selector .select-user-list::-webkit-scrollbar{width:6px;height:6px}.gd-ant-pro-user-selector .select-user-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.gd-ant-pro-user-selector .select-user-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.gd-ant-pro-user-selector .select-user-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-list{margin-top:10px;overflow:hidden auto}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item{box-sizing:border-box;align-items:center;width:calc(100% - 20px);height:48px;margin:0 10px;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item:hover{cursor:pointer;background-color:#1f232914;border-radius:6px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item .gd-ant-pro-user-selector-user-item-content{flex:1;align-items:center;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item .gd-ant-pro-user-selector-user-item-content .gd-ant-pro-user-selector-user-item-content-tag{color:#245bdb;background-color:#3370ff33;border-radius:4px;margin-left:10px;padding-left:4px;padding-right:4px;font-size:10px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item .gd-ant-pro-user-selector-user-item-content .select-user-item-icon{cursor:pointer;justify-content:center;align-items:center;width:20px;height:20px;margin-right:4px;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item .gd-ant-pro-user-selector-user-item-content .select-user-item-icon:hover{background-color:#1f23291a;border-radius:6px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item .gd-ant-pro-user-selector-avator{border-radius:50%;width:32px;height:32px;margin-left:10px;margin-right:10px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-content-left{box-sizing:border-box;width:50%}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-content-left .gd-ant-pro-user-selector-breadcrumb{margin-top:10px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-content-right{box-sizing:border-box;border-left:1px solid #e5e5e5;width:50%;padding:16px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-content-right .gd-ant-pro-user-selector-content-right-title{color:#333;margin-bottom:10px;font-size:14px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-content-right .gd-ant-pro-user-selector-select-user-item{cursor:pointer;justify-content:space-between;align-items:center;width:100%;height:48px;padding:0 10px;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-content-right .gd-ant-pro-user-selector-select-user-item:hover{background-color:#1f232914;border-radius:6px}.gd-ant-user-selector-extermal{flex-wrap:wrap;width:100%;display:flex}.gd-ant-user-selector-extermal .gd-ant-user-selector-extermal-icon{border:1px solid var(--gd-color-primary);cursor:pointer;border-radius:100px;justify-content:center;align-items:center;width:56px;height:32px;margin-top:8px;margin-right:8px;display:flex}.gd-ant-user-selector-extermal .gd-ant-user-selector-extermal-icon:hover{transition:all .2s;box-shadow:0 0 10px #3370ff80}.gd-ant-user-selector-extermal .gd-ant-user-selector-extermal-list{flex-wrap:wrap;flex:1;display:flex}.gd-ant-user-selector-extermal .gd-ant-user-selector-extermal-list .gd-ant-user-selector-extermal-item{box-sizing:border-box;color:#1f2329;cursor:pointer;background-color:#eff0f1;border-radius:16px;align-items:center;min-width:70px;height:32px;margin-top:8px;margin-right:8px;padding:0 10px 0 4px;font-size:14px;display:flex}.gd-ant-user-selector-extermal .gd-ant-user-selector-extermal-list .gd-ant-user-selector-extermal-item__name{padding:0 4px}.gd-ant-user-selector-extermal .gd-ant-user-selector-extermal-list .icon-gd-ant-shanchu:hover{color:var(--gd-color-primary)!important}.gd-ant-pro-cell{line-height:24px;display:flex}.gd-ant-pro-cell .gd-ant-pro-cell-label{align-items:center;display:flex}.gd-ant-pro-cell .gd-ant-pro-cell-value{word-break:break-word;flex:1}.gd-ant-pro-cell.is_border{border-bottom:1px solid #e5e5e5}.gd-ant-pro-cell.is_vertical{flex-direction:column}.gd-ant-pro-cell.is_horizontal{flex-direction:row}.f-s-c{align-items:center;display:flex}.f-b-c,.aio-list-input .aio-list-input-item{justify-content:space-between;align-items:center;display:flex}.aio-list-input .aio-list-input-item .aio-list-input-icon{margin-left:12px;display:flex}.text-ellipsis,.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_content .gd-ant-select-box_content-item .gd-ant-select-box_content-item_name,.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_title .gd-ant-select-box_title_count{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.text-ellipsis-multiline{-webkit-line-clamp:2;text-overflow:ellipsis;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.gd-ant-pro-selector-group-content{box-sizing:border-box;border:1px solid #e4e5e7;border-radius:4px;width:900px;height:500px;margin:0 auto;display:flex}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-left{box-sizing:border-box;padding:0 15px}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-left .selector-tree{height:375px;margin-top:16px;overflow:auto}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-left .selector-tree .tree-title{align-items:center;display:flex}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-left .selector-tree .tree-title .tree-title_name{margin-left:4px}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-left .type-selector-box{justify-content:space-between;width:100%;height:430px;display:flex}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right{box-sizing:border-box;border-left:1px solid #e4e5e7;flex:1;height:100%;padding:15px}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box{width:100%;height:100%}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_title{justify-content:space-between;align-items:center;height:40px;display:flex}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_content{height:calc(100% - 44px);margin-top:12px;overflow:auto}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_content .gd-ant-select-box_content-item{border-radius:4px;justify-content:space-between;align-items:center;width:100%;padding:8px;transition:background-color .2s;display:flex}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_content .gd-ant-select-box_content-item:hover{background-color:#f5f5f5;border-radius:4px}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_content .gd-ant-select-box_content-item .gd-ant-select-box_content-item_name{color:#1f2329;font-size:14px}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_content .gd-ant-select-box_content-item .gd-ant-select-box_content-item_close{cursor:pointer}.k-pro-drawer__footer{justify-content:flex-end;display:flex}.k-pro-drawer__footer .ant-btn:not(:last-child){margin-right:15px}
1
+ :root{--gd-color-white:#fff;--gd-color-primary:#1161ff;--gd-color-primary-light-3:#5890ff;--gd-color-primary-light-5:#88b0ff;--gd-color-primary-light-7:#b8d0ff;--gd-color-primary-light-8:#cfdfff;--gd-color-primary-light-9:#e7efff;--gd-color-success:#67c23a;--gd-color-success-light-3:#95d475;--gd-color-success-light-5:#b3e19d;--gd-color-success-light-7:#d1edc4;--gd-color-success-light-8:#e1f3d8;--gd-color-success-light-9:#f0f9eb;--gd-color-warning:#e6a23c;--gd-color-warning-light-3:#eebe77;--gd-color-warning-light-5:#f3d19e;--gd-color-warning-light-7:#f8e3c5;--gd-color-warning-light-8:#faecd8;--gd-color-warning-light-9:#fdf6ec;--gd-color-danger:#f56c6c;--gd-color-danger-light-3:#f89898;--gd-color-danger-light-5:#fab6b6;--gd-color-danger-light-7:#fcd3d3;--gd-color-danger-light-8:#fde2e2;--gd-color-danger-light-9:#fef0f0;--gd-color-error:#f56c6c;--gd-color-error-light-3:#f89898;--gd-color-error-light-5:#fab6b6;--gd-color-error-light-7:#fcd3d3;--gd-color-error-light-8:#fde2e2;--gd-color-error-light-9:#fef0f0;--gd-color-info:#909399;--gd-color-info-light-3:#b1b3b8;--gd-color-info-light-5:#c8c9cc;--gd-color-info-light-7:#dedfe0;--gd-color-info-light-8:#e9e9eb;--gd-color-info-light-9:#f4f4f5;--king-transition-duration:.3s}.gd-ant-scrollbar{z-index:auto;width:100%;height:100%;position:relative;overflow:hidden}.gd-ant-scrollbar .gd-ant-scrollbar-container{width:100%;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none;overflow:scroll}.gd-ant-scrollbar .gd-ant-scrollbar-content{width:fit-content}.gd-ant-scrollbar .gd-ant-scrollbar-rail{position:absolute}.gd-ant-scrollbar .gd-ant-scrollbar-rail--vertical{width:5px;top:2px;bottom:2px;right:4px}.gd-ant-scrollbar .gd-ant-scrollbar-rail--horizontal{height:5px;bottom:2px;left:2px;right:2px}.gd-ant-scrollbar .gd-ant-scrollbar-rail__scrollbar--vertical{cursor:pointer;background:#00000040;border-radius:5px;width:100%;position:absolute}.gd-ant-scrollbar .gd-ant-scrollbar-rail__scrollbar--horizontal{cursor:pointer;background:#00000040;border-radius:5px;height:100%;position:absolute}.v-vl-items{width:fit-content}.gd-ant-scale-virtual-list{width:100%;height:100%}.gd-ant-scale-virtual-list .gd-ant-scale-virtual-list-container{margin:0 auto;position:relative}.gd-ant-scale-virtual-list .gd-ant-scale-vittual-wrapper{width:fit-content;margin:0 auto;position:absolute;left:50%}.gd-ant-pro-title{border-bottom:1px solid #ccc;align-items:center;font-weight:500;display:flex}.gd-ant-pro-title .icon{margin-right:10px}.gd-ant-pro-title--unborder{border:none}.gd-ant-pro-modal .ant-modal-content{padding:0}.gd-ant-pro-modal .ant-modal-header{background:#f1f7ff;border-bottom:1px solid #e6e8ea;justify-content:space-between;align-items:center;height:56px;padding-left:32px;padding-right:24px;display:flex}.gd-ant-pro-modal .ant-modal-body{max-height:80vh;padding:10px 20px;overflow:auto}.gd-ant-pro-modal .ant-modal-footer{border-top:1px solid #e6e8ea;justify-content:flex-end;align-items:center;height:56px;padding:0 16px;display:flex}.gd-ant-pro-modal .ant-modal-title{flex:1}.gd-ant-pro-modal .pro-modal-title{cursor:move;width:100%}.gd-ant-pro-area-select{width:100%}@font-face{font-family:gd-ant-iconfont;src:url(./fonts/iconfont.woff2?t=95949)format("woff2"),url(./fonts/iconfont.woff?t=7547)format("woff"),url(./fonts/iconfont.ttf?t=91456)format("truetype")}.gd-ant-icon{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;font-style:normal;font-family:gd-ant-iconfont!important}.icon-gd-ant-xinzeng:before{content:""}.icon-gd-ant-guanbi:before{content:"𐈔"}.icon-gd-ant-sync:before{content:""}.icon-gd-ant-tupianjiazaishibai:before{content:""}.icon-gd-ant-double-left:before{content:""}.icon-gd-ant-double-right:before{content:""}.icon-gd-ant-question-circle:before{content:""}.icon-gd-ant-sound:before{content:""}.icon-gd-ant-code:before{content:""}.icon-gd-ant-desktop:before{content:""}.icon-gd-ant-delete1:before{content:""}.icon-gd-ant-mobile:before{content:""}.icon-gd-ant-qiye:before{content:""}.icon-gd-ant-bumen:before{content:""}.icon-gd-ant-a-jiaoseguanli2:before{content:""}.icon-gd-ant-shanchu:before{content:""}.icon-gd-ant-zuzhijiagou:before{content:""}.icon-gd-ant-search:before{content:""}.icon-gd-ant-calendar:before{content:""}.icon-gd-ant-carry-out:before{content:""}.icon-gd-ant-file-add:before{content:""}.icon-gd-ant-form:before{content:""}.icon-gd-ant-close-circle:before{content:""}.icon-gd-ant-close-circle-o:before{content:""}.icon-gd-ant-vertical-align-bottom:before{content:""}.icon-gd-ant-merge-cells:before{content:""}.icon-gd-ant-split-cells:before{content:""}.icon-gd-ant-down:before{content:""}.icon-gd-ant-left:before{content:""}.icon-gd-ant-right:before{content:""}.icon-gd-ant-up:before{content:""}.icon-gd-ant-plus:before{content:""}.icon-gd-ant-xsl:before{content:""}.icon-gd-ant-word:before{content:""}.icon-gd-ant-eye:before{content:""}.icon-gd-ant-PDF:before{content:""}.icon-gd-ant-delete:before{content:""}.icon-gd-ant-upload-icon:before{content:""}.icon-gd-ant-title-icon:before{content:""}.gd-ant-cover-scrollbar{width:100%;height:100%;position:relative;overflow:hidden}.gd-ant-cover-scrollbar .gd-ant-cover-scrollbar-container{scrollbar-width:none;width:100%;height:100%;overflow:scroll}.gd-ant-cover-scrollbar .gd-ant-cover-scrollbar-rail{width:5px;position:absolute;top:2px;bottom:2px}.gd-ant-cover-scrollbar .gd-ant-cover-scrollbar-rail__scrollbar--vertical{cursor:pointer;border-radius:5px;width:100%;position:absolute}.gd-ant-pro-overlay{cursor:pointer;display:inline-block;position:relative}.gd-ant-pro-overlay .gd-ant-pro-overlay__content{opacity:0;justify-content:center;align-items:center;transition:all .2s linear;display:flex;position:absolute;inset:0}.gd-ant-pro-overlay:hover .gd-ant-pro-overlay__content{opacity:1;background:#00000080}.gd-ant-plus-upload .gd-ant-plus-upload__icon-plus{font-size:32px!important}.gd-ant-plus-upload .gd-ant-plus-upload__icon-eye,.gd-ant-plus-upload .gd-ant-plus-upload__icon-delete{margin-right:5px;color:#fff!important;font-size:16px!important}.gd-ant-plus-upload .gd-ant-plus-upload__file-item{border:1px solid #cbcdd3;border-radius:3px;justify-content:center;align-items:center;width:102px;height:102px;display:flex}.gd-ant-pro-tag-group{color:#3b3b3b;border:1px solid #d9d9d9;border-radius:3px;align-items:center;width:100%;height:30px;padding:5px;display:flex}.gd-ant-pro-tag-group .gd-ant-pro-tag-group__tags{scrollbar-width:none;flex:1;align-items:center;gap:5px;height:100%;display:flex;overflow-x:hidden}.gd-ant-pro-tag-group .gd-ant-pro-tag-group__count{text-align:center;white-space:nowrap;text-overflow:ellipsis;background:#d9d9d9;height:100%;margin-left:5px;padding:0 5px;line-height:normal;overflow:hidden}.gd-ant-pro-tag-group .gd-ant-pro-tag-group__item{visibility:hidden;background:#d9d9d9;flex-shrink:0;padding:0 5px;line-height:normal}.gd-ant-pro-tag-group .gd-ant-pro-tag-group__item:hover .gd-ant-pro-tag-group__remove-icon{background:#a3a3a3;border-radius:50%;color:#fff!important}.gd-ant-pro-tag-group .gd-ant-pro-tag-group__remove-icon{cursor:pointer;margin-left:2px;padding:1px}.gd-ant-pro-tag-group .gd-ant-pro-tag-group__visible{visibility:inherit}.gd-ant-role-selector-modal{border:1px solid #e5e5e5;border-radius:4px;width:100%;height:300px;display:flex;overflow:hidden}.gd-ant-role-selector-modal .gd-ant-role-selector__role-item{cursor:pointer;justify-content:space-between;align-items:center;width:100%;height:40px;display:flex}.gd-ant-role-selector-modal .gd-ant-role-selector__role-item.is-active{padding:0 10px}.gd-ant-role-selector-modal .gd-ant-role-selector__role-item:hover.is-active{background-color:#f5f7fa;border-radius:4px}.gd-ant-role-selector-modal .gd-ant-role-selector__role-item .gd-ant-role-selector-role-item-label{display:flex}.gd-ant-role-selector-modal .gd-ant-role-selector__role-item .gd-ant-role-selector__label{color:#606266;padding-left:5px;font-size:14px}.gd-ant-role-selector-modal .gd-ant-role-selector__role-item .gd-ant-role-selector__role-item-del:hover .icon-gd-ant-shanchu{color:var(--gd-color-primary)!important}.gd-ant-role-selector-modal .gd-ant-role-selector-left{box-sizing:border-box;width:50%;height:300px;padding:15px}.gd-ant-role-selector-modal .gd-ant-role-selector-left .gd-ant-role-selector__role-list{width:100%;height:230px;margin-top:15px;overflow-y:auto}.gd-ant-role-selector-modal .gd-ant-role-selector-left .gd-ant-role-selector__role-list::-webkit-scrollbar{width:6px;height:6px}.gd-ant-role-selector-modal .gd-ant-role-selector-left .gd-ant-role-selector__role-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.gd-ant-role-selector-modal .gd-ant-role-selector-left .gd-ant-role-selector__role-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.gd-ant-role-selector-modal .gd-ant-role-selector-left .gd-ant-role-selector__role-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.gd-ant-role-selector-modal .gd-ant-role-selector-right{box-sizing:border-box;border-left:1px solid #e5e5e5;flex:1;height:300px;padding:15px;overflow-y:auto}.gd-ant-role-selector-modal .gd-ant-role-selector-right::-webkit-scrollbar{width:6px;height:6px}.gd-ant-role-selector-modal .gd-ant-role-selector-right::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.gd-ant-role-selector-modal .gd-ant-role-selector-right::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.gd-ant-role-selector-modal .gd-ant-role-selector-right::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.gd-ant-user-avatar{box-sizing:border-box;cursor:pointer;margin:5px;position:relative}.gd-ant-user-avatar .gd-ant-user-avatar__img{box-sizing:border-box;width:100%;height:100%;display:block}.gd-ant-user-avatar .gd-ant-user-avatar__name{color:#fff;box-sizing:border-box;border-radius:50%;justify-content:center;align-items:center;width:100%;min-width:24px;height:100%;min-height:24px;display:flex}.gd-ant-user-avatar-default{width:32px;height:32px}.gd-ant-user-avatar-default .gd-ant-user-avatar__name{font-size:12px}.gd-ant-user-avatar-small{width:24px;height:24px}.gd-ant-user-avatar-small .gd-ant-user-avatar__name{font-size:8px}.gd-ant-user-avatar-large{width:40px;height:40px}.gd-ant-user-avatar-large .gd-ant-user-avatar__name{font-size:14px}.gd-ant-dept-selector__modal-content{box-sizing:border-box;border:1px solid #e5e5e5;border-radius:4px;height:400px;display:flex}.gd-ant-dept-selector__modal-content-left{box-sizing:border-box;border-right:1px solid #e5e5e5;width:50%;height:100%;padding:12px}.gd-ant-dept-selector__modal-content-left .gd-ant-dept-selector__modal-content-left-tree{height:320px;overflow-y:auto}.gd-ant-dept-selector__modal-content-left .gd-ant-dept-selector__modal-content-left-tree::-webkit-scrollbar{width:6px;height:6px}.gd-ant-dept-selector__modal-content-left .gd-ant-dept-selector__modal-content-left-tree::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.gd-ant-dept-selector__modal-content-left .gd-ant-dept-selector__modal-content-left-tree::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.gd-ant-dept-selector__modal-content-left .gd-ant-dept-selector__modal-content-left-tree::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.gd-ant-dept-selector__modal-content-right{box-sizing:border-box;flex:1;height:100%;padding:12px;overflow-y:auto}.gd-ant-dept-selector__modal-content-right::-webkit-scrollbar{width:6px;height:6px}.gd-ant-dept-selector__modal-content-right::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.gd-ant-dept-selector__modal-content-right::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.gd-ant-dept-selector__modal-content-right::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.gd-ant-dept-selector__modal-content-right .gd-ant-dept-selector__modal-content-right-item{cursor:pointer;border-radius:4px;justify-content:space-between;align-items:center;height:40px;padding:0 12px;display:flex}.gd-ant-dept-selector__modal-content-right .gd-ant-dept-selector__modal-content-right-item:hover{background-color:#f5f7fa}.gd-ant-dept-selector__modal-content-right .gd-ant-dept-selector__modal-content-right-item .gd-ant-dept-selector__modal-content-right-item-label{align-items:center;display:flex}.gd-ant-dept-selector__modal-content-right .gd-ant-dept-selector__modal-content-right-item span{padding:0 4px}.gd-ant-dept-selector__modal-content-right .gd-ant-dept-selector__modal-content-right-item .gd-ant-dept-selector__modal-content-right-item-del:hover .icon-gd-ant-shanchu{color:var(--gd-color-primary)!important}.gd-ant-pro-user-selector{border:1px solid #e5e5e5;border-radius:4px;justify-content:center;height:300px;display:flex;overflow:hidden}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree{height:200px;margin-top:16px;overflow:hidden auto}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree::-webkit-scrollbar{width:6px;height:6px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree .gd-ant-pro-user-selector-org-tree-item{box-sizing:border-box;justify-content:space-between;align-items:center;height:48px;margin:0 10px;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree .gd-ant-pro-user-selector-org-tree-item:hover{cursor:pointer;background-color:#1f232914;border-radius:6px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree .gd-ant-pro-user-selector-org-tree-item .gd-ant-pro-user-selector-org-tree-item-title{align-items:center;width:100%;height:100%;padding:0 6px;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree .gd-ant-pro-user-selector-org-tree-item .gd-ant-pro-user-selector-org-tree-item-title .gd-ant-pro-user-selector-org-tree-dept-icon{background-color:#4954e6;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-org-tree .gd-ant-pro-user-selector-org-tree-item .gd-ant-pro-user-selector-org-tree-item-title .gd-ant-pro-user-selector-org-tree-item-title-text{color:#1f2329;margin-left:10px;font-size:14px}.gd-ant-pro-user-selector .select-user-list{height:240px;margin-top:16px;overflow:hidden auto}.gd-ant-pro-user-selector .select-user-list::-webkit-scrollbar{width:6px;height:6px}.gd-ant-pro-user-selector .select-user-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.gd-ant-pro-user-selector .select-user-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.gd-ant-pro-user-selector .select-user-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-list{margin-top:10px;overflow:hidden auto}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item{box-sizing:border-box;align-items:center;width:calc(100% - 20px);height:48px;margin:0 10px;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item:hover{cursor:pointer;background-color:#1f232914;border-radius:6px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item .gd-ant-pro-user-selector-user-item-content{flex:1;align-items:center;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item .gd-ant-pro-user-selector-user-item-content .gd-ant-pro-user-selector-user-item-content-tag{color:#245bdb;background-color:#3370ff33;border-radius:4px;margin-left:10px;padding-left:4px;padding-right:4px;font-size:10px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item .gd-ant-pro-user-selector-user-item-content .select-user-item-icon{cursor:pointer;justify-content:center;align-items:center;width:20px;height:20px;margin-right:4px;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item .gd-ant-pro-user-selector-user-item-content .select-user-item-icon:hover{background-color:#1f23291a;border-radius:6px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-user-item .gd-ant-pro-user-selector-avator{border-radius:50%;width:32px;height:32px;margin-left:10px;margin-right:10px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-content-left{box-sizing:border-box;width:50%}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-content-left .gd-ant-pro-user-selector-breadcrumb{margin-top:10px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-content-right{box-sizing:border-box;border-left:1px solid #e5e5e5;width:50%;padding:16px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-content-right .gd-ant-pro-user-selector-content-right-title{color:#333;margin-bottom:10px;font-size:14px}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-content-right .gd-ant-pro-user-selector-select-user-item{cursor:pointer;justify-content:space-between;align-items:center;width:100%;height:48px;padding:0 10px;display:flex}.gd-ant-pro-user-selector .gd-ant-pro-user-selector-content-right .gd-ant-pro-user-selector-select-user-item:hover{background-color:#1f232914;border-radius:6px}.gd-ant-user-selector-extermal{flex-wrap:wrap;width:100%;display:flex}.gd-ant-user-selector-extermal .gd-ant-user-selector-extermal-icon{border:1px solid var(--gd-color-primary);cursor:pointer;border-radius:100px;justify-content:center;align-items:center;width:56px;height:32px;margin-top:8px;margin-right:8px;display:flex}.gd-ant-user-selector-extermal .gd-ant-user-selector-extermal-icon:hover{transition:all .2s;box-shadow:0 0 10px #3370ff80}.gd-ant-user-selector-extermal .gd-ant-user-selector-extermal-list{flex-wrap:wrap;flex:1;display:flex}.gd-ant-user-selector-extermal .gd-ant-user-selector-extermal-list .gd-ant-user-selector-extermal-item{box-sizing:border-box;color:#1f2329;cursor:pointer;background-color:#eff0f1;border-radius:16px;align-items:center;min-width:70px;height:32px;margin-top:8px;margin-right:8px;padding:0 10px 0 4px;font-size:14px;display:flex}.gd-ant-user-selector-extermal .gd-ant-user-selector-extermal-list .gd-ant-user-selector-extermal-item__name{padding:0 4px}.gd-ant-user-selector-extermal .gd-ant-user-selector-extermal-list .icon-gd-ant-shanchu:hover{color:var(--gd-color-primary)!important}.gd-ant-pro-cell{line-height:24px;display:flex}.gd-ant-pro-cell .gd-ant-pro-cell-label{align-items:center;display:flex}.gd-ant-pro-cell .gd-ant-pro-cell-value{word-break:break-word;flex:1}.gd-ant-pro-cell.is_border{border-bottom:1px solid #e5e5e5}.gd-ant-pro-cell.is_vertical{flex-direction:column}.gd-ant-pro-cell.is_horizontal{flex-direction:row}.f-s-c{align-items:center;display:flex}.f-b-c,.aio-list-input .aio-list-input-item{justify-content:space-between;align-items:center;display:flex}.aio-list-input .aio-list-input-item .aio-list-input-icon{margin-left:12px;display:flex}.text-ellipsis,.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_content .gd-ant-select-box_content-item .gd-ant-select-box_content-item_name,.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_title .gd-ant-select-box_title_count{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.text-ellipsis-multiline{-webkit-line-clamp:2;text-overflow:ellipsis;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.gd-ant-pro-selector-group-content{box-sizing:border-box;border:1px solid #e4e5e7;border-radius:4px;width:900px;height:500px;margin:0 auto;display:flex}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-left{box-sizing:border-box;padding:0 15px}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-left .selector-tree{height:375px;margin-top:16px;overflow:auto}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-left .selector-tree .tree-title{align-items:center;display:flex}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-left .selector-tree .tree-title .tree-title_name{margin-left:4px}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-left .type-selector-box{justify-content:space-between;width:100%;height:430px;display:flex}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right{box-sizing:border-box;border-left:1px solid #e4e5e7;flex:1;height:100%;padding:15px}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box{width:100%;height:100%}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_title{justify-content:space-between;align-items:center;height:40px;display:flex}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_content{height:calc(100% - 44px);margin-top:12px;overflow:auto}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_content .gd-ant-select-box_content-item{border-radius:4px;justify-content:space-between;align-items:center;width:100%;padding:8px;transition:background-color .2s;display:flex}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_content .gd-ant-select-box_content-item:hover{background-color:#f5f5f5;border-radius:4px}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_content .gd-ant-select-box_content-item .gd-ant-select-box_content-item_name{color:#1f2329;font-size:14px}.gd-ant-pro-selector-group-content .gd-ant-pro-selector-group-right .gd-ant-select-box .gd-ant-select-box_content .gd-ant-select-box_content-item .gd-ant-select-box_content-item_close{cursor:pointer}.k-pro-drawer__footer{justify-content:flex-end;display:flex}.k-pro-drawer__footer .ant-btn:not(:last-child){margin-right:15px}
@@ -22,6 +22,10 @@ export declare const GdAntRoleSelector: import('../utils/install').SFCWithInstal
22
22
  readonly default: () => void;
23
23
  };
24
24
  readonly prefix: StringConstructor;
25
+ readonly valueField: {
26
+ readonly type: import('vue').PropType<"id" | "roleKey">;
27
+ readonly default: "roleKey";
28
+ };
25
29
  readonly hideSlot: {
26
30
  readonly type: BooleanConstructor;
27
31
  readonly default: false;
@@ -54,6 +58,10 @@ export declare const GdAntRoleSelector: import('../utils/install').SFCWithInstal
54
58
  readonly default: () => void;
55
59
  };
56
60
  readonly prefix: StringConstructor;
61
+ readonly valueField: {
62
+ readonly type: import('vue').PropType<"id" | "roleKey">;
63
+ readonly default: "roleKey";
64
+ };
57
65
  readonly hideSlot: {
58
66
  readonly type: BooleanConstructor;
59
67
  readonly default: false;
@@ -71,6 +79,7 @@ export declare const GdAntRoleSelector: import('../utils/install').SFCWithInstal
71
79
  readonly http: any;
72
80
  readonly isBuiltInRequest: boolean;
73
81
  readonly hideSlot: boolean;
82
+ readonly valueField: "id" | "roleKey";
74
83
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
75
84
  export declare const GdAntProRoleSelector: import('../utils/install').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
76
85
  readonly visible: BooleanConstructor;
@@ -95,6 +104,10 @@ export declare const GdAntProRoleSelector: import('../utils/install').SFCWithIns
95
104
  readonly default: () => void;
96
105
  };
97
106
  readonly prefix: StringConstructor;
107
+ readonly valueField: {
108
+ readonly type: import('vue').PropType<"id" | "roleKey">;
109
+ readonly default: "roleKey";
110
+ };
98
111
  readonly hideSlot: {
99
112
  readonly type: BooleanConstructor;
100
113
  readonly default: false;
@@ -127,6 +140,10 @@ export declare const GdAntProRoleSelector: import('../utils/install').SFCWithIns
127
140
  readonly default: () => void;
128
141
  };
129
142
  readonly prefix: StringConstructor;
143
+ readonly valueField: {
144
+ readonly type: import('vue').PropType<"id" | "roleKey">;
145
+ readonly default: "roleKey";
146
+ };
130
147
  readonly hideSlot: {
131
148
  readonly type: BooleanConstructor;
132
149
  readonly default: false;
@@ -144,5 +161,6 @@ export declare const GdAntProRoleSelector: import('../utils/install').SFCWithIns
144
161
  readonly http: any;
145
162
  readonly isBuiltInRequest: boolean;
146
163
  readonly hideSlot: boolean;
164
+ readonly valueField: "id" | "roleKey";
147
165
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
148
166
  export default GdAntRoleSelector;
@@ -22,6 +22,10 @@ declare const RoleSelector: import('vue').DefineComponent<import('vue').ExtractP
22
22
  readonly default: () => void;
23
23
  };
24
24
  readonly prefix: StringConstructor;
25
+ readonly valueField: {
26
+ readonly type: import('vue').PropType<"id" | "roleKey">;
27
+ readonly default: "roleKey";
28
+ };
25
29
  readonly hideSlot: {
26
30
  readonly type: BooleanConstructor;
27
31
  readonly default: false;
@@ -54,6 +58,10 @@ declare const RoleSelector: import('vue').DefineComponent<import('vue').ExtractP
54
58
  readonly default: () => void;
55
59
  };
56
60
  readonly prefix: StringConstructor;
61
+ readonly valueField: {
62
+ readonly type: import('vue').PropType<"id" | "roleKey">;
63
+ readonly default: "roleKey";
64
+ };
57
65
  readonly hideSlot: {
58
66
  readonly type: BooleanConstructor;
59
67
  readonly default: false;
@@ -71,5 +79,6 @@ declare const RoleSelector: import('vue').DefineComponent<import('vue').ExtractP
71
79
  readonly http: any;
72
80
  readonly isBuiltInRequest: boolean;
73
81
  readonly hideSlot: boolean;
82
+ readonly valueField: "id" | "roleKey";
74
83
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
75
84
  export default RoleSelector;
@@ -3,6 +3,18 @@ export type RoleSelectorOption = {
3
3
  label?: string;
4
4
  value: string;
5
5
  };
6
+ /** 内置请求接口返回的角色项 */
7
+ export type RoleBuiltinItem = {
8
+ id: string;
9
+ companyId: string;
10
+ roleName: string;
11
+ roleKey: string;
12
+ remark: string | null;
13
+ enable: boolean;
14
+ isDefault: boolean;
15
+ createTime: string;
16
+ updateTime: string;
17
+ };
6
18
  export declare const roleSelectorProps: {
7
19
  readonly visible: BooleanConstructor;
8
20
  readonly modelValue: {
@@ -19,7 +31,7 @@ export declare const roleSelectorProps: {
19
31
  };
20
32
  /**
21
33
  * 是否使用内置请求,内置请求会走用户中心即
22
- * ${prefix}security/company/role/page?pageNum=1&pageSize=1000
34
+ * ${prefix}security/business/company/role/list?pageNum=1&pageSize=500
23
35
  */
24
36
  readonly isBuiltInRequest: {
25
37
  readonly type: BooleanConstructor;
@@ -36,6 +48,13 @@ export declare const roleSelectorProps: {
36
48
  * 请求前缀,如 qy-user-service
37
49
  */
38
50
  readonly prefix: StringConstructor;
51
+ /**
52
+ * 选项 value 取值字段,id 或 roleKey
53
+ */
54
+ readonly valueField: {
55
+ readonly type: PropType<"id" | "roleKey">;
56
+ readonly default: "roleKey";
57
+ };
39
58
  /**
40
59
  * 是否隐藏插槽,只使用 modal
41
60
  */
@@ -44,7 +63,7 @@ export declare const roleSelectorProps: {
44
63
  readonly default: false;
45
64
  };
46
65
  };
47
- export declare const GTE_OPTIONS_URL = "/security/company/role/page?pageNum=1&pageSize=1000";
66
+ export declare const GTE_OPTIONS_URL = "/security/business/company/role/list?pageNum=1&pageSize=500";
48
67
  export declare const roleSelectorEmits: {
49
68
  'update:visible': (value: boolean) => boolean;
50
69
  'update:modelValue': (value: RoleSelectorOption[] | RoleSelectorOption) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guodun/antdv",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "CHANGELOG.md",