@ztocwst/rc-pro-materials 0.1.35 → 0.1.36
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.js +2 -2
- package/dist/SCM_Comps.js +2 -2
- package/dist/SCM_Comps.js.map +1 -1
- package/es/components/z-pointer-block/z-pointer-block.d.ts +3 -2
- package/es/components/z-pointer-block/z-pointer-block.js +9 -7
- package/lib/components/z-pointer-block/z-pointer-block.d.ts +3 -2
- package/lib/components/z-pointer-block/z-pointer-block.js +9 -7
- package/package.json +3 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import './index.less';
|
|
3
|
-
|
|
3
|
+
import { TypeZStatisticProps } from '../z-statistic';
|
|
4
|
+
export type TypeZPointerBlockProps = {
|
|
4
5
|
/** 标题 */
|
|
5
6
|
title: string | React.ReactNode;
|
|
6
7
|
/** 值 */
|
|
@@ -10,6 +11,6 @@ export interface TypeZPointerBlockProps {
|
|
|
10
11
|
align?: 'top' | 'middle' | 'bottom';
|
|
11
12
|
style?: React.CSSProperties;
|
|
12
13
|
onClick?: (item?: any) => void;
|
|
13
|
-
}
|
|
14
|
+
} & TypeZStatisticProps;
|
|
14
15
|
declare const ZPointerBlock: (props: TypeZPointerBlockProps) => import("react").JSX.Element;
|
|
15
16
|
export default ZPointerBlock;
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import _Row from "antd/es/row";
|
|
2
2
|
import _Col from "antd/es/col";
|
|
3
|
-
import _Statistic from "antd/es/statistic";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
|
+
var _excluded = ["style", "title", "value", "icon", "align", "onClick"];
|
|
5
6
|
import "./index.less";
|
|
6
7
|
import classnames from 'classnames';
|
|
8
|
+
import ZStatistic from "../z-statistic";
|
|
7
9
|
var ZPointerBlock = function ZPointerBlock(props) {
|
|
8
10
|
var style = props.style,
|
|
9
11
|
title = props.title,
|
|
10
12
|
value = props.value,
|
|
11
13
|
icon = props.icon,
|
|
12
14
|
align = props.align,
|
|
13
|
-
_onClick = props.onClick
|
|
15
|
+
_onClick = props.onClick,
|
|
16
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
14
17
|
return /*#__PURE__*/React.createElement("div", {
|
|
15
18
|
className: "z-pointer-block-panel"
|
|
16
19
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
className: classnames(
|
|
20
|
+
className: classnames('z-pointer-block', {
|
|
18
21
|
// 聚合指标里可点击时添加css动效
|
|
19
22
|
animate: !!_onClick
|
|
20
23
|
}),
|
|
@@ -27,11 +30,10 @@ var ZPointerBlock = function ZPointerBlock(props) {
|
|
|
27
30
|
gutter: 8
|
|
28
31
|
}, /*#__PURE__*/React.createElement(_Col, {
|
|
29
32
|
flex: 1
|
|
30
|
-
}, /*#__PURE__*/React.createElement(
|
|
33
|
+
}, /*#__PURE__*/React.createElement(ZStatistic, _extends({
|
|
31
34
|
title: title,
|
|
32
|
-
value: value
|
|
33
|
-
|
|
34
|
-
})), icon ? /*#__PURE__*/React.createElement(_Col, {
|
|
35
|
+
value: value
|
|
36
|
+
}, rest))), icon ? /*#__PURE__*/React.createElement(_Col, {
|
|
35
37
|
className: "z-pointer-icon"
|
|
36
38
|
}, icon) : null)));
|
|
37
39
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import './index.less';
|
|
3
|
-
|
|
3
|
+
import { TypeZStatisticProps } from '../z-statistic';
|
|
4
|
+
export type TypeZPointerBlockProps = {
|
|
4
5
|
/** 标题 */
|
|
5
6
|
title: string | React.ReactNode;
|
|
6
7
|
/** 值 */
|
|
@@ -10,6 +11,6 @@ export interface TypeZPointerBlockProps {
|
|
|
10
11
|
align?: 'top' | 'middle' | 'bottom';
|
|
11
12
|
style?: React.CSSProperties;
|
|
12
13
|
onClick?: (item?: any) => void;
|
|
13
|
-
}
|
|
14
|
+
} & TypeZStatisticProps;
|
|
14
15
|
declare const ZPointerBlock: (props: TypeZPointerBlockProps) => import("react").JSX.Element;
|
|
15
16
|
export default ZPointerBlock;
|
|
@@ -5,21 +5,24 @@ exports.__esModule = true;
|
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var _row = _interopRequireDefault(require("antd/lib/row"));
|
|
7
7
|
var _col = _interopRequireDefault(require("antd/lib/col"));
|
|
8
|
-
var _statistic = _interopRequireDefault(require("antd/lib/statistic"));
|
|
9
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
10
|
require("./index.less");
|
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
|
+
var _zStatistic = _interopRequireDefault(require("../z-statistic"));
|
|
13
|
+
var _excluded = ["style", "title", "value", "icon", "align", "onClick"];
|
|
12
14
|
var ZPointerBlock = function ZPointerBlock(props) {
|
|
13
15
|
var style = props.style,
|
|
14
16
|
title = props.title,
|
|
15
17
|
value = props.value,
|
|
16
18
|
icon = props.icon,
|
|
17
19
|
align = props.align,
|
|
18
|
-
_onClick = props.onClick
|
|
20
|
+
_onClick = props.onClick,
|
|
21
|
+
rest = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
19
22
|
return /*#__PURE__*/React.createElement("div", {
|
|
20
23
|
className: "z-pointer-block-panel"
|
|
21
24
|
}, /*#__PURE__*/React.createElement("div", {
|
|
22
|
-
className: (0, _classnames["default"])(
|
|
25
|
+
className: (0, _classnames["default"])('z-pointer-block', {
|
|
23
26
|
// 聚合指标里可点击时添加css动效
|
|
24
27
|
animate: !!_onClick
|
|
25
28
|
}),
|
|
@@ -32,11 +35,10 @@ var ZPointerBlock = function ZPointerBlock(props) {
|
|
|
32
35
|
gutter: 8
|
|
33
36
|
}, /*#__PURE__*/React.createElement(_col["default"], {
|
|
34
37
|
flex: 1
|
|
35
|
-
}, /*#__PURE__*/React.createElement(
|
|
38
|
+
}, /*#__PURE__*/React.createElement(_zStatistic["default"], (0, _extends2["default"])({
|
|
36
39
|
title: title,
|
|
37
|
-
value: value
|
|
38
|
-
|
|
39
|
-
})), icon ? /*#__PURE__*/React.createElement(_col["default"], {
|
|
40
|
+
value: value
|
|
41
|
+
}, rest))), icon ? /*#__PURE__*/React.createElement(_col["default"], {
|
|
40
42
|
className: "z-pointer-icon"
|
|
41
43
|
}, icon) : null)));
|
|
42
44
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ztocwst/rc-pro-materials",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
4
4
|
"description": "@ztocwst/rc-pro-materials",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
},
|
|
87
87
|
"componentConfig": {
|
|
88
88
|
"isComponentLibrary": true,
|
|
89
|
-
"materialSchema": "https://npm.onmicrosoft.cn/@ztocwst/rc-pro-materials@0.1.
|
|
89
|
+
"materialSchema": "https://npm.onmicrosoft.cn/@ztocwst/rc-pro-materials@0.1.36/build/lowcode/assets-prod.json"
|
|
90
90
|
},
|
|
91
|
-
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.
|
|
91
|
+
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.36/build/index.html",
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"registry": "https://registry.npmjs.org/",
|
|
94
94
|
"access": "public"
|