@titaui/pc 1.9.137 → 1.9.140

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.
@@ -170,7 +170,7 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
170
170
  content = content.slice(0, content.length - 1);
171
171
  (0, _request.sendEmailBookDemo)({
172
172
  title: "预约演示",
173
- content: content,
173
+ content: "".concat(content, " @fromNew."),
174
174
  code: verificationData.value,
175
175
  yzmGuidVal: yzmGuidVal.indexOf("?") !== -1 ? yzmGuidVal.slice(0, yzmGuidVal.indexOf("?")) : yzmGuidVal,
176
176
  source: source > 0 ? source : Source
@@ -178,7 +178,12 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
178
178
  if (res.data.Code) {
179
179
  (0, _request.sendBookDemoJson)((0, _utils.bookDemoTransformDataToJson)(result, source > 0 ? source : Source, _constant.DemoTypeTextMap[type], content));
180
180
 
181
- _toast["default"].Success("提交成功");
181
+ _toast["default"].Success("提交成功", {
182
+ style: {
183
+ position: "fixed"
184
+ },
185
+ canClose: false
186
+ });
182
187
 
183
188
  if (onSubmitSuccess) {
184
189
  onSubmitSuccess();
@@ -188,12 +193,22 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
188
193
  } else {
189
194
  setErrMsg(res.data.Message);
190
195
 
191
- _toast["default"].Warning(res.data.Message);
196
+ _toast["default"].Warning(res.data.Message, {
197
+ style: {
198
+ position: "fixed"
199
+ },
200
+ canClose: false
201
+ });
192
202
  }
193
203
 
194
204
  handelChangeImage();
195
205
  })["catch"](function (error) {
196
- _toast["default"].Error(error);
206
+ _toast["default"].Error(error, {
207
+ style: {
208
+ position: "fixed"
209
+ },
210
+ canClose: false
211
+ });
197
212
  })["finally"](function () {
198
213
  var content = _constant.trackerInfo[type];
199
214
  setIsLoading(false);
@@ -136,7 +136,7 @@ var BookDemoPC = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
136
136
  onClose: handleCloseBookDemo,
137
137
  noFooter: true,
138
138
  noCloseIcon: true,
139
- destroyOnClose: false,
139
+ destroyOnClose: true,
140
140
  style: {
141
141
  width: "742px",
142
142
  borderRadius: "24px"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.9.137",
3
+ "version": "1.9.140",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",