af-mobile-client-vue3 1.1.6 → 1.1.7

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.
Files changed (79) hide show
  1. package/.env +6 -6
  2. package/.env.development +4 -4
  3. package/.env.envoiceShow +6 -6
  4. package/.env.production +6 -6
  5. package/.husky/commit-msg +1 -1
  6. package/.husky/pre-commit +1 -1
  7. package/.vscode/settings.json +61 -61
  8. package/mock/modules/user.mock.ts +152 -152
  9. package/package.json +1 -1
  10. package/public/favicon.svg +4 -4
  11. package/public/safari-pinned-tab.svg +32 -32
  12. package/scripts/verifyCommit.js +19 -19
  13. package/src/App.vue +43 -43
  14. package/src/api/user/index.ts +40 -40
  15. package/src/bootstrap.ts +18 -18
  16. package/src/components/core/NavBar/index.vue +12 -12
  17. package/src/components/core/Tabbar/index.vue +38 -38
  18. package/src/components/core/XGridDropOption/index.vue +151 -151
  19. package/src/components/core/XMultiSelect/index.vue +183 -183
  20. package/src/components/data/XCellDetail/index.vue +106 -106
  21. package/src/components/data/XForm/index.vue +5 -0
  22. package/src/components/data/XFormItem/index.vue +3 -4
  23. package/src/components/data/XOlMap/README.md +0 -2
  24. package/src/components/data/XOlMap/XLocationPicker/index.vue +21 -9
  25. package/src/components/data/XOlMap/index.vue +81 -74
  26. package/src/components/data/XOlMap/types.ts +0 -4
  27. package/src/components/data/XOlMap/utils/wgs84ToGcj02.js +154 -154
  28. package/src/components/data/XReportForm/XReportFormJsonRender.vue +220 -220
  29. package/src/components/data/XReportForm/index.vue +1079 -1079
  30. package/src/components/data/XReportGrid/XAddReport/index.ts +1 -1
  31. package/src/components/data/XReportGrid/XReportDrawer/index.ts +1 -1
  32. package/src/components/data/XSignature/index.vue +285 -285
  33. package/src/components/data/XTag/index.vue +10 -10
  34. package/src/components/layout/NormalDataLayout/index.vue +70 -70
  35. package/src/components/layout/TabBarLayout/index.vue +40 -40
  36. package/src/components.d.ts +53 -53
  37. package/src/env.d.ts +16 -16
  38. package/src/font-style/font.css +3 -3
  39. package/src/hooks/useCommon.ts +9 -9
  40. package/src/locales/en-US.json +25 -25
  41. package/src/locales/zh-CN.json +25 -25
  42. package/src/plugins/AppData.ts +38 -38
  43. package/src/router/guards.ts +59 -59
  44. package/src/router/index.ts +61 -61
  45. package/src/router/invoiceRoutes.ts +33 -33
  46. package/src/services/api/common.ts +109 -109
  47. package/src/services/api/manage.ts +8 -8
  48. package/src/services/api/search.ts +16 -16
  49. package/src/services/restTools.ts +56 -56
  50. package/src/services/v3Api.ts +11 -11
  51. package/src/stores/modules/setting.ts +52 -52
  52. package/src/stores/mutation-type.ts +7 -7
  53. package/src/utils/authority-utils.ts +84 -84
  54. package/src/utils/crypto.ts +39 -39
  55. package/src/utils/i18n.ts +41 -41
  56. package/src/utils/indexedDB.ts +180 -180
  57. package/src/utils/mobileUtil.ts +26 -26
  58. package/src/utils/routerUtil.ts +271 -271
  59. package/src/utils/runEvalFunction.ts +13 -13
  60. package/src/utils/wechatUtil.ts +9 -9
  61. package/src/views/common/LoadError.vue +64 -64
  62. package/src/views/common/NotFound.vue +68 -68
  63. package/src/views/component/EvaluateRecordView/index.vue +40 -40
  64. package/src/views/component/XCellDetailView/index.vue +217 -217
  65. package/src/views/component/XOlMapView/XLocationPicker/index.vue +120 -120
  66. package/src/views/component/XOlMapView/index.vue +0 -1
  67. package/src/views/component/XReportFormIframeView/index.vue +47 -47
  68. package/src/views/component/XReportFormView/index.vue +13 -13
  69. package/src/views/component/XSignatureView/index.vue +50 -50
  70. package/src/views/component/menu.vue +117 -117
  71. package/src/views/component/notice.vue +46 -46
  72. package/src/views/component/topNav.vue +36 -36
  73. package/src/views/invoiceShow/index.vue +61 -61
  74. package/src/views/user/login/ForgetPasswordForm.vue +94 -94
  75. package/src/views/user/login/LoginTitle.vue +68 -68
  76. package/src/views/user/login/index.vue +22 -22
  77. package/src/views/user/my/index.vue +230 -230
  78. package/src/vue-router.d.ts +9 -9
  79. package/tsconfig.json +43 -43
@@ -1,183 +1,183 @@
1
- <script setup lang="ts">
2
- import {
3
- Cell as VanCell,
4
- CellGroup as VanCellGroup,
5
- Checkbox as VanCheckbox,
6
- CheckboxGroup as VanCheckboxGroup,
7
- Field as VanField,
8
- Popup as VanPopup,
9
- Search as VanSearch,
10
- } from 'vant'
11
- import { computed, defineEmits, defineModel, defineProps, ref, watch } from 'vue'
12
-
13
- const props = defineProps({
14
- columns: {
15
- type: Array,
16
- default() {
17
- return []
18
- },
19
- },
20
- selectValue: {
21
- type: Array,
22
- default() {
23
- return []
24
- },
25
- },
26
- option: {
27
- type: Object,
28
- default() {
29
- return { text: 'label', value: 'value' }
30
- },
31
- },
32
- // 是否支持搜索
33
- isSearch: {
34
- type: Boolean,
35
- default: true,
36
- },
37
- })
38
- const emits = defineEmits(['input', 'confirm', 'change', 'cancel'])
39
- const show = ref(false)
40
- const searchVal = ref('')
41
- const columnsData = ref([])
42
- const checkboxValue = ref(JSON.parse(JSON.stringify(props.selectValue)))
43
- const checkedAll = ref(false)
44
- const resultValue = defineModel()
45
- const checkboxGroup = ref()
46
- const checkboxes = ref()
47
- function search(val) {
48
- if (val) {
49
- columnsData.value = props.columns.filter((item) => {
50
- return item[props.option.text].includes(val)
51
- })
52
- }
53
- else {
54
- columnsData.value = JSON.parse(JSON.stringify(props.columns))
55
- }
56
- }
57
- function getData(val) {
58
- const res = props.columns.filter((item) => {
59
- return val.includes(item[props.option.value])
60
- })
61
- return res
62
- }
63
- function onConfirm() {
64
- resultValue.value = checkboxValue.value
65
- show.value = !show.value
66
- emits('confirm', resultValue.value, getData(resultValue.value))
67
- }
68
- function change(val) {
69
- emits('change', val, getData(resultValue.value))
70
- }
71
- function cancel() {
72
- show.value = !show.value
73
- emits('cancel', resultValue.value)
74
- }
75
- function toggle(item, _index) {
76
- // 假设 checkboxValue 是一个对象,我们通过 index 来切换对应 checkbox 的值
77
- const idx = checkboxValue.value.indexOf(item[props.option.value])
78
- if (idx !== -1)
79
- checkboxValue.value.splice(idx, 1)
80
- else
81
- checkboxValue.value.push(item[props.option.value])
82
- }
83
- function toggleAll() {
84
- // 遍历 checkboxValue 并设置所有 checkbox 的值为 checkedAll 的值
85
- if (checkedAll.value)
86
- checkboxValue.value = columnsData.value.map(item => item[props.option.value])
87
-
88
- else
89
- checkboxValue.value = []
90
- }
91
- function showPopu(disabled) {
92
- columnsData.value = JSON.parse(JSON.stringify(props.columns))
93
- if (disabled !== undefined && disabled !== false)
94
- return false
95
- else
96
- show.value = !show.value
97
- }
98
- watch(() => columnsData.value, (newVal, _oldVal) => {
99
- checkedAll.value = newVal.length && newVal.length === checkboxValue.value.length
100
- })
101
- watch(() => checkboxValue.value.length, (newVal, _oldVal) => {
102
- checkedAll.value = newVal && newVal === columnsData.value.length
103
- })
104
- const resultLabel = computed(() => {
105
- const res = props.columns.filter((item) => {
106
- return (resultValue.value as unknown as string[]).includes(item[props.option.value])
107
- }).map(item => item[props.option.text])
108
- return res.join(',')
109
- })
110
- </script>
111
-
112
- <template>
113
- <div class="dh-field">
114
- <VanField
115
- v-model="resultLabel"
116
- v-bind="$attrs"
117
- readonly
118
- :border="false"
119
- :is-link="$attrs.disabled === undefined"
120
- error-message-align="right"
121
- @click="showPopu($attrs.readonly)"
122
- />
123
- <VanPopup v-model:show="show" position="bottom">
124
- <div class="van-picker__toolbar">
125
- <button type="button" class="van-picker__cancel" @click="cancel">
126
- 取消
127
- </button>
128
- <div class="van-ellipsis van-picker__title">
129
- {{ $attrs.label }}
130
- </div>
131
- <button type="button" class="van-picker__confirm" @click="onConfirm">
132
- 确认
133
- </button>
134
- </div>
135
- <div style="max-height:264px; overflow-y:auto;">
136
- <VanSearch
137
- v-if="props.isSearch"
138
- v-model="searchVal"
139
- placeholder="搜索"
140
- @update:model-value="search"
141
- @cancel="search"
142
- />
143
- <VanCell title="全选">
144
- <template #right-icon>
145
- <VanCheckbox v-model="checkedAll" name="all" @click="toggleAll" />
146
- </template>
147
- </VanCell>
148
- <VanCheckboxGroup ref="checkboxGroup" v-model="checkboxValue" @change="change">
149
- <VanCellGroup>
150
- <VanCell
151
- v-for="(item, index) in columnsData"
152
- :key="item[props.option.value]"
153
- :title="item[props.option.text]"
154
- clickable
155
- @click="toggle(item, index)"
156
- >
157
- <template #right-icon>
158
- <VanCheckbox ref="checkboxes" :name="item[props.option.value]" @click.stop />
159
- </template>
160
- </VanCell>
161
- </VanCellGroup>
162
- </VanCheckboxGroup>
163
- </div>
164
- </VanPopup>
165
- </div>
166
- </template>
167
-
168
- <style lang="less" scoped>
169
- .dh-field {
170
- width: 100%;
171
- padding: 0;
172
- background:#fff;
173
- .dh-cell.van-cell {
174
- padding: 10px 0;
175
- }
176
- .dh-cell.van-cell--required::before {
177
- left: -8px;
178
- }
179
- .van-popup {
180
- border-radius: 20px 20px 0 0;
181
- }
182
- }
183
- </style>
1
+ <script setup lang="ts">
2
+ import {
3
+ Cell as VanCell,
4
+ CellGroup as VanCellGroup,
5
+ Checkbox as VanCheckbox,
6
+ CheckboxGroup as VanCheckboxGroup,
7
+ Field as VanField,
8
+ Popup as VanPopup,
9
+ Search as VanSearch,
10
+ } from 'vant'
11
+ import { computed, defineEmits, defineModel, defineProps, ref, watch } from 'vue'
12
+
13
+ const props = defineProps({
14
+ columns: {
15
+ type: Array,
16
+ default() {
17
+ return []
18
+ },
19
+ },
20
+ selectValue: {
21
+ type: Array,
22
+ default() {
23
+ return []
24
+ },
25
+ },
26
+ option: {
27
+ type: Object,
28
+ default() {
29
+ return { text: 'label', value: 'value' }
30
+ },
31
+ },
32
+ // 是否支持搜索
33
+ isSearch: {
34
+ type: Boolean,
35
+ default: true,
36
+ },
37
+ })
38
+ const emits = defineEmits(['input', 'confirm', 'change', 'cancel'])
39
+ const show = ref(false)
40
+ const searchVal = ref('')
41
+ const columnsData = ref([])
42
+ const checkboxValue = ref(JSON.parse(JSON.stringify(props.selectValue)))
43
+ const checkedAll = ref(false)
44
+ const resultValue = defineModel()
45
+ const checkboxGroup = ref()
46
+ const checkboxes = ref()
47
+ function search(val) {
48
+ if (val) {
49
+ columnsData.value = props.columns.filter((item) => {
50
+ return item[props.option.text].includes(val)
51
+ })
52
+ }
53
+ else {
54
+ columnsData.value = JSON.parse(JSON.stringify(props.columns))
55
+ }
56
+ }
57
+ function getData(val) {
58
+ const res = props.columns.filter((item) => {
59
+ return val.includes(item[props.option.value])
60
+ })
61
+ return res
62
+ }
63
+ function onConfirm() {
64
+ resultValue.value = checkboxValue.value
65
+ show.value = !show.value
66
+ emits('confirm', resultValue.value, getData(resultValue.value))
67
+ }
68
+ function change(val) {
69
+ emits('change', val, getData(resultValue.value))
70
+ }
71
+ function cancel() {
72
+ show.value = !show.value
73
+ emits('cancel', resultValue.value)
74
+ }
75
+ function toggle(item, _index) {
76
+ // 假设 checkboxValue 是一个对象,我们通过 index 来切换对应 checkbox 的值
77
+ const idx = checkboxValue.value.indexOf(item[props.option.value])
78
+ if (idx !== -1)
79
+ checkboxValue.value.splice(idx, 1)
80
+ else
81
+ checkboxValue.value.push(item[props.option.value])
82
+ }
83
+ function toggleAll() {
84
+ // 遍历 checkboxValue 并设置所有 checkbox 的值为 checkedAll 的值
85
+ if (checkedAll.value)
86
+ checkboxValue.value = columnsData.value.map(item => item[props.option.value])
87
+
88
+ else
89
+ checkboxValue.value = []
90
+ }
91
+ function showPopu(disabled) {
92
+ columnsData.value = JSON.parse(JSON.stringify(props.columns))
93
+ if (disabled !== undefined && disabled !== false)
94
+ return false
95
+ else
96
+ show.value = !show.value
97
+ }
98
+ watch(() => columnsData.value, (newVal, _oldVal) => {
99
+ checkedAll.value = newVal.length && newVal.length === checkboxValue.value.length
100
+ })
101
+ watch(() => checkboxValue.value.length, (newVal, _oldVal) => {
102
+ checkedAll.value = newVal && newVal === columnsData.value.length
103
+ })
104
+ const resultLabel = computed(() => {
105
+ const res = props.columns.filter((item) => {
106
+ return (resultValue.value as unknown as string[]).includes(item[props.option.value])
107
+ }).map(item => item[props.option.text])
108
+ return res.join(',')
109
+ })
110
+ </script>
111
+
112
+ <template>
113
+ <div class="dh-field">
114
+ <VanField
115
+ v-model="resultLabel"
116
+ v-bind="$attrs"
117
+ readonly
118
+ :border="false"
119
+ :is-link="$attrs.disabled === undefined"
120
+ error-message-align="right"
121
+ @click="showPopu($attrs.readonly)"
122
+ />
123
+ <VanPopup v-model:show="show" position="bottom">
124
+ <div class="van-picker__toolbar">
125
+ <button type="button" class="van-picker__cancel" @click="cancel">
126
+ 取消
127
+ </button>
128
+ <div class="van-ellipsis van-picker__title">
129
+ {{ $attrs.label }}
130
+ </div>
131
+ <button type="button" class="van-picker__confirm" @click="onConfirm">
132
+ 确认
133
+ </button>
134
+ </div>
135
+ <div style="max-height:264px; overflow-y:auto;">
136
+ <VanSearch
137
+ v-if="props.isSearch"
138
+ v-model="searchVal"
139
+ placeholder="搜索"
140
+ @update:model-value="search"
141
+ @cancel="search"
142
+ />
143
+ <VanCell title="全选">
144
+ <template #right-icon>
145
+ <VanCheckbox v-model="checkedAll" name="all" @click="toggleAll" />
146
+ </template>
147
+ </VanCell>
148
+ <VanCheckboxGroup ref="checkboxGroup" v-model="checkboxValue" @change="change">
149
+ <VanCellGroup>
150
+ <VanCell
151
+ v-for="(item, index) in columnsData"
152
+ :key="item[props.option.value]"
153
+ :title="item[props.option.text]"
154
+ clickable
155
+ @click="toggle(item, index)"
156
+ >
157
+ <template #right-icon>
158
+ <VanCheckbox ref="checkboxes" :name="item[props.option.value]" @click.stop />
159
+ </template>
160
+ </VanCell>
161
+ </VanCellGroup>
162
+ </VanCheckboxGroup>
163
+ </div>
164
+ </VanPopup>
165
+ </div>
166
+ </template>
167
+
168
+ <style lang="less" scoped>
169
+ .dh-field {
170
+ width: 100%;
171
+ padding: 0;
172
+ background:#fff;
173
+ .dh-cell.van-cell {
174
+ padding: 10px 0;
175
+ }
176
+ .dh-cell.van-cell--required::before {
177
+ left: -8px;
178
+ }
179
+ .van-popup {
180
+ border-radius: 20px 20px 0 0;
181
+ }
182
+ }
183
+ </style>
@@ -1,106 +1,106 @@
1
- <script setup lang="ts">
2
- import {
3
- Col as VanCol,
4
- Icon as VanIcon,
5
- Row as VanRow,
6
- Skeleton as VanSkeleton,
7
- } from 'vant'
8
- import 'animate.css'
9
-
10
- const { title, describe, extra, loading, statusBar } = defineProps<{
11
- title?: string
12
- describe?: string
13
- extra?: string
14
- loading?: boolean
15
- statusBar?: { icon: string, color: string }
16
- }>()
17
- </script>
18
-
19
- <template>
20
- <div class="main">
21
- <VanSkeleton title :row="20" :loading="loading" class="skeleton-box">
22
- <VanIcon
23
- v-if="statusBar"
24
- :color="statusBar.color"
25
- :name="statusBar.icon"
26
- class="status-icon animate__animated animate__rotateInDownRight"
27
- size="70"
28
- />
29
- <VanRow class="detail-header">
30
- <VanCol span="16">
31
- <slot name="detailHeaderTitle">
32
- <div class="detail-header-title">
33
- {{ title }}
34
- </div>
35
- </slot>
36
- <slot name="detailHeaderDescribe">
37
- <div class="detail-header-describe">
38
- {{ describe }}
39
- </div>
40
- </slot>
41
- </VanCol>
42
- <VanCol span="8">
43
- <span class="detail-header-extra">
44
- {{ extra }}
45
- </span>
46
- </VanCol>
47
- </VanRow>
48
- <div class="detail-content-box">
49
- <slot name="detailContent" />
50
- </div>
51
- <slot name="extraAction" />
52
- </VanSkeleton>
53
- </div>
54
- </template>
55
-
56
- <style scoped lang="less">
57
- .main {
58
- background-color: #f7f8fa;
59
- overflow-y: auto;
60
- height: 92vh;
61
- .skeleton-box {
62
- margin-top: 1vh;
63
- }
64
- .status-icon {
65
- opacity: 0.5;
66
- position: absolute;
67
- top: 13vh;
68
- right: 3vh;
69
- transform: translate(-50%, -50%) rotate(-20deg);
70
- }
71
- .status-icon:before {
72
- opacity: 0.5;
73
- transform: rotate(-20deg);
74
- }
75
- .status-icon:after {
76
- opacity: 0.5;
77
- transform: rotate(-20deg);
78
- }
79
- .detail-header {
80
- margin-top: 1vh;
81
- padding: 1vh 2vh 1vh 2vh;
82
- background-color: white;
83
- .detail-header-title {
84
- font-size: 15px;
85
- margin-bottom: 5px;
86
- }
87
- .detail-header-describe {
88
- font-size: 13px;
89
- color: var(--van-text-color-2);
90
- }
91
- .detail-header-extra {
92
- width: 100%;
93
- display: inline-block;
94
- text-align: right;
95
- font-size: 28px;
96
- color: #1989fa;
97
- font-weight: bold;
98
- }
99
- }
100
- .detail-content-box {
101
- background-color: white;
102
- margin-top: 1vh;
103
- padding: 1vh 2vh 2vh 2vh;
104
- }
105
- }
106
- </style>
1
+ <script setup lang="ts">
2
+ import {
3
+ Col as VanCol,
4
+ Icon as VanIcon,
5
+ Row as VanRow,
6
+ Skeleton as VanSkeleton,
7
+ } from 'vant'
8
+ import 'animate.css'
9
+
10
+ const { title, describe, extra, loading, statusBar } = defineProps<{
11
+ title?: string
12
+ describe?: string
13
+ extra?: string
14
+ loading?: boolean
15
+ statusBar?: { icon: string, color: string }
16
+ }>()
17
+ </script>
18
+
19
+ <template>
20
+ <div class="main">
21
+ <VanSkeleton title :row="20" :loading="loading" class="skeleton-box">
22
+ <VanIcon
23
+ v-if="statusBar"
24
+ :color="statusBar.color"
25
+ :name="statusBar.icon"
26
+ class="status-icon animate__animated animate__rotateInDownRight"
27
+ size="70"
28
+ />
29
+ <VanRow class="detail-header">
30
+ <VanCol span="16">
31
+ <slot name="detailHeaderTitle">
32
+ <div class="detail-header-title">
33
+ {{ title }}
34
+ </div>
35
+ </slot>
36
+ <slot name="detailHeaderDescribe">
37
+ <div class="detail-header-describe">
38
+ {{ describe }}
39
+ </div>
40
+ </slot>
41
+ </VanCol>
42
+ <VanCol span="8">
43
+ <span class="detail-header-extra">
44
+ {{ extra }}
45
+ </span>
46
+ </VanCol>
47
+ </VanRow>
48
+ <div class="detail-content-box">
49
+ <slot name="detailContent" />
50
+ </div>
51
+ <slot name="extraAction" />
52
+ </VanSkeleton>
53
+ </div>
54
+ </template>
55
+
56
+ <style scoped lang="less">
57
+ .main {
58
+ background-color: #f7f8fa;
59
+ overflow-y: auto;
60
+ height: 92vh;
61
+ .skeleton-box {
62
+ margin-top: 1vh;
63
+ }
64
+ .status-icon {
65
+ opacity: 0.5;
66
+ position: absolute;
67
+ top: 13vh;
68
+ right: 3vh;
69
+ transform: translate(-50%, -50%) rotate(-20deg);
70
+ }
71
+ .status-icon:before {
72
+ opacity: 0.5;
73
+ transform: rotate(-20deg);
74
+ }
75
+ .status-icon:after {
76
+ opacity: 0.5;
77
+ transform: rotate(-20deg);
78
+ }
79
+ .detail-header {
80
+ margin-top: 1vh;
81
+ padding: 1vh 2vh 1vh 2vh;
82
+ background-color: white;
83
+ .detail-header-title {
84
+ font-size: 15px;
85
+ margin-bottom: 5px;
86
+ }
87
+ .detail-header-describe {
88
+ font-size: 13px;
89
+ color: var(--van-text-color-2);
90
+ }
91
+ .detail-header-extra {
92
+ width: 100%;
93
+ display: inline-block;
94
+ text-align: right;
95
+ font-size: 28px;
96
+ color: #1989fa;
97
+ font-weight: bold;
98
+ }
99
+ }
100
+ .detail-content-box {
101
+ background-color: white;
102
+ margin-top: 1vh;
103
+ padding: 1vh 2vh 2vh 2vh;
104
+ }
105
+ }
106
+ </style>
@@ -112,6 +112,10 @@ function setFormProps(form, item) {
112
112
  }
