@titaui/pc 1.15.57 → 1.15.60-beta.1
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.
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +4 -4
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +7 -6
- package/lib/components/menus/components/menu-tree/tree-node/summary-tongji.js +7 -6
- package/lib/components/picker/picker-panels.js +1 -1
- package/lib/components/picker/picker.js +9 -5
- package/lib/components/picker/range-picker/index.js +4 -3
- package/lib/pages/new-okr-list/header/index.js +2 -1
- package/package.json +1 -1
|
@@ -92,10 +92,10 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
92
92
|
// 个人
|
|
93
93
|
2: {
|
|
94
94
|
icon: 'tu-icon-liebiao-xiashu',
|
|
95
|
-
text: okrTypeId === -1 ? '默认部门' :
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
text: okrTypeId === -1 ? '默认部门' :
|
|
96
|
+
/*#__PURE__*/
|
|
97
|
+
// <OpenDepartmentName id={okrTypeId} name={okrTypeName} />
|
|
98
|
+
_react["default"].createElement("span", null, (0, _openData.parseString)(okrTypeName))
|
|
99
99
|
},
|
|
100
100
|
// 部门
|
|
101
101
|
3: {
|
|
@@ -49,13 +49,15 @@ var SummaryShare = function SummaryShare(props) {
|
|
|
49
49
|
if (data.href) {
|
|
50
50
|
window.location.href = data.href;
|
|
51
51
|
}
|
|
52
|
-
};
|
|
53
52
|
|
|
54
|
-
var handleShowShareList = function handleShowShareList(e) {
|
|
55
|
-
e.stopPropagation();
|
|
56
53
|
onExpand(e);
|
|
57
54
|
setIsShowShare(!isShowShare);
|
|
58
|
-
};
|
|
55
|
+
}; // const handleShowShareList = (e) => {
|
|
56
|
+
// e.stopPropagation();
|
|
57
|
+
// onExpand(e);
|
|
58
|
+
// setIsShowShare(!isShowShare);
|
|
59
|
+
// };
|
|
60
|
+
|
|
59
61
|
|
|
60
62
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
63
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node")),
|
|
@@ -66,8 +68,7 @@ var SummaryShare = function SummaryShare(props) {
|
|
|
66
68
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
69
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-title"), "noselect")
|
|
68
70
|
}, title), /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
70
|
-
onClick: handleShowShareList
|
|
71
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
71
72
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
72
73
|
className: (0, _classnames["default"])('tu-icon-APP-xi', _defineProperty({}, "".concat(_precls["default"], "__share-arrow-down"), isShowShare))
|
|
73
74
|
})));
|
|
@@ -49,13 +49,15 @@ var SummaryTongji = function SummaryTongji(props) {
|
|
|
49
49
|
if (data.href) {
|
|
50
50
|
window.location.href = data.href;
|
|
51
51
|
}
|
|
52
|
-
};
|
|
53
52
|
|
|
54
|
-
var handleShowShareList = function handleShowShareList(e) {
|
|
55
|
-
e.stopPropagation();
|
|
56
53
|
onExpand(e);
|
|
57
54
|
setIsShowTongji(!isShowTongji);
|
|
58
|
-
};
|
|
55
|
+
}; // const handleShowShareList = (e) => {
|
|
56
|
+
// e.stopPropagation();
|
|
57
|
+
// onExpand(e);
|
|
58
|
+
// setIsShowTongji(!isShowTongji);
|
|
59
|
+
// };
|
|
60
|
+
|
|
59
61
|
|
|
60
62
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
63
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node")),
|
|
@@ -66,8 +68,7 @@ var SummaryTongji = function SummaryTongji(props) {
|
|
|
66
68
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
69
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-title"), "noselect")
|
|
68
70
|
}, title), /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
70
|
-
onClick: handleShowShareList
|
|
71
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
71
72
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
72
73
|
className: (0, _classnames["default"])('tu-icon-APP-xi', _defineProperty({}, "".concat(_precls["default"], "__share-arrow-down"), isShowTongji))
|
|
73
74
|
})));
|
|
@@ -78,11 +78,19 @@ var Picker = function Picker(props) {
|
|
|
78
78
|
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
+
var onCloseHandler = function onCloseHandler() {
|
|
82
|
+
return setPopupVisible(false);
|
|
83
|
+
};
|
|
84
|
+
|
|
81
85
|
var onChangeHandler = function onChangeHandler(date) {
|
|
82
|
-
var
|
|
86
|
+
var newDate = date.map(function (item) {
|
|
87
|
+
return item ? (0, _moment["default"])(item).format(format) : item;
|
|
88
|
+
});
|
|
89
|
+
var result = onChange(newDate);
|
|
83
90
|
|
|
84
91
|
if (result && result instanceof Promise) {
|
|
85
92
|
result.then(function (res) {
|
|
93
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
86
94
|
res && onCloseHandler();
|
|
87
95
|
});
|
|
88
96
|
} else if (result !== false) {
|
|
@@ -90,10 +98,6 @@ var Picker = function Picker(props) {
|
|
|
90
98
|
}
|
|
91
99
|
};
|
|
92
100
|
|
|
93
|
-
var onCloseHandler = function onCloseHandler() {
|
|
94
|
-
return setPopupVisible(false);
|
|
95
|
-
};
|
|
96
|
-
|
|
97
101
|
var handlePopupVisibleChange = function handlePopupVisibleChange(visible) {
|
|
98
102
|
setPopupVisible(visible);
|
|
99
103
|
onPopupVisibleChange === null || onPopupVisibleChange === void 0 ? void 0 : onPopupVisibleChange(visible);
|
|
@@ -167,9 +167,10 @@ var RangePicker = function RangePicker(props) {
|
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
var onConfirmHandler = function onConfirmHandler() {
|
|
170
|
-
var
|
|
171
|
-
return (0, _moment["default"])(date).format(format);
|
|
172
|
-
})
|
|
170
|
+
var newDate = viewDate.map(function (date) {
|
|
171
|
+
return date ? (0, _moment["default"])(date).format(format) : date;
|
|
172
|
+
});
|
|
173
|
+
var result = onChange(newDate);
|
|
173
174
|
|
|
174
175
|
if (result && result instanceof Promise) {
|
|
175
176
|
result.then(function (res) {
|
|
@@ -342,7 +342,8 @@ function Header(props, ref) {
|
|
|
342
342
|
className: "".concat(_precls.precls, "__table-tip")
|
|
343
343
|
}, "\u65B0\u589E OKR \u8868\u683C\u67E5\u770B\u6A21\u5F0F\uFF0C\u67E5\u770B\u66F4\u4FBF\u6377\uFF0C\u5207\u6362\u4F53\u9A8C\u4E00\u4E0B"),
|
|
344
344
|
onClickClose: setTableTip,
|
|
345
|
-
popupPlacement: "bottom"
|
|
345
|
+
popupPlacement: "bottom",
|
|
346
|
+
zIndex: 1000
|
|
346
347
|
}, /*#__PURE__*/_react["default"].createElement(_popupSelect["default"], {
|
|
347
348
|
menuData: viewTypeMenuData,
|
|
348
349
|
popupPlacement: "bottom",
|