refactor: reorganize all components (#8303)
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import { PropType } from 'vue';
|
||||
import { PropType, defineComponent } from 'vue';
|
||||
import { createNamespace, addUnit, getSizeStyle } from '../utils';
|
||||
|
||||
const [createComponent, bem] = createNamespace('skeleton');
|
||||
const [name, bem] = createNamespace('skeleton');
|
||||
const DEFAULT_ROW_WIDTH = '100%';
|
||||
const DEFAULT_LAST_ROW_WIDTH = '60%';
|
||||
|
||||
export default createComponent({
|
||||
export default defineComponent({
|
||||
name,
|
||||
|
||||
props: {
|
||||
title: Boolean,
|
||||
round: Boolean,
|
||||
@@ -0,0 +1,7 @@
|
||||
import { installable } from '../utils';
|
||||
import _Skeleton from './Skeleton';
|
||||
|
||||
const Skeleton = installable(_Skeleton);
|
||||
|
||||
export default Skeleton;
|
||||
export { Skeleton };
|
||||
Reference in New Issue
Block a user