@alicloud/console-components-search 0.2.37-alpha.1 → 0.2.37-alpha.2

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
@@ -90223,6 +90223,7 @@ var normalizeOptions = function (options) {
90223
90223
  var groupName = _a[0], children = _a[1];
90224
90224
  return {
90225
90225
  label: groupName,
90226
+ value: groupName,
90226
90227
  children: children.map(function (l) {
90227
90228
  return {
90228
90229
  label: l.label,
@@ -90427,7 +90428,6 @@ var ComplexSearch = function (props) {
90427
90428
  focus: focused,
90428
90429
  }) },
90429
90430
  react_1.default.createElement("div", { className: (0, classnames_1.default)('condition') }, selectedFilterType ? (react_1.default.createElement(InputPrefix_1.default, { type: prefixSelectMode, dataSource: normalizeOptions(options), label: selectedFilterType === null || selectedFilterType === void 0 ? void 0 : selectedFilterType.label, defaultValue: selectedFilterType === null || selectedFilterType === void 0 ? void 0 : selectedFilterType.dataIndex, onChange: function (value) {
90430
- console.log(value);
90431
90431
  handlerFilterTypeChange(value);
90432
90432
  }, itemRender: prefixSelectItemRender })) : null),
90433
90433
  react_1.default.createElement("div", { className: (0, classnames_1.default)('forms') },
@@ -32,6 +32,7 @@ var normalizeOptions = function normalizeOptions(options) {
32
32
  children = _ref2[1];
33
33
  return {
34
34
  label: groupName,
35
+ value: groupName,
35
36
  children: children.map(function (l) {
36
37
  return {
37
38
  label: l.label,
@@ -333,7 +334,6 @@ var ComplexSearch = function ComplexSearch(props) {
333
334
  label: selectedFilterType === null || selectedFilterType === void 0 ? void 0 : selectedFilterType.label,
334
335
  defaultValue: selectedFilterType === null || selectedFilterType === void 0 ? void 0 : selectedFilterType.dataIndex,
335
336
  onChange: function onChange(value) {
336
- console.log(value);
337
337
  handlerFilterTypeChange(value);
338
338
  },
339
339
  itemRender: prefixSelectItemRender
@@ -41,6 +41,7 @@ var normalizeOptions = function normalizeOptions(options) {
41
41
  children = _ref2[1];
42
42
  return {
43
43
  label: groupName,
44
+ value: groupName,
44
45
  children: children.map(function (l) {
45
46
  return {
46
47
  label: l.label,
@@ -342,7 +343,6 @@ var ComplexSearch = function ComplexSearch(props) {
342
343
  label: selectedFilterType === null || selectedFilterType === void 0 ? void 0 : selectedFilterType.label,
343
344
  defaultValue: selectedFilterType === null || selectedFilterType === void 0 ? void 0 : selectedFilterType.dataIndex,
344
345
  onChange: function onChange(value) {
345
- console.log(value);
346
346
  handlerFilterTypeChange(value);
347
347
  },
348
348
  itemRender: prefixSelectItemRender
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/console-components-search",
3
- "version": "0.2.37-alpha.1",
3
+ "version": "0.2.37-alpha.2",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "license": "MIT",