hy-dispatch-ui-v3 0.2.33 → 0.2.35

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 (77) hide show
  1. package/dist/tailwind.css +20 -8
  2. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +1 -1
  3. package/es/components/hyAudioPlayer/js/index.mjs +1 -1
  4. package/es/components/hyButton/button.vue.mjs +49 -34
  5. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -1
  6. package/es/components/hyConfirmDialog/confirmMethod.mjs +1 -1
  7. package/es/components/hyConfirmDialog/index.mjs +1 -1
  8. package/es/components/hyCutter/cutter.vue.mjs +1 -1
  9. package/es/components/hyDatePicker/datePicker.vue.mjs +1 -1
  10. package/es/components/hyDialog/dialog.vue.mjs +176 -137
  11. package/es/components/hyDialog/style/dialog.scss +13 -0
  12. package/es/components/hyForm/cpns/formItem.vue.mjs +3 -4
  13. package/es/components/hyForm/js/useAppForm.mjs +1 -1
  14. package/es/components/hyForm/style/form.scss +0 -4
  15. package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
  16. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
  17. package/es/components/hyOrgCascader/orgCascader.vue.mjs +1 -1
  18. package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -9
  19. package/es/components/hySearch/js/index.mjs +4 -4
  20. package/es/components/hySearch/style/search.scss +1 -0
  21. package/es/components/hyTable/cpns/columnSelect.vue.mjs +67 -86
  22. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +5 -8
  23. package/es/components/hyTable/cpns/headerItem.vue.mjs +1 -1
  24. package/es/components/hyTable/cpns/virtualTable.vue.mjs +8 -12
  25. package/es/components/hyTable/js/index.mjs +70 -54
  26. package/es/components/hyTable/js/useAppTable.mjs +20 -6
  27. package/es/components/hyTable/style/table.scss +22 -4
  28. package/es/components/hyTable/table.vue.mjs +22 -18
  29. package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
  30. package/es/components/hyTableForm/tableForm.vue.mjs +3 -3
  31. package/es/components/hyTooltip/tooltip.vue.mjs +4 -4
  32. package/es/components/hyTree/style/index.css +1 -0
  33. package/es/components/hyTree/tree.vue.mjs +2 -0
  34. package/es/components/hyUserAvatar/userAvatar.vue.mjs +2 -2
  35. package/es/components/hyVideoPlayer/js/index.mjs +1 -1
  36. package/es/locale/en.mjs +1 -1
  37. package/es/locale/zh_CN.mjs +1 -1
  38. package/es/style/element/hy-element.scss +3 -2
  39. package/es/version.mjs +1 -1
  40. package/lib/components/hyAudioPlayer/js/index.js +1 -1
  41. package/lib/components/hyButton/button.vue.js +49 -34
  42. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -1
  43. package/lib/components/hyConfirmDialog/confirmMethod.js +1 -1
  44. package/lib/components/hyConfirmDialog/index.js +1 -1
  45. package/lib/components/hyCutter/cutter.vue.js +1 -1
  46. package/lib/components/hyDatePicker/datePicker.vue.js +1 -1
  47. package/lib/components/hyDialog/dialog.vue.js +175 -136
  48. package/lib/components/hyDialog/style/dialog.scss +13 -0
  49. package/lib/components/hyForm/cpns/formItem.vue.js +3 -4
  50. package/lib/components/hyForm/js/useAppForm.js +1 -1
  51. package/lib/components/hyForm/style/form.scss +0 -4
  52. package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
  53. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
  54. package/lib/components/hyOrgCascader/orgCascader.vue.js +1 -1
  55. package/lib/components/hySearch/cpns/searchItem.vue.js +3 -9
  56. package/lib/components/hySearch/js/index.js +4 -4
  57. package/lib/components/hySearch/style/search.scss +1 -0
  58. package/lib/components/hyTable/cpns/columnSelect.vue.js +70 -89
  59. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +4 -7
  60. package/lib/components/hyTable/cpns/headerItem.vue.js +1 -1
  61. package/lib/components/hyTable/cpns/virtualTable.vue.js +8 -12
  62. package/lib/components/hyTable/js/index.js +69 -53
  63. package/lib/components/hyTable/js/useAppTable.js +20 -6
  64. package/lib/components/hyTable/style/table.scss +22 -4
  65. package/lib/components/hyTable/table.vue.js +21 -17
  66. package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
  67. package/lib/components/hyTableForm/tableForm.vue.js +3 -3
  68. package/lib/components/hyTooltip/tooltip.vue.js +4 -4
  69. package/lib/components/hyTree/style/index.css +1 -0
  70. package/lib/components/hyTree/tree.vue.js +2 -0
  71. package/lib/components/hyUserAvatar/userAvatar.vue.js +2 -2
  72. package/lib/components/hyVideoPlayer/js/index.js +1 -1
  73. package/lib/locale/en.js +1 -1
  74. package/lib/locale/zh_CN.js +1 -1
  75. package/lib/style/element/hy-element.scss +3 -2
  76. package/lib/version.js +1 -1
  77. package/package.json +1 -1
