修正单词hidn => hide
This commit is contained in:
maplemei 2019-09-23 20:17:24 +08:00
parent 2746d723d2
commit 9786701c41
5 changed files with 7 additions and 7 deletions

View File

@ -148,7 +148,7 @@ QQ群: 660408068
},
// 隐藏下拉框
hidn(){
hide(){
},
// 模板组成, 当前option数据

2
dist/xm-select.js vendored

File diff suppressed because one or more lines are too long

View File

@ -152,7 +152,7 @@ xmSelect.render({
},
// 隐藏下拉框
hidn(){
hide(){
},
// 模板组成, 当前option数据, 已经选中的数据, name, value
@ -645,7 +645,7 @@ var demo26 = xmSelect.render({
show: function(){
alert('打开了');
},
hidn: function(){
hide: function(){
alert('关闭了');
}
})
@ -663,7 +663,7 @@ var demo27 = xmSelect.render({
//这里也可以组件受控
//return false;
},
hidn: function(){
hide: function(){
var arr = demo27.getValue();
//如果已选择数据小于1, 则不会关闭下拉框
if(arr.length < 1){

View File

@ -85,7 +85,7 @@ export default function (lan = 'zn') {
},
// 隐藏下拉框
hidn(){
hide(){
},
// 模板组成, 当前option数据, 已经选中的数据, name, value

View File

@ -81,7 +81,7 @@ class Framework extends Component{
}
this.setState({ directionVal: direction })
}else{
if(this.props.hidn && this.props.hidn() == false){
if(this.props.hide && this.props.hide() == false){
return;
}
//如果产生滚动条, 关闭下拉后回到顶部