@titaui/pc 1.11.27-beta.8 → 1.11.29
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/avatar/name-avatar/index.css +0 -1
- package/lib/components/avatar/name-avatar/index.js +13 -22
- package/lib/components/avatar/text-avatar/index.css +7 -0
- package/lib/components/avatar/text-avatar/index.js +32 -7
- package/lib/components/button/icon-btn/index.js +17 -8
- package/lib/components/button/rect-btn/index.css +11 -45
- package/lib/components/button/rect-btn/index.js +13 -19
- package/lib/components/change-okr-modal/Item.js +14 -14
- package/lib/components/change-okr-modal/index.js +1 -2
- package/lib/components/create-okr-modal/index.js +1 -3
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/dialog-confirm/index.css +2 -2
- package/lib/components/drawer/headerAction.js +1 -5
- package/lib/components/drawer/headerDrop.js +4 -42
- package/lib/components/drawer/index.css +0 -33
- package/lib/components/drawer/index.js +3 -26
- package/lib/components/drop-selector/index.js +25 -10
- 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/constant.js +33 -32
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +9 -9
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-interview/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +51 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +50 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +65 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +6 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +10 -10
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +13 -13
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +9 -9
- package/lib/components/dynamic/dynamic-item/index.js +50 -32
- 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/{pages/new-okr-list/header/operate-record.js → components/dynamic/dynamic-liking/index.js} +39 -91
- 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 -15
- 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 +77 -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/e-priority/index.js +8 -8
- package/lib/components/eReport/eReportShare/index.js +11 -11
- package/lib/components/form/form-fields/date/index.css +24 -0
- package/lib/components/form/form-fields/date/index.js +102 -0
- package/lib/components/form/form-fields/input/index.js +10 -10
- package/lib/components/form/form-fields/user/index.css +23 -3
- package/lib/components/form/form-fields/user/index.js +18 -8
- package/lib/components/form/form-fields/user/user-input.js +15 -6
- package/lib/components/form/index.js +10 -3
- package/lib/components/grid-layout/sub-employee-okr/person-okr.js +5 -5
- package/lib/components/icon-button-list/index.js +3 -3
- package/lib/components/img-viewer/index.css +3 -3
- package/lib/components/img-viewer/index.js +11 -11
- package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
- package/lib/components/menus/components/menu-tree/index.css +4 -2
- package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
- package/lib/components/menus/export-modules/interview-menus/constant.js +30 -0
- package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +63 -0
- package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
- package/lib/components/menus/export-modules/interview-menus/index.js +128 -0
- package/lib/components/menus/index.js +11 -5
- package/lib/components/nav-top/components/menu/index.js +14 -14
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
- package/lib/components/nav-top/components/user-message/constant.js +1 -0
- package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
- package/lib/components/nav-top/components/user-message/index.js +23 -20
- package/lib/components/nav-top/index.js +4 -8
- package/lib/components/nav-top/request.apis.js +3 -1
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +4 -20
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -9
- package/lib/components/okr-detail/components/header/index.js +3 -10
- package/lib/components/okr-detail/components/header/o-name.js +3 -10
- package/lib/components/okr-detail/components/o-classify.js +1 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +10 -14
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +10 -0
- package/lib/components/okr-detail/detail-header/actions.js +23 -23
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +43 -98
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +38 -0
- package/lib/components/okr-detail/detail-header/index.css +0 -11
- package/lib/components/okr-detail/detail-header/index.js +234 -228
- package/lib/components/okr-detail/index.js +21 -40
- package/lib/components/okr-detail/okr-list/index.js +8 -11
- package/lib/components/okr-detail/request-apis.js +4 -10
- package/lib/components/okr-flow/child-node/index.css +6 -6
- package/lib/components/okr-flow/child-node/work-node.js +21 -21
- package/lib/components/okr-flow/export-modal/index.js +33 -19
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +14 -14
- package/lib/components/okr-flow/okr-map/index.js +5 -5
- package/lib/components/okr-flow/request-apis.js +4 -4
- package/lib/components/okr-flow/root-node/index.js +25 -24
- package/lib/components/okr-flow/utils/index.js +5 -5
- package/lib/components/okr-flow/utils/tree-handler.js +17 -17
- package/lib/components/okr-period-selector/index.js +5 -9
- package/lib/components/okr-period-selector/select-cycle.js +19 -23
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +30 -30
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/pagination/index.css +3 -3
- package/lib/components/pagination/select.css +58 -23
- package/lib/components/period-selector/index.css +3 -3
- package/lib/components/period-selector/index.js +11 -11
- package/lib/components/picker/components/panels/date-panel/date-body.js +118 -0
- package/lib/components/picker/components/panels/date-panel/date-head.js +87 -0
- package/lib/components/picker/components/panels/date-panel/index.css +14 -0
- package/lib/components/picker/components/panels/date-panel/index.js +49 -0
- package/lib/components/picker/components/panels/month-panel/index.css +27 -0
- package/lib/components/picker/components/panels/month-panel/index.js +63 -0
- package/lib/components/picker/components/panels/month-panel/month-body.js +89 -0
- package/lib/components/picker/components/panels/month-panel/month-head.js +47 -0
- package/lib/components/picker/components/panels/panel-body/index.js +53 -0
- package/lib/components/picker/components/panels/panel-head/index.js +48 -0
- package/lib/components/picker/components/panels/year-panel/index.css +23 -0
- package/lib/components/picker/components/panels/year-panel/index.js +65 -0
- package/lib/components/picker/components/panels/year-panel/year-body.js +92 -0
- package/lib/components/picker/components/panels/year-panel/year-head.js +35 -0
- package/lib/components/picker/components/picker-trigger/index.css +57 -0
- package/lib/components/picker/components/picker-trigger/index.js +94 -0
- package/lib/components/picker/context.js +15 -0
- package/lib/components/picker/index.css +121 -0
- package/lib/components/picker/index.js +13 -0
- package/lib/components/picker/picker-panels.js +182 -0
- package/lib/components/picker/picker.js +132 -0
- package/lib/components/picker/type.js +5 -0
- package/lib/components/picker/utils.js +28 -0
- package/lib/components/popup/index.js +4 -4
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
- package/lib/components/radio/index.css +9 -9
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/superset-charts/utils/axios.js +5 -5
- package/lib/components/survey-model/index.css +18 -18
- package/lib/components/survey-model/instance.js +1 -1
- package/lib/components/task-relation-modal/request-api.js +1 -2
- package/lib/components/task-tree/helper.js +61 -0
- package/lib/components/task-tree/images/P1.svg +15 -0
- package/lib/components/task-tree/images/P2.svg +15 -0
- package/lib/components/task-tree/images/P3.svg +15 -0
- package/lib/components/task-tree/images/P4.svg +15 -0
- package/lib/components/task-tree/images/P5.svg +15 -0
- package/lib/components/task-tree/images/arrow.svg +9 -0
- package/lib/components/task-tree/images/empty-131.png +0 -0
- package/lib/components/task-tree/images/followed.svg +33 -0
- package/lib/components/task-tree/images/nice.svg +108 -0
- package/lib/components/task-tree/images/struc12.png +0 -0
- package/lib/components/task-tree/images/struc2.png +0 -0
- package/lib/components/task-tree/images/xialat-s.svg +13 -0
- package/lib/components/task-tree/index.js +22 -0
- package/lib/components/task-tree/mock.js +944 -0
- package/lib/components/task-tree/precls.js +8 -0
- package/lib/components/task-tree/request-apis.js +88 -0
- package/lib/components/task-tree/task-item-node/constant.js +45 -0
- package/lib/components/task-tree/task-item-node/e-empty.js +29 -0
- package/lib/components/task-tree/task-item-node/e-project.js +212 -0
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +94 -0
- package/lib/components/task-tree/task-item-node/e-task.js +426 -0
- package/lib/components/task-tree/task-item-node/get-process-color.js +62 -0
- package/lib/components/task-tree/task-item-node/index.css +289 -0
- package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
- package/lib/components/task-tree/task-tree.css +16 -0
- package/lib/components/task-tree/task-tree.js +49 -0
- package/lib/components/time-picker/index.css +123 -0
- package/lib/components/time-picker/index.js +13 -0
- package/lib/components/time-picker/time-picker-selector.js +138 -0
- package/lib/components/time-picker/time-picker.js +336 -0
- package/lib/components/time-picker/timer-picker-input.js +96 -0
- package/lib/components/time-picker/utils.js +52 -0
- package/lib/components/toast/index.js +3 -5
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/style/index.css +8 -8
- package/lib/index.js +0 -40
- package/lib/pages/aha2021/index.js +5 -1
- package/lib/pages/new-okr-list/header/index.css +0 -45
- package/lib/pages/new-okr-list/header/index.js +16 -38
- package/lib/pages/new-okr-list/index.js +1 -3
- package/lib/pages/new-okr-list/list/index.js +2 -19
- package/lib/pages/new-okr-list/request-api.js +2 -8
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +24 -24
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +31 -31
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +2 -2
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +11 -11
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +8 -8
- package/lib/pages/okr-map/number-select/index.js +2 -2
- package/lib/pages/okr-map/unsupport-ie/index.js +5 -3
- package/lib/utils/auth.js +6 -6
- package/lib/utils/bs-global.js +12 -12
- package/lib/utils/format-time.js +1 -8
- package/lib/utils/hooks.js +72 -0
- package/lib/utils/open-data.js +27 -31
- package/package.json +6 -3
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -223
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -31
- package/.prettierrc.js +0 -90
- package/.vscode/settings.json +0 -5
- package/lib/components/okr-detail/detail-header/constant.js +0 -53
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +0 -55
- package/lib/components/okr-detail/helper.js +0 -108
- package/lib/components/textarea/index.css +0 -142
- package/lib/components/textarea/index.js +0 -259
- package/lib/pages/new-okr-list/header/common.js +0 -52
package/lib/utils/open-data.js
CHANGED
|
@@ -22,12 +22,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
22
22
|
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; }
|
|
23
23
|
|
|
24
24
|
var WX_SOURCE = 860;
|
|
25
|
-
var WX_UA_STR =
|
|
25
|
+
var WX_UA_STR = 'micromessenger';
|
|
26
26
|
var FEISHU_SOURCE = 862;
|
|
27
27
|
var DINGTALK_SOURCE = 861;
|
|
28
28
|
|
|
29
29
|
var getSource = function getSource() {
|
|
30
|
-
return (0, _bsGlobal.getBSGlobal)(
|
|
30
|
+
return (0, _bsGlobal.getBSGlobal)('tenantInfo').Source;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
exports.getSource = getSource;
|
|
@@ -51,10 +51,10 @@ var getUA = function getUA() {
|
|
|
51
51
|
var getOpenId = function getOpenId(id, type) {
|
|
52
52
|
var openIds;
|
|
53
53
|
|
|
54
|
-
if (type ==
|
|
55
|
-
openIds = (0, _bsGlobal.getBSGlobal)(
|
|
56
|
-
} else if (type ==
|
|
57
|
-
openIds = (0, _bsGlobal.getBSGlobal)(
|
|
54
|
+
if (type == 'userName') {
|
|
55
|
+
openIds = (0, _bsGlobal.getBSGlobal)('openIds');
|
|
56
|
+
} else if (type == 'departmentName') {
|
|
57
|
+
openIds = (0, _bsGlobal.getBSGlobal)('openDepartmentIds');
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
return openIds && openIds[id];
|
|
@@ -79,11 +79,11 @@ function openData(p) {
|
|
|
79
79
|
});
|
|
80
80
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
81
|
style: {
|
|
82
|
-
display:
|
|
83
|
-
position:
|
|
84
|
-
overflow:
|
|
85
|
-
textOverflow:
|
|
86
|
-
verticalAlign:
|
|
82
|
+
display: 'inline-block',
|
|
83
|
+
position: 'relative',
|
|
84
|
+
overflow: 'hidden',
|
|
85
|
+
textOverflow: 'ellipsis',
|
|
86
|
+
verticalAlign: 'middle'
|
|
87
87
|
}
|
|
88
88
|
}, /*#__PURE__*/_react["default"].createElement("ww-open-data", {
|
|
89
89
|
ref: ref,
|
|
@@ -91,7 +91,7 @@ function openData(p) {
|
|
|
91
91
|
openid: openId
|
|
92
92
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
93
|
style: {
|
|
94
|
-
position:
|
|
94
|
+
position: 'absolute',
|
|
95
95
|
top: 0,
|
|
96
96
|
left: 0,
|
|
97
97
|
right: 0,
|
|
@@ -111,7 +111,7 @@ var getOpenData = openData();
|
|
|
111
111
|
|
|
112
112
|
var OpenUserName = function OpenUserName(p) {
|
|
113
113
|
return getOpenData(_objectSpread(_objectSpread({}, p), {}, {
|
|
114
|
-
type:
|
|
114
|
+
type: 'userName'
|
|
115
115
|
}));
|
|
116
116
|
};
|
|
117
117
|
|
|
@@ -119,7 +119,7 @@ exports.OpenUserName = OpenUserName;
|
|
|
119
119
|
|
|
120
120
|
var OpenDepartmentName = function OpenDepartmentName(p) {
|
|
121
121
|
return getOpenData(_objectSpread(_objectSpread({}, p), {}, {
|
|
122
|
-
type:
|
|
122
|
+
type: 'departmentName'
|
|
123
123
|
}));
|
|
124
124
|
};
|
|
125
125
|
|
|
@@ -130,22 +130,22 @@ var openDataMap = {
|
|
|
130
130
|
}; // name:'wx'|'dd'|'feishu',type:'source'|'env'|'all' = 'all'
|
|
131
131
|
|
|
132
132
|
var isPlatform = function isPlatform(name) {
|
|
133
|
-
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
133
|
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'all';
|
|
134
134
|
|
|
135
135
|
switch (name) {
|
|
136
|
-
case
|
|
136
|
+
case 'wx':
|
|
137
137
|
{
|
|
138
|
-
if (type ==
|
|
139
|
-
if (type ==
|
|
138
|
+
if (type == 'source') return getSource() == WX_SOURCE;
|
|
139
|
+
if (type == 'env') return getUA().includes(WX_UA_STR);
|
|
140
140
|
return getSource() == WX_SOURCE || getUA().includes(WX_UA_STR);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
case
|
|
143
|
+
case 'dd':
|
|
144
144
|
{
|
|
145
145
|
return getSource() == DINGTALK_SOURCE;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
case
|
|
148
|
+
case 'feishu':
|
|
149
149
|
{
|
|
150
150
|
return getSource() == FEISHU_SOURCE;
|
|
151
151
|
}
|
|
@@ -164,7 +164,7 @@ var parseTag = function parseTag(str) {
|
|
|
164
164
|
// return <span dangerouslySetInnerHTML={{ '__html': str }} />;
|
|
165
165
|
|
|
166
166
|
while (matchStr != null) {
|
|
167
|
-
var OpenDataCompoent = matchStr[1] ==
|
|
167
|
+
var OpenDataCompoent = matchStr[1] == 'userId' ? OpenUserName : OpenDepartmentName;
|
|
168
168
|
|
|
169
169
|
if (!OpenDataCompoent) {
|
|
170
170
|
openDatas.push( /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -178,7 +178,7 @@ var parseTag = function parseTag(str) {
|
|
|
178
178
|
} else {
|
|
179
179
|
openDatas.push( /*#__PURE__*/_react["default"].createElement("span", {
|
|
180
180
|
style: {
|
|
181
|
-
color:
|
|
181
|
+
color: '#1890ff',
|
|
182
182
|
margin: '0 4px'
|
|
183
183
|
},
|
|
184
184
|
onClick: function onClick(e) {
|
|
@@ -214,7 +214,7 @@ var parseString = function parseString(str) {
|
|
|
214
214
|
// @ts-ignore
|
|
215
215
|
var source = window.BSGlobal.tenantInfo.Source;
|
|
216
216
|
var ua = navigator.userAgent.toLowerCase();
|
|
217
|
-
if (source != 860 && ua.indexOf(
|
|
217
|
+
if (source != 860 && ua.indexOf('micromessenger') == -1) return /*#__PURE__*/_react["default"].createElement("span", {
|
|
218
218
|
dangerouslySetInnerHTML: {
|
|
219
219
|
__html: str
|
|
220
220
|
}
|
|
@@ -269,7 +269,7 @@ var parseHtmlAndTextTag = function parseHtmlAndTextTag(str) {
|
|
|
269
269
|
while (matchStr != null) {
|
|
270
270
|
if (matchStr) {
|
|
271
271
|
hasMatchStr = true;
|
|
272
|
-
var OpenDataCompoent = matchStr[1] ==
|
|
272
|
+
var OpenDataCompoent = matchStr[1] == 'userId' ? OpenUserName : OpenDepartmentName;
|
|
273
273
|
|
|
274
274
|
if (!OpenDataCompoent) {
|
|
275
275
|
openDatas.push( /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -283,7 +283,7 @@ var parseHtmlAndTextTag = function parseHtmlAndTextTag(str) {
|
|
|
283
283
|
} else {
|
|
284
284
|
openDatas.push( /*#__PURE__*/_react["default"].createElement("span", {
|
|
285
285
|
style: {
|
|
286
|
-
color:
|
|
286
|
+
color: '#1890ff',
|
|
287
287
|
margin: '0 4px'
|
|
288
288
|
},
|
|
289
289
|
onClick: function onClick(e) {
|
|
@@ -348,7 +348,7 @@ var parseHtmlAndTextTag = function parseHtmlAndTextTag(str) {
|
|
|
348
348
|
return item;
|
|
349
349
|
}
|
|
350
350
|
}).filter(function (item) {
|
|
351
|
-
return item !==
|
|
351
|
+
return item !== '';
|
|
352
352
|
});
|
|
353
353
|
};
|
|
354
354
|
|
|
@@ -356,10 +356,6 @@ exports.parseHtmlAndTextTag = parseHtmlAndTextTag;
|
|
|
356
356
|
var _default = {
|
|
357
357
|
OpenUserName: OpenUserName,
|
|
358
358
|
OpenDepartmentName: OpenDepartmentName,
|
|
359
|
-
isWechat: isWechat
|
|
360
|
-
isPlatform: isPlatform,
|
|
361
|
-
parseString: parseString,
|
|
362
|
-
parseTag: parseTag,
|
|
363
|
-
parseHtmlAndTextTag: parseHtmlAndTextTag
|
|
359
|
+
isWechat: isWechat
|
|
364
360
|
};
|
|
365
361
|
exports["default"] = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@titaui/pc",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.29",
|
|
4
4
|
"nameCN": "",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"react-transition-group": "4.4.2",
|
|
145
145
|
"resize-observer-polyfill": "1.5.1",
|
|
146
146
|
"slick-carousel": "1.8.1",
|
|
147
|
-
"tita-ui": "1.2.
|
|
147
|
+
"tita-ui": "1.2.52",
|
|
148
148
|
"url-parse": "1.5.1",
|
|
149
149
|
"uuid": "3.1.0",
|
|
150
150
|
"viewerjs": "1.10.1",
|
|
@@ -155,5 +155,8 @@
|
|
|
155
155
|
"pretty-quick --staged",
|
|
156
156
|
"eslint --fix"
|
|
157
157
|
]
|
|
158
|
-
}
|
|
158
|
+
},
|
|
159
|
+
"files": [
|
|
160
|
+
"lib/"
|
|
161
|
+
]
|
|
159
162
|
}
|
package/.eslintignore
DELETED
package/.eslintrc.js
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es2021: true,
|
|
5
|
-
},
|
|
6
|
-
extends: ['plugin:react/recommended', 'airbnb'],
|
|
7
|
-
parser: '@typescript-eslint/parser',
|
|
8
|
-
parserOptions: {
|
|
9
|
-
ecmaFeatures: {
|
|
10
|
-
jsx: true,
|
|
11
|
-
},
|
|
12
|
-
ecmaVersion: 'latest',
|
|
13
|
-
sourceType: 'module',
|
|
14
|
-
},
|
|
15
|
-
plugins: ['react', '@typescript-eslint'],
|
|
16
|
-
rules: {
|
|
17
|
-
quotes: [2, 'double'],
|
|
18
|
-
//强制不使用分号结尾
|
|
19
|
-
semi: [2, 'always'],
|
|
20
|
-
"import/no-extraneous-dependencies": 1,
|
|
21
|
-
"keyword-spacing": 2,
|
|
22
|
-
"comma-dangle": 2,
|
|
23
|
-
"operator-linebreak": 2,
|
|
24
|
-
"prefer-template": 2,
|
|
25
|
-
"radix": 2,
|
|
26
|
-
"eqeqeq": 2,
|
|
27
|
-
"spaced-comment": 2,
|
|
28
|
-
"prefer-object-spread": 2,
|
|
29
|
-
'no-unused-expressions': 'off',
|
|
30
|
-
'@typescript-eslint/no-unused-expressions': 2,
|
|
31
|
-
"no-plusplus": 2,
|
|
32
|
-
"no-multiple-empty-lines": 2,
|
|
33
|
-
"arrow-body-style": 2,
|
|
34
|
-
"array-callback-return": 2,
|
|
35
|
-
"prefer-const": 2,
|
|
36
|
-
"no-restricted-globals": 2,
|
|
37
|
-
"guard-for-in": 2,
|
|
38
|
-
"no-restricted-syntax": 2,
|
|
39
|
-
"prefer-destructuring": 1,
|
|
40
|
-
"no-param-reassign": 2,
|
|
41
|
-
"import/extensions": 0,
|
|
42
|
-
"import/no-unresolved": 1,
|
|
43
|
-
"eol-last": 2,
|
|
44
|
-
"no-restricted-properties": 2,
|
|
45
|
-
"prefer-exponentiation-operator": 2,
|
|
46
|
-
"no-mixed-operators": 2,
|
|
47
|
-
"no-empty": 2,
|
|
48
|
-
"one-var-declaration-per-line": 2,
|
|
49
|
-
"indent": 2,
|
|
50
|
-
"no-var": 2,
|
|
51
|
-
"vars-on-top": 2,
|
|
52
|
-
"one-var": 2,
|
|
53
|
-
"brace-style": 2,
|
|
54
|
-
"no-else-return": 2,
|
|
55
|
-
"arrow-parens": 2,
|
|
56
|
-
"no-underscore-dangle": 2,
|
|
57
|
-
"no-shadow": 1,
|
|
58
|
-
"no-undef": 2,
|
|
59
|
-
"consistent-return": 2,
|
|
60
|
-
"react/jsx-curly-brace-presence": 2,
|
|
61
|
-
"react/jsx-no-useless-fragment": 2,
|
|
62
|
-
"react/jsx-filename-extension": 0,
|
|
63
|
-
"react/prop-types": 2,
|
|
64
|
-
"react/function-component-definition": 0,
|
|
65
|
-
"react/no-danger": 0,
|
|
66
|
-
"react/self-closing-comp": 2,
|
|
67
|
-
"no-useless-escape": 2,
|
|
68
|
-
"curly": 2,
|
|
69
|
-
"nonblock-statement-body-position": 2,
|
|
70
|
-
"react/jsx-one-expression-per-line": 2,
|
|
71
|
-
"jsx-a11y/no-static-element-interactions": 0,
|
|
72
|
-
"jsx-a11y/click-events-have-key-events": 0,
|
|
73
|
-
"no-trailing-spaces": 2,
|
|
74
|
-
"no-unused-vars": 0,
|
|
75
|
-
"@typescript-eslint/no-unused-vars": 2,
|
|
76
|
-
"default-case": 2,
|
|
77
|
-
"implicit-arrow-linebreak": 2,
|
|
78
|
-
"react/jsx-closing-bracket-location": 2,
|
|
79
|
-
"quote-props": 2,
|
|
80
|
-
"react/destructuring-assignment": 2,
|
|
81
|
-
"object-curly-newline": 2,
|
|
82
|
-
"key-spacing": 2,
|
|
83
|
-
"comma-spacing": 2,
|
|
84
|
-
"object-curly-spacing": 2,
|
|
85
|
-
"no-dupe-keys": 2,
|
|
86
|
-
"padded-blocks": 2,
|
|
87
|
-
"space-infix-ops": 2,
|
|
88
|
-
"space-in-parens": 2,
|
|
89
|
-
"import/prefer-default-export": 2,
|
|
90
|
-
"import/newline-after-import": 2,
|
|
91
|
-
"space-before-blocks": 2,
|
|
92
|
-
"space-before-function-paren": 2,
|
|
93
|
-
"dot-notation": 2,
|
|
94
|
-
"func-names": 2,
|
|
95
|
-
"prefer-arrow-callback": 2,
|
|
96
|
-
"arrow-spacing": 2,
|
|
97
|
-
"no-nested-ternary": 2,
|
|
98
|
-
"max-len": ["error", { "code": 200 }],
|
|
99
|
-
"lines-between-class-members": 2,
|
|
100
|
-
"no-tabs": 2,
|
|
101
|
-
"react/jsx-indent": 0,
|
|
102
|
-
"react/jsx-closing-tag-location": 2,
|
|
103
|
-
"react/jsx-tag-spacing": 2,
|
|
104
|
-
"react/jsx-indent-props": 2,
|
|
105
|
-
"no-useless-return": 2,
|
|
106
|
-
"no-use-before-define": 2,
|
|
107
|
-
"react/jsx-fragments": 2,
|
|
108
|
-
"react/jsx-wrap-multilines": 2,
|
|
109
|
-
"react/jsx-boolean-value": 2,
|
|
110
|
-
"import/no-duplicates": 2,
|
|
111
|
-
"react/react-in-jsx-scope": 2,
|
|
112
|
-
"max-classes-per-file": 2,
|
|
113
|
-
"react/jsx-props-no-spreading": 1,
|
|
114
|
-
"react/jsx-props-no-multi-spaces": 2,
|
|
115
|
-
"react/jsx-first-prop-new-line": 2,
|
|
116
|
-
"no-multi-spaces": 2,
|
|
117
|
-
"react/jsx-curly-newline": 2,
|
|
118
|
-
"no-unneeded-ternary": 2,
|
|
119
|
-
"no-empty-pattern": 2,
|
|
120
|
-
"no-case-declarations": 2,
|
|
121
|
-
"import/order": 2,
|
|
122
|
-
"jsx-quotes": 2,
|
|
123
|
-
"react/jsx-curly-spacing": 2,
|
|
124
|
-
"no-extra-semi": 2,
|
|
125
|
-
"block-spacing": 2,
|
|
126
|
-
"react/require-default-props": 2,
|
|
127
|
-
"react/jsx-no-constructed-context-values": 1,
|
|
128
|
-
"new-cap": 2,
|
|
129
|
-
"function-paren-newline": 2,
|
|
130
|
-
"global-require": 2,
|
|
131
|
-
"jsx-a11y/alt-text": 2,
|
|
132
|
-
"react/no-array-index-key": 2,
|
|
133
|
-
"react/no-unstable-nested-components": 2,
|
|
134
|
-
"object-shorthand": 2,
|
|
135
|
-
"operator-assignment": 2,
|
|
136
|
-
"no-console": 2,
|
|
137
|
-
"react/jsx-max-props-per-line": 2,
|
|
138
|
-
"import/no-dynamic-require": 2,
|
|
139
|
-
"no-unreachable": 2,
|
|
140
|
-
"prefer-promise-reject-errors": 2,
|
|
141
|
-
"jsx-a11y/anchor-is-valid": 2,
|
|
142
|
-
"jsx-a11y/no-noninteractive-element-interactions": 2,
|
|
143
|
-
"no-lonely-if": 2,
|
|
144
|
-
"react/jsx-no-target-blank": 2,
|
|
145
|
-
"react/jsx-no-undef": 2,
|
|
146
|
-
"linebreak-style": 2,
|
|
147
|
-
"react/no-string-refs": 2,
|
|
148
|
-
"react/no-unused-class-component-methods": 2,
|
|
149
|
-
"react/static-property-placement": 2,
|
|
150
|
-
"camelcase": 2,
|
|
151
|
-
"import/first": 2,
|
|
152
|
-
"import/no-named-default": 2,
|
|
153
|
-
"no-extra-boolean-cast": 2,
|
|
154
|
-
"react/no-unused-prop-types": 2,
|
|
155
|
-
"no-cond-assign": 2,
|
|
156
|
-
"no-async-promise-executor": 2,
|
|
157
|
-
"react/no-find-dom-node": 2,
|
|
158
|
-
"semi-spacing": 2,
|
|
159
|
-
"no-eval": 2,
|
|
160
|
-
"no-return-assign": 1,
|
|
161
|
-
"react/sort-comp": 2,
|
|
162
|
-
"jsx-a11y/anchor-has-content": 2,
|
|
163
|
-
"default-param-last": 2,
|
|
164
|
-
"no-useless-computed-key": 2,
|
|
165
|
-
"no-promise-executor-return": 2,
|
|
166
|
-
"object-property-newline": 2,
|
|
167
|
-
"no-undef-init": 2,
|
|
168
|
-
"jsx-a11y/mouse-events-have-key-events": 2,
|
|
169
|
-
"no-throw-literal": 2,
|
|
170
|
-
"switch-colon-spacing": 2,
|
|
171
|
-
"class-methods-use-this": 2,
|
|
172
|
-
"react/no-access-state-in-setstate": 2,
|
|
173
|
-
"no-confusing-arrow": 2,
|
|
174
|
-
"react/no-deprecated": 1,
|
|
175
|
-
"no-mixed-spaces-and-tabs": 2,
|
|
176
|
-
"array-bracket-spacing": 2,
|
|
177
|
-
"import/no-useless-path-segments": 2,
|
|
178
|
-
"no-prototype-builtins": 2,
|
|
179
|
-
"react/state-in-constructor": 2,
|
|
180
|
-
"no-debugger": 2,
|
|
181
|
-
"space-unary-ops": 2,
|
|
182
|
-
"no-sequences": 2,
|
|
183
|
-
"no-fallthrough": 2,
|
|
184
|
-
"comma-style": 2,
|
|
185
|
-
"no-useless-constructor": 2,
|
|
186
|
-
"prefer-rest-params": 2,
|
|
187
|
-
"no-bitwise": 2,
|
|
188
|
-
"no-new": 2,
|
|
189
|
-
"react/forbid-prop-types": 2,
|
|
190
|
-
"jsx-a11y/label-has-associated-control": 2,
|
|
191
|
-
"function-call-argument-newline": 2,
|
|
192
|
-
"react/button-has-type": 2,
|
|
193
|
-
"no-constant-condition": 2,
|
|
194
|
-
"react/no-unknown-property": 2,
|
|
195
|
-
"react/prefer-stateless-function": 2,
|
|
196
|
-
"react/default-props-match-prop-types": 2,
|
|
197
|
-
"no-useless-catch": 2,
|
|
198
|
-
"react/jsx-no-duplicate-props": 2,
|
|
199
|
-
"import/no-named-as-default-member": 2,
|
|
200
|
-
"react/no-unused-state": 2,
|
|
201
|
-
"react/no-did-update-set-state": 2,
|
|
202
|
-
"no-void": 2,
|
|
203
|
-
"no-redeclare": 2,
|
|
204
|
-
"jsx-a11y/no-autofocus": 2,
|
|
205
|
-
"no-self-assign": 2,
|
|
206
|
-
"no-empty-function": 2,
|
|
207
|
-
"no-continue": 2,
|
|
208
|
-
"no-irregular-whitespace": 2,
|
|
209
|
-
"no-control-regex": 2,
|
|
210
|
-
"no-script-url": 2,
|
|
211
|
-
"new-parens": 2,
|
|
212
|
-
"import/named": 2,
|
|
213
|
-
"react/no-children-prop": 2,
|
|
214
|
-
"react/no-arrow-function-lifecycle": 2,
|
|
215
|
-
"react/jsx-no-bind": 2,
|
|
216
|
-
"prefer-spread": 2,
|
|
217
|
-
"no-lone-blocks": 2,
|
|
218
|
-
"no-unsafe-negation": 2,
|
|
219
|
-
"import/no-mutable-exports": 2,
|
|
220
|
-
"valid-typeof": 2,
|
|
221
|
-
"no-alert": 2,
|
|
222
|
-
},
|
|
223
|
-
}
|
package/.husky/pre-commit
DELETED
package/.prettierignore
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
.husky
|
|
2
|
-
|
|
3
|
-
public
|
|
4
|
-
|
|
5
|
-
node_modules
|
|
6
|
-
|
|
7
|
-
package.json
|
|
8
|
-
|
|
9
|
-
packagage-lock.json
|
|
10
|
-
|
|
11
|
-
README.node_modules
|
|
12
|
-
|
|
13
|
-
yarn.lock
|
|
14
|
-
|
|
15
|
-
.scripts
|
|
16
|
-
|
|
17
|
-
.storybook
|
|
18
|
-
|
|
19
|
-
.vscode
|
|
20
|
-
|
|
21
|
-
lib
|
|
22
|
-
|
|
23
|
-
stories
|
|
24
|
-
|
|
25
|
-
# *.js
|
|
26
|
-
|
|
27
|
-
# *.jsx
|
|
28
|
-
|
|
29
|
-
# *.ts
|
|
30
|
-
|
|
31
|
-
# *.tsx
|
package/.prettierrc.js
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// 1.一行代码的最大字符数,默认是80(printWidth: <int>)
|
|
3
|
-
printWidth: 80,
|
|
4
|
-
// 2.tab宽度为2空格(tabWidth: <int>)
|
|
5
|
-
tabWidth: 2,
|
|
6
|
-
// 3.是否使用tab来缩进,我们使用空格(useTabs: <bool>)
|
|
7
|
-
useTabs: false,
|
|
8
|
-
// 4.结尾是否添加分号,false的情况下只会在一些导致ASI错误的其工况下在开头加分号,我选择无分号结尾的风格(semi: <bool>)
|
|
9
|
-
semi: false,
|
|
10
|
-
// 5.使用单引号(singleQuote: <bool>)
|
|
11
|
-
singleQuote: true,
|
|
12
|
-
// 6.object对象中key值是否加引号(quoteProps: "<as-needed|consistent|preserve>")as-needed只有在需求要的情况下加引号,consistent是有一个需要引号就统一加,preserve是保留用户输入的引号
|
|
13
|
-
quoteProps: 'as-needed',
|
|
14
|
-
// 7.在jsx文件中的引号需要单独设置(jsxSingleQuote: <bool>)
|
|
15
|
-
jsxSingleQuote: false,
|
|
16
|
-
// 8.尾部逗号设置,es5是尾部逗号兼容es5,none就是没有尾部逗号,all是指所有可能的情况,需要node8和es2017以上的环境。(trailingComma: "<es5|none|all>")
|
|
17
|
-
trailingComma: 'all',
|
|
18
|
-
// 9.object对象里面的key和value值和括号间的空格(bracketSpacing: <bool>)
|
|
19
|
-
bracketSpacing: true,
|
|
20
|
-
// 10.jsx标签多行属性写法时,尖括号是否另起一行(jsxBracketSameLine: <bool>)
|
|
21
|
-
jsxBracketSameLine: false,
|
|
22
|
-
// 11.箭头函数单个参数的情况是否省略括号,默认always是总是带括号(arrowParens: "<always|avoid>")
|
|
23
|
-
arrowParens: 'always',
|
|
24
|
-
// 12.range是format执行的范围,可以选执行一个文件的一部分,默认的设置是整个文件(rangeStart: <int> rangeEnd: <int>)
|
|
25
|
-
rangeStart: 0,
|
|
26
|
-
rangeEnd: Infinity,
|
|
27
|
-
// 18. vue script和style标签中是否缩进,开启可能会破坏编辑器的代码折叠
|
|
28
|
-
vueIndentScriptAndStyle: false,
|
|
29
|
-
// 19. endOfLine: "<lf|crlf|cr|auto>" 行尾换行符,默认是lf,
|
|
30
|
-
endOfLine: 'lf',
|
|
31
|
-
// 20.embeddedLanguageFormatting: "off",默认是auto,控制被引号包裹的代码是否进行格式化
|
|
32
|
-
embeddedLanguageFormatting: 'off',
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// 14. requirePragma: <bool>,格式化有特定开头编译指示的文件 比如下面两种
|
|
36
|
-
/**
|
|
37
|
-
* @prettier
|
|
38
|
-
*/
|
|
39
|
-
// or
|
|
40
|
-
/**
|
|
41
|
-
* @format
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
// 15.insertPragma: <bool> 自当插入pragma到已经完成的format的文件开头
|
|
45
|
-
|
|
46
|
-
// 16. proseWrap: "<always|never|preserve>" 文章换行,默认情况下会对你的markdown文件换行进行format会控制在printwidth以内
|
|
47
|
-
|
|
48
|
-
// 13. 指定parser,因为pretter会自动选择,所以一般不用指定(parser: "<string>" parser: require("./my-parser"))
|
|
49
|
-
// "babel" (via @babel/parser) Named "babylon" until v1.16.0
|
|
50
|
-
// "babel-flow" (same as "babel" but enables Flow parsing explicitly to avoid ambiguity) First available in v1.16.0
|
|
51
|
-
// "babel-ts" (similar to "typescript" but uses Babel and its TypeScript plugin) First available in v2.0.0
|
|
52
|
-
// "flow" (via flow-parser)
|
|
53
|
-
// "typescript" (via @typescript-eslint/typescript-estree) First available in v1.4.0
|
|
54
|
-
// "espree" (via espree) First available in v2.2.0
|
|
55
|
-
// "meriyah" (via meriyah) First available in v2.2.0
|
|
56
|
-
// "css" (via postcss-scss and postcss-less, autodetects which to use) First available in v1.7.1
|
|
57
|
-
// "scss" (same parsers as "css", prefers postcss-scss) First available in v1.7.1
|
|
58
|
-
// "less" (same parsers as "css", prefers postcss-less) First available in v1.7.1
|
|
59
|
-
// "json" (via @babel/parser parseExpression) First available in v1.5.0
|
|
60
|
-
// "json5" (same parser as "json", but outputs as json5) First available in v1.13.0
|
|
61
|
-
// "json-stringify" (same parser as "json", but outputs like JSON.stringify) First available in v1.13.0
|
|
62
|
-
// "graphql" (via graphql/language) First available in v1.5.0
|
|
63
|
-
// "markdown" (via remark-parse) First available in v1.8.0
|
|
64
|
-
// "mdx" (via remark-parse and @mdx-js/mdx) First available in v1.15.0
|
|
65
|
-
// "html" (via angular-html-parser) First available in 1.15.0
|
|
66
|
-
// "vue" (same parser as "html", but also formats vue-specific syntax) First available in 1.10.0
|
|
67
|
-
// "angular" (same parser as "html", but also formats angular-specific syntax via angular-estree-parser) First available in 1.15.0
|
|
68
|
-
// "lwc" (same parser as "html", but also formats LWC-specific syntax for unquoted template attributes) First available in 1.17.0
|
|
69
|
-
// "yaml" (via yaml and yaml-unist-parser) First available in 1.14.0
|
|
70
|
-
|
|
71
|
-
// 17. htmlWhitespaceSensitivity: "<css|strict|ignore>" html中的空格敏感性
|
|
72
|
-
|
|
73
|
-
// 针对不同文件或目录设置不同配置的方法,json格式例子
|
|
74
|
-
// {
|
|
75
|
-
// "semi": false,
|
|
76
|
-
// "overrides": [
|
|
77
|
-
// {
|
|
78
|
-
// "files": "*.test.js",
|
|
79
|
-
// "options": {
|
|
80
|
-
// "semi": true
|
|
81
|
-
// }
|
|
82
|
-
// },
|
|
83
|
-
// {
|
|
84
|
-
// "files": ["*.html", "legacy/**/*.js"],
|
|
85
|
-
// "options": {
|
|
86
|
-
// "tabWidth": 4
|
|
87
|
-
// }
|
|
88
|
-
// }
|
|
89
|
-
// ]
|
|
90
|
-
// }
|
package/.vscode/settings.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getApproveStatusTextMap = exports.ApproveStatusColor = exports.ApproveStatus = void 0;
|
|
7
|
-
|
|
8
|
-
var _getLocale = require("../../../utils/getLocale");
|
|
9
|
-
|
|
10
|
-
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; }
|
|
11
|
-
|
|
12
|
-
var ApproveStatus;
|
|
13
|
-
exports.ApproveStatus = ApproveStatus;
|
|
14
|
-
|
|
15
|
-
(function (ApproveStatus) {
|
|
16
|
-
ApproveStatus[ApproveStatus["None"] = 0] = "None";
|
|
17
|
-
ApproveStatus[ApproveStatus["WaitCommit"] = 6] = "WaitCommit";
|
|
18
|
-
ApproveStatus[ApproveStatus["Rejected"] = 3] = "Rejected";
|
|
19
|
-
ApproveStatus[ApproveStatus["UnderApproval"] = 1] = "UnderApproval";
|
|
20
|
-
ApproveStatus[ApproveStatus["ApproveAgree"] = 2] = "ApproveAgree";
|
|
21
|
-
ApproveStatus[ApproveStatus["WithDraw"] = 4] = "WithDraw";
|
|
22
|
-
ApproveStatus[ApproveStatus["Done"] = 5] = "Done";
|
|
23
|
-
})(ApproveStatus || (exports.ApproveStatus = ApproveStatus = {}));
|
|
24
|
-
|
|
25
|
-
var getApproveStatusTextMap = function getApproveStatusTextMap(status) {
|
|
26
|
-
var _ApproveStatusTextMap;
|
|
27
|
-
|
|
28
|
-
var ApproveStatusTextMap = (_ApproveStatusTextMap = {}, _defineProperty(_ApproveStatusTextMap, ApproveStatus.WaitCommit, (0, _getLocale.getLocale)('OKR_MyO_Tobesubmitted')), _defineProperty(_ApproveStatusTextMap, ApproveStatus.Rejected, (0, _getLocale.getLocale)('OKR_MyO_Tobesubmitted')), _defineProperty(_ApproveStatusTextMap, ApproveStatus.UnderApproval, (0, _getLocale.getLocale)('Pro_detail_Approval')), _defineProperty(_ApproveStatusTextMap, ApproveStatus.ApproveAgree, ''), _defineProperty(_ApproveStatusTextMap, ApproveStatus.WithDraw, ''), _defineProperty(_ApproveStatusTextMap, ApproveStatus.None, ''), _defineProperty(_ApproveStatusTextMap, ApproveStatus.Done, ''), _ApproveStatusTextMap);
|
|
29
|
-
return ApproveStatusTextMap[status];
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
exports.getApproveStatusTextMap = getApproveStatusTextMap;
|
|
33
|
-
|
|
34
|
-
var ApproveStatusColor = function ApproveStatusColor(status) {
|
|
35
|
-
var _ApprovalStatusColorM;
|
|
36
|
-
|
|
37
|
-
var ApprovalStatusColorMap = (_ApprovalStatusColorM = {}, _defineProperty(_ApprovalStatusColorM, ApproveStatus.WaitCommit, {
|
|
38
|
-
color: '#F0A326',
|
|
39
|
-
bgColor: 'rgba(240, 163, 38, 0.1)'
|
|
40
|
-
}), _defineProperty(_ApprovalStatusColorM, ApproveStatus.Rejected, {
|
|
41
|
-
color: '#F0A326',
|
|
42
|
-
bgColor: 'rgba(240, 163, 38, 0.1)'
|
|
43
|
-
}), _defineProperty(_ApprovalStatusColorM, ApproveStatus.UnderApproval, {
|
|
44
|
-
color: '#2879FF',
|
|
45
|
-
bgColor: 'rgba(40, 121, 255, 0.1)'
|
|
46
|
-
}), _defineProperty(_ApprovalStatusColorM, ApproveStatus.ApproveAgree, {
|
|
47
|
-
color: '#ffffff',
|
|
48
|
-
bgColor: '#ffffff'
|
|
49
|
-
}), _ApprovalStatusColorM);
|
|
50
|
-
return ApprovalStatusColorMap[status];
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
exports.ApproveStatusColor = ApproveStatusColor;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
.okr-detail-delete-confirm__option {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
display: flex;
|
|
4
|
-
margin-top: 10px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.okr-detail-delete-confirm__option-text {
|
|
8
|
-
font-size: 14px;
|
|
9
|
-
color: #3F4755;
|
|
10
|
-
line-height: 22px;
|
|
11
|
-
margin-left: 6px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.okr-detail-delete-confirm__option-text:hover {
|
|
15
|
-
color: #2879ff;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.okr-detail-delete-confirm__icon {
|
|
19
|
-
font-size: 12px;
|
|
20
|
-
color: #89919f;
|
|
21
|
-
vertical-align: middle;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.okr-detail-delete-confirm__icon.tu-icon-singlebox-have, .okr-detail-delete-confirm__icon.tu-icon-singlebox-avtive {
|
|
25
|
-
margin-top: 4px;
|
|
26
|
-
font-size: 16px;
|
|
27
|
-
color: #2879ff;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.okr-detail-delete-confirm__icon.tu-icon-warning {
|
|
31
|
-
font-size: 14px;
|
|
32
|
-
color: #acb7bf;
|
|
33
|
-
margin-left: 4px;
|
|
34
|
-
vertical-align: text-top;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.isApprovalDisabled {
|
|
38
|
-
margin-bottom: 0;
|
|
39
|
-
padding: 5px 24px;
|
|
40
|
-
font-size: 14px;
|
|
41
|
-
line-height: 22px;
|
|
42
|
-
transition: all .3s ease-in;
|
|
43
|
-
color: #BFC7D5;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
white-space: nowrap;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.isApprovalDisabled .options-icon {
|
|
51
|
-
margin-right: 12px;
|
|
52
|
-
font-size: 14px;
|
|
53
|
-
transition: all .3s ease-in;
|
|
54
|
-
color: #89919f;
|
|
55
|
-
}
|