[new feature] Button: add loading-type prop

This commit is contained in:
陈嘉涵
2019-05-03 08:42:52 +08:00
parent 7f0615a503
commit 1616f60a31
7 changed files with 27 additions and 5 deletions

View File

@@ -5,8 +5,10 @@ import { inherit } from '../utils/functional';
import { CreateElement, RenderContext } from 'vue/types';
import { DefaultSlots } from '../utils/use/sfc';
export type LoadingType = 'circular' | 'spinner';
export type LoadingProps = {
type: 'circular' | 'spinner';
type: LoadingType;
size?: string | number;
color: string;
textSize?: string | number;