3h1-ui 1.0.46 → 1.0.49

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/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var _a2;
2
2
  import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, renderSlot, getCurrentScope, onScopeDispose, getCurrentInstance, onMounted, nextTick, onUnmounted, watch, watchEffect, shallowRef, reactive, toRefs, isVNode, inject, computed, h, provide, onBeforeUnmount, resolveComponent, createElementBlock, normalizeClass, normalizeStyle, resolveDynamicComponent, Fragment, createCommentVNode, mergeProps, readonly, toDisplayString, useSlots, toRef, createSlots, renderList, normalizeProps, guardReactiveProps, toRaw, withModifiers } from "vue";
3
- import { Modal as Modal$1, Button, Tooltip, Tag, Tabs, TabPane, Input, Tree, Checkbox } from "ant-design-vue";
3
+ import { Modal as Modal$1, Button, Tooltip, Tag, Tabs, TabPane, Input, Tree, Spin, Empty, CheckboxGroup, Checkbox } from "ant-design-vue";
4
4
  const _hoisted_1$3 = { class: "dialog-footer" };
5
5
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
6
6
  __name: "indexView",
@@ -4271,7 +4271,6 @@ function useAppProviderContext() {
4271
4271
  }
4272
4272
  function useDesign(scope) {
4273
4273
  const values = useAppProviderContext();
4274
- console.log("value", values);
4275
4274
  return {
4276
4275
  prefixCls: `${values.prefixCls}-${scope}`,
4277
4276
  prefixVar: values.prefixCls
@@ -4435,12 +4434,10 @@ const _sfc_main$1 = defineComponent({
4435
4434
  "update:visible"
4436
4435
  ],
4437
4436
  setup(props2, { emit, attrs }) {
4438
- console.log("props", props2);
4439
4437
  const visibleRef = ref(false);
4440
4438
  const propsRef = ref(null);
4441
4439
  const modalWrapperRef = ref(null);
4442
4440
  const prefixCls = "shy-basic-modal";
4443
- console.log("previxCls", prefixCls);
4444
4441
  const extHeightRef = ref(0);
4445
4442
  const modalMethods = {
4446
4443
  setModalProps,
@@ -4490,7 +4487,6 @@ const _sfc_main$1 = defineComponent({
4490
4487
  visible: unref(visibleRef),
4491
4488
  wrapClassName: unref(getWrapClassName)
4492
4489
  };
4493
- console.log("attr", attr);
4494
4490
  if (unref(fullScreenRef)) {
4495
4491
  return omit$1(attr, ["height", "title"]);
4496
4492
  }
@@ -4754,12 +4750,26 @@ const _hoisted_6 = {
4754
4750
  class: "tree-select"
4755
4751
  };
4756
4752
  const _hoisted_7 = { class: "tree-item" };
4757
- const _hoisted_8 = { class: "tree-item" };
4753
+ const _hoisted_8 = { class: "tree-item relative" };
4758
4754
  const _hoisted_9 = {
4755
+ key: 0,
4756
+ class: "spin"
4757
+ };
4758
+ const _hoisted_10 = { class: "tree-row" };
4759
+ const _hoisted_11 = ["onClick"];
4760
+ const _hoisted_12 = ["onClick"];
4761
+ const _hoisted_13 = {
4759
4762
  key: 1,
4760
4763
  class: "all-user"
4761
4764
  };
4762
- const _hoisted_10 = {
4765
+ const _hoisted_14 = {
4766
+ key: 0,
4767
+ class: "spin"
4768
+ };
4769
+ const _hoisted_15 = { class: "tree-row" };
4770
+ const _hoisted_16 = ["onClick"];
4771
+ const _hoisted_17 = ["onClick"];
4772
+ const _hoisted_18 = {
4763
4773
  key: 2,
4764
4774
  class: "all-organization"
4765
4775
  };
@@ -4779,12 +4789,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4779
4789
  }
4780
4790
  ];
4781
4791
  } },
4782
- type: { default: "all" }
4792
+ type: { default: "all" },
4793
+ selectType: { default: "multiple" }
4783
4794
  },
4784
4795
  emits: ["confirm", "cancel"],
4785
4796
  setup(__props, { expose, emit }) {
4786
4797
  const props2 = __props;
4798
+ const spinning = ref(false);
4787
4799
  const activeKey = ref("1");
4800
+ const tabType = ref();
4788
4801
  watch(
4789
4802
  () => props2.type,
4790
4803
  (value) => {
@@ -4792,8 +4805,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4792
4805
  activeKey.value = "1";
4793
4806
  } else if (value === "org") {
4794
4807
  activeKey.value = "3";
4808
+ } else {
4809
+ activeKey.value = "1";
4795
4810
  }
4796
- }
4811
+ if (value === "all" || value === "user" || value === "org") {
4812
+ tabType.value = value;
4813
+ } else {
4814
+ tabType.value = "other";
4815
+ }
4816
+ },
4817
+ { immediate: true }
4797
4818
  );
4798
4819
  const userName = ref("");
4799
4820
  const format = (list) => {
@@ -4811,6 +4832,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4811
4832
  };
4812
4833
  const loadKv = async () => {
4813
4834
  try {
4835
+ spinning.value = true;
4814
4836
  const res = await props2.deptFun();
4815
4837
  organization.value = format(res);
4816
4838
  const res2 = await props2.userFun();
@@ -4819,8 +4841,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4819
4841
  res2.forEach((user) => {
4820
4842
  checkMap[user.id] = false;
4821
4843
  });
4844
+ spinning.value = false;
4822
4845
  } catch (err) {
4823
4846
  console.log("err", err);
4847
+ spinning.value = false;
4824
4848
  }
4825
4849
  };
4826
4850
  loadKv();
@@ -4852,15 +4876,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4852
4876
  }
