nek-ui
nek-ui copied to clipboard
kl-multi-select在showRoot=true时无法清空
<kl-multi-select
source={source}
multiple={true}
showRoot={true}
value={value}
rootValue={rootValue}
/>
<p>选择的是:{value}</p>
<p>rootValue: {rootValue}</p>
<kl-button on-click={this.clear()} title="清空" />
<kl-button on-click={this.change()} title="修改" />
clear: function(){
this.rootValue = '';
}
change: function(){
this.rootValue = '1';
}
使用上述clear方式无法将kl-multi-select的选择清空; 使用上述change方式无法将kl-multi-select的选择修改。