@next-bricks/data-view 1.1.26 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,3 +37,4 @@ import "./data-display-flipper/index.js";
37
37
  import "./data-display-flipper-fifth/index.js";
38
38
  import "./data-display-flipper-sixth/index.js";
39
39
  import "./indicator-card/index.js";
40
+ import "./progress-bar-list/index.js";
@@ -0,0 +1,26 @@
1
+ import React, { CSSProperties } from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ /**
5
+ * 构件 `data-view.progress-bar-list`
6
+ */
7
+ export declare class ProgressBarList extends ReactNextElement {
8
+ /**
9
+ * @default
10
+ * @required
11
+ * @description 数据
12
+ */
13
+ accessor dataSource: Data[];
14
+ render(): React.JSX.Element;
15
+ }
16
+ export interface ProgressBarListProps {
17
+ dataSource: Data[];
18
+ }
19
+ interface Data {
20
+ title: string;
21
+ count: number;
22
+ loopBackground?: CSSProperties["background"];
23
+ barBackground?: CSSProperties["background"];
24
+ }
25
+ export declare function ProgressBarListComponent(props: ProgressBarListProps): React.JSX.Element;
26
+ export {};
@@ -0,0 +1 @@
1
+ import "./";
@@ -0,0 +1,23 @@
1
+ 构件 `data-view.progress-bar-list`
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ brick: data-view.progress-bar-list
9
+ properties:
10
+ dataSource:
11
+ - title: 资源1
12
+ count: 123
13
+ - title: 资源2
14
+ count: 39
15
+ - title: 资源3
16
+ count: 23
17
+ - title: 资源4
18
+ count: 13
19
+ - title: 资源5
20
+ count: 49
21
+ barBackground: linear-gradient(to right, rgba(255, 222, 104, 0.2), rgb(255, 222, 104))
22
+ loopBackground: rgb(255, 222, 104)
23
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/data-view",
3
- "version": "1.1.26",
3
+ "version": "1.2.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/data-view",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,5 +41,5 @@
41
41
  "peerDependencies": {
42
42
  "@next-bricks/icons": "*"
43
43
  },
44
- "gitHead": "3276d5d781bb975ff41a0e62f52e7cf888d32294"
44
+ "gitHead": "327df09370d13ed16670fe75b9d7234178fad31e"
45
45
  }