[improvement] ContactList: tsx (#2794)

This commit is contained in:
neverland
2019-02-19 14:30:30 +08:00
committed by GitHub
parent c55b33f447
commit 8c6ab91f6d
4 changed files with 44 additions and 24 deletions
+7 -6
View File
@@ -9,11 +9,12 @@ import { CreateElement, RenderContext } from 'vue/types';
import { ScopedSlot, DefaultSlots } from '../utils/use/sfc';
import { Mods } from '../utils/use/bem';
export type CellProps = RouteProps & SharedCellProps & {
size?: string;
clickable?: boolean;
arrowDirection?: string;
};
export type CellProps = RouteProps &
SharedCellProps & {
size?: string;
clickable?: boolean;
arrowDirection?: string;
};
export type CellSlots = DefaultSlots & {
icon?: ScopedSlot;
@@ -106,4 +107,4 @@ Cell.props = {
arrowDirection: String
};
export default sfc<CellProps, CellEvents>(Cell);
export default sfc<CellProps, CellEvents, CellSlots>(Cell);