hy-dispatch-ui-v3 0.1.6 → 0.2.1

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 (160) hide show
  1. package/README.md +47 -0
  2. package/dist/tailwind.css +349 -4
  3. package/es/components/appAudioPlayer/appAudioPlayer.vue.mjs +462 -0
  4. package/es/components/appAudioPlayer/index.mjs +6 -0
  5. package/es/components/appAudioPlayer/js/index.mjs +327 -0
  6. package/es/components/appAudioPlayer/style/appAudioPlayer.scss +319 -0
  7. package/es/components/appButton/style/appButton.scss +0 -1
  8. package/es/components/appConfigProvider/appConfigProvider.vue.mjs +22 -1
  9. package/es/components/appCutter/appCutter.vue.mjs +202 -129
  10. package/es/components/appDatePicker/appDatePicker.vue.mjs +1 -1
  11. package/es/components/appForm/appForm.vue.mjs +132 -209
  12. package/es/components/appForm/cpns/appFormItem.vue.mjs +312 -0
  13. package/es/components/appForm/cpns/arrayItem.vue.mjs +305 -0
  14. package/es/components/appForm/cpns/extraItem.vue.mjs +140 -0
  15. package/es/components/appForm/js/index.mjs +46 -24
  16. package/es/components/appForm/js/useAppForm.mjs +30 -6
  17. package/es/components/appForm/style/appForm.scss +53 -0
  18. package/es/components/appIcon/appIcon.vue.mjs +0 -1
  19. package/es/components/appIconBox/style/appIconBox.scss +0 -1
  20. package/es/components/appInput/appInput.vue.mjs +99 -0
  21. package/es/components/appInput/index.mjs +6 -0
  22. package/es/components/appMenu/appMenu.vue.mjs +129 -0
  23. package/es/components/appMenu/index.mjs +6 -0
  24. package/es/components/appMenu/style/appMenu.scss +145 -0
  25. package/es/components/appOrgCascader/appOrgCascader.vue.mjs +14 -10
  26. package/es/components/appSearch/appSearch.vue.mjs +55 -211
  27. package/es/components/appSearch/cpns/appSearchItem.vue.mjs +238 -0
  28. package/es/components/appSearch/js/index.mjs +20 -8
  29. package/es/components/appSearch/js/useAppSearch.mjs +10 -5
  30. package/es/components/appSearch/style/appSearch.scss +10 -0
  31. package/es/components/appTable/appTable.vue.mjs +312 -158
  32. package/es/components/appTable/cpns/columnSelect.vue.mjs +151 -156
  33. package/es/components/appTable/cpns/columnSelectItem.vue2.mjs +104 -110
  34. package/es/components/appTable/cpns/headerItem.vue.mjs +98 -0
  35. package/es/components/appTable/cpns/virtualTable.vue.mjs +560 -0
  36. package/es/components/appTable/js/index.mjs +46 -20
  37. package/es/components/appTable/js/search.mjs +1 -2
  38. package/es/components/appTable/js/useAppTable.mjs +58 -14
  39. package/es/components/appTable/style/appTable.scss +16 -0
  40. package/es/components/appTooltip/appTooltip.vue.mjs +24 -13
  41. package/es/components/appTree/appTree.vue.mjs +304 -0
  42. package/es/components/appTree/index.mjs +6 -0
  43. package/es/components/appTree/js/index.mjs +531 -0
  44. package/es/components/appUserAvatar/appUserAvatar.vue.mjs +9 -8
  45. package/es/components/appUserAvatar/style/appUserAvatar.scss +0 -1
  46. package/es/components/appVideoPlayer/appVideoPlayer.vue.mjs +645 -0
  47. package/es/components/appVideoPlayer/cpns/mediaLoading.vue.mjs +35 -0
  48. package/es/components/appVideoPlayer/index.mjs +6 -0
  49. package/es/components/appVideoPlayer/js/index.mjs +426 -0
  50. package/es/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
  51. package/es/components/appVideoPlayer/style/mediaLoading.scss +62 -0
  52. package/es/components/index.mjs +5 -0
  53. package/es/hooks/index.mjs +3 -0
  54. package/es/hooks/useApi.mjs +4 -4
  55. package/es/hooks/useAudioPlayerConfig.mjs +12 -0
  56. package/es/hooks/useGlobalConfig.mjs +18 -7
  57. package/es/hooks/useLocale.mjs +3 -11
  58. package/es/hooks/useMixins.mjs +1 -1
  59. package/es/hooks/usePermissionMap.mjs +12 -0
  60. package/es/hooks/useUserAvatarMap.mjs +2 -3
  61. package/es/hooks/useVideoPlayerConfig.mjs +12 -0
  62. package/es/index.mjs +13 -4
  63. package/es/locale/en.mjs +52 -3
  64. package/es/locale/zh_CN.mjs +48 -3
  65. package/es/make-installer.mjs +2 -0
  66. package/es/static/hy-svg-icons.js +462 -0
  67. package/es/static/index.js +2 -0
  68. package/es/static/protocolcheck.js +247 -0
  69. package/es/style/element/element.scss +9 -0
  70. package/es/style/element/index.scss +6 -3
  71. package/es/style/index.scss +11 -0
  72. package/es/style/theme.scss +73 -0
  73. package/es/utils/date.mjs +25 -1
  74. package/es/utils/file.mjs +5 -4
  75. package/es/utils/form.mjs +52 -0
  76. package/es/utils/handler.mjs +22 -2
  77. package/es/utils/index.mjs +5 -4
  78. package/es/utils/is.mjs +23 -2
  79. package/es/version.mjs +1 -1
  80. package/lib/components/appAudioPlayer/appAudioPlayer.vue.js +466 -0
  81. package/lib/components/appAudioPlayer/index.js +11 -0
  82. package/lib/components/appAudioPlayer/js/index.js +329 -0
  83. package/lib/components/appAudioPlayer/style/appAudioPlayer.scss +319 -0
  84. package/lib/components/appButton/style/appButton.scss +0 -1
  85. package/lib/components/appConfigProvider/appConfigProvider.vue.js +22 -1
  86. package/lib/components/appCutter/appCutter.vue.js +201 -128
  87. package/lib/components/appDatePicker/appDatePicker.vue.js +1 -1
  88. package/lib/components/appForm/appForm.vue.js +129 -206
  89. package/lib/components/appForm/cpns/appFormItem.vue.js +316 -0
  90. package/lib/components/appForm/cpns/arrayItem.vue.js +309 -0
  91. package/lib/components/appForm/cpns/extraItem.vue.js +144 -0
  92. package/lib/components/appForm/js/index.js +48 -23
  93. package/lib/components/appForm/js/useAppForm.js +30 -6
  94. package/lib/components/appForm/style/appForm.scss +53 -0
  95. package/lib/components/appIcon/appIcon.vue.js +0 -1
  96. package/lib/components/appIconBox/style/appIconBox.scss +0 -1
  97. package/lib/components/appInput/appInput.vue.js +103 -0
  98. package/lib/components/appInput/index.js +11 -0
  99. package/lib/components/appMenu/appMenu.vue.js +133 -0
  100. package/lib/components/appMenu/index.js +11 -0
  101. package/lib/components/appMenu/style/appMenu.scss +145 -0
  102. package/lib/components/appOrgCascader/appOrgCascader.vue.js +14 -10
  103. package/lib/components/appSearch/appSearch.vue.js +51 -207
  104. package/lib/components/appSearch/cpns/appSearchItem.vue.js +242 -0
  105. package/lib/components/appSearch/js/index.js +20 -7
  106. package/lib/components/appSearch/js/useAppSearch.js +10 -5
  107. package/lib/components/appSearch/style/appSearch.scss +10 -0
  108. package/lib/components/appTable/appTable.vue.js +319 -165
  109. package/lib/components/appTable/cpns/columnSelect.vue.js +151 -156
  110. package/lib/components/appTable/cpns/columnSelectItem.vue2.js +105 -111
  111. package/lib/components/appTable/cpns/headerItem.vue.js +102 -0
  112. package/lib/components/appTable/cpns/virtualTable.vue.js +564 -0
  113. package/lib/components/appTable/js/index.js +47 -19
  114. package/lib/components/appTable/js/search.js +1 -2
  115. package/lib/components/appTable/js/useAppTable.js +57 -13
  116. package/lib/components/appTable/style/appTable.scss +16 -0
  117. package/lib/components/appTooltip/appTooltip.vue.js +23 -12
  118. package/lib/components/appTree/appTree.vue.js +308 -0
  119. package/lib/components/appTree/index.js +11 -0
  120. package/lib/components/appTree/js/index.js +533 -0
  121. package/lib/components/appUserAvatar/appUserAvatar.vue.js +9 -8
  122. package/lib/components/appUserAvatar/style/appUserAvatar.scss +0 -1
  123. package/lib/components/appVideoPlayer/appVideoPlayer.vue.js +649 -0
  124. package/lib/components/appVideoPlayer/cpns/mediaLoading.vue.js +39 -0
  125. package/lib/components/appVideoPlayer/index.js +11 -0
  126. package/lib/components/appVideoPlayer/js/index.js +429 -0
  127. package/lib/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
  128. package/lib/components/appVideoPlayer/style/mediaLoading.scss +62 -0
  129. package/lib/components/index.js +42 -32
  130. package/lib/hooks/index.js +9 -0
  131. package/lib/hooks/useApi.js +4 -4
  132. package/lib/hooks/useAudioPlayerConfig.js +15 -0
  133. package/lib/hooks/useGlobalConfig.js +18 -7
  134. package/lib/hooks/useLocale.js +3 -11
  135. package/lib/hooks/useMixins.js +1 -1
  136. package/lib/hooks/usePermissionMap.js +15 -0
  137. package/lib/hooks/useUserAvatarMap.js +1 -2
  138. package/lib/hooks/useVideoPlayerConfig.js +15 -0
  139. package/lib/index.js +59 -33
  140. package/lib/locale/en.js +52 -3
  141. package/lib/locale/zh_CN.js +48 -3
  142. package/lib/make-installer.js +2 -0
  143. package/lib/static/hy-svg-icons.js +459 -8
  144. package/lib/static/index.js +5 -0
  145. package/lib/static/protocolcheck.js +249 -0
  146. package/lib/style/element/element.scss +9 -0
  147. package/lib/style/element/index.scss +6 -3
  148. package/lib/style/index.scss +11 -0
  149. package/lib/style/theme.scss +73 -0
  150. package/lib/utils/date.js +25 -0
  151. package/lib/utils/file.js +4 -4
  152. package/lib/utils/form.js +57 -0
  153. package/lib/utils/handler.js +22 -1
  154. package/lib/utils/index.js +8 -1
  155. package/lib/utils/is.js +23 -1
  156. package/lib/version.js +1 -1
  157. package/package.json +25 -9
  158. package/es/config/index.mjs +0 -1
  159. package/es/static/hy-svg-icons.mjs +0 -11
  160. package/lib/config/index.js +0 -2
