) {
const { color, size, type } = props;
const style: { [key: string]: string } = { color };
if (size) {
const iconSize = suffixPx(size) as string;
style.width = iconSize;
style.height = iconSize;
}
return (
{LoadingIcon(h, props)}
{LoadingText(h, props, slots)}
);
}
Loading.props = {
size: [String, Number],
textSize: [String, Number],
vertical: Boolean,
type: {
type: String,
default: 'circular'
},
color: {
type: String,
default: GRAY
}
};
export default sfc(Loading);