[improvement] rename use to createNamespace (#3658)

This commit is contained in:
neverland
2019-06-27 11:11:47 +08:00
committed by GitHub
parent 1d9301b158
commit 8489918dca
94 changed files with 282 additions and 282 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
import { use, isDef } from '../utils';
import { createNamespace, isDef } from '../utils';
import { cellProps, SharedCellProps } from './shared';
import { emit, inherit } from '../utils/functional';
import { routeProps, RouteProps, functionalRoute } from '../utils/router';
@@ -7,7 +7,7 @@ import Icon from '../icon';
// Types
import { CreateElement, RenderContext } from 'vue/types';
import { ScopedSlot, DefaultSlots } from '../utils/types';
import { Mods } from '../utils/use/bem';
import { Mods } from '../utils/create/bem';
export type CellProps = RouteProps &
SharedCellProps & {
@@ -26,7 +26,7 @@ export type CellEvents = {
onClick?(event: Event): void;
};
const [sfc, bem] = use('cell');
const [createComponent, bem] = createNamespace('cell');
function Cell(
h: CreateElement,
@@ -106,4 +106,4 @@ Cell.props = {
arrowDirection: String
};
export default sfc<CellProps, CellEvents, CellSlots>(Cell);
export default createComponent<CellProps, CellEvents, CellSlots>(Cell);