| 
					
					
					
				 | 
				@ -1,3 +1,4 @@ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				import { useTranslation } from '@/i18n.ts' | 
			
		
		
	
		
			
				 | 
				 | 
				import { EditableFormInstance, EditableProTable } from '@ant-design/pro-components' | 
				 | 
				 | 
				import { EditableFormInstance, EditableProTable } from '@ant-design/pro-components' | 
			
		
		
	
		
			
				 | 
				 | 
				import { useMemo, useRef, useState } from 'react' | 
				 | 
				 | 
				import { useMemo, useRef, useState } from 'react' | 
			
		
		
	
		
			
				 | 
				 | 
				import { IDataProps } from '@/types' | 
				 | 
				 | 
				import { IDataProps } from '@/types' | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -17,6 +18,7 @@ const ButtonTable = (props: IDataProps & { | 
			
		
		
	
		
			
				 | 
				 | 
				  form: FormInstance | 
				 | 
				 | 
				  form: FormInstance | 
			
		
		
	
		
			
				 | 
				 | 
				}) => { | 
				 | 
				 | 
				}) => { | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				  const { t } = useTranslation() | 
			
		
		
	
		
			
				 | 
				 | 
				  const { value, onChange } = props | 
				 | 
				 | 
				  const { value, onChange } = props | 
			
		
		
	
		
			
				 | 
				 | 
				  const editorFormRef = useRef<EditableFormInstance<DataSourceType>>() | 
				 | 
				 | 
				  const editorFormRef = useRef<EditableFormInstance<DataSourceType>>() | 
			
		
		
	
		
			
				 | 
				 | 
				  const [ editableKeys, setEditableRowKeys ] = useState<any[]>(() => { | 
				 | 
				 | 
				  const [ editableKeys, setEditableRowKeys ] = useState<any[]>(() => { | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -34,26 +36,26 @@ const ButtonTable = (props: IDataProps & { | 
			
		
		
	
		
			
				 | 
				 | 
				        hideInTable: true, | 
				 | 
				 | 
				        hideInTable: true, | 
			
		
		
	
		
			
				 | 
				 | 
				      }, | 
				 | 
				 | 
				      }, | 
			
		
		
	
		
			
				 | 
				 | 
				      { | 
				 | 
				 | 
				      { | 
			
		
		
	
		
			
				 | 
				 | 
				                title: '名称', | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        title: t('system.menus.form.table.columns.name', '名称'), | 
			
		
		
	
		
			
				 | 
				 | 
				        dataIndex: 'label', | 
				 | 
				 | 
				        dataIndex: 'label', | 
			
		
		
	
		
			
				 | 
				 | 
				        formItemProps: () => { | 
				 | 
				 | 
				        formItemProps: () => { | 
			
		
		
	
		
			
				 | 
				 | 
				          return { | 
				 | 
				 | 
				          return { | 
			
		
		
	
		
			
				 | 
				 | 
				                        rules: [ { required: true, message: '此项为必填项' } ], | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            rules: [ { required: true, message: t('message.required') } ], | 
			
		
		
	
		
			
				 | 
				 | 
				          } | 
				 | 
				 | 
				          } | 
			
		
		
	
		
			
				 | 
				 | 
				        }, | 
				 | 
				 | 
				        }, | 
			
		
		
	
		
			
				 | 
				 | 
				      }, | 
				 | 
				 | 
				      }, | 
			
		
		
	
		
			
				 | 
				 | 
				      { | 
				 | 
				 | 
				      { | 
			
		
		
	
		
			
				 | 
				 | 
				                title: '标识', | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        title: t('system.menus.form.table.columns.code', '标识'), | 
			
		
		
	
		
			
				 | 
				 | 
				        dataIndex: 'code', | 
				 | 
				 | 
				        dataIndex: 'code', | 
			
		
		
	
		
			
				 | 
				 | 
				        formItemProps: () => { | 
				 | 
				 | 
				        formItemProps: () => { | 
			
		
		
	
		
			
				 | 
				 | 
				          return { | 
				 | 
				 | 
				          return { | 
			
		
		
	
		
			
				 | 
				 | 
				                        rules: [ { required: true, message: '此项为必填项' } ], | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				            rules: [ { required: true, message: t('message.required') } ], | 
			
		
		
	
		
			
				 | 
				 | 
				          } | 
				 | 
				 | 
				          } | 
			
		
		
	
		
			
				 | 
				 | 
				        }, | 
				 | 
				 | 
				        }, | 
			
		
		
	
		
			
				 | 
				 | 
				      }, | 
				 | 
				 | 
				      }, | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				      { | 
				 | 
				 | 
				      { | 
			
		
		
	
		
			
				 | 
				 | 
				                title: '操作', | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				        title: t('system.menus.form.table.columns.option', '操作'), | 
			
		
		
	
		
			
				 | 
				 | 
				        valueType: 'option', | 
				 | 
				 | 
				        valueType: 'option', | 
			
		
		
	
		
			
				 | 
				 | 
				        width: 80, | 
				 | 
				 | 
				        width: 80, | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |