@titaui/pc 1.16.29 → 1.16.30-beta.2
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/change-okr-modal/index.js +1 -2
- package/lib/components/create-okr-modal/index.js +15 -3
- 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 +45 -27
- package/lib/components/keyword-search/index.js +69 -38
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/menus/export-modules/skynet-dashboard-menu/index.js +5 -2
- package/lib/components/menus/export-modules/skynet-dashboard-menu/menus.js +13 -8
- package/lib/components/menus/export-modules/skynet-dashboard-menu/survey-front-menus.js +14 -16
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-detail/e-list/search-form/fields/e-status.js +1 -1
- package/lib/components/okr-excel-create/index.js +2 -2
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +3 -4
- package/lib/components/okr-review/components/ReviewItem/index.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okr-review/index.js +1 -1
- package/lib/components/period-selector/components/selector/style.js +9 -9
- package/lib/components/period-selector/index.js +11 -6
- 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 +48 -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/textarea/index.js +0 -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
|
@@ -5,12 +5,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] =
|
|
8
|
+
exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
12
14
|
require("./index.css");
|
|
13
15
|
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
14
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); }
|
|
15
19
|
|
|
16
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -33,28 +37,29 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
33
37
|
|
|
34
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
39
|
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
var prefixCls = 'search-input-box';
|
|
41
|
+
|
|
42
|
+
var SearchInput = function SearchInput(props) {
|
|
43
|
+
var _props$autoFocus = props.autoFocus,
|
|
44
|
+
autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus,
|
|
45
|
+
onSearch = props.onSearch,
|
|
38
46
|
placeholder = props.placeholder,
|
|
39
47
|
setSearchKey = props.setSearchKey,
|
|
40
|
-
propsValue = props.value,
|
|
41
48
|
_props$style = props.style,
|
|
42
|
-
style = _props$style === void 0 ? {} : _props$style
|
|
49
|
+
style = _props$style === void 0 ? {} : _props$style,
|
|
50
|
+
propsValue = props.value;
|
|
43
51
|
|
|
44
|
-
var _useState = (0, _react.useState)(
|
|
52
|
+
var _useState = (0, _react.useState)(false),
|
|
45
53
|
_useState2 = _slicedToArray(_useState, 2),
|
|
46
|
-
|
|
47
|
-
|
|
54
|
+
searchWhenClear = _useState2[0],
|
|
55
|
+
setSearchWhenClear = _useState2[1];
|
|
48
56
|
|
|
49
|
-
var _useState3 = (0, _react.useState)(
|
|
57
|
+
var _useState3 = (0, _react.useState)(''),
|
|
50
58
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
51
|
-
|
|
52
|
-
|
|
59
|
+
value = _useState4[0],
|
|
60
|
+
setValue = _useState4[1];
|
|
53
61
|
|
|
54
|
-
var
|
|
55
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
56
|
-
clearIconState = _useState6[0],
|
|
57
|
-
setClearIconState = _useState6[1];
|
|
62
|
+
var inputRef = (0, _react.useRef)();
|
|
58
63
|
|
|
59
64
|
var defaultStyle = _objectSpread({
|
|
60
65
|
width: 230,
|
|
@@ -63,23 +68,18 @@ function _default(props) {
|
|
|
63
68
|
|
|
64
69
|
(0, _react.useEffect)(function () {
|
|
65
70
|
setValue(propsValue);
|
|
66
|
-
if (!propsValue) setClearIconState(false);
|
|
67
71
|
}, [propsValue]);
|
|
68
|
-
var inputClassName = focus ? 'search-input-focus' : '';
|
|
69
|
-
var iconClassName = focus ? 'search-input-icon-focus' : '';
|
|
70
|
-
var clearIconStyle = {
|
|
71
|
-
display: clearIconState ? 'inline' : 'none'
|
|
72
|
-
};
|
|
73
72
|
|
|
74
73
|
var handleInputChange = function handleInputChange(e) {
|
|
75
74
|
var evalue = e.target.value;
|
|
76
75
|
setValue(evalue);
|
|
77
76
|
setSearchKey === null || setSearchKey === void 0 ? void 0 : setSearchKey(evalue);
|
|
78
|
-
setClearIconState(evalue != '');
|
|
79
77
|
};
|
|
80
78
|
|
|
81
|
-
var
|
|
82
|
-
|
|
79
|
+
var handleSearch = function handleSearch() {
|
|
80
|
+
var searchKey = value === null || value === void 0 ? void 0 : value.trim();
|
|
81
|
+
setSearchWhenClear(!!searchKey);
|
|
82
|
+
onSearch === null || onSearch === void 0 ? void 0 : onSearch(searchKey);
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
var handleKeyPress = function handleKeyPress(e) {
|
|
@@ -88,51 +88,41 @@ function _default(props) {
|
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
-
var
|
|
92
|
-
onSearch === null || onSearch === void 0 ? void 0 : onSearch(value === null || value === void 0 ? void 0 : value.trim());
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
var clearValue = function clearValue(e) {
|
|
91
|
+
var clearValue = function clearValue() {
|
|
96
92
|
setValue('');
|
|
97
93
|
setSearchKey === null || setSearchKey === void 0 ? void 0 : setSearchKey('');
|
|
94
|
+
inputRef.current.focus();
|
|
98
95
|
|
|
99
|
-
if (
|
|
100
|
-
onSearch('');
|
|
96
|
+
if (propsValue || searchWhenClear) {
|
|
97
|
+
onSearch === null || onSearch === void 0 ? void 0 : onSearch('');
|
|
101
98
|
}
|
|
102
|
-
|
|
103
|
-
setClearIconState(false);
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
var onMouseOver = function onMouseOver(e) {
|
|
107
|
-
setFocus(true);
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
var onMouseLeave = function onMouseLeave(e) {
|
|
111
|
-
setFocus(false);
|
|
112
99
|
};
|
|
113
100
|
|
|
114
101
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
|
-
className:
|
|
102
|
+
className: prefixCls,
|
|
116
103
|
style: defaultStyle
|
|
117
104
|
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
105
|
+
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
106
|
+
autoFocus: autoFocus,
|
|
107
|
+
className: "".concat(prefixCls, "__input"),
|
|
108
|
+
key: "input",
|
|
121
109
|
onKeyPress: handleKeyPress,
|
|
122
|
-
placeholder: placeholder,
|
|
123
110
|
onChange: handleInputChange,
|
|
124
|
-
|
|
125
|
-
|
|
111
|
+
placeholder: placeholder,
|
|
112
|
+
ref: inputRef,
|
|
113
|
+
value: value
|
|
126
114
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
127
|
-
className: "tu-icon-cross clear-input-icon
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
key: "clear"
|
|
115
|
+
className: (0, _classnames["default"])('tu-icon-cross', 'clear-input-icon', {
|
|
116
|
+
'clear-input-icon--visible': !!value
|
|
117
|
+
}),
|
|
118
|
+
key: "clear",
|
|
119
|
+
onClick: clearValue
|
|
131
120
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
onMouseLeave: onMouseLeave,
|
|
136
|
-
key: "search"
|
|
121
|
+
className: "tu-icon-search search-input-icon",
|
|
122
|
+
key: "search",
|
|
123
|
+
onClick: handleSearch
|
|
137
124
|
}));
|
|
138
|
-
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
var _default = SearchInput;
|
|
128
|
+
exports["default"] = _default;
|
|
@@ -47,7 +47,7 @@ var Option = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(Option);
|
|
48
48
|
|
|
49
49
|
function Option() {
|
|
50
|
-
var _this;
|
|
50
|
+
var _temp, _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, Option);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var Option = /*#__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.handleSelect = function (e) {
|
|
58
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleSelect = function (e) {
|
|
59
59
|
e.stopPropagation();
|
|
60
60
|
e.nativeEvent.stopImmediatePropagation();
|
|
61
61
|
var onSelect = _this.props.onSelect;
|
|
@@ -65,7 +65,7 @@ var Option = /*#__PURE__*/function (_Component) {
|
|
|
65
65
|
height: _this.props.height,
|
|
66
66
|
lineHeight: _this.props.height
|
|
67
67
|
};
|
|
68
|
-
},
|
|
68
|
+
}, _temp));
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
_createClass(Option, [{
|
|
@@ -37,7 +37,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
37
37
|
var _super = _createSuper(ErrorBoundary);
|
|
38
38
|
|
|
39
39
|
function ErrorBoundary() {
|
|
40
|
-
var _this;
|
|
40
|
+
var _temp, _this;
|
|
41
41
|
|
|
42
42
|
_classCallCheck(this, ErrorBoundary);
|
|
43
43
|
|
|
@@ -45,7 +45,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
45
45
|
args[_key] = arguments[_key];
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
48
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
49
49
|
hasError: false
|
|
50
50
|
}, _this.renderError = function (e) {
|
|
51
51
|
var errorTemplate = _this.props.errorTemplate;
|
|
@@ -55,7 +55,7 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
// fallback
|
|
56
56
|
return errorTemplate && typeof errorTemplate === "function" ? errorTemplate(e) : /*#__PURE__*/_react["default"].createElement("h5", null, "\u7EC4\u4EF6\u51FA\u9519\u4E86\uFF0C\u8BF7\u6838\u67E5\u540E\u91CD\u8BD5\uFF1A", e.message);
|
|
57
57
|
}
|
|
58
|
-
},
|
|
58
|
+
}, _temp));
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
_createClass(ErrorBoundary, [{
|
|
@@ -45,7 +45,7 @@ var AnimateChild = /*#__PURE__*/function (_Component) {
|
|
|
45
45
|
var _super = _createSuper(AnimateChild);
|
|
46
46
|
|
|
47
47
|
function AnimateChild() {
|
|
48
|
-
var _this;
|
|
48
|
+
var _temp, _this;
|
|
49
49
|
|
|
50
50
|
_classCallCheck(this, AnimateChild);
|
|
51
51
|
|
|
@@ -53,14 +53,14 @@ var AnimateChild = /*#__PURE__*/function (_Component) {
|
|
|
53
53
|
args[_key] = arguments[_key];
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.componentWillEnter = function (done) {
|
|
56
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.componentWillEnter = function (done) {
|
|
57
57
|
_this.transition("enter", done);
|
|
58
58
|
}, _this.componentWillLeave = function (done) {
|
|
59
59
|
_this.transition("leave", done);
|
|
60
60
|
}, _this.transition = function (animationType, done) {
|
|
61
61
|
var name = _typeof(_this.props.transitionName) === "object" ? _this.props.transitionName[animationType] : "".concat(_this.props.transitionName, "-").concat(animationType);
|
|
62
62
|
(0, _animate["default"])((0, _reactDom.findDOMNode)(_assertThisInitialized(_this)), name, done);
|
|
63
|
-
},
|
|
63
|
+
}, _temp));
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
_createClass(AnimateChild, [{
|
|
@@ -45,7 +45,7 @@ var Avatar = /*#__PURE__*/function (_PureComponent) {
|
|
|
45
45
|
var _super = _createSuper(Avatar);
|
|
46
46
|
|
|
47
47
|
function Avatar() {
|
|
48
|
-
var _this;
|
|
48
|
+
var _temp, _this;
|
|
49
49
|
|
|
50
50
|
_classCallCheck(this, Avatar);
|
|
51
51
|
|
|
@@ -53,7 +53,7 @@ var Avatar = /*#__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.renderImgAvatar = function () {
|
|
56
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.renderImgAvatar = function () {
|
|
57
57
|
var src = _this.props.src;
|
|
58
58
|
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
59
59
|
style: {
|
|
@@ -103,7 +103,7 @@ var Avatar = /*#__PURE__*/function (_PureComponent) {
|
|
|
103
103
|
height: size.width,
|
|
104
104
|
background: color
|
|
105
105
|
}, cuttedName);
|
|
106
|
-
},
|
|
106
|
+
}, _temp));
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
_createClass(Avatar, [{
|
|
@@ -47,7 +47,7 @@ var StatelessDropdown = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(StatelessDropdown);
|
|
48
48
|
|
|
49
49
|
function StatelessDropdown() {
|
|
50
|
-
var _this;
|
|
50
|
+
var _temp, _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, StatelessDropdown);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var StatelessDropdown = /*#__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.renderLabel = function () {
|
|
58
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.renderLabel = function () {
|
|
59
59
|
if (_this.props.labelText) {
|
|
60
60
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
61
61
|
className: "drop-down-label"
|
|
@@ -63,7 +63,7 @@ var StatelessDropdown = /*#__PURE__*/function (_Component) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
return "";
|
|
66
|
-
},
|
|
66
|
+
}, _temp));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(StatelessDropdown, [{
|
|
@@ -41,7 +41,7 @@ var CircleProgress = /*#__PURE__*/function (_Component) {
|
|
|
41
41
|
var _super = _createSuper(CircleProgress);
|
|
42
42
|
|
|
43
43
|
function CircleProgress() {
|
|
44
|
-
var _this;
|
|
44
|
+
var _temp, _this;
|
|
45
45
|
|
|
46
46
|
_classCallCheck(this, CircleProgress);
|
|
47
47
|
|
|
@@ -49,7 +49,7 @@ var CircleProgress = /*#__PURE__*/function (_Component) {
|
|
|
49
49
|
args[_key] = arguments[_key];
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.getTextContent = function () {
|
|
52
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.getTextContent = function () {
|
|
53
53
|
var _this$props = _this.props,
|
|
54
54
|
formatText = _this$props.formatText,
|
|
55
55
|
percent = _this$props.percent;
|
|
@@ -59,7 +59,7 @@ var CircleProgress = /*#__PURE__*/function (_Component) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
return percent + getLocale("OKR_MyO_Pop_Upd_Percentage");
|
|
62
|
-
},
|
|
62
|
+
}, _temp));
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
_createClass(CircleProgress, [{
|
|
@@ -47,7 +47,7 @@ var Option = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(Option);
|
|
48
48
|
|
|
49
49
|
function Option() {
|
|
50
|
-
var _this;
|
|
50
|
+
var _temp, _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, Option);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var Option = /*#__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.handleSelect = function (e) {
|
|
58
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleSelect = function (e) {
|
|
59
59
|
e.stopPropagation();
|
|
60
60
|
e.nativeEvent.stopImmediatePropagation();
|
|
61
61
|
var onSelect = _this.props.onSelect;
|
|
@@ -65,7 +65,7 @@ var Option = /*#__PURE__*/function (_Component) {
|
|
|
65
65
|
height: _this.props.height,
|
|
66
66
|
lineHeight: _this.props.height
|
|
67
67
|
};
|
|
68
|
-
},
|
|
68
|
+
}, _temp));
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
_createClass(Option, [{
|
|
@@ -11,8 +11,6 @@ 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
|
-
|
|
16
14
|
var _style = require("./style");
|
|
17
15
|
|
|
18
16
|
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); }
|
|
@@ -149,7 +147,6 @@ var TextareaView = /*#__PURE__*/function (_PureComponent) {
|
|
|
149
147
|
isFocus = _this$state.isFocus,
|
|
150
148
|
isHasPlaceholder = _this$state.isHasPlaceholder;
|
|
151
149
|
var valueLen = value.length;
|
|
152
|
-
console.log(123, (0, _mblog.htmlDecodeByRegExp)(value));
|
|
153
150
|
return /*#__PURE__*/_react["default"].createElement(_style.TextareaWrapper, {
|
|
154
151
|
className: className,
|
|
155
152
|
style: style
|
|
@@ -52,7 +52,7 @@ var UserSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
52
52
|
var _super = _createSuper(UserSelectorPop);
|
|
53
53
|
|
|
54
54
|
function UserSelectorPop() {
|
|
55
|
-
var _this;
|
|
55
|
+
var _temp, _this;
|
|
56
56
|
|
|
57
57
|
_classCallCheck(this, UserSelectorPop);
|
|
58
58
|
|
|
@@ -60,7 +60,7 @@ var UserSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
60
60
|
args[_key] = arguments[_key];
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function (e) {
|
|
63
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function (e) {
|
|
64
64
|
if (_this.props.stopPropagation && !!e) {
|
|
65
65
|
e.stopPropagation();
|
|
66
66
|
e.nativeEvent.stopImmediatePropagation();
|
|
@@ -74,7 +74,7 @@ var UserSelectorPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
74
74
|
}, _this.show = function (el) {
|
|
75
75
|
// @ts-ignore
|
|
76
76
|
_this.refs.pop.show(el);
|
|
77
|
-
},
|
|
77
|
+
}, _temp));
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
_createClass(UserSelectorPop, [{
|
|
@@ -61,7 +61,7 @@ var MutiMode = /*#__PURE__*/function (_PureComponent) {
|
|
|
61
61
|
var _super = _createSuper(MutiMode);
|
|
62
62
|
|
|
63
63
|
function MutiMode() {
|
|
64
|
-
var _this;
|
|
64
|
+
var _temp, _this;
|
|
65
65
|
|
|
66
66
|
_classCallCheck(this, MutiMode);
|
|
67
67
|
|
|
@@ -69,7 +69,7 @@ var MutiMode = /*#__PURE__*/function (_PureComponent) {
|
|
|
69
69
|
args[_key] = arguments[_key];
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleDepartment = function (d) {
|
|
72
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleDepartment = function (d) {
|
|
73
73
|
var _this$props = _this.props,
|
|
74
74
|
selectedDept = _this$props.selectedDept,
|
|
75
75
|
onSelectDept = _this$props.onSelectDept;
|
|
@@ -90,7 +90,7 @@ var MutiMode = /*#__PURE__*/function (_PureComponent) {
|
|
|
90
90
|
});
|
|
91
91
|
if (!filterdUsers.length) return;
|
|
92
92
|
onSelectUser(filterdUsers);
|
|
93
|
-
},
|
|
93
|
+
}, _temp));
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
_createClass(MutiMode, [{
|
|
@@ -47,7 +47,7 @@ var UserItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
47
47
|
var _super = _createSuper(UserItem);
|
|
48
48
|
|
|
49
49
|
function UserItem() {
|
|
50
|
-
var _this;
|
|
50
|
+
var _temp, _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, UserItem);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var UserItem = /*#__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.handleClick = function () {
|
|
58
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleClick = function () {
|
|
59
59
|
var _this$props = _this.props,
|
|
60
60
|
onClick = _this$props.onClick,
|
|
61
61
|
user = _this$props.user;
|
|
@@ -71,7 +71,7 @@ var UserItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
71
71
|
}
|
|
72
72
|
}, keyword)];
|
|
73
73
|
}));
|
|
74
|
-
},
|
|
74
|
+
}, _temp));
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
_createClass(UserItem, [{
|
|
@@ -9,47 +9,47 @@ exports["default"] = exports.ViewType = exports.MoreMenuType = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var _bsGlobal = require("../../../utils/bs-global");
|
|
15
|
-
|
|
16
|
-
var _precls = require("../precls");
|
|
12
|
+
var _reactRouter = require("react-router");
|
|
17
13
|
|
|
18
14
|
var _moment = _interopRequireDefault(require("moment"));
|
|
19
15
|
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
var _createOkr = _interopRequireDefault(require("./create-okr"));
|
|
23
|
-
|
|
24
|
-
var _userTitle = _interopRequireDefault(require("./user-title"));
|
|
16
|
+
var _guideTip = _interopRequireDefault(require("../../../components/guide-tip"));
|
|
25
17
|
|
|
26
|
-
var
|
|
18
|
+
var _keywordSearch = _interopRequireDefault(require("../../../components/keyword-search"));
|
|
27
19
|
|
|
28
|
-
var
|
|
20
|
+
var _popupSelect = _interopRequireDefault(require("../../../components/popup-select"));
|
|
29
21
|
|
|
30
|
-
var
|
|
22
|
+
var _tooltip = _interopRequireDefault(require("../../../components/tooltip"));
|
|
31
23
|
|
|
32
|
-
var
|
|
24
|
+
var _bsGlobal = require("../../../utils/bs-global");
|
|
33
25
|
|
|
34
|
-
var
|
|
26
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
35
27
|
|
|
36
28
|
var _localStorage = require("../../../utils/local-storage");
|
|
37
29
|
|
|
38
30
|
var _context = require("../context");
|
|
39
31
|
|
|
32
|
+
var _precls = require("../precls");
|
|
33
|
+
|
|
40
34
|
var _requestApi = require("../request-api");
|
|
41
35
|
|
|
42
|
-
var
|
|
36
|
+
var _comments = _interopRequireDefault(require("./comments"));
|
|
43
37
|
|
|
44
|
-
var
|
|
38
|
+
var _createOkr = _interopRequireDefault(require("./create-okr"));
|
|
45
39
|
|
|
46
|
-
var
|
|
40
|
+
var _departTitle = _interopRequireDefault(require("./depart-title"));
|
|
41
|
+
|
|
42
|
+
var _filter = _interopRequireDefault(require("./filter"));
|
|
47
43
|
|
|
48
44
|
var _okrImport = _interopRequireDefault(require("./okr-import"));
|
|
49
45
|
|
|
50
|
-
require("./
|
|
46
|
+
var _operateRecord = _interopRequireDefault(require("./operate-record"));
|
|
51
47
|
|
|
52
|
-
var
|
|
48
|
+
var _relationTitle = _interopRequireDefault(require("./relation-title"));
|
|
49
|
+
|
|
50
|
+
var _userTitle = _interopRequireDefault(require("./user-title"));
|
|
51
|
+
|
|
52
|
+
require("./index.css");
|
|
53
53
|
|
|
54
54
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
55
55
|
|