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
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var iconsVue = require('@element-plus/icons-vue');
8
- var index = require('../hyButton/index.js');
9
8
  var useLocale = require('../../hooks/useLocale.js');
9
+ var index = require('../hyButton/index.js');
10
10
 
11
11
  const __default__ = vue.defineComponent({
12
12
  name: "HyConfirmDialog"
@@ -200,7 +200,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
200
200
  /* TEXT, CLASS */
201
201
  ),
202
202
  vue.createElementVNode("div", {
203
- class: "max-w-[300px] text-smword-break text-center break-all",
203
+ class: "px-[40px] text-smword-break text-center break-all",
204
204
  innerHTML: __props.content
205
205
  }, null, 8, ["innerHTML"])
206
206
  ]),
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var useApi = require('../../hooks/useApi.js');
7
7
  var confirmDialog = require('./confirmDialog.vue.js');
8
+ var useLocale = require('../../hooks/useLocale.js');
8
9
  var useGlobalConfig = require('../../hooks/useGlobalConfig.js');
9
10
  var index = require('../hyConfigProvider/index.js');
10
- var useLocale = require('../../hooks/useLocale.js');
11
11
 
12
12
  function appConfirmMethod(config) {
13
13
  let container = document.createDocumentFragment();
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('./confirmMethod.js');
6
- var confirmDialog = require('./confirmDialog.vue.js');
7
6
  var handler = require('../../utils/handler.js');
7
+ var confirmDialog = require('./confirmDialog.vue.js');
8
8
 
9
9
  const HyConfirmDialog = handler.withInstall(confirmDialog.default);
10
10
 
@@ -6,9 +6,9 @@ var vue = require('vue');
6
6
  var vueCropper = require('vue-cropper');
7
7
  var elementPlus = require('element-plus');
8
8
  var iconsVue = require('@element-plus/icons-vue');
9
+ var useLocale = require('../../hooks/useLocale.js');
9
10
  var file = require('../../utils/file.js');
10
11
  var index = require('../hyDialog/index.js');
11
- var useLocale = require('../../hooks/useLocale.js');
12
12
 
13
13
  import "vue-cropper/dist/index.css";
14
14
 
@@ -4,9 +4,9 @@ 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');
7
8
  var date = require('../../utils/date.js');
8
9
  var is = require('../../utils/is.js');
9
- var useLocale = require('../../hooks/useLocale.js');
10
10
 
11
11
  import "./style/datePicker.scss";
12
12
 
@@ -23,7 +23,18 @@ 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
33
+ // default-默认类型 right-右侧弹窗 fullscreen-全屏
34
+ },
26
35
  top: String,
36
+ // 支持缩小化
37
+ showShrink: { type: Boolean, default: false },
27
38
  showOperate: { type: Boolean, default: true },
28
39
  showClose: { type: Boolean, default: true },
29
40
  showCancel: {
@@ -45,6 +56,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
45
56
  type: String,
46
57
  default: "primary"
47
58
  },
59
+ width: {
60
+ type: String,
61
+ default: () => {
62
+ return "1000px";
63
+ }
64
+ },
48
65
  submitText: {
49
66
  type: String
50
67
  },
@@ -55,37 +72,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
55
72
  "modelValue": { type: Boolean, default: false },
56
73
  "modelModifiers": {}
57
74
  }),
58
- emits: /* @__PURE__ */ vue.mergeModels(["hide"], ["update:modelValue"]),
75
+ emits: /* @__PURE__ */ vue.mergeModels(["onMinimized", "onDialogMousedown"], ["update:modelValue"]),
59
76
  setup(__props, { expose: __expose, emit: __emit }) {
60
77
  const props = __props;
61
78
  const emits = __emit;
62
79
  const { t } = useLocale.useLocale();
63
80
  const visible = vue.useModel(__props, "modelValue");
64
81
  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
- });
82
+ const dragLevelIndex = vue.ref(null);
83
+ const minimized = vue.ref(false);
84
+ const animating = vue.ref(false);
85
+ let animTimer = null;
89
86
  async function onSubmitHandler() {
90
87
  if (loading.value) return;
91
88
  loading.value = true;
@@ -100,7 +97,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
100
97
  }
101
98
  visible.value = false;
102
99
  loading.value = false;
103
- emits("hide");
104
100
  }