113
113
  }
114
114
 
115
+ function setForm(obj) {
116
+ Object.assign(form.value, obj)
117
+ }
118
+
115
119
  function onSubmit() {
116
120
  emits('onSubmit', form.value)
117
121
  }
@@ -137,6 +141,7 @@ defineExpose({ init, form, formGroupName, validate })
137
141
  :rules="rules"
138
142
  :service-name="myServiceName"
139
143
  :get-data-params="myGetDataParams"
144
+ @set-form="setForm"
140
145
  />
141
146
  </VanCellGroup>
142
147
  <div v-if="props.submitButton && props.mode !== '预览'" style="margin: 16px;">
@@ -88,7 +88,7 @@ const props = defineProps({
88
88
 
89
89
  })
90
90
 
91
- const emits = defineEmits(['update:modelValue'])
91
+ const emits = defineEmits(['update:modelValue', 'set-form'])
92
92
  // 判断并初始化防抖函数
93
93
  let debouncedUserLinkFunc: (() => void) | null = null
94
94
  let debouncedDepLinkFunc: (() => void) | null = null
@@ -127,7 +127,8 @@ const currInst = getCurrentInstance()
127
127
  // 配置中心->表单项变更触发函数
128
128
  const dataChangeFunc = debounce(async () => {
129
129
  if (attr.dataChangeFunc)
130
- await executeStrFunctionByContext(currInst, attr.dataChangeFunc, [form, attr, null, mode])
130
+ // eslint-disable-next-line vue/custom-event-name-casing
131
+ await executeStrFunctionByContext(currInst, attr.dataChangeFunc, [form, val => emits('set-form', val), attr, null, mode])
131
132
  }, 500)
132
133
 
133
134
  // 配置中心->表单项展示函数
@@ -1018,8 +1019,6 @@ function handleAddressConfirm(location) {
1018
1019
  v-model="localValue as LocationResult"
1019
1020
  tian-di-tu-key="c16876b28898637c0a1a68b3fa410504"
1020
1021
  amap-key="5ebabc4536d4b42e0dd1e20175cca8ab"
1021
- :default-center="[108.948024, 34.263161]"
1022
- :default-zoom="12"
1023
1022
  @confirm="handleAddressConfirm"
1024
1023
  />
1025
1024
  </VanPopup>
@@ -52,8 +52,6 @@ const initParams: InitParams = {
52
52
  zoom: 12, // 初始缩放级别
53
53
  maxZoom: 18, // 最大缩放级别
54
54
  minZoom: 4, // 最小缩放级别
55
- tianDiTuKey: 'your_key', // 天地图密钥
56
- amapKey: 'your_key', // 高德地图密钥
57
55
  }
58
56
 
59
57
  // 中心点变化回调