@titaui/pc 1.16.29 → 1.16.30-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/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/keyword-search/index.css +44 -26
- package/lib/components/keyword-search/index.js +52 -30
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-excel-create/index.js +2 -2
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/period-selector/components/selector/style.js +9 -9
- package/lib/components/period-selector/index.js +14 -7
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/search-input/index.css +22 -27
- package/lib/components/search-input/index.js +47 -58
- package/lib/components/select/Option.js +3 -3
- package/lib/components/table-excel-v2/index.css +0 -1
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/pages/new-okr-list/header/index.js +20 -20
- package/package.json +1 -1
|
@@ -47,7 +47,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(BodyItem);
|
|
48
48
|
|
|
49
49
|
function BodyItem() {
|
|
50
|
-
var _this;
|
|
50
|
+
var _temp, _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, BodyItem);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.getClass = function () {
|
|
58
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.getClass = function () {
|
|
59
59
|
var _this$props = _this.props,
|
|
60
60
|
isAllowSelect = _this$props.isAllowSelect,
|
|
61
61
|
date = _this$props.date,
|
|
@@ -86,7 +86,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
86
86
|
if (_this.disabled) return;
|
|
87
87
|
|
|
88
88
|
_this.props.onSelectDate((0, _moment["default"])(date.format("YYYY/MM/DD")));
|
|
89
|
-
},
|
|
89
|
+
}, _temp));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
_createClass(BodyItem, [{
|
|
@@ -87,7 +87,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
87
87
|
var _super = _createSuper(CalendarHeader);
|
|
88
88
|
|
|
89
89
|
function CalendarHeader() {
|
|
90
|
-
var _this;
|
|
90
|
+
var _temp, _this;
|
|
91
91
|
|
|
92
92
|
_classCallCheck(this, CalendarHeader);
|
|
93
93
|
|
|
@@ -95,7 +95,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
args[_key] = arguments[_key];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.setDate = function (func) {
|
|
98
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.setDate = function (func) {
|
|
99
99
|
var date = (0, _moment["default"])(_this.props.date);
|
|
100
100
|
|
|
101
101
|
for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -113,7 +113,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
return years;
|
|
116
|
-
},
|
|
116
|
+
}, _temp));
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
_createClass(CalendarHeader, [{
|
|
@@ -49,7 +49,7 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
49
49
|
var _super = _createSuper(ConfirmPop);
|
|
50
50
|
|
|
51
51
|
function ConfirmPop() {
|
|
52
|
-
var _this;
|
|
52
|
+
var _temp, _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, ConfirmPop);
|
|
55
55
|
|
|
@@ -57,13 +57,13 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
60
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
61
61
|
// @ts-ignore
|
|
62
62
|
_this.refs.pop.show(_this.refs.trigger);
|
|
63
63
|
}, _this.handleHide = function () {
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
_this.refs.pop.hide();
|
|
66
|
-
},
|
|
66
|
+
}, _temp));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(ConfirmPop, [{
|
|
@@ -55,7 +55,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
var _super = _createSuper(EReportList);
|
|
56
56
|
|
|
57
57
|
function EReportList() {
|
|
58
|
-
var _this;
|
|
58
|
+
var _temp, _this;
|
|
59
59
|
|
|
60
60
|
_classCallCheck(this, EReportList);
|
|
61
61
|
|
|
@@ -63,7 +63,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
63
63
|
args[_key] = arguments[_key];
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
66
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
67
67
|
selectedPeriodValue: '',
|
|
68
68
|
showDatePick: false,
|
|
69
69
|
eReportWeekList: [],
|
|
@@ -178,7 +178,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
178
178
|
return _this.handlerEReportShareSubmit(submitStatus);
|
|
179
179
|
}
|
|
180
180
|
})));
|
|
181
|
-
},
|
|
181
|
+
}, _temp));
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
_createClass(EReportList, [{
|
|
@@ -47,7 +47,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
47
47
|
var _super = _createSuper(EmotionsSelectorPop);
|
|
48
48
|
|
|
49
49
|
function EmotionsSelectorPop() {
|
|
50
|
-
var _this;
|
|
50
|
+
var _temp, _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, EmotionsSelectorPop);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
58
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
59
59
|
setTimeout(function () {
|
|
60
60
|
// @ts-ignore
|
|
61
61
|
_this.refs.pop.show(_this.refs.trigger);
|
|
@@ -63,7 +63,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
63
63
|
}, _this.handleHide = function () {
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
_this.refs.pop.hide();
|
|
66
|
-
},
|
|
66
|
+
}, _temp));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(EmotionsSelectorPop, [{
|
|
@@ -57,7 +57,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
57
57
|
var _super = _createSuper(EReportList);
|
|
58
58
|
|
|
59
59
|
function EReportList() {
|
|
60
|
-
var _this;
|
|
60
|
+
var _temp, _this;
|
|
61
61
|
|
|
62
62
|
_classCallCheck(this, EReportList);
|
|
63
63
|
|
|
@@ -65,7 +65,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
65
65
|
args[_key] = arguments[_key];
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
68
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
69
69
|
selectedPeriodValue: "",
|
|
70
70
|
showDatePick: false,
|
|
71
71
|
eReportWeekList: [],
|
|
@@ -178,7 +178,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
178
178
|
return _this.handlerEReportShareSubmit(submitStatus);
|
|
179
179
|
}
|
|
180
180
|
})));
|
|
181
|
-
},
|
|
181
|
+
}, _temp));
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
_createClass(EReportList, [{
|
|
@@ -1,53 +1,71 @@
|
|
|
1
1
|
.titaui-keyword-search {
|
|
2
|
-
|
|
2
|
+
width: 36px;
|
|
3
3
|
height: 36px;
|
|
4
4
|
padding: 8px;
|
|
5
|
-
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
6
|
-
display: flex;
|
|
7
5
|
border-radius: 18px;
|
|
6
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
7
|
+
transition: all 0.3s cubic-bezier(0.17, 0.63, 0.32, 1.27);
|
|
8
|
+
background-color: #ffffff;
|
|
8
9
|
box-sizing: border-box;
|
|
10
|
+
display: flex;
|
|
9
11
|
align-items: center;
|
|
12
|
+
position: relative;
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
.titaui-keyword-search--active {
|
|
13
|
-
|
|
14
|
-
border:
|
|
16
|
+
width: 190px;
|
|
17
|
+
border: none;
|
|
18
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
15
19
|
}
|
|
16
20
|
|
|
17
|
-
.titaui-keyword-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
margin-right: 4px;
|
|
21
|
+
.titaui-keyword-search--active .titaui-keyword-search__input {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
visibility: visible;
|
|
21
24
|
}
|
|
22
25
|
|
|
23
|
-
.titaui-keyword-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
.titaui-keyword-search__input {
|
|
27
|
+
width: 120px;
|
|
28
|
+
padding-right: 52px;
|
|
29
|
+
opacity: 0;
|
|
30
|
+
visibility: hidden;
|
|
26
31
|
}
|
|
27
32
|
|
|
28
|
-
.titaui-keyword-
|
|
29
|
-
|
|
33
|
+
.titaui-keyword-search__input input {
|
|
34
|
+
width: 100%;
|
|
35
|
+
border: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.titaui-keyword-search__del-icon {
|
|
39
|
+
font-size: 19px;
|
|
40
|
+
opacity: 0;
|
|
41
|
+
transform: scale(0);
|
|
42
|
+
transition: all .3s ease;
|
|
43
|
+
color: #c2cbd1;
|
|
30
44
|
cursor: pointer;
|
|
45
|
+
visibility: hidden;
|
|
46
|
+
position: absolute;
|
|
47
|
+
right: 32px;
|
|
31
48
|
}
|
|
32
49
|
|
|
33
|
-
.titaui-keyword-
|
|
34
|
-
|
|
50
|
+
.titaui-keyword-search__del-icon--visible {
|
|
51
|
+
opacity: 1;
|
|
52
|
+
transform: scale(1);
|
|
53
|
+
visibility: visible;
|
|
35
54
|
}
|
|
36
55
|
|
|
37
|
-
.titaui-keyword-
|
|
38
|
-
|
|
39
|
-
animation: shrink 0.1s ease;
|
|
56
|
+
.titaui-keyword-search__del-icon:hover {
|
|
57
|
+
color: #f05e5e;
|
|
40
58
|
}
|
|
41
59
|
|
|
42
|
-
.titaui-keyword-
|
|
43
|
-
|
|
44
|
-
|
|
60
|
+
.titaui-keyword-search__search-icon {
|
|
61
|
+
font-size: 20px !important;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
position: absolute;
|
|
64
|
+
right: 8px;
|
|
45
65
|
}
|
|
46
66
|
|
|
47
|
-
.titaui-keyword-
|
|
48
|
-
|
|
49
|
-
margin-right: 12px;
|
|
50
|
-
animation: grow 0.1s ease;
|
|
67
|
+
.titaui-keyword-search__search-icon:hover {
|
|
68
|
+
color: #2879ff;
|
|
51
69
|
}
|
|
52
70
|
|
|
53
71
|
@keyframes grow {
|
|
@@ -9,7 +9,7 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _classnames3 = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
14
|
var _getLocale = require("../../utils/getLocale");
|
|
15
15
|
|
|
@@ -35,79 +35,101 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
35
35
|
|
|
36
36
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
37
|
|
|
38
|
-
var precls =
|
|
38
|
+
var precls = 'titaui-keyword-search';
|
|
39
39
|
|
|
40
40
|
function KeywordSearch(props) {
|
|
41
|
-
var onSearch = props.onSearch
|
|
42
|
-
|
|
41
|
+
var onSearch = props.onSearch,
|
|
42
|
+
_props$value = props.value,
|
|
43
|
+
value = _props$value === void 0 ? '' : _props$value;
|
|
43
44
|
|
|
44
45
|
var _useState = (0, _react.useState)(false),
|
|
45
46
|
_useState2 = _slicedToArray(_useState, 2),
|
|
46
47
|
active = _useState2[0],
|
|
47
48
|
setActive = _useState2[1];
|
|
48
49
|
|
|
49
|
-
var _useState3 = (0, _react.useState)(
|
|
50
|
+
var _useState3 = (0, _react.useState)(''),
|
|
50
51
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
51
52
|
keyword = _useState4[0],
|
|
52
53
|
setKeyword = _useState4[1];
|
|
53
54
|
|
|
55
|
+
var _useState5 = (0, _react.useState)(false),
|
|
56
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
57
|
+
searched = _useState6[0],
|
|
58
|
+
setSearched = _useState6[1];
|
|
59
|
+
|
|
60
|
+
var inputRef = (0, _react.useRef)();
|
|
61
|
+
var timerRef = (0, _react.useRef)();
|
|
62
|
+
|
|
63
|
+
var handleSearch = function handleSearch() {
|
|
64
|
+
setSearched(true);
|
|
65
|
+
onSearch === null || onSearch === void 0 ? void 0 : onSearch({
|
|
66
|
+
keyWords: keyword
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
|
|
54
70
|
var handleSearchClick = function handleSearchClick() {
|
|
55
71
|
if (!active) {
|
|
56
|
-
var _inputRef$current;
|
|
57
|
-
|
|
58
72
|
setActive(true);
|
|
59
|
-
|
|
73
|
+
timerRef.current = setTimeout(function () {
|
|
74
|
+
var _inputRef$current;
|
|
75
|
+
|
|
76
|
+
clearTimeout(timerRef.current);
|
|
77
|
+
inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
78
|
+
});
|
|
60
79
|
} else {
|
|
61
80
|
handleSearch();
|
|
62
81
|
}
|
|
63
82
|
};
|
|
64
83
|
|
|
65
|
-
var
|
|
66
|
-
onSearch && onSearch({
|
|
67
|
-
keyWords: keyword
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
var handleOnBlur = function handleOnBlur(e) {
|
|
84
|
+
var handleOnBlur = function handleOnBlur() {
|
|
72
85
|
if (!keyword.length) setActive(false);
|
|
86
|
+
clearTimeout(timerRef.current);
|
|
73
87
|
};
|
|
74
88
|
|
|
75
89
|
var changeValue = function changeValue(e) {
|
|
76
|
-
setKeyword(e.target.value);
|
|
90
|
+
return setKeyword(e.target.value);
|
|
77
91
|
};
|
|
78
92
|
|
|
79
93
|
var handleOnKeyDown = function handleOnKeyDown(e) {
|
|
80
|
-
if (e.keyCode
|
|
94
|
+
if (e.keyCode === 13) {
|
|
81
95
|
handleSearch();
|
|
82
96
|
}
|
|
83
97
|
};
|
|
84
98
|
|
|
85
|
-
var clearKeyword = function clearKeyword(
|
|
99
|
+
var clearKeyword = function clearKeyword() {
|
|
86
100
|
var _inputRef$current2;
|
|
87
101
|
|
|
88
|
-
setKeyword(
|
|
102
|
+
setKeyword('');
|
|
89
103
|
inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
104
|
+
|
|
105
|
+
if (searched || value) {
|
|
106
|
+
onSearch === null || onSearch === void 0 ? void 0 : onSearch({
|
|
107
|
+
keyWords: ''
|
|
108
|
+
});
|
|
109
|
+
setSearched(false);
|
|
110
|
+
}
|
|
93
111
|
};
|
|
94
112
|
|
|
113
|
+
(0, _react.useEffect)(function () {
|
|
114
|
+
setKeyword(value);
|
|
115
|
+
setActive(!!value);
|
|
116
|
+
}, [value]);
|
|
95
117
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
|
-
className: (0,
|
|
118
|
+
className: (0, _classnames3["default"])(precls, _defineProperty({}, "".concat(precls, "--active"), active))
|
|
97
119
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
98
120
|
className: "".concat(precls, "__input")
|
|
99
121
|
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
100
|
-
|
|
101
|
-
onKeyUp: handleOnKeyDown,
|
|
122
|
+
onBlur: handleOnBlur,
|
|
102
123
|
onChange: changeValue,
|
|
124
|
+
onKeyUp: handleOnKeyDown,
|
|
125
|
+
placeholder: (0, _getLocale.getLocale)('Mod_Enterkeywords'),
|
|
103
126
|
ref: inputRef,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
className: (0, _classnames2["default"])("tu-icon-cross", "".concat(precls, "__del-icon")),
|
|
127
|
+
value: keyword
|
|
128
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
129
|
+
className: (0, _classnames3["default"])('tu-icon-cross', "".concat(precls, "__del-icon"), _defineProperty({}, "".concat(precls, "__del-icon--visible"), !!keyword)),
|
|
108
130
|
onClick: clearKeyword
|
|
109
131
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
110
|
-
className: (0,
|
|
132
|
+
className: (0, _classnames3["default"])('tu-icon-search', "".concat(precls, "__search-icon")),
|
|
111
133
|
onClick: handleSearchClick
|
|
112
134
|
}));
|
|
113
135
|
}
|
|
@@ -83,7 +83,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
83
83
|
var _super = _createSuper(MblogAction);
|
|
84
84
|
|
|
85
85
|
function MblogAction() {
|
|
86
|
-
var _this;
|
|
86
|
+
var _temp, _this;
|
|
87
87
|
|
|
88
88
|
_classCallCheck(this, MblogAction);
|
|
89
89
|
|
|
@@ -91,7 +91,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
91
91
|
args[_key] = arguments[_key];
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
94
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
95
95
|
isSendSms: false,
|
|
96
96
|
// 是否短信通知
|
|
97
97
|
isShowConfirmPop: false
|
|
@@ -121,7 +121,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
|
|
|
121
121
|
isSendSms: false
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
},
|
|
124
|
+
}, _temp));
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
_createClass(MblogAction, [{
|
package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js
CHANGED
|
@@ -81,7 +81,7 @@ var EditPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
81
81
|
var _super = _createSuper(EditPop);
|
|
82
82
|
|
|
83
83
|
function EditPop() {
|
|
84
|
-
var _this;
|
|
84
|
+
var _temp, _this;
|
|
85
85
|
|
|
86
86
|
_classCallCheck(this, EditPop);
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ var EditPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
89
89
|
args[_key] = arguments[_key];
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
92
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
93
93
|
value: _this.props.value,
|
|
94
94
|
showError: false,
|
|
95
95
|
errMsg: "",
|
|
@@ -152,7 +152,7 @@ var EditPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
152
152
|
errMsg: (0, _i18nFrontTranslate.inputWordTrans)(value.length, maxLength),
|
|
153
153
|
disable: !!(maxLength && value.length > maxLength && disable)
|
|
154
154
|
});
|
|
155
|
-
},
|
|
155
|
+
}, _temp));
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
_createClass(EditPop, [{
|
|
@@ -342,8 +342,8 @@ var OKRExcelCreate = function OKRExcelCreate(_ref3) {
|
|
|
342
342
|
}, /*#__PURE__*/_react["default"].createElement(_tableExcelV["default"], {
|
|
343
343
|
className: (0, _classnames["default"])("".concat(preCls, "__table-excel-v2 ").concat(tableClassName), _defineProperty({}, "".concat(preCls, "--disabled-remove"), hiddenRemoveIcon)),
|
|
344
344
|
rowKey: "uuid",
|
|
345
|
-
fixedHeader: true,
|
|
346
|
-
|
|
345
|
+
fixedHeader: true // pinned={[1, 0]}
|
|
346
|
+
,
|
|
347
347
|
columns: columnsOption,
|
|
348
348
|
dataSource: excelTableData,
|
|
349
349
|
rowLastNode: /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -49,7 +49,7 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
49
49
|
var _super = _createSuper(ConfirmPop);
|
|
50
50
|
|
|
51
51
|
function ConfirmPop() {
|
|
52
|
-
var _this;
|
|
52
|
+
var _temp, _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, ConfirmPop);
|
|
55
55
|
|
|
@@ -57,13 +57,13 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
60
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
61
61
|
// @ts-ignore
|
|
62
62
|
_this.refs.pop.show(_this.refs.trigger);
|
|
63
63
|
}, _this.handleHide = function () {
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
_this.refs.pop.hide();
|
|
66
|
-
},
|
|
66
|
+
}, _temp));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(ConfirmPop, [{
|
|
@@ -13,39 +13,39 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
13
13
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
|
|
16
|
-
var Wrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
16
|
+
var Wrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 262px;\n box-sizing: border-box;\n min-height: 80px;\n padding: 16px 0px;\n border: 1px solid #f7f8fa;\n border-radius: 12px;\n box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);\n background: #ffffff;\n box-sizing: content-box;\n"])));
|
|
17
17
|
|
|
18
18
|
exports.Wrapper = Wrapper;
|
|
19
19
|
|
|
20
|
-
var Head = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n
|
|
20
|
+
var Head = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 36px;\n margin: 0 20px 8px;\n padding: 8px 15px;\n border-radius: 8px;\n background: #f7f8fa;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
|
|
21
21
|
|
|
22
22
|
exports.Head = Head;
|
|
23
23
|
|
|
24
|
-
var Title = _styledComponents["default"].a(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n
|
|
24
|
+
var Title = _styledComponents["default"].a(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex: 1;\n font-size: 14px;\n height: 20px;\n color: #3f4755;\n cursor: default;\n text-align: center;\n\n &:hover {\n color: #3f4755;\n }\n"])));
|
|
25
25
|
|
|
26
26
|
exports.Title = Title;
|
|
27
27
|
|
|
28
|
-
var Icon = _styledComponents["default"].a(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n
|
|
28
|
+
var Icon = _styledComponents["default"].a(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n transition: all 0.3s ease-in;\n color: #3f4755;\n\n &:hover {\n color: #2879ff;\n }\n\n &.disabled {\n color: #bfc7d5;\n cursor: default;\n\n &:hover {\n color: #bfc7d5;\n }\n }\n"])));
|
|
29
29
|
|
|
30
30
|
exports.Icon = Icon;
|
|
31
31
|
|
|
32
|
-
var List = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
|
|
32
|
+
var List = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n justify-content: space-between;\n padding: 0 11px;\n box-sizing: border-box;\n"])));
|
|
33
33
|
|
|
34
34
|
exports.List = List;
|
|
35
35
|
|
|
36
36
|
var getItemWidthBySize = function getItemWidthBySize(size) {
|
|
37
|
-
if (size ==
|
|
38
|
-
if (size ==
|
|
37
|
+
if (size == 's') return 48;
|
|
38
|
+
if (size == 'm') return 72;
|
|
39
39
|
return 72;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
var Item = _styledComponents["default"].a(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n
|
|
42
|
+
var Item = _styledComponents["default"].a(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: ", "px;\n padding: 8px;\n font-size: 12px;\n line-height: 17px;\n border-radius: 8px;\n transition: all 0.3s ease-in;\n box-sizing: border-box;\n color: #6f7886;\n cursor: pointer;\n text-align: center;\n white-space: nowrap;\n flex-shrink: 0;\n\n &.active,\n &:hover {\n color: #2879ff;\n }\n\n &:hover {\n background: #F7F8FA;\n }\n"])), function (p) {
|
|
43
43
|
return getItemWidthBySize(p.size);
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
exports.Item = Item;
|
|
47
47
|
|
|
48
|
-
var PlaceHolder = _styledComponents["default"].div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n
|
|
48
|
+
var PlaceHolder = _styledComponents["default"].div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: ", "px;\n height: 0;\n"])), function (p) {
|
|
49
49
|
return getItemWidthBySize(p.size);
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -79,7 +79,10 @@ function PeriodSelector(_ref) {
|
|
|
79
79
|
_ref$buttonClass = _ref.buttonClass,
|
|
80
80
|
buttonClass = _ref$buttonClass === void 0 ? '' : _ref$buttonClass,
|
|
81
81
|
_ref$noBorder = _ref.noBorder,
|
|
82
|
-
noBorder = _ref$noBorder === void 0 ? false : _ref$noBorder
|
|
82
|
+
noBorder = _ref$noBorder === void 0 ? false : _ref$noBorder,
|
|
83
|
+
_ref$needInitPeriod = _ref.needInitPeriod,
|
|
84
|
+
needInitPeriod = _ref$needInitPeriod === void 0 ? true : _ref$needInitPeriod,
|
|
85
|
+
onPopupVisibleChange = _ref.onPopupVisibleChange;
|
|
83
86
|
|
|
84
87
|
var _useState = (0, _react.useState)({
|
|
85
88
|
hasSetting: true,
|
|
@@ -110,6 +113,12 @@ function PeriodSelector(_ref) {
|
|
|
110
113
|
setVisible = _useState6[1];
|
|
111
114
|
|
|
112
115
|
var fetchRef = (0, _react.useRef)(false);
|
|
116
|
+
|
|
117
|
+
var onPopupVisibleChangeHandler = function onPopupVisibleChangeHandler(popupVisible) {
|
|
118
|
+
setVisible(popupVisible);
|
|
119
|
+
onPopupVisibleChange === null || onPopupVisibleChange === void 0 ? void 0 : onPopupVisibleChange(popupVisible);
|
|
120
|
+
};
|
|
121
|
+
|
|
113
122
|
(0, _react.useEffect)(function () {
|
|
114
123
|
if (selected) {
|
|
115
124
|
setSelectedPeriod(selected);
|
|
@@ -139,9 +148,9 @@ function PeriodSelector(_ref) {
|
|
|
139
148
|
});
|
|
140
149
|
} else if (selected) {
|
|
141
150
|
setSelectedPeriod(selected);
|
|
142
|
-
} else {
|
|
151
|
+
} else if (needInitPeriod) {
|
|
143
152
|
setSelectedPeriod((0, _common.getDefalutCycle)(cycleSetting));
|
|
144
|
-
onChange
|
|
153
|
+
onChange === null || onChange === void 0 ? void 0 : onChange((0, _common.getDefalutCycle)(cycleSetting));
|
|
145
154
|
}
|
|
146
155
|
}, [visible]);
|
|
147
156
|
|
|
@@ -158,7 +167,7 @@ function PeriodSelector(_ref) {
|
|
|
158
167
|
startMonth: isFetch ? cycleSetting.yearStartMonth : startMonth,
|
|
159
168
|
onSelected: function onSelected(period) {
|
|
160
169
|
setSelectedPeriod(period);
|
|
161
|
-
onChange
|
|
170
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(period);
|
|
162
171
|
setVisible(false);
|
|
163
172
|
},
|
|
164
173
|
yearsRange: yearsRange,
|
|
@@ -174,9 +183,7 @@ function PeriodSelector(_ref) {
|
|
|
174
183
|
popupPlacement: align,
|
|
175
184
|
extraClass: popClass,
|
|
176
185
|
popup: popup,
|
|
177
|
-
onPopupVisibleChange:
|
|
178
|
-
setVisible(visible);
|
|
179
|
-
}
|
|
186
|
+
onPopupVisibleChange: onPopupVisibleChangeHandler
|
|
180
187
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
181
188
|
className: className
|
|
182
189
|
}, children || /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
@@ -45,7 +45,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
45
45
|
var _super = _createSuper(RangeSelectorPop);
|
|
46
46
|
|
|
47
47
|
function RangeSelectorPop() {
|
|
48
|
-
var _this;
|
|
48
|
+
var _temp, _this;
|
|
49
49
|
|
|
50
50
|
_classCallCheck(this, RangeSelectorPop);
|
|
51
51
|
|
|
@@ -53,7 +53,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
53
53
|
args[_key] = arguments[_key];
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
56
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
57
57
|
var isDisabled = _this.props.isDisabled;
|
|
58
58
|
if (isDisabled) return; // @ts-ignore
|
|
59
59
|
|
|
@@ -61,7 +61,7 @@ var RangeSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
61
61
|
}, _this.handleHide = function () {
|
|
62
62
|
// @ts-ignore
|
|
63
63
|
_this.refs.pop.hide();
|
|
64
|
-
},
|
|
64
|
+
}, _temp));
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
_createClass(RangeSelectorPop, [{
|