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

select框默认值我想修改,你这个我自己怎么打包哦 #17

Open
470140053 opened this issue Apr 5, 2020 · 0 comments
Open

Comments

@470140053
Copy link

`created: function () {

//设置默认值
for(var i in this.data) {
  if(this.data[i][this.prop.value] == this.value) {
      this.selectText = this.data[i][this.prop.lable];
      break;
  }
}
//取消选择的值
this.obj[this.prop.value] = '';
this.obj[this.prop.lable] = this.placeholder;


if (!this.group) {
  this.datas = [
    {
      data: this.data
    }
  ];
} else {
  this.datas = this.data;
### }

},`

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

1 participant