@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.
- package/dist/bricks.json +8 -7
- package/dist/chunks/{6464.c3787204.js → 1840.b3144193.js} +2 -2
- package/dist/chunks/1840.b3144193.js.map +1 -0
- package/dist/chunks/{main.cca7c378.js → main.251244fe.js} +2 -2
- package/dist/chunks/{main.cca7c378.js.map → main.251244fe.js.map} +1 -1
- package/dist/chunks/progress-bar-list.46c984b8.js +2 -0
- package/dist/chunks/progress-bar-list.46c984b8.js.map +1 -0
- package/dist/examples.json +17 -14
- package/dist/index.7306081b.js +2 -0
- package/dist/index.7306081b.js.map +1 -0
- package/dist/manifest.json +160 -142
- package/dist/types.json +434 -337
- package/dist-types/bootstrap.d.ts +1 -0
- package/dist-types/progress-bar-list/index.d.ts +26 -0
- package/dist-types/progress-bar-list/index.spec.d.ts +1 -0
- package/docs/progress-bar-list.md +23 -0
- package/package.json +2 -2
- package/dist/chunks/6464.c3787204.js.map +0 -1
- package/dist/index.2aa74f5d.js +0 -2
- package/dist/index.2aa74f5d.js.map +0 -1
|
@@ -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.
|
|
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": "
|
|
44
|
+
"gitHead": "327df09370d13ed16670fe75b9d7234178fad31e"
|
|
45
45
|
}
|