[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
+3 -3
View File
@@ -1,10 +1,10 @@
import { use } from '../utils';
import { createNamespace } from '../utils';
import { TouchMixin } from '../mixins/touch';
const [sfc, bem] = use('tabs');
const [createComponent, bem] = createNamespace('tabs');
const MIN_SWIPE_DISTANCE = 50;
export default sfc({
export default createComponent({
mixins: [TouchMixin],
props: {
+2 -2
View File
@@ -1,6 +1,6 @@
import { use } from '../utils';
import { createNamespace } from '../utils';
const bem = use('tab')[1];
const bem = createNamespace('tab')[1];
export default {
props: {
+3 -3
View File
@@ -1,4 +1,4 @@
import { use, isDef, suffixPx } from '../utils';
import { createNamespace, isDef, suffixPx } from '../utils';
import { scrollLeftTo } from './utils';
import { on, off } from '../utils/dom/event';
import { ParentMixin } from '../mixins/relation';
@@ -12,9 +12,9 @@ import {
import Title from './Title';
import Content from './Content';
const [sfc, bem] = use('tabs');
const [createComponent, bem] = createNamespace('tabs');
export default sfc({
export default createComponent({
mixins: [
ParentMixin('vanTabs'),
BindEventMixin(function (bind, isBind) {