对接大部分接口
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section class="fengduHead">
|
||||
<div class="content flex">
|
||||
<ai-area class="fill" v-model="current" :mask="false" :root="currentRoot">
|
||||
<ai-area class="fill" v-model="current" :mask="false" :root="currentRoot" @area="v=>$emit('pick',v)">
|
||||
<template slot-scope="{areaname}">
|
||||
<el-input class="areaPicker" :value="areaname" readonly suffix-icon="el-icon-arrow-down"/>
|
||||
</template>
|
||||
@@ -45,11 +45,11 @@ export default {
|
||||
active: {
|
||||
immediate: true,
|
||||
handler(v) {
|
||||
if (v != this.current) this.current = this.$copy(this.active)
|
||||
if (v && v != this.current) this.current = this.$copy(this.active)
|
||||
}
|
||||
},
|
||||
current(v) {
|
||||
this.$emit("change", v)
|
||||
v != this.active && this.$emit("change", v)
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
Reference in New Issue
Block a user