dtable-ui-component 0.1.39 → 0.1.40

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.
@@ -28,7 +28,7 @@ var MultipleSelectFormatter = /*#__PURE__*/function (_React$PureComponent) {
28
28
  options = _this$props.options;
29
29
  return value.map(function (item) {
30
30
  var option = options.find(function (option) {
31
- return option.id === item;
31
+ return option.id === item || option.name === item;
32
32
  });
33
33
 
34
34
  if (option) {
@@ -28,7 +28,7 @@ var SingleSelectFormatter = /*#__PURE__*/function (_React$PureComponent) {
28
28
  options = _this$props.options,
29
29
  fontSize = _this$props.fontSize;
30
30
  var option = options.find(function (item) {
31
- return item.id === value;
31
+ return item.id === value || item.name === value;
32
32
  });
33
33
 
34
34
  if (option) {
@@ -43,7 +43,7 @@ var MultipleSelectFormatter = /*#__PURE__*/function (_React$PureComponent) {
43
43
  options = _this$props.options;
44
44
  return value.map(function (item) {
45
45
  var option = options.find(function (option) {
46
- return option.id === item;
46
+ return option.id === item || option.name === item;
47
47
  });
48
48
 
49
49
  if (option) {
@@ -43,7 +43,7 @@ var SingleSelectFormatter = /*#__PURE__*/function (_React$PureComponent) {
43
43
  options = _this$props.options,
44
44
  fontSize = _this$props.fontSize;
45
45
  var option = options.find(function (item) {
46
- return item.id === value;
46
+ return item.id === value || item.name === value;
47
47
  });
48
48
 
49
49
  if (option) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "main": "./es/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/seafile-calendar": "0.0.15",