hy-dispatch-ui-v3 0.1.5 → 0.2.0

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 (174) hide show
  1. package/README.md +47 -0
  2. package/dist/tailwind.css +408 -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 +25 -4
  9. package/es/components/appConfirmDialog/appConfirmDialog.vue.mjs +3 -3
  10. package/es/components/appConfirmDialog/appConfirmMethod.mjs +13 -13
  11. package/es/components/appCutter/appCutter.vue.mjs +358 -0
  12. package/es/components/appCutter/index.mjs +6 -0
  13. package/es/components/appCutter/style/appCutter.scss +51 -0
  14. package/es/components/appDatePicker/appDatePicker.vue.mjs +1 -1
  15. package/es/components/appDialog/appDialog.vue.mjs +205 -0
  16. package/es/components/appDialog/index.mjs +6 -0
  17. package/es/components/appDialog/style/appDialog.scss +0 -0
  18. package/es/components/appForm/appForm.vue.mjs +132 -209
  19. package/es/components/appForm/cpns/appFormItem.vue.mjs +312 -0
  20. package/es/components/appForm/cpns/arrayItem.vue.mjs +305 -0
  21. package/es/components/appForm/cpns/extraItem.vue.mjs +140 -0
  22. package/es/components/appForm/js/index.mjs +46 -24
  23. package/es/components/appForm/js/useAppForm.mjs +30 -6
  24. package/es/components/appForm/style/appForm.scss +53 -0
  25. package/es/components/appIcon/appIcon.vue.mjs +2 -1
  26. package/es/components/appIconBox/style/appIconBox.scss +0 -1
  27. package/es/components/appInput/appInput.vue.mjs +99 -0
  28. package/es/components/appInput/index.mjs +6 -0
  29. package/es/components/appMenu/appMenu.vue.mjs +129 -0
  30. package/es/components/appMenu/index.mjs +6 -0
  31. package/es/components/appMenu/style/appMenu.scss +145 -0
  32. package/es/components/appOrgCascader/appOrgCascader.vue.mjs +14 -10
  33. package/es/components/appSearch/appSearch.vue.mjs +55 -211
  34. package/es/components/appSearch/cpns/appSearchItem.vue.mjs +238 -0
  35. package/es/components/appSearch/js/index.mjs +20 -8
  36. package/es/components/appSearch/js/useAppSearch.mjs +10 -5
  37. package/es/components/appSearch/style/appSearch.scss +10 -0
  38. package/es/components/appTable/appTable.vue.mjs +313 -159
  39. package/es/components/appTable/cpns/columnSelect.vue.mjs +151 -156
  40. package/es/components/appTable/cpns/columnSelectItem.vue2.mjs +104 -110
  41. package/es/components/appTable/cpns/headerItem.vue.mjs +98 -0
  42. package/es/components/appTable/cpns/virtualTable.vue.mjs +560 -0
  43. package/es/components/appTable/js/index.mjs +46 -20
  44. package/es/components/appTable/js/search.mjs +1 -2
  45. package/es/components/appTable/js/useAppTable.mjs +58 -14
  46. package/es/components/appTable/style/appTable.scss +16 -0
  47. package/es/components/appTooltip/appTooltip.vue.mjs +24 -13
  48. package/es/components/appTree/appTree.vue.mjs +304 -0
  49. package/es/components/appTree/index.mjs +6 -0
  50. package/es/components/appTree/js/index.mjs +531 -0
  51. package/es/components/appUserAvatar/appUserAvatar.vue.mjs +9 -8
  52. package/es/components/appUserAvatar/style/appUserAvatar.scss +0 -1
  53. package/es/components/appVideoPlayer/appVideoPlayer.vue.mjs +647 -0
  54. package/es/components/appVideoPlayer/cpns/mediaLoading.vue.mjs +35 -0
  55. package/es/components/appVideoPlayer/index.mjs +6 -0
  56. package/es/components/appVideoPlayer/js/index.mjs +426 -0
  57. package/es/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
  58. package/es/components/appVideoPlayer/style/mediaLoading.scss +62 -0
  59. package/es/components/index.mjs +7 -0
  60. package/es/hooks/index.mjs +3 -0
  61. package/es/hooks/useApi.mjs +7 -3
  62. package/es/hooks/useAudioPlayerConfig.mjs +12 -0
  63. package/es/hooks/useGlobalConfig.mjs +20 -9
  64. package/es/hooks/useLocale.mjs +10 -8
  65. package/es/hooks/useMixins.mjs +1 -1
  66. package/es/hooks/usePermissionMap.mjs +12 -0
  67. package/es/hooks/useUserAvatarMap.mjs +6 -3
  68. package/es/hooks/useVideoPlayerConfig.mjs +12 -0
  69. package/es/index.mjs +16 -3
  70. package/es/locale/en.mjs +58 -4
  71. package/es/locale/zh_CN.mjs +56 -6
  72. package/es/make-installer.mjs +2 -0
  73. package/es/static/hy-svg-icons.js +462 -0
  74. package/es/static/protocolcheck.js +247 -0
  75. package/es/style/element/element.scss +9 -0
  76. package/es/style/element/index.scss +6 -3
  77. package/es/style/index.scss +11 -0
  78. package/es/style/theme.scss +73 -0
  79. package/es/utils/date.mjs +25 -1
  80. package/es/utils/file.mjs +69 -0
  81. package/es/utils/form.mjs +52 -0
  82. package/es/utils/handler.mjs +22 -2
  83. package/es/utils/index.mjs +6 -3
  84. package/es/utils/is.mjs +26 -2
  85. package/es/utils/loadScript.mjs +33 -0
  86. package/es/version.mjs +1 -1
  87. package/lib/components/appAudioPlayer/appAudioPlayer.vue.js +466 -0
  88. package/lib/components/appAudioPlayer/index.js +11 -0
  89. package/lib/components/appAudioPlayer/js/index.js +329 -0
  90. package/lib/components/appAudioPlayer/style/appAudioPlayer.scss +319 -0
  91. package/lib/components/appButton/style/appButton.scss +0 -1
  92. package/lib/components/appConfigProvider/appConfigProvider.vue.js +23 -2
  93. package/lib/components/appConfirmDialog/appConfirmDialog.vue.js +3 -3
  94. package/lib/components/appConfirmDialog/appConfirmMethod.js +13 -13
  95. package/lib/components/appCutter/appCutter.vue.js +362 -0
  96. package/lib/components/appCutter/index.js +11 -0
  97. package/lib/components/appCutter/style/appCutter.scss +51 -0
  98. package/lib/components/appDatePicker/appDatePicker.vue.js +1 -1
  99. package/lib/components/appDialog/appDialog.vue.js +209 -0
  100. package/lib/components/appDialog/index.js +11 -0
  101. package/lib/components/appDialog/style/appDialog.scss +0 -0
  102. package/lib/components/appForm/appForm.vue.js +129 -206
  103. package/lib/components/appForm/cpns/appFormItem.vue.js +316 -0
  104. package/lib/components/appForm/cpns/arrayItem.vue.js +309 -0
  105. package/lib/components/appForm/cpns/extraItem.vue.js +144 -0
  106. package/lib/components/appForm/js/index.js +48 -23
  107. package/lib/components/appForm/js/useAppForm.js +30 -6
  108. package/lib/components/appForm/style/appForm.scss +53 -0
  109. package/lib/components/appIcon/appIcon.vue.js +2 -1
  110. package/lib/components/appIconBox/style/appIconBox.scss +0 -1
  111. package/lib/components/appInput/appInput.vue.js +103 -0
  112. package/lib/components/appInput/index.js +11 -0
  113. package/lib/components/appMenu/appMenu.vue.js +133 -0
  114. package/lib/components/appMenu/index.js +11 -0
  115. package/lib/components/appMenu/style/appMenu.scss +145 -0
  116. package/lib/components/appOrgCascader/appOrgCascader.vue.js +14 -10
  117. package/lib/components/appSearch/appSearch.vue.js +51 -207
  118. package/lib/components/appSearch/cpns/appSearchItem.vue.js +242 -0
  119. package/lib/components/appSearch/js/index.js +20 -7
  120. package/lib/components/appSearch/js/useAppSearch.js +10 -5
  121. package/lib/components/appSearch/style/appSearch.scss +10 -0
  122. package/lib/components/appTable/appTable.vue.js +320 -166
  123. package/lib/components/appTable/cpns/columnSelect.vue.js +151 -156
  124. package/lib/components/appTable/cpns/columnSelectItem.vue2.js +105 -111
  125. package/lib/components/appTable/cpns/headerItem.vue.js +102 -0
  126. package/lib/components/appTable/cpns/virtualTable.vue.js +564 -0
  127. package/lib/components/appTable/js/index.js +47 -19
  128. package/lib/components/appTable/js/search.js +1 -2
  129. package/lib/components/appTable/js/useAppTable.js +57 -13
  130. package/lib/components/appTable/style/appTable.scss +16 -0
  131. package/lib/components/appTooltip/appTooltip.vue.js +23 -12
  132. package/lib/components/appTree/appTree.vue.js +308 -0
  133. package/lib/components/appTree/index.js +11 -0
  134. package/lib/components/appTree/js/index.js +533 -0
  135. package/lib/components/appUserAvatar/appUserAvatar.vue.js +9 -8
  136. package/lib/components/appUserAvatar/style/appUserAvatar.scss +0 -1
  137. package/lib/components/appVideoPlayer/appVideoPlayer.vue.js +651 -0
  138. package/lib/components/appVideoPlayer/cpns/mediaLoading.vue.js +39 -0
  139. package/lib/components/appVideoPlayer/index.js +11 -0
  140. package/lib/components/appVideoPlayer/js/index.js +429 -0
  141. package/lib/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
  142. package/lib/components/appVideoPlayer/style/mediaLoading.scss +62 -0
  143. package/lib/components/index.js +42 -28
  144. package/lib/hooks/index.js +9 -0
  145. package/lib/hooks/useApi.js +7 -3
  146. package/lib/hooks/useAudioPlayerConfig.js +15 -0
  147. package/lib/hooks/useGlobalConfig.js +18 -7
  148. package/lib/hooks/useLocale.js +9 -7
  149. package/lib/hooks/useMixins.js +1 -1
  150. package/lib/hooks/usePermissionMap.js +15 -0
  151. package/lib/hooks/useUserAvatarMap.js +5 -2
  152. package/lib/hooks/useVideoPlayerConfig.js +15 -0
  153. package/lib/index.js +70 -28
  154. package/lib/locale/en.js +58 -4
  155. package/lib/locale/zh_CN.js +56 -6
  156. package/lib/make-installer.js +2 -0
  157. package/lib/static/hy-svg-icons.js +459 -8
  158. package/lib/static/protocolcheck.js +249 -0
  159. package/lib/style/element/element.scss +9 -0
  160. package/lib/style/element/index.scss +6 -3
  161. package/lib/style/index.scss +11 -0
  162. package/lib/style/theme.scss +73 -0
  163. package/lib/utils/date.js +25 -0
  164. package/lib/utils/file.js +76 -0
  165. package/lib/utils/form.js +57 -0
  166. package/lib/utils/handler.js +22 -1
  167. package/lib/utils/index.js +19 -0
  168. package/lib/utils/is.js +27 -1
  169. package/lib/utils/loadScript.js +37 -0
  170. package/lib/version.js +1 -1
  171. package/package.json +13 -12
  172. package/es/config/index.mjs +0 -1
  173. package/es/static/hy-svg-icons.mjs +0 -11
  174. package/lib/config/index.js +0 -2