4853
4877
  };
4854
4878
  const selectedKeys = ref([]);
4855
- ref([]);
4856
4879
  const userList = ref([]);
4857
4880
  const organization = ref([]);
4858
4881
  const checkMap = reactive({});
4882
+ ref([]);
4859
4883
  const loadUser = async (deptId = void 0, realName = void 0) => {
4860
4884
  try {
4885
+ spinning.value = true;
4861
4886
  const res = await props2.userFun(deptId, realName);
4862
4887
  userList.value = res;
4888
+ spinning.value = false;
4863
4889
  } catch (err) {
4890
+ spinning.value = false;
4864
4891
  console.log("err", err);
4865
4892
  }
4866
4893
  };
@@ -4875,42 +4902,92 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4875
4902
  loadUser(selectedKeys.value[0], userName.value);
4876
4903
  }
4877
4904
  };
4905
+ const checkClickEvent = (id) => {
4906
+ if (props2.selectType === "single") {
4907
+ nextTick(() => {
4908
+ singleCheckedKeys.value.checked = [];
4909
+ });
4910
+ if (id === userSelected.value[0]) {
4911
+ userSelected.value = [];
4912
+ } else {
4913
+ userSelected.value = [id];
4914
+ }
4915
+ curKey.value = userSelected.value;
4916
+ } else {
4917
+ checkMap[id] = !checkMap[id];
4918
+ }
4919
+ };
4878
4920
  const allUserList = ref([]);
4879
4921
  ref([]);
4880
4922
  const organizationChecked = ref([]);
4923
+ const userSelected = ref([]);
4924
+ const singleCheckedKeys = ref({ checked: [] });
4925
+ const curKey = ref([]);
4926
+ const checkSingleEvent = (keys2, { checked, node }) => {
4927
+ nextTick(() => {
4928
+ userSelected.value = [];
4929
+ });
4930
+ if (checked) {
4931
+ singleCheckedKeys.value.checked = [node.key];
4932
+ curKey.value = singleCheckedKeys.value.checked;
4933
+ }
4934
+ };
4935
+ const checkUserSingleEvent = (value) => {
4936
+ nextTick(() => {
4937
+ singleCheckedKeys.value.checked = [];
4938
+ });
4939
+ curKey.value = userSelected.value;
4940
+ };
4881
4941
  const tagList = ref([]);
