@ztocwst/rc-pro-materials 0.1.2 → 0.1.3

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.
@@ -20,6 +20,8 @@ export interface TypeZSimpleBarProps extends Omit<ProgressProps, 'format'> {
20
20
  percentField?: string | ((v: any, index: number) => React.ReactNode);
21
21
  /** 百分比内容格式化,中转其本身的format */
22
22
  format?: (percent: number, successPercent: number, item: any, index: number) => string;
23
+ /** 单号显示间距 */
24
+ gap?: number;
23
25
  }
24
26
  declare const ZSimpleBar: (props: TypeZSimpleBarProps) => import("react").JSX.Element;
25
27
  export default ZSimpleBar;
@@ -1,13 +1,15 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _Progress from "antd/es/progress";
3
3
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
4
- var _excluded = ["wrap", "titleField", "valueField"],
5
- _excluded2 = ["data", "wrap", "titleField", "valueField", "percentField", "rowKey", "format"];
4
+ var _excluded = ["wrap", "titleField", "valueField", "gap"],
5
+ _excluded2 = ["data", "wrap", "titleField", "valueField", "percentField", "rowKey", "format", "style"];
6
6
  import "./index.less";
7
7
  var Bar = function Bar(props) {
8
8
  var wrap = props.wrap,
9
9
  titleField = props.titleField,
10
10
  valueField = props.valueField,
11
+ _props$gap = props.gap,
12
+ gap = _props$gap === void 0 ? 6 : _props$gap,
11
13
  rest = _objectWithoutPropertiesLoose(props, _excluded);
12
14
  if (wrap) {
13
15
  return /*#__PURE__*/React.createElement("div", {
@@ -25,7 +27,7 @@ var Bar = function Bar(props) {
25
27
  style: {
26
28
  display: 'flex',
27
29
  // todo 配置
28
- gap: 6
30
+ gap: gap
29
31
  }
30
32
  }, /*#__PURE__*/React.createElement("span", null, titleField), /*#__PURE__*/React.createElement(_Progress, _extends({
31
33
  style: {
@@ -42,6 +44,7 @@ var ZSimpleBar = function ZSimpleBar(props) {
42
44
  _props$rowKey = props.rowKey,
43
45
  rowKey = _props$rowKey === void 0 ? 'id' : _props$rowKey,
44
46
  _format = props.format,
47
+ style = props.style,
45
48
  rest = _objectWithoutPropertiesLoose(props, _excluded2);
46
49
  var getTitle = function getTitle(item, index) {
47
50
  if (typeof titleField === 'function') {
@@ -71,7 +74,8 @@ var ZSimpleBar = function ZSimpleBar(props) {
71
74
  return percentField;
72
75
  };
73
76
  return /*#__PURE__*/React.createElement("div", {
74
- className: "z-simple-bar"
77
+ className: "z-simple-bar",
78
+ style: style
75
79
  }, data === null || data === void 0 ? void 0 : data.map(function (record, index) {
76
80
  var _titleField = getTitle(record, index);
77
81
  var _valueField = getValue(record, index);
@@ -1,3 +1,3 @@
1
- import ZStatistic from './statistic';
2
- export type { TypeZStatisticProps } from './statistic';
1
+ import ZStatistic from './z-statistic';
2
+ export type { TypeZStatisticProps } from './z-statistic';
3
3
  export default ZStatistic;
@@ -1,2 +1,2 @@
1
- import ZStatistic from "./statistic";
1
+ import ZStatistic from "./z-statistic";
2
2
  export default ZStatistic;
package/es/index.d.ts CHANGED
@@ -19,6 +19,5 @@ export type { TypeZStatisticProps } from './components/z-statistic';
19
19
  export { default as ZStatistic } from './components/z-statistic';
20
20
  export type { TypeZSimpleBarProps } from './components/z-simple-bar';
21
21
  export { default as ZSimpleBar } from './components/z-simple-bar';
22
- export { Statistic } from 'antd';
23
22
  declare const bizCssPrefix = "bizpack";
24
23
  export { bizCssPrefix };
package/es/index.js CHANGED
@@ -9,6 +9,5 @@ export { default as ZBox } from "./components/z-box";
9
9
  export { default as ZDiv } from "./components/z-div";
10
10
  export { default as ZStatistic } from "./components/z-statistic";
11
11
  export { default as ZSimpleBar } from "./components/z-simple-bar";
12
- export { Statistic } from 'antd';
13
12
  var bizCssPrefix = 'bizpack';
14
13
  export { bizCssPrefix };
package/es/style.js CHANGED
@@ -1,3 +1,5 @@
1
+ import 'antd/lib/statistic/style';
2
+ import 'antd/lib/progress/style';
1
3
  import 'antd/es/statistic/style';
2
4
  import 'antd/es/progress/style';
3
5
  import './index.scss';
@@ -20,6 +20,8 @@ export interface TypeZSimpleBarProps extends Omit<ProgressProps, 'format'> {
20
20
  percentField?: string | ((v: any, index: number) => React.ReactNode);
21
21
  /** 百分比内容格式化,中转其本身的format */
22
22
  format?: (percent: number, successPercent: number, item: any, index: number) => string;
23
+ /** 单号显示间距 */
24
+ gap?: number;
23
25
  }
24
26
  declare const ZSimpleBar: (props: TypeZSimpleBarProps) => import("react").JSX.Element;
25
27
  export default ZSimpleBar;
@@ -7,12 +7,14 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
7
7
  var _progress = _interopRequireDefault(require("antd/lib/progress"));
8
8
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
9
9
  require("./index.less");
10
- var _excluded = ["wrap", "titleField", "valueField"],
11
- _excluded2 = ["data", "wrap", "titleField", "valueField", "percentField", "rowKey", "format"];
10
+ var _excluded = ["wrap", "titleField", "valueField", "gap"],
11
+ _excluded2 = ["data", "wrap", "titleField", "valueField", "percentField", "rowKey", "format", "style"];
12
12
  var Bar = function Bar(props) {
13
13
  var wrap = props.wrap,
14
14
  titleField = props.titleField,
15
15
  valueField = props.valueField,
16
+ _props$gap = props.gap,
17
+ gap = _props$gap === void 0 ? 6 : _props$gap,
16
18
  rest = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
17
19
  if (wrap) {
18
20
  return /*#__PURE__*/React.createElement("div", {
@@ -30,7 +32,7 @@ var Bar = function Bar(props) {
30
32
  style: {
31
33
  display: 'flex',
32
34
  // todo 配置
33
- gap: 6
35
+ gap: gap
34
36
  }
35
37
  }, /*#__PURE__*/React.createElement("span", null, titleField), /*#__PURE__*/React.createElement(_progress["default"], (0, _extends2["default"])({
36
38
  style: {
@@ -47,6 +49,7 @@ var ZSimpleBar = function ZSimpleBar(props) {
47
49
  _props$rowKey = props.rowKey,
48
50
  rowKey = _props$rowKey === void 0 ? 'id' : _props$rowKey,
49
51
  _format = props.format,
52
+ style = props.style,
50
53
  rest = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded2);
51
54
  var getTitle = function getTitle(item, index) {
52
55
  if (typeof titleField === 'function') {
@@ -76,7 +79,8 @@ var ZSimpleBar = function ZSimpleBar(props) {
76
79
  return percentField;
77
80
  };
78
81
  return /*#__PURE__*/React.createElement("div", {
79
- className: "z-simple-bar"
82
+ className: "z-simple-bar",
83
+ style: style
80
84
  }, data === null || data === void 0 ? void 0 : data.map(function (record, index) {
81
85
  var _titleField = getTitle(record, index);
82
86
  var _valueField = getValue(record, index);
@@ -1,3 +1,3 @@
1
- import ZStatistic from './statistic';
2
- export type { TypeZStatisticProps } from './statistic';
1
+ import ZStatistic from './z-statistic';
2
+ export type { TypeZStatisticProps } from './z-statistic';
3
3
  export default ZStatistic;
@@ -3,6 +3,6 @@
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  exports.__esModule = true;
5
5
  exports["default"] = void 0;
6
- var _statistic = _interopRequireDefault(require("./statistic"));
7
- var _default = _statistic["default"];
6
+ var _zStatistic = _interopRequireDefault(require("./z-statistic"));
7
+ var _default = _zStatistic["default"];
8
8
  exports["default"] = _default;
package/lib/index.d.ts CHANGED
@@ -19,6 +19,5 @@ export type { TypeZStatisticProps } from './components/z-statistic';
19
19
  export { default as ZStatistic } from './components/z-statistic';
20
20
  export type { TypeZSimpleBarProps } from './components/z-simple-bar';
21
21
  export { default as ZSimpleBar } from './components/z-simple-bar';
22
- export { Statistic } from 'antd';
23
22
  declare const bizCssPrefix = "bizpack";
24
23
  export { bizCssPrefix };
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  exports.__esModule = true;
5
- exports.bizCssPrefix = exports.ZTable = exports.ZStatistic = exports.ZSimpleBar = exports.ZPreview = exports.ZList = exports.ZForm = exports.ZEllipsis = exports.ZDiv = exports.ZConfigProvider = exports.ZButton = exports.ZBox = exports.Statistic = void 0;
5
+ exports.bizCssPrefix = exports.ZTable = exports.ZStatistic = exports.ZSimpleBar = exports.ZPreview = exports.ZList = exports.ZForm = exports.ZEllipsis = exports.ZDiv = exports.ZConfigProvider = exports.ZButton = exports.ZBox = void 0;
6
6
  var _zButton = _interopRequireDefault(require("./components/z-button"));
7
7
  exports.ZButton = _zButton["default"];
8
8
  var _zForm = _interopRequireDefault(require("./components/z-form"));
@@ -25,7 +25,5 @@ var _zStatistic = _interopRequireDefault(require("./components/z-statistic"));
25
25
  exports.ZStatistic = _zStatistic["default"];
26
26
  var _zSimpleBar = _interopRequireDefault(require("./components/z-simple-bar"));
27
27
  exports.ZSimpleBar = _zSimpleBar["default"];
28
- var _antd = require("antd");
29
- exports.Statistic = _antd.Statistic;
30
28
  var bizCssPrefix = 'bizpack';
31
29
  exports.bizCssPrefix = bizCssPrefix;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztocwst/rc-pro-materials",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "@ztocwst/rc-pro-materials",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -83,9 +83,9 @@
83
83
  },
84
84
  "componentConfig": {
85
85
  "isComponentLibrary": true,
86
- "materialSchema": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.2/build/lowcode/assets-prod.json"
86
+ "materialSchema": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.3/build/lowcode/assets-prod.json"
87
87
  },
88
- "homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.2/build/index.html",
88
+ "homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.1.3/build/index.html",
89
89
  "publishConfig": {
90
90
  "registry": "https://registry.npmjs.org/",
91
91
  "access": "public"