@@ -0,0 +1,205 @@
1
+ import { useModel, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode, normalizeClass, createElementBlock, createVNode, mergeModels, defineComponent } from 'vue';
2
+ import { ElDialog, ElIcon } from 'element-plus';
3
+ import { CircleClose } from '@element-plus/icons-vue';
4
+ import { useLocale } from '../../hooks/useLocale.mjs';
5
+ import { AppButton } from '../appButton/index.mjs';
6
+
7
+ import "./style/appDialog.scss";
8
+
9
+ const __default__ = defineComponent({
10
+ name: "AppDialog"
11
+ });
12
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
13
+ props: /* @__PURE__ */ mergeModels({
14
+ title: { type: String, default: "\u6807\u9898" },
15
+ titleAlign: { type: String, default: "default" },
16
+ // default、center
17
+ showClose: { type: Boolean, default: true },
18
+ showCancel: {
19
+ type: Boolean,
20
+ default: true
21
+ },
22
+ cancelType: {
23
+ type: String,
24
+ default: "default"
25
+ },
26
+ cancelText: {
27
+ type: String
28
+ },
29
+ showSubmit: {
30
+ type: Boolean,
31
+ default: true
32
+ },
33
+ submitType: {
34
+ type: String,
35
+ default: "primary"
36
+ },
37
+ submitText: {
38
+ type: String
39
+ },
40
+ onClose: Function,
41
+ onCancel: Function,
42
+ onSubmit: Function
43
+ }, {
44
+ "modelValue": { type: Boolean, default: false },
45
+ "modelModifiers": {}
46
+ }),
47
+ emits: /* @__PURE__ */ mergeModels(["hide"], ["update:modelValue"]),
48
+ setup(__props, { expose: __expose, emit: __emit }) {
49
+ const props = __props;
50
+ const emits = __emit;
51
+ const { t } = useLocale();
52
+ const visible = useModel(__props, "modelValue");
53
+ const loading = ref(false);
54
+ async function onSubmitHandler() {
55
+ if (loading.value) return;
56
+ loading.value = true;
57
+ if (props.onSubmit) {
58
+ try {
59
+ await props.onSubmit();
60
+ } catch (err) {
61
+ console.error(err);
62
+ loading.value = false;
63
+ return;
64
+ }
65
+ }
66
+ visible.value = false;
67
+ loading.value = false;
68
+ emits("hide");
69
+ }
70
+ async function onCancelHandler() {
71
+ if (loading.value) return;
72
+ loading.value = true;
73
+ if (props.onCancel) {
74
+ try {
75
+ await props.onCancel();
76
+ } catch (err) {
77
+ console.error(err);
78
+ loading.value = false;
79
+ return;
80
+ }
81
+ }
82
+ visible.value = false;
83
+ loading.value = false;
84
+ emits("hide");
85
+ }
86
+ async function onCloseHandler() {
87
+ if (loading.value) return;
88
+ loading.value = true;
89
+ if (props.onClose) {
90
+ try {
91
+ await props.onClose();
92
+ } catch (err) {
93
+ console.error(err);
94
+ loading.value = false;
95
+ return;
96
+ }
97
+ }
98
+ visible.value = false;
99
+ loading.value = false;
100
+ emits("hide");
101
+ }
102
+ __expose({});
103
+ return (_ctx, _cache) => {
104
+ return openBlock(), createBlock(unref(ElDialog), mergeProps({
105
+ modelValue: visible.value,
106
+ "onUpdate:modelValue": ($event) => visible.value = $event,
107
+ "append-to-body": true,
108
+ "close-on-click-modal": false,
109
+ "close-on-press-escape": false,
110
+ "show-close": false,
111
+ width: "37.5rem"
112
+ }, _ctx.$attrs), {
113
+ header: withCtx(() => [
114
+ createElementVNode(
115
+ "div",
116
+ {
117
+ 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" }])
118
+ },
119
+ [
120
+ createElementVNode(
121
+ "span",
122
+ null,
123
+ toDisplayString(__props.title),
124
+ 1
125
+ /* TEXT */
126
+ ),
127
+ __props.showClose ? (openBlock(), createElementBlock(
128
+ "div",
129
+ {
130
+ key: 0,
131
+ class: normalizeClass(["text-lg absolute right-4 cursor-pointer text-danger-2", { "cursor-not-allowed": loading.value }]),
132
+ onClick: onCloseHandler
133
+ },
134
+ [
135
+ createCommentVNode(' <AppIcon svg-name="close" class="!w-[20px] !h-[20px]" /> '),
136
+ createVNode(unref(ElIcon), {
137
+ size: "18",
138
+ color: "rgb(var(--hy-danger-2))"
139
+ }, {
140
+ default: withCtx(() => [
141
+ createVNode(unref(CircleClose))
142
+ ]),
143
+ _: 1
144
+ /* STABLE */
145
+ })
146
+ ],
147
+ 2
148
+ /* CLASS */
149
+ )) : createCommentVNode("v-if", true)
150
+ ],
151
+ 2
152
+ /* CLASS */
153
+ )
154
+ ]),
155
+ default: withCtx(() => [
156
+ createElementVNode("div", { class: "text-main" }, [
157
+ createElementVNode("div", { class: "p-6 box-border" }, [
158
+ renderSlot(_ctx.$slots, "default"),
159
+ createElementVNode("div", { class: "flex items-center justify-between pt-5" }, [
160
+ __props.showCancel ? (openBlock(), createBlock(unref(AppButton), {
161
+ key: 0,
162
+ type: __props.cancelType,
163
+ disabled: loading.value,
164
+ class: "!min-w-[120px]",
165
+ onClick: onCancelHandler
166
+ }, {
167
+ default: withCtx(() => [
168
+ createTextVNode(
169
+ toDisplayString(unref(t)("dialog.cancel")),
170
+ 1
171
+ /* TEXT */
172
+ )
173
+ ]),
174
+ _: 1
175
+ /* STABLE */
176
+ }, 8, ["type", "disabled"])) : createCommentVNode("v-if", true),
177
+ __props.showSubmit ? (openBlock(), createBlock(unref(AppButton), {
178
+ key: 1,
179
+ type: __props.submitType,
180
+ disabled: loading.value,
181
+ class: "!min-w-[120px]",
182
+ onClick: onSubmitHandler
183
+ }, {
184
+ default: withCtx(() => [
185
+ createTextVNode(
186
+ toDisplayString(unref(t)("dialog.confirm")),
187
+ 1
188
+ /* TEXT */
189
+ )
190
+ ]),
191
+ _: 1
192
+ /* STABLE */
193
+ }, 8, ["type", "disabled"])) : createCommentVNode("v-if", true)
194
+ ])
195
+ ])
196
+ ])
197
+ ]),
198
+ _: 3
199
+ /* FORWARDED */
200
+ }, 16, ["modelValue", "onUpdate:modelValue"]);
201
+ };
202
+ }
203
+ });
204
+
205
+ export { _sfc_main as default };
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './appDialog.vue.mjs';
2
+ import { withInstall } from '../../utils/handler.mjs';
3
+
4
+ const AppDialog = withInstall(_sfc_main);
5
+
6
+ export { AppDialog, AppDialog as default };
File without changes
@@ -1,13 +1,12 @@
1
- import { defineComponent, useTemplateRef, computed, nextTick, unref, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeStyle, createCommentVNode, createElementBlock, Fragment, renderList, renderSlot, toDisplayString, createVNode, createTextVNode } from 'vue';
2
- import { ElForm, ElFormItem, ElPopover, ElInput, ElSelect, ElRadioGroup, ElCheckboxGroup } from 'element-plus';
3
- import { AppIcon } from '../appIcon/index.mjs';
4
- import { AppDatePicker } from '../appDatePicker/index.mjs';
5
- import { AppOrgCascader } from '../appOrgCascader/index.mjs';
6
- import { columnShowHandler, columnItemStyle, isRequired, renderText, isDisabled } from './js/index.mjs';
1
+ import { defineComponent, useTemplateRef, computed, nextTick, unref, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeStyle, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, createVNode, createSlots, renderSlot } from 'vue';
2
+ import { ElForm, ElDivider } from 'element-plus';
3
+ import _sfc_main$3 from './cpns/appFormItem.vue.mjs';
4
+ import _sfc_main$1 from './cpns/extraItem.vue.mjs';
5
+ import _sfc_main$2 from './cpns/arrayItem.vue.mjs';
6
+ import { columnItemStyle, columnShowHandler } from './js/index.mjs';
7
7
  import { resetAppFormValue } from './js/useAppForm.mjs';
