mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
fix(DatePicker): only throw error in development (#11248)
This commit is contained in:
@@ -128,10 +128,13 @@ export default defineComponent({
|
||||
case 'day':
|
||||
return genDayOptions();
|
||||
default:
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
throw new Error(
|
||||
`[Vant] DatePicker: unsupported columns type: ${type}`
|
||||
);
|
||||
}
|
||||
return [];
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
|
@@ -83,10 +83,13 @@ export default defineComponent({
|
||||
filter
|
||||
);
|
||||
default:
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
throw new Error(
|
||||
`[Vant] DatePicker: unsupported columns type: ${type}`
|
||||
);
|
||||
}
|
||||
return [];
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user