hy-dispatch-ui-v3 0.2.32 → 0.2.34

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