252 Unstar Star 475 Fork 258

稻米 / LigerUI

日期控件赋值后获取值为NULL

Closed
czhncn  Opened this issue

日期控件通过赋值初始化值的话再获取时为空。
需要在
_setValue: function (value) {
var g = this;
if (!value) g.inputText.val('');
if (typeof value == "string") {
g.inputText.val(value);
g.usedDate = value;//增加这一行。
}
else if (typeof value == "object") {
if (value instanceof Date) {
g.inputText.val(g.getFormatDate(value));
g.onTextChange();
g.usedDate = g.getFormatDate(value);
}
}
},

17593 ligerui 1578915163 total 2 participants

Comments (1)

17593 ligerui 1578915163
稻米 2015-07-26 10:27 owner

Status changed to closed

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
JavaScript
1
https://gitee.com/ligerui/LigerUI.git
git@gitee.com:ligerui/LigerUI.git
ligerui
LigerUI
LigerUI

Search