4882
4942
  const closeEvent = (id, type) => {
4883
- if (type === 1) {
4884
- checkMap[id] = false;
4885
- } else if (type === 2) {
4886
- console.log("2\u6807\u8BB0");
4887
- } else if (type === 3) {
4888
- const index2 = organizationChecked.value.findIndex((item) => {
4889
- return item === id;
4943
+ if (props2.selectType === "single") {
4944
+ nextTick(() => {
4945
+ userSelected.value = [];
4946
+ curKey.value = [];
4947
+ singleCheckedKeys.value.checked = [];
4890
4948
  });
4891
- organizationChecked.value.splice(index2, 1);
4949
+ } else {
4950
+ if (type === 1) {
4951
+ checkMap[id] = false;
4952
+ } else if (type === 3) {
4953
+ const index2 = organizationChecked.value.findIndex((item) => {
4954
+ return item === id;
4955
+ });
4956
+ organizationChecked.value.splice(index2, 1);
4957
+ }
4892
4958
  }
4893
4959
  };
4894
4960
  watchEffect(() => {
4895
4961
  tagList.value = [];
4896
- Object.keys(checkMap).forEach((key2) => {
4897
- if (checkMap[key2]) {
4962
+ if (props2.selectType === "multiple") {
4963
+ Object.keys(checkMap).forEach((key2) => {
4964
+ if (checkMap[key2]) {
4965
+ tagList.value.push({
4966
+ id: key2,
4967
+ color: "#108ee9",
4968
+ type: 1,
4969
+ name: titleMap.value[key2]
4970
+ });
4971
+ }
4972
+ });
4973
+ organizationChecked.value.forEach((item) => {
4974
+ tagList.value.push({
4975
+ id: item,
4976
+ color: "#87d068",
4977
+ type: 3,
4978
+ name: titleMap.value[item]
4979
+ });
4980
+ });
4981
+ } else {
4982
+ curKey.value.forEach((item) => {
4898
4983
  tagList.value.push({
4899
- id: key2,
4900
- color: "#108ee9",
4984
+ id: item,
4985
+ color: "#87d068",
4901
4986
  type: 1,
4902
- name: titleMap.value[key2]
4987
+ name: titleMap.value[item]
4903
4988
  });
4904
- }
4905
- });
4906
- organizationChecked.value.forEach((item) => {
4907
- tagList.value.push({
4908
- id: item,
4909
- color: "#87d068",
4910
- type: 3,
4911
- name: titleMap.value[item]
4912
4989
  });
4913
- });
4990
+ }
4914
4991
  });
4915
4992
  const [registerModal, { openModal }] = useModal();
4916
4993
  ref();
@@ -4931,10 +5008,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4931
5008
  Object.keys(checkMap).forEach((key2) => {
4932
5009
  checkMap[key2] = false;
4933
5010
  });
5011
+ userSelected.value = [];
5012
+ singleCheckedKeys.value.checked = [];
5013
+ curKey.value = [];
4934
5014
  });
4935
5015
  };
4936
5016
  expose({ open });
4937
5017
  return (_ctx, _cache) => {
5018
+ const _component_a_empty = resolveComponent("a-empty");
4938
5019
  return openBlock(), createBlock(unref(BasicModal), {
4939
5020
  onRegister: unref(registerModal),
4940
5021
  width: 600,
@@ -4970,15 +5051,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4970
5051
  onChange: activeChangeEvent
4971
5052
  }, {
4972
5053
  default: withCtx(() => [
4973
- props2.type === "user" || props2.type === "all" ? (openBlock(), createBlock(unref(TabPane), {
5054
+ tabType.value === "user" || tabType.value === "all" || tabType.value === "other" ? (openBlock(), createBlock(unref(TabPane), {
4974
5055
  key: "1",
4975
5056
  tab: "\u7EC4\u7EC7\u67B6\u6784"
4976
5057
  })) : createCommentVNode("", true),
4977
- props2.type === "user" || props2.type === "all" ? (openBlock(), createBlock(unref(TabPane), {
5058
+ tabType.value === "user" || tabType.value === "all" || tabType.value === "other" ? (openBlock(), createBlock(unref(TabPane), {
4978
5059
  key: "2",
4979
5060
  tab: "\u6210\u5458"
4980
5061
  })) : createCommentVNode("", true),
4981
- props2.type === "org" || props2.type === "all" ? (openBlock(), createBlock(unref(TabPane), {
5062
+ tabType.value === "org" || tabType.value === "all" || tabType.value === "other" ? (openBlock(), createBlock(unref(TabPane), {
4982
5063
  key: "3",
4983
5064
  tab: "\u7EC4\u7EC7"
4984
5065
  })) : createCommentVNode("", true)
@@ -5006,41 +5087,113 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5006
5087
  }, null, 8, ["tree-data", "selectedKeys"])
5007
5088
  ]),
5008
5089
  createElementVNode("div", _hoisted_8, [
5009
- (openBlock(true), createElementBlock(Fragment, null, renderList(userList.value, (item, index2) => {
5090
+ spinning.value ? (openBlock(), createElementBlock("div", _hoisted_9, [
5091
+ createVNode(unref(Spin))
5092
+ ])) : createCommentVNode("", true),
5093
+ props2.selectType === "single" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
5094
+ userList.value.length === 0 ? (openBlock(), createBlock(unref(Empty), { key: 0 })) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(userList.value, (item, index2) => {
5095
+ return openBlock(), createBlock(unref(CheckboxGroup), {
5096
+ key: index2,
5097
+ class: "w-100",
5098
+ value: userSelected.value,
5099
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => userSelected.value = $event),
5100
+ onChange: checkUserSingleEvent
5101
+ }, {
5102
+ default: withCtx(() => [
5103
+ createElementVNode("div", _hoisted_10, [
5104
+ createElementVNode("div", {
5105
+ onClick: ($event) => checkClickEvent(item.id)
5106
+ }, toDisplayString(item.name), 9, _hoisted_11),
5107
+ createVNode(unref(Checkbox), {
5108
+ value: item.id,
5109
+ "onUpdate:value": ($event) => item.id = $event
5110
+ }, null, 8, ["value", "onUpdate:value"])
5111
+ ])
5112
+ ]),
5113
+ _: 2
5114
+ }, 1032, ["value"]);
5115
+ }), 128))
5116
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
5117
+ userList.value.length === 0 ? (openBlock(), createBlock(unref(Empty), { key: 0 })) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(userList.value, (item, index2) => {
5118
+ return openBlock(), createElementBlock("div", {
5119
+ key: index2,
5120
+ class: "tree-row"
5121
+ }, [
5122
+ createElementVNode("div", {
5123
+ onClick: ($event) => checkClickEvent(item.id)
5124
+ }, toDisplayString(item.name), 9, _hoisted_12),
5125
+ createVNode(unref(Checkbox), {
5126
+ checked: checkMap[item.id],
5127
+ "onUpdate:checked": ($event) => checkMap[item.id] = $event
5128
+ }, null, 8, ["checked", "onUpdate:checked"])
5129
+ ]);
5130
+ }), 128))
5131
+ ], 64))
5132
+ ])
5133
+ ])) : activeKey.value === "2" ? (openBlock(), createElementBlock("div", _hoisted_13, [
5134
+ spinning.value ? (openBlock(), createElementBlock("div", _hoisted_14, [
5135
+ createVNode(unref(Spin))
5136
+ ])) : createCommentVNode("", true),
5137
+ props2.selectType === "single" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
5138
+ userList.value.length === 0 ? (openBlock(), createBlock(_component_a_empty, { key: 0 })) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(userList.value, (item, index2) => {
5139
+ return openBlock(), createBlock(unref(CheckboxGroup), {
5140
+ key: index2,
5141
+ value: userSelected.value,
5142
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => userSelected.value = $event),
5143
+ onChange: checkUserSingleEvent
5144
+ }, {
5145
+ default: withCtx(() => [
5146
+ createElementVNode("div", _hoisted_15, [
5147
+ createElementVNode("div", {
5148
+ style: { "cursor": "pointer" },
5149
+ onClick: ($event) => checkClickEvent(item.id)
5150
+ }, toDisplayString(item.name), 9, _hoisted_16),
5151
+ createVNode(unref(Checkbox), {
5152
+ value: item.id,
5153
+ "onUpdate:value": ($event) => item.id = $event
5154
+ }, null, 8, ["value", "onUpdate:value"])
5155
+ ])
5156
+ ]),
5157
+ _: 2
5158
+ }, 1032, ["value"]);
5159
+ }), 128))
5160
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
5161
+ userList.value.length === 0 ? (openBlock(), createBlock(_component_a_empty, { key: 0 })) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(userList.value, (item, index2) => {
5010
5162
  return openBlock(), createElementBlock("div", {
5011
5163
  key: index2,
5012
5164
  class: "tree-row"
5013
5165
  }, [
5014
- createElementVNode("div", null, toDisplayString(item.name), 1),
5166
+ createElementVNode("div", {
5167
+ style: { "cursor": "pointer" },
5168
+ onClick: ($event) => checkClickEvent(item.id)
5169
+ }, toDisplayString(item.name), 9, _hoisted_17),
5015
5170
  createVNode(unref(Checkbox), {
5016
5171
  checked: checkMap[item.id],
5017
5172
  "onUpdate:checked": ($event) => checkMap[item.id] = $event
5018
5173
  }, null, 8, ["checked", "onUpdate:checked"])
5019
5174
  ]);
5020
5175
  }), 128))
5021
- ])
5022
- ])) : activeKey.value === "2" ? (openBlock(), createElementBlock("div", _hoisted_9, [
5023
- (openBlock(true), createElementBlock(Fragment, null, renderList(userList.value, (item, index2) => {
5024
- return openBlock(), createElementBlock("div", {
5025
- key: index2,
5026
- class: "tree-row"
5027
- }, [
5028
- createElementVNode("div", null, toDisplayString(item.name), 1),
5029
- createVNode(unref(Checkbox), {
5030
- checked: checkMap[item.id],
5031
- "onUpdate:checked": ($event) => checkMap[item.id] = $event
5032
- }, null, 8, ["checked", "onUpdate:checked"])
5033
- ]);
5034
- }), 128))
5035
- ])) : (openBlock(), createElementBlock("div", _hoisted_10, [
5036
- createVNode(unref(Tree), {
5176
+ ], 64))
5177
+ ])) : (openBlock(), createElementBlock("div", _hoisted_18, [
5178
+ props2.selectType === "single" ? (openBlock(), createBlock(unref(Tree), {
5179
+ key: 0,
5180
+ selectable: false,
5181
+ autoExpandParent: true,
5182
+ checkable: "",
5183
+ "tree-data": organization.value,
5184
+ checkedKeys: singleCheckedKeys.value,
5185
+ "onUpdate:checkedKeys": _cache[5] || (_cache[5] = ($event) => singleCheckedKeys.value = $event),
5186
+ checkStrictly: true,
5187
+ onCheck: checkSingleEvent
5188
+ }, null, 8, ["tree-data", "checkedKeys"])) : (openBlock(), createBlock(unref(Tree), {
5189
+ key: 1,
5037
5190
  selectable: false,
5038
5191
  autoExpandParent: true,
5039
5192
  checkable: "",
5040
5193
  "tree-data": organization.value,
5041
5194
  checkedKeys: organizationChecked.value,
5042
- "onUpdate:checkedKeys": _cache[3] || (_cache[3] = ($event) => organizationChecked.value = $event)
5043
- }, null, 8, ["tree-data", "checkedKeys"])
5195
+ "onUpdate:checkedKeys": _cache[6] || (_cache[6] = ($event) => organizationChecked.value = $event)
5196
+ }, null, 8, ["tree-data", "checkedKeys"]))
5044
5197
  ]))
