Skip to content

fix 清空v-model绑定的值(赋值为[]时),界面显示上不生效的问题 - #31

Open
songyazhao wants to merge 3 commits into
iview:masterfrom
songyazhao:master
Open

fix 清空v-model绑定的值(赋值为[]时),界面显示上不生效的问题#31
songyazhao wants to merge 3 commits into
iview:masterfrom
songyazhao:master

Conversation

@songyazhao

Copy link
Copy Markdown

触发该问题的例子:

<template>
  <div>
    <al-cascader v-model="area"/>
    <button @click="handleCleanArea"></button>
  </div>
</template>

<script>
export default {
  data() {
    area: [
      "120000",
      "120100",
      "120101",
      "120101001000"
    ]
  },
  methods: {
    handleCleanArea() {
      // 此处对area清空时并不会触发el-cascader组件的视图更新
      this.area = []
    }
  }
}
</script>

@songyazhao songyazhao mentioned this pull request Mar 24, 2018
@init-object

Copy link
Copy Markdown

No compatible version found: iview-area@^1.5.18
Valid install targets: 1.5.17, 1.5.16, 1.5.15, 1.5.14, 1.5.13,

@songyazhao

Copy link
Copy Markdown
Author

没办法,只能等待作者合并,然后发布1.5.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants