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