cfel-base-components 2.5.17 → 2.5.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfel-base-components",
3
- "version": "2.5.17",
3
+ "version": "2.5.19",
4
4
  "description": "cfel-base-components",
5
5
  "main": "/src/index.tsx",
6
6
  "types": "src/index.d.ts",
@@ -154,6 +154,7 @@ export default function Index({
154
154
  <Form.Item
155
155
  label={null}
156
156
  name={key}
157
+ hasFeedback
157
158
  rules={[
158
159
  { required: required, message: '请输入' },
159
160
  {
@@ -163,7 +164,7 @@ export default function Index({
163
164
  ]}
164
165
  extra='密码要求至少包含英文字母和数字,字符数8-32位'
165
166
  >
166
- <Input placeholder='请输入' />
167
+ <Input.Password placeholder='请输入' />
167
168
  </Form.Item>
168
169
  )
169
170
  break
@@ -215,6 +216,7 @@ export default function Index({
215
216
  const closeModel = () => {
216
217
  form.resetFields()
217
218
  editOpenStatus(false)
219
+ setPasswordType('server')
218
220
  }
219
221
  const generateRandomString = (minLength = 8, maxLength = 32) => {
220
222
  const length = Math.floor(Math.random() * (maxLength - minLength + 1)) + minLength
@@ -116,6 +116,7 @@ export default function Index({
116
116
  <Form.Item
117
117
  label={null}
118
118
  name={key}
119
+ hasFeedback
119
120
  rules={[
120
121
  { required: required, message: '请输入' },
121
122
  {
@@ -125,7 +126,7 @@ export default function Index({
125
126
  ]}
126
127
  extra='密码要求至少包含英文字母和数字,字符数8-32位'
127
128
  >
128
- <Input placeholder='请输入' />
129
+ <Input.Password placeholder='请输入' />
129
130
  </Form.Item>
130
131
  )
131
132
  break
@@ -146,6 +147,7 @@ export default function Index({
146
147
  form.resetFields()
147
148
  editOpenStatus(false)
148
149
  setStepNext(false)
150
+ setPasswordType('server')
149
151
  }
150
152
  const generateRandomString = (minLength = 8, maxLength = 32) => {
151
153
  const length = Math.floor(Math.random() * (maxLength - minLength + 1)) + minLength
@@ -57,10 +57,13 @@ export default function Account({ historyAction }: AccountProps) {
57
57
  return (
58
58
  <Space>
59
59
  <span>{data?.name}</span>
60
- <FormOutlined
60
+ {
61
+ !data.isAdmin && <FormOutlined
61
62
  style={{ cursor: 'pointer', color: '#1677ff' }}
62
63
  onClick={() => openEditName(data)}
63
64
  />
65
+ }
66
+
64
67
  </Space>
65
68
  )
66
69
  }
@@ -106,7 +109,8 @@ export default function Account({ historyAction }: AccountProps) {
106
109
  width: 150,
107
110
  render: (rowdata: any) => (
108
111
  <Space>
109
- <a
112
+ {
113
+ !rowdata.isAdmin && <a
110
114
  onClick={() => {
111
115
  setResetEditingData(rowdata)
112
116
  setResetModalOpen(true)
@@ -114,6 +118,7 @@ export default function Account({ historyAction }: AccountProps) {
114
118
  >
115
119
  重置密码
116
120
  </a>
121
+ }
117
122
  <a
118
123
  onClick={() => {
119
124
  historyAction?.push({