|
|
@@ -3,7 +3,7 @@ import { PageContainer } from '@ant-design/pro-layout';
|
|
|
import ProTable from '@jetlinks/pro-table';
|
|
|
import type { ActionType, ProColumns } from '@jetlinks/pro-table';
|
|
|
import { useEffect, useRef, useState } from 'react';
|
|
|
-import { useIntl } from '@@/plugin-locale/localeExports';
|
|
|
+import { useIntl } from 'umi';
|
|
|
import { Button, message, Popconfirm, Tooltip, Card, Divider } from 'antd';
|
|
|
import {
|
|
|
EditOutlined,
|
|
|
@@ -172,12 +172,22 @@ export default observer(() => {
|
|
|
required: true,
|
|
|
'x-decorator': 'FormItem',
|
|
|
'x-component': 'Input',
|
|
|
+ 'x-validator': [
|
|
|
+ {
|
|
|
+ max: 50,
|
|
|
+ message: '最多可输入50个字符',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请输入用户名',
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
sortIndex: {
|
|
|
type: 'string',
|
|
|
title: '排序',
|
|
|
'x-decorator': 'FormItem',
|
|
|
- 'x-component': 'Input',
|
|
|
+ 'x-component': 'NumberPicker',
|
|
|
},
|
|
|
},
|
|
|
};
|