Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

无法清空 当前选中项 #37

Open
pihc opened this issue Apr 17, 2018 · 5 comments
Open

无法清空 当前选中项 #37

pihc opened this issue Apr 17, 2018 · 5 comments

Comments

@pihc
Copy link

pihc commented Apr 17, 2018

   <al-cascader v-model="formItem.subAddress" :level="2" data-type="name"/>

挺头疼的,formItem.subAddress = [] ,没有作用,希望可以修复这个问题

@init-object
Copy link

如果出现一个空数组[],或者undefined,或者null没有default,或者设置default但是没有值,它将不会显示默认值,并且在选择一个地点后它不会更新下一级列表,也不会设置默认值。
我也纳闷为啥如此设计

@xmVu
Copy link

xmVu commented Jul 24, 2018

用v-if, 控制显示隐藏, 先隐藏, 然后this.$nextTick( 显示) 可以达到清空的效果

@BoleLee
Copy link

BoleLee commented Jul 26, 2018

相关的 issue#28, 不知道为什么还没合并

@comkis
Copy link

comkis commented Aug 2, 2018

而且还是页面里都招不到这个文本这是最骚的。。我打算用透明颜色来控制。。要找到那一个input才可以

@promiseMIMI
Copy link

promiseMIMI commented Aug 11, 2020

al-cascader有一个清空的icon,找到对应的icon,执行click
Array.from(document.getElementsByClassName("ivu-icon-ios-close-circle"), dom => { dom.click(); })
可以对指定组件增加classname,选中指定的icon

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

No branches or pull requests

6 participants