@titaui/pc 1.16.34 → 1.16.36
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.
|
@@ -17,6 +17,8 @@ var _button = _interopRequireDefault(require("../button"));
|
|
|
17
17
|
|
|
18
18
|
var _getLocale = require("../../utils/getLocale");
|
|
19
19
|
|
|
20
|
+
var _bsGlobal = require("../../utils/bs-global");
|
|
21
|
+
|
|
20
22
|
require("./index.css");
|
|
21
23
|
|
|
22
24
|
var _excluded = ["type", "width", "time", "children", "popupPlacement", "classnames", "content", "onClickClose", "buttonTitle", "visible", "isShowPopup"];
|
|
@@ -59,6 +61,12 @@ var GuideTip = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
59
61
|
isShowPopup = _props$isShowPopup === void 0 ? true : _props$isShowPopup,
|
|
60
62
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
61
63
|
|
|
64
|
+
var isTry = (0, _bsGlobal.getVersion)() == 1;
|
|
65
|
+
|
|
66
|
+
if (isTry) {
|
|
67
|
+
return children;
|
|
68
|
+
}
|
|
69
|
+
|
|
62
70
|
var popupRef = (0, _react.useRef)({
|
|
63
71
|
open: function open() {},
|
|
64
72
|
close: function close() {}
|
|
@@ -372,22 +372,6 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
372
372
|
if (prevProps.commentsTypeKey != this.props.commentsTypeKey) {
|
|
373
373
|
this.getTextareaValue();
|
|
374
374
|
}
|
|
375
|
-
}
|
|
376
|
-
}, {
|
|
377
|
-
key: "componentWillReceiveProps",
|
|
378
|
-
value: function componentWillReceiveProps(newProps) {
|
|
379
|
-
var submitStatus = newProps.submitStatus;
|
|
380
|
-
var localStroageKey = this.state.localStroageKey;
|
|
381
|
-
|
|
382
|
-
if (submitStatus === 1) {// 发送成功,清空内容
|
|
383
|
-
// this.setState({
|
|
384
|
-
// textareaValue: '',
|
|
385
|
-
// uploadSuccessFilesPath: [],
|
|
386
|
-
// isSendSMS: false,
|
|
387
|
-
// isAllowSubmit: false,
|
|
388
|
-
// })
|
|
389
|
-
// localStorage.removeItem(localStroageKey)
|
|
390
|
-
}
|
|
391
375
|
} // 获取输入框显示内容
|
|
392
376
|
|
|
393
377
|
}, {
|