@@ -6,9 +6,8 @@ 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 file = require('../../utils/file.js');
9
10
  var index = require('../appDialog/index.js');
10
- var is = require('../../utils/is.js');
11
- var file$1 = require('../../utils/file.js');
12
11
  var useLocale = require('../../hooks/useLocale.js');
13
12
 
14
13
  import "vue-cropper/dist/index.css";
@@ -20,9 +19,10 @@ const __default__ = vue.defineComponent({
20
19
  });
21
20
  const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
22
21
  props: /* @__PURE__ */ vue.mergeModels({
23
- dialogWidth: { type: [String, Number], default: 1e3 },
24
22
  defaultImg: { type: String },
23
+ // 默认展示图片
25
24
  uploadText: {
25
+ // 上传文本
26
26
  type: String,
27
27
  default: () => {
28
28
  const { t } = useLocale.useLocale();
@@ -30,24 +30,49 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
30
30
  }
31
31
  },
32
32
  showUpload: { type: Boolean, default: true },
33
+ // 是否显示上传模块
33
34
  showText: { type: Boolean, default: true },
35
+ // 是否显示上传提示文本
34
36
  showDelete: { type: Boolean, default: true },
37
+ // 是否显示删除按钮
35
38
  maxSize: { type: Number, default: 1024 * 1024 * 2 },
39
+ // 限制上传文件大小
36
40
  accept: { type: String, default: "image/png,image/jpg,image/jpeg,image/gif" },
41
+ // 限制上传文件类型
37
42
  info: { type: Boolean, default: true },
43
+ // 裁剪框的大小信息
38
44
  outputSize: { type: Number, default: 1 },
45
+ // 裁剪生成图片的质量
39
46
  outputType: { type: String, default: "jpeg" },
47
+ // 裁剪生成图片的格式
40
48
  autoCrop: { type: Boolean, default: true },
49
+ // 是否默认生成截图框
41
50
  autoCropWidth: { type: Number, default: 100 },
51
+ // 默认生成截图框宽度
42
52
  autoCropHeight: { type: Number, default: 100 },
53
+ // 默认生成截图框高度
43
54
  fixedBox: { type: Boolean, default: false },
55
+ // 固定截图框大小 不允许改变
44
56
  fixed: { type: Boolean, default: true },
57
+ // 是否开启截图框宽高固定比例
45
58
  fixedNumber: { type: Array },
59
+ // 截图框的宽高比例
46
60
  full: { type: Boolean, default: true },
61
+ // 是否输出原图比例的截图
47
62
  canMoveBox: { type: Boolean, default: false },
63
+ // 截图框能否拖动
48
64
  original: { type: Boolean, default: false },
65
+ // 上传图片按照原始比例渲染
49
66
  centerBox: { type: Boolean, default: true },
50
- infoTrue: { type: Boolean, default: false }
67
+ // 截图框是否被限制在图片里面
68
+ infoTrue: { type: Boolean, default: false },
69
+ // true 为展示真实输出图片宽高 false 展示看到的截图框宽高
70
+ readonly: { type: Boolean, default: false },
71
+ // 是否只读
72
+ directTransmission: { type: Boolean, default: true },
73
+ // 是否使用直传接口
74
+ onClose: Function,
75
+ onCancel: Function
51
76
  }, {
52
77
  "modelValue": { type: String },
53
78
  "modelModifiers": {}
@@ -96,30 +121,24 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
96
121
  // 上传图片按照原始比例渲染
97
122
  centerBox: props.centerBox,
98
123
  // 截图框是否被限制在图片里面
99
- infoTrue: props.infoTrue
124
+ infoTrue: props.infoTrue,
100
125
  // true 为展示真实输出图片宽高 false 展示看到的截图框宽高
126
+ ...customOptions.value
101
127
  }));
