[improvement] update eslint rules (#2089)
This commit is contained in:
@@ -8,7 +8,11 @@
|
||||
@click="showList = true"
|
||||
/>
|
||||
|
||||
<van-popup v-model="showList" position="bottom" :lazy-render="false">
|
||||
<van-popup
|
||||
v-model="showList"
|
||||
position="bottom"
|
||||
:lazy-render="false"
|
||||
>
|
||||
<van-contact-list
|
||||
v-model="chosenContactId"
|
||||
:list="list"
|
||||
@@ -18,7 +22,11 @@
|
||||
/>
|
||||
</van-popup>
|
||||
|
||||
<van-popup v-model="showEdit" position="bottom" :lazy-render="false">
|
||||
<van-popup
|
||||
v-model="showEdit"
|
||||
position="bottom"
|
||||
:lazy-render="false"
|
||||
>
|
||||
<van-contact-edit
|
||||
:contact-info="editingContact"
|
||||
:is-edit="isEdit"
|
||||
@@ -61,10 +69,6 @@ export default {
|
||||
};
|
||||
},
|
||||
|
||||
created() {
|
||||
this.list.push(this.mockContact);
|
||||
},
|
||||
|
||||
computed: {
|
||||
mockContact() {
|
||||
return {
|
||||
@@ -84,6 +88,10 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
created() {
|
||||
this.list.push(this.mockContact);
|
||||
},
|
||||
|
||||
methods: {
|
||||
onAdd() {
|
||||
this.editingContact = { id: this.list.length };
|
||||
|
||||
@@ -69,7 +69,9 @@ exports[`renders demo correctly 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
<div class="van-contact-edit__buttons">
|
||||
<button class="van-button van-button--danger van-button--normal van-button--block"><span class="van-button__text">保存</span></button>
|
||||
<button class="van-button van-button--danger van-button--normal van-button--block"><span class="van-button__text">
|
||||
保存
|
||||
</span></button>
|
||||
<!---->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user