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.
- package/README.md +47 -0
- package/dist/tailwind.css +349 -4
- package/es/components/appAudioPlayer/appAudioPlayer.vue.mjs +462 -0
- package/es/components/appAudioPlayer/index.mjs +6 -0
- package/es/components/appAudioPlayer/js/index.mjs +327 -0
- package/es/components/appAudioPlayer/style/appAudioPlayer.scss +319 -0
- package/es/components/appButton/style/appButton.scss +0 -1
- package/es/components/appConfigProvider/appConfigProvider.vue.mjs +22 -1
- package/es/components/appCutter/appCutter.vue.mjs +202 -129
- package/es/components/appDatePicker/appDatePicker.vue.mjs +1 -1
- package/es/components/appForm/appForm.vue.mjs +132 -209
- package/es/components/appForm/cpns/appFormItem.vue.mjs +312 -0
- package/es/components/appForm/cpns/arrayItem.vue.mjs +305 -0
- package/es/components/appForm/cpns/extraItem.vue.mjs +140 -0
- package/es/components/appForm/js/index.mjs +46 -24
- package/es/components/appForm/js/useAppForm.mjs +30 -6
- package/es/components/appForm/style/appForm.scss +53 -0
- package/es/components/appIcon/appIcon.vue.mjs +0 -1
- package/es/components/appIconBox/style/appIconBox.scss +0 -1
- package/es/components/appInput/appInput.vue.mjs +99 -0
- package/es/components/appInput/index.mjs +6 -0
- package/es/components/appMenu/appMenu.vue.mjs +129 -0
- package/es/components/appMenu/index.mjs +6 -0
- package/es/components/appMenu/style/appMenu.scss +145 -0
- package/es/components/appOrgCascader/appOrgCascader.vue.mjs +14 -10
- package/es/components/appSearch/appSearch.vue.mjs +55 -211
- package/es/components/appSearch/cpns/appSearchItem.vue.mjs +238 -0
- package/es/components/appSearch/js/index.mjs +20 -8
- package/es/components/appSearch/js/useAppSearch.mjs +10 -5
- package/es/components/appSearch/style/appSearch.scss +10 -0
- package/es/components/appTable/appTable.vue.mjs +312 -158
- package/es/components/appTable/cpns/columnSelect.vue.mjs +151 -156
- package/es/components/appTable/cpns/columnSelectItem.vue2.mjs +104 -110
- package/es/components/appTable/cpns/headerItem.vue.mjs +98 -0
- package/es/components/appTable/cpns/virtualTable.vue.mjs +560 -0
- package/es/components/appTable/js/index.mjs +46 -20
- package/es/components/appTable/js/search.mjs +1 -2
- package/es/components/appTable/js/useAppTable.mjs +58 -14
- package/es/components/appTable/style/appTable.scss +16 -0
- package/es/components/appTooltip/appTooltip.vue.mjs +24 -13
- package/es/components/appTree/appTree.vue.mjs +304 -0
- package/es/components/appTree/index.mjs +6 -0
- package/es/components/appTree/js/index.mjs +531 -0
- package/es/components/appUserAvatar/appUserAvatar.vue.mjs +9 -8
- package/es/components/appUserAvatar/style/appUserAvatar.scss +0 -1
- package/es/components/appVideoPlayer/appVideoPlayer.vue.mjs +645 -0
- package/es/components/appVideoPlayer/cpns/mediaLoading.vue.mjs +35 -0
- package/es/components/appVideoPlayer/index.mjs +6 -0
- package/es/components/appVideoPlayer/js/index.mjs +426 -0
- package/es/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
- package/es/components/appVideoPlayer/style/mediaLoading.scss +62 -0
- package/es/components/index.mjs +5 -0
- package/es/hooks/index.mjs +3 -0
- package/es/hooks/useApi.mjs +4 -4
- package/es/hooks/useAudioPlayerConfig.mjs +12 -0
- package/es/hooks/useGlobalConfig.mjs +18 -7
- package/es/hooks/useLocale.mjs +3 -11
- package/es/hooks/useMixins.mjs +1 -1
- package/es/hooks/usePermissionMap.mjs +12 -0
- package/es/hooks/useUserAvatarMap.mjs +2 -3
- package/es/hooks/useVideoPlayerConfig.mjs +12 -0
- package/es/index.mjs +13 -4
- package/es/locale/en.mjs +52 -3
- package/es/locale/zh_CN.mjs +48 -3
- package/es/make-installer.mjs +2 -0
- package/es/static/hy-svg-icons.js +462 -0
- package/es/static/index.js +2 -0
- package/es/static/protocolcheck.js +247 -0
- package/es/style/element/element.scss +9 -0
- package/es/style/element/index.scss +6 -3
- package/es/style/index.scss +11 -0
- package/es/style/theme.scss +73 -0
- package/es/utils/date.mjs +25 -1
- package/es/utils/file.mjs +5 -4
- package/es/utils/form.mjs +52 -0
- package/es/utils/handler.mjs +22 -2
- package/es/utils/index.mjs +5 -4
- package/es/utils/is.mjs +23 -2
- package/es/version.mjs +1 -1
- package/lib/components/appAudioPlayer/appAudioPlayer.vue.js +466 -0
- package/lib/components/appAudioPlayer/index.js +11 -0
- package/lib/components/appAudioPlayer/js/index.js +329 -0
- package/lib/components/appAudioPlayer/style/appAudioPlayer.scss +319 -0
- package/lib/components/appButton/style/appButton.scss +0 -1
- package/lib/components/appConfigProvider/appConfigProvider.vue.js +22 -1
- package/lib/components/appCutter/appCutter.vue.js +201 -128
- package/lib/components/appDatePicker/appDatePicker.vue.js +1 -1
- package/lib/components/appForm/appForm.vue.js +129 -206
- package/lib/components/appForm/cpns/appFormItem.vue.js +316 -0
- package/lib/components/appForm/cpns/arrayItem.vue.js +309 -0
- package/lib/components/appForm/cpns/extraItem.vue.js +144 -0
- package/lib/components/appForm/js/index.js +48 -23
- package/lib/components/appForm/js/useAppForm.js +30 -6
- package/lib/components/appForm/style/appForm.scss +53 -0
- package/lib/components/appIcon/appIcon.vue.js +0 -1
- package/lib/components/appIconBox/style/appIconBox.scss +0 -1
- package/lib/components/appInput/appInput.vue.js +103 -0
- package/lib/components/appInput/index.js +11 -0
- package/lib/components/appMenu/appMenu.vue.js +133 -0
- package/lib/components/appMenu/index.js +11 -0
- package/lib/components/appMenu/style/appMenu.scss +145 -0
- package/lib/components/appOrgCascader/appOrgCascader.vue.js +14 -10
- package/lib/components/appSearch/appSearch.vue.js +51 -207
- package/lib/components/appSearch/cpns/appSearchItem.vue.js +242 -0
- package/lib/components/appSearch/js/index.js +20 -7
- package/lib/components/appSearch/js/useAppSearch.js +10 -5
- package/lib/components/appSearch/style/appSearch.scss +10 -0
- package/lib/components/appTable/appTable.vue.js +319 -165
- package/lib/components/appTable/cpns/columnSelect.vue.js +151 -156
- package/lib/components/appTable/cpns/columnSelectItem.vue2.js +105 -111
- package/lib/components/appTable/cpns/headerItem.vue.js +102 -0
- package/lib/components/appTable/cpns/virtualTable.vue.js +564 -0
- package/lib/components/appTable/js/index.js +47 -19
- package/lib/components/appTable/js/search.js +1 -2
- package/lib/components/appTable/js/useAppTable.js +57 -13
- package/lib/components/appTable/style/appTable.scss +16 -0
- package/lib/components/appTooltip/appTooltip.vue.js +23 -12
- package/lib/components/appTree/appTree.vue.js +308 -0
- package/lib/components/appTree/index.js +11 -0
- package/lib/components/appTree/js/index.js +533 -0
- package/lib/components/appUserAvatar/appUserAvatar.vue.js +9 -8
- package/lib/components/appUserAvatar/style/appUserAvatar.scss +0 -1
- package/lib/components/appVideoPlayer/appVideoPlayer.vue.js +649 -0
- package/lib/components/appVideoPlayer/cpns/mediaLoading.vue.js +39 -0
- package/lib/components/appVideoPlayer/index.js +11 -0
- package/lib/components/appVideoPlayer/js/index.js +429 -0
- package/lib/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
- package/lib/components/appVideoPlayer/style/mediaLoading.scss +62 -0
- package/lib/components/index.js +42 -32
- package/lib/hooks/index.js +9 -0
- package/lib/hooks/useApi.js +4 -4
- package/lib/hooks/useAudioPlayerConfig.js +15 -0
- package/lib/hooks/useGlobalConfig.js +18 -7
- package/lib/hooks/useLocale.js +3 -11
- package/lib/hooks/useMixins.js +1 -1
- package/lib/hooks/usePermissionMap.js +15 -0
- package/lib/hooks/useUserAvatarMap.js +1 -2
- package/lib/hooks/useVideoPlayerConfig.js +15 -0
- package/lib/index.js +59 -33
- package/lib/locale/en.js +52 -3
- package/lib/locale/zh_CN.js +48 -3
- package/lib/make-installer.js +2 -0
- package/lib/static/hy-svg-icons.js +459 -8
- package/lib/static/index.js +5 -0
- package/lib/static/protocolcheck.js +249 -0
- package/lib/style/element/element.scss +9 -0
- package/lib/style/element/index.scss +6 -3
- package/lib/style/index.scss +11 -0
- package/lib/style/theme.scss +73 -0
- package/lib/utils/date.js +25 -0
- package/lib/utils/file.js +4 -4
- package/lib/utils/form.js +57 -0
- package/lib/utils/handler.js +22 -1
- package/lib/utils/index.js +8 -1
- package/lib/utils/is.js +23 -1
- package/lib/version.js +1 -1
- package/package.json +25 -9
- package/es/config/index.mjs +0 -1
- package/es/static/hy-svg-icons.mjs +0 -11
- package/lib/config/index.js +0 -2
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, computed, nextTick, unref, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeStyle, createCommentVNode, createElementBlock, Fragment, renderList,
|
|
2
|
-
import { ElForm,
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
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:
|
|
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 &&
|
|
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
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
{
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
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
|
});
|