102
- function openFilePicker(param, name = "img.png") {
103
- if (typeof param === "string") {
104
- openCutter(param, name);
105
- return;
106
- }
107
- if (is.isFile(param)) {
108
- beforeAvatarUpload(file);
109
- return;
110
- }
111
- uploadRef.value.click();
112
- }
113
- async function beforeAvatarUpload(file2) {
114
- const limit = file2.size < props.maxSize;
128
+ const customOptions = vue.ref({});
129
+ let customSubmit = null;
130
+ let customCancel = null;
131
+ let customClose = null;
132
+ async function beforeAvatarUpload(file$1) {
133
+ const limit = file$1.size < props.maxSize;
115
134
  if (!limit) {
116
135
  elementPlus.ElMessage.error(
117
- t("cutter.uploadPictureLimit", [file$1.sizeToTextHandler(props.maxSize)])
136
+ t("cutter.uploadPictureLimit", [file.sizeToTextHandler(props.maxSize)])
118
137
  );
119
138
  return false;
120
139
  }
121
- const result = await file$1.blobToDataURL(file2);
122
- openCutter(result, file2.name);
140
+ const result = await file.blobToDataURL(file$1);
141
+ openCutter(result, file$1.name);
123
142
  return false;
124
143
  }
125
144
  function openCutter(src, name) {
@@ -138,16 +157,22 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
138
157
  async function onSubmitHandler() {
139
158
  return new Promise((resolve, reject) => {
140
159
  cropperRef.value.getCropBlob(async (data) => {
141
- var _a, _b;
142
160
  data.name = fileInfo.value.name;
143
- const res = await file$1.fileUpload(data).catch((res2) => {
144
- elementPlus.ElMessage.error(res2.msg || res2);
145
- reject();
146
- });
161
+ const res = await file.fileUpload(data, props.directTransmission).catch(
162
+ (res2) => {
163
+ elementPlus.ElMessage.error(res2.msg || res2);
164
+ reject();
165
+ }
166
+ );
147
167
  if (res.code === 200) {
148
- imgSrc.value = await file$1.blobToDataURL(data);
149
- modelValue.value = ((_a = res.data) == null ? void 0 : _a.key) || ((_b = res.data) == null ? void 0 : _b.url) || res.data;
150
- emits("confirm", res);
168
+ const url = await file.blobToDataURL(data);
169
+ const key = res.data?.key || res.data?.url || res.data;
170
+ imgSrc.value = url;
171
+ modelValue.value = key;
172
+ if (customSubmit) {
173
+ await customSubmit({ url, key });
174
+ }
175
+ emits("confirm", { url, key });
151
176
  resolve();
152
177
  } else {
153
178
  elementPlus.ElMessage.error(res.msg || res);
@@ -156,119 +181,167 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
156
181
  });
157
182
  });
158
183
  }
184
+ async function onCancelHandler() {
185
+ if (customCancel) {
186
+ return await customCancel();
187
+ }
188
+ if (props.onCancel) {
189
+ return await props.onCancel();
190
+ }
191
+ }
192
+ async function onCloseHandler() {
193
+ if (customCancel) {
194
+ return await customClose();
195
+ }
196
+ if (props.onClose) {
197
+ return await props.onClose();
198
+ }
199
+ }
159
200
  __expose({
160
- open: openFilePicker,
201
+ open: async (params) => {
202
+ const {
203
+ url,
204
+ fileName = "img.png",
205
+ options: options2,
206
+ file: file$1,
207
+ onSubmit,
208
+ onCancel,
209
+ onClose
210
+ } = params || {};
211
+ if (file$1) {
212
+ const result = await file.blobToDataURL(file$1);
213
+ openCutter(result, file$1.name);
214
+ } else if (url) {
215
+ openCutter(url, fileName);
216
+ } else {
217
+ uploadRef.value.click();
218
+ }
219
+ customOptions.value = options2 || {};
220
+ customClose = async () => {
221
+ if (onClose) {
222
+ await onClose();
223
+ }
224
+ customOptions.value = {};
225
+ };
226
+ customCancel = async () => {
227
+ if (onCancel) {
228
+ await onCancel();
229
+ }
230
+ customOptions.value = {};
231
+ };
232
+ customSubmit = async (value) => {
233
+ await onSubmit(value);
234
+ customOptions.value = {};
235
+ };
236
+ },
161
237
  clear: onClearHandler
162
238
  });
163
239
  return (_ctx, _cache) => {
164
- const _component_User = vue.resolveComponent("User");
165
240
  return vue.openBlock(), vue.createElementBlock("div", { class: "inline-block" }, [
166
- vue.withDirectives(vue.createVNode(
167
- vue.unref(elementPlus.ElUpload),
168
- {
169
- accept: ".png,.jpg,.gif,.jpeg",
170
- "before-upload": beforeAvatarUpload,
171
- action: "",
172
- class: "upload_box",
173
- "show-file-list": false
174
- },
175
- {
176
- default: vue.withCtx(() => [
177
- vue.createElementVNode(
178
- "div",
179
- {
180
- ref_key: "uploadRef",
181
- ref: uploadRef,
182
- class: "app-cutter-upload-box"
183
- },
184
- [
185
- vue.renderSlot(_ctx.$slots, "default", { src: imgSrc.value }, () => [
186
- vue.createElementVNode(
187
- "div",
188
- {
189
- class: "app-cutter-upload-card",
241
+ vue.withDirectives(vue.createVNode(vue.unref(elementPlus.ElUpload), {
242
+ accept: ".png,.jpg,.gif,.jpeg",
243
+ "before-upload": beforeAvatarUpload,
244
+ action: "",
245
+ class: "upload_box",
246
+ "show-file-list": false,
247
+ disabled: __props.readonly
248
+ }, {
249
+ default: vue.withCtx(() => [
250
+ vue.createElementVNode(
251
+ "div",
252
+ {
253
+ ref_key: "uploadRef",
254
+ ref: uploadRef,
255
+ class: "app-cutter-upload-box"
256
+ },
257
+ [
258
+ vue.renderSlot(_ctx.$slots, "default", { src: imgSrc.value }, () => [
259
+ vue.createElementVNode(
260
+ "div",
261
+ {
262
+ class: "app-cutter-upload-card",
263
+ style: vue.normalizeStyle({
264
+ width: `${__props.autoCropWidth}px`,
265
+ height: `${__props.autoCropHeight}px`
266
+ })
267
+ },
268
+ [
269
+ modelValue.value && imageSrc.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElImage), {
270
+ key: 0,
271
+ src: imageSrc.value,
190
272
  style: vue.normalizeStyle({
191
273
  width: `${__props.autoCropWidth}px`,
192
274
  height: `${__props.autoCropHeight}px`
193
275
  })
194
- },
195
- [
196
- modelValue.value && imageSrc.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElImage), {
197
- key: 0,
198
- src: imageSrc.value,
199
- style: vue.normalizeStyle({
200
- width: `${__props.autoCropWidth}px`,
201
- height: `${__props.autoCropHeight}px`
276
+ }, null, 8, ["src", "style"])) : (vue.openBlock(), vue.createElementBlock(
277
+ vue.Fragment,
278
+ { key: 1 },
279
+ [
280
+ vue.createCommentVNode(' <AppIcon\n v-else\n svg-name="emptyHead"\n style="width: 70px; height: 70px"\n /> '),
281
+ vue.createVNode(vue.unref(elementPlus.ElIcon), {
282
+ color: "rgb(var(--hy-auxiliary))",
283
+ size: "64"
284
+ }, {
285
+ default: vue.withCtx(() => [
286
+ vue.createVNode(vue.unref(iconsVue.User))
287
+ ]),
288
+ _: 1
289
+ /* STABLE */
202
290
  })
203
- }, null, 8, ["src", "style"])) : (vue.openBlock(), vue.createElementBlock(
204
- vue.Fragment,
205
- { key: 1 },
206
- [
207
- vue.createCommentVNode(' <AppIcon\n v-else\n svg-name="emptyHead"\n style="width: 70px; height: 70px"\n /> '),
208
- vue.createVNode(vue.unref(elementPlus.ElIcon), {
209
- color: "rgb(var(--hy-auxiliary))",
210
- size: "64"
211
- }, {
212
- default: vue.withCtx(() => [
213
- vue.createVNode(_component_User)
214
- ]),
215
- _: 1
216
- /* STABLE */
217
- })
218
- ],
219
- 2112
220
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
221
- ))
222
- ],
223
- 4
224
- /* STYLE */
225
- )
226
- ]),
227
- __props.uploadText && __props.showText ? (vue.openBlock(), vue.createElementBlock(
228
- "div",
229
- {
230
- key: 0,
231
- class: "app-cutter-tip"
232
- },
233
- vue.toDisplayString(__props.uploadText),
234
- 1
235
- /* TEXT */
236
- )) : vue.createCommentVNode("v-if", true),
237
- __props.showDelete ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
238
- key: 1,
239
- class: "app-cutter-delete",
240
- onClick: vue.withModifiers(($event) => onClearHandler(), ["stop"])
241
- }, [
242
- vue.createCommentVNode(' <AppIcon svg-name="delete" /> '),
243
- vue.createVNode(vue.unref(elementPlus.ElIcon), { color: "rgb(var(--hy-danger-2))" }, {
244
- default: vue.withCtx(() => [
245
- vue.createVNode(vue.unref(iconsVue.Delete))
246
- ]),
247
- _: 1
248
- /* STABLE */
249
- })
250
- ], 8, ["onClick"])), [
251
- [vue.vShow, modelValue.value]
252
- ]) : vue.createCommentVNode("v-if", true)
253
- ],
254
- 512
255
- /* NEED_PATCH */
256
- )
257
- ]),
258
- _: 3
259
- /* FORWARDED */
260
- },
261
- 512
262
- /* NEED_PATCH */
263
- ), [
291
+ ],
292
+ 2112
293
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
294
+ ))
295
+ ],
296
+ 4
297
+ /* STYLE */
298
+ )
299
+ ]),
300
+ __props.uploadText && __props.showText ? (vue.openBlock(), vue.createElementBlock(
301
+ "div",
302
+ {
303
+ key: 0,
304
+ class: "app-cutter-tip"
305
+ },
306
+ vue.toDisplayString(__props.uploadText),
307
+ 1
308
+ /* TEXT */
309
+ )) : vue.createCommentVNode("v-if", true),
310
+ __props.showDelete ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
311
+ key: 1,
312
+ class: "app-cutter-delete",
313
+ onClick: vue.withModifiers(($event) => onClearHandler(), ["stop"])
314
+ }, [
315
+ vue.createCommentVNode(' <AppIcon svg-name="delete" /> '),
316
+ vue.createVNode(vue.unref(elementPlus.ElIcon), { color: "rgb(var(--hy-danger-2))" }, {
317
+ default: vue.withCtx(() => [
318
+ vue.createVNode(vue.unref(iconsVue.Delete))
319
+ ]),
320
+ _: 1
321
+ /* STABLE */
322
+ })
323
+ ], 8, ["onClick"])), [
324
+ [vue.vShow, modelValue.value]
325
+ ]) : vue.createCommentVNode("v-if", true)
326
+ ],
327
+ 512
328
+ /* NEED_PATCH */
329
+ )
330
+ ]),
331
+ _: 3
332
+ /* FORWARDED */
333
+ }, 8, ["disabled"]), [
264
334
  [vue.vShow, __props.showUpload]
265
335
  ]),
