vue2-client 1.18.64 → 1.18.65
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
|
@@ -61,13 +61,18 @@
|
|
|
61
61
|
<a-col
|
|
62
62
|
:span="24"
|
|
63
63
|
:style="{
|
|
64
|
-
marginTop: groupsIndex === 0 ? '' : '8px',
|
|
65
|
-
fontSize:
|
|
66
|
-
marginLeft: '-5px'
|
|
64
|
+
marginTop: groupsIndex === 0 && !inXFormGroup ? '' : '8px',
|
|
65
|
+
fontSize: '14px'
|
|
67
66
|
}"
|
|
68
67
|
v-if="groupsItem.groupName !== DEFAULT_GROUP_NAME"
|
|
69
68
|
>
|
|
70
|
-
<span
|
|
69
|
+
<span
|
|
70
|
+
class="xFormGroupTitle"
|
|
71
|
+
:style="{
|
|
72
|
+
paddingLeft: inXFormGroup ? '14px' : '-5px'
|
|
73
|
+
}"
|
|
74
|
+
:ref="`group-title-${groupsIndex}`"
|
|
75
|
+
>
|
|
71
76
|
{{ groupsItem.groupName }}
|
|
72
77
|
</span>
|
|
73
78
|
</a-col>
|
|
@@ -5,22 +5,21 @@ import { getConfigByNameAsync } from '@vue2-client/services/api/common'
|
|
|
5
5
|
export default {
|
|
6
6
|
name: 'Demo',
|
|
7
7
|
components: { XFormGroup },
|
|
8
|
-
data
|
|
8
|
+
data() {
|
|
9
9
|
return {
|
|
10
10
|
visible: true
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
-
created
|
|
14
|
-
getConfigByNameAsync('
|
|
13
|
+
created() {
|
|
14
|
+
getConfigByNameAsync('changeMeterFormGroup', 'af-revenue').then(res => {
|
|
15
15
|
this.$refs.xFormGroupDemo.init({
|
|
16
16
|
...res,
|
|
17
|
-
serviceName: 'af-revenue'
|
|
18
|
-
showLeftTab: true,
|
|
17
|
+
serviceName: 'af-revenue'
|
|
19
18
|
})
|
|
20
19
|
})
|
|
21
20
|
},
|
|
22
21
|
methods: {
|
|
23
|
-
submitForm
|
|
22
|
+
submitForm() {
|
|
24
23
|
this.$refs.xFormGroupDemo.onSubmit().then(res => {
|
|
25
24
|
console.log('所有表单的结果', res)
|
|
26
25
|
})
|
|
@@ -30,12 +29,10 @@ export default {
|
|
|
30
29
|
</script>
|
|
31
30
|
|
|
32
31
|
<template>
|
|
33
|
-
<
|
|
32
|
+
<a-card>
|
|
34
33
|
<a-button @click="submitForm">提交测试</a-button>
|
|
35
34
|
<x-form-group ref="xFormGroupDemo"></x-form-group>
|
|
36
|
-
</
|
|
35
|
+
</a-card>
|
|
37
36
|
</template>
|
|
38
37
|
|
|
39
|
-
<style scoped lang="less">
|
|
40
|
-
|
|
41
|
-
</style>
|
|
38
|
+
<style scoped lang="less"></style>
|
|
@@ -55,14 +55,14 @@ routerResource.example = {
|
|
|
55
55
|
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
|
56
56
|
// component: () => import('@vue2-client/base-client/components/his/HChart/demo.vue'),
|
|
57
57
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
58
|
-
component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
|
58
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
|
59
59
|
// component: () => import('@vue2-client/base-client/components/common/ImagePreviewModal/demo.vue'),
|
|
60
60
|
// component: () => import('@vue2-client/components/xScrollBox/example.vue'),
|
|
61
61
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
62
62
|
// component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
|
|
63
63
|
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
|
64
64
|
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue')
|
|
65
|
-
|
|
65
|
+
component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue')
|
|
66
66
|
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
|
67
67
|
// component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
|
|
68
68
|
// component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
|