refactor: reorganize all components (#8303)

This commit is contained in:
neverland
2021-03-08 11:50:37 +08:00
committed by GitHub
parent 3144a63d2b
commit e540876398
193 changed files with 1307 additions and 400 deletions
@@ -1,7 +1,7 @@
import { computed, PropType } from 'vue';
import { computed, PropType, defineComponent } from 'vue';
import { createNamespace, addUnit, getSizeStyle } from '../utils';
const [createComponent, bem] = createNamespace('loading');
const [name, bem] = createNamespace('loading');
const SpinIcon: JSX.Element[] = Array(12).fill(<i />);
@@ -13,7 +13,9 @@ const CircularIcon = (
export type LoadingType = 'circular' | 'spinner';
export default createComponent({
export default defineComponent({
name,
props: {
size: [Number, String],
color: String,
+8
View File
@@ -0,0 +1,8 @@
import { installable } from '../utils';
import _Loading from './Loading';
const Loading = installable(_Loading);
export default Loading;
export { Loading };
export type { LoadingType } from './Loading';