@titaui/pc 1.9.10 → 1.9.11

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.
@@ -77,7 +77,7 @@ var ObjectType = {
77
77
  4: (0, _getLocale.getLocale)('Menu_Title_Projects'),
78
78
  5: (0, _getLocale.getLocale)('Mod_sPerformanceForm'),
79
79
  6: (0, _getLocale.getLocale)('Mod_sPerformanceGoals'),
80
- 7: (0, _getLocale.getLocale)('Mod_stask'),
80
+ 7: (0, _getLocale.getLocale)('Mod_stasks'),
81
81
  8: (0, _getLocale.getLocale)('Mod_sDailySummary'),
82
82
  10: (0, _getLocale.getLocale)('Feed_sFeed'),
83
83
  11: (0, _getLocale.getLocale)('Pro_page_Plan'),
@@ -57,7 +57,7 @@ var DynamicShare = function DynamicShare(_ref) {
57
57
  var renderDesc = (0, _react.useMemo)(function () {
58
58
  return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
59
59
  className: prefix + "__operate-desc"
60
- }, (0, _getLocale.getLocale)('Mod_skeyprogress')), /*#__PURE__*/_react["default"].createElement("span", {
60
+ }, (0, _getLocale.getLocale)('Mod_sassessment')), /*#__PURE__*/_react["default"].createElement("span", {
61
61
  className: prefix + "-desc-operate-type",
62
62
  style: {
63
63
  background: feedTypeColor
@@ -152,11 +152,11 @@ var DynamicProgress = function DynamicProgress(_ref) {
152
152
  }, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
153
153
  str: relationParentName,
154
154
  keyWord: searchKeyWord
155
- })), (0, _getLocale.getLocale)('Mod_skeyresspross'));
155
+ })), (0, _getLocale.getLocale)('Mod_skeyrprogress'));
156
156
  }
157
157
 
158
158
  if (obj && obj.objType === _constant.EObjType.O) {
159
- dom = "".concat((0, _getLocale.getLocale)('Mod_Updated')).concat((0, _getLocale.getLocale)('Mod_skeyprogress'));
159
+ dom = "".concat((0, _getLocale.getLocale)('Mod_Updated')).concat((0, _getLocale.getLocale)('Mod_objectiveprog'));
160
160
  }
161
161
 
