@ccs-ui/rc-pro 1.0.7-rc.7 → 1.0.7-rc.8

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.
@@ -6,4 +6,4 @@ export interface CcsStatusTagProps {
6
6
  tag: string[];
7
7
  }[];
8
8
  }
9
- export default function CcsStatusTag({ value, options }: CcsStatusTagProps): any;
9
+ export default function CcsStatusTag({ value, options, }: CcsStatusTagProps): any;
@@ -2,8 +2,9 @@ import { Badge, Tag } from 'antd';
2
2
  import React from 'react';
3
3
  export default function CcsStatusTag(_ref) {
4
4
  var value = _ref.value,
5
- options = _ref.options;
6
- if (!!value) return value;
5
+ _ref$options = _ref.options,
6
+ options = _ref$options === void 0 ? [] : _ref$options;
7
+ if (value === undefined || value === '') return value;
7
8
  var option = options.find(function (op) {
8
9
  return op.value === value;
9
10
  });
@@ -18,7 +19,7 @@ export default function CcsStatusTag(_ref) {
18
19
  if (tag && tag[0] === 'badge') {
19
20
  return /*#__PURE__*/React.createElement(Badge, {
20
21
  status: tag[1],
21
- text: "label"
22
+ text: label
22
23
  });
23
24
  }
24
25
  return label;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "1.0.7-rc.7",
3
+ "version": "1.0.7-rc.8",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "es/index.js",