@titaui/pc 1.9.117 → 1.9.121
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.
|
@@ -254,7 +254,7 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
|
|
|
254
254
|
});
|
|
255
255
|
data.formField = formField;
|
|
256
256
|
setData(_objectSpread({}, data));
|
|
257
|
-
|
|
257
|
+
var initResult = formField.map(function (item) {
|
|
258
258
|
return {
|
|
259
259
|
name: item.name,
|
|
260
260
|
value: item.value,
|
|
@@ -263,7 +263,12 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
|
|
|
263
263
|
required: item.required,
|
|
264
264
|
type: item.type
|
|
265
265
|
};
|
|
266
|
-
})
|
|
266
|
+
});
|
|
267
|
+
setResult(initResult);
|
|
268
|
+
|
|
269
|
+
if (onChange) {
|
|
270
|
+
onChange(initResult);
|
|
271
|
+
}
|
|
267
272
|
}, []);
|
|
268
273
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
269
274
|
className: preCls
|
|
@@ -72,18 +72,19 @@ var BookDemoPC = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
72
72
|
content += "".concat(item.name, ": ").concat(Array.isArray(item.value) ? item.value.join(",") : item.value, ",");
|
|
73
73
|
});
|
|
74
74
|
content += "source: ".concat(source || Source);
|
|
75
|
-
setDialogVisible(false);
|
|
76
|
-
|
|
77
|
-
if (visibleChange) {
|
|
78
|
-
visibleChange(false);
|
|
79
|
-
}
|
|
80
75
|
|
|
81
76
|
if (window.titaTracker) {
|
|
82
77
|
window.titaTracker("action").record({
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
action_group: "申请演示__取消提交",
|
|
79
|
+
action_name: "\u586B\u5199\u60C5\u51B5\uFF1A".concat(content)
|
|
85
80
|
});
|
|
86
81
|
}
|
|
82
|
+
|
|
83
|
+
setDialogVisible(false);
|
|
84
|
+
|
|
85
|
+
if (visibleChange) {
|
|
86
|
+
visibleChange(false);
|
|
87
|
+
}
|
|
87
88
|
};
|
|
88
89
|
|
|
89
90
|
var handleChangeData = function handleChangeData(result) {
|
|
@@ -135,7 +136,7 @@ var BookDemoPC = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
135
136
|
onClose: handleCloseBookDemo,
|
|
136
137
|
noFooter: true,
|
|
137
138
|
noCloseIcon: true,
|
|
138
|
-
destroyOnClose:
|
|
139
|
+
destroyOnClose: false,
|
|
139
140
|
style: {
|
|
140
141
|
width: "742px",
|
|
141
142
|
borderRadius: "24px"
|
package/lib/index.js
CHANGED
|
@@ -477,6 +477,12 @@ Object.defineProperty(exports, "UpdateModal", {
|
|
|
477
477
|
return _updateModal["default"];
|
|
478
478
|
}
|
|
479
479
|
});
|
|
480
|
+
Object.defineProperty(exports, "UploadPhotoModal", {
|
|
481
|
+
enumerable: true,
|
|
482
|
+
get: function get() {
|
|
483
|
+
return _uploadPhotoModal["default"];
|
|
484
|
+
}
|
|
485
|
+
});
|
|
480
486
|
Object.defineProperty(exports, "Upvote", {
|
|
481
487
|
enumerable: true,
|
|
482
488
|
get: function get() {
|
|
@@ -531,12 +537,6 @@ Object.defineProperty(exports, "requestApi", {
|
|
|
531
537
|
return _request["default"];
|
|
532
538
|
}
|
|
533
539
|
});
|
|
534
|
-
Object.defineProperty(exports, "tasUploadPhotoModal", {
|
|
535
|
-
enumerable: true,
|
|
536
|
-
get: function get() {
|
|
537
|
-
return _uploadPhotoModal["default"];
|
|
538
|
-
}
|
|
539
|
-
});
|
|
540
540
|
Object.defineProperty(exports, "upload", {
|
|
541
541
|
enumerable: true,
|
|
542
542
|
get: function get() {
|