@titaui/pc 1.9.6 → 1.9.7

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.
@@ -6,19 +6,19 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.List = void 0;
7
7
  var List = [{
8
8
  id: 'person',
9
- accept: '.jpg,.jpeg,.gif,.png',
9
+ accept: '.jpg,.jpeg,.png',
10
10
  autoCropArea: 1,
11
11
  initialAspectRatio: 1,
12
- tips: '仅支持 jpg、jpeg、gif、png 格式 建议图片最小尺寸 150*150px',
12
+ tips: '仅支持 jpg、jpeg、png 格式 建议图片最小尺寸 150*150px',
13
13
  previewTitle: '预览',
14
14
  minCropBoxHeight: 60,
15
15
  minCropBoxWidth: 60
16
16
  }, {
17
17
  id: 'enterprise',
18
- accept: '.jpg,.jpeg,.gif,.png',
18
+ accept: '.jpg,.jpeg,.png',
19
19
  autoCropArea: 1,
20
20
  initialAspectRatio: 5,
21
- tips: '建议 logo 尺寸 400*80 logo 最佳适配颜色为白色 仅支持 jpg、jpeg、gif、png 格式',
21
+ tips: '建议 logo 尺寸 400*80 logo 最佳适配颜色为白色 仅支持 jpg、jpeg、png 格式',
22
22
  previewTitle: 'logo 预览',
23
23
  minCropBoxHeight: 20,
24
24
  minCropBoxWidth: 20
@@ -70,39 +70,14 @@
70
70
  background-color: #2879ff;
71
71
  }
72
72
 
73
- .titaui-personal-info-base-info .form-field-input__label {
74
- margin-bottom: 4px;
75
- }
76
-
77
- .titaui-personal-info-base-info .form-field-input__border {
78
- padding: 0;
79
- border: none;
80
- background-color: #fff;
81
- }
82
-
83
- .titaui-personal-info-base-info .form-field-input__label-text {
84
- font-weight: 600;
85
- }
86
-
87
- .titaui-personal-info-base-info .form-field-input__input {
88
- font-size: 12px;
89
- line-height: 18px;
90
- background-color: #fff;
91
- }
92
-
93
- .titaui-personal-info-base-info .form-field-input__border--disabled input:disabled {
94
- background-color: #fff;
95
- }
96
-
97
73
  .titaui-personal-info-base-info__form {
98
- height: 66px;
99
74
  box-sizing: border-box;
100
75
  padding: 10px 0;
101
76
  }
102
77
 
103
78
  .titaui-personal-info-base-info__form-title {
104
79
  font-size: 14px;
105
- font-weight: normal;
80
+ font-weight: 600;
106
81
  color: #141C28;
107
82
  line-height: 22px;
108
83
  margin-bottom: 6px;
@@ -50,7 +50,7 @@ var BaseInfo = function BaseInfo() {
50
50
  name: "",
51
51
  email: "",
52
52
  mobile: "",
53
- id: ''
53
+ userId: ''
54
54
  }),
55
55
  _useState2 = _slicedToArray(_useState, 2),
56
56
  userInfo = _useState2[0],
@@ -103,7 +103,7 @@ var BaseInfo = function BaseInfo() {
103
103
  }, "\u59D3\u540D"), /*#__PURE__*/_react["default"].createElement("span", {
104
104
  className: "".concat(prefix, "__form-value")
105
105
  }, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
106
- id: userInfo.id,
106
+ id: userInfo.userId,
107
107
  name: userInfo.name
108
108
  }))), /*#__PURE__*/_react["default"].createElement("div", {
109
109
  className: "".concat(prefix, "__form")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.9.6",
3
+ "version": "1.9.7",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -2,20 +2,20 @@
2
2
  export const List = [
3
3
  {
4
4
  id: 'person',
5
- accept: '.jpg,.jpeg,.gif,.png',
5
+ accept: '.jpg,.jpeg,.png',
6
6
  autoCropArea: 1,
7
7
  initialAspectRatio: 1,
8
- tips: '仅支持 jpg、jpeg、gif、png 格式 建议图片最小尺寸 150*150px',
8
+ tips: '仅支持 jpg、jpeg、png 格式 建议图片最小尺寸 150*150px',
9
9
  previewTitle: '预览',
10
10
  minCropBoxHeight: 60,
11
11
  minCropBoxWidth: 60,
12
12
  },
13
13
  {
14
14
  id: 'enterprise',
15
- accept: '.jpg,.jpeg,.gif,.png',
15
+ accept: '.jpg,.jpeg,.png',
16
16
  autoCropArea: 1,
17
17
  initialAspectRatio: 5,
18
- tips: '建议 logo 尺寸 400*80 logo 最佳适配颜色为白色 仅支持 jpg、jpeg、gif、png 格式',
18
+ tips: '建议 logo 尺寸 400*80 logo 最佳适配颜色为白色 仅支持 jpg、jpeg、png 格式',
19
19
  previewTitle: 'logo 预览',
20
20
  minCropBoxHeight: 20,
21
21
  minCropBoxWidth: 20,
@@ -61,32 +61,12 @@
61
61
  }
62
62
  }
63
63
  }
64
- .form-field-input__label {
65
- margin-bottom: 4px;
66
- }
67
- .form-field-input__border {
68
- padding: 0;
69
- border: none;
70
- background-color: #fff;
71
- }
72
- .form-field-input__label-text {
73
- font-weight: 600;
74
- }
75
- .form-field-input__input {
76
- font-size: 12px;
77
- line-height: 18px;
78
- background-color: #fff;
79
- }
80
- .form-field-input__border--disabled input:disabled {
81
- background-color: #fff;
82
- }
83
64
  &__form {
84
- height: 66px;
85
65
  box-sizing: border-box;
86
66
  padding: 10px 0;
87
67
  &-title {
88
68
  font-size: 14px;
89
- font-weight: normal;
69
+ font-weight: 600;
90
70
  color: #141C28;
91
71
  line-height: 22px;
92
72
  margin-bottom: 6px;
@@ -8,7 +8,7 @@ import "./index.scss";
8
8
  const prefix = "titaui-personal-info-base-info";
9
9
 
10
10
  const BaseInfo: FC = () => {
11
- const [userInfo, setUserInfo] = useState({ name: "", email: "", mobile: "", id: '' });
11
+ const [userInfo, setUserInfo] = useState({ name: "", email: "", mobile: "", userId: '' });
12
12
  const [visible, setVisible] = useState(false);
13
13
 
14
14
  const handleClickEdit = () => {
@@ -25,7 +25,7 @@ const BaseInfo: FC = () => {
25
25
 
26
26
  useEffect(() => {
27
27
  getUserInfoFun().then((resp) => {
28
- if (resp.Code === 1 && resp.Data) {
28
+ if (resp.Code === 1 && resp.Data) {
29
29
  setUserInfo({ ...resp.Data, position: resp.Data.positionCode });
30
30
  }
31
31
  });
@@ -44,7 +44,7 @@ const BaseInfo: FC = () => {
44
44
  </div>
45
45
  <div className={`${prefix}__form`}>
46
46
  <div className={`${prefix}__form-title`}>姓名</div>
47
- <span className={`${prefix}__form-value`}><OpenUserName id={userInfo.id} name={userInfo.name} /></span>
47
+ <span className={`${prefix}__form-value`}><OpenUserName id={userInfo.userId} name={userInfo.name} /></span>
48
48
  </div>
49
49
  <div className={`${prefix}__form`}>
50
50
  <div className={`${prefix}__form-title`}>手机号码</div>