forked from ddrilling/asb_cloud_front
45 lines
866 B
JavaScript
45 lines
866 B
JavaScript
import {RegExpIsFloat} from '../../components/Table'
|
|
import {Input} from 'antd'
|
|
|
|
const {TextArea} = Input
|
|
|
|
// 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
|
|
|
|
export const numericColumnOptions = {
|
|
editable: true,
|
|
initialValue: 0,
|
|
width:'4rem',
|
|
formItemRules: [
|
|
{
|
|
required: true,
|
|
message: `Введите число`,
|
|
pattern: RegExpIsFloat,
|
|
},
|
|
],
|
|
};
|
|
|
|
export const textColumnOptions = {
|
|
editable:true,
|
|
input:<TextArea/>,
|
|
width:'20rem'} |