Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

songyazhao
Copy link

触发该问题的例子:

<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

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
Author

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants