Skip to content

Commit

Permalink
Spinner: add spinner.d.ts (ElemeFE#21090)
Browse files Browse the repository at this point in the history
  • Loading branch information
qige2016 authored and hzsrc committed Feb 2, 2023
1 parent f06e5d2 commit 29b158e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/element-ui.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -360,3 +361,6 @@ export class CascaderPanel extends ElCascaderPanel {}

/** Empty Component */
export class Empty extends ElEmpty {}

/** Spinner Component */
export class Spinner extends ElSpinner {}
16 changes: 16 additions & 0 deletions types/spinner.d.ts
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 29b158e

Please sign in to comment.