@king-one/antdv 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @king-one/antdv
2
2
 
3
+ ## 2.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 修改 url 请求
8
+
3
9
  ## 2.0.2
4
10
 
5
11
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { defineComponent as H, ref as s, watch as p, createVNode as n, Fragment as J } from "vue";
1
+ import { defineComponent as H, ref as s, watch as k, createVNode as n, Fragment as J } from "vue";
2
2
  import { useNamespace as Q } from "../../../hooks/use-namespace/index.mjs";
3
3
  import "../../index.mjs";
4
4
  import { message as W, FormItemRest as X, InputSearch as Y, Tree as Z, Empty as C, Input as ee } from "ant-design-vue";
@@ -18,9 +18,9 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
18
18
  children: "children",
19
19
  title: "deptName",
20
20
  key: "id"
21
- } : t.fieldNames), S = s(""), r = s([]), v = s(t.treeData), E = s(!1), k = s("");
21
+ } : t.fieldNames), S = s(""), r = s([]), v = s(t.treeData), E = s(!1), p = s("");
22
22
  if (t.isBuiltInRequest) {
23
- if (!t.http)
23
+ if (console.log("props.http =>", t.http), !t.http)
24
24
  throw new Error("请传入http实例");
25
25
  t.http.get(`${t.prefix}${le}`).then((e) => {
26
26
  e.status === 0 && (v.value = e.data);
@@ -44,16 +44,16 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
44
44
  return E.value = !1;
45
45
  t.type === "radio" ? r.value.length > 0 && (S.value = r.value[0][u.value.title] || "") : S.value = r.value.map((l) => l[u.value.title]).join(",");
46
46
  };
47
- p(() => t.visible, () => {
47
+ k(() => t.visible, () => {
48
48
  t.visible && N();
49
49
  }, {
50
50
  immediate: !0
51
- }), p(() => t.modelValue, () => {
51
+ }), k(() => t.modelValue, () => {
52
52
  v.value.length > 0 && N();
53
53
  }, {
54
54
  immediate: !0,
55
55
  deep: !0
56
- }), p(v, () => {
56
+ }), k(v, () => {
57
57
  v.value.length > 0 && N();
58
58
  }, {
59
59
  immediate: !0,
@@ -76,17 +76,17 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
76
76
  function D(e) {
77
77
  return e ? e.map((l) => R(l)).filter(Boolean) : [];
78
78
  }
79
- p(d, () => {
79
+ k(d, () => {
80
80
  t.type === "checkbox" && (x.value ? r.value = D(d.value.checked) : r.value = D(d.value), I("watch checkedKeys..."));
81
81
  }, {
82
82
  immediate: !0,
83
83
  deep: !0
84
- }), p(m, () => {
84
+ }), k(m, () => {
85
85
  t.type === "radio" && (r.value = D(m.value), I("watch selectedKeys..."));
86
86
  }, {
87
87
  immediate: !0,
88
88
  deep: !0
89
- }), p(() => t.treeData, () => {
89
+ }), k(() => t.treeData, () => {
90
90
  t.isBuiltInRequest || (v.value = t.treeData);
91
91
  });
92
92
  const _ = () => {
@@ -153,7 +153,7 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
153
153
  return i;
154
154
  }, z = (e) => {
155
155
  if (!e.trim()) {
156
- y.value = [], k.value = "", w.value = !0;
156
+ y.value = [], p.value = "", w.value = !0;
157
157
  return;
158
158
  }
159
159
  const l = /* @__PURE__ */ new Set(), i = (o, a) => {
@@ -168,15 +168,15 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
168
168
  c.children && c.children.length > 0 && i(c.children, a);
169
169
  });
170
170
  };
171
- i(v.value, e), y.value = Array.from(l), k.value = e, w.value = !0;
171
+ i(v.value, e), y.value = Array.from(l), p.value = e, w.value = !0;
172
172
  }, G = (e) => {
173
173
  const l = e[u.value.title] || "";
174
- if (!k.value)
174
+ if (!p.value)
175
175
  return n("span", null, [l]);
176
- const i = l.indexOf(k.value);
176
+ const i = l.indexOf(p.value);
177
177
  if (i === -1)
178
178
  return n("span", null, [l]);
179
- const o = l.substring(0, i), a = l.substring(i, i + k.value.length), c = l.substring(i + k.value.length);
179
+ const o = l.substring(0, i), a = l.substring(i, i + p.value.length), c = l.substring(i + p.value.length);
180
180
  return n("span", null, [o, n("span", {
181
181
  style: "color: #f50; font-weight: bold"
182
182
  }, [a]), c]);
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, inject as f, createVNode as e, Fragment as g } from "vue";
1
+ import { defineComponent as x, inject as f, createVNode as t, Fragment as g } from "vue";
2
2
  import { message as o, Image as u, Spin as y, Tooltip as b } from "ant-design-vue";
3
3
  import "../../index.mjs";
4
4
  import { UploadContextKey as w } from "./types.mjs";
@@ -31,36 +31,36 @@ const N = /* @__PURE__ */ x({
31
31
  setup(i, {
32
32
  emit: s
33
33
  }) {
34
- const n = f(w);
35
- console.log(n);
34
+ const l = f(w);
35
+ console.log(l);
36
36
  const {
37
37
  deleteFileApi: r
38
- } = v(i.http, n == null ? void 0 : n.prefix), {
38
+ } = v(i.http, l == null ? void 0 : l.prefix), {
39
39
  downloadFile: d
40
- } = I(i.http), p = async (t) => {
40
+ } = I(i.http, l == null ? void 0 : l.prefix), p = async (e) => {
41
41
  try {
42
- const l = await r({
42
+ const n = await r({
43
43
  params: {
44
- fileId: t.id
44
+ fileId: e.id
45
45
  }
46
46
  });
47
- if (l.status === 0) {
47
+ if (n.status === 0) {
48
48
  o.success("文件删除成功~");
49
- const m = i.list.filter((h) => t.id !== h.id);
50
- s("del-success", m, t);
49
+ const m = i.list.filter((h) => e.id !== h.id);
50
+ s("del-success", m, e);
51
51
  } else
52
- o.error(l.msg);
53
- } catch (l) {
54
- console.log(l), o.error(l);
52
+ o.error(n.msg);
53
+ } catch (n) {
54
+ console.log(n), o.error(n);
55
55
  }
56
- }, a = async (t) => {
57
- t.spining = !0, await d([t.id]) && (t.spining = !1);
56
+ }, a = async (e) => {
57
+ e.spining = !0, await d([e.id]) && (e.spining = !1);
58
58
  };
59
- return () => e(g, null, [i.list.map((t) => e("div", {
59
+ return () => t(g, null, [i.list.map((e) => t("div", {
60
60
  style: {
61
61
  marginTop: "5px"
62
62
  }
63
- }, [e("div", {
63
+ }, [t("div", {
64
64
  style: {
65
65
  display: "flex",
66
66
  position: "relative",
@@ -69,7 +69,7 @@ const N = /* @__PURE__ */ x({
69
69
  boxSizing: "border-box",
70
70
  borderRadius: "4px"
71
71
  }
72
- }, [e("div", {
72
+ }, [t("div", {
73
73
  style: {
74
74
  borderRadius: "0px 4px 0px 50px",
75
75
  position: "absolute",
@@ -84,8 +84,8 @@ const N = /* @__PURE__ */ x({
84
84
  alignItems: "center",
85
85
  justifyContent: "center"
86
86
  },
87
- onClick: () => p(t)
88
- }, [e(c, {
87
+ onClick: () => p(e)
88
+ }, [t(c, {
89
89
  name: "shanchu",
90
90
  color: "#fff",
91
91
  style: {
@@ -93,7 +93,7 @@ const N = /* @__PURE__ */ x({
93
93
  color: "white",
94
94
  paddingBottom: "4px"
95
95
  }
96
- }, null)], 8, ["onClick"]), t.type !== "img" ? e("div", {
96
+ }, null)], 8, ["onClick"]), e.type !== "img" ? t("div", {
97
97
  style: {
98
98
  position: "absolute",
99
99
  zIndex: 1e3,
@@ -103,13 +103,13 @@ const N = /* @__PURE__ */ x({
103
103
  color: "#cccccc",
104
104
  cursor: "pointer"
105
105
  },
106
- onClick: () => a(t)
107
- }, [e(c, {
106
+ onClick: () => a(e)
107
+ }, [t(c, {
108
108
  name: "vertical-align-bottom",
109
109
  color: "#ccc",
110
110
  size: 22
111
- }, null)], 8, ["onClick"]) : "", e("div", null, [t.type === "img" ? e(u, {
112
- src: t.icon,
111
+ }, null)], 8, ["onClick"]) : "", t("div", null, [e.type === "img" ? t(u, {
112
+ src: e.icon,
113
113
  style: {
114
114
  minWidth: "80px",
115
115
  minHeight: "80px",
@@ -117,10 +117,10 @@ const N = /* @__PURE__ */ x({
117
117
  height: `${i.itemHeight}px`,
118
118
  display: "block"
119
119
  }
120
- }, null, 8, ["src", "style"]) : e(y, {
121
- spinning: t.spining
120
+ }, null, 8, ["src", "style"]) : t(y, {
121
+ spinning: e.spining
122
122
  }, {
123
- default: () => [e("div", {
123
+ default: () => [t("div", {
124
124
  style: {
125
125
  minWidth: "80px",
126
126
  minHeight: "80px",
@@ -130,14 +130,14 @@ const N = /* @__PURE__ */ x({
130
130
  alignItems: "center",
131
131
  justifyContent: "center"
132
132
  }
133
- }, [e("img", {
134
- src: t.icon,
133
+ }, [t("img", {
134
+ src: e.icon,
135
135
  style: {
136
136
  width: `${i.itemWidth - 40}px`,
137
137
  height: `${i.itemHeight - 40}px`
138
138
  }
139
139
  }, null, 12, ["src"])], 4)]
140
- }, 8, ["spinning"])])]), e("div", {
140
+ }, 8, ["spinning"])])]), t("div", {
141
141
  style: {
142
142
  width: `${i.itemWidth}px`,
143
143
  minWidth: "80px",
@@ -149,11 +149,11 @@ const N = /* @__PURE__ */ x({
149
149
  textOverflow: "ellipsis",
150
150
  whiteSpace: "nowrap"
151
151
  }
152
- }, [e(b, {
152
+ }, [t(b, {
153
153
  placement: "left",
154
- title: t.fileName
154
+ title: e.fileName
155
155
  }, {
156
- default: () => [t.fileName]
156
+ default: () => [e.fileName]
157
157
  }, 8, ["title"])], 4)]))]);
158
158
  }
159
159
  });
@@ -1,27 +1,27 @@
1
- import { isVNode as O, defineComponent as j, ref as v, watch as m, createVNode as l } from "vue";
2
- import { useNamespace as D } from "../../../hooks/use-namespace/index.mjs";
1
+ import { isVNode as j, defineComponent as D, ref as v, watch as m, createVNode as l } from "vue";
2
+ import { useNamespace as M } from "../../../hooks/use-namespace/index.mjs";
3
3
  import "../../index.mjs";
4
- import { message as g, InputSearch as M, Empty as p, RadioGroup as T, Radio as F, CheckboxGroup as G, Checkbox as L, FormItemRest as B, Input as K } from "ant-design-vue";
5
- import { GTE_OPTIONS_URL as z, roleSelectorEmits as q, roleSelectorProps as $ } from "./types.mjs";
4
+ import { message as R, InputSearch as T, Empty as p, RadioGroup as F, Radio as G, CheckboxGroup as L, Checkbox as B, FormItemRest as K, Input as $ } from "ant-design-vue";
5
+ import { GTE_OPTIONS_URL as w, roleSelectorEmits as z, roleSelectorProps as q } from "./types.mjs";
6
6
  import { KIcon as E } from "../../icon/index.mjs";
7
7
  import { KProModal as H } from "../../pro-modal/index.mjs";
8
- function w(t) {
9
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !O(t);
8
+ function A(u) {
9
+ return typeof u == "function" || Object.prototype.toString.call(u) === "[object Object]" && !j(u);
10
10
  }
11
- const r = D("role-selector"), le = /* @__PURE__ */ j({
11
+ const r = M("role-selector"), le = /* @__PURE__ */ D({
12
12
  name: "KRoleSelector",
13
- props: $,
14
- emits: q,
15
- setup(t, {
13
+ props: q,
14
+ emits: z,
15
+ setup(u, {
16
16
  emit: i,
17
- attrs: A,
17
+ attrs: k,
18
18
  slots: S
19
19
  }) {
20
- const u = v([]), C = v(""), n = v([]), s = v([]), d = v(""), f = v(!1), c = v(t.options || []);
21
- if (t.isBuiltInRequest) {
22
- if (!t.http)
20
+ const t = v([]), g = v(""), n = v([]), s = v([]), d = v(""), f = v(!1), c = v(u.options || []);
21
+ if (u.isBuiltInRequest) {
22
+ if (console.log("props.http =>", `${u.prefix}${w}`), !u.http)
23
23
  throw new Error("请传入http实例");
24
- t.http.get(`${t.prefix}/${z}`).then((e) => {
24
+ u.http.get(`${u.prefix}${w}`).then((e) => {
25
25
  e.status === 0 && (n.value = e.data.list.map((a) => ({
26
26
  label: a.roleName,
27
27
  value: a.roleKey
@@ -35,62 +35,62 @@ const r = D("role-selector"), le = /* @__PURE__ */ j({
35
35
  d.value = "";
36
36
  const e = [];
37
37
  c.value.forEach((a) => {
38
- Array.isArray(u.value) ? u.value.includes(a.value) && e.push(a.label) : u.value === a.value && e.push(a.label);
38
+ Array.isArray(t.value) ? t.value.includes(a.value) && e.push(a.label) : t.value === a.value && e.push(a.label);
39
39
  }), d.value = e.join(",");
40
40
  }
41
- }, R = () => {
41
+ }, C = () => {
42
42
  const e = [];
43
- if (Array.isArray(u.value))
44
- u.value.forEach((a) => {
45
- const o = n.value.find((x) => x.value === a);
43
+ if (Array.isArray(t.value))
44
+ t.value.forEach((a) => {
45
+ const o = n.value.find((O) => O.value === a);
46
46
  o && e.push(o);
47
47
  });
48
48
  else {
49
- const a = n.value.find((o) => o.value === u.value);
49
+ const a = n.value.find((o) => o.value === t.value);
50
50
  a && e.push(a);
51
51
  }
52
52
  s.value = e;
53
53
  }, y = () => {
54
- Array.isArray(t.modelValue) ? u.value = t.modelValue.map((e) => e.value) : u.value = t.modelValue.value;
54
+ Array.isArray(u.modelValue) ? t.value = u.modelValue.map((e) => e.value) : t.value = u.modelValue.value;
55
55
  };
56
- m(() => t.visible, (e) => {
56
+ m(() => u.visible, (e) => {
57
57
  y();
58
- }), m(() => t.modelValue, (e) => {
58
+ }), m(() => u.modelValue, (e) => {
59
59
  c.value.length !== 0 && (f.value ? f.value = !1 : (y(), h()));
60
60
  }, {
61
61
  deep: !0,
62
62
  immediate: !0
63
- }), m(() => t.options, (e) => {
64
- t.isBuiltInRequest || (c.value = e || [], n.value = e || [], h(), R());
63
+ }), m(() => u.options, (e) => {
64
+ u.isBuiltInRequest || (c.value = e || [], n.value = e || [], h(), C());
65
65
  }, {
66
66
  deep: !0,
67
67
  immediate: !0
68
- }), m(u, () => {
69
- R();
68
+ }), m(t, () => {
69
+ C();
70
70
  }, {
71
71
  deep: !0,
72
72
  immediate: !0
73
73
  });
74
- const k = (e) => {
74
+ const I = (e) => {
75
75
  e ? n.value = n.value.filter((a) => {
76
76
  var o;
77
77
  return (o = a.label) == null ? void 0 : o.includes(e);
78
78
  }) : n.value = [...c.value];
79
- }, I = () => {
80
- i("update:visible", !1), i("cancel");
81
79
  }, V = () => {
80
+ i("update:visible", !1), i("cancel");
81
+ }, _ = () => {
82
82
  var e;
83
- if (t.type === "radio" && !u.value) {
84
- g.warn("请选择角色");
83
+ if (u.type === "radio" && !t.value) {
84
+ R.warn("请选择角色");
85
85
  return;
86
86
  }
87
- if (Array.isArray(u.value) && u.value.length === 0) {
88
- g.warn("请选择角色");
87
+ if (Array.isArray(t.value) && t.value.length === 0) {
88
+ R.warn("请选择角色");
89
89
  return;
90
90
  }
91
- Array.isArray(u.value) ? (d.value = s.value.map((a) => a.label).join(","), i("update:modelValue", s.value)) : (d.value = ((e = s.value[0]) == null ? void 0 : e.label) || "", i("update:modelValue", s.value[0])), f.value = !0, i("update:visible", !1), i("confirm", s.value);
92
- }, _ = (e) => {
93
- Array.isArray(u.value) ? u.value = u.value.filter((a) => a !== e.value) : u.value = "";
91
+ Array.isArray(t.value) ? (d.value = s.value.map((a) => a.label).join(","), i("update:modelValue", s.value)) : (d.value = ((e = s.value[0]) == null ? void 0 : e.label) || "", i("update:modelValue", s.value[0])), f.value = !0, i("update:visible", !1), i("confirm", s.value);
92
+ }, U = (e) => {
93
+ Array.isArray(t.value) ? t.value = t.value.filter((a) => a !== e.value) : t.value = "";
94
94
  }, b = (e, a) => l("div", {
95
95
  class: [r.e("role-item"), a && r.is("active")]
96
96
  }, [l("div", {
@@ -103,27 +103,27 @@ const r = D("role-selector"), le = /* @__PURE__ */ j({
103
103
  class: r.e("label")
104
104
  }, [e.label], 2)], 2), l("div", {
105
105
  class: r.e("role-item-del"),
106
- onClick: () => _(e)
106
+ onClick: () => U(e)
107
107
  }, [a && l(E, {
108
108
  name: "shanchu",
109
109
  size: 18,
110
110
  color: "#606266"
111
- }, null)], 10, ["onClick"])], 2), U = () => l("div", {
111
+ }, null)], 10, ["onClick"])], 2), x = () => l("div", {
112
112
  class: r.b("left")
113
- }, [l(M, {
113
+ }, [l(T, {
114
114
  allowClear: !0,
115
115
  placeholder: "请输入角色名称",
116
- value: C.value,
117
- "onUpdate:value": (e) => C.value = e,
118
- onSearch: k
116
+ value: g.value,
117
+ "onUpdate:value": (e) => g.value = e,
118
+ onSearch: I
119
119
  }, null, 8, ["allowClear", "value", "onUpdate:value", "onSearch"]), l("div", {
120
120
  class: r.e("role-list")
121
121
  }, [n.value.length === 0 && l(p, {
122
122
  description: "暂无数据",
123
123
  image: p.PRESENTED_IMAGE_SIMPLE
124
- }, null, 8, ["image"]), t.type === "radio" ? l(T, {
125
- value: u.value,
126
- "onUpdate:value": (e) => u.value = e
124
+ }, null, 8, ["image"]), u.type === "radio" ? l(F, {
125
+ value: t.value,
126
+ "onUpdate:value": (e) => t.value = e
127
127
  }, {
128
128
  default: () => [l("div", {
129
129
  style: "width: 100%;"
@@ -131,16 +131,16 @@ const r = D("role-selector"), le = /* @__PURE__ */ j({
131
131
  let o;
132
132
  return l("div", {
133
133
  key: a
134
- }, [l(F, {
134
+ }, [l(G, {
135
135
  value: e.value
136
- }, w(o = b(e)) ? o : {
136
+ }, A(o = b(e)) ? o : {
137
137
  default: () => [o],
138
138
  _: 1
139
139
  }, 8, ["value"])]);
140
140
  })])]
141
- }, 8, ["value", "onUpdate:value"]) : l(G, {
142
- value: u.value,
143
- "onUpdate:value": (e) => u.value = e
141
+ }, 8, ["value", "onUpdate:value"]) : l(L, {
142
+ value: t.value,
143
+ "onUpdate:value": (e) => t.value = e
144
144
  }, {
145
145
  default: () => [l("div", {
146
146
  style: "width: 100%;"
@@ -148,9 +148,9 @@ const r = D("role-selector"), le = /* @__PURE__ */ j({
148
148
  let o;
149
149
  return l("div", {
150
150
  key: a
151
- }, [l(L, {
151
+ }, [l(B, {
152
152
  value: e.value
153
- }, w(o = b(e)) ? o : {
153
+ }, A(o = b(e)) ? o : {
154
154
  default: () => [o],
155
155
  _: 1
156
156
  }, 8, ["value"])]);
@@ -163,25 +163,25 @@ const r = D("role-selector"), le = /* @__PURE__ */ j({
163
163
  description: "暂无数据",
164
164
  image: p.PRESENTED_IMAGE_SIMPLE
165
165
  }, null, 8, ["image"])], 2), P = () => l("div", null, [l(H, {
166
- modelValue: t.visible,
166
+ modelValue: u.visible,
167
167
  title: "选择角色",
168
168
  modalProps: {
169
169
  cancelText: "取消",
170
170
  okText: "确定",
171
171
  width: "700px",
172
- ...A
172
+ ...k
173
173
  },
174
- onOnCancel: () => I(),
175
- onOnConfirm: () => V()
174
+ onOnCancel: () => V(),
175
+ onOnConfirm: () => _()
176
176
  }, {
177
177
  default: () => [l("div", {
178
178
  class: r.b("modal")
179
- }, [U(), N()], 2)]
179
+ }, [x(), N()], 2)]
180
180
  }, 8, ["modelValue", "modalProps", "onOnCancel", "onOnConfirm"])]);
181
- return () => l(B, null, {
181
+ return () => l(K, null, {
182
182
  default: () => [l("div", {
183
183
  class: r.b()
184
- }, [t.hideSlot ? null : S.default ? S.default() : l(K, {
184
+ }, [u.hideSlot ? null : S.default ? S.default() : l($, {
185
185
  style: "width: 100%;",
186
186
  readonly: !0,
187
187
  value: d.value,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),j=require("../../../hooks/use-namespace/index.js");require("../../index.js");const v=require("ant-design-vue"),C=require("./types.js"),H=require("../../pro-modal/index.js"),I=require("../../icon/index.js"),f=j.useNamespace("dept-selector"),J=t.defineComponent({name:"KDeptSelector",props:C.deptSelectorProps,emits:C.deptSelectorEmits,setup(a,{emit:h,attrs:q,slots:N}){const E=t.ref(!0),S=t.ref(!0),y=t.ref([]),m=t.ref([]),d=t.ref([]),T=t.ref(!1),u=t.ref(a.isBuiltInRequest?{children:"children",title:"deptName",key:"id"}:a.fieldNames),g=t.ref(""),i=t.ref([]),s=t.ref(a.treeData),p=t.ref(!1),k=t.ref("");if(a.isBuiltInRequest){if(!a.http)throw new Error("请传入http实例");a.http.get(`${a.prefix}${C.GET_DEPT_TREE_URL}`).then(e=>{e.status===0&&(s.value=e.data)})}const b=()=>{if(a.type==="checkbox"){if(!Array.isArray(a.modelValue))return;const e=a.modelValue.map(l=>l[u.value.key]);E.value?d.value={checked:e,halfChecked:[]}:d.value=e,y.value=e}else{if(Array.isArray(a.modelValue))return;const e=a.modelValue[u.value.key];m.value=[e],y.value=[e]}},K=e=>{if(p.value)return p.value=!1;a.type==="radio"?i.value.length>0&&(g.value=i.value[0][u.value.title]||""):g.value=i.value.map(l=>l[u.value.title]).join(",")};t.watch(()=>a.visible,()=>{a.visible&&b()},{immediate:!0}),t.watch(()=>a.modelValue,()=>{s.value.length>0&&b()},{immediate:!0,deep:!0}),t.watch(s,()=>{s.value.length>0&&b()},{immediate:!0,deep:!0});function _(e){const l=(c,o)=>{for(const n of c){if(n[u.value.key]===o)return n;if(n.children&&n.children.length){const r=l(n.children,o);if(r)return r}}return null};return l(s.value,e)}function w(e){return e?e.map(l=>_(l)).filter(Boolean):[]}t.watch(d,()=>{a.type==="checkbox"&&(E.value?i.value=w(d.value.checked):i.value=w(d.value),K("watch checkedKeys..."))},{immediate:!0,deep:!0}),t.watch(m,()=>{a.type==="radio"&&(i.value=w(m.value),K("watch selectedKeys..."))},{immediate:!0,deep:!0}),t.watch(()=>a.treeData,()=>{a.isBuiltInRequest||(s.value=a.treeData)});const U=()=>{p.value=!0},A=()=>{p.value=!0},R=()=>{h("update:visible",!1),h("cancel")},M=()=>{if(!i.value.length){v.message.warn("请选择部门");return}a.type==="radio"?h("update:modelValue",{[u.value.key]:m.value[0],[u.value.title]:i.value[0][u.value.title]}):h("update:modelValue",i.value.map(e=>({[u.value.key]:e[u.value.key],[u.value.title]:e[u.value.title]}))),h("update:visible",!1),h("confirm",i.value),K("handleConfirm ...")},O=e=>{if(p.value=!0,a.type==="radio")return i.value=[],m.value=[],!1;if(E.value)d.value.checked=d.value.checked.filter(l=>l!==e[u.value.key]);else{const l=e.parentId,c=d.value.indexOf(l);c!==-1&&d.value.splice(c,1),d.value=d.value.filter(n=>n!==e[u.value.key]),B(e.children).forEach(n=>{const r=d.value.indexOf(n);r!==-1&&d.value.splice(r,1)})}},B=e=>{const l=[],c=o=>{for(const n of o)l.push(n[u.value.key]),n.children&&n.children.length&&c(n.children)};return c(e),l},F=()=>t.createVNode(t.Fragment,null,[t.createVNode(H.KProModal,{modelValue:a.visible,modalProps:{cancelText:"取消",okText:"确定",width:"700px",...q},title:"选择部门",onOnCancel:R,onOnConfirm:M},{default:()=>[t.createVNode("div",{class:f.e("modal-content")},[z(),G()],2)]},8,["modelValue","modalProps","onOnCancel","onOnConfirm"])]),V=(e,l)=>{let c;for(let o=0;o<l.length;o++){const n=l[o];if(n.children)if(n.children.some(r=>r[u.value.key]===e)){c=n[u.value.key];break}else V(e,n.children)&&(c=V(e,n.children))}return c},L=e=>{if(!e.trim()){y.value=[],k.value="",S.value=!0;return}const l=new Set,c=(o,n)=>{o.forEach(r=>{var P;if((P=r[u.value.title])!=null&&P.includes(n)){let x=V(r[u.value.key],s.value);for(;x;)l.add(x),x=V(x,s.value);l.add(r[u.value.key])}r.children&&r.children.length>0&&c(r.children,n)})};c(s.value,e),y.value=Array.from(l),k.value=e,S.value=!0},$=e=>{const l=e[u.value.title]||"";if(!k.value)return t.createVNode("span",null,[l]);const c=l.indexOf(k.value);if(c===-1)return t.createVNode("span",null,[l]);const o=l.substring(0,c),n=l.substring(c,c+k.value.length),r=l.substring(c+k.value.length);return t.createVNode("span",null,[o,t.createVNode("span",{style:"color: #f50; font-weight: bold"},[n]),r])},z=()=>t.createVNode("div",{class:f.e("modal-content-left")},[t.createVNode(v.FormItemRest,null,{default:()=>[t.createVNode(v.InputSearch,{placeholder:"请输入部门名称",onSearch:L,style:{marginBottom:"10px"},allowClear:!0},null,8,["onSearch","allowClear"])]}),s.value.length>0?t.createVNode(v.Tree,{expandedKeys:y.value,"onUpdate:expandedKeys":e=>y.value=e,selectedKeys:m.value,"onUpdate:selectedKeys":e=>m.value=e,checkedKeys:d.value,"onUpdate:checkedKeys":e=>d.value=e,checkable:a.type==="checkbox",checkStrictly:E.value,"show-icon":!0,autoExpandParent:S.value,blockNode:!0,defaultExpandAll:!0,fieldNames:u.value,"show-line":T.value,"tree-data":s.value,onCheck:U,onSelect:A,class:f.e("modal-content-left-tree")},{icon:e=>D(e),title:$,_:1},8,["expandedKeys","onUpdate:expandedKeys","selectedKeys","onUpdate:selectedKeys","checkedKeys","onUpdate:checkedKeys","checkable","checkStrictly","show-icon","autoExpandParent","blockNode","defaultExpandAll","fieldNames","show-line","tree-data","onCheck","onSelect","class"]):t.createVNode(v.Empty,{description:"暂无数据",image:v.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"])],2),D=e=>t.createVNode(I.KIcon,{name:e.parentId==="0"?"qiye":"bumen",size:16},null,8,["name"]),G=()=>t.createVNode("div",{class:f.e("modal-content-right")},[i.value.length>0?i.value.map(e=>t.createVNode("div",{class:f.e("modal-content-right-item")},[t.createVNode("div",{class:f.e("modal-content-right-item-label")},[D(e),t.createVNode("span",null,[e[u.value.title]])],2),t.createVNode("div",{class:f.e("modal-content-right-item-del"),onClick:()=>O(e)},[t.createVNode(I.KIcon,{name:"shanchu",size:16},null)],10,["onClick"])],2)):t.createVNode(v.Empty,{description:"暂无数据",image:v.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"])],2);return()=>{var e;return t.createVNode("div",{class:f.b()},[a.hideSlot?null:(e=N.default)!=null&&e.call(N)?N.default():t.createVNode("div",null,[t.createVNode(v.Input,{style:"width: 100%;",readonly:!0,value:g.value,"onUpdate:value":l=>g.value=l,onClick:()=>h("update:visible",!0),placeholder:"请选择部门"},{suffix:()=>t.createVNode("div",{onClick:()=>h("update:visible",!0)},[t.createVNode(I.KIcon,{style:{cursor:"pointer"},name:"bumen",size:18,color:"#606266"},null)],8,["onClick"]),_:1},8,["readonly","value","onUpdate:value","onClick"])]),F()],2)}}});exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),j=require("../../../hooks/use-namespace/index.js");require("../../index.js");const v=require("ant-design-vue"),C=require("./types.js"),H=require("../../pro-modal/index.js"),I=require("../../icon/index.js"),f=j.useNamespace("dept-selector"),J=t.defineComponent({name:"KDeptSelector",props:C.deptSelectorProps,emits:C.deptSelectorEmits,setup(a,{emit:h,attrs:q,slots:N}){const E=t.ref(!0),S=t.ref(!0),y=t.ref([]),m=t.ref([]),d=t.ref([]),T=t.ref(!1),u=t.ref(a.isBuiltInRequest?{children:"children",title:"deptName",key:"id"}:a.fieldNames),g=t.ref(""),i=t.ref([]),s=t.ref(a.treeData),p=t.ref(!1),k=t.ref("");if(a.isBuiltInRequest){if(console.log("props.http =>",a.http),!a.http)throw new Error("请传入http实例");a.http.get(`${a.prefix}${C.GET_DEPT_TREE_URL}`).then(e=>{e.status===0&&(s.value=e.data)})}const b=()=>{if(a.type==="checkbox"){if(!Array.isArray(a.modelValue))return;const e=a.modelValue.map(l=>l[u.value.key]);E.value?d.value={checked:e,halfChecked:[]}:d.value=e,y.value=e}else{if(Array.isArray(a.modelValue))return;const e=a.modelValue[u.value.key];m.value=[e],y.value=[e]}},K=e=>{if(p.value)return p.value=!1;a.type==="radio"?i.value.length>0&&(g.value=i.value[0][u.value.title]||""):g.value=i.value.map(l=>l[u.value.title]).join(",")};t.watch(()=>a.visible,()=>{a.visible&&b()},{immediate:!0}),t.watch(()=>a.modelValue,()=>{s.value.length>0&&b()},{immediate:!0,deep:!0}),t.watch(s,()=>{s.value.length>0&&b()},{immediate:!0,deep:!0});function _(e){const l=(c,o)=>{for(const n of c){if(n[u.value.key]===o)return n;if(n.children&&n.children.length){const r=l(n.children,o);if(r)return r}}return null};return l(s.value,e)}function w(e){return e?e.map(l=>_(l)).filter(Boolean):[]}t.watch(d,()=>{a.type==="checkbox"&&(E.value?i.value=w(d.value.checked):i.value=w(d.value),K("watch checkedKeys..."))},{immediate:!0,deep:!0}),t.watch(m,()=>{a.type==="radio"&&(i.value=w(m.value),K("watch selectedKeys..."))},{immediate:!0,deep:!0}),t.watch(()=>a.treeData,()=>{a.isBuiltInRequest||(s.value=a.treeData)});const U=()=>{p.value=!0},A=()=>{p.value=!0},R=()=>{h("update:visible",!1),h("cancel")},M=()=>{if(!i.value.length){v.message.warn("请选择部门");return}a.type==="radio"?h("update:modelValue",{[u.value.key]:m.value[0],[u.value.title]:i.value[0][u.value.title]}):h("update:modelValue",i.value.map(e=>({[u.value.key]:e[u.value.key],[u.value.title]:e[u.value.title]}))),h("update:visible",!1),h("confirm",i.value),K("handleConfirm ...")},O=e=>{if(p.value=!0,a.type==="radio")return i.value=[],m.value=[],!1;if(E.value)d.value.checked=d.value.checked.filter(l=>l!==e[u.value.key]);else{const l=e.parentId,c=d.value.indexOf(l);c!==-1&&d.value.splice(c,1),d.value=d.value.filter(n=>n!==e[u.value.key]),B(e.children).forEach(n=>{const r=d.value.indexOf(n);r!==-1&&d.value.splice(r,1)})}},B=e=>{const l=[],c=o=>{for(const n of o)l.push(n[u.value.key]),n.children&&n.children.length&&c(n.children)};return c(e),l},F=()=>t.createVNode(t.Fragment,null,[t.createVNode(H.KProModal,{modelValue:a.visible,modalProps:{cancelText:"取消",okText:"确定",width:"700px",...q},title:"选择部门",onOnCancel:R,onOnConfirm:M},{default:()=>[t.createVNode("div",{class:f.e("modal-content")},[z(),G()],2)]},8,["modelValue","modalProps","onOnCancel","onOnConfirm"])]),V=(e,l)=>{let c;for(let o=0;o<l.length;o++){const n=l[o];if(n.children)if(n.children.some(r=>r[u.value.key]===e)){c=n[u.value.key];break}else V(e,n.children)&&(c=V(e,n.children))}return c},L=e=>{if(!e.trim()){y.value=[],k.value="",S.value=!0;return}const l=new Set,c=(o,n)=>{o.forEach(r=>{var P;if((P=r[u.value.title])!=null&&P.includes(n)){let x=V(r[u.value.key],s.value);for(;x;)l.add(x),x=V(x,s.value);l.add(r[u.value.key])}r.children&&r.children.length>0&&c(r.children,n)})};c(s.value,e),y.value=Array.from(l),k.value=e,S.value=!0},$=e=>{const l=e[u.value.title]||"";if(!k.value)return t.createVNode("span",null,[l]);const c=l.indexOf(k.value);if(c===-1)return t.createVNode("span",null,[l]);const o=l.substring(0,c),n=l.substring(c,c+k.value.length),r=l.substring(c+k.value.length);return t.createVNode("span",null,[o,t.createVNode("span",{style:"color: #f50; font-weight: bold"},[n]),r])},z=()=>t.createVNode("div",{class:f.e("modal-content-left")},[t.createVNode(v.FormItemRest,null,{default:()=>[t.createVNode(v.InputSearch,{placeholder:"请输入部门名称",onSearch:L,style:{marginBottom:"10px"},allowClear:!0},null,8,["onSearch","allowClear"])]}),s.value.length>0?t.createVNode(v.Tree,{expandedKeys:y.value,"onUpdate:expandedKeys":e=>y.value=e,selectedKeys:m.value,"onUpdate:selectedKeys":e=>m.value=e,checkedKeys:d.value,"onUpdate:checkedKeys":e=>d.value=e,checkable:a.type==="checkbox",checkStrictly:E.value,"show-icon":!0,autoExpandParent:S.value,blockNode:!0,defaultExpandAll:!0,fieldNames:u.value,"show-line":T.value,"tree-data":s.value,onCheck:U,onSelect:A,class:f.e("modal-content-left-tree")},{icon:e=>D(e),title:$,_:1},8,["expandedKeys","onUpdate:expandedKeys","selectedKeys","onUpdate:selectedKeys","checkedKeys","onUpdate:checkedKeys","checkable","checkStrictly","show-icon","autoExpandParent","blockNode","defaultExpandAll","fieldNames","show-line","tree-data","onCheck","onSelect","class"]):t.createVNode(v.Empty,{description:"暂无数据",image:v.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"])],2),D=e=>t.createVNode(I.KIcon,{name:e.parentId==="0"?"qiye":"bumen",size:16},null,8,["name"]),G=()=>t.createVNode("div",{class:f.e("modal-content-right")},[i.value.length>0?i.value.map(e=>t.createVNode("div",{class:f.e("modal-content-right-item")},[t.createVNode("div",{class:f.e("modal-content-right-item-label")},[D(e),t.createVNode("span",null,[e[u.value.title]])],2),t.createVNode("div",{class:f.e("modal-content-right-item-del"),onClick:()=>O(e)},[t.createVNode(I.KIcon,{name:"shanchu",size:16},null)],10,["onClick"])],2)):t.createVNode(v.Empty,{description:"暂无数据",image:v.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"])],2);return()=>{var e;return t.createVNode("div",{class:f.b()},[a.hideSlot?null:(e=N.default)!=null&&e.call(N)?N.default():t.createVNode("div",null,[t.createVNode(v.Input,{style:"width: 100%;",readonly:!0,value:g.value,"onUpdate:value":l=>g.value=l,onClick:()=>h("update:visible",!0),placeholder:"请选择部门"},{suffix:()=>t.createVNode("div",{onClick:()=>h("update:visible",!0)},[t.createVNode(I.KIcon,{style:{cursor:"pointer"},name:"bumen",size:18,color:"#606266"},null)],8,["onClick"]),_:1},8,["readonly","value","onUpdate:value","onClick"])]),F()],2)}}});exports.default=J;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),o=require("ant-design-vue");require("../../index.js");const h=require("./types.js");require("./hooks/index.js");const x=require("./hooks/useHttp.js"),m=require("./hooks/useUpload.js"),s=require("../../icon/index.js"),f=t.defineComponent({props:{http:{type:[Object,Function],default:()=>({})},itemWidth:{type:Number,default:80},itemHeight:{type:Number,default:80},list:{type:Array,default:[]}},emits:{"del-success":(i,c)=>i},setup(i,{emit:c}){const l=t.inject(h.UploadContextKey);console.log(l);const{deleteFileApi:r}=x.useHttp(i.http,l==null?void 0:l.prefix),{downloadFile:d}=m.useUpload(i.http),a=async e=>{try{const n=await r({params:{fileId:e.id}});if(n.status===0){o.message.success("文件删除成功~");const u=i.list.filter(g=>e.id!==g.id);c("del-success",u,e)}else o.message.error(n.msg)}catch(n){console.log(n),o.message.error(n)}},p=async e=>{e.spining=!0,await d([e.id])&&(e.spining=!1)};return()=>t.createVNode(t.Fragment,null,[i.list.map(e=>t.createVNode("div",{style:{marginTop:"5px"}},[t.createVNode("div",{style:{display:"flex",position:"relative",border:"1px solid #ccc",marginRight:"15px",boxSizing:"border-box",borderRadius:"4px"}},[t.createVNode("div",{style:{borderRadius:"0px 4px 0px 50px",position:"absolute",top:"0",right:"0",width:"15px",height:"15px",background:"black",zIndex:1e3,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},onClick:()=>a(e)},[t.createVNode(s.KIcon,{name:"shanchu",color:"#fff",style:{fontSize:"10px",color:"white",paddingBottom:"4px"}},null)],8,["onClick"]),e.type!=="img"?t.createVNode("div",{style:{position:"absolute",zIndex:1e3,bottom:"2px",left:"2px",fontSize:"16px",color:"#cccccc",cursor:"pointer"},onClick:()=>p(e)},[t.createVNode(s.KIcon,{name:"vertical-align-bottom",color:"#ccc",size:22},null)],8,["onClick"]):"",t.createVNode("div",null,[e.type==="img"?t.createVNode(o.Image,{src:e.icon,style:{minWidth:"80px",minHeight:"80px",width:`${i.itemWidth}px`,height:`${i.itemHeight}px`,display:"block"}},null,8,["src","style"]):t.createVNode(o.Spin,{spinning:e.spining},{default:()=>[t.createVNode("div",{style:{minWidth:"80px",minHeight:"80px",width:`${i.itemWidth}px`,height:`${i.itemHeight}px`,display:"flex",alignItems:"center",justifyContent:"center"}},[t.createVNode("img",{src:e.icon,style:{width:`${i.itemWidth-40}px`,height:`${i.itemHeight-40}px`}},null,12,["src"])],4)]},8,["spinning"])])]),t.createVNode("div",{style:{width:`${i.itemWidth}px`,minWidth:"80px",fontSize:"12px",color:"#ccc",textAlign:"center",paddingTop:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},[t.createVNode(o.Tooltip,{placement:"left",title:e.fileName},{default:()=>[e.fileName]},8,["title"])],4)]))])}});exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),l=require("ant-design-vue");require("../../index.js");const h=require("./types.js");require("./hooks/index.js");const x=require("./hooks/useHttp.js"),f=require("./hooks/useUpload.js"),s=require("../../icon/index.js"),m=t.defineComponent({props:{http:{type:[Object,Function],default:()=>({})},itemWidth:{type:Number,default:80},itemHeight:{type:Number,default:80},list:{type:Array,default:[]}},emits:{"del-success":(i,c)=>i},setup(i,{emit:c}){const n=t.inject(h.UploadContextKey);console.log(n);const{deleteFileApi:r}=x.useHttp(i.http,n==null?void 0:n.prefix),{downloadFile:d}=f.useUpload(i.http,n==null?void 0:n.prefix),a=async e=>{try{const o=await r({params:{fileId:e.id}});if(o.status===0){l.message.success("文件删除成功~");const u=i.list.filter(g=>e.id!==g.id);c("del-success",u,e)}else l.message.error(o.msg)}catch(o){console.log(o),l.message.error(o)}},p=async e=>{e.spining=!0,await d([e.id])&&(e.spining=!1)};return()=>t.createVNode(t.Fragment,null,[i.list.map(e=>t.createVNode("div",{style:{marginTop:"5px"}},[t.createVNode("div",{style:{display:"flex",position:"relative",border:"1px solid #ccc",marginRight:"15px",boxSizing:"border-box",borderRadius:"4px"}},[t.createVNode("div",{style:{borderRadius:"0px 4px 0px 50px",position:"absolute",top:"0",right:"0",width:"15px",height:"15px",background:"black",zIndex:1e3,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},onClick:()=>a(e)},[t.createVNode(s.KIcon,{name:"shanchu",color:"#fff",style:{fontSize:"10px",color:"white",paddingBottom:"4px"}},null)],8,["onClick"]),e.type!=="img"?t.createVNode("div",{style:{position:"absolute",zIndex:1e3,bottom:"2px",left:"2px",fontSize:"16px",color:"#cccccc",cursor:"pointer"},onClick:()=>p(e)},[t.createVNode(s.KIcon,{name:"vertical-align-bottom",color:"#ccc",size:22},null)],8,["onClick"]):"",t.createVNode("div",null,[e.type==="img"?t.createVNode(l.Image,{src:e.icon,style:{minWidth:"80px",minHeight:"80px",width:`${i.itemWidth}px`,height:`${i.itemHeight}px`,display:"block"}},null,8,["src","style"]):t.createVNode(l.Spin,{spinning:e.spining},{default:()=>[t.createVNode("div",{style:{minWidth:"80px",minHeight:"80px",width:`${i.itemWidth}px`,height:`${i.itemHeight}px`,display:"flex",alignItems:"center",justifyContent:"center"}},[t.createVNode("img",{src:e.icon,style:{width:`${i.itemWidth-40}px`,height:`${i.itemHeight-40}px`}},null,12,["src"])],4)]},8,["spinning"])])]),t.createVNode("div",{style:{width:`${i.itemWidth}px`,minWidth:"80px",fontSize:"12px",color:"#ccc",textAlign:"center",paddingTop:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},[t.createVNode(l.Tooltip,{placement:"left",title:e.fileName},{default:()=>[e.fileName]},8,["title"])],4)]))])}});exports.default=m;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),P=require("../../../hooks/use-namespace/index.js");require("../../index.js");const r=require("ant-design-vue"),p=require("./types.js"),N=require("../../icon/index.js"),U=require("../../pro-modal/index.js");function S(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!l.isVNode(t)}const i=P.useNamespace("role-selector"),q=l.defineComponent({name:"KRoleSelector",props:p.roleSelectorProps,emits:p.roleSelectorEmits,setup(t,{emit:d,attrs:g,slots:y}){const u=l.ref([]),b=l.ref(""),n=l.ref([]),c=l.ref([]),s=l.ref(""),f=l.ref(!1),v=l.ref(t.options||[]);if(t.isBuiltInRequest){if(!t.http)throw new Error("请传入http实例");t.http.get(`${t.prefix}/${p.GTE_OPTIONS_URL}`).then(e=>{e.status===0&&(n.value=e.data.list.map(a=>({label:a.roleName,value:a.roleKey})),v.value=n.value,h(),m())}).catch(e=>{console.log(e)})}const m=()=>{if(!f.value){s.value="";const e=[];v.value.forEach(a=>{Array.isArray(u.value)?u.value.includes(a.value)&&e.push(a.label):u.value===a.value&&e.push(a.label)}),s.value=e.join(",")}},E=()=>{const e=[];if(Array.isArray(u.value))u.value.forEach(a=>{const o=n.value.find(x=>x.value===a);o&&e.push(o)});else{const a=n.value.find(o=>o.value===u.value);a&&e.push(a)}c.value=e},h=()=>{Array.isArray(t.modelValue)?u.value=t.modelValue.map(e=>e.value):u.value=t.modelValue.value};l.watch(()=>t.visible,e=>{h()}),l.watch(()=>t.modelValue,e=>{v.value.length!==0&&(f.value?f.value=!1:(h(),m()))},{deep:!0,immediate:!0}),l.watch(()=>t.options,e=>{t.isBuiltInRequest||(v.value=e||[],n.value=e||[],m(),E())},{deep:!0,immediate:!0}),l.watch(u,()=>{E()},{deep:!0,immediate:!0});const w=e=>{e?n.value=n.value.filter(a=>{var o;return(o=a.label)==null?void 0:o.includes(e)}):n.value=[...v.value]},C=()=>{d("update:visible",!1),d("cancel")},R=()=>{var e;if(t.type==="radio"&&!u.value){r.message.warn("请选择角色");return}if(Array.isArray(u.value)&&u.value.length===0){r.message.warn("请选择角色");return}Array.isArray(u.value)?(s.value=c.value.map(a=>a.label).join(","),d("update:modelValue",c.value)):(s.value=((e=c.value[0])==null?void 0:e.label)||"",d("update:modelValue",c.value[0])),f.value=!0,d("update:visible",!1),d("confirm",c.value)},A=e=>{Array.isArray(u.value)?u.value=u.value.filter(a=>a!==e.value):u.value=""},V=(e,a)=>l.createVNode("div",{class:[i.e("role-item"),a&&i.is("active")]},[l.createVNode("div",{class:i.e("role-item-label")},[l.createVNode(N.KIcon,{name:"a-jiaoseguanli2",size:18,color:"#606266"},null),l.createVNode("span",{class:i.e("label")},[e.label],2)],2),l.createVNode("div",{class:i.e("role-item-del"),onClick:()=>A(e)},[a&&l.createVNode(N.KIcon,{name:"shanchu",size:18,color:"#606266"},null)],10,["onClick"])],2),I=()=>l.createVNode("div",{class:i.b("left")},[l.createVNode(r.InputSearch,{allowClear:!0,placeholder:"请输入角色名称",value:b.value,"onUpdate:value":e=>b.value=e,onSearch:w},null,8,["allowClear","value","onUpdate:value","onSearch"]),l.createVNode("div",{class:i.e("role-list")},[n.value.length===0&&l.createVNode(r.Empty,{description:"暂无数据",image:r.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"]),t.type==="radio"?l.createVNode(r.RadioGroup,{value:u.value,"onUpdate:value":e=>u.value=e},{default:()=>[l.createVNode("div",{style:"width: 100%;"},[n.value.map((e,a)=>{let o;return l.createVNode("div",{key:a},[l.createVNode(r.Radio,{value:e.value},S(o=V(e))?o:{default:()=>[o],_:1},8,["value"])])})])]},8,["value","onUpdate:value"]):l.createVNode(r.CheckboxGroup,{value:u.value,"onUpdate:value":e=>u.value=e},{default:()=>[l.createVNode("div",{style:"width: 100%;"},[n.value.map((e,a)=>{let o;return l.createVNode("div",{key:a},[l.createVNode(r.Checkbox,{value:e.value},S(o=V(e))?o:{default:()=>[o],_:1},8,["value"])])})])]},8,["value","onUpdate:value"])],2)],2),_=()=>l.createVNode("div",{class:i.b("right")},[c.value.map((e,a)=>l.createVNode("div",{key:a},[V(e,!0)])),c.value.length===0&&l.createVNode(r.Empty,{description:"暂无数据",image:r.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"])],2),k=()=>l.createVNode("div",null,[l.createVNode(U.KProModal,{modelValue:t.visible,title:"选择角色",modalProps:{cancelText:"取消",okText:"确定",width:"700px",...g},onOnCancel:()=>C(),onOnConfirm:()=>R()},{default:()=>[l.createVNode("div",{class:i.b("modal")},[I(),_()],2)]},8,["modelValue","modalProps","onOnCancel","onOnConfirm"])]);return()=>l.createVNode(r.FormItemRest,null,{default:()=>[l.createVNode("div",{class:i.b()},[t.hideSlot?null:y.default?y.default():l.createVNode(r.Input,{style:"width: 100%;",readonly:!0,value:s.value,"onUpdate:value":e=>s.value=e,onClick:()=>d("update:visible",!0),placeholder:"请选择角色"},{suffix:()=>l.createVNode("div",{onClick:()=>d("update:visible",!0)},[l.createVNode(N.KIcon,{style:{cursor:"pointer"},name:"a-jiaoseguanli2",size:18,color:"#606266"},null)],8,["onClick"]),_:1},8,["readonly","value","onUpdate:value","onClick"]),k()],2)]})}});exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),O=require("../../../hooks/use-namespace/index.js");require("../../index.js");const r=require("ant-design-vue"),h=require("./types.js"),N=require("../../icon/index.js"),P=require("../../pro-modal/index.js");function S(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!l.isVNode(u)}const i=O.useNamespace("role-selector"),U=l.defineComponent({name:"KRoleSelector",props:h.roleSelectorProps,emits:h.roleSelectorEmits,setup(u,{emit:c,attrs:g,slots:y}){const t=l.ref([]),b=l.ref(""),n=l.ref([]),d=l.ref([]),s=l.ref(""),f=l.ref(!1),v=l.ref(u.options||[]);if(u.isBuiltInRequest){if(console.log("props.http =>",`${u.prefix}${h.GTE_OPTIONS_URL}`),!u.http)throw new Error("请传入http实例");u.http.get(`${u.prefix}${h.GTE_OPTIONS_URL}`).then(e=>{e.status===0&&(n.value=e.data.list.map(a=>({label:a.roleName,value:a.roleKey})),v.value=n.value,V(),m())}).catch(e=>{console.log(e)})}const m=()=>{if(!f.value){s.value="";const e=[];v.value.forEach(a=>{Array.isArray(t.value)?t.value.includes(a.value)&&e.push(a.label):t.value===a.value&&e.push(a.label)}),s.value=e.join(",")}},E=()=>{const e=[];if(Array.isArray(t.value))t.value.forEach(a=>{const o=n.value.find(x=>x.value===a);o&&e.push(o)});else{const a=n.value.find(o=>o.value===t.value);a&&e.push(a)}d.value=e},V=()=>{Array.isArray(u.modelValue)?t.value=u.modelValue.map(e=>e.value):t.value=u.modelValue.value};l.watch(()=>u.visible,e=>{V()}),l.watch(()=>u.modelValue,e=>{v.value.length!==0&&(f.value?f.value=!1:(V(),m()))},{deep:!0,immediate:!0}),l.watch(()=>u.options,e=>{u.isBuiltInRequest||(v.value=e||[],n.value=e||[],m(),E())},{deep:!0,immediate:!0}),l.watch(t,()=>{E()},{deep:!0,immediate:!0});const R=e=>{e?n.value=n.value.filter(a=>{var o;return(o=a.label)==null?void 0:o.includes(e)}):n.value=[...v.value]},w=()=>{c("update:visible",!1),c("cancel")},C=()=>{var e;if(u.type==="radio"&&!t.value){r.message.warn("请选择角色");return}if(Array.isArray(t.value)&&t.value.length===0){r.message.warn("请选择角色");return}Array.isArray(t.value)?(s.value=d.value.map(a=>a.label).join(","),c("update:modelValue",d.value)):(s.value=((e=d.value[0])==null?void 0:e.label)||"",c("update:modelValue",d.value[0])),f.value=!0,c("update:visible",!1),c("confirm",d.value)},_=e=>{Array.isArray(t.value)?t.value=t.value.filter(a=>a!==e.value):t.value=""},p=(e,a)=>l.createVNode("div",{class:[i.e("role-item"),a&&i.is("active")]},[l.createVNode("div",{class:i.e("role-item-label")},[l.createVNode(N.KIcon,{name:"a-jiaoseguanli2",size:18,color:"#606266"},null),l.createVNode("span",{class:i.e("label")},[e.label],2)],2),l.createVNode("div",{class:i.e("role-item-del"),onClick:()=>_(e)},[a&&l.createVNode(N.KIcon,{name:"shanchu",size:18,color:"#606266"},null)],10,["onClick"])],2),I=()=>l.createVNode("div",{class:i.b("left")},[l.createVNode(r.InputSearch,{allowClear:!0,placeholder:"请输入角色名称",value:b.value,"onUpdate:value":e=>b.value=e,onSearch:R},null,8,["allowClear","value","onUpdate:value","onSearch"]),l.createVNode("div",{class:i.e("role-list")},[n.value.length===0&&l.createVNode(r.Empty,{description:"暂无数据",image:r.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"]),u.type==="radio"?l.createVNode(r.RadioGroup,{value:t.value,"onUpdate:value":e=>t.value=e},{default:()=>[l.createVNode("div",{style:"width: 100%;"},[n.value.map((e,a)=>{let o;return l.createVNode("div",{key:a},[l.createVNode(r.Radio,{value:e.value},S(o=p(e))?o:{default:()=>[o],_:1},8,["value"])])})])]},8,["value","onUpdate:value"]):l.createVNode(r.CheckboxGroup,{value:t.value,"onUpdate:value":e=>t.value=e},{default:()=>[l.createVNode("div",{style:"width: 100%;"},[n.value.map((e,a)=>{let o;return l.createVNode("div",{key:a},[l.createVNode(r.Checkbox,{value:e.value},S(o=p(e))?o:{default:()=>[o],_:1},8,["value"])])})])]},8,["value","onUpdate:value"])],2)],2),A=()=>l.createVNode("div",{class:i.b("right")},[d.value.map((e,a)=>l.createVNode("div",{key:a},[p(e,!0)])),d.value.length===0&&l.createVNode(r.Empty,{description:"暂无数据",image:r.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"])],2),k=()=>l.createVNode("div",null,[l.createVNode(P.KProModal,{modelValue:u.visible,title:"选择角色",modalProps:{cancelText:"取消",okText:"确定",width:"700px",...g},onOnCancel:()=>w(),onOnConfirm:()=>C()},{default:()=>[l.createVNode("div",{class:i.b("modal")},[I(),A()],2)]},8,["modelValue","modalProps","onOnCancel","onOnConfirm"])]);return()=>l.createVNode(r.FormItemRest,null,{default:()=>[l.createVNode("div",{class:i.b()},[u.hideSlot?null:y.default?y.default():l.createVNode(r.Input,{style:"width: 100%;",readonly:!0,value:s.value,"onUpdate:value":e=>s.value=e,onClick:()=>c("update:visible",!0),placeholder:"请选择角色"},{suffix:()=>l.createVNode("div",{onClick:()=>c("update:visible",!0)},[l.createVNode(N.KIcon,{style:{cursor:"pointer"},name:"a-jiaoseguanli2",size:18,color:"#606266"},null)],8,["onClick"]),_:1},8,["readonly","value","onUpdate:value","onClick"]),k()],2)]})}});exports.default=U;
@@ -1 +1 @@
1
- @font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=56894) format("woff2"),url(fonts/iconfont.woff?t=7651) format("woff"),url(fonts/iconfont.ttf?t=71392) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-sync:before{content:"\e673"}.icon-king-tupianjiazaishibai:before{content:"\ec0d"}.icon-king-double-left:before{content:"\e65e"}.icon-king-double-right:before{content:"\e65f"}.icon-king-question-circle:before{content:"\e66c"}.icon-king-sound:before{content:"\e672"}.icon-king-code:before{content:"\e65a"}.icon-king-desktop:before{content:"\e65b"}.icon-king-delete1:before{content:"\e65c"}.icon-king-mobile:before{content:"\e668"}.icon-king-qiye:before{content:"\e646"}.icon-king-bumen:before{content:"\e7cf"}.icon-king-a-jiaoseguanli2:before{content:"\e611"}.icon-king-shanchu:before{content:"\e62f"}.icon-king-zuzhijiagou:before{content:"\e6d4"}.icon-king-search:before{content:"\e671"}.icon-king-calendar:before{content:"\e659"}.icon-king-carry-out:before{content:"\e658"}.icon-king-file-add:before{content:"\e664"}.icon-king-form:before{content:"\e665"}.icon-king-close-circle:before{content:"\e66a"}.icon-king-close-circle-o:before{content:"\e66b"}.icon-king-vertical-align-bottom:before{content:"\e670"}.icon-king-merge-cells:before{content:"\e667"}.icon-king-split-cells:before{content:"\e66e"}.icon-king-down:before{content:"\e65d"}.icon-king-left:before{content:"\e666"}.icon-king-right:before{content:"\e66d"}.icon-king-up:before{content:"\e66f"}.icon-king-plus:before{content:"\e614"}.icon-king-xsl:before{content:"\e602"}.icon-king-word:before{content:"\e622"}.icon-king-eye:before{content:"\e78f"}.icon-king-PDF:before{content:"\e60a"}.icon-king-delete:before{content:"\e63c"}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}
1
+ @font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=8106) format("woff2"),url(fonts/iconfont.woff?t=38026) format("woff"),url(fonts/iconfont.ttf?t=95064) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-sync:before{content:"\e673"}.icon-king-tupianjiazaishibai:before{content:"\ec0d"}.icon-king-double-left:before{content:"\e65e"}.icon-king-double-right:before{content:"\e65f"}.icon-king-question-circle:before{content:"\e66c"}.icon-king-sound:before{content:"\e672"}.icon-king-code:before{content:"\e65a"}.icon-king-desktop:before{content:"\e65b"}.icon-king-delete1:before{content:"\e65c"}.icon-king-mobile:before{content:"\e668"}.icon-king-qiye:before{content:"\e646"}.icon-king-bumen:before{content:"\e7cf"}.icon-king-a-jiaoseguanli2:before{content:"\e611"}.icon-king-shanchu:before{content:"\e62f"}.icon-king-zuzhijiagou:before{content:"\e6d4"}.icon-king-search:before{content:"\e671"}.icon-king-calendar:before{content:"\e659"}.icon-king-carry-out:before{content:"\e658"}.icon-king-file-add:before{content:"\e664"}.icon-king-form:before{content:"\e665"}.icon-king-close-circle:before{content:"\e66a"}.icon-king-close-circle-o:before{content:"\e66b"}.icon-king-vertical-align-bottom:before{content:"\e670"}.icon-king-merge-cells:before{content:"\e667"}.icon-king-split-cells:before{content:"\e66e"}.icon-king-down:before{content:"\e65d"}.icon-king-left:before{content:"\e666"}.icon-king-right:before{content:"\e66d"}.icon-king-up:before{content:"\e66f"}.icon-king-plus:before{content:"\e614"}.icon-king-xsl:before{content:"\e602"}.icon-king-word:before{content:"\e622"}.icon-king-eye:before{content:"\e78f"}.icon-king-PDF:before{content:"\e60a"}.icon-king-delete:before{content:"\e63c"}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}
@@ -1 +1 @@
1
- @charset "UTF-8";:root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-success:#67c23a;--king-color-warning:#e6a23c;--king-color-danger:#f56c6c;--king-color-error:#f56c6c;--king-color-info:#909399;--king-transition-duration:0.3s;--king-border-color-1:#0505050f;--king-border-color-2:#dcdcdc}.king-button--primary{--king-button-text-color:var(--king-color-primary)}.king-button--success{--king-button-text-color:var(--king-color-success)}.king-button--warning{--king-button-text-color:var(--king-color-warning)}.king-button--danger{--king-button-text-color:var(--king-color-danger)}.king-button--error{--king-button-text-color:var(--king-color-error)}.king-button--info{--king-button-text-color:var(--king-color-info)}.king-button{color:var(--king-button-text-color)}.king-scrollbar{overflow:hidden;position:relative;z-index:auto;height:100%;width:100%}.king-scrollbar .king-scrollbar-container{width:100%;overflow:scroll;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none}.king-scrollbar .king-scrollbar-content{width:-moz-fit-content;width:fit-content}.king-scrollbar .king-scrollbar-rail{position:absolute}.king-scrollbar .king-scrollbar-rail--vertical{right:0;width:5px;top:2px;bottom:2px;right:4px}.king-scrollbar .king-scrollbar-rail--horizontal{bottom:2px;height:5px;left:2px;right:2px}.king-scrollbar .king-scrollbar-rail__scrollbar--vertical{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;height:100%;cursor:pointer}.v-vl-items{width:-moz-fit-content;width:fit-content}.king-scale-virtual-list{width:100%;height:100%}.king-scale-virtual-list .king-scale-virtual-list-container{margin:0 auto;position:relative}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto;position:absolute;left:50%}.king-pro-title{border-bottom:1px solid #ccc;font-weight:500;display:flex;align-items:center}.king-pro-title .icon{margin-right:10px}.king-pro-title--unborder{border:none}.king-pro-modal .ant-modal-content{padding:0}.king-pro-modal .ant-modal-header{height:56px;padding-left:32px;padding-right:24px;display:flex;justify-content:space-between;align-items:center;background:#f1f7ff;border-bottom:1px solid #e6e8ea}.king-pro-modal .ant-modal-body{padding:10px 20px;max-height:80vh;overflow:auto}.king-pro-modal .ant-modal-footer{height:56px;display:flex;padding:0 16px;justify-content:flex-end;align-items:center;border-top:1px solid #e6e8ea}.king-pro-modal .ant-modal-title{flex:1}.king-pro-modal .pro-modal-title{cursor:move;width:100%}.king-pro-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=68639) format("woff2"),url(fonts/iconfont.woff?t=39973) format("woff"),url(fonts/iconfont.ttf?t=4765) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-sync:before{content:"\e673"}.icon-king-tupianjiazaishibai:before{content:"\ec0d"}.icon-king-double-left:before{content:"\e65e"}.icon-king-double-right:before{content:"\e65f"}.icon-king-question-circle:before{content:"\e66c"}.icon-king-sound:before{content:"\e672"}.icon-king-code:before{content:"\e65a"}.icon-king-desktop:before{content:"\e65b"}.icon-king-delete1:before{content:"\e65c"}.icon-king-mobile:before{content:"\e668"}.icon-king-qiye:before{content:"\e646"}.icon-king-bumen:before{content:"\e7cf"}.icon-king-a-jiaoseguanli2:before{content:"\e611"}.icon-king-shanchu:before{content:"\e62f"}.icon-king-zuzhijiagou:before{content:"\e6d4"}.icon-king-search:before{content:"\e671"}.icon-king-calendar:before{content:"\e659"}.icon-king-carry-out:before{content:"\e658"}.icon-king-file-add:before{content:"\e664"}.icon-king-form:before{content:"\e665"}.icon-king-close-circle:before{content:"\e66a"}.icon-king-close-circle-o:before{content:"\e66b"}.icon-king-vertical-align-bottom:before{content:"\e670"}.icon-king-merge-cells:before{content:"\e667"}.icon-king-split-cells:before{content:"\e66e"}.icon-king-down:before{content:"\e65d"}.icon-king-left:before{content:"\e666"}.icon-king-right:before{content:"\e66d"}.icon-king-up:before{content:"\e66f"}.icon-king-plus:before{content:"\e614"}.icon-king-xsl:before{content:"\e602"}.icon-king-word:before{content:"\e622"}.icon-king-eye:before{content:"\e78f"}.icon-king-PDF:before{content:"\e60a"}.icon-king-delete:before{content:"\e63c"}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}.king-cover-scrollbar{height:100%;width:100%;overflow:hidden;position:relative}.king-cover-scrollbar .king-cover-scrollbar-container{height:100%;width:100%;overflow:scroll;scrollbar-width:none}.king-cover-scrollbar .king-cover-scrollbar-rail{width:5px;top:2px;bottom:2px;position:absolute}.king-cover-scrollbar .king-cover-scrollbar-rail__scrollbar--vertical{position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-pro-contract-view{position:relative;display:flex}.king-pro-contract-view .king-pro-contract-view__content{flex:1}.king-pro-contract-view .king-pro-contract-view__content-item{border:1px solid #f0f0f0;position:relative;box-shadow:0 2px 10px 0 rgba(0,0,0,.1)}.king-pro-contract-view>.ant-spin{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.king-pro-overlay{position:relative;cursor:pointer;display:inline-block}.king-pro-overlay .king-pro-overlay__content{transition:all .2s linear;opacity:0;position:absolute;display:flex;align-items:center;justify-content:center;inset:0}.king-pro-overlay:hover .king-pro-overlay__content{opacity:1;background:rgba(0,0,0,.5)}.king-plus-upload .king-plus-upload__icon-plus{font-size:32px!important}.king-plus-upload .king-plus-upload__icon-eye{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__icon-delete{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__file-item{width:102px;height:102px;display:flex;align-items:center;justify-content:center;border:1px solid #cbcdd3;border-radius:3px}.king-pro-sign-spin{width:100%;height:100%;border:1px solid #f0f0f0}.king-pro-sign-spin .ant-spin-container{width:100%;height:100%}.king-pro-sign-spin .king-pro-sign{width:100%;height:100%;display:flex;background:#f1f3f7;overflow:auto}.king-pro-sign-spin .king-pro-sign .king-pro-sign__left{position:relative}.king-pro-sign-spin .king-pro-sign .king-pro-sign__left .king-pro-sign__left-region{width:270px;height:100%}.king-pro-sign-spin .king-pro-sign .king-pro-sign__left .king-pro-sign__left-region .ant-card{border-radius:0}.king-pro-sign-spin .king-pro-sign .king-pro-sign__left .king-pro-sign__left-region .ant-tabs-content-holder{overflow-x:hidden}.king-pro-sign-spin .king-pro-sign .king-pro-sign__center{flex:1;min-width:900px}.king-pro-sign-spin .king-pro-sign .king-pro-sign__right{position:relative}.king-pro-sign-spin .king-pro-sign .king-pro-sign__right .king-pro-sign__right-region{width:320px;height:100%}.king-pro-sign-spin .king-pro-sign .king-pro-sign__right .king-pro-sign__right-region .ant-card{border-radius:0}.king-pro-sign-spin .king-pro-sign .king-pro-sign__right .king-pro-sign__right-region .date-region{padding:20px 30px}.king-pro-sign-spin .king-pro-sign .king-pro-sign__right .king-pro-sign__right-region .ant-tabs-content-holder{overflow-x:hidden}.king-pro-sign-spin .king-pro-sign .king-pro-sign__tabs{height:100%}.king-pro-sign-spin .king-pro-sign .king-pro-sign__tabs .ant-tabs-content{height:100%}.king-pro-sign-spin .king-pro-sign .king-pro-sign__tabs .ant-tabs-content-holder{overflow:auto;padding:0 25px}.king-pro-sign-spin .king-pro-sign .king-pro-sign__direction{position:absolute;cursor:pointer;top:50%;width:25px;height:80px;transform:translateY(-50%);display:flex;z-index:1;justify-content:center;align-items:center;background-color:#fff}.king-pro-sign-spin .king-pro-sign .show-left-direction{background-color:transparent;height:0;right:2px}.king-pro-sign-spin .king-pro-sign .hide-left-direction{right:-25px}.king-pro-sign-spin .king-pro-sign .show-right-direction{background-color:transparent;height:0;left:0}.king-pro-sign-spin .king-pro-sign .hide-right-direction{left:-25px}.king-pro-sign-middle{height:100%;display:flex;flex-direction:column}.king-pro-sign-middle * ::-webkit-scrollbar{width:5px;height:5px}.king-pro-sign-middle * ::-webkit-scrollbar-track{background:0 0}.king-pro-sign-middle * ::-webkit-scrollbar-thumb{border-radius:5px;background:rgba(144,147,153,.3)}.king-pro-sign-middle ::-webkit-scrollbar-corner{background:0 0}.king-pro-sign-middle .contract-seal{position:absolute;top:10px;right:10px;z-index:1;border:1px dashed transparent;cursor:move}.king-pro-sign-middle .contract-seal .remove-icon{display:none}.king-pro-sign-middle .contract-crevice-seal{max-width:100%;position:absolute;border:1px dashed transparent;display:flex;align-items:center;justify-content:center}.king-pro-sign-middle .contract-crevice-seal .remove-icon{display:none}.king-pro-sign-middle .seal-time{display:flex;align-items:center;justify-content:center;height:100%}.king-pro-sign-middle .mouse-check-seal{border-color:var(--king-color-primary)}.king-pro-sign-middle .mouse-check-seal .remove-icon{display:block;cursor:pointer;position:absolute;top:-10px;right:-10px}.king-pro-sign-middle .king-pro-sign-middle__title{display:flex;justify-content:space-between;height:45px;background:#fff;align-items:center;padding:0 15px;border-left:1px solid var(--king-border-color-1);border-right:1px solid var(--king-border-color-1)}.king-pro-sign-middle .king-pro-sign-middle__footer{border-left:1px solid var(--king-border-color-1);border-right:1px solid var(--king-border-color-1);position:relative}.king-pro-sign-middle .king-pro-sign-middle__footer .king-pro-sign-middle__footer-pages{height:45px;background:#fff;text-align:center;display:flex;align-items:center;gap:10px;justify-content:center}.king-pro-sign-middle .king-pro-sign-middle__footer .king-pro-sign-middle__footer-pages .king-pro-sign-middle__footer-pages--pre{display:flex;align-items:center;cursor:pointer}.king-pro-sign-middle .king-pro-sign-middle__footer .king-pro-sign-middle__footer-pages .king-pro-sign-middle__footer-pages--pre span{margin-left:5px}.king-pro-sign-middle .king-pro-sign-middle__footer .king-pro-sign-middle__footer-pages .king-pro-sign-middle__footer-pages--next{display:flex;align-items:center;cursor:pointer}.king-pro-sign-middle .king-pro-sign-middle__footer .king-pro-sign-middle__footer-pages .king-pro-sign-middle__footer-pages--next span{margin-right:5px}.king-pro-sign-middle .king-pro-sign-middle__page-jump{display:flex;align-items:center;gap:10px;position:absolute;right:15px;top:5px}.king-pro-sign-middle .king-pro-sign-middle__page-jump .king-pro-sign-middle__page-input{border-bottom:1px solid var(--king-border-color-2)}.king-pro-sign-loader{padding:5px;height:100%;width:100%;position:relative}.king-pro-sign-loader .king-pro-sign-loader__actions{position:absolute;right:20px;bottom:20px;top:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;color:var(--king-color-primary)}.king-pro-sign-loader .king-pro-sign-loader__actions .king-pro-sign-loader__actions--crevice{display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer;background:#ecf5ff;border-radius:4px;width:35px;height:120px;border:1px solid var(--king-color-primary)}.king-pro-sign-loader .king-pro-sign-loader__actions .king-pro-sign-loader__actions--crevice span{width:20px;margin-top:5px;text-align:center}.king-pro-sign-loader .king-pro-sign-loader__actions .king-pro-sign-loader__actions--down{border:1px solid var(--king-color-primary);width:35px;height:35px;background:#ecf5ff;border-radius:4px;margin-top:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.king-pro-sign-loader .king-pro-sign-loader__contract-item{display:flex;margin-top:10px}.king-pro-sign-loader .king-pro-sign-loader__contract-item .drag-region{position:absolute;left:0;top:0;border:1px solid transparent}.king-pro-sign-loader .king-pro-sign-loader__contract-item .drag-region-moveing{border:1px dashed #4699ff}.king-pro-sign-loader .king-pro-sign-loader__contract-item .crevice-drag-moveing{border:1px dashed #4699ff}.king-pro-sign-loader .king-pro-sign-loader__contract-item .drag-crevice{margin-left:10px;width:100px;border:1px solid #ddd;background:#f7f7f7;height:100%;display:flex;position:relative}.king-pro-sign-loader .king-pro-sign-loader__contract-item .drag-crevice .crevice-tip{width:100%;line-height:100px;color:#bfbfbf;writing-mode:vertical-lr;text-align:center;font-size:18px}.king-pro-sign-loader .king-pro-sign-loader__contract-item .drag-crevice .drag-region-crevice{width:100%;height:100%;position:absolute;left:0;top:0}.king-pro-sign-loader .king-pro-sign-loader__contract-item .item{background-color:#fff;text-align:right;position:relative;overflow:hidden}.king-pro-sign-loader .king-pro-sign-loader__contract-item .item-visible{overflow:visible}.king-pro-sign-files{display:flex;flex-direction:column;align-items:center;justify-content:center}.king-pro-sign-files .king-pro-sign-files__item{margin-bottom:40px}.king-pro-sign-files .king-pro-sign-files__file-image{width:165px;height:220px;background-color:#fff;border-radius:4px;margin-bottom:15px;cursor:pointer;box-shadow:5px 5px 10px 0 rgba(0,0,0,.1),-5px 5px 10px 0 rgba(0,0,0,.1)}.king-pro-sign-files .king-pro-sign-files__file-name{text-align:center}.king-pro-sign-files .king-pro-sign-files__active-item .king-pro-sign-files__file-image{border:1px solid var(--king-color-primary)}.king-pro-sign-files .king-pro-sign-files__active-item .king-pro-sign-files__file-name{color:var(--king-color-primary)}.king-pro-sign-seals{display:flex;flex-direction:column;padding-bottom:20px;height:100%}.king-pro-sign-seals .king-pro-sign-seals__seals{display:flex;flex-direction:column;align-items:center;flex:1;margin-bottom:20px;overflow:auto}.king-pro-sign-seals .king-pro-sign-seals__seals .king-pro-sign-seals__seals--seal{width:180px;height:180px;margin:10px;background:rgba(70,153,255,.1);border-radius:4px;border:1px dotted var(--king-color-primary);display:flex;justify-content:center;align-items:center}.king-pro-sign-seals .king-pro-sign-seals__seals .king-pro-sign-seals__seals--seal-drag{display:flex;cursor:pointer}.king-pro-sign-seals .king-pro-sign-seals__seals .king-pro-sign-seals__seals--seal-img{width:150px;pointer-events:none}.king-pro-sign-batch{max-height:520px;overflow:auto}.king-pro-sign-batch .contract-popover-title{padding:10px 0}.king-pro-sign-batch .contract-popover-footer{text-align:right;width:100%}.king-pro-sign-batch .contract-popover-footer .first-btn{margin-right:5px}.king-pro-sign-batch .contract-popover-position{margin:10px 0;margin-top:0}.king-pro-sign-batch .contract-popover-position .contract-popover-position-page{margin-top:10px}.king-pro-sign-batch .contract-popover-position .contract-popover-position-page .err{font-size:12px;color:var(--red-color)}.king-pro-sign-info{width:100%;height:100%;overflow:auto;padding-left:10px}.king-pro-sign-signature{text-align:center}.king-pro-sign-signature .add-signature-icon{color:var(--king-color-primary)!important;margin-right:5px}.king-pro-sign-signature .signature-item{border:1px dotted var(--king-color-primary);margin-bottom:10px;padding:10px;background:rgba(70,153,255,.1);cursor:pointer}.king-pro-sign-signature .add-signature{display:flex;height:50px;align-items:center;justify-content:center;cursor:pointer;background:rgba(70,153,255,.1);color:#4699ff;border-radius:4px;font-size:14px;margin-bottom:10px}.king-pro-sign-signature .add-signature .date-icon{font-size:18px;margin-right:12px}.king-pro-sign-signature .add-signature:active{opacity:.8}.king-pro-add-signature{position:relative;height:280px}.king-pro-add-signature .pro-signature{position:absolute;border:1px dashed #ccc;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2}.king-pro-add-signature .tip{position:absolute;font-size:24px;top:50%;left:50%;transform:translate(-50%,-50%);color:#ccc;z-index:1}.king-pro-sign-date{display:flex;height:50px;align-items:center;justify-content:center;cursor:pointer;background:rgba(70,153,255,.1);color:var(--king-color-primary);border-radius:4px;font-size:14px}.king-pro-sign-date .date-icon{font-size:18px;margin-right:5px;color:var(--king-color-primary)!important}.king-pro-sign-verify .construct-verify-sms{padding-left:20px}.king-pro-sign-verify .constract-verify-phone{margin:15px 0;text-align:center}.king-pro-sign-verify .constract-verify-password{padding-top:15px;margin:0 auto}.king-pro-sign-verify .constract-verify-password-switch{text-align:center}.king-pro-tag-group{border:1px solid #d9d9d9;height:30px;width:100%;display:flex;align-items:center;padding:5px;border-radius:3px;color:#3b3b3b}.king-pro-tag-group .king-pro-tag-group__tags{display:flex;flex:1;align-items:center;overflow-x:hidden;scrollbar-width:none;gap:5px;height:100%}.king-pro-tag-group .king-pro-tag-group__count{background:#d9d9d9;overflow:hidden;margin-left:5px;text-align:center;white-space:nowrap;text-overflow:ellipsis;line-height:normal;padding:0 5px;height:100%}.king-pro-tag-group .king-pro-tag-group__item{padding:0 5px;background:#d9d9d9;flex-shrink:0;visibility:hidden;line-height:normal}.king-pro-tag-group .king-pro-tag-group__item:hover .king-pro-tag-group__remove-icon{background:#a3a3a3;border-radius:50%;color:#fff!important}.king-pro-tag-group .king-pro-tag-group__remove-icon{margin-left:2px;padding:1px;cursor:pointer}.king-pro-tag-group .king-pro-tag-group__visible{visibility:inherit}.king-role-selector-modal{display:flex;height:300px;width:100%;border:1px solid #e5e5e5;border-radius:4px;overflow:hidden}.king-role-selector-modal .king-role-selector__role-item{display:flex;align-items:center;justify-content:space-between;width:100%;height:40px;cursor:pointer}.king-role-selector-modal .king-role-selector__role-item.is-active{padding:0 10px}.king-role-selector-modal .king-role-selector__role-item:hover.is-active{background-color:#f5f7fa;border-radius:4px}.king-role-selector-modal .king-role-selector__role-item .king-role-selector-role-item-label{display:flex}.king-role-selector-modal .king-role-selector__role-item .king-role-selector__label{font-size:14px;padding-left:5px;color:#606266}.king-role-selector-modal .king-role-selector__role-item .king-role-selector__role-item-del:hover .icon-king-shanchu{color:#409eff!important}.king-role-selector-modal .king-role-selector-left{width:50%;height:300px;box-sizing:border-box;padding:15px}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list{margin-top:15px;height:230px;width:100%;overflow-y:auto}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list::-webkit-scrollbar{width:6px;height:6px}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-role-selector-modal .king-role-selector-right{flex:1;height:300px;box-sizing:border-box;border-left:1px solid #e5e5e5;padding:15px;overflow-y:auto}.king-role-selector-modal .king-role-selector-right::-webkit-scrollbar{width:6px;height:6px}.king-role-selector-modal .king-role-selector-right::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-role-selector-modal .king-role-selector-right::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-role-selector-modal .king-role-selector-right::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-user-avatar{box-sizing:border-box;margin:5px;cursor:pointer;position:relative}.king-user-avatar .king-user-avatar__img{width:100%;height:100%;display:block;box-sizing:border-box}.king-user-avatar .king-user-avatar__name{width:100%;height:100%;min-width:24px;min-height:24px;color:#fff;border-radius:50%;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.king-user-avatar-default{width:32px;height:32px}.king-user-avatar-default .king-user-avatar__name{font-size:12px}.king-user-avatar-small{width:24px;height:24px}.king-user-avatar-small .king-user-avatar__name{font-size:8px}.king-user-avatar-large{width:40px;height:40px}.king-user-avatar-large .king-user-avatar__name{font-size:14px}.king-dept-selector__modal-content{display:flex;height:400px;border:1px solid #e5e5e5;border-radius:4px;box-sizing:border-box}.king-dept-selector__modal-content-left{width:50%;height:100%;box-sizing:border-box;border-right:1px solid #e5e5e5;padding:12px}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree{height:320px;overflow-y:auto}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree::-webkit-scrollbar{width:6px;height:6px}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-dept-selector__modal-content-right{flex:1;height:100%;box-sizing:border-box;padding:12px;overflow-y:auto}.king-dept-selector__modal-content-right::-webkit-scrollbar{width:6px;height:6px}.king-dept-selector__modal-content-right::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-dept-selector__modal-content-right::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-dept-selector__modal-content-right::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 12px;cursor:pointer;border-radius:4px}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item:hover{background-color:#f5f7fa}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item .king-dept-selector__modal-content-right-item-label{display:flex;align-items:center}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item span{padding:0 4px}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item .king-dept-selector__modal-content-right-item-del:hover .icon-king-shanchu{color:#409eff!important}.king-pro-user-selector{display:flex;justify-content:center;height:300px;border:1px solid #e5e5e5;border-radius:4px;overflow:hidden}.king-pro-user-selector .king-pro-user-selector-org-tree{overflow-y:auto;overflow-x:hidden;height:200px;margin-top:16px}.king-pro-user-selector .king-pro-user-selector-org-tree::-webkit-scrollbar{width:6px;height:6px}.king-pro-user-selector .king-pro-user-selector-org-tree::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-pro-user-selector .king-pro-user-selector-org-tree::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-pro-user-selector .king-pro-user-selector-org-tree::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-pro-user-selector .king-pro-user-selector-org-tree .king-pro-user-selector-org-tree-item{margin:0 10px;display:flex;align-items:center;justify-content:space-between;height:100%;box-sizing:border-box;height:48px}.king-pro-user-selector .king-pro-user-selector-org-tree .king-pro-user-selector-org-tree-item:hover{background-color:rgba(31,35,41,.08);cursor:pointer;border-radius:6px}.king-pro-user-selector .king-pro-user-selector-org-tree .king-pro-user-selector-org-tree-item .king-pro-user-selector-org-tree-item-title{display:flex;align-items:center;width:100%;height:100%;padding:0 6px}.king-pro-user-selector .king-pro-user-selector-org-tree .king-pro-user-selector-org-tree-item .king-pro-user-selector-org-tree-item-title .king-pro-user-selector-org-tree-dept-icon{width:32px;height:32px;border-radius:50%;background-color:#4954e6;display:flex;align-items:center;justify-content:center}.king-pro-user-selector .king-pro-user-selector-org-tree .king-pro-user-selector-org-tree-item .king-pro-user-selector-org-tree-item-title .king-pro-user-selector-org-tree-item-title-text{margin-left:10px;font-size:14px;color:#1f2329}.king-pro-user-selector .select-user-list{overflow-y:auto;overflow-x:hidden;height:240px;margin-top:16px}.king-pro-user-selector .select-user-list::-webkit-scrollbar{width:6px;height:6px}.king-pro-user-selector .select-user-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-pro-user-selector .select-user-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-pro-user-selector .select-user-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-pro-user-selector .king-pro-user-selector-user-list{margin-top:10px;overflow-y:auto;overflow-x:hidden}.king-pro-user-selector .king-pro-user-selector-user-item{display:flex;align-items:center;width:calc(100% - 20px);margin:0 10px;height:48px;box-sizing:border-box}.king-pro-user-selector .king-pro-user-selector-user-item:hover{background-color:rgba(31,35,41,.08);cursor:pointer;border-radius:6px}.king-pro-user-selector .king-pro-user-selector-user-item .king-pro-user-selector-user-item-content{display:flex;align-items:center;flex:1}.king-pro-user-selector .king-pro-user-selector-user-item .king-pro-user-selector-user-item-content .king-pro-user-selector-user-item-content-tag{font-size:10px;color:#999;margin-left:10px;color:#245bdb;background-color:rgba(51,112,255,.2);padding-left:4px;padding-right:4px;border-radius:4px}.king-pro-user-selector .king-pro-user-selector-user-item .king-pro-user-selector-user-item-content .select-user-item-icon{width:20px;height:20px;margin-right:4px;display:flex;justify-content:center;align-items:center;cursor:pointer}.king-pro-user-selector .king-pro-user-selector-user-item .king-pro-user-selector-user-item-content .select-user-item-icon:hover{background-color:rgba(31,35,41,.1);border-radius:6px}.king-pro-user-selector .king-pro-user-selector-user-item .king-pro-user-selector-avator{width:32px;height:32px;border-radius:50%;margin-right:10px;margin-left:10px}.king-pro-user-selector .king-pro-user-selector-content-left{width:50%;box-sizing:border-box}.king-pro-user-selector .king-pro-user-selector-content-left .king-pro-user-selector-breadcrumb{margin-top:10px}.king-pro-user-selector .king-pro-user-selector-content-right{width:50%;box-sizing:border-box;border-left:1px solid #e5e5e5;padding:16px}.king-pro-user-selector .king-pro-user-selector-content-right .king-pro-user-selector-content-right-title{font-size:14px;color:#333;margin-bottom:10px}.king-pro-user-selector .king-pro-user-selector-content-right .king-pro-user-selector-select-user-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0 10px;height:48px;cursor:pointer}.king-pro-user-selector .king-pro-user-selector-content-right .king-pro-user-selector-select-user-item:hover{background-color:rgba(31,35,41,.08);border-radius:6px}.king-user-selector-extermal{display:flex;flex-wrap:wrap;width:100%}.king-user-selector-extermal .king-user-selector-extermal-icon{width:56px;height:32px;border:1px solid #409eff;border-radius:100px;display:flex;justify-content:center;align-items:center;cursor:pointer;margin-right:8px;margin-top:8px}.king-user-selector-extermal .king-user-selector-extermal-icon:hover{box-shadow:0 0 10px rgba(51,112,255,.5);transition:all .2s}.king-user-selector-extermal .king-user-selector-extermal-list{display:flex;flex:1;flex-wrap:wrap}.king-user-selector-extermal .king-user-selector-extermal-list .king-user-selector-extermal-item{display:flex;align-items:center;min-width:70px;background-color:#eff0f1;height:32px;padding:0 4px;box-sizing:border-box;border-radius:16px;color:#1f2329;font-size:14px;cursor:pointer;margin-right:8px;margin-top:8px;padding-right:10px}.king-user-selector-extermal .king-user-selector-extermal-list .king-user-selector-extermal-item__name{padding:0 4px}.king-user-selector-extermal .king-user-selector-extermal-list .icon-king-shanchu:hover{color:#409eff!important}
1
+ @charset "UTF-8";:root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-success:#67c23a;--king-color-warning:#e6a23c;--king-color-danger:#f56c6c;--king-color-error:#f56c6c;--king-color-info:#909399;--king-transition-duration:0.3s;--king-border-color-1:#0505050f;--king-border-color-2:#dcdcdc}.king-button--primary{--king-button-text-color:var(--king-color-primary)}.king-button--success{--king-button-text-color:var(--king-color-success)}.king-button--warning{--king-button-text-color:var(--king-color-warning)}.king-button--danger{--king-button-text-color:var(--king-color-danger)}.king-button--error{--king-button-text-color:var(--king-color-error)}.king-button--info{--king-button-text-color:var(--king-color-info)}.king-button{color:var(--king-button-text-color)}.king-scrollbar{overflow:hidden;position:relative;z-index:auto;height:100%;width:100%}.king-scrollbar .king-scrollbar-container{width:100%;overflow:scroll;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none}.king-scrollbar .king-scrollbar-content{width:-moz-fit-content;width:fit-content}.king-scrollbar .king-scrollbar-rail{position:absolute}.king-scrollbar .king-scrollbar-rail--vertical{right:0;width:5px;top:2px;bottom:2px;right:4px}.king-scrollbar .king-scrollbar-rail--horizontal{bottom:2px;height:5px;left:2px;right:2px}.king-scrollbar .king-scrollbar-rail__scrollbar--vertical{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;height:100%;cursor:pointer}.v-vl-items{width:-moz-fit-content;width:fit-content}.king-scale-virtual-list{width:100%;height:100%}.king-scale-virtual-list .king-scale-virtual-list-container{margin:0 auto;position:relative}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto;position:absolute;left:50%}.king-pro-title{border-bottom:1px solid #ccc;font-weight:500;display:flex;align-items:center}.king-pro-title .icon{margin-right:10px}.king-pro-title--unborder{border:none}.king-pro-modal .ant-modal-content{padding:0}.king-pro-modal .ant-modal-header{height:56px;padding-left:32px;padding-right:24px;display:flex;justify-content:space-between;align-items:center;background:#f1f7ff;border-bottom:1px solid #e6e8ea}.king-pro-modal .ant-modal-body{padding:10px 20px;max-height:80vh;overflow:auto}.king-pro-modal .ant-modal-footer{height:56px;display:flex;padding:0 16px;justify-content:flex-end;align-items:center;border-top:1px solid #e6e8ea}.king-pro-modal .ant-modal-title{flex:1}.king-pro-modal .pro-modal-title{cursor:move;width:100%}.king-pro-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=95166) format("woff2"),url(fonts/iconfont.woff?t=25263) format("woff"),url(fonts/iconfont.ttf?t=14493) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-sync:before{content:"\e673"}.icon-king-tupianjiazaishibai:before{content:"\ec0d"}.icon-king-double-left:before{content:"\e65e"}.icon-king-double-right:before{content:"\e65f"}.icon-king-question-circle:before{content:"\e66c"}.icon-king-sound:before{content:"\e672"}.icon-king-code:before{content:"\e65a"}.icon-king-desktop:before{content:"\e65b"}.icon-king-delete1:before{content:"\e65c"}.icon-king-mobile:before{content:"\e668"}.icon-king-qiye:before{content:"\e646"}.icon-king-bumen:before{content:"\e7cf"}.icon-king-a-jiaoseguanli2:before{content:"\e611"}.icon-king-shanchu:before{content:"\e62f"}.icon-king-zuzhijiagou:before{content:"\e6d4"}.icon-king-search:before{content:"\e671"}.icon-king-calendar:before{content:"\e659"}.icon-king-carry-out:before{content:"\e658"}.icon-king-file-add:before{content:"\e664"}.icon-king-form:before{content:"\e665"}.icon-king-close-circle:before{content:"\e66a"}.icon-king-close-circle-o:before{content:"\e66b"}.icon-king-vertical-align-bottom:before{content:"\e670"}.icon-king-merge-cells:before{content:"\e667"}.icon-king-split-cells:before{content:"\e66e"}.icon-king-down:before{content:"\e65d"}.icon-king-left:before{content:"\e666"}.icon-king-right:before{content:"\e66d"}.icon-king-up:before{content:"\e66f"}.icon-king-plus:before{content:"\e614"}.icon-king-xsl:before{content:"\e602"}.icon-king-word:before{content:"\e622"}.icon-king-eye:before{content:"\e78f"}.icon-king-PDF:before{content:"\e60a"}.icon-king-delete:before{content:"\e63c"}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}.king-cover-scrollbar{height:100%;width:100%;overflow:hidden;position:relative}.king-cover-scrollbar .king-cover-scrollbar-container{height:100%;width:100%;overflow:scroll;scrollbar-width:none}.king-cover-scrollbar .king-cover-scrollbar-rail{width:5px;top:2px;bottom:2px;position:absolute}.king-cover-scrollbar .king-cover-scrollbar-rail__scrollbar--vertical{position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-pro-contract-view{position:relative;display:flex}.king-pro-contract-view .king-pro-contract-view__content{flex:1}.king-pro-contract-view .king-pro-contract-view__content-item{border:1px solid #f0f0f0;position:relative;box-shadow:0 2px 10px 0 rgba(0,0,0,.1)}.king-pro-contract-view>.ant-spin{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.king-pro-overlay{position:relative;cursor:pointer;display:inline-block}.king-pro-overlay .king-pro-overlay__content{transition:all .2s linear;opacity:0;position:absolute;display:flex;align-items:center;justify-content:center;inset:0}.king-pro-overlay:hover .king-pro-overlay__content{opacity:1;background:rgba(0,0,0,.5)}.king-plus-upload .king-plus-upload__icon-plus{font-size:32px!important}.king-plus-upload .king-plus-upload__icon-eye{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__icon-delete{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__file-item{width:102px;height:102px;display:flex;align-items:center;justify-content:center;border:1px solid #cbcdd3;border-radius:3px}.king-pro-sign-spin{width:100%;height:100%;border:1px solid #f0f0f0}.king-pro-sign-spin .ant-spin-container{width:100%;height:100%}.king-pro-sign-spin .king-pro-sign{width:100%;height:100%;display:flex;background:#f1f3f7;overflow:auto}.king-pro-sign-spin .king-pro-sign .king-pro-sign__left{position:relative}.king-pro-sign-spin .king-pro-sign .king-pro-sign__left .king-pro-sign__left-region{width:270px;height:100%}.king-pro-sign-spin .king-pro-sign .king-pro-sign__left .king-pro-sign__left-region .ant-card{border-radius:0}.king-pro-sign-spin .king-pro-sign .king-pro-sign__left .king-pro-sign__left-region .ant-tabs-content-holder{overflow-x:hidden}.king-pro-sign-spin .king-pro-sign .king-pro-sign__center{flex:1;min-width:900px}.king-pro-sign-spin .king-pro-sign .king-pro-sign__right{position:relative}.king-pro-sign-spin .king-pro-sign .king-pro-sign__right .king-pro-sign__right-region{width:320px;height:100%}.king-pro-sign-spin .king-pro-sign .king-pro-sign__right .king-pro-sign__right-region .ant-card{border-radius:0}.king-pro-sign-spin .king-pro-sign .king-pro-sign__right .king-pro-sign__right-region .date-region{padding:20px 30px}.king-pro-sign-spin .king-pro-sign .king-pro-sign__right .king-pro-sign__right-region .ant-tabs-content-holder{overflow-x:hidden}.king-pro-sign-spin .king-pro-sign .king-pro-sign__tabs{height:100%}.king-pro-sign-spin .king-pro-sign .king-pro-sign__tabs .ant-tabs-content{height:100%}.king-pro-sign-spin .king-pro-sign .king-pro-sign__tabs .ant-tabs-content-holder{overflow:auto;padding:0 25px}.king-pro-sign-spin .king-pro-sign .king-pro-sign__direction{position:absolute;cursor:pointer;top:50%;width:25px;height:80px;transform:translateY(-50%);display:flex;z-index:1;justify-content:center;align-items:center;background-color:#fff}.king-pro-sign-spin .king-pro-sign .show-left-direction{background-color:transparent;height:0;right:2px}.king-pro-sign-spin .king-pro-sign .hide-left-direction{right:-25px}.king-pro-sign-spin .king-pro-sign .show-right-direction{background-color:transparent;height:0;left:0}.king-pro-sign-spin .king-pro-sign .hide-right-direction{left:-25px}.king-pro-sign-middle{height:100%;display:flex;flex-direction:column}.king-pro-sign-middle * ::-webkit-scrollbar{width:5px;height:5px}.king-pro-sign-middle * ::-webkit-scrollbar-track{background:0 0}.king-pro-sign-middle * ::-webkit-scrollbar-thumb{border-radius:5px;background:rgba(144,147,153,.3)}.king-pro-sign-middle ::-webkit-scrollbar-corner{background:0 0}.king-pro-sign-middle .contract-seal{position:absolute;top:10px;right:10px;z-index:1;border:1px dashed transparent;cursor:move}.king-pro-sign-middle .contract-seal .remove-icon{display:none}.king-pro-sign-middle .contract-crevice-seal{max-width:100%;position:absolute;border:1px dashed transparent;display:flex;align-items:center;justify-content:center}.king-pro-sign-middle .contract-crevice-seal .remove-icon{display:none}.king-pro-sign-middle .seal-time{display:flex;align-items:center;justify-content:center;height:100%}.king-pro-sign-middle .mouse-check-seal{border-color:var(--king-color-primary)}.king-pro-sign-middle .mouse-check-seal .remove-icon{display:block;cursor:pointer;position:absolute;top:-10px;right:-10px}.king-pro-sign-middle .king-pro-sign-middle__title{display:flex;justify-content:space-between;height:45px;background:#fff;align-items:center;padding:0 15px;border-left:1px solid var(--king-border-color-1);border-right:1px solid var(--king-border-color-1)}.king-pro-sign-middle .king-pro-sign-middle__footer{border-left:1px solid var(--king-border-color-1);border-right:1px solid var(--king-border-color-1);position:relative}.king-pro-sign-middle .king-pro-sign-middle__footer .king-pro-sign-middle__footer-pages{height:45px;background:#fff;text-align:center;display:flex;align-items:center;gap:10px;justify-content:center}.king-pro-sign-middle .king-pro-sign-middle__footer .king-pro-sign-middle__footer-pages .king-pro-sign-middle__footer-pages--pre{display:flex;align-items:center;cursor:pointer}.king-pro-sign-middle .king-pro-sign-middle__footer .king-pro-sign-middle__footer-pages .king-pro-sign-middle__footer-pages--pre span{margin-left:5px}.king-pro-sign-middle .king-pro-sign-middle__footer .king-pro-sign-middle__footer-pages .king-pro-sign-middle__footer-pages--next{display:flex;align-items:center;cursor:pointer}.king-pro-sign-middle .king-pro-sign-middle__footer .king-pro-sign-middle__footer-pages .king-pro-sign-middle__footer-pages--next span{margin-right:5px}.king-pro-sign-middle .king-pro-sign-middle__page-jump{display:flex;align-items:center;gap:10px;position:absolute;right:15px;top:5px}.king-pro-sign-middle .king-pro-sign-middle__page-jump .king-pro-sign-middle__page-input{border-bottom:1px solid var(--king-border-color-2)}.king-pro-sign-loader{padding:5px;height:100%;width:100%;position:relative}.king-pro-sign-loader .king-pro-sign-loader__actions{position:absolute;right:20px;bottom:20px;top:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;color:var(--king-color-primary)}.king-pro-sign-loader .king-pro-sign-loader__actions .king-pro-sign-loader__actions--crevice{display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer;background:#ecf5ff;border-radius:4px;width:35px;height:120px;border:1px solid var(--king-color-primary)}.king-pro-sign-loader .king-pro-sign-loader__actions .king-pro-sign-loader__actions--crevice span{width:20px;margin-top:5px;text-align:center}.king-pro-sign-loader .king-pro-sign-loader__actions .king-pro-sign-loader__actions--down{border:1px solid var(--king-color-primary);width:35px;height:35px;background:#ecf5ff;border-radius:4px;margin-top:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.king-pro-sign-loader .king-pro-sign-loader__contract-item{display:flex;margin-top:10px}.king-pro-sign-loader .king-pro-sign-loader__contract-item .drag-region{position:absolute;left:0;top:0;border:1px solid transparent}.king-pro-sign-loader .king-pro-sign-loader__contract-item .drag-region-moveing{border:1px dashed #4699ff}.king-pro-sign-loader .king-pro-sign-loader__contract-item .crevice-drag-moveing{border:1px dashed #4699ff}.king-pro-sign-loader .king-pro-sign-loader__contract-item .drag-crevice{margin-left:10px;width:100px;border:1px solid #ddd;background:#f7f7f7;height:100%;display:flex;position:relative}.king-pro-sign-loader .king-pro-sign-loader__contract-item .drag-crevice .crevice-tip{width:100%;line-height:100px;color:#bfbfbf;writing-mode:vertical-lr;text-align:center;font-size:18px}.king-pro-sign-loader .king-pro-sign-loader__contract-item .drag-crevice .drag-region-crevice{width:100%;height:100%;position:absolute;left:0;top:0}.king-pro-sign-loader .king-pro-sign-loader__contract-item .item{background-color:#fff;text-align:right;position:relative;overflow:hidden}.king-pro-sign-loader .king-pro-sign-loader__contract-item .item-visible{overflow:visible}.king-pro-sign-files{display:flex;flex-direction:column;align-items:center;justify-content:center}.king-pro-sign-files .king-pro-sign-files__item{margin-bottom:40px}.king-pro-sign-files .king-pro-sign-files__file-image{width:165px;height:220px;background-color:#fff;border-radius:4px;margin-bottom:15px;cursor:pointer;box-shadow:5px 5px 10px 0 rgba(0,0,0,.1),-5px 5px 10px 0 rgba(0,0,0,.1)}.king-pro-sign-files .king-pro-sign-files__file-name{text-align:center}.king-pro-sign-files .king-pro-sign-files__active-item .king-pro-sign-files__file-image{border:1px solid var(--king-color-primary)}.king-pro-sign-files .king-pro-sign-files__active-item .king-pro-sign-files__file-name{color:var(--king-color-primary)}.king-pro-sign-seals{display:flex;flex-direction:column;padding-bottom:20px;height:100%}.king-pro-sign-seals .king-pro-sign-seals__seals{display:flex;flex-direction:column;align-items:center;flex:1;margin-bottom:20px;overflow:auto}.king-pro-sign-seals .king-pro-sign-seals__seals .king-pro-sign-seals__seals--seal{width:180px;height:180px;margin:10px;background:rgba(70,153,255,.1);border-radius:4px;border:1px dotted var(--king-color-primary);display:flex;justify-content:center;align-items:center}.king-pro-sign-seals .king-pro-sign-seals__seals .king-pro-sign-seals__seals--seal-drag{display:flex;cursor:pointer}.king-pro-sign-seals .king-pro-sign-seals__seals .king-pro-sign-seals__seals--seal-img{width:150px;pointer-events:none}.king-pro-sign-batch{max-height:520px;overflow:auto}.king-pro-sign-batch .contract-popover-title{padding:10px 0}.king-pro-sign-batch .contract-popover-footer{text-align:right;width:100%}.king-pro-sign-batch .contract-popover-footer .first-btn{margin-right:5px}.king-pro-sign-batch .contract-popover-position{margin:10px 0;margin-top:0}.king-pro-sign-batch .contract-popover-position .contract-popover-position-page{margin-top:10px}.king-pro-sign-batch .contract-popover-position .contract-popover-position-page .err{font-size:12px;color:var(--red-color)}.king-pro-sign-info{width:100%;height:100%;overflow:auto;padding-left:10px}.king-pro-sign-signature{text-align:center}.king-pro-sign-signature .add-signature-icon{color:var(--king-color-primary)!important;margin-right:5px}.king-pro-sign-signature .signature-item{border:1px dotted var(--king-color-primary);margin-bottom:10px;padding:10px;background:rgba(70,153,255,.1);cursor:pointer}.king-pro-sign-signature .add-signature{display:flex;height:50px;align-items:center;justify-content:center;cursor:pointer;background:rgba(70,153,255,.1);color:#4699ff;border-radius:4px;font-size:14px;margin-bottom:10px}.king-pro-sign-signature .add-signature .date-icon{font-size:18px;margin-right:12px}.king-pro-sign-signature .add-signature:active{opacity:.8}.king-pro-add-signature{position:relative;height:280px}.king-pro-add-signature .pro-signature{position:absolute;border:1px dashed #ccc;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2}.king-pro-add-signature .tip{position:absolute;font-size:24px;top:50%;left:50%;transform:translate(-50%,-50%);color:#ccc;z-index:1}.king-pro-sign-date{display:flex;height:50px;align-items:center;justify-content:center;cursor:pointer;background:rgba(70,153,255,.1);color:var(--king-color-primary);border-radius:4px;font-size:14px}.king-pro-sign-date .date-icon{font-size:18px;margin-right:5px;color:var(--king-color-primary)!important}.king-pro-sign-verify .construct-verify-sms{padding-left:20px}.king-pro-sign-verify .constract-verify-phone{margin:15px 0;text-align:center}.king-pro-sign-verify .constract-verify-password{padding-top:15px;margin:0 auto}.king-pro-sign-verify .constract-verify-password-switch{text-align:center}.king-pro-tag-group{border:1px solid #d9d9d9;height:30px;width:100%;display:flex;align-items:center;padding:5px;border-radius:3px;color:#3b3b3b}.king-pro-tag-group .king-pro-tag-group__tags{display:flex;flex:1;align-items:center;overflow-x:hidden;scrollbar-width:none;gap:5px;height:100%}.king-pro-tag-group .king-pro-tag-group__count{background:#d9d9d9;overflow:hidden;margin-left:5px;text-align:center;white-space:nowrap;text-overflow:ellipsis;line-height:normal;padding:0 5px;height:100%}.king-pro-tag-group .king-pro-tag-group__item{padding:0 5px;background:#d9d9d9;flex-shrink:0;visibility:hidden;line-height:normal}.king-pro-tag-group .king-pro-tag-group__item:hover .king-pro-tag-group__remove-icon{background:#a3a3a3;border-radius:50%;color:#fff!important}.king-pro-tag-group .king-pro-tag-group__remove-icon{margin-left:2px;padding:1px;cursor:pointer}.king-pro-tag-group .king-pro-tag-group__visible{visibility:inherit}.king-role-selector-modal{display:flex;height:300px;width:100%;border:1px solid #e5e5e5;border-radius:4px;overflow:hidden}.king-role-selector-modal .king-role-selector__role-item{display:flex;align-items:center;justify-content:space-between;width:100%;height:40px;cursor:pointer}.king-role-selector-modal .king-role-selector__role-item.is-active{padding:0 10px}.king-role-selector-modal .king-role-selector__role-item:hover.is-active{background-color:#f5f7fa;border-radius:4px}.king-role-selector-modal .king-role-selector__role-item .king-role-selector-role-item-label{display:flex}.king-role-selector-modal .king-role-selector__role-item .king-role-selector__label{font-size:14px;padding-left:5px;color:#606266}.king-role-selector-modal .king-role-selector__role-item .king-role-selector__role-item-del:hover .icon-king-shanchu{color:#409eff!important}.king-role-selector-modal .king-role-selector-left{width:50%;height:300px;box-sizing:border-box;padding:15px}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list{margin-top:15px;height:230px;width:100%;overflow-y:auto}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list::-webkit-scrollbar{width:6px;height:6px}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-role-selector-modal .king-role-selector-right{flex:1;height:300px;box-sizing:border-box;border-left:1px solid #e5e5e5;padding:15px;overflow-y:auto}.king-role-selector-modal .king-role-selector-right::-webkit-scrollbar{width:6px;height:6px}.king-role-selector-modal .king-role-selector-right::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-role-selector-modal .king-role-selector-right::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-role-selector-modal .king-role-selector-right::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-user-avatar{box-sizing:border-box;margin:5px;cursor:pointer;position:relative}.king-user-avatar .king-user-avatar__img{width:100%;height:100%;display:block;box-sizing:border-box}.king-user-avatar .king-user-avatar__name{width:100%;height:100%;min-width:24px;min-height:24px;color:#fff;border-radius:50%;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.king-user-avatar-default{width:32px;height:32px}.king-user-avatar-default .king-user-avatar__name{font-size:12px}.king-user-avatar-small{width:24px;height:24px}.king-user-avatar-small .king-user-avatar__name{font-size:8px}.king-user-avatar-large{width:40px;height:40px}.king-user-avatar-large .king-user-avatar__name{font-size:14px}.king-dept-selector__modal-content{display:flex;height:400px;border:1px solid #e5e5e5;border-radius:4px;box-sizing:border-box}.king-dept-selector__modal-content-left{width:50%;height:100%;box-sizing:border-box;border-right:1px solid #e5e5e5;padding:12px}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree{height:320px;overflow-y:auto}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree::-webkit-scrollbar{width:6px;height:6px}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-dept-selector__modal-content-right{flex:1;height:100%;box-sizing:border-box;padding:12px;overflow-y:auto}.king-dept-selector__modal-content-right::-webkit-scrollbar{width:6px;height:6px}.king-dept-selector__modal-content-right::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-dept-selector__modal-content-right::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-dept-selector__modal-content-right::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 12px;cursor:pointer;border-radius:4px}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item:hover{background-color:#f5f7fa}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item .king-dept-selector__modal-content-right-item-label{display:flex;align-items:center}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item span{padding:0 4px}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item .king-dept-selector__modal-content-right-item-del:hover .icon-king-shanchu{color:#409eff!important}.king-pro-user-selector{display:flex;justify-content:center;height:300px;border:1px solid #e5e5e5;border-radius:4px;overflow:hidden}.king-pro-user-selector .king-pro-user-selector-org-tree{overflow-y:auto;overflow-x:hidden;height:200px;margin-top:16px}.king-pro-user-selector .king-pro-user-selector-org-tree::-webkit-scrollbar{width:6px;height:6px}.king-pro-user-selector .king-pro-user-selector-org-tree::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-pro-user-selector .king-pro-user-selector-org-tree::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-pro-user-selector .king-pro-user-selector-org-tree::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-pro-user-selector .king-pro-user-selector-org-tree .king-pro-user-selector-org-tree-item{margin:0 10px;display:flex;align-items:center;justify-content:space-between;height:100%;box-sizing:border-box;height:48px}.king-pro-user-selector .king-pro-user-selector-org-tree .king-pro-user-selector-org-tree-item:hover{background-color:rgba(31,35,41,.08);cursor:pointer;border-radius:6px}.king-pro-user-selector .king-pro-user-selector-org-tree .king-pro-user-selector-org-tree-item .king-pro-user-selector-org-tree-item-title{display:flex;align-items:center;width:100%;height:100%;padding:0 6px}.king-pro-user-selector .king-pro-user-selector-org-tree .king-pro-user-selector-org-tree-item .king-pro-user-selector-org-tree-item-title .king-pro-user-selector-org-tree-dept-icon{width:32px;height:32px;border-radius:50%;background-color:#4954e6;display:flex;align-items:center;justify-content:center}.king-pro-user-selector .king-pro-user-selector-org-tree .king-pro-user-selector-org-tree-item .king-pro-user-selector-org-tree-item-title .king-pro-user-selector-org-tree-item-title-text{margin-left:10px;font-size:14px;color:#1f2329}.king-pro-user-selector .select-user-list{overflow-y:auto;overflow-x:hidden;height:240px;margin-top:16px}.king-pro-user-selector .select-user-list::-webkit-scrollbar{width:6px;height:6px}.king-pro-user-selector .select-user-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-pro-user-selector .select-user-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-pro-user-selector .select-user-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-pro-user-selector .king-pro-user-selector-user-list{margin-top:10px;overflow-y:auto;overflow-x:hidden}.king-pro-user-selector .king-pro-user-selector-user-item{display:flex;align-items:center;width:calc(100% - 20px);margin:0 10px;height:48px;box-sizing:border-box}.king-pro-user-selector .king-pro-user-selector-user-item:hover{background-color:rgba(31,35,41,.08);cursor:pointer;border-radius:6px}.king-pro-user-selector .king-pro-user-selector-user-item .king-pro-user-selector-user-item-content{display:flex;align-items:center;flex:1}.king-pro-user-selector .king-pro-user-selector-user-item .king-pro-user-selector-user-item-content .king-pro-user-selector-user-item-content-tag{font-size:10px;color:#999;margin-left:10px;color:#245bdb;background-color:rgba(51,112,255,.2);padding-left:4px;padding-right:4px;border-radius:4px}.king-pro-user-selector .king-pro-user-selector-user-item .king-pro-user-selector-user-item-content .select-user-item-icon{width:20px;height:20px;margin-right:4px;display:flex;justify-content:center;align-items:center;cursor:pointer}.king-pro-user-selector .king-pro-user-selector-user-item .king-pro-user-selector-user-item-content .select-user-item-icon:hover{background-color:rgba(31,35,41,.1);border-radius:6px}.king-pro-user-selector .king-pro-user-selector-user-item .king-pro-user-selector-avator{width:32px;height:32px;border-radius:50%;margin-right:10px;margin-left:10px}.king-pro-user-selector .king-pro-user-selector-content-left{width:50%;box-sizing:border-box}.king-pro-user-selector .king-pro-user-selector-content-left .king-pro-user-selector-breadcrumb{margin-top:10px}.king-pro-user-selector .king-pro-user-selector-content-right{width:50%;box-sizing:border-box;border-left:1px solid #e5e5e5;padding:16px}.king-pro-user-selector .king-pro-user-selector-content-right .king-pro-user-selector-content-right-title{font-size:14px;color:#333;margin-bottom:10px}.king-pro-user-selector .king-pro-user-selector-content-right .king-pro-user-selector-select-user-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0 10px;height:48px;cursor:pointer}.king-pro-user-selector .king-pro-user-selector-content-right .king-pro-user-selector-select-user-item:hover{background-color:rgba(31,35,41,.08);border-radius:6px}.king-user-selector-extermal{display:flex;flex-wrap:wrap;width:100%}.king-user-selector-extermal .king-user-selector-extermal-icon{width:56px;height:32px;border:1px solid #409eff;border-radius:100px;display:flex;justify-content:center;align-items:center;cursor:pointer;margin-right:8px;margin-top:8px}.king-user-selector-extermal .king-user-selector-extermal-icon:hover{box-shadow:0 0 10px rgba(51,112,255,.5);transition:all .2s}.king-user-selector-extermal .king-user-selector-extermal-list{display:flex;flex:1;flex-wrap:wrap}.king-user-selector-extermal .king-user-selector-extermal-list .king-user-selector-extermal-item{display:flex;align-items:center;min-width:70px;background-color:#eff0f1;height:32px;padding:0 4px;box-sizing:border-box;border-radius:16px;color:#1f2329;font-size:14px;cursor:pointer;margin-right:8px;margin-top:8px;padding-right:10px}.king-user-selector-extermal .king-user-selector-extermal-list .king-user-selector-extermal-item__name{padding:0 4px}.king-user-selector-extermal .king-user-selector-extermal-list .icon-king-shanchu:hover{color:#409eff!important}
@@ -42,9 +42,9 @@ export declare const KDeptSelector: SFCWithInstall<DefineComponent<{
42
42
  readonly default: false;
43
43
  };
44
44
  }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
45
- 'update:visible': (value: boolean) => boolean;
46
- 'update:modelValue': (value: Record<string, string>[] | Record<string, string>) => boolean;
47
- confirm: (value: Record<string, string>[] | Record<string, string>) => boolean;
45
+ 'update:visible': (_value: boolean) => boolean;
46
+ 'update:modelValue': (_value: Record<string, string>[] | Record<string, string>) => boolean;
47
+ confirm: (_value: Record<string, string>[] | Record<string, string>) => boolean;
48
48
  cancel: () => boolean;
49
49
  }, string, PublicProps, Readonly< ExtractPropTypes<{
50
50
  readonly visible: BooleanConstructor;
@@ -87,9 +87,9 @@ export declare const KDeptSelector: SFCWithInstall<DefineComponent<{
87
87
  };
88
88
  }>> & {
89
89
  onCancel?: (() => any) | undefined;
90
- onConfirm?: ((value: Record<string, string> | Record<string, string>[]) => any) | undefined;
91
- "onUpdate:modelValue"?: ((value: Record<string, string> | Record<string, string>[]) => any) | undefined;
92
- "onUpdate:visible"?: ((value: boolean) => any) | undefined;
90
+ onConfirm?: ((_value: Record<string, string> | Record<string, string>[]) => any) | undefined;
91
+ "onUpdate:modelValue"?: ((_value: Record<string, string> | Record<string, string>[]) => any) | undefined;
92
+ "onUpdate:visible"?: ((_value: boolean) => any) | undefined;
93
93
  }, {
94
94
  readonly type: "checkbox" | "radio";
95
95
  readonly visible: boolean;
@@ -40,9 +40,9 @@ declare const _default: DefineComponent<{
40
40
  readonly default: false;
41
41
  };
42
42
  }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
43
- 'update:visible': (value: boolean) => boolean;
44
- 'update:modelValue': (value: Record<string, string>[] | Record<string, string>) => boolean;
45
- confirm: (value: Record<string, string>[] | Record<string, string>) => boolean;
43
+ 'update:visible': (_value: boolean) => boolean;
44
+ 'update:modelValue': (_value: Record<string, string>[] | Record<string, string>) => boolean;
45
+ confirm: (_value: Record<string, string>[] | Record<string, string>) => boolean;
46
46
  cancel: () => boolean;
47
47
  }, string, PublicProps, Readonly< ExtractPropTypes<{
48
48
  readonly visible: BooleanConstructor;
@@ -85,9 +85,9 @@ declare const _default: DefineComponent<{
85
85
  };
86
86
  }>> & {
87
87
  onCancel?: (() => any) | undefined;
88
- onConfirm?: ((value: Record<string, string> | Record<string, string>[]) => any) | undefined;
89
- "onUpdate:modelValue"?: ((value: Record<string, string> | Record<string, string>[]) => any) | undefined;
90
- "onUpdate:visible"?: ((value: boolean) => any) | undefined;
88
+ onConfirm?: ((_value: Record<string, string> | Record<string, string>[]) => any) | undefined;
89
+ "onUpdate:modelValue"?: ((_value: Record<string, string> | Record<string, string>[]) => any) | undefined;
90
+ "onUpdate:visible"?: ((_value: boolean) => any) | undefined;
91
91
  }, {
92
92
  readonly type: "checkbox" | "radio";
93
93
  readonly visible: boolean;
@@ -65,9 +65,9 @@ export declare const deptSelectorProps: {
65
65
  };
66
66
  export declare const GET_DEPT_TREE_URL = "/security/dept/company/tree";
67
67
  export declare const deptSelectorEmits: {
68
- 'update:visible': (value: boolean) => boolean;
69
- 'update:modelValue': (value: Record<string, string>[] | Record<string, string>) => boolean;
70
- confirm: (value: Record<string, string>[] | Record<string, string>) => boolean;
68
+ 'update:visible': (_value: boolean) => boolean;
69
+ 'update:modelValue': (_value: Record<string, string>[] | Record<string, string>) => boolean;
70
+ confirm: (_value: Record<string, string>[] | Record<string, string>) => boolean;
71
71
  cancel: () => boolean;
72
72
  };
73
73
  export type DeptSelectorProps = ExtractPropTypes<typeof deptSelectorProps>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@king-one/antdv",
3
3
  "type": "module",
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",
@@ -25,8 +25,8 @@
25
25
  "evtd": "^0.2.4",
26
26
  "lodash-es": "^4.17.21",
27
27
  "mitt": "^3.0.1",
28
- "@king-one/utils": "^1.0.13",
29
- "@king-one/tapable": "^3.0.0"
28
+ "@king-one/tapable": "^3.0.0",
29
+ "@king-one/utils": "^1.0.13"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public",