component-sanzhizhou 1.3.0 → 1.3.1

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.
@@ -117,7 +117,14 @@ var PayRecharge = function PayRecharge(_ref) {
117
117
  span: FormItemSpan
118
118
  },
119
119
  initialValues: _objectSpread({}, formData),
120
- onFinish: onMakeQr
120
+ onFinish: onMakeQr,
121
+ onValuesChange: function onValuesChange(changedValues) {
122
+ // 余额类别 / 金额 / 渠道变更时同步到 formData,
123
+ // 让「充值就送」等依赖当前类别的内容能实时切换。
124
+ setFormData(function (prev) {
125
+ return _objectSpread(_objectSpread({}, prev), changedValues);
126
+ });
127
+ }
121
128
  }, step === 'pay-channel' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form.Item, {
122
129
  label: formatMessage('账号')
123
130
  }, /*#__PURE__*/React.createElement("strong", null, nickName)), (balanceTypeOptions || []).length > 0 && /*#__PURE__*/React.createElement(Form.Item, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-sanzhizhou",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",