hy-dispatch-ui-v3 0.2.33 → 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 (75) 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 +178 -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/hyNoPermissions/noPermissions.vue.mjs +1 -1
  15. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
  16. package/es/components/hyOrgCascader/orgCascader.vue.mjs +1 -1
  17. package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -9
  18. package/es/components/hySearch/js/index.mjs +4 -4
  19. package/es/components/hySearch/style/search.scss +1 -0
  20. package/es/components/hyTable/cpns/columnSelect.vue.mjs +39 -42
  21. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +5 -8
  22. package/es/components/hyTable/cpns/headerItem.vue.mjs +1 -1
  23. package/es/components/hyTable/cpns/virtualTable.vue.mjs +6 -10
  24. package/es/components/hyTable/js/index.mjs +1 -1
  25. package/es/components/hyTable/js/useAppTable.mjs +1 -1
  26. package/es/components/hyTable/style/table.scss +13 -0
  27. package/es/components/hyTable/table.vue.mjs +22 -18
  28. package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
  29. package/es/components/hyTableForm/tableForm.vue.mjs +3 -3
  30. package/es/components/hyTooltip/tooltip.vue.mjs +4 -4
  31. package/es/components/hyTree/style/index.css +1 -0
  32. package/es/components/hyTree/tree.vue.mjs +2 -0
  33. package/es/components/hyUserAvatar/userAvatar.vue.mjs +2 -2
  34. package/es/components/hyVideoPlayer/js/index.mjs +1 -1
  35. package/es/locale/en.mjs +1 -1
  36. package/es/locale/zh_CN.mjs +1 -1
  37. package/es/style/element/hy-element.scss +3 -2
  38. package/es/version.mjs +1 -1
  39. package/lib/components/hyAudioPlayer/js/index.js +1 -1
  40. package/lib/components/hyButton/button.vue.js +49 -34
  41. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -1
  42. package/lib/components/hyConfirmDialog/confirmMethod.js +1 -1
  43. package/lib/components/hyConfirmDialog/index.js +1 -1
  44. package/lib/components/hyCutter/cutter.vue.js +1 -1
  45. package/lib/components/hyDatePicker/datePicker.vue.js +1 -1
  46. package/lib/components/hyDialog/dialog.vue.js +177 -136
  47. package/lib/components/hyDialog/style/dialog.scss +13 -0
  48. package/lib/components/hyForm/cpns/formItem.vue.js +3 -4
  49. package/lib/components/hyForm/js/useAppForm.js +1 -1
  50. package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
  51. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
  52. package/lib/components/hyOrgCascader/orgCascader.vue.js +1 -1
  53. package/lib/components/hySearch/cpns/searchItem.vue.js +3 -9
  54. package/lib/components/hySearch/js/index.js +4 -4
  55. package/lib/components/hySearch/style/search.scss +1 -0
  56. package/lib/components/hyTable/cpns/columnSelect.vue.js +43 -46
  57. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +4 -7
  58. package/lib/components/hyTable/cpns/headerItem.vue.js +1 -1
  59. package/lib/components/hyTable/cpns/virtualTable.vue.js +6 -10
  60. package/lib/components/hyTable/js/index.js +1 -1
  61. package/lib/components/hyTable/js/useAppTable.js +1 -1
  62. package/lib/components/hyTable/style/table.scss +13 -0
  63. package/lib/components/hyTable/table.vue.js +21 -17
  64. package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
  65. package/lib/components/hyTableForm/tableForm.vue.js +3 -3
  66. package/lib/components/hyTooltip/tooltip.vue.js +4 -4
  67. package/lib/components/hyTree/style/index.css +1 -0
  68. package/lib/components/hyTree/tree.vue.js +2 -0
  69. package/lib/components/hyUserAvatar/userAvatar.vue.js +2 -2
  70. package/lib/components/hyVideoPlayer/js/index.js +1 -1
  71. package/lib/locale/en.js +1 -1
  72. package/lib/locale/zh_CN.js +1 -1
  73. package/lib/style/element/hy-element.scss +3 -2
  74. package/lib/version.js +1 -1
  75. package/package.json +1 -1