105
101
  async function onCancelHandler() {
106
102
  if (loading.value) return;
@@ -116,7 +112,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
116
112
  }
117
113
  visible.value = false;
118
114
  loading.value = false;
119
- emits("hide");
120
115
  }
121
116
  async function onCloseHandler() {
122
117
  if (loading.value) return;
@@ -132,127 +127,173 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
132
127
  }
133
128
  visible.value = false;
134
129
  loading.value = false;
135
- emits("hide");
136
130
  }
137
- __expose({});
131
+ function runAnim(onEnd) {
132
+ animating.value = true;
133
+ clearTimeout(animTimer);
134
+ animTimer = setTimeout(() => {
135
+ animating.value = false;
136
+ onEnd?.();
137
+ }, 750);
138
+ }
139
+ function showToWorkspace(initDragLevelIndex) {
140
+ dragLevelIndex.value = initDragLevelIndex;
141
+ if (minimized.value) runAnim();
142
+ minimized.value = false;
143
+ emits("onMinimized", minimized.value);
144
+ }
145
+ function hideToWorkspace() {
146
+ runAnim(() => {
147
+ dragLevelIndex.value = 1;
148
+ });
149
+ minimized.value = true;
150
+ emits("onMinimized", minimized.value);
151
+ }
152
+ const dialogTestRef = vue.ref();
153
+ function dialogMousedown(e) {
154
+ if (props.zIndex != null) return;
155
+ emits("onDialogMousedown", e);
156
+ }
157
+ __expose({
158
+ showToWorkspace,
159
+ hideToWorkspace
160
+ });
138
161
  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" }])
