@alicloud/console-components-search 0.2.37-alpha.3 → 0.2.37-alpha.4

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/dist/index.js CHANGED
@@ -90217,7 +90217,8 @@ function formatOptionsChildren(children) {
90217
90217
  return children.map(function (o) {
90218
90218
  return {
90219
90219
  label: o.label,
90220
- value: o.dataIndex || o.label,
90220
+ value: o.value || o.dataIndex || o.label,
90221
+ disabled: o.disabled,
90221
90222
  children: formatOptionsChildren(o.children),
90222
90223
  };
90223
90224
  });
@@ -90232,7 +90233,8 @@ var normalizeOptions = function (options, prefixSelectMode) {
90232
90233
  return options.map(function (o) {
90233
90234
  return {
90234
90235
  label: o.label,
90235
- value: o.dataIndex || o.label,
90236
+ value: o.value || o.dataIndex || o.label,
90237
+ disabled: o.disabled,
90236
90238
  // @ts-ignore
90237
90239
  children: formatOptionsChildren(o.children),
90238
90240
  };
@@ -90244,11 +90246,11 @@ var normalizeOptions = function (options, prefixSelectMode) {
90244
90246
  var groupName = _a[0], children = _a[1];
90245
90247
  return {
90246
90248
  label: groupName,
90247
- value: groupName,
90248
90249
  children: children.map(function (l) {
90249
90250
  return {
90250
90251
  label: l.label,
90251
90252
  value: l.dataIndex,
90253
+ disabled: l.disabled,
90252
90254
  };
90253
90255
  }),
90254
90256
  };
@@ -21,7 +21,8 @@ function formatOptionsChildren(children) {
21
21
  return children.map(function (o) {
22
22
  return {
23
23
  label: o.label,
24
- value: o.dataIndex || o.label,
24
+ value: o.value || o.dataIndex || o.label,
25
+ disabled: o.disabled,
25
26
  children: formatOptionsChildren(o.children)
26
27
  };
27
28
  });
@@ -37,7 +38,8 @@ var normalizeOptions = function normalizeOptions(options, prefixSelectMode) {
37
38
  return options.map(function (o) {
38
39
  return {
39
40
  label: o.label,
40
- value: o.dataIndex || o.label,
41
+ value: o.value || o.dataIndex || o.label,
42
+ disabled: o.disabled,
41
43
  // @ts-ignore
42
44
  children: formatOptionsChildren(o.children)
43
45
  };
@@ -53,11 +55,11 @@ var normalizeOptions = function normalizeOptions(options, prefixSelectMode) {
53
55
  children = _ref2[1];
54
56
  return {
55
57
  label: groupName,
56
- value: groupName,
57
58
  children: children.map(function (l) {
58
59
  return {
59
60
  label: l.label,
60
- value: l.dataIndex
61
+ value: l.dataIndex,
62
+ disabled: l.disabled
61
63
  };
62
64
  })
63
65
  };
@@ -30,7 +30,8 @@ function formatOptionsChildren(children) {
30
30
  return children.map(function (o) {
31
31
  return {
32
32
  label: o.label,
33
- value: o.dataIndex || o.label,
33
+ value: o.value || o.dataIndex || o.label,
34
+ disabled: o.disabled,
34
35
  children: formatOptionsChildren(o.children)
35
36
  };
36
37
  });
@@ -46,7 +47,8 @@ var normalizeOptions = function normalizeOptions(options, prefixSelectMode) {
46
47
  return options.map(function (o) {
47
48
  return {
48
49
  label: o.label,
49
- value: o.dataIndex || o.label,
50
+ value: o.value || o.dataIndex || o.label,
51
+ disabled: o.disabled,
50
52
  // @ts-ignore
51
53
  children: formatOptionsChildren(o.children)
52
54
  };
@@ -62,11 +64,11 @@ var normalizeOptions = function normalizeOptions(options, prefixSelectMode) {
62
64
  children = _ref2[1];
63
65
  return {
64
66
  label: groupName,
65
- value: groupName,
66
67
  children: children.map(function (l) {
67
68
  return {
68
69
  label: l.label,
69
- value: l.dataIndex
70
+ value: l.dataIndex,
71
+ disabled: l.disabled
70
72
  };
71
73
  })
72
74
  };
@@ -6,6 +6,8 @@ export interface IRcSearchOptionsProps {
6
6
  * 字段展示名称
7
7
  */
8
8
  label: string;
9
+ value?: any;
10
+ disabled?: boolean;
9
11
  /**
10
12
  * 字段表单key
11
13
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/console-components-search",
3
- "version": "0.2.37-alpha.3",
3
+ "version": "0.2.37-alpha.4",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "license": "MIT",