3h1-ui 1.0.21 → 1.0.24

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/lib/index.js CHANGED
@@ -1,90 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const antDesignVue = require("ant-design-vue");
5
4
  require("xe-utils");
6
5
  const vxeTable = require("vxe-table");
7
6
  const zhCN = require("ant-design-vue/es/locale/zh_CN");
7
+ const antDesignVue = require("ant-design-vue");
8
8
  require("ant-design-vue/dist/antd.css");
9
9
  const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
10
10
  const zhCN__default = /* @__PURE__ */ _interopDefaultLegacy(zhCN);
11
- const _hoisted_1$2 = { class: "shy-form" };
12
- const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
13
- __name: "IndexView",
14
- props: {
15
- column: { default: () => [] },
16
- form: { default: {} }
17
- },
18
- emits: ["update:form"],
19
- setup(__props, { expose, emit }) {
20
- const props = __props;
21
- const form = vue.reactive({});
22
- vue.watch(
23
- () => props.form,
24
- (value) => {
25
- Object.keys(value).forEach((key) => {
26
- form[key] = value[key];
27
- });
28
- },
29
- { immediate: true }
30
- );
31
- const changeEvent = () => {
32
- emit("update:form", { ...form });
33
- };
34
- const rules = vue.reactive({});
35
- const { resetFields, validate, validateInfos } = antDesignVue.Form.useForm(form, rules, {});
36
- expose({ resetFields });
37
- return (_ctx, _cache) => {
38
- const _component_a_form_item = vue.resolveComponent("a-form-item");
39
- const _component_a_form = vue.resolveComponent("a-form");
40
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
41
- vue.createVNode(_component_a_form, {
42
- "label-col": { span: 6 },
43
- "wrapper-col": { span: 18 }
44
- }, {
45
- default: vue.withCtx(() => [
46
- vue.createVNode(vue.unref(antDesignVue.Row), null, {
47
- default: vue.withCtx(() => [
48
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.column || [], (item, index2) => {
49
- return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Col), {
50
- key: index2,
51
- span: (item == null ? void 0 : item.span) || 12
52
- }, {
53
- default: vue.withCtx(() => [
54
- vue.createVNode(_component_a_form_item, {
55
- label: item.label
56
- }, {
57
- default: vue.withCtx(() => [
58
- (item == null ? void 0 : item.type) === "select" ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Select), {
59
- key: 0,
60
- onChange: changeEvent,
61
- value: form[item.prop],
62
- "onUpdate:value": ($event) => form[item.prop] = $event,
63
- options: item.dicData
64
- }, null, 8, ["value", "onUpdate:value", "options"])) : (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Input), {
65
- key: 1,
66
- onChange: changeEvent,
67
- value: form[item.prop],
68
- "onUpdate:value": ($event) => form[item.prop] = $event,
69
- size: "middle"
70
- }, null, 8, ["value", "onUpdate:value"]))
71
- ]),
72
- _: 2
73
- }, 1032, ["label"])
74
- ]),
75
- _: 2
76
- }, 1032, ["span"]);
77
- }), 128))
78
- ]),
79
- _: 1
80
- })
81
- ]),
82
- _: 1
83
- })
84
- ]);
85
- };
86
- }
87
- });
11
+ const style = "";
88
12
  function bound01(n, max) {
89
13
  if (isOnePointZero(n)) {
90
14
  n = "100%";
@@ -729,7 +653,7 @@ function insertCss(css, options) {
729
653
  }
730
654
  return styleElement;
731
655
  }
732
- function _objectSpread$7(target) {
656
+ function _objectSpread$4(target) {
733
657
  for (var i = 1; i < arguments.length; i++) {
734
658
  var source = arguments[i] != null ? Object(arguments[i]) : {};
735
659
  var ownKeys = Object.keys(source);
@@ -739,12 +663,12 @@ function _objectSpread$7(target) {
739
663
  }));
740
664
  }
741
665
  ownKeys.forEach(function(key) {
742
- _defineProperty$7(target, key, source[key]);
666
+ _defineProperty$4(target, key, source[key]);
743
667
  });
744
668
  }
745
669
  return target;
746
670
  }
