feat: 支持其他类型默认值

This commit is contained in:
Argo Zhang 2019-07-19 11:29:37 +08:00
parent befb17cb5a
commit 35517bed70
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 1 additions and 0 deletions

View File

@ -414,6 +414,7 @@
getTextByValue: function (value) {
// 通过value获取select控件的text属性
var text = "";
if (typeof value !== "string") value = value.toString();
if (this.attr('data-toggle') === 'lgbSelect') {
if (value === this.val()) text = this.attr('data-text');
else {