@guo514360255/antd-lib 1.4.24 → 1.4.25

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.
@@ -3,6 +3,7 @@
3
3
  * @Date: 2025/11/11
4
4
  * @Description:
5
5
  */
6
+ import { isEmptyValue } from "../src";
6
7
  import { Tag } from 'antd';
7
8
  import React from 'react';
8
9
  var CustomTag = function CustomTag(_ref, record, __, ___, column) {
@@ -11,17 +12,19 @@ var CustomTag = function CustomTag(_ref, record, __, ___, column) {
11
12
  if (column) {
12
13
  var _ref2 = column.valueEnum[record.status] || {},
13
14
  _color = _ref2.color,
15
+ _status = _ref2.status,
14
16
  _text = _ref2.text;
15
17
  return /*#__PURE__*/React.createElement(Tag, {
16
- color: _color
18
+ color: _color || _status
17
19
  }, _text);
18
20
  }
19
- if (!value) return /*#__PURE__*/React.createElement(React.Fragment, null, value);
21
+ if (isEmptyValue(value)) return /*#__PURE__*/React.createElement(React.Fragment, null, value);
20
22
  var _ref3 = valueEnum[value] || {},
21
23
  color = _ref3.color,
24
+ status = _ref3.status,
22
25
  text = _ref3.text;
23
26
  return /*#__PURE__*/React.createElement(Tag, {
24
- color: color
27
+ color: color || status
25
28
  }, text);
26
29
  };
27
30
  export default CustomTag;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guo514360255/antd-lib",
3
- "version": "1.4.24",
3
+ "version": "1.4.25",
4
4
  "description": "react design 5 lib",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",