yootd 0.2.51 → 0.2.52

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.
@@ -10,7 +10,7 @@ export var Teacher = function Teacher(_ref) {
10
10
  var _ref$placeholder = _ref.placeholder,
11
11
  placeholder = _ref$placeholder === void 0 ? '请选择教师' : _ref$placeholder,
12
12
  _ref$label = _ref.label,
13
- label = _ref$label === void 0 ? ['personalName', 'genderName', 'uniqueNumber'] : _ref$label,
13
+ label = _ref$label === void 0 ? ['personalName', 'genderName', 'uniqueNumber', 'deptName', 'titleName'] : _ref$label,
14
14
  _ref$connectors = _ref.connectors,
15
15
  connectors = _ref$connectors === void 0 ? '~' : _ref$connectors,
16
16
  _ref$showSearch = _ref.showSearch,
@@ -19,6 +19,8 @@ export interface IteacherItem {
19
19
  nationName?: string; // 民族
20
20
  gender?: number; // 性别
21
21
  personalEmail?: string; // 邮箱
22
+ deptName?: string;
23
+ titleName?: string;
22
24
  }
23
25
  type LabelOptions =
24
26
  | 'personalName'
@@ -26,7 +28,9 @@ type LabelOptions =
26
28
  | 'personalMobile'
27
29
  | 'nationName'
28
30
  | 'genderName'
29
- | 'personalEmail';
31
+ | 'personalEmail'
32
+ | 'deptName'
33
+ | 'titleName';
30
34
  export type TeacherProps = SelectProps & {
31
35
  label?: LabelOptions[];
32
36
  connectors?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yootd",
3
- "version": "0.2.51",
3
+ "version": "0.2.52",
4
4
  "description": "基于 Antd 二次开发的组件库",
5
5
  "license": "MIT",
6
6
  "sideEffects": [