@titaui/pc 1.15.16 → 1.15.18

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.
@@ -15,6 +15,8 @@ var _popup = _interopRequireDefault(require("../popup"));
15
15
 
16
16
  var _button = _interopRequireDefault(require("../button"));
17
17
 
18
+ var _getLocale = require("../../utils/getLocale");
19
+
18
20
  require("./index.css");
19
21
 
20
22
  var _excluded = ["type", "width", "time", "children", "popupPlacement", "classnames", "content", "onClickClose", "buttonTitle", "visible"];
@@ -50,7 +52,7 @@ var GuideTip = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
50
52
  _props$onClickClose = props.onClickClose,
51
53
  onClickClose = _props$onClickClose === void 0 ? function () {} : _props$onClickClose,
52
54
  _props$buttonTitle = props.buttonTitle,
53
- buttonTitle = _props$buttonTitle === void 0 ? '好哒' : _props$buttonTitle,
55
+ buttonTitle = _props$buttonTitle === void 0 ? (0, _getLocale.getLocale)('TopMenu_button_InvitColleagues') : _props$buttonTitle,
54
56
  _props$visible = props.visible,
55
57
  visible = _props$visible === void 0 ? false : _props$visible,
56
58
  restProps = _objectWithoutProperties(props, _excluded);
@@ -271,6 +271,8 @@ var ReviewBody = /*#__PURE__*/function (_PureComponent) {
271
271
  _this._handlerStandardModeProblemChange = function (value) {
272
272
  var data = _objectSpread({}, _this.state.data);
273
273
 
274
+ console.log((0, _mblog.htmlEncodeByRegExp)(value));
275
+
274
276
  _this._updateReviewData(data, "Drawback", value);
275
277
  };
276
278
 
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _i18nFrontTranslate = require("../../utils/i18n-front-translate");
13
13
 
14
+ var _mblog = require("../../utils/mblog");
15
+
14
16
  var _style = require("./style");
15
17
 
16
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -147,6 +149,7 @@ var TextareaView = /*#__PURE__*/function (_PureComponent) {
147
149
  isFocus = _this$state.isFocus,
148
150
  isHasPlaceholder = _this$state.isHasPlaceholder;
149
151
  var valueLen = value.length;
152
+ console.log(123, (0, _mblog.htmlDecodeByRegExp)(value));
150
153
  return /*#__PURE__*/_react["default"].createElement(_style.TextareaWrapper, {
151
154
  className: className,
152
155
  style: style
@@ -22,7 +22,8 @@ function htmlEncodeByRegExp(str) {
22
22
  function htmlDecodeByRegExp(str) {
23
23
  var temp = "";
24
24
  if (str.length == 0) return "";
25
- temp = str.replace(/&/g, "&");
25
+ temp = str.replace(/<br\/>/g, "\n");
26
+ temp = temp.replace(/&amp;/g, "&");
26
27
  temp = temp.replace(/&lt;/g, "<");
27
28
  temp = temp.replace(/&gt;/g, ">");
28
29
  temp = temp.replace(/&nbsp;/g, " ");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.15.16",
3
+ "version": "1.15.18",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",