@@ -23,7 +23,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
23
23
  default: "default"
24
24
  // default-默认类型 right-右侧弹窗 fullscreen-全屏
25
25
  },
26
+ dialogClass: {
27
+ type: String,
28
+ default: "default"
29
+ },
30
+ // zIndex: {
31
+ // type: Number,
32
+ // default: null, // default-默认类型 right-右侧弹窗 fullscreen-全屏
33
+ // },
26
34
  top: String,
35
+ // 支持缩小化
36
+ showShrink: { type: Boolean, default: false },
27
37
  showOperate: { type: Boolean, default: true },
28
38
  showClose: { type: Boolean, default: true },
29
39
  showCancel: {
@@ -45,6 +55,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
45
55
  type: String,
46
56
  default: "primary"
47
57
  },
58
+ width: {
59
+ type: String,
60
+ default: () => {
61
+ return "1000px";
62
+ }
63
+ },
48
64
  submitText: {
49
65
  type: String
50
66
  },
@@ -55,37 +71,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
55
71
  "modelValue": { type: Boolean, default: false },
56
72
  "modelModifiers": {}
57
73
  }),
58
- emits: /* @__PURE__ */ vue.mergeModels(["hide"], ["update:modelValue"]),
74
+ emits: /* @__PURE__ */ vue.mergeModels(["onMinimized", "onDialogMousedown"], ["update:modelValue"]),
59
75
  setup(__props, { expose: __expose, emit: __emit }) {
60
76
  const props = __props;
61
77
  const emits = __emit;
62
78
  const { t } = useLocale.useLocale();
63
79
  const visible = vue.useModel(__props, "modelValue");
64
80
  const loading = vue.ref(false);
65
- const dialogClass = vue.computed(() => {
66
- if (["right", "fullscreen"].includes(props.dialogType)) {
67
- let value = "h-[calc(100vh-32px)] flex flex-col !my-4 !mr-4";
68
- if (props.dialogType === "right") {
69
- value += " !ml-auto";
70
- } else {
71
- value += " !ml-4";
72
- }
73
- return value;
74
- }
75
- return "flex flex-col";
76
- });
77
- const width = vue.computed(() => {
78
- if (props.dialogType === "fullscreen") {
79
- return "calc(100vw-32px)";
80
- }
81
- return "37.5rem";
82
- });
83
- const top = vue.computed(() => {
84
- if (["right", "fullscreen"].includes(props.dialogType)) {
85
- return "16px";
86
- }
87
- return props.top;
88
- });
81
+ const dragLevelIndex = vue.ref(null);
82
+ const minimized = vue.ref(false);
83
+ const animating = vue.ref(false);
84
+ let animTimer = null;
89
85
  async function onSubmitHandler() {
90
86
  if (loading.value) return;
91
87
  loading.value = true;
@@ -100,7 +96,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
100
96
  }
101
97
  visible.value = false;
102
98
  loading.value = false;
103
- emits("hide");
104
99
  }
