foxit-component 1.0.5-alpha.1 → 1.0.5-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.
@@ -3,7 +3,7 @@ import './select.css';
3
3
  export interface SelectProps {
4
4
  options: {
5
5
  value: string | number;
6
- label: string;
6
+ label: string | React.ReactNode;
7
7
  }[];
8
8
  className?: string;
9
9
  defaultValue?: string | number | string[] | number[];
@@ -48,7 +48,8 @@ var Select = function (_a) {
48
48
  })
49
49
  : options.find(function (option) { return option.value === defaultValue; }), isDisabled: isDisabled, isClearable: isClearable, isSearchable: isMobile ? false : isSearchable, isMulti: isMulti, components: { Control: CustomControl, Option: CustomOptionComp }, onChange: onChange, menuPosition: "fixed" }, rest, { value: isMulti && Array.isArray(value)
50
50
  ? value.map(function (v) { return options.find(function (option) { return option.value === v; }); })
51
- : options.find(function (option) { return option.value === value; }) || value })));
51
+ : options.find(function (option) { return option.value === value; }) ||
52
+ value })));
52
53
  };
53
54
 
54
55
  export { Select as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foxit-component",
3
- "version": "1.0.5-alpha.1",
3
+ "version": "1.0.5-alpha.2",
4
4
  "author": {
5
5
  "name": "linye",
6
6
  "email": "869675630@qq.com"