266
- vue.createVNode(vue.unref(index.AppDialog), {
336
+ vue.createVNode(vue.unref(index.AppDialog), vue.mergeProps({
267
337
  modelValue: visible.value,
268
338
  "onUpdate:modelValue": ($event) => visible.value = $event,
269
- title: vue.unref(t)("cutter.imageSegmentation"),
339
+ title: vue.unref(t)("cutter.imageSegmentation")
340
+ }, _ctx.$attrs, {
341
+ onClose: onCloseHandler,
342
+ onCancel: onCancelHandler,
270
343
  onSubmit: onSubmitHandler
271
- }, {
344
+ }), {
272
345
  default: vue.withCtx(() => [
273
346
  vue.createElementVNode("div", { class: "h-[500px]" }, [
274
347
  vue.createVNode(vue.unref(vueCropper.VueCropper), vue.mergeProps({
@@ -280,7 +353,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
280
353
  ]),
281
354
  _: 1
282
355
  /* STABLE */
283
- }, 8, ["modelValue", "onUpdate:modelValue", "title"])
356
+ }, 16, ["modelValue", "onUpdate:modelValue", "title"])
284
357
  ]);
285
358
  };
286
359
  }
@@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
65
65
  startValue.value = value[0] ? `${value[0]}${isFill ? " 00:00:00" : ""}` : null;
66
66
  endValue.value = value[1] ? `${value[1]}${isFill ? " 23:59:59" : ""}` : null;
67
67
  } else {
68
- dateValue.value = isFill && (value == null ? void 0 : value.length) ? [`${value[0]} 00:00:00`, `${value[1]} 23:59:59`] : value;
68
+ dateValue.value = isFill && value?.length ? [`${value[0]} 00:00:00`, `${value[1]} 23:59:59`] : value;
69
69
  }
70
70
  emits("change", dateValue.value);
71
71
  }