n20-common-lib 3.2.12 → 3.2.13
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-form
|
|
3
|
-
class="vertical-form cl-dynamic-field"
|
|
4
3
|
ref="form"
|
|
4
|
+
class="vertical-form cl-dynamic-field"
|
|
5
5
|
:inline="inline"
|
|
6
6
|
:model="value"
|
|
7
7
|
:rules="rules || {}"
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
v-if="formItem.isGroupContainer && formItem.type === 'group-container'"
|
|
43
43
|
:key="key"
|
|
44
44
|
:title="formItem.groupName"
|
|
45
|
-
:icon="formItem.groupInfo
|
|
46
|
-
:corner-logo="formItem.groupInfo
|
|
47
|
-
:background-color="formItem.groupInfo
|
|
48
|
-
:collapsible="formItem.groupInfo
|
|
45
|
+
:icon="(formItem.groupInfo && formItem.groupInfo.icon) || ''"
|
|
46
|
+
:corner-logo="(formItem.groupInfo && formItem.groupInfo.cornerLogo) || ''"
|
|
47
|
+
:background-color="(formItem.groupInfo && formItem.groupInfo.color) || '#e8f7ff'"
|
|
48
|
+
:collapsible="(formItem.groupInfo && formItem.groupInfo.showCollapse) || false"
|
|
49
49
|
default-expanded
|
|
50
50
|
class="group-infocard"
|
|
51
51
|
>
|
|
52
|
-
<template v-for="(groupField
|
|
52
|
+
<template v-for="(groupField) in formItem.fields">
|
|
53
53
|
<el-form-item
|
|
54
54
|
v-if="groupField.type"
|
|
55
|
-
v-bind="groupField"
|
|
56
55
|
:key="groupField.fieldCode"
|
|
56
|
+
v-bind="groupField"
|
|
57
57
|
:prop="groupField.fieldCode"
|
|
58
58
|
:label="groupField.fieldName"
|
|
59
59
|
:class="{
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}"
|
|
63
63
|
>
|
|
64
64
|
<!-- 表头插槽 - 支持 suggestInfo -->
|
|
65
|
-
<template
|
|
65
|
+
<template v-if="!groupField.noLabel" slot="label">
|
|
66
66
|
<slot :name="'label_' + groupField.fieldCode">
|
|
67
67
|
<span>{{ groupField.fieldName }}</span>
|
|
68
68
|
<i
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
<div class="flex-box flex-v">
|
|
88
88
|
<!-- 插槽类型 - 优先检查 -->
|
|
89
89
|
<template v-if="groupField.type === 'slot'">
|
|
90
|
-
<slot :name="groupField.fieldCode" :formItem="groupField"
|
|
90
|
+
<slot :name="groupField.fieldCode" :formItem="groupField"></slot>
|
|
91
91
|
</template>
|
|
92
92
|
|
|
93
93
|
<!-- 输入框 -->
|
|
@@ -398,7 +398,7 @@
|
|
|
398
398
|
:class="{ 'col-span-24': formItem.type === 'textarea' || formItem.alone, 'no-label': formItem.noLabel }"
|
|
399
399
|
>
|
|
400
400
|
<!-- 表头插槽 -->
|
|
401
|
-
<template
|
|
401
|
+
<template v-if="!formItem.noLabel" slot="label">
|
|
402
402
|
<slot :name="'label_' + key">
|
|
403
403
|
<span>{{ formItem.label }}</span>
|
|
404
404
|
</slot>
|