2021-08-30 16:40:56 +05:00
|
|
|
import {RegExpIsFloat} from '../../components/Table'
|
|
|
|
import {Input} from 'antd'
|
|
|
|
|
|
|
|
const {TextArea} = Input
|
|
|
|
|
2021-09-03 09:26:43 +05:00
|
|
|
// export const v = (text) => <div
|
|
|
|
// style={{
|
|
|
|
// position: 'absolute',
|
|
|
|
// top: '0',
|
|
|
|
// left: '0',
|
|
|
|
// transform: 'rotate(-90deg)',
|
|
|
|
// transformOrigin: 'left',
|
|
|
|
// height:'000px',
|
|
|
|
// width:'400px'
|
|
|
|
// }}>
|
|
|
|
// {text}
|
|
|
|
// </div>
|
|
|
|
|
|
|
|
// export const v = (text) => <div
|
|
|
|
// style={{
|
|
|
|
// writingMode:'vertical-lr',
|
|
|
|
// textOrientation: 'mixed',
|
|
|
|
// }}>
|
|
|
|
// {text}
|
|
|
|
// </div>
|
|
|
|
|
|
|
|
export const v = (text) => text
|
2021-08-30 16:40:56 +05:00
|
|
|
|
|
|
|
export const numericColumnOptions = {
|
|
|
|
editable: true,
|
|
|
|
initialValue: 0,
|
2021-09-03 09:26:43 +05:00
|
|
|
width:'4rem',
|
2021-08-30 16:40:56 +05:00
|
|
|
formItemRules: [
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
message: `Введите число`,
|
|
|
|
pattern: RegExpIsFloat,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
export const textColumnOptions = {
|
|
|
|
editable:true,
|
|
|
|
input:<TextArea/>,
|
2021-09-03 09:26:43 +05:00
|
|
|
width:'20rem'}
|