@titaui/pc 1.16.33 → 1.16.35

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 null;
68
+ }
69
+
62
70
  var popupRef = (0, _react.useRef)({
63
71
  open: function open() {},
64
72
  close: function close() {}
@@ -372,23 +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
- // 发送成功,清空内容
384
- this.setState({
385
- textareaValue: '',
386
- uploadSuccessFilesPath: [],
387
- isSendSMS: false,
388
- isAllowSubmit: false
389
- });
390
- localStorage.removeItem(localStroageKey);
391
- }
392
375
  } // 获取输入框显示内容
393
376
 
394
377
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.16.33",
3
+ "version": "1.16.35",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",