105
100
  async function onCancelHandler() {
106
101
  if (loading.value) return;
@@ -116,7 +111,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
116
111
  }
117
112
  visible.value = false;
118
113
  loading.value = false;
119
- emits("hide");
120
114
  }
121
115
  async function onCloseHandler() {
122
116
  if (loading.value) return;
@@ -132,127 +126,172 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
132
126
  }
133
127
  visible.value = false;
134
128
  loading.value = false;
135
- emits("hide");
136
129
  }
137
- __expose({});
130
+ function runAnim(onEnd) {
131
+ animating.value = true;
132
+ clearTimeout(animTimer);
133
+ animTimer = setTimeout(() => {
134
+ animating.value = false;
135
+ onEnd?.();
136
+ }, 750);
137
+ }
138
+ function showToWorkspace(initDragLevelIndex) {
139
+ dragLevelIndex.value = initDragLevelIndex;
140
+ if (minimized.value) runAnim();
141
+ minimized.value = false;
142
+ emits("onMinimized", minimized.value);
143
+ }
144
+ function hideToWorkspace() {
145
+ runAnim(() => {
146
+ dragLevelIndex.value = 1;
147
+ });
148
+ minimized.value = true;
149
+ emits("onMinimized", minimized.value);
150
+ }
151
+ const dialogTestRef = vue.ref();
152
+ function dialogMousedown(e) {
153
+ emits("onDialogMousedown", e);
154
+ }
155
+ __expose({
156
+ showToWorkspace,
157
+ hideToWorkspace
158
+ });
138
159
  return (_ctx, _cache) => {
139
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDialog), vue.mergeProps({
140
- modelValue: visible.value,
141
- "onUpdate:modelValue": ($event) => visible.value = $event,
142
- width: width.value,
143
- "append-to-body": true,
144
- "close-on-click-modal": false,
145
- "close-on-press-escape": false,
146
- "show-close": false,
147
- overflow: false,
148
- top: top.value,
149
- modal: false,
150
- "modal-penetrable": "",
151
- draggable: "",
152
- class: dialogClass.value,
153
- "align-center": !["right", "fullscreen"].includes(props.dialogType),
154
- "body-class": "h-0 flex-1"
155
- }, _ctx.$attrs), {
156
- header: vue.withCtx(() => [
157
- vue.createElementVNode(
158
- "div",
159
- {
160
- class: vue.normalizeClass(["box-border w-full border-0 border-b border-solid border-background-3 px-4 py-[10px] text-main text-sm font-bold flex justify-between items-center relative", { "!justify-center": __props.titleAlign === "center" }])
160
+ return vue.openBlock(), vue.createElementBlock(
161
+ vue.Fragment,
162
+ null,
163
+ [
164
+ vue.createCommentVNode(" @mousedown.stop"),
165
+ vue.createCommentVNode(' :z-index="zIndex || dragLevelIndex"'),
166
+ vue.createCommentVNode(" draggable"),
167
+ vue.createCommentVNode(` :align-center="!['right', 'fullscreen'].includes(props.dialogType)"`),
168
+ vue.createCommentVNode(' body-class="h-0 flex-1"'),
169
+ vue.createCommentVNode(' :class="dialogClass"'),
170
+ vue.createCommentVNode(' :overflow="false"'),
171
+ vue.createCommentVNode(' :modal="false"'),
172
+ vue.createVNode(vue.unref(elementPlus.ElDialog), vue.mergeProps({
173
+ ref_key: "dialogTestRef",
174
+ ref: dialogTestRef,
175
+ onMousedown: dialogMousedown,
176
+ "append-to-body": true,
177
+ "close-on-click-modal": false,
178
+ "close-on-press-escape": false,
179
+ "show-close": false,
180
+ "modal-penetrable": "",
181
+ "modal-class": {
182
+ "hy-dialog-app-shrink": animating.value || minimized.value,
183
+ "hy-dialog-is-minimized": minimized.value
161
184
  },
162
- [
185
+ modelValue: visible.value,
186
+ "onUpdate:modelValue": ($event) => visible.value = $event,
187
+ width: props.width,
188
+ top: __props.top
189
+ }, _ctx.$attrs), {
190
+ header: vue.withCtx(() => [
163
191
  vue.createElementVNode(
164
- "span",
165
- null,
166
- vue.toDisplayString(__props.title),
167
- 1
168
- /* TEXT */
169
- ),
170
- __props.showClose ? (vue.openBlock(), vue.createElementBlock(
171
192
  "div",
172
193
  {
173
- key: 0,
174
- class: vue.normalizeClass(["text-lg absolute right-4 cursor-pointer text-danger-2", { "cursor-not-allowed": loading.value }]),
175
- onClick: onCloseHandler
194
+ class: vue.normalizeClass(["box-border w-full border-0 border-b border-solid border-background-3 px-4 py-[10px] text-main text-sm font-bold flex justify-between items-center relative", { "!justify-center": __props.titleAlign === "center" }])
176
195
  },
177
196
  [
178
- vue.createVNode(vue.unref(index$1.HyIcon), {
179
- "svg-name": "layout-dialog-close-v2",
180
- class: "!w-[20px] !h-[20px]"
181
- })
197
+ vue.createElementVNode(
198
+ "div",
199
+ { class: "flex-grow w-0 mr-2 over_one_line" },
200
+ vue.toDisplayString(__props.title),
201
+ 1
202
+ /* TEXT */
203
+ ),
204
+ vue.createElementVNode("div", { class: "text-lg cursor-pointer" }, [
205
+ vue.renderSlot(_ctx.$slots, "title-operate-box"),
206
+ __props.showShrink ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
207
+ key: 0,
208
+ onClick: hideToWorkspace,
209
+ "svg-name": "layout-dialog-narrow",
210
+ class: "!w-[20px] !h-[20px] ml-2 clickBox"
211
+ })) : vue.createCommentVNode("v-if", true),
212
+ __props.showClose ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
213
+ key: 1,
214
+ onClick: onCloseHandler,
215
+ "svg-name": "layout-dialog-close-v2",
216
+ class: vue.normalizeClass([{ "cursor-not-allowed": loading.value }, "!w-[20px] !h-[20px] ml-2 text-danger-2"])
217
+ }, null, 8, ["class"])) : vue.createCommentVNode("v-if", true)
218
+ ])
182
219
  ],
183
220
  2
184
221
  /* CLASS */
185
- )) : vue.createCommentVNode("v-if", true)
186
- ],
187
- 2
188
- /* CLASS */
189
- )
190
- ]),
191
- default: vue.withCtx(() => [
192
- vue.createElementVNode(
193
- "div",
194
- {
195
- class: vue.normalizeClass(["max-h-full flex flex-col text-main", { "h-full": ["right", "fullscreen"].includes(props.dialogType) }])
196
- },
197
- [
198
- vue.renderSlot(_ctx.$slots, "content", {}, () => [
199
- vue.createElementVNode("div", { class: "scroll-body overflow-auto h-0 flex-1 px-6 py-4" }, [
200
- vue.renderSlot(_ctx.$slots, "default")
201
- ])
202
- ]),
203
- __props.showOperate ? (vue.openBlock(), vue.createElementBlock("div", {
204
- key: 0,
205
- class: "flex items-center flex-row-reverse justify-between p-5 pr-[26px] bg-[rgba(var(--hy-background-2),0.5)] mt-auto"
206
- }, [
207
- vue.renderSlot(_ctx.$slots, "operate-left-box"),
208
- vue.createElementVNode("div", { class: "flex items-center" }, [
209
- vue.renderSlot(_ctx.$slots, "operate", {}, () => [
210
- __props.showCancel ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyButton), {
211
- key: 0,
212
- type: __props.cancelType,
213
- disabled: loading.value,
214
- class: "!min-w-[120px]",
215
- onClick: onCancelHandler
216
- }, {
217
- default: vue.withCtx(() => [
218
- vue.createTextVNode(
219
- vue.toDisplayString(vue.unref(t)("dialog.cancel")),
220
- 1
221
- /* TEXT */
222
- )
223
- ]),
224
- _: 1
225
- /* STABLE */
226
- }, 8, ["type", "disabled"])) : vue.createCommentVNode("v-if", true),
227
- __props.showSubmit ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyButton), {
228
- key: 1,
229
- type: __props.submitType,
230
- disabled: loading.value,
231
- class: "!min-w-[120px]",
232
- onClick: onSubmitHandler
233
- }, {
234
- default: vue.withCtx(() => [
235
- vue.createTextVNode(
236
- vue.toDisplayString(vue.unref(t)("dialog.confirm")),
237
- 1
238
- /* TEXT */
239
- )
240
- ]),
241
- _: 1
242
- /* STABLE */
243
- }, 8, ["type", "disabled"])) : vue.createCommentVNode("v-if", true)
222
+ )
223
+ ]),
224
+ default: vue.withCtx(() => [
225
+ vue.createElementVNode(
226
+ "div",
227
+ {
228
+ class: vue.normalizeClass(["max-h-full flex flex-col text-main", { "h-full": ["right", "fullscreen"].includes(props.dialogType) }])
229
+ },
230
+ [
231
+ vue.renderSlot(_ctx.$slots, "content", {}, () => [
232
+ vue.createElementVNode("div", { class: "scroll-body overflow-auto h-0 flex-1 px-6 py-4" }, [
233
+ vue.renderSlot(_ctx.$slots, "default")
234
+ ])
244
235
  ]),
245
- vue.renderSlot(_ctx.$slots, "operate-right-box")
246
- ])
247
- ])) : vue.createCommentVNode("v-if", true)
248
- ],
249
- 2
250
- /* CLASS */
251
- )
252
- ]),
253
- _: 3
254
- /* FORWARDED */
255
- }, 16, ["modelValue", "onUpdate:modelValue", "width", "top", "class", "align-center"]);
236
+ __props.showOperate ? (vue.openBlock(), vue.createElementBlock("div", {
237
+ key: 0,
238
+ class: "flex items-center flex-row-reverse justify-between p-5 pr-[26px] mt-auto"
239
+ }, [
240
+ vue.renderSlot(_ctx.$slots, "operate-left-box"),
241
+ vue.createElementVNode("div", { class: "flex items-center" }, [
242
+ vue.renderSlot(_ctx.$slots, "operate", {}, () => [
243
+ __props.showCancel ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyButton), {
244
+ key: 0,
245
+ type: __props.cancelType,
246
+ disabled: loading.value,
247
+ class: "!min-w-[120px]",
248
+ onMousedown: vue.withModifiers(() => {
249
+ }, ["stop"]),
250
+ onClick: onCancelHandler
251
+ }, {
252
+ default: vue.withCtx(() => [
253
+ vue.createTextVNode(
254
+ vue.toDisplayString(vue.unref(t)("dialog.cancel")),
255
+ 1
256
+ /* TEXT */
257
+ )
258
+ ]),
259
+ _: 1
260
+ /* STABLE */
261
+ }, 8, ["type", "disabled", "onMousedown"])) : vue.createCommentVNode("v-if", true),
262
+ __props.showSubmit ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyButton), {
263
+ key: 1,
264
+ type: __props.submitType,
265
+ disabled: loading.value,
266
+ class: "!min-w-[120px]",
267
+ onClick: onSubmitHandler
268
+ }, {
269
+ default: vue.withCtx(() => [
270
+ vue.createTextVNode(
271
+ vue.toDisplayString(vue.unref(t)("dialog.confirm")),
272
+ 1
273
+ /* TEXT */
274
+ )
275
+ ]),
276
+ _: 1
277
+ /* STABLE */
278
+ }, 8, ["type", "disabled"])) : vue.createCommentVNode("v-if", true)
279
+ ]),
280
+ vue.renderSlot(_ctx.$slots, "operate-right-box")
281
+ ])
282
+ ])) : vue.createCommentVNode("v-if", true)
283
+ ],
284
+ 2
285
+ /* CLASS */
286
+ )
287
+ ]),
288
+ _: 3
289
+ /* FORWARDED */
290
+ }, 16, ["modal-class", "modelValue", "onUpdate:modelValue", "width", "top"])
291
+ ],
292
+ 2112
293
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
294
+ );
256
295
  };
