types: export more types (#8652)

This commit is contained in:
neverland
2021-05-03 09:47:56 +08:00
committed by GitHub
parent 721ecb6e76
commit 914aafb1d8
9 changed files with 14 additions and 5 deletions
+3 -1
View File
@@ -20,6 +20,8 @@ import { Loading } from '../loading';
const [name, bem, t] = createNamespace('list');
export type ListDirection = 'up' | 'down';
export default defineComponent({
name,
@@ -36,7 +38,7 @@ export default defineComponent({
default: 300,
},
direction: {
type: String as PropType<'up' | 'down'>,
type: String as PropType<ListDirection>,
default: 'down',
},
},
+1
View File
@@ -5,3 +5,4 @@ const List = withInstall<typeof _List>(_List);
export default List;
export { List };
export type { ListDirection } from './List';