yootd 0.2.42 → 0.2.43

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.
@@ -1,7 +1,7 @@
1
- .yot-preview-phone {
2
- width: 398px;
3
- height: 829px;
4
- background-size: 100% 100%;
5
- padding: 96px 36px 20px 36px;
6
- box-sizing: border-box;
7
- }
1
+ .yot-preview-phone {
2
+ width: 398px;
3
+ height: 829px;
4
+ background-size: 100% 100%;
5
+ padding: 96px 36px 20px 36px;
6
+ box-sizing: border-box;
7
+ }
@@ -38,7 +38,7 @@ export var YearTerm = function YearTerm(_ref) {
38
38
  var _useQuery = useQuery({
39
39
  queryKey: ['yearData'],
40
40
  queryFn: function queryFn() {
41
- return request('/v1/education/term/year');
41
+ return request('/v1/education/addition/school/year/install/all');
42
42
  },
43
43
  enabled: type === 'year' || type === 'yearTerm'
44
44
  }),
@@ -60,8 +60,8 @@ export var YearTerm = function YearTerm(_ref) {
60
60
  var _yearData$content;
61
61
  return yearData === null || yearData === void 0 || (_yearData$content = yearData.content) === null || _yearData$content === void 0 ? void 0 : _yearData$content.map(function (item) {
62
62
  return {
63
- label: item.yearName,
64
- value: item.id
63
+ label: item.schoolYear,
64
+ value: item.yearId
65
65
  };
66
66
  });
67
67
  }, [yearData]);
@@ -9,8 +9,8 @@ export interface PageData<T> {
9
9
  }
10
10
  // 查询学年返回的数据类型
11
11
  export interface IYearItem {
12
- id: number; // ID
13
- yearName: string; // 学年名称
12
+ yearId: number; // ID
13
+ schoolYear: string; // 学年名称
14
14
  }
15
15
  // 查询学期返回的数据类型
16
16
  export interface ITermItem {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yootd",
3
- "version": "0.2.42",
3
+ "version": "0.2.43",
4
4
  "description": "基于 Antd 二次开发的组件库",
5
5
  "license": "MIT",
6
6
  "sideEffects": [