257
296
  }
258
297
  });
@@ -0,0 +1,13 @@
1
+ .hy-dialog-app-shrink {
2
+ transform-origin: 100% 100%;
3
+ transition:
4
+ transform 0.7s cubic-bezier(0.65, 0, 0.35, 1),
5
+ opacity 0.7s ease;
6
+ will-change: transform, opacity;
7
+ &.hy-dialog-is-minimized {
8
+ transform: translate(calc(50vw - 100%), calc(100vh - 0px - 100%))
9
+ scale(0.01) !important;
10
+ opacity: 0.95;
11
+ pointer-events: none;
12
+ }
13
+ }
@@ -6,14 +6,14 @@ var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var iconsVue = require('@element-plus/icons-vue');
8
8
  var index = require('../js/index.js');
9
+ var is = require('../../../utils/is.js');
9
10
  var form = require('../../../utils/form.js');
11
+ var handler = require('../../../utils/handler.js');
10
12
  var index$1 = require('../../hyTooltip/index.js');
11
13
  var index$2 = require('../../hyInput/index.js');
12
14
  var index$3 = require('../../hyDatePicker/index.js');
13
15
  var index$4 = require('../../hyTimePicker/index.js');
14
16
  var index$5 = require('../../hyOrgCascader/index.js');
15
- var is = require('../../../utils/is.js');
16
- var handler = require('../../../utils/handler.js');
17
17
 