8
8
  import { useLocale } from '../../hooks/useLocale.mjs';
9
9
  import { isArray, isNumber } from '../../utils/is.mjs';
10
- import { funRunHandler } from '../../utils/handler.mjs';
11
10
 
12
11
  import "./style/appForm.scss";
13
12
 
@@ -30,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
30
29
  },
31
30
  columnNum: {
32
31
  type: Number,
33
- default: 1
32
+ default: 2
34
33
  },
35
34
  readonly: {
36
35
  type: Boolean,
@@ -39,6 +38,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
39
38
  loading: {
40
39
  type: Boolean,
41
40
  default: false
41
+ },
42
+ size: {
43
+ type: String,
44
+ default: "default"
45
+ // 'large' | 'default' | 'small'
42
46
  }
43
47
  },
44
48
  setup(__props, { expose: __expose }) {
@@ -70,12 +74,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
70
74
  await nextTick();
71
75
  return unref(formTemplateRef).validateField(fields);
72
76
  },
73
- resetFields: (fields) => {
77
+ resetFields: async (fields) => {
74
78
  let columns = props.columns || [];
75
- if (fields && (fields == null ? void 0 : fields.length)) {
76
- columns = fields.map((key) => formColumnMap.get(key)).filter(Boolean);
79
+ if (fields && fields?.length) {
80
+ columns = fields.map((key) => formColumnMap.value.get(key)).filter(Boolean);
77
81
  }
78
82
  resetAppFormValue(columns, props.model);
83
+ unref(formTemplateRef).clearValidate(fields);
79
84
  },
80
85
  scrollToField: async (fields) => {
81
86
  await nextTick();
@@ -86,8 +91,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
86
91
  unref(formTemplateRef).clearValidate(fields);
87
92
  },
88
93
  fields: computed(() => {
89
- var _a;
90
- return ((_a = unref(formTemplateRef)) == null ? void 0 : _a.fields) || [];
94
+ return unref(formTemplateRef)?.fields || [];
91
95
  }),
92
96
  getField: async (fields) => {
93
97
  await nextTick();
@@ -104,7 +108,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
104
108
  ref: formTemplateRef,
105
109
  model: __props.model,
106
110
  rules: __props.rules,
107
- "label-position": "top"
111
+ "label-position": "top",
112
+ size: __props.size,
113
+ class: "px-2"
108
114
  }, _ctx.$attrs), {
109
115
  default: withCtx(() => [
110
116
  createElementVNode(
@@ -125,200 +131,117 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
125
131
  key: column.key
126
132
  },
127
133
  [
128
- unref(columnShowHandler)(props, column) ? (openBlock(), createBlock(unref(ElFormItem), {
129
- key: 0,
130
- rules: column.rules,
131
- prop: unref(isArray)(column.field) ? column.field[0] : column.field,
132
- style: normalizeStyle(unref(columnItemStyle)(props, column))
133
- }, {
134
- default: withCtx(() => {
135
- var _a;
136
- return [
137
- createCommentVNode(" \u8868\u5355\u9879label "),
138
- createElementVNode("div", { class: "w-full flex justify-between text-main" }, [
139
- createElementVNode("div", { class: "flex items-center" }, [
140
- renderSlot(_ctx.$slots, column.labelSlot, { column }, () => [
141
- createElementVNode(
142
- "span",
143
- { class: "text-main" },
144
- toDisplayString(column.label),
145
- 1
146
- /* TEXT */
147
- )
148
- ]),
149
- unref(isRequired)(props, column) ? (openBlock(), createElementBlock("span", {
150
- key: 0,
151
- class: "label-required"
152
- })) : createCommentVNode("v-if", true),
153
- column.help ? (openBlock(), createBlock(
154
- unref(ElPopover),
155
- {
156
- key: 1,
157
- placement: "bottom-start",
158
- "popper-class": "popover_echarts w-[200px]",
159
- trigger: "hover"
160
- },
161
- {
162
- reference: withCtx(() => [
163
- createElementVNode("div", { class: "flex items-center" }, [
164
- createVNode(unref(AppIcon), {
165
- "svg-name": "help",
166
- "class-name": "!w-3 !h-3 ml-1 svgBox"
167
- }),
168
- createTextVNode(
169
- " " + toDisplayString(unref(t)("hy.help")),
170
- 1
171
- /* TEXT */
172
- )
173
- ])
174
- ]),
175
- default: withCtx(() => [
176
- createElementVNode(
177
- "div",
178
- null,
179
- toDisplayString(unref(funRunHandler)(column.help)),
180
- 1
181
- /* TEXT */
182
- )
183
- ]),
184
- _: 2
185
- /* DYNAMIC */
186
- },
187
- 1024
188
- /* DYNAMIC_SLOTS */
189
- )) : createCommentVNode("v-if", true)
190
- ]),
191
- column.rightSlot && _ctx.$slots[column.rightSlot] ? (openBlock(), createElementBlock("div", {
192
- key: 0,
193
- class: "ml-2"
194
- }, [
195
- renderSlot(_ctx.$slots, column.rightSlot)
196
- ])) : createCommentVNode("v-if", true)
197
- ]),
198
- createCommentVNode(" \u8868\u5355\u7EC4\u4EF6 "),
199
- column.readonly || __props.readonly || !column.type && !column.slot ? (openBlock(), createElementBlock(
200
- "span",
201
- { key: 0 },
202
- toDisplayString(unref(renderText)(props, column, columnIndex)),
203
- 1
204
- /* TEXT */
205
- )) : (openBlock(), createElementBlock(
206
- Fragment,
207
- { key: 1 },
208
- [
209
- createCommentVNode(" \u81EA\u5B9A\u4E49\u5177\u540D\u63D2\u69FD "),
210
- column.slot && _ctx.$slots[column.slot] ? renderSlot(_ctx.$slots, column.slot, {
211
- key: 0,
212
- column
213
- }) : column.type === "input" ? (openBlock(), createElementBlock(
214
- Fragment,
215
- { key: 1 },
216
- [
217
- createCommentVNode(" \u8F93\u5165\u6846 "),
218
- createVNode(unref(ElInput), mergeProps({
219
- modelValue: __props.model[column.field],
220
- "onUpdate:modelValue": ($event) => __props.model[column.field] = $event
221
- }, { ref_for: true }, column.attrs, {
222
- disabled: unref(isDisabled)(props, column)
223
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
224
- ],
225
- 2112
226
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
227
- )) : column.type === "select" ? (openBlock(), createElementBlock(
228
- Fragment,
229
- { key: 2 },
230
- [
231
- createCommentVNode(" \u9009\u62E9\u6846 "),
232
- createVNode(unref(ElSelect), mergeProps({
233
- modelValue: __props.model[column.field],
234
- "onUpdate:modelValue": ($event) => __props.model[column.field] = $event
235
- }, { ref_for: true }, column.attrs, {
236
- disabled: unref(isDisabled)(props, column)
237
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
238
- ],
239
- 2112
240
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
241
- )) : column.type === "date-picker" ? (openBlock(), createElementBlock(
242
- Fragment,
243
- { key: 3 },
244
- [
245
- createCommentVNode(" \u65E5\u671F\u9009\u62E9\u6846 "),
246
- [
247
- "datetimerange",
248
- "daterange",
249
- "monthrange",
250
- "yearrange"
251
- ].includes((_a = column.attrs) == null ? void 0 : _a.type) && unref(isArray)(column.field) ? (openBlock(), createBlock(unref(AppDatePicker), mergeProps({
252
- key: 0,
253
- start: __props.model[column.field[0]],
254
- "onUpdate:start": ($event) => __props.model[column.field[0]] = $event,
255
- end: __props.model[column.field[1]],
256
- "onUpdate:end": ($event) => __props.model[column.field[1]] = $event,
257
- "is-range": true,
258
- style: { "width": "100%" }
259
- }, { ref_for: true }, column.attrs, {
260
- disabled: unref(isDisabled)(props, column)
261
- }), null, 16, ["start", "onUpdate:start", "end", "onUpdate:end", "disabled"])) : (openBlock(), createBlock(unref(AppDatePicker), mergeProps({
262
- key: 1,
263
- modelValue: __props.model[column.field],
264
- "onUpdate:modelValue": ($event) => __props.model[column.field] = $event,
265
- "is-range": false,
266
- style: { "width": "100%" }
267
- }, { ref_for: true }, column.attrs, {
268
- disabled: unref(isDisabled)(props, column)
269
- }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"]))
270
- ],
271
- 64
272
- /* STABLE_FRAGMENT */
273
- )) : column.type === "radio" ? (openBlock(), createElementBlock(
274
- Fragment,
275
- { key: 4 },
276
- [
277
- createCommentVNode(" \u5355\u9009 "),
278
- createVNode(unref(ElRadioGroup), mergeProps({
279
- modelValue: __props.model[column.field],
280
- "onUpdate:modelValue": ($event) => __props.model[column.field] = $event,
281
- disabled: unref(isDisabled)(props, column)
282
- }, { ref_for: true }, column.attrs), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
283
- ],
284
- 2112
285
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
286
- )) : column.type === "checkbox" ? (openBlock(), createElementBlock(
287
- Fragment,
288
- { key: 5 },
289
- [
290
- createCommentVNode(" \u591A\u9009 "),
291
- createVNode(unref(ElCheckboxGroup), mergeProps({
292
- modelValue: __props.model[column.field],
293
- "onUpdate:modelValue": ($event) => __props.model[column.field] = $event,
294
- disabled: unref(isDisabled)(props, column)
295
- }, { ref_for: true }, column.attrs), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
296
- ],
297
- 2112
298
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
299
- )) : column.type === "org-cascader" ? (openBlock(), createElementBlock(
300
- Fragment,
301
- { key: 6 },
302
- [
303
- createCommentVNode(" \u90E8\u95E8\u7EA7\u8054\u9009\u62E9\u6846 "),
304
- createVNode(unref(AppOrgCascader), mergeProps({
305
- modelValue: __props.model[column.field],
306
- "onUpdate:modelValue": ($event) => __props.model[column.field] = $event,
307
- disabled: unref(isDisabled)(props, column)
308
- }, { ref_for: true }, column.attrs), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
309
- ],
310
- 2112
311
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
312
- )) : createCommentVNode("v-if", true)
313
- ],
314
- 64
315
- /* STABLE_FRAGMENT */
316
- ))
317
- ];
318
- }),
319
- _: 2
320
- /* DYNAMIC */
321
- }, 1032, ["rules", "prop", "style"])) : createCommentVNode("v-if", true)
134
+ createCommentVNode(" \u6807\u9898 "),
135
+ column.type === "title" ? (openBlock(), createElementBlock(
136
+ "div",
137
+ {
138
+ key: 0,
139
+ class: normalizeClass(["w-full flex items-center text-theme whitespace-nowrap relative mb-3 mt-1", [__props.size === "small" ? "text-xs" : "text-sm"]]),
140
+ style: normalizeStyle(unref(columnItemStyle)(props, column))
141
+ },
142
+ [
143
+ createElementVNode(
144
+ "span",
145
+ { class: "mr-2" },
146
+ toDisplayString(column.label),
147
+ 1
148
+ /* TEXT */
149
+ ),
150
+ createVNode(unref(ElDivider), {
151
+ "content-position": "left",
152
+ "border-style": "dashed",
153
+ class: "border-[rgba(var(--hy-theme),0.5)] my-0"
154
+ }),
155
+ createElementVNode("div", { class: "absolute top-1/2 -left-1.5 transform -translate-x-full -translate-y-1/2 w-0.5 h-3 bg-theme" })
156
+ ],
157
+ 6
158
+ /* CLASS, STYLE */
159
+ )) : column.type === "extra" && !_ctx.$slots[column.slot] ? (openBlock(), createElementBlock(
160
+ Fragment,
161
+ { key: 1 },
162
+ [
163
+ createCommentVNode(" \u8865\u5145\u4FE1\u606F\u8868\u5355 "),
164
+ unref(columnShowHandler)(props, column) ? (openBlock(), createBlock(_sfc_main$1, {
165
+ key: 0,
166
+ model: __props.model,
167
+ column,
168
+ columnNum: __props.columnNum,
169
+ loading: __props.loading,
170
+ readonly: __props.readonly,
171
+ style: normalizeStyle(unref(columnItemStyle)(props, column))
172
+ }, createSlots({
173
+ _: 2
174
+ /* DYNAMIC */
175
+ }, [
176
+ renderList(_ctx.$slots, (_, slotName) => {
177
+ return {
178
+ name: slotName,
179
+ fn: withCtx((scope) => [
180
+ renderSlot(_ctx.$slots, slotName, mergeProps({ ref_for: true }, scope))
181
+ ])
182
+ };
183
+ })
184
+ ]), 1032, ["model", "column", "columnNum", "loading", "readonly", "style"])) : createCommentVNode("v-if", true)
185
+ ],
186
+ 64
187
+ /* STABLE_FRAGMENT */
188
+ )) : column.type === "array" && !_ctx.$slots[column.slot] ? (openBlock(), createElementBlock(
189
+ Fragment,
190
+ { key: 2 },
191
+ [
192
+ createCommentVNode(" \u8868\u5355\u6570\u7EC4 "),
193
+ unref(columnShowHandler)(props, column) ? (openBlock(), createBlock(_sfc_main$2, {
194
+ key: 0,
195
+ model: __props.model,
196
+ column,
197
+ columnNum: __props.columnNum,
198
+ loading: __props.loading,
199
+ readonly: __props.readonly,
200
+ size: __props.size,
201
+ style: normalizeStyle(unref(columnItemStyle)(props, column))
202
+ }, createSlots({
203
+ _: 2
204
+ /* DYNAMIC */
205
+ }, [
206
+ renderList(_ctx.$slots, (_, slotName) => {
207
+ return {
208
+ name: slotName,
209
+ fn: withCtx((scope) => [
210
+ renderSlot(_ctx.$slots, slotName, mergeProps({ ref_for: true }, scope))
211
+ ])
212
+ };
213
+ })
214
+ ]), 1032, ["model", "column", "columnNum", "loading", "readonly", "size", "style"])) : createCommentVNode("v-if", true)
215
+ ],
216
+ 64
217
+ /* STABLE_FRAGMENT */
218
+ )) : (openBlock(), createElementBlock(
219
+ Fragment,
220
+ { key: 3 },
221
+ [
222
+ createCommentVNode(" \u8868\u5355 "),
223
+ createVNode(_sfc_main$3, {
224
+ model: __props.model,
225
+ column,
226
+ loading: __props.loading,
227
+ readonly: __props.readonly
228
+ }, createSlots({
229
+ _: 2
230
+ /* DYNAMIC */
231
+ }, [
232
+ renderList(_ctx.$slots, (_, slotName) => {
233
+ return {
234
+ name: slotName,
235
+ fn: withCtx((scope) => [
236
+ renderSlot(_ctx.$slots, slotName, mergeProps({ ref_for: true }, scope))
237
+ ])
238
+ };
239
+ })
240
+ ]), 1032, ["model", "column", "loading", "readonly"])
241
+ ],
242
+ 64
243
+ /* STABLE_FRAGMENT */
244
+ ))
322
245
  ],
323
246
  64
324
247
  /* STABLE_FRAGMENT */
@@ -334,7 +257,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
334
257
  ]),
335
258
  _: 3
336
259
  /* FORWARDED */
337
- }, 16, ["model", "rules"]);
260
+ }, 16, ["model", "rules", "size"]);
338
261
  };
339
262
  }
340
263
  });