vue2-client 1.8.206 → 1.8.207
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 +1 -1
- package/src/utils/lowcode/registerComponentForEditor.js +0 -2
- package/src/utils/lowcode/registerComponentForRender.js +0 -2
- package/src/base-client/components/common/XAddNativeFormForLowcode/XAddNativeFormModal.vue +0 -85
- package/src/base-client/components/common/XAddNativeFormForLowcode/index.js +0 -3
- package/src/base-client/components/common/XAddNativeFormForLowcode/lowcodeEditorRegister.js +0 -18
package/package.json
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { XFormTableConfig } from '@vue2-client/base-client/components/common/XFormTable/lowcodeEditorRegister'
|
|
2
2
|
import { XTreeOneConfig } from '@vue2-client/base-client/components/common/XTreeOne/lowcodeEditorRegister'
|
|
3
|
-
// eslint-disable-next-line no-unused-vars
|
|
4
|
-
import { XAddNativeFormModalConfig } from '@/base-client/components/common/XAddNativeFormForLowcode/lowcodeEditorRegister'
|
|
5
3
|
import { XAddNativeFormConfig } from '@vue2-client/base-client/components/common/XAddNativeForm/lowcodeEditorRegister'
|
|
6
4
|
import { XDescriptionsConfig } from '@vue2-client/base-client/components/common/XDescriptions/lowcodeEditorRegister'
|
|
7
5
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
|
|
2
2
|
import XTreeOne from '@vue2-client/base-client/components/common/XTreeOne/XTreeOne.vue'
|
|
3
|
-
// eslint-disable-next-line no-unused-vars
|
|
4
|
-
import XAddNativeFormModal from '@/base-client/components/common/XAddNativeFormForLowcode/XAddNativeFormModal.vue'
|
|
5
3
|
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
|
6
4
|
import XDescriptions from '@vue2-client/base-client/components/common/XDescriptions/XDescriptions.vue'
|
|
7
5
|
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<x-add-native-form ref="nativeForm" @onSubmit="handleSubmit"/>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
|
9
|
-
import lowcodeComponentMixin from '@vue2-client/utils/lowcode/lowcodeComponentMixin'
|
|
10
|
-
import { getConfigByName } from '@vue2-client/services/api/common'
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
props: {
|
|
14
|
-
modalWidth: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: '70%'
|
|
17
|
-
},
|
|
18
|
-
nativeFormConfig: {
|
|
19
|
-
type: Object,
|
|
20
|
-
default: undefined
|
|
21
|
-
},
|
|
22
|
-
systemName: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: undefined
|
|
25
|
-
},
|
|
26
|
-
businessType: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: '新增'
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
components: {
|
|
32
|
-
XAddNativeForm
|
|
33
|
-
},
|
|
34
|
-
data () {
|
|
35
|
-
return {
|
|
36
|
-
modalVisible: false
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
mixins: [lowcodeComponentMixin],
|
|
40
|
-
methods: {
|
|
41
|
-
handleSubmit (...args) {
|
|
42
|
-
this.$lowCodeEmit('onSubmit', args)
|
|
43
|
-
},
|
|
44
|
-
handleCancel () {
|
|
45
|
-
this.$lowCodeEmit('onModalCancel')
|
|
46
|
-
},
|
|
47
|
-
init () {
|
|
48
|
-
if (this.nativeFormConfig) {
|
|
49
|
-
getConfigByName(this.nativeFormConfig, this.systemName, (res) => {
|
|
50
|
-
this.$refs.nativeForm.init({
|
|
51
|
-
formItems: res.formJson,
|
|
52
|
-
title: this.modalTitle,
|
|
53
|
-
businessType: this.businessType,
|
|
54
|
-
layout: res.xAddFormLayout,
|
|
55
|
-
isKeyHandle: res.isKeyHandle
|
|
56
|
-
})
|
|
57
|
-
})
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
mounted () {
|
|
62
|
-
console.warn('mounted', this.propsData)
|
|
63
|
-
console.warn('modalVisible', this.modalVisible)
|
|
64
|
-
this.init()
|
|
65
|
-
},
|
|
66
|
-
watch: {
|
|
67
|
-
systemName: {
|
|
68
|
-
handler () {
|
|
69
|
-
this.init()
|
|
70
|
-
},
|
|
71
|
-
deep: true
|
|
72
|
-
},
|
|
73
|
-
nativeFormConfig: {
|
|
74
|
-
handler () {
|
|
75
|
-
this.init()
|
|
76
|
-
},
|
|
77
|
-
deep: true
|
|
78
|
-
},
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
</script>
|
|
82
|
-
|
|
83
|
-
<style scoped lang="less">
|
|
84
|
-
|
|
85
|
-
</style>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export const XAddNativeFormForLowcodeConfig = {
|
|
2
|
-
type: 'XAddNativeFormForLowcode',
|
|
3
|
-
properties: {
|
|
4
|
-
modalTitle: {
|
|
5
|
-
type: 'string'
|
|
6
|
-
},
|
|
7
|
-
modalWidth: {
|
|
8
|
-
type: 'string'
|
|
9
|
-
},
|
|
10
|
-
nativeFormConfig: {
|
|
11
|
-
type: 'string'
|
|
12
|
-
},
|
|
13
|
-
systemName: {
|
|
14
|
-
type: 'string'
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
selfEvent: ['onSubmit', 'onModalCancel']
|
|
18
|
-
}
|