18
18
  const _sfc_main = {
19
19
  __name: "formItem",
@@ -162,11 +162,10 @@ const _sfc_main = {
162
162
  [
163
163
  vue.createCommentVNode(" \u81EA\u5B9A\u4E49\u5177\u540D\u63D2\u69FD "),
164
164
  __props.column.slot && _ctx.$slots[__props.column.slot] ? vue.renderSlot(_ctx.$slots, __props.column.slot, {
165
- key: 0,
166
165
  column: __props.column,
167
166
  model: __props.model,
168
167
  required: vue.unref(index.isRequired)(props, __props.column)
169
- }) : __props.column.type === "input" ? (vue.openBlock(), vue.createElementBlock(
168
+ }, void 0, void 0, 0) : __props.column.type === "input" ? (vue.openBlock(), vue.createElementBlock(
170
169
  vue.Fragment,
171
170
  { key: 1 },
172
171
  [
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var vue = require('vue');
4
- var form = require('../../../utils/form.js');
5
4
  var handler = require('../../../utils/handler.js');
6
5
  var is = require('../../../utils/is.js');
6
+ var form = require('../../../utils/form.js');
7
7
  var useLocale = require('../../../hooks/useLocale.js');
8
8
 
9
9
  const genDefaultLabel = (config) => {
@@ -1,10 +1,6 @@
1
1
  .hy-form-container {
2
2
  display: grid;
3
3
  column-gap: 24px;
4
- .el-form-item__label::before {
5
- content: '' !important;
6
- display: none;
7
- }
8
4
 
9
5
  .label-required {
10
6
  &::after {
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
15
15
  props: {
16
16
  svgName: {
17
17
  type: String,
18
- default: "ops-list-no-data"
18
+ default: "analytics-v3-no-data-normal"
19
19
  }
20
20
  },
21
21
  emits: [],
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
15
15
  props: {
16
16
  svgName: {
17
17
  type: String,
18
- default: "ops-list-no-data"
18
+ default: "analytics-v3-no-data-normal"
19
19
  }
20
20
  },
21
21
  emits: [],
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
- var useLocale = require('../../hooks/useLocale.js');
8
7
  var useApi = require('../../hooks/useApi.js');
8
+ var useLocale = require('../../hooks/useLocale.js');
9
9
 
10
10
  import "./style/orgCascader.scss";
11
11
 
@@ -79,7 +79,7 @@ const _sfc_main = {
79
79
  prop: columnProp.value
80
80
  }, {
81
81
  default: vue.withCtx(() => [
82
- vue.createElementVNode("div", { class: "flex bg-background-2 rounded border border-transparent hover:border-theme box-border" }, [
82
+ vue.createElementVNode("div", { class: "flex bg-background-2 rounded outline outline-1 outline-transparent outline-offset-0 hover:outline-theme box-border" }, [
83
83
  vue.createElementVNode(
84
84
  "div",
85
85
  {
@@ -96,10 +96,7 @@ const _sfc_main = {
96
96
  }])
97
97
  },
98
98
  [
99
- __props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] ? vue.renderSlot(_ctx.$slots, __props.column.labelSlot, {
100
- key: 0,
101
- column: __props.column
102
- }) : (vue.openBlock(), vue.createElementBlock(
99
+ __props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] ? vue.renderSlot(_ctx.$slots, __props.column.labelSlot, { column: __props.column }, void 0, void 0, 0) : (vue.openBlock(), vue.createElementBlock(
103
100
  "span",
104
101
  { key: 1 },
105
102
  vue.toDisplayString(__props.column.label),
@@ -119,10 +116,7 @@ const _sfc_main = {
119
116
  },
120
117
  [
121
118
  vue.createCommentVNode(" \u81EA\u5B9A\u4E49\u5177\u540D\u63D2\u69FD "),
122
- __props.column.slot ? vue.renderSlot(_ctx.$slots, __props.column.slot, {
123
- key: 0,
124
- column: __props.column
125
- }) : __props.column.type === "input" ? (vue.openBlock(), vue.createElementBlock(
119
+ __props.column.slot ? vue.renderSlot(_ctx.$slots, __props.column.slot, { column: __props.column }, void 0, void 0, 0) : __props.column.type === "input" ? (vue.openBlock(), vue.createElementBlock(
126
120
  vue.Fragment,
127
121
  { key: 1 },
128
122
  [
@@ -57,13 +57,13 @@ function useShrink(props, formItemWrapper) {
57
57
  function getContainerPickUpHeight() {
58
58
  switch (props.size) {
59
59
  case "large":
60
- return 43;
60
+ return 44;
61
61
  case "small":
62
- return 27;
62
+ return 28;
63
63
  case "":
64
64
  case "default":
65
65
  default:
66
- return 35;
66
+ return 36;
67
67
  }
68
68
  }
69
69
  function switchShrink() {
@@ -76,7 +76,7 @@ function useShrink(props, formItemWrapper) {
76
76
  if (container.children.length) {
77
77
  for (let i = 0; i < container.children.length; i++) {
78
78
  const element = container.children[i];
79
- if (i > 0 && element.offsetLeft === 0) {
79
+ if (i > 0 && element.offsetLeft <= 1) {
80
80
  showShrink.value = true;
81
81
  break;
82
82
  } else if (i === container.children.length - 1) {
@@ -33,6 +33,7 @@
33
33
  flex-wrap: wrap;
34
34
  gap: 16px;
35
35
  position: relative;
36
+ padding: 1px;
36
37
  .hy-el-form-item {
37
38
  margin-bottom: 0;
38
39
  &.hidden {