@@ -5,7 +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('../hyIcon/index.js');
8
+ var index = require('../hyTooltip/index.js');
9
+ var index$1 = require('../hyIcon/index.js');
9
10
 
10
11
  import "./style/button.scss";
11
12
 
@@ -27,6 +28,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
27
28
  type: Boolean,
28
29
  default: false
29
30
  },
31
+ loadingTip: {
32
+ // 加载中气泡文本
33
+ type: String
34
+ },
30
35
  size: {
31
36
  type: String,
32
37
  size: "default"
@@ -116,39 +121,49 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
116
121
  },
117
122
  [
118
123
  vue.createElementVNode("div", { class: "hy-button__text relative z-[1] w-full h-full flex items-center justify-center" }, [
119
- vue.renderSlot(_ctx.$slots, "content", {}, () => [
120
- vue.createElementVNode(
121
- "div",
122
- {
123
- class: vue.normalizeClass(["flex items-center text-main", {
124
- "px-3": !__props.expand,
125
- "pl-3 pr-1.5": __props.expand
126
- }])
127
- },
128
- [
129
- !__props.loading ? vue.renderSlot(_ctx.$slots, "svg", { key: 0 }, () => [
130
- __props.svgName ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyIcon), {
131
- key: 0,
132
- "svg-name": __props.svgName,
133
- "class-name": "!w-3 !h-3 text-main mr-2"
134
- }, null, 8, ["svg-name"])) : vue.createCommentVNode("v-if", true)
135
- ]) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
136
- key: 1,
137
- color: "rgb(var(--hy-main))",
138
- class: "is-loading mr-2"
139
- }, {
140
- default: vue.withCtx(() => [
141
- vue.createVNode(vue.unref(iconsVue.Loading))
142
- ]),
143
- _: 1
144
- /* STABLE */
145
- })),
146
- vue.renderSlot(_ctx.$slots, "default")
147
- ],
148
- 2
149
- /* CLASS */
150
- )
151
- ]),
124
+ vue.createVNode(vue.unref(index.HyTooltip), {
125
+ "is-always": "",
126
+ disabled: !__props.loading || !__props.loadingTip,
127
+ content: __props.loadingTip
128
+ }, {
129
+ default: vue.withCtx(() => [
130
+ vue.renderSlot(_ctx.$slots, "content", {}, () => [
131
+ vue.createElementVNode(
132
+ "div",
133
+ {
134
+ class: vue.normalizeClass(["flex items-center text-main", {
135
+ "px-3": !__props.expand,
136
+ "pl-3 pr-1.5": __props.expand
137
+ }])
138
+ },
139
+ [
140
+ !__props.loading ? vue.renderSlot(_ctx.$slots, "svg", {}, () => [
141
+ __props.svgName ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
142
+ key: 0,
143
+ "svg-name": __props.svgName,
144
+ "class-name": "!w-3 !h-3 text-main mr-2"
145
+ }, null, 8, ["svg-name"])) : vue.createCommentVNode("v-if", true)
146
+ ], void 0, 0) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
147
+ key: 1,
148
+ color: "rgb(var(--hy-main))",
149
+ class: "is-loading mr-2"
150
+ }, {
151
+ default: vue.withCtx(() => [
152
+ vue.createVNode(vue.unref(iconsVue.Loading))
153
+ ]),
154
+ _: 1
155
+ /* STABLE */
156
+ })),
157
+ vue.renderSlot(_ctx.$slots, "default")
158
+ ],
159
+ 2
160
+ /* CLASS */
161
+ )
162
+ ])
163
+ ]),
164
+ _: 3
165
+ /* FORWARDED */
166
+ }, 8, ["disabled", "content"]),
152
167
  __props.expand ? (vue.openBlock(), vue.createElementBlock(
153
168
  vue.Fragment,
154
169
  { key: 0 },
@@ -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"
@@ -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
  [
@@ -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) => {
@@ -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