refactor(DatetimePicker): remove mixin

This commit is contained in:
chenjiahan
2020-09-25 16:05:16 +08:00
parent aafbcfcf04
commit 3142266768
4 changed files with 184 additions and 120 deletions
+12
View File
@@ -1,4 +1,16 @@
import { isNaN } from '../utils/validate/number';
import { pickerProps } from '../picker/shared';
export const sharedProps = {
...pickerProps,
filter: Function,
modelValue: null,
columnsOrder: Array,
formatter: {
type: Function,
default: (type: string, value: unknown) => value,
},
};
export function times(n: number, iteratee: (index: number) => any[]) {
let index = -1;