@titaui/pc 1.13.2-beta.11 → 1.13.2-beta.14
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/checkbox-list/index.css +31 -0
- package/lib/components/checkbox-list/index.js +68 -0
- package/lib/components/create-okr-modal/index.js +4 -1
- package/lib/components/dialog-qq-docs/index.css +106 -0
- package/lib/components/dialog-qq-docs/index.js +501 -0
- package/lib/components/dialog-qq-docs/request-apis.js +16 -0
- package/lib/components/dialog-qq-docs/utils.js +83 -0
- package/lib/components/dialog-select/index.css +9 -0
- package/lib/components/dialog-select/index.js +48 -0
- package/lib/components/dialog-upload/img/folder.svg +40 -0
- package/lib/components/dialog-upload/img/form.svg +38 -0
- package/lib/components/dialog-upload/img/mind.svg +39 -0
- package/lib/components/dialog-upload/util.js +19 -1
- package/lib/components/dialog-upload-type/assets/folder.svg +20 -0
- package/lib/components/dialog-upload-type/assets/qq-docs.svg +20 -0
- package/lib/components/dialog-upload-type/components/upload-type-item/index.css +14 -0
- package/lib/components/dialog-upload-type/components/upload-type-item/index.js +36 -0
- package/lib/components/dialog-upload-type/index.css +7 -0
- package/lib/components/dialog-upload-type/index.js +75 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +1 -2
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +0 -12
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +2 -13
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +1 -16
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +9 -51
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +10 -27
- package/lib/components/dynamic/dynamic-item/index.js +3 -23
- package/lib/components/dynamic/request-api.js +2 -9
- package/lib/components/file-list/components/single-file/index.css +29 -0
- package/lib/components/file-list/components/single-file/index.js +18 -28
- package/lib/components/file-list/index.js +2 -1
- package/lib/components/file-preview/index.css +43 -0
- package/lib/components/file-preview/index.js +68 -0
- package/lib/components/loading/assets/loading.gif +0 -0
- package/lib/components/loading/index.css +28 -0
- package/lib/components/loading/index.js +64 -0
- package/lib/components/nav/index.css +37 -0
- package/lib/components/nav/index.js +31 -0
- package/lib/components/nav-top/components/app-center/index.js +6 -1
- package/lib/components/nav-top/components/menu/index.js +44 -14
- package/lib/components/nav-top/index.css +6 -0
- package/lib/components/nav-top/index.js +138 -2
- package/lib/components/nav-top/request.apis.js +10 -2
- package/lib/components/okr-guide/constant.js +23 -0
- package/lib/components/okr-guide/img/left-img.jpg +0 -0
- package/lib/components/okr-guide/index.css +148 -0
- package/lib/components/okr-guide/index.js +244 -0
- package/lib/components/okr-guide/request-api.js +57 -0
- package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
- package/lib/components/rich-editor-at/index.js +13 -94
- package/lib/components/scroll-container/index.js +27 -6
- package/lib/components/search-input/index.css +2 -2
- package/lib/components/search-input/index.js +4 -0
- package/lib/components/upload/index.js +257 -455
- package/lib/components/upload/upload.js +555 -0
- package/lib/components/version-change-modal/index.js +1 -3
- package/lib/index.js +8 -0
- package/lib/utils/tools.js +11 -1
- package/package.json +2 -2
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/utils.js +0 -56
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.formatPeriod = void 0;
|
|
7
|
-
|
|
8
|
-
var _getLocale = require("../../../../../utils/getLocale");
|
|
9
|
-
|
|
10
|
-
var _constant = require("../../../../../utils/constant");
|
|
11
|
-
|
|
12
|
-
var formatPeriod = function formatPeriod(selected) {
|
|
13
|
-
if (!selected) return "";
|
|
14
|
-
var quarter = ["", "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_1stQuarter")), "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_2ndQuarter")), "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_3rdQuarter")), "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_4thQuarter"))];
|
|
15
|
-
var cycleDate = "";
|
|
16
|
-
var annualNum = Number("".concat(selected.annualNum)) === -1 ? "".concat((0, _getLocale.getLocale)("OKR_MyO_Butt_Allyears")) : "".concat(selected.annualNum).concat(_getLocale.isEn ? "" : "年");
|
|
17
|
-
var month = (0, _constant.getMonth)();
|
|
18
|
-
|
|
19
|
-
switch ("".concat(selected.cycleType)) {
|
|
20
|
-
case "-1":
|
|
21
|
-
cycleDate = "".concat((0, _getLocale.getLocale)("OKR_MyO_Butt_AllStatee"));
|
|
22
|
-
break;
|
|
23
|
-
|
|
24
|
-
case "1":
|
|
25
|
-
cycleDate = "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Year"));
|
|
26
|
-
break;
|
|
27
|
-
|
|
28
|
-
case "2":
|
|
29
|
-
// 季度
|
|
30
|
-
cycleDate = quarter[Number(selected.yqmNum)];
|
|
31
|
-
break;
|
|
32
|
-
|
|
33
|
-
case "3":
|
|
34
|
-
cycleDate = month[Number(selected.yqmNum) - 1];
|
|
35
|
-
break;
|
|
36
|
-
|
|
37
|
-
case "4":
|
|
38
|
-
cycleDate = "".concat(month[Number(selected.yqmNum) - 1], " - ").concat(month[((Number(selected.yqmNum) + 1) % 12 || 12) - 1]);
|
|
39
|
-
break;
|
|
40
|
-
|
|
41
|
-
case "5":
|
|
42
|
-
cycleDate = Number("".concat(selected.yqmNum)) === 1 ? "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Firsthalf")) : "".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Secondhalf"));
|
|
43
|
-
break;
|
|
44
|
-
|
|
45
|
-
default:
|
|
46
|
-
cycleDate = "".concat((0, _getLocale.getLocale)('Mod_Customization'));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (Number(selected.cycleType) !== 0) {
|
|
50
|
-
return "".concat(annualNum, " ").concat(cycleDate);
|
|
51
|
-
} else {
|
|
52
|
-
return "".concat(cycleDate);
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
exports.formatPeriod = formatPeriod;
|