[improvement] rename use to createNamespace (#3658)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { use } from '../utils';
|
||||
import { createNamespace } from '../utils';
|
||||
|
||||
const [sfc, bem] = use('key');
|
||||
const [createComponent, bem] = createNamespace('key');
|
||||
|
||||
export default sfc({
|
||||
export default createComponent({
|
||||
props: {
|
||||
type: String,
|
||||
theme: Array,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { use } from '../utils';
|
||||
import { createNamespace } from '../utils';
|
||||
import { stopPropagation } from '../utils/dom/event';
|
||||
import { BindEventMixin } from '../mixins/bind-event';
|
||||
import Key from './Key';
|
||||
|
||||
const [sfc, bem, t] = use('number-keyboard');
|
||||
const [createComponent, bem, t] = createNamespace('number-keyboard');
|
||||
const CLOSE_KEY_THEME = ['blue', 'big'];
|
||||
const DELETE_KEY_THEME = ['delete', 'big', 'gray'];
|
||||
|
||||
export default sfc({
|
||||
export default createComponent({
|
||||
mixins: [
|
||||
BindEventMixin(function (bind) {
|
||||
if (this.hideOnClickOutside) {
|
||||
|
||||
Reference in New Issue
Block a user