hy-dispatch-ui-v3 0.2.65 → 0.2.67

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.
Files changed (144) hide show
  1. package/dist/tailwind.css +51 -13
  2. package/es/api/organization.mjs +43 -0
  3. package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.mjs +245 -0
  4. package/es/bussiness/hyAcquisitionStationTree/index.mjs +7 -0
  5. package/es/bussiness/hyAcquisitionStationTree/js/index.mjs +124 -0
  6. package/es/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
  7. package/es/bussiness/hyDeviceTree/deviceTree.vue.mjs +249 -0
  8. package/es/bussiness/hyDeviceTree/index.mjs +7 -0
  9. package/es/bussiness/hyDeviceTree/js/index.mjs +126 -0
  10. package/es/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
  11. package/es/bussiness/hyOrgGroupTree/index.mjs +7 -0
  12. package/es/bussiness/hyOrgGroupTree/js/index.mjs +124 -0
  13. package/es/bussiness/hyOrgGroupTree/orgGroupTree.vue.mjs +245 -0
  14. package/es/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
  15. package/es/bussiness/hyPlanGroupDeviceTree/index.mjs +7 -0
  16. package/es/bussiness/hyPlanGroupDeviceTree/js/index.mjs +124 -0
  17. package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.mjs +245 -0
  18. package/es/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
  19. package/es/bussiness/hyUserTree/index.mjs +7 -0
  20. package/es/bussiness/hyUserTree/js/index.mjs +126 -0
  21. package/es/bussiness/hyUserTree/style/userTree.scss +0 -0
  22. package/es/bussiness/hyUserTree/userTree.vue.mjs +239 -0
  23. package/es/bussiness/index.mjs +5 -0
  24. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +183 -149
  25. package/es/components/hyButton/button.vue.mjs +19 -5
  26. package/es/components/hyButton/style/button.scss +72 -0
  27. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -2
  28. package/es/components/hyForm/cpns/formItem.vue.mjs +254 -32
  29. package/es/components/hyForm/cpns/locationSelect.vue.mjs +8 -1
  30. package/es/components/hyForm/form.vue.mjs +88 -19
  31. package/es/components/hyForm/js/index.mjs +2 -1
  32. package/es/components/hyForm/js/useAppForm.mjs +3 -3
  33. package/es/components/hyIcon/style/icon.scss +1 -0
  34. package/es/components/hyMap/js/index.mjs +6 -6
  35. package/es/components/hyMap/map.vue.mjs +14 -4
  36. package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
  37. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
  38. package/es/components/hyOrgCascader/orgCascader.vue.mjs +75 -15
  39. package/es/components/hyRadioGroup/radioGroup.vue.mjs +5 -4
  40. package/es/components/hySearch/cpns/searchItem.vue.mjs +434 -206
  41. package/es/components/hySearch/js/index.mjs +2 -1
  42. package/es/components/hySearch/search.vue.mjs +71 -10
  43. package/es/components/hySearch/style/search.scss +7 -0
  44. package/es/components/hyTable/cpns/columnSelect.vue.mjs +21 -22
  45. package/es/components/hyTable/cpns/virtualTable.vue.mjs +35 -21
  46. package/es/components/hyTable/js/index.mjs +16 -17
  47. package/es/components/hyTable/js/search.mjs +28 -2
  48. package/es/components/hyTable/style/table.scss +13 -0
  49. package/es/components/hyTable/table.vue.mjs +55 -22
  50. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +17 -12
  51. package/es/components/hyTableForm/batchTableForm.vue.mjs +36 -5
  52. package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
  53. package/es/components/hyTableForm/tableForm.vue.mjs +84 -32
  54. package/es/components/hyTour/index.mjs +7 -0
  55. package/es/components/hyTour/style/tour.scss +0 -0
  56. package/es/components/hyTour/tour.vue.mjs +23 -0
  57. package/es/components/hyTree/config/tree-config.mjs +5 -2
  58. package/es/components/hyTree/js/index.mjs +128 -56
  59. package/es/components/hyTree/tree.vue.mjs +22 -37
  60. package/es/components/index.mjs +1 -0
  61. package/es/index.mjs +6 -0
  62. package/es/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
  63. package/es/style/element/hy-element.scss +24 -3
  64. package/es/style/index.scss +0 -1
  65. package/es/style/tailwind.scss +0 -1
  66. package/es/style/theme.scss +1 -0
  67. package/es/utils/is.mjs +3 -1
  68. package/es/utils/map/hook/bigMap.mjs +11 -1
  69. package/es/utils/map/hook/gaode.mjs +60 -17
  70. package/es/utils/map/hook/leafletjs.mjs +25 -4
  71. package/es/utils/map/index.mjs +1 -1
  72. package/es/version.mjs +1 -1
  73. package/lib/api/organization.js +47 -0
  74. package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.js +249 -0
  75. package/lib/bussiness/hyAcquisitionStationTree/index.js +12 -0
  76. package/lib/bussiness/hyAcquisitionStationTree/js/index.js +126 -0
  77. package/lib/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
  78. package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +253 -0
  79. package/lib/bussiness/hyDeviceTree/index.js +12 -0
  80. package/lib/bussiness/hyDeviceTree/js/index.js +128 -0
  81. package/lib/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
  82. package/lib/bussiness/hyOrgGroupTree/index.js +12 -0
  83. package/lib/bussiness/hyOrgGroupTree/js/index.js +126 -0
  84. package/lib/bussiness/hyOrgGroupTree/orgGroupTree.vue.js +249 -0
  85. package/lib/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
  86. package/lib/bussiness/hyPlanGroupDeviceTree/index.js +12 -0
  87. package/lib/bussiness/hyPlanGroupDeviceTree/js/index.js +126 -0
  88. package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.js +249 -0
  89. package/lib/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
  90. package/lib/bussiness/hyUserTree/index.js +12 -0
  91. package/lib/bussiness/hyUserTree/js/index.js +128 -0
  92. package/lib/bussiness/hyUserTree/style/userTree.scss +0 -0
  93. package/lib/bussiness/hyUserTree/userTree.vue.js +243 -0
  94. package/lib/bussiness/index.js +14 -4
  95. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +182 -148
  96. package/lib/components/hyButton/button.vue.js +18 -4
  97. package/lib/components/hyButton/style/button.scss +72 -0
  98. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +0 -1
  99. package/lib/components/hyForm/cpns/formItem.vue.js +250 -28
  100. package/lib/components/hyForm/cpns/locationSelect.vue.js +8 -1
  101. package/lib/components/hyForm/form.vue.js +86 -17
  102. package/lib/components/hyForm/js/index.js +2 -0
  103. package/lib/components/hyForm/js/useAppForm.js +3 -3
  104. package/lib/components/hyIcon/style/icon.scss +1 -0
  105. package/lib/components/hyMap/js/index.js +5 -5
  106. package/lib/components/hyMap/map.vue.js +13 -3
  107. package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
  108. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
  109. package/lib/components/hyOrgCascader/orgCascader.vue.js +73 -13
  110. package/lib/components/hyRadioGroup/radioGroup.vue.js +5 -4
  111. package/lib/components/hySearch/cpns/searchItem.vue.js +431 -203
  112. package/lib/components/hySearch/js/index.js +2 -0
  113. package/lib/components/hySearch/search.vue.js +69 -8
  114. package/lib/components/hySearch/style/search.scss +7 -0
  115. package/lib/components/hyTable/cpns/columnSelect.vue.js +20 -21
  116. package/lib/components/hyTable/cpns/virtualTable.vue.js +51 -37
  117. package/lib/components/hyTable/js/index.js +16 -16
  118. package/lib/components/hyTable/js/search.js +28 -2
  119. package/lib/components/hyTable/style/table.scss +13 -0
  120. package/lib/components/hyTable/table.vue.js +53 -20
  121. package/lib/components/hyTableActionButton/tableActionButton.vue.js +16 -11
  122. package/lib/components/hyTableForm/batchTableForm.vue.js +36 -5
  123. package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
  124. package/lib/components/hyTableForm/tableForm.vue.js +85 -33
  125. package/lib/components/hyTour/index.js +12 -0
  126. package/lib/components/hyTour/style/tour.scss +0 -0
  127. package/lib/components/hyTour/tour.vue.js +27 -0
  128. package/lib/components/hyTree/config/tree-config.js +5 -2
  129. package/lib/components/hyTree/js/index.js +128 -56
  130. package/lib/components/hyTree/tree.vue.js +22 -37
  131. package/lib/components/index.js +8 -6
  132. package/lib/index.js +67 -55
  133. package/lib/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
  134. package/lib/style/element/hy-element.scss +24 -3
  135. package/lib/style/index.scss +0 -1
  136. package/lib/style/tailwind.scss +0 -1
  137. package/lib/style/theme.scss +1 -0
  138. package/lib/utils/is.js +5 -3
  139. package/lib/utils/map/hook/bigMap.js +11 -1
  140. package/lib/utils/map/hook/gaode.js +60 -17
  141. package/lib/utils/map/hook/leafletjs.js +25 -4
  142. package/lib/utils/map/index.js +1 -1
  143. package/lib/version.js +1 -1
  144. package/package.json +2 -2