5045
5198
  ])
5046
5199
  ])
@@ -5051,11 +5204,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5051
5204
  };
5052
5205
  }
5053
5206
  });
5054
- const IndexView_vue_vue_type_style_index_0_scoped_729122e8_lang = "";
5055
- const UserSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-729122e8"]]);
5207
+ const IndexView_vue_vue_type_style_index_0_scoped_0c28696f_lang = "";
5208
+ const UserSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0c28696f"]]);
5056
5209
  const antd_min = "";
5057
5210
  const index$1 = "";
5058
- console.log("BasicModal", BasicModal);
5059
5211
  const index = {
5060
5212
  install(app) {
5061
5213
  app.component("s-dialog", ShyDialog);
package/es/style.css CHANGED
@@ -138,80 +138,101 @@
138
138
  .shy-basic-title-help[data-v-f417d66d] {
139
139
  margin-left: 10px;
140
140
  }
141
- .user-body[data-v-729122e8] {
141
+ .user-body[data-v-0c28696f] {
142
142
  border: 1px solid #d9d9d9;
143
143
  }
144
- .tab-wrapper[data-v-729122e8] {
144
+ .tab-wrapper[data-v-0c28696f] {
145
145
  position: relative;
146
146
  display: flex;
147
147
  justify-content: space-between;
148
148
  align-items: center;
149
149
  }
150
- .tab-wrapper[data-v-729122e8] .ant-tabs-nav {
150
+ .tab-wrapper[data-v-0c28696f] .ant-tabs-nav {
151
151
  padding-left: 15px;
152
152
  margin-bottom: 0;
153
153
  border: none !important;
154
154
  }
155
- .tab-wrapper[data-v-729122e8] .ant-tabs-nav::before {
155
+ .tab-wrapper[data-v-0c28696f] .ant-tabs-nav::before {
156
156
  border-color: #d9d9d9;
157
157
  }
158
- .tab-wrapper .flex-tab[data-v-729122e8] {
158
+ .tab-wrapper .flex-tab[data-v-0c28696f] {
159
159
  flex: auto;
160
160
  }
161
- .tab-wrapper .flex-input[data-v-729122e8] {
161
+ .tab-wrapper .flex-input[data-v-0c28696f] {
162
162
  position: absolute;
163
163
  right: 0;
164
164
  margin-right: 15px;
165
165
  width: 200px;
166
166
  }
167
- .user-wrapper[data-v-729122e8] {
167
+ .user-wrapper[data-v-0c28696f] {
168
168
  overflow: auto;
169
169
  height: 300px;
170
170
  }
171
- .user-wrapper .tree-select[data-v-729122e8] {
171
+ .user-wrapper .tree-select[data-v-0c28696f] {
172
172
  display: flex;
173
173
  justify-content: space-between;
174
174
  overflow: hidden;
175
175
  height: 300px;
176
176
  }
177
- .user-wrapper .tree-select .tree-item[data-v-729122e8] {
177
+ .user-wrapper .tree-select .tree-item[data-v-0c28696f] {
178
178
  flex: 1 1 0 !important;
179
179
  overflow: hidden;
180
180
  box-sizing: border-box;
181
181
  }
182
- .user-wrapper .tree-select .tree-item .tree-row[data-v-729122e8] {
182
+ .user-wrapper .tree-select .tree-item .tree-row[data-v-0c28696f] {
183
183
  display: flex;
184
184
  justify-content: space-between;
185
185
  align-items: center;
186
+ cursor: pointer;
186
187
  }
187
- .user-wrapper .tree-select .tree-item[data-v-729122e8]:first-child {
188
+ .user-wrapper .tree-select .tree-item[data-v-0c28696f]:first-child {
188
189
  border-right: 1px solid #d9d9d9;
189
190
  padding: 10px 15px;
190
191
  }
191
- .user-wrapper .tree-select .tree-item[data-v-729122e8]:last-child {
192
+ .user-wrapper .tree-select .tree-item[data-v-0c28696f]:last-child {
192
193
  padding: 10px 15px;
193
194
  }
194
- .all-user[data-v-729122e8] {
195
+ .all-user[data-v-0c28696f] {
195
196
  padding: 15px;
196
197
  }
197
- .all-user[data-v-729122e8] .ant-checkbox-group {
198
+ .all-user[data-v-0c28696f] .ant-checkbox-group {
198
199
  width: 100%;
199
200
  }
200
- .all-user .tree-row[data-v-729122e8] {
201
+ .all-user .tree-row[data-v-0c28696f] {
201
202
  display: flex;
202
203
  justify-content: space-between;
203
204
  align-items: center;
204
205
  }
205
- .all-organization[data-v-729122e8] {
206
+ .all-organization[data-v-0c28696f] {
206
207
  padding: 15px;
207
208
  }
208
- .tags-selected[data-v-729122e8] {
209
+ .tags-selected[data-v-0c28696f] {
209
210
  overflow: auto;
210
211
  padding: 8px;
211
212
  margin-bottom: 15px;
212
213
  height: 80px;
213
214
  border: 1px solid #d9d9d9;
214
215
  }
216
+ .w-100[data-v-0c28696f] {
217
+ width: 100%;
218
+ }
219
+ .spin[data-v-0c28696f] {
220
+ position: absolute;
221
+ top: 0;
222
+ right: 0;
223
+ bottom: 0;
224
+ left: 0;
225
+ z-index: 999;
226
+ display: flex;
227
+ justify-content: center;
228
+ align-items: center;
229
+ text-align: center;
230
+ background: #fff;
231
+ border-radius: 4px;
232
+ }
233
+ .relative[data-v-0c28696f] {
234
+ position: relative;
235
+ }
215
236
  /*!
216
237
  *
217
238
  * ant-design-vue v3.2.13
package/lib/index.js CHANGED
@@ -4273,7 +4273,6 @@ function useAppProviderContext() {
4273
4273
  }
4274
4274
  function useDesign(scope) {
4275
4275
  const values = useAppProviderContext();
4276
- console.log("value", values);
4277
4276
  return {
4278
4277
  prefixCls: `${values.prefixCls}-${scope}`,
4279
4278
  prefixVar: values.prefixCls
@@ -4437,12 +4436,10 @@ const _sfc_main$1 = vue.defineComponent({
4437
4436
  "update:visible"
4438
4437
  ],
4439
4438
  setup(props2, { emit, attrs }) {
4440
- console.log("props", props2);
4441
4439
  const visibleRef = vue.ref(false);
4442
4440
  const propsRef = vue.ref(null);
4443
4441
  const modalWrapperRef = vue.ref(null);
4444
4442
  const prefixCls = "shy-basic-modal";
4445
- console.log("previxCls", prefixCls);
4446
4443
  const extHeightRef = vue.ref(0);
4447
4444
  const modalMethods = {
4448
4445
  setModalProps,
@@ -4492,7 +4489,6 @@ const _sfc_main$1 = vue.defineComponent({
4492
4489
  visible: vue.unref(visibleRef),
4493
4490
  wrapClassName: vue.unref(getWrapClassName)
4494
4491
  };
4495
- console.log("attr", attr);
4496
4492
  if (vue.unref(fullScreenRef)) {
4497
4493
  return omit$1(attr, ["height", "title"]);
4498
4494
  }
@@ -4756,12 +4752,26 @@ const _hoisted_6 = {
4756
4752
  class: "tree-select"
4757
4753
  };
4758
4754
  const _hoisted_7 = { class: "tree-item" };
4759
- const _hoisted_8 = { class: "tree-item" };
4755
+ const _hoisted_8 = { class: "tree-item relative" };
4760
4756
  const _hoisted_9 = {
4757
+ key: 0,
4758
+ class: "spin"
4759
+ };
4760
+ const _hoisted_10 = { class: "tree-row" };
4761
+ const _hoisted_11 = ["onClick"];
4762
+ const _hoisted_12 = ["onClick"];
4763
+ const _hoisted_13 = {
4761
4764
  key: 1,
4762
4765
  class: "all-user"
4763
4766
  };
4764
- const _hoisted_10 = {
4767
+ const _hoisted_14 = {
4768
+ key: 0,
4769
+ class: "spin"
4770
+ };
4771
+ const _hoisted_15 = { class: "tree-row" };
4772
+ const _hoisted_16 = ["onClick"];
4773
+ const _hoisted_17 = ["onClick"];
4774
+ const _hoisted_18 = {
4765
4775
  key: 2,
4766
4776
  class: "all-organization"
4767
4777
  };
@@ -4781,12 +4791,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4781
4791
  }
4782
4792
  ];
4783
4793
  } },
4784
- type: { default: "all" }
4794
+ type: { default: "all" },
4795
+ selectType: { default: "multiple" }
4785
4796
  },
4786
4797
  emits: ["confirm", "cancel"],
4787
4798
  setup(__props, { expose, emit }) {
4788
4799
  const props2 = __props;
4800
+ const spinning = vue.ref(false);
4789
4801
  const activeKey = vue.ref("1");
4802
+ const tabType = vue.ref();
4790
4803
  vue.watch(
4791
4804
  () => props2.type,
4792
4805
  (value) => {
@@ -4794,8 +4807,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4794
4807
  activeKey.value = "1";
4795
4808
  } else if (value === "org") {
4796
4809
  activeKey.value = "3";
4810
+ } else {
4811
+ activeKey.value = "1";
4797
4812
  }
4798
- }
4813
+ if (value === "all" || value === "user" || value === "org") {
4814
+ tabType.value = value;
4815
+ } else {
4816
+ tabType.value = "other";
4817
+ }
4818
+ },
4819
+ { immediate: true }
4799
4820
  );
4800
4821
  const userName = vue.ref("");
4801
4822
  const format = (list) => {
@@ -4813,6 +4834,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4813
4834
  };
4814
4835
  const loadKv = async () => {
4815
4836
  try {
4837
+ spinning.value = true;
4816
4838
  const res = await props2.deptFun();
4817
4839
  organization.value = format(res);
4818
4840
  const res2 = await props2.userFun();
@@ -4821,8 +4843,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4821
4843
  res2.forEach((user) => {
4822
4844
  checkMap[user.id] = false;
4823
4845
  });
4846
+ spinning.value = false;
4824
4847
  } catch (err) {
4825
4848
  console.log("err", err);
4849
+ spinning.value = false;
4826
4850
  }
4827
4851
  };
4828
4852
  loadKv();
@@ -4854,15 +4878,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4854
4878
  }
4855
4879
  };
4856
4880
  const selectedKeys = vue.ref([]);
4857
- vue.ref([]);
4858
4881
  const userList = vue.ref([]);
4859
4882
  const organization = vue.ref([]);
4860
4883
  const checkMap = vue.reactive({});
4884
+ vue.ref([]);
4861
4885
  const loadUser = async (deptId = void 0, realName = void 0) => {
4862
4886
  try {
4887
+ spinning.value = true;
4863
4888
  const res = await props2.userFun(deptId, realName);
4864
4889
  userList.value = res;
4890
+ spinning.value = false;
4865
4891
  } catch (err) {
4892
+ spinning.value = false;
4866
4893
  console.log("err", err);
4867
4894
  }
4868
4895
  };
@@ -4877,42 +4904,92 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4877
4904
  loadUser(selectedKeys.value[0], userName.value);
4878
4905
  }
4879
4906
  };
4907
+ const checkClickEvent = (id) => {
4908
+ if (props2.selectType === "single") {
4909
+ vue.nextTick(() => {
4910
+ singleCheckedKeys.value.checked = [];
4911
+ });
4912
+ if (id === userSelected.value[0]) {
4913
+ userSelected.value = [];
4914
+ } else {
4915
+ userSelected.value = [id];
4916
+ }
4917
+ curKey.value = userSelected.value;
4918
+ } else {
4919
+ checkMap[id] = !checkMap[id];
4920
+ }
4921
+ };
4880
4922
  const allUserList = vue.ref([]);
4881
4923
  vue.ref([]);
4882
4924
  const organizationChecked = vue.ref([]);
4925
+ const userSelected = vue.ref([]);
4926
+ const singleCheckedKeys = vue.ref({ checked: [] });
4927
+ const curKey = vue.ref([]);
4928
+ const checkSingleEvent = (keys2, { checked, node }) => {
4929
+ vue.nextTick(() => {
4930
+ userSelected.value = [];
4931
+ });
4932
+ if (checked) {
4933
+ singleCheckedKeys.value.checked = [node.key];
4934
+ curKey.value = singleCheckedKeys.value.checked;
4935
+ }
4936
+ };
4937
+ const checkUserSingleEvent = (value) => {
4938
+ vue.nextTick(() => {
4939
+ singleCheckedKeys.value.checked = [];
4940
+ });
4941
+ curKey.value = userSelected.value;
4942
+ };
4883
4943
  const tagList = vue.ref([]);
4884
4944
  const closeEvent = (id, type) => {
4885
- if (type === 1) {
4886
- checkMap[id] = false;
4887
- } else if (type === 2) {
4888
- console.log("2\u6807\u8BB0");
4889
- } else if (type === 3) {
4890
- const index2 = organizationChecked.value.findIndex((item) => {
4891
- return item === id;
4945
+ if (props2.selectType === "single") {
4946
+ vue.nextTick(() => {
4947
+ userSelected.value = [];
4948
+ curKey.value = [];
4949
+ singleCheckedKeys.value.checked = [];
4892
4950
  });
4893
- organizationChecked.value.splice(index2, 1);
4951
+ } else {
4952
+ if (type === 1) {
4953
+ checkMap[id] = false;
4954
+ } else if (type === 3) {
4955
+ const index2 = organizationChecked.value.findIndex((item) => {
4956
+ return item === id;
4957
+ });
4958
+ organizationChecked.value.splice(index2, 1);
4959
+ }
4894
4960
  }
4895
4961
  };
4896
4962
  vue.watchEffect(() => {
4897
4963
  tagList.value = [];
4898
- Object.keys(checkMap).forEach((key2) => {
4899
- if (checkMap[key2]) {
4964
+ if (props2.selectType === "multiple") {
4965
+ Object.keys(checkMap).forEach((key2) => {
4966
+ if (checkMap[key2]) {
4967
+ tagList.value.push({
4968
+ id: key2,
4969
+ color: "#108ee9",
4970
+ type: 1,
4971
+ name: titleMap.value[key2]
4972
+ });
4973
+ }
4974
+ });
4975
+ organizationChecked.value.forEach((item) => {
4976
+ tagList.value.push({
4977
+ id: item,
4978
+ color: "#87d068",
4979
+ type: 3,
4980
+ name: titleMap.value[item]
4981
+ });
4982
+ });
4983
+ } else {
4984
+ curKey.value.forEach((item) => {
4900
4985
  tagList.value.push({
4901
- id: key2,
4902
- color: "#108ee9",
4986
+ id: item,
4987
+ color: "#87d068",
4903
4988
  type: 1,
4904
- name: titleMap.value[key2]
4989
+ name: titleMap.value[item]
4905
4990
  });
4906
- }
4907
- });
4908
- organizationChecked.value.forEach((item) => {
4909
- tagList.value.push({
4910
- id: item,
4911
- color: "#87d068",
4912
- type: 3,
4913
- name: titleMap.value[item]
4914
4991
  });
4915
- });
4992
+ }
4916
4993
  });
4917
4994
  const [registerModal, { openModal }] = useModal();
4918
4995
  vue.ref();
@@ -4933,10 +5010,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4933
5010
  Object.keys(checkMap).forEach((key2) => {
4934
5011
  checkMap[key2] = false;
4935
5012
  });
5013
+ userSelected.value = [];
5014
+ singleCheckedKeys.value.checked = [];
5015
+ curKey.value = [];
4936
5016
  });
4937
5017
  };
4938
5018
  expose({ open });
4939
5019
  return (_ctx, _cache) => {
5020
+ const _component_a_empty = vue.resolveComponent("a-empty");
4940
5021
  return vue.openBlock(), vue.createBlock(vue.unref(BasicModal), {
4941
5022
  onRegister: vue.unref(registerModal),
4942
5023
  width: 600,
@@ -4972,15 +5053,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4972
5053
  onChange: activeChangeEvent
4973
5054
  }, {
4974
5055
  default: vue.withCtx(() => [
4975
- props2.type === "user" || props2.type === "all" ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.TabPane), {
5056
+ tabType.value === "user" || tabType.value === "all" || tabType.value === "other" ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.TabPane), {
4976
5057
  key: "1",
4977
5058
  tab: "\u7EC4\u7EC7\u67B6\u6784"
4978
5059
  })) : vue.createCommentVNode("", true),
4979
- props2.type === "user" || props2.type === "all" ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.TabPane), {
5060
+ tabType.value === "user" || tabType.value === "all" || tabType.value === "other" ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.TabPane), {
4980
5061
  key: "2",
4981
5062
  tab: "\u6210\u5458"
4982
5063
  })) : vue.createCommentVNode("", true),
4983
- props2.type === "org" || props2.type === "all" ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.TabPane), {
5064
+ tabType.value === "org" || tabType.value === "all" || tabType.value === "other" ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.TabPane), {
4984
5065
  key: "3",
4985
5066
  tab: "\u7EC4\u7EC7"
4986
5067
  })) : vue.createCommentVNode("", true)
@@ -5008,41 +5089,113 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5008
5089
  }, null, 8, ["tree-data", "selectedKeys"])
5009
5090
  ]),
5010
5091
  vue.createElementVNode("div", _hoisted_8, [
5011
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(userList.value, (item, index2) => {
5092
+ spinning.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
5093
+ vue.createVNode(vue.unref(antDesignVue.Spin))
5094
+ ])) : vue.createCommentVNode("", true),
5095
+ props2.selectType === "single" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
5096
+ userList.value.length === 0 ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Empty), { key: 0 })) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(userList.value, (item, index2) => {
5097
+ return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.CheckboxGroup), {
5098
+ key: index2,
5099
+ class: "w-100",
5100
+ value: userSelected.value,
5101
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => userSelected.value = $event),
5102
+ onChange: checkUserSingleEvent
5103
+ }, {
5104
+ default: vue.withCtx(() => [
5105
+ vue.createElementVNode("div", _hoisted_10, [
5106
+ vue.createElementVNode("div", {
5107
+ onClick: ($event) => checkClickEvent(item.id)
5108
+ }, vue.toDisplayString(item.name), 9, _hoisted_11),
5109
+ vue.createVNode(vue.unref(antDesignVue.Checkbox), {
5110
+ value: item.id,
5111
+ "onUpdate:value": ($event) => item.id = $event
5112
+ }, null, 8, ["value", "onUpdate:value"])
5113
+ ])
5114
+ ]),
5115
+ _: 2
5116
+ }, 1032, ["value"]);
5117
+ }), 128))
5118
+ ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
5119
+ userList.value.length === 0 ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Empty), { key: 0 })) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(userList.value, (item, index2) => {
5120
+ return vue.openBlock(), vue.createElementBlock("div", {
5121
+ key: index2,
5122
+ class: "tree-row"
5123
+ }, [
5124
+ vue.createElementVNode("div", {
5125
+ onClick: ($event) => checkClickEvent(item.id)
5126
+ }, vue.toDisplayString(item.name), 9, _hoisted_12),
5127
+ vue.createVNode(vue.unref(antDesignVue.Checkbox), {
5128
+ checked: checkMap[item.id],
5129
+ "onUpdate:checked": ($event) => checkMap[item.id] = $event
5130
+ }, null, 8, ["checked", "onUpdate:checked"])
5131
+ ]);
5132
+ }), 128))
5133
+ ], 64))
5134
+ ])
5135
+ ])) : activeKey.value === "2" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
5136
+ spinning.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
5137
+ vue.createVNode(vue.unref(antDesignVue.Spin))
5138
+ ])) : vue.createCommentVNode("", true),
5139
+ props2.selectType === "single" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
5140
+ userList.value.length === 0 ? (vue.openBlock(), vue.createBlock(_component_a_empty, { key: 0 })) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(userList.value, (item, index2) => {
5141
+ return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.CheckboxGroup), {
5142
+ key: index2,
5143
+ value: userSelected.value,
5144
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => userSelected.value = $event),
5145
+ onChange: checkUserSingleEvent
5146
+ }, {
5147
+ default: vue.withCtx(() => [
5148
+ vue.createElementVNode("div", _hoisted_15, [
5149
+ vue.createElementVNode("div", {
5150
+ style: { "cursor": "pointer" },
5151
+ onClick: ($event) => checkClickEvent(item.id)
5152
+ }, vue.toDisplayString(item.name), 9, _hoisted_16),
5153
+ vue.createVNode(vue.unref(antDesignVue.Checkbox), {
5154
+ value: item.id,
5155
+ "onUpdate:value": ($event) => item.id = $event
5156
+ }, null, 8, ["value", "onUpdate:value"])
5157
+ ])
5158
+ ]),
5159
+ _: 2
5160
+ }, 1032, ["value"]);
5161
+ }), 128))
5162
+ ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
5163
+ userList.value.length === 0 ? (vue.openBlock(), vue.createBlock(_component_a_empty, { key: 0 })) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(userList.value, (item, index2) => {
5012
5164
  return vue.openBlock(), vue.createElementBlock("div", {
5013
5165
  key: index2,
5014
5166
  class: "tree-row"
5015
5167
  }, [
5016
- vue.createElementVNode("div", null, vue.toDisplayString(item.name), 1),
5168
+ vue.createElementVNode("div", {
5169
+ style: { "cursor": "pointer" },
5170
+ onClick: ($event) => checkClickEvent(item.id)
5171
+ }, vue.toDisplayString(item.name), 9, _hoisted_17),
5017
5172
  vue.createVNode(vue.unref(antDesignVue.Checkbox), {
5018
5173
  checked: checkMap[item.id],
5019
5174
  "onUpdate:checked": ($event) => checkMap[item.id] = $event
5020
5175
  }, null, 8, ["checked", "onUpdate:checked"])
5021
5176
  ]);
5022
5177
  }), 128))
5023
- ])
5024
- ])) : activeKey.value === "2" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
5025
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(userList.value, (item, index2) => {
5026
- return vue.openBlock(), vue.createElementBlock("div", {
5027
- key: index2,
5028
- class: "tree-row"
5029
- }, [
5030
- vue.createElementVNode("div", null, vue.toDisplayString(item.name), 1),
5031
- vue.createVNode(vue.unref(antDesignVue.Checkbox), {
5032
- checked: checkMap[item.id],
5033
- "onUpdate:checked": ($event) => checkMap[item.id] = $event
5034
- }, null, 8, ["checked", "onUpdate:checked"])
5035
- ]);
5036
- }), 128))
5037
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, [
5038
- vue.createVNode(vue.unref(antDesignVue.Tree), {
5178
+ ], 64))
5179
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, [
5180
+ props2.selectType === "single" ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Tree), {
5181
+ key: 0,
5182
+ selectable: false,
5183
+ autoExpandParent: true,
5184
+ checkable: "",
5185
+ "tree-data": organization.value,
5186
+ checkedKeys: singleCheckedKeys.value,
5187
+ "onUpdate:checkedKeys": _cache[5] || (_cache[5] = ($event) => singleCheckedKeys.value = $event),
5188
+ checkStrictly: true,
5189
+ onCheck: checkSingleEvent
5190
+ }, null, 8, ["tree-data", "checkedKeys"])) : (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Tree), {
5191
+ key: 1,
5039
5192
  selectable: false,
5040
5193
  autoExpandParent: true,
5041
5194
  checkable: "",
5042
5195
  "tree-data": organization.value,
5043
5196
  checkedKeys: organizationChecked.value,
5044
- "onUpdate:checkedKeys": _cache[3] || (_cache[3] = ($event) => organizationChecked.value = $event)
5045
- }, null, 8, ["tree-data", "checkedKeys"])
5197
+ "onUpdate:checkedKeys": _cache[6] || (_cache[6] = ($event) => organizationChecked.value = $event)
5198
+ }, null, 8, ["tree-data", "checkedKeys"]))
5046
5199
  ]))
5047
5200
  ])
5048
5201
  ])
@@ -5053,11 +5206,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5053
5206
  };
5054
5207
  }
5055
5208
  });
5056
- const IndexView_vue_vue_type_style_index_0_scoped_729122e8_lang = "";
5057
- const UserSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-729122e8"]]);
5209
+ const IndexView_vue_vue_type_style_index_0_scoped_0c28696f_lang = "";
5210
+ const UserSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0c28696f"]]);
5058
5211
  const antd_min = "";
5059
5212
  const index$1 = "";
5060
- console.log("BasicModal", BasicModal);
5061
5213
  const index = {
5062
5214
  install(app) {
5063
5215
  app.component("s-dialog", ShyDialog);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "1.0.46",
3
+ "version": "1.0.49",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",