fan-standard-comp 3.1.2 → 3.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.
@@ -221,6 +221,12 @@ var RefactorTreeSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
221
221
 
222
222
 
223
223
  if (otherProps.multiple) {
224
+ if (labelInValue) {
225
+ return value && value.length > 0 ? value.map(function (nItem) {
226
+ return nItem[treeOptionName.title || 'title' || 'label'];
227
+ }).join(',') : '-';
228
+ }
229
+
224
230
  var pathNodes = getNodePaths(treeData, value, {
225
231
  childrenParam: treeOptionName.children,
226
232
  keyParam: treeOptionName.value
@@ -242,6 +242,12 @@ var RefactorTreeSelect = /*#__PURE__*/_react.default.forwardRef(function (props,
242
242
 
243
243
 
244
244
  if (otherProps.multiple) {
245
+ if (labelInValue) {
246
+ return value && value.length > 0 ? value.map(function (nItem) {
247
+ return nItem[treeOptionName.title || 'title' || 'label'];
248
+ }).join(',') : '-';
249
+ }
250
+
245
251
  var pathNodes = (0, _utils.getNodePaths)(treeData, value, {
246
252
  childrenParam: treeOptionName.children,
247
253
  keyParam: treeOptionName.value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fan-standard-comp",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "FZ standard-comp,basic of antd4.0 and custom component.",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",