[improvement] lint ts/tsx files (#2776)

This commit is contained in:
neverland
2019-02-18 14:45:31 +08:00
committed by GitHub
parent 29fad2235a
commit 0013185d38
9 changed files with 57 additions and 19 deletions

View File

@@ -1,17 +1,16 @@
import { use, isDef } from '../utils';
import { cellProps } from './shared';
import { cellProps, SharedCellProps } from './shared';
import { emit, inherit } from '../utils/functional';
import { routeProps, functionalRoute } from '../mixins/router';
import Icon from '../icon';
// Types
import { SharedCellProps } from './shared';
import { FunctionalComponent } from '../utils/use/sfc';
import { Mods } from '../utils/use/bem';
const [sfc, bem] = use('cell');
const Cell: FunctionalComponent<CellProps> = function(h, props, slots, ctx) {
const Cell: FunctionalComponent<CellProps> = function (h, props, slots, ctx) {
const { icon, size, title, label, value, isLink, arrowDirection } = props;
const showTitle = slots.title || isDef(title);
@@ -78,7 +77,7 @@ const Cell: FunctionalComponent<CellProps> = function(h, props, slots, ctx) {
{slots.extra && slots.extra()}
</div>
);
}
};
export type CellProps = SharedCellProps & {
size?: string;