@titaui/pc 1.12.28-beta.2 → 1.12.28-beta.3
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.
|
@@ -94,9 +94,7 @@ var Drawer = function Drawer(props) {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
var autoClose = function autoClose(e) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if ((0, _dom.hasAncestorElement)(e.target, 'document-mouse-event-ignore,rc-tooltip,titaui-popup,rc-dialog-root,common-modal,in-modal,task-hot-add')) {
|
|
97
|
+
if ((0, _dom.hasAncestorElement)(e.target, 'document-mouse-event-ignore,rc-tooltip,titaui-popup,rc-dialog-root,common-modal,in-modal,task-hot-add,addClassName')) {
|
|
100
98
|
return;
|
|
101
99
|
}
|
|
102
100
|
|
|
@@ -13,8 +13,6 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
13
13
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
14
14
|
|
|
15
15
|
function hasAncestorElement(node, className) {
|
|
16
|
-
console.log('is(node, className)1', node); // console.log('is(node, className)2', className)
|
|
17
|
-
|
|
18
16
|
if (!node) return false;
|
|
19
17
|
if (is(node, className)) return true;
|
|
20
18
|
return hasAncestorElement(node.parentNode, className);
|
|
@@ -13,6 +13,8 @@ var _tooltip = _interopRequireDefault(require("../../../../tooltip"));
|
|
|
13
13
|
|
|
14
14
|
var _drawerManager = _interopRequireDefault(require("../../../../drawer-manager"));
|
|
15
15
|
|
|
16
|
+
var _openData = require("../../../../../utils/open-data");
|
|
17
|
+
|
|
16
18
|
require("./index.css");
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -48,7 +50,7 @@ var TableRowOKR = function TableRowOKR(_ref) {
|
|
|
48
50
|
onClick: handleClickTitle
|
|
49
51
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
50
52
|
className: "tu-icon-H5-".concat(isO ? "O" : "KR", "-s ").concat(prefix, "__common-icon")
|
|
51
|
-
}), /*#__PURE__*/_react["default"].createElement("span", null, text)), !isFirstLevel && /*#__PURE__*/_react["default"].createElement("div", {
|
|
53
|
+
}), /*#__PURE__*/_react["default"].createElement("span", null, (0, _openData.parseString)(text))), !isFirstLevel && /*#__PURE__*/_react["default"].createElement("div", {
|
|
52
54
|
className: (0, _classnames["default"])("".concat(prefix, "__kr")),
|
|
53
55
|
onClick: handleClickTitle
|
|
54
56
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -57,7 +59,7 @@ var TableRowOKR = function TableRowOKR(_ref) {
|
|
|
57
59
|
className: (0, _classnames["default"])("".concat(prefix, "__kr-text"))
|
|
58
60
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
59
61
|
isPercent: true,
|
|
60
|
-
text: text
|
|
62
|
+
text: (0, _openData.parseString)(text)
|
|
61
63
|
}))));
|
|
62
64
|
};
|
|
63
65
|
|