Skip to content

Commit 2f8eb00

Browse files
committed
feat: Loading 组件新增 content、commonText 属性, type 新增 common 属性
1 parent 5230e17 commit 2f8eb00

File tree

5 files changed

+258
-196
lines changed

5 files changed

+258
-196
lines changed

Diff for: .idea/workspace.xml

+42-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: @types/loading.d.ts

+15-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export interface IProps extends BaseComponent {
1313
*
1414
* 默认值 `bar`
1515
*
16-
* 可选类型 `modal`, `bar`, `line`
16+
* 可选类型 `modal`, `bar`, `line`, `image`, `common`
1717
*/
18-
type?: "modal" | "bar" | "line" | "image";
18+
type?: "modal" | "bar" | "line" | "image" | "common";
1919
/**
2020
* 背景色,可选类型请查看 默认色
2121
*
@@ -26,10 +26,18 @@ export interface IProps extends BaseComponent {
2626
* type 为 modal 时显示的文字
2727
*/
2828
modalText?: string;
29+
/**
30+
* type 为 common 时显示的文字
31+
*/
32+
commonText?: string;
2933
/**
3034
* type 为 modal 或 image 时显示的图片
3135
*/
3236
imgUrl?: string;
37+
/**
38+
* type 为 image 时设置,图片宽度
39+
*/
40+
imgWidth?: number;
3341
/**
3442
* 是否显示
3543
*
@@ -54,6 +62,11 @@ export interface IProps extends BaseComponent {
5462
* 可选类型 `true`, `false`
5563
*/
5664
noMore?: boolean;
65+
/**
66+
* 是否是局部 loading
67+
*/
68+
content?: boolean;
69+
children?: any;
5770
}
5871

5972
export interface LoadingProps extends IProps {}

0 commit comments

Comments
 (0)