From 318e89b40a891c39d36d1c27845c0d7d9ca8e77d Mon Sep 17 00:00:00 2001 From: qige2016 <286882998@qq.com> Date: Mon, 21 Jun 2021 02:36:56 -0500 Subject: [PATCH] Spinner: add spinner.d.ts (#21090) --- types/element-ui.d.ts | 4 ++++ types/spinner.d.ts | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 types/spinner.d.ts diff --git a/types/element-ui.d.ts b/types/element-ui.d.ts index 115a0315..d0983c1c 100644 --- a/types/element-ui.d.ts +++ b/types/element-ui.d.ts @@ -84,6 +84,7 @@ import { ElSkeleton } from './skeleton' import { ElSkeletonItem } from './skeleton-item' import { ElCascaderPanel } from './cascader-panel' import { ElEmpty } from './empty' +import { ElSpinner } from './spinner' export interface InstallationOptions { locale: any, @@ -360,3 +361,6 @@ export class CascaderPanel extends ElCascaderPanel {} /** Empty Component */ export class Empty extends ElEmpty {} + +/** Spinner Component */ +export class Spinner extends ElSpinner {} diff --git a/types/spinner.d.ts b/types/spinner.d.ts new file mode 100644 index 00000000..b8e07982 --- /dev/null +++ b/types/spinner.d.ts @@ -0,0 +1,16 @@ +import { ElementUIComponent } from './component' + +/** Spinner Component */ +export declare class ElSpinner extends ElementUIComponent { + /** The type of spinner */ + type: string + + /** The radius of spinner */ + radius: number + + /** The width of spinner */ + strokeWidth: number + + /** The color of spinner */ + strokeColor: string +}