mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
31 lines
950 B
TypeScript
31 lines
950 B
TypeScript
import {Form, Input, Tabs} from 'antd'
|
|
import {TabPaneProps} from 'antd/lib/tabs'
|
|
import React from 'react'
|
|
import {InputColor} from '../../input/color'
|
|
|
|
export const DesignTab: React.FC<TabPaneProps> = props => {
|
|
return (
|
|
<Tabs.TabPane {...props}>
|
|
<Form.Item
|
|
label="Font"
|
|
name={['form', 'design', 'font']}
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
|
|
{[
|
|
{name: 'backgroundColor', label: 'Background Color'},
|
|
{name: 'questionColor', label: 'Question Color'},
|
|
{name: 'answerColor', label: 'Answer Color'},
|
|
{name: 'buttonColor', label: 'Button Color'},
|
|
{name: 'buttonActiveColor', label: 'Button Active Color'},
|
|
{name: 'buttonTextColor', label: 'Button Text Color'},
|
|
].map(({label, name}) => (
|
|
<Form.Item key={name} label={label} name={['form', 'design', 'colors', name]}>
|
|
<InputColor />
|
|
</Form.Item>
|
|
))}
|
|
</Tabs.TabPane>
|
|
)
|
|
}
|