vue2-client 1.8.235 → 1.8.237
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
|
@@ -208,7 +208,8 @@ export default {
|
|
|
208
208
|
this.addressInput = this.addressObj.address
|
|
209
209
|
console.log(' result--- ', result)
|
|
210
210
|
this.visible = false
|
|
211
|
-
this.$emit('onSelect',
|
|
211
|
+
this.$emit('onSelect', JSON.stringify(result))
|
|
212
|
+
this.$emit('onDivisionsChange', Object.assign({}, result, { divisions: this.divisions, vm: this }))
|
|
212
213
|
// this.$emit('onClick', result || value)
|
|
213
214
|
},
|
|
214
215
|
// 懒加载检索方法
|
|
@@ -395,6 +395,7 @@
|
|
|
395
395
|
:resultKeys="{ address: attr.model, coords: `${attr.model}_lng_lat` }"
|
|
396
396
|
searchResultType="Object"
|
|
397
397
|
@onSelect="addressSearchComboboxSelect"
|
|
398
|
+
@onDivisionsChange="onDivisionsChange"
|
|
398
399
|
></address-search-combobox>
|
|
399
400
|
</a-form-model-item>
|
|
400
401
|
</x-form-col>
|
|
@@ -647,10 +648,12 @@ export default {
|
|
|
647
648
|
}
|
|
648
649
|
},
|
|
649
650
|
addressSearchComboboxSelect () {
|
|
650
|
-
this.form = Object.assign(this.form,
|
|
651
|
+
this.form = Object.assign(this.form, this.searchResult)
|
|
652
|
+
},
|
|
653
|
+
onDivisionsChange (data) {
|
|
651
654
|
this.emitFunc('addressSearchComboboxSelect', {
|
|
652
655
|
key: this.attr.model,
|
|
653
|
-
value:
|
|
656
|
+
value: data
|
|
654
657
|
})
|
|
655
658
|
},
|
|
656
659
|
getDataCallback (res) {
|
package/vue.config.js
CHANGED
|
@@ -99,7 +99,6 @@ module.exports = {
|
|
|
99
99
|
extensions: ['.js', '.vue', '.json'],
|
|
100
100
|
alias: {
|
|
101
101
|
'@vue2-client': path.resolve('src'),
|
|
102
|
-
'@': path.resolve('src')
|
|
103
102
|
}
|
|
104
103
|
}
|
|
105
104
|
config.entry.app = ['core-js/stable', 'regenerator-runtime/runtime', 'whatwg-fetch', './src/main.js']
|