@@ -25,11 +25,11 @@ function appFormItemHandler(column = {}) {
25
25
  return {
26
26
  ...column,
27
27
  attrs: {
28
- maxlength: attrs.type === "textarea" ? 255 : attrs.type === "text" ? 100 : void 0,
28
+ maxlength: attrs.type === "text" ? 256 : void 0,
29
29
  ...attrs
30
30
  }
31
31
  };
32
- } else if (/^(radio|radio-group|checkbox|select)$/.test(column.type)) {
32
+ } else if (/^(radio|radio-group|checkbox|select|select-v2)$/.test(column.type)) {
33
33
  return {
34
34
  ...column,
35
35
  attrs: {
@@ -43,7 +43,7 @@ function appFormItemHandler(column = {}) {
43
43
  }
44
44
  }
45
45
  };
46
- } else if (/^(extra)$/.test(column.type) || /^(location-select)$/.test(column.type)) {
46
+ } else if (/^(extra|location-select)$/.test(column.type)) {
47
47
  return {
48
48
  ...column,
49
49
  children: (column.children || []).map((item) => appFormItemHandler(item))
@@ -6,6 +6,7 @@
6
6
  overflow: hidden;
7
7
  fill: currentColor;
8
8
  outline: none;
9
+ flex-shrink: 0;
9
10
  }
10
11
  .hy-button {
11
12
  .hy-icon {
@@ -9,8 +9,8 @@ const useAppMapWrapper = (hy) => {
9
9
  mapRef,
10
10
  emits
11
11
  } = hy;
12
- const hyMap = null;
13
- const map = null;
12
+ let hyMap = vue.shallowRef(null);
13
+ let map = vue.shallowRef(null);
14
14
  function newMap(mapType) {
15
15
  const mapFilters = [
16
16
  {
@@ -94,7 +94,7 @@ const useAppMapWrapper = (hy) => {
94
94
  filter: "saturate(180%) brightness(105%) contrast(115%)"
95
95
  }
96
96
  ];
97
- hy.hyMap = new index.InitMap({
97
+ hy.hyMap.value = new index.InitMap({
98
98
  ...mapConfig,
99
99
  mapType,
100
100
  BM: window.BM
@@ -117,7 +117,7 @@ const useAppMapWrapper = (hy) => {
117
117
  }, 800);
118
118
  }
119
119
  function initMap() {
120
- hy.map = hy.hyMap.InitMap(mapRef.value, {
120
+ hy.map.value = hy.hyMap.value.InitMap(mapRef.value, {
121
121
  minZoom: mapConfig.minZoom || 8,
122
122
  maxZoom: mapConfig.maxZoom || 18,
123
123
  center: mapConfig.center || {
@@ -127,7 +127,7 @@ const useAppMapWrapper = (hy) => {
127
127
  zoom: mapConfig.zoom || 14,
128
128
  completeCallbacks: () => {
129
129
  vue.nextTick(() => {
130
- emits("complete", hy.hyMap, hy.map);
130
+ emits("complete", hy.hyMap.value, hy.map.value);
131
131
  });
132
132
  }
133
133
  });
@@ -4,8 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  require('../../hooks/index.js');
7
+ require('../../index.js');
7
8
  var index = require('./js/index.js');
8
9
  var useMixins = require('../../hooks/useMixins.js');
10
+ var index$1 = require('../hyNoPermissionsMap/index.js');
9
11
  var useMapConfig = require('../../hooks/useMapConfig.js');
10
12
 
11
13
  import "../../static/map/bigemap.css";
@@ -48,13 +50,21 @@ const _sfc_main = {
48
50
  [index.useAppMapWrapper]
49
51
  );
50
52
  vue.onMounted(() => {
51
- newMap(props.mapType);
53
+ if (props.mapType !== "nomap") {
54
+ newMap(props.mapType);
55
+ }
56
+ });
57
+ vue.onBeforeUnmount(() => {
58
+ map.value?.removeMap();
59
+ map.value = null;
60
+ hyMap.value = null;
52
61
  });
53
62
  return (_ctx, _cache) => {
54
63
  return vue.openBlock(), vue.createElementBlock("div", { class: "w-full h-full box-border border-border border relative" }, [
55
- vue.createElementVNode(
64
+ props.mapType !== "nomap" ? (vue.openBlock(), vue.createElementBlock(
56
65
  "div",
57
66
  {
67
+ key: 0,
58
68
  ref_key: "mapRef",
59
69
  ref: mapRef,
60
70
  class: "w-full h-full rounded overflow-hidden"
@@ -62,7 +72,7 @@ const _sfc_main = {
62
72
  null,
63
73
  512
64
74
  /* NEED_PATCH */
65
- )
75
+ )) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyNoPermissionsMap), { key: 1 }))
66
76
  ]);
67
77
  };
68
78
  }
@@ -30,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
30
30
  return vue.openBlock(), vue.createElementBlock("div", { class: "w-full h-full bg-background-2 text-auxiliary text-base flex flex-col items-center justify-center" }, [
31
31
  vue.createVNode(vue.unref(index.HyIcon), {
32
32
  "svg-name": __props.svgName,
33
- "class-name": "!w-[46px] !h-[46px]"
33
+ "class-name": "!w-[56px] !h-[56px]"
34
34
  }, null, 8, ["svg-name"]),
35
35
  vue.createElementVNode("div", { class: "text-center mt-[12px]" }, [
36
36
  vue.createElementVNode(
@@ -30,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
30
30
  return vue.openBlock(), vue.createElementBlock("div", { class: "w-full h-full bg-background-2 text-auxiliary text-base flex flex-col items-center justify-center" }, [
31
31
  vue.createVNode(vue.unref(index.HyIcon), {
32
32
  "svg-name": __props.svgName,
33
- "class-name": "!w-[46px] !h-[46px]"
33
+ "class-name": "!w-[56px] !h-[56px]"
34
34
  }, null, 8, ["svg-name"]),
35
35
  vue.createElementVNode("div", { class: "text-center mt-[12px]" }, [
36
36
  vue.createElementVNode(
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
+ var iconsVue = require('@element-plus/icons-vue');
7
8
  require('../../hooks/index.js');
8
9
  var index = require('./js/index.js');
9
10
  var useSubscribe = require('../../hooks/useSubscribe.js');
@@ -78,13 +79,16 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
78
79
  default: () => {
79
80
  return true;
80
81
  }
82
+ },
83
+ onVisibleChange: {
84
+ type: Function
81
85
  }
82
86
  }, {
83
87
  "modelValue": { type: [Array, String, Number] },
84
88
  "modelModifiers": {}
85
89
  }),
86
90
  emits: /* @__PURE__ */ vue.mergeModels(["change"], ["update:modelValue"]),
87
- setup(__props, { emit: __emit }) {
91
+ setup(__props, { expose: __expose, emit: __emit }) {
88
92
  const props = __props;
89
93
  const emits = __emit;
90
94
  const { subOrgCascader, unsubOrgCascader } = useSubscribe.useSubscribe();
@@ -99,11 +103,20 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
99
103
  const target = cascaderValueMap.value.get(modelValue.value);
100
104
  return target?.companyName;
101
105
  });
102
- async function getCascaderData() {
103
- loading.value = true;
104
- const data = await index.getOrgTreeSimple();
105
- handlerData(data || []);
106
- loading.value = false;
106
+ function getCascaderData() {
107
+ return new Promise(async (resolve, reject) => {
108
+ loading.value = true;
109
+ try {
110
+ cascaderOptions.value = [];
111
+ const data = await index.getOrgTreeSimple();
112
+ handlerData(data || []);
113
+ resolve();
114
+ } catch (err) {
115
+ console.error(err);
116
+ reject();
117
+ }
118
+ loading.value = false;
119
+ });
107
120
  }
108
121
  function handlerData(data) {
109
122
  const { cascaderData, cascaderDataMap } = index.orgTreeDatahandler(data);
@@ -133,6 +146,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
133
146
  }
134
147
  function onVisibleChangeHandler(type) {
135
148
  focusType.value = type;
149
+ onVisibleChange(type);
136
150
  }
137
151
  if (props.defaultGetData) {
138
152
  getCascaderData();
@@ -157,6 +171,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
157
171
  vue.onUnmounted(() => {
158
172
  unsubOrgCascader(getCascaderData);
159
173
  });
174
+ __expose({
175
+ getData: getCascaderData
176
+ });
160
177
  return (_ctx, _cache) => {
161
178
  return vue.openBlock(), vue.createElementBlock("div", { class: "relative" }, [
162
179
  __props.contentType ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -190,7 +207,30 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
190
207
  "virtual-scroll": "",
191
208
  onChange: onChangeHanlder,
192
209
  onVisibleChange: ($event) => onVisibleChangeHandler($event)
193
- }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "options", "disabled", "clearable", "placeholder", "onVisibleChange"])
210
+ }, vue.createSlots({
211
+ _: 2
212
+ /* DYNAMIC */
213
+ }, [
214
+ loading.value ? {
215
+ name: "empty",
216
+ fn: vue.withCtx(() => [
217
+ vue.createElementVNode("div", { class: "w-full flex items-center justify-center py-2 gap-1.5 text-main text-xs whitespace-nowrap" }, [
218
+ vue.createVNode(vue.unref(elementPlus.ElIcon), {
219
+ size: "16",
220
+ class: "is-loading text-theme"
221
+ }, {
222
+ default: vue.withCtx(() => [
223
+ vue.createVNode(vue.unref(iconsVue.Loading))
224
+ ]),
225
+ _: 1
226
+ /* STABLE */
227
+ }),
228
+ vue.createElementVNode("span", null, "\u6570\u636E\u6B63\u5728\u52A0\u8F7D\u4E2D")
229
+ ])
230
+ ]),
231
+ key: "0"
232
+ } : void 0
233
+ ]), 1032, ["modelValue", "onUpdate:modelValue", "size", "options", "disabled", "clearable", "placeholder", "onVisibleChange"])
194
234
  ],
195
235
  4
196
236
  /* STYLE */
@@ -228,12 +268,32 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
228
268
  filterable: "",
229
269
  "show-all-levels": false,
230
270
  "virtual-scroll": "",
231
- onChange: onChangeHanlder
232
- }, null, 8, ["modelValue", "onUpdate:modelValue", "class", "size", "options", "clearable", "disabled", "placeholder"])),
233
- loading.value ? (vue.openBlock(), vue.createElementBlock("div", {
234
- key: 2,
235
- class: "absolute left-0 right-0 top-0 bottom-0 cursor-wait"
236
- })) : vue.createCommentVNode("v-if", true)
271
+ onChange: onChangeHanlder,
272
+ onVisibleChange: __props.onVisibleChange
273
+ }, vue.createSlots({
274
+ _: 2
275
+ /* DYNAMIC */
276
+ }, [
277
+ loading.value ? {
278
+ name: "empty",
279
+ fn: vue.withCtx(() => [
280
+ vue.createElementVNode("div", { class: "w-full flex items-center justify-center py-2 gap-1.5 text-main text-xs whitespace-nowrap" }, [
281
+ vue.createVNode(vue.unref(elementPlus.ElIcon), {
282
+ size: "16",
283
+ class: "is-loading text-theme"
284
+ }, {
285
+ default: vue.withCtx(() => [
286
+ vue.createVNode(vue.unref(iconsVue.Loading))
287
+ ]),
288
+ _: 1
289
+ /* STABLE */
290
+ }),
291
+ vue.createElementVNode("span", null, "\u6570\u636E\u6B63\u5728\u52A0\u8F7D\u4E2D")
292
+ ])
293
+ ]),
294
+ key: "0"
295
+ } : void 0
296
+ ]), 1032, ["modelValue", "onUpdate:modelValue", "class", "size", "options", "clearable", "disabled", "placeholder", "onVisibleChange"]))
237
297
  ]);
238
298
  };
239
299
  }
@@ -45,8 +45,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
45
45
  };
46
46
  });
47
47
  function switchSelect(target) {
48
- modelValue.value = target[radioProps.value.value];
49
- emits("change", modelValue.value);
48
+ const value = target[radioProps.value.value];
49
+ if (modelValue.value === value) return;
50
+ modelValue.value = value;
51
+ emits("change", value);
50
52
  }
51
53
  async function sliderHandler() {
52
54
  selectIndex.value = props.options.findIndex((item) => {
@@ -57,7 +59,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
57
59
  if (slider) {
58
60
  const proportion = 100 / props.options.length;
59
61
  const left = selectIndex.value > 0 ? selectIndex.value * proportion : 0;
60
- console.log("proportion", proportion, left, selectIndex.value);
61
62
  slider.style.left = `${left}%`;
62
63
  }
63
64
  }
@@ -85,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
85
86
  vue.renderList(__props.options, (item, index) => {
86
87
  return vue.openBlock(), vue.createElementBlock("li", {
87
88
  key: index,
88
- class: "w-0 flex-1 flex items-center justify-center text-main clickBox",
89
+ class: "w-0 flex-1 flex items-center justify-center text-main user-select-none clickBox",
89
90
  onClick: ($event) => switchSelect(item, index, $event)
90
91
  }, [
91
92
  vue.renderSlot(_ctx.$slots, "default", {