@titaui/pc 1.16.68-beta.4 → 1.16.68-beta.6

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.
@@ -59,7 +59,7 @@
59
59
 
60
60
  .titaui-drop-selector__operation {
61
61
  display: inline-block;
62
- padding: 16px 16px !important;
62
+ padding: 16px 0;
63
63
  box-sizing: border-box;
64
64
  background: #ffffff;
65
65
  box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
@@ -80,11 +80,10 @@
80
80
  user-select: none;
81
81
  color: #3f4755;
82
82
  vertical-align: text-top;
83
- width: 72px !important;
84
- min-width: 72px !important;
85
- border-radius: 8px;
83
+ width: 100%;
84
+ padding: 0 20px;
85
+ min-width: 104px;
86
86
  box-sizing: border-box !important;
87
- padding: 5px 8px !important;
88
87
  }
89
88
 
90
89
  .titaui-drop-selector__operation-item:hover {
@@ -30,7 +30,7 @@
30
30
  background: #5c8eff;
31
31
  box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.3);
32
32
  border: 1px solid #ffffff;
33
- padding: 16px 20px;
33
+ padding: 16px 20px 20px;
34
34
  box-sizing: border-box;
35
35
  border-radius: 12px;
36
36
  z-index: 10;
@@ -54,14 +54,15 @@
54
54
  font-weight: 500;
55
55
  color: #FFFFFF;
56
56
  line-height: 22px;
57
+ margin-bottom: 10px;
57
58
  }
58
59
 
59
60
  .titaui-pc__guide-order__popup__content__desc {
60
61
  font-size: 14px;
61
62
  font-weight: 400;
62
63
  color: #FFFFFF;
63
- line-height: 17px;
64
- margin-top: 10px;
64
+ line-height: 22px;
65
+ margin-top: 0;
65
66
  }
66
67
 
67
68
  .titaui-pc__guide-order__popup__content__bottom {
@@ -71,7 +72,7 @@
71
72
  justify-content: space-between;
72
73
  align-items: center;
73
74
  position: absolute;
74
- bottom: 16px;
75
+ bottom: 20px;
75
76
  left: 0;
76
77
  padding: 0 20px;
77
78
  box-sizing: border-box;
@@ -61,6 +61,7 @@ var GuideTip = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
61
61
  isShowPopup = _props$isShowPopup === void 0 ? true : _props$isShowPopup,
62
62
  restProps = _objectWithoutProperties(props, _excluded);
63
63
 
64
+ var popupAlign = restProps.popupAlign;
64
65
  var isTry = (0, _bsGlobal.getVersion)() == 1;
65
66
 
66
67
  if (isTry) {
@@ -77,6 +78,19 @@ var GuideTip = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
77
78
  popupRef.current.close();
78
79
  };
79
80
 
81
+ var triangleStyle = function triangleStyle() {
82
+ if (popupPlacement === 'left' || popupPlacement === 'right') {
83
+ var _popupAlign$offset;
84
+
85
+ var offsetY = (popupAlign === null || popupAlign === void 0 ? void 0 : (_popupAlign$offset = popupAlign.offset) === null || _popupAlign$offset === void 0 ? void 0 : _popupAlign$offset[1]) || 0;
86
+ return {
87
+ marginTop: "".concat(-offsetY - 4, "px")
88
+ };
89
+ }
90
+
91
+ return {};
92
+ };
93
+
80
94
  var renderPopupContent = function renderPopupContent() {
81
95
  return content && /*#__PURE__*/_react["default"].createElement("div", {
82
96
  className: (0, _classnames["default"])("".concat(preCls, "__popup"), _defineProperty({}, classnames, classnames), _defineProperty({}, "".concat(preCls, "__popup--button"), type === 'button')),
@@ -93,6 +107,7 @@ var GuideTip = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
93
107
  size: "small",
94
108
  onClick: handleCloseGuidePopup
95
109
  }), /*#__PURE__*/_react["default"].createElement("div", {
110
+ style: triangleStyle(),
96
111
  className: (0, _classnames["default"])("".concat(preCls, "__popup-triangle"), "".concat(preCls, "__popup-triangle--").concat(popupPlacement))
97
112
  }));
98
113
  };
@@ -418,8 +418,24 @@ function _default(props) {
418
418
  }, errorTip),
419
419
  visible: editing && errorTip.length > 0,
420
420
  placement: "top"
421
- }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
422
- overlay: editing ? '' : (0, _openData.parseString)(krNameData.pureText)
421
+ }, editing ? /*#__PURE__*/_react["default"].createElement("span", {
422
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-title"), _defineProperty({}, "".concat(_precls["default"], "__kr-node-title--editing"), editing)),
423
+ onClick: onTitleTextClickHandler
424
+ }, /*#__PURE__*/_react["default"].createElement(_richEditor.TitaInlineRichEditor, {
425
+ editable: editing,
426
+ initialState: krNameData.richText,
427
+ onDocChange: onEditorChange,
428
+ onBlur: onKrNameChangeHandler,
429
+ onKeyDown: onInputKeyDownHandler,
430
+ placeholder: "KR\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",
431
+ ref: mentionInputRef
432
+ }), krNameEditable && !editing && /*#__PURE__*/_react["default"].createElement("span", {
433
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__text-icon"))
434
+ }, /*#__PURE__*/_react["default"].createElement("span", {
435
+ className: "tu-icon-bianji2",
436
+ onClick: triggerEdit
437
+ }))) : /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
438
+ overlay: (0, _openData.parseString)(krNameData.pureText)
423
439
  }, /*#__PURE__*/_react["default"].createElement("span", {
424
440
  className: (0, _classnames["default"])("".concat(_precls["default"], "__kr-node-title"), _defineProperty({}, "".concat(_precls["default"], "__kr-node-title--editing"), editing)),
425
441
  onClick: onTitleTextClickHandler
@@ -7,6 +7,7 @@
7
7
 
8
8
  .titaui-radio-wrapper-disabled {
9
9
  cursor: no-drop;
10
+ opacity: 0.6;
10
11
  }
11
12
 
12
13
  .titaui-radio-wrapper .titaui-radio__label {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.16.68-beta.4",
3
+ "version": "1.16.68-beta.6",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",