2021-11-17 12:10:33 +05:00
|
|
|
import { Input } from 'antd'
|
2021-12-23 18:23:21 +05:00
|
|
|
|
2022-01-24 17:32:45 +05:00
|
|
|
import { RegExpIsFloat } from '@components/Table'
|
2021-08-30 16:40:56 +05:00
|
|
|
|
2022-01-24 17:32:45 +05:00
|
|
|
import '@styles/measure.css'
|
2021-08-30 16:40:56 +05:00
|
|
|
|
2021-11-17 12:10:33 +05:00
|
|
|
export const v = (text) => (
|
2021-12-23 18:23:21 +05:00
|
|
|
<div className={'v-div'}>
|
|
|
|
<span className={'v-span'}>
|
2021-11-17 12:10:33 +05:00
|
|
|
{text}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
)
|
2021-08-30 16:40:56 +05:00
|
|
|
|
|
|
|
export const numericColumnOptions = {
|
|
|
|
editable: true,
|
|
|
|
initialValue: 0,
|
2021-11-17 12:10:33 +05:00
|
|
|
width: '3rem',
|
2021-08-30 16:40:56 +05:00
|
|
|
formItemRules: [
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
message: `Введите число`,
|
|
|
|
pattern: RegExpIsFloat,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
export const textColumnOptions = {
|
2021-11-17 12:10:33 +05:00
|
|
|
editable: true,
|
2021-12-23 18:23:21 +05:00
|
|
|
input: <Input.TextArea/>,
|
2021-11-17 12:10:33 +05:00
|
|
|
width: '3rem',
|
|
|
|
formItemRules: [{
|
|
|
|
required: true,
|
|
|
|
message: `Введите текст`
|
|
|
|
}],
|
|
|
|
}
|