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

@@ -1,6 +1,5 @@
/* eslint-disable no-use-before-define */
import { ref, watch, reactive, PropType } from 'vue';
import { PICKER_KEY } from './shared';
// Utils
import { deepClone } from '../utils/deep-clone';
@@ -29,6 +28,8 @@ function getElementTranslateY(element: Element) {
return Number(translateY);
}
export const PICKER_KEY = 'vanPicker';
export type PickerObjectOption = {
text?: string;
disabled?: boolean;