@para-ui/core 3.0.34 → 3.0.35

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/README.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 版本: 3.0.35
2
+
3
+ para-ui/core@3.0.35 发布
4
+ 【选择器-Selector】增加tagStyle,自定义标签样式
5
+
1
6
  ## 版本: 3.0.34
2
7
 
3
8
  para-ui/core@3.0.34 发布
package/Selector/index.js CHANGED
@@ -87,6 +87,7 @@ var SelectorNode = function SelectorNode(props) {
87
87
  mainTitle = props.mainTitle,
88
88
  subTitle = props.subTitle,
89
89
  tag = props.tag,
90
+ tagStyle = props.tagStyle,
90
91
  detail = props.detail,
91
92
  detailRender = props.detailRender,
92
93
  leftRender = props.leftRender,
@@ -243,7 +244,8 @@ var SelectorNode = function SelectorNode(props) {
243
244
  children: subTitle
244
245
  })
245
246
  })), tag && jsx("span", Object.assign({
246
- className: "tag"
247
+ className: "tag",
248
+ style: tagStyle
247
249
  }, {
248
250
  children: tag
249
251
  }))]
@@ -263,7 +265,8 @@ var SelectorNode = function SelectorNode(props) {
263
265
  children: mainTitle
264
266
  })
265
267
  })), tag && jsx("span", Object.assign({
266
- className: "tag"
268
+ className: "tag",
269
+ style: tagStyle
267
270
  }, {
268
271
  children: tag
269
272
  }))]
@@ -547,7 +550,7 @@ var SelectorMainContent = function SelectorMainContent(props) {
547
550
  /** 节点类型 */
548
551
  if (item.leaf !== undefined) json.nodeMode = item.leaf ? 'leaf' : 'branch';
549
552
  /** 渲染字段 */
550
- var arr = ['img', 'mainTitle', 'subTitle', 'tag'];
553
+ var arr = ['img', 'mainTitle', 'subTitle', 'tag', 'tagStyle'];
551
554
  for (var i = 0, l = arr.length; i < l; i++) {
552
555
  var key = arr[i];
553
556
  json[key] = item[key];
@@ -980,7 +983,8 @@ var SelectorData = function SelectorData(props) {
980
983
  onClose: function onClose() {
981
984
  return _onClose && _onClose(item, index);
982
985
  },
983
- disabled: handDisabled(itemConfig)
986
+ disabled: handDisabled(itemConfig),
987
+ tagStyle: item.tagStyle
984
988
  };
985
989
  if (selectRenderItem) {
986
990
  json.leftRender = function () {
@@ -61,6 +61,8 @@ export interface SelectorAnyJson {
61
61
  subTitle?: ReactNode;
62
62
  /** 标签 */
63
63
  tag?: ReactNode;
64
+ /** 标签样式 */
65
+ tagStyle?: React.CSSProperties;
64
66
  /** 下级字段 */
65
67
  children?: SelectorAnyJson[];
66
68
  /** 禁用 */
@@ -168,6 +170,8 @@ export interface SelectorNodeProps {
168
170
  subTitle?: ReactNode;
169
171
  /** 标签 */
170
172
  tag?: ReactNode;
173
+ /** 标签样式 */
174
+ tagStyle?: React.CSSProperties;
171
175
  /** 详情 */
172
176
  detail?: boolean;
173
177
  /** 详情渲染 */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@para-ui/core",
3
3
  "private": false,
4
- "version": "3.0.34",
4
+ "version": "3.0.35",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
7
7
  "description": "Powered by Para FED",
@@ -162,7 +162,7 @@
162
162
  "http://192.168.3.1:10000",
163
163
  "http://192.168.2.83:10000",
164
164
  "http://10.10.2.48:10000",
165
- "http://10.10.2.252:80"
165
+ "http://10.10.2.252:10000"
166
166
  ]
167
167
  }
168
168
  }