@titaui/pc 1.11.52-beta.3 → 1.11.52-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.
- package/lib/components/change-okr-modal/Item.js +19 -18
- package/lib/components/change-okr-modal/styledComponents.js +9 -9
- package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
- package/lib/components/create-okr-modal/fields/index.css +14 -3
- package/lib/components/create-okr-modal/fields/o-new-name.js +25 -19
- package/lib/components/create-okr-modal/index.js +75 -35
- package/lib/components/create-okr-modal/kr-items/index.css +12 -1
- package/lib/components/create-okr-modal/kr-items/krDatas.js +6 -5
- package/lib/components/create-okr-modal/kr-items/krItem.js +22 -12
- 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/dynamic/advertise/components/next-btn/index.css +27 -0
- package/lib/components/dynamic/advertise/components/next-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +26 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/index.css +21 -0
- package/lib/components/dynamic/advertise/index.js +126 -0
- package/lib/components/dynamic/advertise/interface.js +5 -0
- package/lib/components/dynamic/advertise/util.js +28 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +81 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +203 -0
- package/lib/components/dynamic/components/first-level-tabs/index.css +101 -0
- package/lib/components/dynamic/components/first-level-tabs/index.js +131 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +8 -8
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +18 -18
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +146 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +180 -0
- package/lib/components/dynamic/dynamic-like-ranking/item.js +105 -0
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
- package/lib/components/dynamic/dynamic-liking/index.css +81 -0
- package/lib/components/{contact-kefu → dynamic/dynamic-liking}/index.js +35 -58
- package/lib/components/dynamic/dynamic-liking/item.js +75 -0
- package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
- package/lib/components/dynamic/dynamic-list/index.js +7 -14
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +16 -0
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +30 -0
- package/lib/components/dynamic/dynamic-topping/index.css +141 -0
- package/lib/components/dynamic/dynamic-topping/index.js +82 -0
- package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
- package/lib/components/dynamic/dynamic-topping/item.js +153 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
- package/lib/components/dynamic/dynamic.css +173 -0
- package/lib/components/dynamic/dynamic.js +428 -0
- package/lib/components/dynamic/export-module/index.js +37 -0
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/index.js +12 -9
- package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
- package/lib/components/dynamic/my-team/img/line.png +0 -0
- package/lib/components/dynamic/my-team/img/team.png +0 -0
- package/lib/components/dynamic/my-team/index.css +184 -0
- package/lib/components/dynamic/my-team/index.js +263 -0
- package/lib/components/dynamic/my-team/request-api.js +52 -0
- package/lib/components/dynamic/my-team/util.js +20 -0
- package/lib/components/dynamic/new-ui.css +192 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +58 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +68 -0
- package/lib/components/dynamic/online-broadcast/data.js +95 -0
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +14 -0
- package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
- package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
- package/lib/components/dynamic/online-broadcast/index.css +46 -0
- package/lib/components/dynamic/online-broadcast/index.js +61 -0
- package/lib/components/dynamic/online-broadcast/interfact.js +5 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +44 -0
- package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +51 -0
- package/lib/components/dynamic/quick-operation/index.js +120 -0
- package/lib/components/dynamic/request-api.js +68 -7
- 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/mblog/components/MblogAction.js +3 -3
- package/lib/components/nav-top/components/menu/index.js +4 -3
- package/lib/components/nav-top/index.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/index.css +0 -4
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +0 -1
- package/lib/components/okr-detail/components/header/edit-name.js +86 -40
- package/lib/components/okr-detail/components/header/index.css +120 -41
- package/lib/components/okr-detail/components/header/index.js +36 -46
- package/lib/components/okr-detail/components/header/o-classify.js +152 -0
- package/lib/components/okr-detail/components/header/o-name.js +7 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +54 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +106 -56
- 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/components/okr-tree/tree-node/o-child-node/index.js +9 -9
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +5 -9
- package/lib/components/okr-detail/detail-header/index.js +8 -4
- package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +71 -53
- package/lib/components/okr-detail/request-apis.js +73 -69
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-flow/child-node/kr-node.js +3 -1
- package/lib/components/okr-flow/child-node/work-node.js +3 -1
- package/lib/components/okr-progress/components/kr-progress/index.js +5 -3
- package/lib/components/okr-progress/components/o-progress/index.js +3 -1
- package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +3 -3
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
- package/lib/components/okr-share/common-painter/utils.js +183 -36
- package/lib/components/okr-share/index.css +5 -4
- package/lib/components/okr-share/pink-card/card.js +3 -3
- package/lib/components/okr-share/pink-card/drawKrs.js +93 -18
- package/lib/components/okr-share/pink-card/index.js +20 -12
- package/lib/components/open-data-painter/index.js +6 -5
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
- package/lib/components/radio/index.css +3 -3
- 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-key-handle/index.js +9 -7
- package/lib/components/select/Option.js +3 -3
- package/lib/components/task-relation-modal/tree/okr-tree/index.css +1 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +11 -0
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +3 -1
- package/lib/components/task-relation-modal/tree-node/kr-node/index.css +16 -0
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +10 -4
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +16 -0
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +4 -0
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
- package/lib/components/textarea/index.js +35 -38
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/wechat-btn/index.css +4 -1
- 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/SingleMode.js +7 -5
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/index.js +0 -8
- package/lib/{components/contact-kefu → pages/aha2021}/img/canceled.svg +0 -0
- package/lib/{components/contact-kefu → pages/aha2021}/img/kefu.svg +0 -0
- package/lib/{components/contact-kefu → pages/aha2021}/img/not-try.png +0 -0
- package/lib/{components/contact-kefu → pages/aha2021}/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +26 -1
- package/lib/pages/aha2021/index.js +82 -3
- package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
- package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
- package/lib/pages/new-okr-list/header/index.css +1 -1
- package/lib/utils/open-data.js +213 -65
- package/package.json +3 -2
- package/lib/components/contact-kefu/img/notice.png +0 -0
- package/lib/components/contact-kefu/index.css +0 -85
|
@@ -57,7 +57,7 @@ var DeleteLineSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
57
57
|
var _super = _createSuper(DeleteLineSchema);
|
|
58
58
|
|
|
59
59
|
function DeleteLineSchema() {
|
|
60
|
-
var _this;
|
|
60
|
+
var _temp, _this;
|
|
61
61
|
|
|
62
62
|
_classCallCheck(this, DeleteLineSchema);
|
|
63
63
|
|
|
@@ -65,7 +65,7 @@ var DeleteLineSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
65
65
|
args[_key] = arguments[_key];
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
|
|
68
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
|
|
69
69
|
tag: 's',
|
|
70
70
|
priority: 25
|
|
71
71
|
}, {
|
|
@@ -77,7 +77,7 @@ var DeleteLineSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
77
77
|
}, {
|
|
78
78
|
style: 'text-decoration-line',
|
|
79
79
|
getAttrs: getAttrs
|
|
80
|
-
}],
|
|
80
|
+
}], _temp));
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
_createClass(DeleteLineSchema, [{
|
|
@@ -100,7 +100,7 @@ var DeleteLineController = /*#__PURE__*/function (_BaseController) {
|
|
|
100
100
|
var _super2 = _createSuper(DeleteLineController);
|
|
101
101
|
|
|
102
102
|
function DeleteLineController() {
|
|
103
|
-
var _this2;
|
|
103
|
+
var _temp2, _this2;
|
|
104
104
|
|
|
105
105
|
_classCallCheck(this, DeleteLineController);
|
|
106
106
|
|
|
@@ -108,7 +108,7 @@ var DeleteLineController = /*#__PURE__*/function (_BaseController) {
|
|
|
108
108
|
args[_key2] = arguments[_key2];
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
111
|
+
return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
112
112
|
title: (0, _getLocale.getLocale)('Rtx_Striketjrough'),
|
|
113
113
|
icon: 'tu-icon-text-delline',
|
|
114
114
|
handler: function handler(editor) {
|
|
@@ -118,7 +118,7 @@ var DeleteLineController = /*#__PURE__*/function (_BaseController) {
|
|
|
118
118
|
active: function active(state) {
|
|
119
119
|
return (0, _mark.selectionContainsMark)(state, PLUGIN_NAME);
|
|
120
120
|
}
|
|
121
|
-
},
|
|
121
|
+
}, _temp2));
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
return _createClass(DeleteLineController);
|
|
@@ -132,7 +132,7 @@ var DeleteLinePlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
132
132
|
var _super3 = _createSuper(DeleteLinePlugin);
|
|
133
133
|
|
|
134
134
|
function DeleteLinePlugin() {
|
|
135
|
-
var _this3;
|
|
135
|
+
var _temp3, _this3;
|
|
136
136
|
|
|
137
137
|
_classCallCheck(this, DeleteLinePlugin);
|
|
138
138
|
|
|
@@ -140,7 +140,7 @@ var DeleteLinePlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
140
140
|
args[_key3] = arguments[_key3];
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = DeleteLineSchema, _this3.controller = DeleteLineController,
|
|
143
|
+
return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = DeleteLineSchema, _this3.controller = DeleteLineController, _temp3));
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
return _createClass(DeleteLinePlugin);
|
|
@@ -41,7 +41,7 @@ var EmSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
41
41
|
var _super = _createSuper(EmSchema);
|
|
42
42
|
|
|
43
43
|
function EmSchema() {
|
|
44
|
-
var _this;
|
|
44
|
+
var _temp, _this;
|
|
45
45
|
|
|
46
46
|
_classCallCheck(this, EmSchema);
|
|
47
47
|
|
|
@@ -49,13 +49,13 @@ var EmSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
49
49
|
args[_key] = arguments[_key];
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
|
|
52
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
|
|
53
53
|
tag: "i"
|
|
54
54
|
}, {
|
|
55
55
|
tag: "em"
|
|
56
56
|
}, {
|
|
57
57
|
style: "font-style=italic"
|
|
58
|
-
}],
|
|
58
|
+
}], _temp));
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
_createClass(EmSchema, [{
|
|
@@ -76,7 +76,7 @@ var EmPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
76
76
|
var _super2 = _createSuper(EmPlugin);
|
|
77
77
|
|
|
78
78
|
function EmPlugin() {
|
|
79
|
-
var _this2;
|
|
79
|
+
var _temp2, _this2;
|
|
80
80
|
|
|
81
81
|
_classCallCheck(this, EmPlugin);
|
|
82
82
|
|
|
@@ -84,7 +84,7 @@ var EmPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
84
84
|
args[_key2] = arguments[_key2];
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.schema = EmSchema,
|
|
87
|
+
return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.name = PLUGIN_NAME, _this2.schema = EmSchema, _temp2));
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
return _createClass(EmPlugin);
|
|
@@ -53,7 +53,7 @@ var LinkSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
53
53
|
var _super = _createSuper(LinkSchema);
|
|
54
54
|
|
|
55
55
|
function LinkSchema() {
|
|
56
|
-
var _this;
|
|
56
|
+
var _temp, _this;
|
|
57
57
|
|
|
58
58
|
_classCallCheck(this, LinkSchema);
|
|
59
59
|
|
|
@@ -61,7 +61,7 @@ var LinkSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
61
61
|
args[_key] = arguments[_key];
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.priority = 100, _this.inclusive = false, _this.group = 'link', _this.attrs = {
|
|
64
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.priority = 100, _this.inclusive = false, _this.group = 'link', _this.attrs = {
|
|
65
65
|
href: {
|
|
66
66
|
"default": ''
|
|
67
67
|
}
|
|
@@ -82,7 +82,7 @@ var LinkSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
82
82
|
return ['a', {
|
|
83
83
|
href: node.attrs.href
|
|
84
84
|
}, 0];
|
|
85
|
-
},
|
|
85
|
+
}, _temp));
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
return _createClass(LinkSchema);
|
|
@@ -96,7 +96,7 @@ var LinkController = /*#__PURE__*/function (_BaseController) {
|
|
|
96
96
|
var _super2 = _createSuper(LinkController);
|
|
97
97
|
|
|
98
98
|
function LinkController() {
|
|
99
|
-
var _this2;
|
|
99
|
+
var _temp2, _this2;
|
|
100
100
|
|
|
101
101
|
_classCallCheck(this, LinkController);
|
|
102
102
|
|
|
@@ -104,7 +104,7 @@ var LinkController = /*#__PURE__*/function (_BaseController) {
|
|
|
104
104
|
args[_key2] = arguments[_key2];
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
107
|
+
return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
108
108
|
title: '链接',
|
|
109
109
|
icon: 'tu-icon-text-link',
|
|
110
110
|
handler: function handler(editor) {
|
|
@@ -118,7 +118,7 @@ var LinkController = /*#__PURE__*/function (_BaseController) {
|
|
|
118
118
|
disabled: function disabled(state) {
|
|
119
119
|
return !_main.stateKey.getState(state).canInsertLink;
|
|
120
120
|
}
|
|
121
|
-
}, _this2.pmPlugins = [_main["default"], _fakeCursorForToolbar["default"]],
|
|
121
|
+
}, _this2.pmPlugins = [_main["default"], _fakeCursorForToolbar["default"]], _temp2));
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
return _createClass(LinkController);
|
|
@@ -132,7 +132,7 @@ var LinkPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
132
132
|
var _super3 = _createSuper(LinkPlugin);
|
|
133
133
|
|
|
134
134
|
function LinkPlugin() {
|
|
135
|
-
var _this3;
|
|
135
|
+
var _temp3, _this3;
|
|
136
136
|
|
|
137
137
|
_classCallCheck(this, LinkPlugin);
|
|
138
138
|
|
|
@@ -140,7 +140,7 @@ var LinkPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
140
140
|
args[_key3] = arguments[_key3];
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = LinkSchema, _this3.controller = LinkController,
|
|
143
|
+
return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = LinkSchema, _this3.controller = LinkController, _temp3));
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
return _createClass(LinkPlugin);
|
|
@@ -49,7 +49,7 @@ var StrongSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
49
49
|
var _super = _createSuper(StrongSchema);
|
|
50
50
|
|
|
51
51
|
function StrongSchema() {
|
|
52
|
-
var _this;
|
|
52
|
+
var _temp, _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, StrongSchema);
|
|
55
55
|
|
|
@@ -57,7 +57,7 @@ var StrongSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.group = 'fontStyle', _this.parseDOM = [{
|
|
60
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.group = 'fontStyle', _this.parseDOM = [{
|
|
61
61
|
tag: "strong"
|
|
62
62
|
}, {
|
|
63
63
|
tag: "b",
|
|
@@ -69,7 +69,7 @@ var StrongSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
69
69
|
getAttrs: function getAttrs(value) {
|
|
70
70
|
return /^(bold(er)?|[5-9]\d{2,})$/.test(value) && null;
|
|
71
71
|
}
|
|
72
|
-
}],
|
|
72
|
+
}], _temp));
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
_createClass(StrongSchema, [{
|
|
@@ -90,7 +90,7 @@ var StrongController = /*#__PURE__*/function (_BaseController) {
|
|
|
90
90
|
var _super2 = _createSuper(StrongController);
|
|
91
91
|
|
|
92
92
|
function StrongController() {
|
|
93
|
-
var _this2;
|
|
93
|
+
var _temp2, _this2;
|
|
94
94
|
|
|
95
95
|
_classCallCheck(this, StrongController);
|
|
96
96
|
|
|
@@ -98,7 +98,7 @@ var StrongController = /*#__PURE__*/function (_BaseController) {
|
|
|
98
98
|
args[_key2] = arguments[_key2];
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
101
|
+
return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
102
102
|
title: (0, _getLocale.getLocale)('Rtx_Bold'),
|
|
103
103
|
icon: 'tu-icon-text-blod',
|
|
104
104
|
handler: function handler(editor) {
|
|
@@ -108,7 +108,7 @@ var StrongController = /*#__PURE__*/function (_BaseController) {
|
|
|
108
108
|
active: function active(state) {
|
|
109
109
|
return (0, _mark.selectionContainsMark)(state, PLUGIN_NAME);
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, _temp2));
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
return _createClass(StrongController);
|
|
@@ -122,7 +122,7 @@ var StrongPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
122
122
|
var _super3 = _createSuper(StrongPlugin);
|
|
123
123
|
|
|
124
124
|
function StrongPlugin() {
|
|
125
|
-
var _this3;
|
|
125
|
+
var _temp3, _this3;
|
|
126
126
|
|
|
127
127
|
_classCallCheck(this, StrongPlugin);
|
|
128
128
|
|
|
@@ -130,7 +130,7 @@ var StrongPlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
130
130
|
args[_key3] = arguments[_key3];
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = StrongSchema, _this3.controller = StrongController,
|
|
133
|
+
return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = StrongSchema, _this3.controller = StrongController, _temp3));
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
return _createClass(StrongPlugin);
|
|
@@ -60,7 +60,7 @@ var UnderLineSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
60
60
|
var _super = _createSuper(UnderLineSchema);
|
|
61
61
|
|
|
62
62
|
function UnderLineSchema() {
|
|
63
|
-
var _this;
|
|
63
|
+
var _temp, _this;
|
|
64
64
|
|
|
65
65
|
_classCallCheck(this, UnderLineSchema);
|
|
66
66
|
|
|
@@ -68,14 +68,14 @@ var UnderLineSchema = /*#__PURE__*/function (_InlineSchema) {
|
|
|
68
68
|
args[_key] = arguments[_key];
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
|
|
71
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.name = PLUGIN_NAME, _this.parseDOM = [{
|
|
72
72
|
tag: 'ins'
|
|
73
73
|
}, {
|
|
74
74
|
tag: 'u'
|
|
75
75
|
}, {
|
|
76
76
|
tag: 'span',
|
|
77
77
|
getAttrs: getAttrs
|
|
78
|
-
}],
|
|
78
|
+
}], _temp));
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
_createClass(UnderLineSchema, [{
|
|
@@ -98,7 +98,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
|
|
|
98
98
|
var _super2 = _createSuper(UnderLineController);
|
|
99
99
|
|
|
100
100
|
function UnderLineController() {
|
|
101
|
-
var _this2;
|
|
101
|
+
var _temp2, _this2;
|
|
102
102
|
|
|
103
103
|
_classCallCheck(this, UnderLineController);
|
|
104
104
|
|
|
@@ -106,7 +106,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
|
|
|
106
106
|
args[_key2] = arguments[_key2];
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
return _possibleConstructorReturn(_this2, (_this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
109
|
+
return _possibleConstructorReturn(_this2, (_temp2 = _this2 = _super2.call.apply(_super2, [this].concat(args)), _this2.toolbar = {
|
|
110
110
|
title: (0, _getLocale.getLocale)('Rtx_Underline'),
|
|
111
111
|
icon: 'tu-icon-text-underline',
|
|
112
112
|
handler: function handler(editor) {
|
|
@@ -116,7 +116,7 @@ var UnderLineController = /*#__PURE__*/function (_BaseController) {
|
|
|
116
116
|
active: function active(state) {
|
|
117
117
|
return (0, _mark.selectionContainsMark)(state, PLUGIN_NAME);
|
|
118
118
|
}
|
|
119
|
-
},
|
|
119
|
+
}, _temp2));
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
return _createClass(UnderLineController);
|
|
@@ -130,7 +130,7 @@ var UnderLinePlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
130
130
|
var _super3 = _createSuper(UnderLinePlugin);
|
|
131
131
|
|
|
132
132
|
function UnderLinePlugin() {
|
|
133
|
-
var _this3;
|
|
133
|
+
var _temp3, _this3;
|
|
134
134
|
|
|
135
135
|
_classCallCheck(this, UnderLinePlugin);
|
|
136
136
|
|
|
@@ -138,7 +138,7 @@ var UnderLinePlugin = /*#__PURE__*/function (_BasePlugin) {
|
|
|
138
138
|
args[_key3] = arguments[_key3];
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
return _possibleConstructorReturn(_this3, (_this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = UnderLineSchema, _this3.controller = UnderLineController,
|
|
141
|
+
return _possibleConstructorReturn(_this3, (_temp3 = _this3 = _super3.call.apply(_super3, [this].concat(args)), _this3.name = PLUGIN_NAME, _this3.schema = UnderLineSchema, _this3.controller = UnderLineController, _temp3));
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
return _createClass(UnderLinePlugin);
|
|
@@ -55,7 +55,7 @@ var PortalProviderAPI = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
55
55
|
var _super = _createSuper(PortalProviderAPI);
|
|
56
56
|
|
|
57
57
|
function PortalProviderAPI() {
|
|
58
|
-
var _this;
|
|
58
|
+
var _temp, _this;
|
|
59
59
|
|
|
60
60
|
_classCallCheck(this, PortalProviderAPI);
|
|
61
61
|
|
|
@@ -63,9 +63,9 @@ var PortalProviderAPI = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
63
63
|
args[_key] = arguments[_key];
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.portals = new Map(), _this.setContext = function (context) {
|
|
66
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.portals = new Map(), _this.setContext = function (context) {
|
|
67
67
|
_this.context = context;
|
|
68
|
-
},
|
|
68
|
+
}, _temp));
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
_createClass(PortalProviderAPI, [{
|
|
@@ -53,7 +53,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
|
|
|
53
53
|
var _super = _createSuper(EditorPopup);
|
|
54
54
|
|
|
55
55
|
function EditorPopup() {
|
|
56
|
-
var _this;
|
|
56
|
+
var _temp, _this;
|
|
57
57
|
|
|
58
58
|
_classCallCheck(this, EditorPopup);
|
|
59
59
|
|
|
@@ -61,7 +61,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
|
|
|
61
61
|
args[_key] = arguments[_key];
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
64
|
+
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
65
65
|
overflowScrollParent: false,
|
|
66
66
|
validPosition: true
|
|
67
67
|
}, _this.placement = ['', ''], _this.handleRef = function (popup) {
|
|
@@ -74,7 +74,7 @@ var EditorPopup = /*#__PURE__*/function (_React$Component) {
|
|
|
74
74
|
return _this.updatePosition(props);
|
|
75
75
|
}), _this.onResize = function () {
|
|
76
76
|
return _this.scheduledUpdatePosition();
|
|
77
|
-
},
|
|
77
|
+
}, _temp));
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
_createClass(EditorPopup, [{
|
|
@@ -5,22 +5,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
|
|
8
|
+
var _openData = require("../../utils/open-data");
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
9
11
|
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
13
|
|
|
12
14
|
var SearchKeyHandle = function SearchKeyHandle(_ref) {
|
|
13
15
|
var _ref$str = _ref.str,
|
|
14
|
-
str = _ref$str === void 0 ?
|
|
16
|
+
str = _ref$str === void 0 ? '' : _ref$str,
|
|
15
17
|
_ref$keyWord = _ref.keyWord,
|
|
16
|
-
keyWord = _ref$keyWord === void 0 ?
|
|
18
|
+
keyWord = _ref$keyWord === void 0 ? '' : _ref$keyWord,
|
|
17
19
|
_ref$color = _ref.color,
|
|
18
|
-
color = _ref$color === void 0 ?
|
|
20
|
+
color = _ref$color === void 0 ? '#F05E5E' : _ref$color;
|
|
19
21
|
if (!str || !keyWord) return /*#__PURE__*/_react["default"].createElement("span", null, str);
|
|
20
22
|
var result = str.split(keyWord);
|
|
21
23
|
return /*#__PURE__*/_react["default"].createElement("span", null, result.map(function (item, index) {
|
|
22
24
|
if (index !== result.length - 1) {
|
|
23
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, item, /*#__PURE__*/_react["default"].createElement("span", {
|
|
25
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, (0, _openData.parseString)(item), /*#__PURE__*/_react["default"].createElement("span", {
|
|
24
26
|
style: {
|
|
25
27
|
color: color
|
|
26
28
|
}
|
|
@@ -32,9 +34,9 @@ var SearchKeyHandle = function SearchKeyHandle(_ref) {
|
|
|
32
34
|
};
|
|
33
35
|
|
|
34
36
|
SearchKeyHandle.defaultProps = {
|
|
35
|
-
str:
|
|
36
|
-
keyWord:
|
|
37
|
-
color:
|
|
37
|
+
str: '',
|
|
38
|
+
keyWord: '',
|
|
39
|
+
color: ''
|
|
38
40
|
};
|
|
39
41
|
var _default = SearchKeyHandle;
|
|
40
42
|
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, [{
|
|
@@ -13,6 +13,17 @@
|
|
|
13
13
|
top: 1px;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.rel-category-node__pointer {
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: -23px;
|
|
19
|
+
left: -33px;
|
|
20
|
+
width: 27px;
|
|
21
|
+
height: 31px;
|
|
22
|
+
border-left: 1px solid #e9ecf0;
|
|
23
|
+
border-bottom: 1px solid #e9ecf0;
|
|
24
|
+
border-bottom-left-radius: 6px;
|
|
25
|
+
}
|
|
26
|
+
|
|
16
27
|
.rel-category-node__name {
|
|
17
28
|
flex: 1;
|
|
18
29
|
margin-right: 40px;
|
|
@@ -83,7 +83,9 @@ function CategoryNode(props) {
|
|
|
83
83
|
onChange: onCheckHandler,
|
|
84
84
|
id: data.id,
|
|
85
85
|
checked: checked
|
|
86
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
86
|
+
})), !isParent && /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
|
+
className: "".concat(precls, "__pointer")
|
|
88
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
89
|
className: "".concat(precls, "__name")
|
|
88
90
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
89
91
|
className: (0, _classnames["default"])("".concat(precls, "__name-icon"), {
|
|
@@ -17,6 +17,22 @@
|
|
|
17
17
|
border: 1px solid #bfc7d5;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
.rel-kr-node__pointer {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: -26px;
|
|
23
|
+
left: -33px;
|
|
24
|
+
width: 27px;
|
|
25
|
+
height: 34px;
|
|
26
|
+
border-left: 1px solid #e9ecf0;
|
|
27
|
+
border-bottom: 1px solid #e9ecf0;
|
|
28
|
+
border-bottom-left-radius: 6px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.rel-kr-node__pointer-first {
|
|
32
|
+
height: 26px;
|
|
33
|
+
top: -20px;
|
|
34
|
+
}
|
|
35
|
+
|
|
20
36
|
.rel-kr-node__name {
|
|
21
37
|
flex: 1;
|
|
22
38
|
margin-right: 40px;
|
|
@@ -9,6 +9,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
|
var _checkbox = _interopRequireDefault(require("../../../checkbox"));
|
|
13
15
|
|
|
14
16
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
@@ -33,7 +35,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
33
35
|
|
|
34
36
|
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; }
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39
|
+
|
|
40
|
+
var precls = 'rel-kr-node';
|
|
37
41
|
|
|
38
42
|
function KrNode(props) {
|
|
39
43
|
var data = props.data,
|
|
@@ -49,7 +53,7 @@ function KrNode(props) {
|
|
|
49
53
|
removeSelected = _useContext.removeSelected;
|
|
50
54
|
|
|
51
55
|
var openKrDrawer = function openKrDrawer() {
|
|
52
|
-
_drawerManager["default"].open(
|
|
56
|
+
_drawerManager["default"].open('krDetail', {
|
|
53
57
|
krId: data.mileStoneId
|
|
54
58
|
}, {
|
|
55
59
|
zIndex: 1350
|
|
@@ -59,7 +63,7 @@ function KrNode(props) {
|
|
|
59
63
|
var onCheckHandler = function onCheckHandler(checked) {
|
|
60
64
|
if (checked) {
|
|
61
65
|
addSelected({
|
|
62
|
-
type:
|
|
66
|
+
type: 'kr',
|
|
63
67
|
workId: data.workId,
|
|
64
68
|
krId: data.mileStoneId,
|
|
65
69
|
id: data.feedId,
|
|
@@ -89,12 +93,14 @@ function KrNode(props) {
|
|
|
89
93
|
id: data.feedId,
|
|
90
94
|
checked: checked
|
|
91
95
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
96
|
+
className: (0, _classnames["default"])("".concat(precls, "__pointer"), _defineProperty({}, "".concat(precls, "__pointer-first"), krIndex === 1))
|
|
97
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
92
98
|
className: "".concat(precls, "__name")
|
|
93
99
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
94
100
|
className: "".concat(precls, "__name-index")
|
|
95
101
|
}, "KR", krIndex), /*#__PURE__*/_react["default"].createElement("span", {
|
|
96
102
|
onClick: openKrDrawer
|
|
97
|
-
}, (0, _tools.htmlDecodeByHtmlRegExp)(data.mileStoneName))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
103
|
+
}, (0, _openData.parseString)((0, _tools.htmlDecodeByHtmlRegExp)(data.mileStoneName)))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
98
104
|
className: "".concat(precls, "__principle")
|
|
99
105
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
100
106
|
text: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
@@ -17,6 +17,22 @@
|
|
|
17
17
|
border: 1px solid #bfc7d5;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
.rel-milestone-node__pointer {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: -26px;
|
|
23
|
+
left: -33px;
|
|
24
|
+
width: 27px;
|
|
25
|
+
height: 34px;
|
|
26
|
+
border-left: 1px solid #e9ecf0;
|
|
27
|
+
border-bottom: 1px solid #e9ecf0;
|
|
28
|
+
border-bottom-left-radius: 6px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.rel-milestone-node__pointer-first {
|
|
32
|
+
height: 26px;
|
|
33
|
+
top: -20px;
|
|
34
|
+
}
|
|
35
|
+
|
|
20
36
|
.rel-milestone-node__name {
|
|
21
37
|
flex: 1;
|
|
22
38
|
margin-right: 40px;
|
|
@@ -35,6 +35,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
35
35
|
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
37
|
|
|
38
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39
|
+
|
|
38
40
|
var precls = "rel-milestone-node";
|
|
39
41
|
|
|
40
42
|
function MileStone(props) {
|
|
@@ -98,6 +100,8 @@ function MileStone(props) {
|
|
|
98
100
|
id: data.mileStoneId,
|
|
99
101
|
checked: checked
|
|
100
102
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
103
|
+
className: (0, _classnames["default"])("".concat(precls, "__pointer"), _defineProperty({}, "".concat(precls, "__pointer-first"), index === 1))
|
|
104
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
101
105
|
className: "".concat(precls, "__name")
|
|
102
106
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
103
107
|
className: (0, _classnames["default"])("tu-icon-licheng-s", "".concat(precls, "__name-icon"))
|
|
@@ -47,7 +47,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
47
47
|
|
|
48
48
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
49
49
|
|
|
50
|
-
var precls =
|
|
50
|
+
var precls = 'rel-okr-node';
|
|
51
51
|
|
|
52
52
|
function ONode(props) {
|
|
53
53
|
var data = props.data,
|
|
@@ -68,14 +68,14 @@ function ONode(props) {
|
|
|
68
68
|
removeSelected = _useContext.removeSelected;
|
|
69
69
|
|
|
70
70
|
var okrTypeIcon = {
|
|
71
|
-
1:
|
|
72
|
-
2:
|
|
73
|
-
3:
|
|
74
|
-
4:
|
|
71
|
+
1: 'tu-icon-liebiao-geren',
|
|
72
|
+
2: 'tu-icon-liebiao-xiashu',
|
|
73
|
+
3: 'tu-icon-gong_si',
|
|
74
|
+
4: 'tu-icon-liebiao-tuandui'
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
var openOkrDrawer = function openOkrDrawer() {
|
|
78
|
-
_drawerManager["default"].open(
|
|
78
|
+
_drawerManager["default"].open('okrDetail', {
|
|
79
79
|
okrId: data.workId
|
|
80
80
|
}, {
|
|
81
81
|
zIndex: 1350
|
|
@@ -85,7 +85,7 @@ function ONode(props) {
|
|
|
85
85
|
var onCheckHandler = function onCheckHandler(checked) {
|
|
86
86
|
if (checked) {
|
|
87
87
|
addSelected({
|
|
88
|
-
type:
|
|
88
|
+
type: 'okr',
|
|
89
89
|
workId: data.workId,
|
|
90
90
|
krId: 0,
|
|
91
91
|
id: data.feedId,
|
|
@@ -119,7 +119,7 @@ function ONode(props) {
|
|
|
119
119
|
className: (0, _classnames["default"])(okrTypeIcon[data.okrType], "".concat(precls, "__okr-type-icon"))
|
|
120
120
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
121
121
|
onClick: openOkrDrawer
|
|
122
|
-
}, (0, _tools.htmlDecodeByHtmlRegExp)(data.workName))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
122
|
+
}, (0, _openData.parseString)((0, _tools.htmlDecodeByHtmlRegExp)(data.workName)))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
123
123
|
className: "".concat(precls, "__principle")
|
|
124
124
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
125
125
|
text: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|