bri-components 1.0.3 → 1.0.5
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/lib/0.bri-components.min.js +1 -1
- package/lib/1.bri-components.min.js +1 -1
- package/lib/3.bri-components.min.js +1 -1
- package/lib/4.bri-components.min.js +1 -1
- package/lib/5.bri-components.min.js +1 -1
- package/lib/6.bri-components.min.js +1 -1
- package/lib/bri-components.min.js +8 -6
- package/package.json +120 -120
- package/src/components/controls/controlMixin.js +10 -15
- package/src/components/form/DshForm.vue +0 -2
- package/src/components/list/DshBox/DshPanel.vue +66 -77
- package/src/components/list/DshFlatTable.vue +9 -17
- package/src/components/unit/DshFormItem.vue +11 -4
- package/src/components/unit/DshUnit.vue +0 -2
|
@@ -40,6 +40,10 @@
|
|
|
40
40
|
<span class="DshFormItem-label-name-sign">!有更新</span>
|
|
41
41
|
</template>
|
|
42
42
|
</slot>
|
|
43
|
+
<dsh-render
|
|
44
|
+
v-if="formItem._tipsRender"
|
|
45
|
+
:render="tipsRender(formItem,formData)"
|
|
46
|
+
></dsh-render>
|
|
43
47
|
</span>
|
|
44
48
|
</Ctooltip>
|
|
45
49
|
</span>
|
|
@@ -77,7 +81,6 @@
|
|
|
77
81
|
ref="control"
|
|
78
82
|
:is="componentNameMap[formItem._type] || 'DshUndeveloped'"
|
|
79
83
|
:mode="mode"
|
|
80
|
-
:isShare="isShare"
|
|
81
84
|
:canEdit="canEdit"
|
|
82
85
|
:value="formData"
|
|
83
86
|
:propsObj="formItem"
|
|
@@ -122,11 +125,12 @@
|
|
|
122
125
|
},
|
|
123
126
|
|
|
124
127
|
labelWidth: [String, Number],
|
|
125
|
-
formControlClass: String
|
|
126
|
-
isShare: Boolean
|
|
128
|
+
formControlClass: String
|
|
127
129
|
},
|
|
128
130
|
data () {
|
|
129
|
-
return {
|
|
131
|
+
return {
|
|
132
|
+
showTipModal: false
|
|
133
|
+
};
|
|
130
134
|
},
|
|
131
135
|
computed: {
|
|
132
136
|
selfLabelStyle () {
|
|
@@ -151,6 +155,9 @@
|
|
|
151
155
|
|
|
152
156
|
changeField (...params) {
|
|
153
157
|
this.$emit("changeField", ...params);
|
|
158
|
+
},
|
|
159
|
+
tipsRender (formItem, formData) {
|
|
160
|
+
return formItem._tipsRender.call(this, formItem, formData);
|
|
154
161
|
}
|
|
155
162
|
}
|
|
156
163
|
};
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
<component
|
|
18
18
|
:is="componentNameMap[formItem._type]"
|
|
19
19
|
:mode="mode"
|
|
20
|
-
:isShare="isShare"
|
|
21
20
|
:canEdit="canEdit"
|
|
22
21
|
:parentData="parentData"
|
|
23
22
|
:value="formData"
|
|
@@ -42,7 +41,6 @@
|
|
|
42
41
|
props: {
|
|
43
42
|
indexStr: String,
|
|
44
43
|
rowIndex: Number,
|
|
45
|
-
isShare: Boolean,
|
|
46
44
|
parentData: Array
|
|
47
45
|
},
|
|
48
46
|
data () {
|