[improvement] rename use to createNamespace (#3658)
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import { use, suffixPx } from '../utils';
|
||||
import { createNamespace, suffixPx } from '../utils';
|
||||
import { toArray, readFile, isOversize } from './utils';
|
||||
import Icon from '../icon';
|
||||
import Image from '../image';
|
||||
import ImagePreview from '../image-preview';
|
||||
|
||||
const [sfc, bem] = use('uploader');
|
||||
const [createComponent, bem] = createNamespace('uploader');
|
||||
|
||||
function isImageDataUrl(dataUrl) {
|
||||
return dataUrl.indexOf('data:image') === 0;
|
||||
}
|
||||
|
||||
export default sfc({
|
||||
export default createComponent({
|
||||
inheritAttrs: false,
|
||||
|
||||
model: {
|
||||
|
||||
Reference in New Issue
Block a user