@lemon-fe/components 0.1.76 → 0.1.77

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,8 +28,7 @@ export interface PopupProps<ValueType> extends ModalProps {
28
28
  */
29
29
  emptyValue?: ValueType;
30
30
  }
31
- interface ValuedPopupProps<ValueType> extends Omit<PopupProps<ValueType>, 'value' | 'onChange' | 'emptyValue'> {
32
- value: ValueType;
31
+ interface ValuedPopupProps<ValueType> extends Omit<PopupProps<ValueType>, 'onChange' | 'emptyValue'> {
33
32
  onChange?: (value: ValueType) => void;
34
33
  emptyValue: ValueType;
35
34
  }
package/es/Popup/index.js CHANGED
@@ -56,7 +56,7 @@ function Popup(props) {
56
56
 
57
57
  var prefixCls = "".concat(PREFIX_CLS, "-popup");
58
58
 
59
- var _useState = useState(valueProp),
59
+ var _useState = useState(valueProp || emptyValue),
60
60
  _useState2 = _slicedToArray(_useState, 2),
61
61
  value = _useState2[0],
62
62
  setValue = _useState2[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "0.1.76",
3
+ "version": "0.1.77",
4
4
  "description": "> TODO: description",
5
5
  "author": "鲁盛杰 <lusj@cnlemon.net>",
6
6
  "homepage": "",
@@ -41,5 +41,5 @@
41
41
  "react": "^17.0.2",
42
42
  "react-dom": "^17.0.2"
43
43
  },
44
- "gitHead": "9a65df6bf44689cbfd8079b3d905e912a761280b"
44
+ "gitHead": "05d50e243e97f75d4f70667c57d66137a0311457"
45
45
  }