162
162
  if (obj && obj.objType === _constant.EObjType.Task) {
@@ -43,7 +43,7 @@ var Timer = function Timer(_ref) {
43
43
  };
44
44
 
45
45
  return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
46
- format: "YYYY-MM-DD",
46
+ format: "YYYY/MM/DD",
47
47
  controlled: true,
48
48
  onConfirm: onStartDateConfirmHandler,
49
49
  defaultRange: {
@@ -66,7 +66,7 @@ var timeFormat = function timeFormat(NowDate) {
66
66
 
67
67
  var d = date.getDate(); //日
68
68
 
69
- return y + "-" + m + "-" + d + " 0:0:0";
69
+ return y + "/" + m + "/" + d + " 0:0:0";
70
70
  }; // 获取当年第一天
71
71
 
72
72
 
@@ -97,7 +97,7 @@ var showWeekFirstDay = function showWeekFirstDay() {
97
97
 
98
98
  var WeekFirstDay = new Date(Nowdate - (weekDay - 1) * 86400000);
99
99
  var M = Number(WeekFirstDay.getMonth()) + 1;
100
- return WeekFirstDay.getFullYear() + "-" + M + "-" + WeekFirstDay.getDate() + " 0:0:0";
100
+ return WeekFirstDay.getFullYear() + "/" + M + "/" + WeekFirstDay.getDate() + " 0:0:0";
101
101
  }; // 本周最后一天
102
102
 
103
103
 
@@ -111,7 +111,7 @@ var showWeekLastDay = function showWeekLastDay() {
111
111
 
112
112
  var WeekLastDay = new Date((WeekFirstDay / 1000 + 6 * 86400) * 1000);
113
113
  var M = Number(WeekLastDay.getMonth()) + 1;
114
- return WeekLastDay.getFullYear() + "-" + M + "-" + WeekLastDay.getDate();
114
+ return WeekLastDay.getFullYear() + "/" + M + "/" + WeekLastDay.getDate();
115
115
  }; // 下周第一天
116
116
 
117
117
 
@@ -125,7 +125,7 @@ var showNextWeekFirstDay = function showNextWeekFirstDay() {
125
125
 
126
126
  var WeekLastDay = new Date((WeekFirstDay / 1000 + 7 * 86400) * 1000);
127
127
  var M = Number(WeekLastDay.getMonth()) + 1;
128
- return WeekLastDay.getFullYear() + "-" + M + "-" + WeekLastDay.getDate() + " 0:0:0";
128
+ return WeekLastDay.getFullYear() + "/" + M + "/" + WeekLastDay.getDate() + " 0:0:0";
129
129
  }; // 本月第一天
130
130
 
131
131
 
@@ -135,7 +135,7 @@ var showMonthFirstDay = function showMonthFirstDay() {
135
135
  var Nowdate = new Date();
136
136
  var MonthFirstDay = new Date(Nowdate.getFullYear(), Nowdate.getMonth(), 1);
137
137
  var M = Number(MonthFirstDay.getMonth()) + 1;
138
- return MonthFirstDay.getFullYear() + "-" + M + "-" + MonthFirstDay.getDate() + " 0:0:0";
138
+ return MonthFirstDay.getFullYear() + "/" + M + "/" + MonthFirstDay.getDate() + " 0:0:0";
139
139
  }; // 本月最后一天
140
140
 
141
141
 
@@ -147,7 +147,7 @@ var showMonthLastDay = function showMonthLastDay() {
147
147
 
148
148
  var MonthLastDay = new Date(MonthNextFirstDay - 86400000);
149
149
  var M = Number(MonthLastDay.getMonth()) + 1;
150
- return MonthLastDay.getFullYear() + "-" + M + "-" + MonthLastDay.getDate();
150
+ return MonthLastDay.getFullYear() + "/" + M + "/" + MonthLastDay.getDate();
151
151
  }; // 下个月第一天
152
152
 
153
153
 
@@ -157,7 +157,7 @@ var showNextMonthFirstDay = function showNextMonthFirstDay() {
157
157
  var Nowdate = new Date();
158
158
  var MonthFirstDay = new Date(Nowdate.getFullYear(), Nowdate.getMonth() + 1, 1);
159
159
  var M = Number(MonthFirstDay.getMonth()) + 1;
160
- return MonthFirstDay.getFullYear() + "-" + M + "-" + MonthFirstDay.getDate() + " 0:0:0";
160
+ return MonthFirstDay.getFullYear() + "/" + M + "/" + MonthFirstDay.getDate() + " 0:0:0";
161
161
  };
162
162
 
163
163
  exports.showNextMonthFirstDay = showNextMonthFirstDay;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.9.10",
3
+ "version": "1.9.11",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -60,7 +60,7 @@ export const ObjectType = {
60
60
  4: getLocale('Menu_Title_Projects'),
61
61
  5: getLocale('Mod_sPerformanceForm'),
62
62
  6: getLocale('Mod_sPerformanceGoals'),
63
- 7: getLocale('Mod_stask'),
63
+ 7: getLocale('Mod_stasks'),
64
64
  8: getLocale('Mod_sDailySummary'),
65
65
  10: getLocale('Feed_sFeed'),
66
66
  11: getLocale('Pro_page_Plan'),
@@ -28,7 +28,7 @@ const DynamicShare: FC<IDynamicItemContentProps> = ({ data, ...restProps }) => {
28
28
  const renderDesc = useMemo(() => {
29
29
  return (
30
30
  <Fragment>
31
- <span className={prefix + "__operate-desc"}>{getLocale('Mod_skeyprogress')}</span>
31
+ <span className={prefix + "__operate-desc"}>{getLocale('Mod_sassessment')}</span>
32
32
  <span
33
33
  className={prefix + "-desc-operate-type"}
34
34
  style={{ background: feedTypeColor }}
@@ -108,12 +108,12 @@ const DynamicProgress: FC<IDynamicItemContentProps> = ({
108
108
  >
109
109
  <SearchKeyHandle str={relationParentName} keyWord={searchKeyWord} />
110
110
  </span>
111
- {getLocale('Mod_skeyresspross')}
111
+ {getLocale('Mod_skeyrprogress')}
112
112
  </span>
113
113
  );
114
114
  }
115
115
  if (obj && obj.objType === EObjType.O) {
116
- dom = `${getLocale('Mod_Updated')}${getLocale('Mod_skeyprogress')}`;
116
+ dom = `${getLocale('Mod_Updated')}${getLocale('Mod_objectiveprog')}`;
117
117
  }
118
118
  if (obj && obj.objType === EObjType.Task) {
119
119
  dom = `${getLocale('Mod_Updated')}${getLocale('Data_Taskprogress')}`;
@@ -20,7 +20,7 @@ const Timer: FC<any> = ({ setParma, parmas,setType }) => {
20
20
  return (
21
21
  <Fragment>
22
22
  <RangePickerPop
23
- format="YYYY-MM-DD"
23
+ format="YYYY/MM/DD"
24
24
  controlled
25
25
  onConfirm={onStartDateConfirmHandler}
26
26
  defaultRange={{
@@ -51,7 +51,7 @@ export const timeFormat = (NowDate) => {
51
51
  var y = date.getFullYear(); //年
52
52
  var m = date.getMonth() + 1; //月
53
53
  var d = date.getDate(); //日
54
- return y + "-" + m + "-" + d+" 0:0:0";
54
+ return y + "/" + m + "/" + d+" 0:0:0";
55
55
  };
56
56
 
57
57
  // 获取当年第一天
@@ -74,7 +74,7 @@ export const showWeekFirstDay = () => {
74
74
  // @ts-ignore
75
75
  let WeekFirstDay = new Date(Nowdate - (weekDay - 1) * 86400000);
76
76
  let M = Number(WeekFirstDay.getMonth()) + 1;
77
- return WeekFirstDay.getFullYear() + "-" + M + "-" + WeekFirstDay.getDate()+" 0:0:0";
77
+ return WeekFirstDay.getFullYear() + "/" + M + "/" + WeekFirstDay.getDate()+" 0:0:0";
78
78
  };
79
79
 
80
80
  // 本周最后一天
@@ -86,7 +86,7 @@ export const showWeekLastDay = () => {
86
86
  // @ts-ignore
87
87
  let WeekLastDay = new Date((WeekFirstDay / 1000 + 6 * 86400) * 1000);
88
88
  let M = Number(WeekLastDay.getMonth()) + 1;
89
- return WeekLastDay.getFullYear() + "-" + M + "-" + WeekLastDay.getDate();
89
+ return WeekLastDay.getFullYear() + "/" + M + "/" + WeekLastDay.getDate();
90
90
  };
91
91
 
92
92
  // 下周第一天
@@ -98,7 +98,7 @@ export const showNextWeekFirstDay = () => {
98
98
  // @ts-ignore
99
99
  let WeekLastDay = new Date((WeekFirstDay / 1000 + 7 * 86400) * 1000);
100
100
  let M = Number(WeekLastDay.getMonth()) + 1;
101
- return WeekLastDay.getFullYear() + "-" + M + "-" + WeekLastDay.getDate()+" 0:0:0";
101
+ return WeekLastDay.getFullYear() + "/" + M + "/" + WeekLastDay.getDate()+" 0:0:0";
102
102
  };
103
103
 
104
104
  // 本月第一天
@@ -106,7 +106,7 @@ export const showMonthFirstDay = () => {
106
106
  var Nowdate = new Date();
107
107
  var MonthFirstDay = new Date(Nowdate.getFullYear(), Nowdate.getMonth(), 1);
108
108
  var M = Number(MonthFirstDay.getMonth()) + 1;
109
- return MonthFirstDay.getFullYear() + "-" + M + "-" + MonthFirstDay.getDate()+" 0:0:0";
109
+ return MonthFirstDay.getFullYear() + "/" + M + "/" + MonthFirstDay.getDate()+" 0:0:0";
110
110
  };
111
111
 
112
112
  // 本月最后一天
@@ -120,7 +120,7 @@ export const showMonthLastDay = () => {
120
120
  // @ts-ignore
121
121
  var MonthLastDay = new Date(MonthNextFirstDay - 86400000);
122
122
  var M = Number(MonthLastDay.getMonth()) + 1;
123
- return MonthLastDay.getFullYear() + "-" + M + "-" + MonthLastDay.getDate();
123
+ return MonthLastDay.getFullYear() + "/" + M + "/" + MonthLastDay.getDate();
124
124
  };
125
125
  // 下个月第一天
126
126
  export const showNextMonthFirstDay = () => {
@@ -131,5 +131,5 @@ export const showNextMonthFirstDay = () => {
131
131
  1
132
132
  );
133
133
  var M = Number(MonthFirstDay.getMonth()) + 1;
134
- return MonthFirstDay.getFullYear() + "-" + M + "-" + MonthFirstDay.getDate()+" 0:0:0";
134
+ return MonthFirstDay.getFullYear() + "/" + M + "/" + MonthFirstDay.getDate()+" 0:0:0";
135
135
  };