component-sanzhizhou 1.0.8 → 1.0.9

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.
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
3
  nickName: React.ReactNode;
4
+ minPrice?: number;
5
+ maxPrice?: number;
4
6
  onHandSuccess: () => void;
5
7
  env?: Global.Env;
6
8
  }
@@ -40,6 +40,10 @@ var PayChannelList = [{
40
40
  }];
41
41
  var PayRecharge = function PayRecharge(_ref) {
42
42
  var nickName = _ref.nickName,
43
+ _ref$minPrice = _ref.minPrice,
44
+ minPrice = _ref$minPrice === void 0 ? 1 : _ref$minPrice,
45
+ _ref$maxPrice = _ref.maxPrice,
46
+ maxPrice = _ref$maxPrice === void 0 ? 5000 : _ref$maxPrice,
43
47
  onHandSuccess = _ref.onHandSuccess,
44
48
  env = _ref.env;
45
49
  var _useState = useState(PayChannelList[0].childrenList[0]),
@@ -136,8 +140,8 @@ var PayRecharge = function PayRecharge(_ref) {
136
140
  }),
137
141
  addonAfter: "\u5143",
138
142
  precision: 0,
139
- min: 10,
140
- max: 5000,
143
+ min: minPrice,
144
+ max: maxPrice,
141
145
  placeholder: "\u8BF7\u8F93\u5165\u5145\u503C\u91D1\u989D",
142
146
  autoFocus: true,
143
147
  controls: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-sanzhizhou",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",