DatetimePicker: improve test coverage

This commit is contained in:
陈嘉涵
2017-08-26 09:10:38 +08:00
parent e7b1d70900
commit 956f7f4cdf
4 changed files with 116 additions and 14 deletions
+3
View File
@@ -270,6 +270,9 @@ export default {
});
},
setColumnByValues(values) {
if (!this.$refs.picker) {
return;
}
const setColumnValue = this.$refs.picker.setColumnValue;
if (this.type === 'time') {
setColumnValue(0, values[0]);