datetime 默认值 重选 不清除

type为datetime时 ranget属性为true时  默认初始化 value 属性为 ‘2016-08-11 00:00:00 - 2018-12-02 00:00:00’    此时点击控件时已经选定该范围的日期,如果重选 默认的不会清楚,会出现三个小绿方块,数据绑定时会出现问题,添加代码 大概为553行
pull/74/head
hlcsmile 2018-08-09 17:14:23 +08:00 committed by GitHub
parent bfc0c1bf6d
commit 615a171ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -553,6 +553,10 @@
that.setValue(that.parse(0, that.systemDate(options.value)));
} else {
that.setValue(options.value);
// friend@rainbow 添加的代码
that.startState = true;
that.endState = true;
// friend@rainbow 添加的代码
}
}
};