chore(Picker): move shared props (#8142)

This commit is contained in:
neverland
2021-02-12 13:26:25 +08:00
committed by GitHub
parent 2fc8333c45
commit e943b081f8
7 changed files with 32 additions and 35 deletions

View File

@@ -9,8 +9,7 @@ import { times, sharedProps, getTrueValue, getMonthEndDay } from './utils';
import { useExpose } from '../composables/use-expose';
// Components
import Picker from '../picker';
import { pickerProps } from '../picker/shared';
import Picker, { pickerProps } from '../picker';
const currentYear = new Date().getFullYear();
const [createComponent] = createNamespace('date-picker');

View File

@@ -8,8 +8,7 @@ import { times, sharedProps } from './utils';
import { useExpose } from '../composables/use-expose';
// Components
import Picker from '../picker';
import { pickerProps } from '../picker/shared';
import Picker, { pickerProps } from '../picker';
const [createComponent] = createNamespace('time-picker');

View File

@@ -1,5 +1,5 @@
import { isNaN } from '../utils/validate/number';
import { pickerProps } from '../picker/shared';
import { pickerProps } from '../picker';
export const sharedProps = {
...pickerProps,