vue2-client 1.9.113 → 1.9.114
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
|
@@ -184,6 +184,7 @@
|
|
|
184
184
|
v-else-if="attr.type === 'checkbox' && show"
|
|
185
185
|
:flex="attr.flex">
|
|
186
186
|
<a-form-model-item
|
|
187
|
+
v-if="!attr.showMode || mode === '查询' || attr.showMode === 'select' "
|
|
187
188
|
:ref="attr.model"
|
|
188
189
|
:label="showLabel?attr.name:undefined"
|
|
189
190
|
:prop="attr.prop ? attr.prop : attr.model">
|
|
@@ -249,6 +250,17 @@
|
|
|
249
250
|
</a-select-option>
|
|
250
251
|
</a-select>
|
|
251
252
|
</a-form-model-item>
|
|
253
|
+
<a-form-model-item
|
|
254
|
+
v-else
|
|
255
|
+
:ref="attr.model"
|
|
256
|
+
:label="showLabel?attr.name:undefined"
|
|
257
|
+
:prop="attr.prop ? attr.prop : attr.model">
|
|
258
|
+
<a-checkbox-group
|
|
259
|
+
v-model="form[attr.model]"
|
|
260
|
+
:options="option"
|
|
261
|
+
@change="attr.dataChangeFunc && debouncedDataChangeFunc()"
|
|
262
|
+
/>
|
|
263
|
+
</a-form-model-item>
|
|
252
264
|
</x-form-col>
|
|
253
265
|
<!-- 单选框 -->
|
|
254
266
|
<x-form-col
|
|
@@ -1223,7 +1235,7 @@ export default {
|
|
|
1223
1235
|
this.emitFunc(func, groupName)
|
|
1224
1236
|
},
|
|
1225
1237
|
emitFunc (func, data) {
|
|
1226
|
-
this.$emit('x-form-item-emit-func', func, data, data
|
|
1238
|
+
this.$emit('x-form-item-emit-func', func, data, data?.model ? this.form[data.model] : this.form)
|
|
1227
1239
|
},
|
|
1228
1240
|
itemMounted (h) {
|
|
1229
1241
|
this.$emit('mounted', h)
|
|
@@ -83,11 +83,11 @@ routerResource.example = {
|
|
|
83
83
|
{
|
|
84
84
|
path: 'default',
|
|
85
85
|
name: '示例页面',
|
|
86
|
-
|
|
86
|
+
component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
|
87
87
|
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
|
88
88
|
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
|
89
89
|
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
|
90
|
-
component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
|
90
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
|
91
91
|
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
|
92
92
|
// component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
|
|
93
93
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|