docs(TimePicker): fix docs error (#11784)

This commit is contained in:
inottn
2023-04-30 19:49:58 +08:00
committed by GitHub
parent e696d35bd4
commit 5e7a6a212c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ export default {
const filter = (type, options) => {
if (type === 'minute') {
return options.filter((option) => Number(option) % 10 === 0);
return options.filter((option) => Number(option.value) % 10 === 0);
}
return options;
};
@@ -147,7 +147,7 @@ export default {
const currentTime = ref(['12', '00']);
const filter = (type, options) => {
if (type === 'minute') {
return options.filter((option) => Number(option) % 10 === 0);
return options.filter((option) => Number(option.value) % 10 === 0);
}
return options;
};