162
+ return vue.openBlock(), vue.createElementBlock(
163
+ vue.Fragment,
164
+ null,
165
+ [
166
+ vue.createCommentVNode(" @mousedown.stop"),
167
+ vue.createCommentVNode(' :z-index="zIndex || dragLevelIndex"'),
168
+ vue.createCommentVNode(" draggable"),
169
+ vue.createCommentVNode(` :align-center="!['right', 'fullscreen'].includes(props.dialogType)"`),
170
+ vue.createCommentVNode(' body-class="h-0 flex-1"'),
171
+ vue.createCommentVNode(' :class="dialogClass"'),
172
+ vue.createCommentVNode(' :overflow="false"'),
173
+ vue.createCommentVNode(' :modal="false"'),
174
+ vue.createVNode(vue.unref(elementPlus.ElDialog), vue.mergeProps({
175
+ ref_key: "dialogTestRef",
176
+ ref: dialogTestRef,
177
+ onMousedown: dialogMousedown,
178
+ "append-to-body": true,
179
+ "close-on-click-modal": false,
180
+ "close-on-press-escape": false,
181
+ "show-close": false,
182
+ "modal-penetrable": "",
183
+ "modal-class": {
184
+ "hy-dialog-app-shrink": animating.value || minimized.value,
185
+ "hy-dialog-is-minimized": minimized.value
161
186
  },
162
- [
187
+ modelValue: visible.value,
188
+ "onUpdate:modelValue": ($event) => visible.value = $event,
189
+ width: props.width,
190
+ top: __props.top
191
+ }, _ctx.$attrs), {
192
+ header: vue.withCtx(() => [
163
193
  vue.createElementVNode(
164
- "span",
165
- null,
166
- vue.toDisplayString(__props.title),
167
- 1
168
- /* TEXT */
169
- ),
170
- __props.showClose ? (vue.openBlock(), vue.createElementBlock(
171
194
  "div",
172
195
  {
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
196
+ 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
197
  },
177
198
  [
178
- vue.createVNode(vue.unref(index$1.HyIcon), {
179
- "svg-name": "layout-dialog-close-v2",
180
- class: "!w-[20px] !h-[20px]"
181
- })
199
+ vue.createElementVNode(
200
+ "div",
201
+ { class: "flex-grow w-0 mr-2 over_one_line" },
202
+ vue.toDisplayString(__props.title),
203
+ 1
204
+ /* TEXT */
205
+ ),
206
+ vue.createElementVNode("div", { class: "text-lg cursor-pointer" }, [
207
+ vue.renderSlot(_ctx.$slots, "title-operate-box"),
208
+ __props.showShrink ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
209
+ key: 0,
210
+ onClick: hideToWorkspace,
211
+ "svg-name": "layout-dialog-narrow",
212
+ class: "!w-[20px] !h-[20px] ml-2 clickBox"
213
+ })) : vue.createCommentVNode("v-if", true),
214
+ __props.showClose ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
215
+ key: 1,
216
+ onClick: onCloseHandler,
217
+ "svg-name": "layout-dialog-close-v2",
218
+ class: vue.normalizeClass([{ "cursor-not-allowed": loading.value }, "!w-[20px] !h-[20px] ml-2 text-danger-2"])
219
+ }, null, 8, ["class"])) : vue.createCommentVNode("v-if", true)
220
+ ])
182
221
  ],
183
222
  2
184
223
  /* 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)
224
+ )
225
+ ]),
226
+ default: vue.withCtx(() => [
227
+ vue.createElementVNode(
228
+ "div",
229
+ {
230
+ class: vue.normalizeClass(["max-h-full flex flex-col text-main", { "h-full": ["right", "fullscreen"].includes(props.dialogType) }])
231
+ },
232
+ [
233
+ vue.renderSlot(_ctx.$slots, "content", {}, () => [
234
+ vue.createElementVNode("div", { class: "scroll-body overflow-auto h-0 flex-1 px-6 py-4" }, [
235
+ vue.renderSlot(_ctx.$slots, "default")
236
+ ])
244
237
  ]),
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"]);
238
+ __props.showOperate ? (vue.openBlock(), vue.createElementBlock("div", {
239
+ key: 0,
240
+ class: "flex items-center flex-row-reverse justify-between p-5 pr-[26px] mt-auto"
241
+ }, [
242
+ vue.renderSlot(_ctx.$slots, "operate-left-box"),
243
+ vue.createElementVNode("div", { class: "flex items-center" }, [
244
+ vue.renderSlot(_ctx.$slots, "operate", {}, () => [
245
+ __props.showCancel ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyButton), {
246
+ key: 0,
247
+ type: __props.cancelType,
248
+ disabled: loading.value,
249
+ class: "!min-w-[120px]",
250
+ onMousedown: vue.withModifiers(() => {
251
+ }, ["stop"]),
252
+ onClick: onCancelHandler
253
+ }, {
254
+ default: vue.withCtx(() => [
255
+ vue.createTextVNode(
256
+ vue.toDisplayString(vue.unref(t)("dialog.cancel")),
257
+ 1
258
+ /* TEXT */
259
+ )
260
+ ]),
261
+ _: 1
262
+ /* STABLE */
263
+ }, 8, ["type", "disabled", "onMousedown"])) : vue.createCommentVNode("v-if", true),
264
+ __props.showSubmit ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyButton), {
265
+ key: 1,
266
+ type: __props.submitType,
267
+ disabled: loading.value,
268
+ class: "!min-w-[120px]",
269
+ onClick: onSubmitHandler
270
+ }, {
271
+ default: vue.withCtx(() => [
272
+ vue.createTextVNode(
273
+ vue.toDisplayString(vue.unref(t)("dialog.confirm")),
274
+ 1
275
+ /* TEXT */
276
+ )
277
+ ]),
278
+ _: 1
279
+ /* STABLE */
280
+ }, 8, ["type", "disabled"])) : vue.createCommentVNode("v-if", true)
281
+ ]),
282
+ vue.renderSlot(_ctx.$slots, "operate-right-box")
283
+ ])
284
+ ])) : vue.createCommentVNode("v-if", true)
285
+ ],
286
+ 2
287
+ /* CLASS */
288
+ )
289
+ ]),
290
+ _: 3
291
+ /* FORWARDED */
292
+ }, 16, ["modal-class", "modelValue", "onUpdate:modelValue", "width", "top"])
293
+ ],
294
+ 2112
295
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
296
+ );
256
297
  };
257
298
  }
258
299
  });
@@ -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
  [
@@ -114,7 +114,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
114
114
  rules: __props.rules,
115
115
  "label-position": "top",
116
116
  size: __props.size,
117
- class: "px-2"
117
+ class: "px-2",
118
+ "hide-required-asterisk": ""
118
119
  }, _ctx.$attrs), {
119
120
  default: vue.withCtx(() => [
120
121
  vue.createElementVNode(
@@ -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) => {
@@ -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;