747
- function _defineProperty$7(obj, key, value) {
671
+ function _defineProperty$4(obj, key, value) {
748
672
  if (key in obj) {
749
673
  Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
750
674
  } else {
@@ -765,13 +689,13 @@ function isIconDefinition(target) {
765
689
  }
766
690
  function generate(node, key, rootProps) {
767
691
  if (!rootProps) {
768
- return vue.h(node.tag, _objectSpread$7({
692
+ return vue.h(node.tag, _objectSpread$4({
769
693
  key
770
694
  }, node.attrs), (node.children || []).map(function(child, index2) {
771
695
  return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index2));
772
696
  }));
773
697
  }
774
- return vue.h(node.tag, _objectSpread$7({
698
+ return vue.h(node.tag, _objectSpread$4({
775
699
  key
776
700
  }, rootProps, node.attrs), (node.children || []).map(function(child, index2) {
777
701
  return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index2));
@@ -834,7 +758,7 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
834
758
  }
835
759
  return target;
836
760
  }
837
- function _objectSpread$6(target) {
761
+ function _objectSpread$3(target) {
838
762
  for (var i = 1; i < arguments.length; i++) {
839
763
  var source = arguments[i] != null ? Object(arguments[i]) : {};
840
764
  var ownKeys = Object.keys(source);
@@ -844,12 +768,12 @@ function _objectSpread$6(target) {
844
768
  }));
845
769
  }
846
770
  ownKeys.forEach(function(key) {
847
- _defineProperty$6(target, key, source[key]);
771
+ _defineProperty$3(target, key, source[key]);
848
772
  });
849
773
  }
850
774
  return target;
851
775
  }
852
- function _defineProperty$6(obj, key, value) {
776
+ function _defineProperty$3(obj, key, value) {
853
777
  if (key in obj) {
854
778
  Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
855
779
  } else {
@@ -869,10 +793,10 @@ function setTwoToneColors(_ref) {
869
793
  twoToneColorPalette.calculated = !!secondaryColor;
870
794
  }
871
795
  function getTwoToneColors() {
872
- return _objectSpread$6({}, twoToneColorPalette);
796
+ return _objectSpread$3({}, twoToneColorPalette);
873
797
  }
874
798
  var IconBase = function IconBase2(props, context) {
875
- var _props$context$attrs = _objectSpread$6({}, props, context.attrs), icon = _props$context$attrs.icon, primaryColor = _props$context$attrs.primaryColor, secondaryColor = _props$context$attrs.secondaryColor, restProps = _objectWithoutProperties$1(_props$context$attrs, _excluded$1);
799
+ var _props$context$attrs = _objectSpread$3({}, props, context.attrs), icon = _props$context$attrs.icon, primaryColor = _props$context$attrs.primaryColor, secondaryColor = _props$context$attrs.secondaryColor, restProps = _objectWithoutProperties$1(_props$context$attrs, _excluded$1);
876
800
  var colors = twoToneColorPalette;
877
801
  if (primaryColor) {
878
802
  colors = {
@@ -887,11 +811,11 @@ var IconBase = function IconBase2(props, context) {
887
811
  }
888
812
  var target = icon;
889
813
  if (target && typeof target.icon === "function") {
890
- target = _objectSpread$6({}, target, {
814
+ target = _objectSpread$3({}, target, {
891
815
  icon: target.icon(colors.primaryColor, colors.secondaryColor)
892
816
  });
893
817
  }
894
- return generate(target.icon, "svg-".concat(target.name), _objectSpread$6({}, restProps, {
818
+ return generate(target.icon, "svg-".concat(target.name), _objectSpread$3({}, restProps, {
895
819
  "data-icon": target.name,
896
820
  width: "1em",
897
821
  height: "1em",
@@ -1043,7 +967,7 @@ function _arrayWithHoles(arr) {
1043
967
  if (Array.isArray(arr))
1044
968
  return arr;
1045
969
  }
1046
- function _objectSpread$5(target) {
970
+ function _objectSpread$2(target) {
1047
971
  for (var i = 1; i < arguments.length; i++) {
1048
972
  var source = arguments[i] != null ? Object(arguments[i]) : {};
1049
973
  var ownKeys = Object.keys(source);
@@ -1053,12 +977,12 @@ function _objectSpread$5(target) {
1053
977
  }));
1054
978
  }
1055
979
  ownKeys.forEach(function(key) {
1056
- _defineProperty$5(target, key, source[key]);
980
+ _defineProperty$2(target, key, source[key]);
1057
981
  });
1058
982
  }
1059
983
  return target;
1060
984
  }
1061
- function _defineProperty$5(obj, key, value) {
985
+ function _defineProperty$2(obj, key, value) {
1062
986
  if (key in obj) {
1063
987
  Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
1064
988
  } else {
@@ -1101,10 +1025,10 @@ function _objectWithoutPropertiesLoose(source, excluded) {
1101
1025
  setTwoToneColor("#1890ff");
1102
1026
  var Icon = function Icon2(props, context) {
1103
1027
  var _classObj;
1104
- var _props$context$attrs = _objectSpread$5({}, props, context.attrs), cls = _props$context$attrs["class"], icon = _props$context$attrs.icon, spin = _props$context$attrs.spin, rotate = _props$context$attrs.rotate, tabindex = _props$context$attrs.tabindex, twoToneColor = _props$context$attrs.twoToneColor, onClick = _props$context$attrs.onClick, restProps = _objectWithoutProperties(_props$context$attrs, _excluded);
1028
+ var _props$context$attrs = _objectSpread$2({}, props, context.attrs), cls = _props$context$attrs["class"], icon = _props$context$attrs.icon, spin = _props$context$attrs.spin, rotate = _props$context$attrs.rotate, tabindex = _props$context$attrs.tabindex, twoToneColor = _props$context$attrs.twoToneColor, onClick = _props$context$attrs.onClick, restProps = _objectWithoutProperties(_props$context$attrs, _excluded);
1105
1029
  var classObj = (_classObj = {
1106
1030
  anticon: true
1107
- }, _defineProperty$5(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$5(_classObj, cls, cls), _classObj);
1031
+ }, _defineProperty$2(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$2(_classObj, cls, cls), _classObj);
1108
1032
  var svgClassString = spin === "" || !!spin || icon.name === "loading" ? "anticon-spin" : "";
1109
1033
  var iconTabIndex = tabindex;
1110
1034
  if (iconTabIndex === void 0 && onClick) {
@@ -1116,7 +1040,7 @@ var Icon = function Icon2(props, context) {
1116
1040
  transform: "rotate(".concat(rotate, "deg)")
1117
1041
  } : void 0;
1118
1042
  var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
1119
- return vue.createVNode("span", _objectSpread$5({
1043
+ return vue.createVNode("span", _objectSpread$2({
1120
1044
  "role": "img",
1121
1045
  "aria-label": icon.name
1122
1046
  }, restProps, {
@@ -1141,43 +1065,9 @@ Icon.inheritAttrs = false;
1141
1065
  Icon.getTwoToneColor = getTwoToneColor;
1142
1066
  Icon.setTwoToneColor = setTwoToneColor;
1143
1067
  const AntdIcon = Icon;
1144
- var ClearOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "defs", "attrs": {}, "children": [{ "tag": "style", "attrs": {} }] }, { "tag": "path", "attrs": { "d": "M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z" } }] }, "name": "clear", "theme": "outlined" };
1145
- const ClearOutlinedSvg = ClearOutlined$2;
1146
- function _objectSpread$4(target) {
1147
- for (var i = 1; i < arguments.length; i++) {
1148
- var source = arguments[i] != null ? Object(arguments[i]) : {};
1149
- var ownKeys = Object.keys(source);
1150
- if (typeof Object.getOwnPropertySymbols === "function") {
1151
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1152
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1153
- }));
1154
- }
1155
- ownKeys.forEach(function(key) {
1156
- _defineProperty$4(target, key, source[key]);
1157
- });
1158
- }
1159
- return target;
1160
- }
1161
- function _defineProperty$4(obj, key, value) {
1162
- if (key in obj) {
1163
- Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
1164
- } else {
1165
- obj[key] = value;
1166
- }
1167
- return obj;
1168
- }
1169
- var ClearOutlined = function ClearOutlined2(props, context) {
1170
- var p = _objectSpread$4({}, props, context.attrs);
1171
- return vue.createVNode(AntdIcon, _objectSpread$4({}, p, {
1172
- "icon": ClearOutlinedSvg
1173
- }), null);
1174
- };
1175
- ClearOutlined.displayName = "ClearOutlined";
1176
- ClearOutlined.inheritAttrs = false;
1177
- const ClearOutlined$1 = ClearOutlined;
1178
1068
  var DownOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" };
1179
1069
  const DownOutlinedSvg = DownOutlined$2;
1180
- function _objectSpread$3(target) {
1070
+ function _objectSpread$1(target) {
1181
1071
  for (var i = 1; i < arguments.length; i++) {
1182
1072
  var source = arguments[i] != null ? Object(arguments[i]) : {};
1183
1073
  var ownKeys = Object.keys(source);
@@ -1187,12 +1077,12 @@ function _objectSpread$3(target) {
1187
1077
  }));
1188
1078
  }
1189
1079
  ownKeys.forEach(function(key) {
1190
- _defineProperty$3(target, key, source[key]);
1080
+ _defineProperty$1(target, key, source[key]);
1191
1081
  });
1192
1082
  }
1193
1083
  return target;
1194
1084
  }
1195
- function _defineProperty$3(obj, key, value) {
1085
+ function _defineProperty$1(obj, key, value) {
1196
1086
  if (key in obj) {
1197
1087
  Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
1198
1088
  } else {
@@ -1201,8 +1091,8 @@ function _defineProperty$3(obj, key, value) {
1201
1091
  return obj;
1202
1092
  }
1203
1093
  var DownOutlined = function DownOutlined2(props, context) {
1204
- var p = _objectSpread$3({}, props, context.attrs);
1205
- return vue.createVNode(AntdIcon, _objectSpread$3({}, p, {
1094
+ var p = _objectSpread$1({}, props, context.attrs);
1095
+ return vue.createVNode(AntdIcon, _objectSpread$1({}, p, {
1206
1096
  "icon": DownOutlinedSvg
1207
1097
  }), null);
1208
1098
  };
@@ -1211,74 +1101,6 @@ DownOutlined.inheritAttrs = false;
1211
1101
  const DownOutlined$1 = DownOutlined;
1212
1102
  var MinusOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, "name": "minus", "theme": "outlined" };
1213
1103
  const MinusOutlinedSvg = MinusOutlined$2;
1214
- function _objectSpread$2(target) {
1215
- for (var i = 1; i < arguments.length; i++) {
1216
- var source = arguments[i] != null ? Object(arguments[i]) : {};
1217
- var ownKeys = Object.keys(source);
1218
- if (typeof Object.getOwnPropertySymbols === "function") {
1219
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1220
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1221
- }));
1222
- }
1223
- ownKeys.forEach(function(key) {
1224
- _defineProperty$2(target, key, source[key]);
1225
- });
1226
- }
1227
- return target;
1228
- }
1229
- function _defineProperty$2(obj, key, value) {
1230
- if (key in obj) {
1231
- Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
1232
- } else {
1233
- obj[key] = value;
1234
- }
1235
- return obj;
1236
- }
1237
- var MinusOutlined = function MinusOutlined2(props, context) {
1238
- var p = _objectSpread$2({}, props, context.attrs);
1239
- return vue.createVNode(AntdIcon, _objectSpread$2({}, p, {
1240
- "icon": MinusOutlinedSvg
1241
- }), null);
1242
- };
1243
- MinusOutlined.displayName = "MinusOutlined";
1244
- MinusOutlined.inheritAttrs = false;
1245
- const MinusOutlined$1 = MinusOutlined;
1246
- var SearchOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
1247
- const SearchOutlinedSvg = SearchOutlined$2;
1248
- function _objectSpread$1(target) {
1249
- for (var i = 1; i < arguments.length; i++) {
1250
- var source = arguments[i] != null ? Object(arguments[i]) : {};
1251
- var ownKeys = Object.keys(source);
1252
- if (typeof Object.getOwnPropertySymbols === "function") {
1253
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1254
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1255
- }));
1256
- }
1257
- ownKeys.forEach(function(key) {
1258
- _defineProperty$1(target, key, source[key]);
1259
- });
1260
- }
1261
- return target;
1262
- }
1263
- function _defineProperty$1(obj, key, value) {
1264
- if (key in obj) {
1265
- Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
1266
- } else {
1267
- obj[key] = value;
1268
- }
1269
- return obj;
1270
- }
1271
- var SearchOutlined = function SearchOutlined2(props, context) {
1272
- var p = _objectSpread$1({}, props, context.attrs);
1273
- return vue.createVNode(AntdIcon, _objectSpread$1({}, p, {
1274
- "icon": SearchOutlinedSvg
1275
- }), null);
1276
- };
1277
- SearchOutlined.displayName = "SearchOutlined";
1278
- SearchOutlined.inheritAttrs = false;
1279
- const SearchOutlined$1 = SearchOutlined;
1280
- var UpOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, "name": "up", "theme": "outlined" };
1281
- const UpOutlinedSvg = UpOutlined$2;
1282
1104
  function _objectSpread(target) {
1283
1105
  for (var i = 1; i < arguments.length; i++) {
1284
1106
  var source = arguments[i] != null ? Object(arguments[i]) : {};
@@ -1302,152 +1124,23 @@ function _defineProperty(obj, key, value) {
1302
1124
  }
1303
1125
  return obj;
1304
1126
  }
1305
- var UpOutlined = function UpOutlined2(props, context) {
1127
+ var MinusOutlined = function MinusOutlined2(props, context) {
1306
1128
  var p = _objectSpread({}, props, context.attrs);
1307
1129
  return vue.createVNode(AntdIcon, _objectSpread({}, p, {
1308
- "icon": UpOutlinedSvg
1130
+ "icon": MinusOutlinedSvg
1309
1131
  }), null);
1310
1132
  };
1311
- UpOutlined.displayName = "UpOutlined";
1312
- UpOutlined.inheritAttrs = false;
1313
- const UpOutlined$1 = UpOutlined;
1314
- const _hoisted_1$1 = { class: "shy-search" };
1315
- const _hoisted_2$1 = { class: "button-wrapper" };
1316
- const _hoisted_3$1 = { class: "expand-line" };
1317
- const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
1318
- __name: "IndexView",
1319
- props: {
1320
- column: { default: () => [] }
1321
- },
1322
- emits: ["search-change"],
1323
- setup(__props, { expose, emit }) {
1324
- const props = __props;
1325
- const form = vue.ref({});
1326
- const searchColumn = vue.computed(() => {
1327
- return props.column.map((item) => {
1328
- item.span = 8;
1329
- return item;
1330
- });
1331
- });
1332
- const baseColumn = vue.computed(() => {
1333
- return searchColumn.value.length >= 3 ? searchColumn.value.slice(0, 3) : searchColumn.value;
1334
- });
1335
- const currentColumn = vue.ref();
1336
- const isExpanded = vue.ref(false);
1337
- const expandEvent = () => {
1338
- isExpanded.value = !isExpanded.value;
1339
- };
1340
- vue.watchEffect(() => {
1341
- if (isExpanded.value) {
1342
- currentColumn.value = searchColumn.value;
1343
- } else {
1344
- currentColumn.value = baseColumn.value;
1345
- }
1346
- });
1347
- const isExpandFlag = vue.computed(() => {
1348
- return searchColumn.value.length >= 3 ? true : false;
1349
- });
1350
- const iconStyle = {
1351
- fontSize: "7px",
1352
- color: "#919191"
1353
- };
1354
- const getForm = () => {
1355
- return form.value;
1356
- };
1357
- const searchChangeEvent = () => {
1358
- emit("search-change", form.value);
1359
- };
1360
- const searchResetEvent = () => {
1361
- form.value = {};
1362
- emit("search-change", {});
1363
- };
1364
- expose({ getForm });
1365
- return (_ctx, _cache) => {
1366
- const _component_a_col = vue.resolveComponent("a-col");
1367
- const _component_a_button = vue.resolveComponent("a-button");
1368
- const _component_a_row = vue.resolveComponent("a-row");
1369
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
1370
- vue.createVNode(_component_a_row, null, {
1371
- default: vue.withCtx(() => [
1372
- vue.createVNode(_component_a_col, { span: 18 }, {
1373
- default: vue.withCtx(() => [
1374
- vue.createVNode(_sfc_main$4, {
1375
- form: form.value,
1376
- "onUpdate:form": _cache[0] || (_cache[0] = ($event) => form.value = $event),
1377
- column: currentColumn.value
1378
- }, null, 8, ["form", "column"])
1379
- ]),
1380
- _: 1
1381
- }),
1382
- vue.createVNode(_component_a_col, { span: 6 }, {
1383
- default: vue.withCtx(() => [
1384
- vue.createElementVNode("div", _hoisted_2$1, [
1385
- vue.createVNode(_component_a_button, {
1386
- class: "button-search",
1387
- type: "primary",
1388
- onClick: searchChangeEvent
1389
- }, {
1390
- icon: vue.withCtx(() => [
1391
- vue.createVNode(vue.unref(SearchOutlined$1))
1392
- ]),
1393
- default: vue.withCtx(() => [
1394
- vue.createTextVNode(" \u67E5\u8BE2 ")
1395
- ]),
1396
- _: 1
1397
- }),
1398
- vue.createVNode(_component_a_button, { onClick: searchResetEvent }, {
1399
- icon: vue.withCtx(() => [
1400
- vue.createVNode(vue.unref(ClearOutlined$1))
1401
- ]),
1402
- default: vue.withCtx(() => [
1403
- vue.createTextVNode(" \u91CD\u7F6E ")
1404
- ]),
1405
- _: 1
1406
- })
1407
- ])
1408
- ]),
1409
- _: 1
1410
- })
1411
- ]),
1412
- _: 1
1413
- }),
1414
- vue.createElementVNode("div", _hoisted_3$1, [
1415
- vue.unref(isExpandFlag) ? (vue.openBlock(), vue.createElementBlock("div", {
1416
- key: 0,
1417
- class: "expand-flag",
1418
- onClick: expandEvent
1419
- }, [
1420
- isExpanded.value ? (vue.openBlock(), vue.createBlock(vue.unref(UpOutlined$1), {
1421
- key: 0,
1422
- style: iconStyle
1423
- })) : (vue.openBlock(), vue.createBlock(vue.unref(DownOutlined$1), {
1424
- key: 1,
1425
- style: iconStyle
1426
- }))
1427
- ])) : vue.createCommentVNode("", true)
1428
- ])
1429
- ]);
1430
- };
1431
- }
1432
- });
1433
- const IndexView_vue_vue_type_style_index_0_scoped_4bb16c80_lang = "";
1434
- const _export_sfc = (sfc, props) => {
1435
- const target = sfc.__vccOpts || sfc;
1436
- for (const [key, val] of props) {
1437
- target[key] = val;
1438
- }
1439
- return target;
1440
- };
1441
- const ShySearch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-4bb16c80"]]);
1442
- const style = "";
1133
+ MinusOutlined.displayName = "MinusOutlined";
1134
+ MinusOutlined.inheritAttrs = false;
1135
+ const MinusOutlined$1 = MinusOutlined;
1443
1136
  const _withScopeId = (n) => (vue.pushScopeId("data-v-68169e62"), n = n(), vue.popScopeId(), n);
1444
- const _hoisted_1 = { class: "button-group" };
1445
- const _hoisted_2 = { class: "flex-button" };
1446
- const _hoisted_3 = ["onClick"];
1447
- const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("a", { href: "javascript:;" }, "1st menu item", -1));
1448
- const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("a", { href: "javascript:;" }, "2nd menu item", -1));
1449
- const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("a", { href: "javascript:;" }, "3rd menu item", -1));
1450
- const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1137
+ const _hoisted_1$2 = { class: "button-group" };
1138
+ const _hoisted_2$1 = { class: "flex-button" };
1139
+ const _hoisted_3$1 = ["onClick"];
1140
+ const _hoisted_4$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("a", { href: "javascript:;" }, "1st menu item", -1));
1141
+ const _hoisted_5$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("a", { href: "javascript:;" }, "2nd menu item", -1));
1142
+ const _hoisted_6$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("a", { href: "javascript:;" }, "3rd menu item", -1));
1143
+ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
1451
1144
  __name: "ButtonGroup",
1452
1145
  props: {
1453
1146
  data: null
@@ -1476,8 +1169,8 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1476
1169
  const _component_a_menu_item = vue.resolveComponent("a-menu-item");
1477
1170
  const _component_a_menu = vue.resolveComponent("a-menu");
1478
1171
  const _component_a_dropdown = vue.resolveComponent("a-dropdown");
1479
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
1480
- vue.createElementVNode("div", _hoisted_2, [
1172
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
1173
+ vue.createElementVNode("div", _hoisted_2$1, [
1481
1174
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(baseButtonList.value, (button, index2) => {
1482
1175
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
1483
1176
  vue.createVNode(_component_a_popconfirm, {
@@ -1493,7 +1186,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1493
1186
  vue.createElementVNode("span", {
1494
1187
  style: vue.normalizeStyle(setStyle(button.dataIndex))
1495
1188
  }, vue.toDisplayString(button.title), 5)
1496
- ], 8, _hoisted_3)
1189
+ ], 8, _hoisted_3$1)
1497
1190
  ]),
1498
1191
  _: 2
1499
1192
  }, 1024),
@@ -1509,19 +1202,19 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1509
1202
  default: vue.withCtx(() => [
1510
1203
  vue.createVNode(_component_a_menu_item, null, {
1511
1204
  default: vue.withCtx(() => [
1512
- _hoisted_4
1205
+ _hoisted_4$1
1513
1206
  ]),
1514
1207
  _: 1
1515
1208
  }),
1516
1209
  vue.createVNode(_component_a_menu_item, null, {
1517
1210
  default: vue.withCtx(() => [
1518
- _hoisted_5
1211
+ _hoisted_5$1
1519
1212
  ]),
1520
1213
  _: 1
1521
1214
  }),
1522
1215
  vue.createVNode(_component_a_menu_item, null, {
1523
1216
  default: vue.withCtx(() => [
1524
- _hoisted_6
1217
+ _hoisted_6$1
1525
1218
  ]),
1526
1219
  _: 1
1527
1220
  })
@@ -1547,18 +1240,24 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1547
1240
  }
1548
1241
  });
1549
1242
  const ButtonGroup_vue_vue_type_style_index_0_scoped_68169e62_lang = "";
1550
- const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-68169e62"]]);
1551
- const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1243
+ const _export_sfc = (sfc, props) => {
1244
+ const target = sfc.__vccOpts || sfc;
1245
+ for (const [key, val] of props) {
1246
+ target[key] = val;
1247
+ }
1248
+ return target;
1249
+ };
1250
+ const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-68169e62"]]);
1251
+ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
1552
1252
  __name: "IndexView",
1553
1253
  props: {
1554
1254
  isCheckbox: { type: Boolean, default: true },
1555
- isIndex: { type: Boolean, default: true },
1556
- isMenu: { type: Boolean, default: true },
1557
1255
  column: null,
1558
1256
  data: { default: () => [] },
1559
1257
  rowHeight: { default: 40 },
1560
1258
  height: { default: void 0 },
1561
- menuWidth: { default: 160 }
1259
+ menuWidth: { default: 160 },
1260
+ isMenu: { type: Boolean, default: false }
1562
1261
  },
1563
1262
  emits: [
1564
1263
  "page-change",
@@ -1614,23 +1313,22 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1614
1313
  size: "small"
1615
1314
  }, {
1616
1315
  default: vue.withCtx(() => [
1617
- props.isCheckbox ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), {
1316
+ __props.isCheckbox ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), {
1618
1317
  key: 0,
1619
1318
  type: "checkbox",
1620
1319
  width: "60"
1621
1320
  })) : vue.createCommentVNode("", true),
1622
- props.isIndex ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), {
1623
- key: 1,
1321
+ vue.createVNode(vue.unref(vxeTable.VxeColumn), {
1624
1322
  type: "seq",
1625
1323
  width: "60",
1626
1324
  title: "\u5E8F\u53F7",
1627
1325
  align: "center"
1628
- })) : vue.createCommentVNode("", true),
1326
+ }),
1629
1327
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.column, (column, index2) => {
1630
1328
  return vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), {
1631
1329
  key: index2,
1632
- field: column.prop,
1633
- title: column.label,
1330
+ field: column.dataIndex,
1331
+ title: column.title,
1634
1332
  width: (column == null ? void 0 : column.width) || void 0,
1635
1333
  align: "center"
1636
1334
  }, vue.createSlots({ _: 2 }, [
@@ -1646,7 +1344,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1646
1344
  ]), 1032, ["field", "title", "width"]);
1647
1345
  }), 128)),
1648
1346
  props.isMenu ? (vue.openBlock(), vue.createBlock(vue.unref(vxeTable.VxeColumn), {
1649
- key: 2,
1347
+ key: 1,
1650
1348
  align: "center",
1651
1349
  title: "\u64CD\u4F5C",
1652
1350
  width: props.menuWidth
@@ -1665,16 +1363,16 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1665
1363
  };
1666
1364
  }
1667
1365
  });
1668
- const IndexView_vue_vue_type_style_index_0_scoped_0df066ef_lang = "";
1669
- const ShyTable = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0df066ef"]]);
1670
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1366
+ const IndexView_vue_vue_type_style_index_0_scoped_9dac58ff_lang = "";
1367
+ const ShyTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-9dac58ff"]]);
1368
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
1671
1369
  __name: "IndexView",
1672
1370
  props: {
1673
1371
  page: { default: () => {
1674
1372
  return {
1675
1373
  current: 1,
1676
1374
  pageSize: 10,
1677
- total: 100
1375
+ total: 50
1678
1376
  };
1679
1377
  } }
1680
1378
  },
@@ -1704,7 +1402,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1704
1402
  return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.ConfigProvider), { locale: vue.unref(zhCN__default.default) }, {
1705
1403
  default: vue.withCtx(() => [
1706
1404
  vue.createVNode(vue.unref(antDesignVue.Pagination), {
1707
- class: "shy-page",
1708
1405
  current: current.value,
1709
1406
  "onUpdate:current": _cache[0] || (_cache[0] = ($event) => current.value = $event),
1710
1407
  pageSize: pageSize.value,
@@ -1721,18 +1418,384 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1721
1418
  };
1722
1419
  }
1723
1420
  });
1724
- const IndexView_vue_vue_type_style_index_0_scoped_c1bd6b49_lang = "";
1725
- const ShyPage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c1bd6b49"]]);
1421
+ const _hoisted_1$1 = { class: "dialog-footer" };
1422
+ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1423
+ __name: "indexView",
1424
+ props: {
1425
+ isButton: { type: Boolean, default: true }
1426
+ },
1427
+ setup(__props, { expose }) {
1428
+ const visible = vue.ref(true);
1429
+ const confirmEvent = () => {
1430
+ };
1431
+ const cancelEvent = () => {
1432
+ };
1433
+ const open = () => {
1434
+ visible.value = true;
1435
+ };
1436
+ expose({ open });
1437
+ return (_ctx, _cache) => {
1438
+ return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Modal), {
1439
+ visible: visible.value,
1440
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event)
1441
+ }, {
1442
+ footer: vue.withCtx(() => [
1443
+ vue.createElementVNode("div", _hoisted_1$1, [
1444
+ vue.createVNode(vue.unref(antDesignVue.Button), {
1445
+ key: "back",
1446
+ type: "primary",
1447
+ onClick: confirmEvent
1448
+ }, {
1449
+ default: vue.withCtx(() => [
1450
+ vue.createTextVNode("\u786E\u5B9A")
1451
+ ]),
1452
+ _: 1
1453
+ }),
1454
+ vue.createVNode(vue.unref(antDesignVue.Button), {
1455
+ key: "submit",
1456
+ onClick: cancelEvent
1457
+ }, {
1458
+ default: vue.withCtx(() => [
1459
+ vue.createTextVNode("\u53D6\u6D88")
1460
+ ]),
1461
+ _: 1
1462
+ })
1463
+ ]),
1464
+ vue.renderSlot(_ctx.$slots, "footer", {}, void 0, true)
1465
+ ]),
1466
+ default: vue.withCtx(() => [
1467
+ vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
1468
+ ]),
1469
+ _: 3
1470
+ }, 8, ["visible"]);
1471
+ };
1472
+ }
1473
+ });
1474
+ const indexView_vue_vue_type_style_index_0_scoped_c7d885ad_lang = "";
1475
+ const ShyDialog = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-c7d885ad"]]);
1476
+ const _hoisted_1 = { class: "user-select" };
1477
+ const _hoisted_2 = { class: "tags-selected" };
1478
+ const _hoisted_3 = { class: "user-body" };
1479
+ const _hoisted_4 = { class: "tab-wrapper" };
1480
+ const _hoisted_5 = { class: "user-wrapper" };
1481
+ const _hoisted_6 = {
1482
+ key: 0,
1483
+ class: "tree-select"
1484
+ };
1485
+ const _hoisted_7 = { class: "tree-item" };
1486
+ const _hoisted_8 = {
1487
+ key: 1,
1488
+ class: "all-user"
1489
+ };
1490
+ const _hoisted_9 = {
1491
+ key: 2,
1492
+ class: "all-organization"
1493
+ };
1494
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1495
+ __name: "IndexView",
1496
+ props: {
1497
+ userFun: { default: () => {
1498
+ return [
1499
+ {
1500
+ name: "\u5305\u78CA",
1501
+ id: 1
1502
+ },
1503
+ {
1504
+ name: "\u674E\u91D1\u7389",
1505
+ id: 2
1506
+ },
1507
+ {
1508
+ name: "\u9A6C\u5A77\u5A77",
1509
+ id: 3
1510
+ }
1511
+ ];
1512
+ } },
1513
+ deptFun: { default: () => {
1514
+ return [
1515
+ {
1516
+ title: "\u56FD\u8425\u673A\u68B0\u5382",
1517
+ key: "0-0",
1518
+ id: "0-0",
1519
+ children: [
1520
+ {
1521
+ title: "\u6570\u7BA1\u4E2D\u5FC3",
1522
+ key: "0-0-0",
1523
+ id: "0-0-0",
1524
+ children: [
1525
+ {
1526
+ title: "leaf",
1527
+ key: "0-0-0-0",
1528
+ id: "0-0-0-0"
1529
+ },
1530
+ { title: "leaf", key: "0-0-0-1", id: "0-0-0-1" }
1531
+ ]
1532
+ },
1533
+ {
1534
+ title: "\u63A7\u5236\u4E2D\u5FC3",
1535
+ key: "0-0-1",
1536
+ id: "0-0-1",
1537
+ children: [{ key: "0-0-1-0", id: "0-0-1-0", title: "sss" }]
1538
+ }
1539
+ ]
1540
+ }
1541
+ ];
1542
+ } }
1543
+ },
1544
+ emits: ["confirm"],
1545
+ setup(__props, { emit }) {
1546
+ const props = __props;
1547
+ const activeKey = vue.ref("1");
1548
+ const format = (list) => {
1549
+ let array;
1550
+ array = list.map((item) => {
1551
+ const obj = {};
1552
+ obj.title = item.deptName;
1553
+ obj.key = item.id;
1554
+ if (item.children) {
1555
+ obj.children = format(item.children);
1556
+ }
1557
+ return obj;
1558
+ });
1559
+ return array;
1560
+ };
1561
+ const loadKv = async () => {
1562
+ try {
1563
+ const res = await props.deptFun();
1564
+ organization.value = format(res);
1565
+ const res2 = await props.userFun();
1566
+ userList.value = res2;
1567
+ allUserList.value = res2;
1568
+ } catch (err) {
1569
+ console.log("err", err);
1570
+ }
1571
+ };
1572
+ loadKv();
1573
+ const getOrganizationName = (list) => {
1574
+ let obj = {};
1575
+ list.forEach((item) => {
1576
+ obj[item.key] = item.title;
1577
+ if (item.children) {
1578
+ let childrenObj = getOrganizationName(item.children);
1579
+ obj = { ...obj, ...childrenObj };
1580
+ }
1581
+ });
1582
+ return obj;
1583
+ };
1584
+ const titleMap = vue.computed(() => {
1585
+ const obj = {};
1586
+ userList.value.forEach((item) => {
1587
+ obj[item.id] = item.name;
1588
+ });
1589
+ const organizationObj = getOrganizationName(organization.value);
1590
+ return { ...obj, ...organizationObj };
1591
+ });
1592
+ const activeChangeEvent = (value) => {
1593
+ console.log("value", value);
1594
+ };
1595
+ const selectedKeys = vue.ref([]);
1596
+ const userSelected = vue.ref([]);
1597
+ const userList = vue.ref([[]]);
1598
+ const organization = vue.ref([]);
1599
+ const loadUser = async (deptId) => {
1600
+ try {
1601
+ const res = await props.userFun(deptId);
1602
+ userList.value = res;
1603
+ } catch (err) {
1604
+ console.log("err", err);
1605
+ }
1606
+ };
1607
+ const selectChangeEvent = (value) => {
1608
+ const deptId = value[0];
1609
+ loadUser(deptId);
1610
+ };
1611
+ const allUserList = vue.ref([]);
1612
+ const allUserSelected = vue.ref([]);
1613
+ const organizationChecked = vue.ref([]);
1614
+ const tagList = vue.ref([]);
1615
+ const closeEvent = (id, type) => {
1616
+ if (type === 1) {
1617
+ const index2 = userSelected.value.findIndex((item) => {
1618
+ return item === id;
1619
+ });
1620
+ userSelected.value.splice(index2, 1);
1621
+ } else if (type === 2) {
1622
+ const index2 = allUserSelected.value.findIndex((item) => {
1623
+ return item === id;
1624
+ });
1625
+ allUserSelected.value.splice(index2, 1);
1626
+ } else if (type === 3) {
1627
+ const index2 = organizationChecked.value.findIndex((item) => {
1628
+ return item === id;
1629
+ });
1630
+ organizationChecked.value.splice(index2, 1);
1631
+ }
1632
+ };
1633
+ vue.watchEffect(() => {
1634
+ tagList.value = [];
1635
+ userSelected.value.forEach((item) => {
1636
+ tagList.value.push({
1637
+ id: item,
1638
+ color: "#108ee9",
1639
+ type: 1,
1640
+ name: titleMap.value[item]
1641
+ });
1642
+ });
1643
+ allUserSelected.value.forEach((item) => {
1644
+ tagList.value.push({
1645
+ id: item,
1646
+ color: "#108ee9",
1647
+ type: 2,
1648
+ name: titleMap.value[item]
1649
+ });
1650
+ });
1651
+ organizationChecked.value.forEach((item) => {
1652
+ tagList.value.push({
1653
+ id: item,
1654
+ color: "#87d068",
1655
+ type: 3,
1656
+ name: titleMap.value[item]
1657
+ });
1658
+ });
1659
+ });
1660
+ const confirmEvent = () => {
1661
+ emit("confirm", tagList.value);
1662
+ };
1663
+ return (_ctx, _cache) => {
1664
+ const _component_a_checkbox = vue.resolveComponent("a-checkbox");
1665
+ const _component_a_checkbox_group = vue.resolveComponent("a-checkbox-group");
1666
+ return vue.openBlock(), vue.createBlock(ShyDialog, {
1667
+ width: "50vw",
1668
+ title: "\u4EFB\u52A1\u9009\u62E9\u5668",
1669
+ onConfirm: confirmEvent
1670
+ }, {
1671
+ default: vue.withCtx(() => [
1672
+ vue.createElementVNode("div", _hoisted_1, [
1673
+ vue.createElementVNode("div", _hoisted_2, [
1674
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(tagList.value, (item, index2) => {
1675
+ return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Tag), {
1676
+ key: index2,
1677
+ closable: "",
1678
+ onClose: vue.withModifiers(($event) => closeEvent(item.id, item.type), ["prevent"]),
1679
+ color: item.color
1680
+ }, {
1681
+ default: vue.withCtx(() => [
1682
+ vue.createTextVNode(vue.toDisplayString(item.name), 1)
1683
+ ]),
1684
+ _: 2
1685
+ }, 1032, ["onClose", "color"]);
1686
+ }), 128))
1687
+ ]),
1688
+ vue.createElementVNode("div", _hoisted_3, [
1689
+ vue.createElementVNode("div", _hoisted_4, [
1690
+ vue.createVNode(vue.unref(antDesignVue.Tabs), {
1691
+ class: "flex-tab",
1692
+ activeKey: activeKey.value,
1693
+ "onUpdate:activeKey": _cache[0] || (_cache[0] = ($event) => activeKey.value = $event),
1694
+ onChange: activeChangeEvent
1695
+ }, {
1696
+ default: vue.withCtx(() => [
1697
+ vue.createVNode(vue.unref(antDesignVue.TabPane), {
1698
+ key: "1",
1699
+ tab: "\u7EC4\u7EC7\u67B6\u6784"
1700
+ }),
1701
+ vue.createVNode(vue.unref(antDesignVue.TabPane), {
1702
+ key: "2",
1703
+ tab: "\u6210\u5458"
1704
+ }),
1705
+ vue.createVNode(vue.unref(antDesignVue.TabPane), {
1706
+ key: "3",
1707
+ tab: "\u7EC4\u7EC7"
1708
+ })
1709
+ ]),
1710
+ _: 1
1711
+ }, 8, ["activeKey"]),
1712
+ vue.createVNode(vue.unref(antDesignVue.Input), {
1713
+ class: "flex-input",
1714
+ placeholder: "\u641C\u7D22"
1715
+ })
1716
+ ]),
1717
+ vue.createElementVNode("div", _hoisted_5, [
1718
+ activeKey.value === "1" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
1719
+ vue.createElementVNode("div", _hoisted_7, [
1720
+ vue.createVNode(vue.unref(antDesignVue.Tree), {
1721
+ autoExpandParent: true,
1722
+ "tree-data": organization.value,
1723
+ selectedKeys: selectedKeys.value,
1724
+ "onUpdate:selectedKeys": _cache[1] || (_cache[1] = ($event) => selectedKeys.value = $event),
1725
+ onSelect: selectChangeEvent
1726
+ }, null, 8, ["tree-data", "selectedKeys"])
1727
+ ]),
1728
+ vue.createVNode(_component_a_checkbox_group, {
1729
+ class: "tree-item",
1730
+ value: userSelected.value,
1731
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => userSelected.value = $event)
1732
+ }, {
1733
+ default: vue.withCtx(() => [
1734
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(userList.value, (item, index2) => {
1735
+ return vue.openBlock(), vue.createElementBlock("div", {
1736
+ key: index2,
1737
+ class: "tree-row"
1738
+ }, [
1739
+ vue.createElementVNode("div", null, vue.toDisplayString(item.name), 1),
1740
+ vue.createVNode(_component_a_checkbox, {
1741
+ value: item.id
1742
+ }, null, 8, ["value"])
1743
+ ]);
1744
+ }), 128))
1745
+ ]),
1746
+ _: 1
1747
+ }, 8, ["value"])
1748
+ ])) : activeKey.value === "2" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
1749
+ vue.createVNode(_component_a_checkbox_group, {
1750
+ value: allUserSelected.value,
1751
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => allUserSelected.value = $event)
1752
+ }, {
1753
+ default: vue.withCtx(() => [
1754
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(allUserList.value, (item, index2) => {
1755
+ return vue.openBlock(), vue.createElementBlock("div", {
1756
+ key: index2,
1757
+ class: "tree-row"
1758
+ }, [
1759
+ vue.createElementVNode("div", null, vue.toDisplayString(item.name), 1),
1760
+ vue.createVNode(_component_a_checkbox, {
1761
+ value: item.id
1762
+ }, null, 8, ["value"])
1763
+ ]);
1764
+ }), 128))
1765
+ ]),
1766
+ _: 1
1767
+ }, 8, ["value"])
1768
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
1769
+ vue.createVNode(vue.unref(antDesignVue.Tree), {
1770
+ selectable: false,
1771
+ autoExpandParent: true,
1772
+ checkable: "",
1773
+ "tree-data": organization.value,
1774
+ checkedKeys: organizationChecked.value,
1775
+ "onUpdate:checkedKeys": _cache[4] || (_cache[4] = ($event) => organizationChecked.value = $event)
1776
+ }, null, 8, ["tree-data", "checkedKeys"])
1777
+ ]))
1778
+ ])
1779
+ ])
1780
+ ])
1781
+ ]),
1782
+ _: 1
1783
+ });
1784
+ };
1785
+ }
1786
+ });
1787
+ const IndexView_vue_vue_type_style_index_0_scoped_4f4e2ba2_lang = "";
1788
+ const UserSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4f4e2ba2"]]);
1726
1789
  const index = {
1727
1790
  install(app) {
1728
- app.component("s-search", ShySearch);
1729
- app.component("s-form", _sfc_main$4);
1730
1791
  app.component("s-table", ShyTable);
1731
- app.component("s-page", ShyPage);
1792
+ app.component("s-page", _sfc_main$2);
1793
+ app.component("s-dialog", ShyDialog);
1794
+ app.component("user-select", UserSelect);
1732
1795
  }
1733
1796
  };
1734
- exports.ShyForm = _sfc_main$4;
1735
- exports.ShyPage = ShyPage;
1736
- exports.ShySearch = ShySearch;
1797
+ exports.ShyDialog = ShyDialog;
1798
+ exports.ShyPage = _sfc_main$2;
1737
1799
  exports.ShyTable = ShyTable;
1800
+ exports.UserSelect = UserSelect;
1738
1801
  exports.default = index;