placeholders
This commit is contained in:
parent
c020a40e20
commit
52ed3a88b7
@ -8,7 +8,6 @@ import {
|
|||||||
Form,
|
Form,
|
||||||
Button,
|
Button,
|
||||||
Card,
|
Card,
|
||||||
TextArea,
|
|
||||||
Popover,
|
Popover,
|
||||||
Checkbox,
|
Checkbox,
|
||||||
Select,
|
Select,
|
||||||
@ -44,7 +43,6 @@ export default function DiagramOverview(props) {
|
|||||||
>
|
>
|
||||||
{t.fields.map((f, j) => (
|
{t.fields.map((f, j) => (
|
||||||
<Form key={j}>
|
<Form key={j}>
|
||||||
<div>
|
|
||||||
<Row
|
<Row
|
||||||
type="flex"
|
type="flex"
|
||||||
justify="start"
|
justify="start"
|
||||||
@ -58,6 +56,7 @@ export default function DiagramOverview(props) {
|
|||||||
noLabel={true}
|
noLabel={true}
|
||||||
initValue={f.name}
|
initValue={f.name}
|
||||||
className="m-0"
|
className="m-0"
|
||||||
|
placeholder="Name"
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={8}>
|
<Col span={8}>
|
||||||
@ -93,17 +92,16 @@ export default function DiagramOverview(props) {
|
|||||||
label="Default"
|
label="Default"
|
||||||
initValue={f.default}
|
initValue={f.default}
|
||||||
trigger="blur"
|
trigger="blur"
|
||||||
|
placeholder="Set default"
|
||||||
/>
|
/>
|
||||||
<Form.Input
|
<Form.Input
|
||||||
field="check"
|
field="check"
|
||||||
label="Check Expression"
|
label="Check Expression"
|
||||||
trigger="blur"
|
trigger="blur"
|
||||||
|
placeholder="Set constraint"
|
||||||
/>
|
/>
|
||||||
<div className="flex justify-between items-center my-3">
|
<div className="flex justify-between items-center my-3">
|
||||||
<label
|
<label htmlFor="increment" className="font-medium">
|
||||||
htmlFor="increment"
|
|
||||||
className="font-medium"
|
|
||||||
>
|
|
||||||
Autoincrement
|
Autoincrement
|
||||||
</label>
|
</label>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
@ -114,17 +112,20 @@ export default function DiagramOverview(props) {
|
|||||||
<Form.TextArea
|
<Form.TextArea
|
||||||
field="comment"
|
field="comment"
|
||||||
label="Comment"
|
label="Comment"
|
||||||
|
placeholder="Add comment"
|
||||||
initValue={f.comment}
|
initValue={f.comment}
|
||||||
autosize
|
autosize
|
||||||
rows={2}
|
rows={2}
|
||||||
/>
|
/>
|
||||||
</Form>
|
</Form>
|
||||||
<div className="flex justify-end mt-2">
|
<Button
|
||||||
<Button icon={<IconDeleteStroked />} type="danger">
|
icon={<IconDeleteStroked />}
|
||||||
|
type="danger"
|
||||||
|
block
|
||||||
|
>
|
||||||
Delete
|
Delete
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
}
|
}
|
||||||
trigger="click"
|
trigger="click"
|
||||||
position="rightTop"
|
position="rightTop"
|
||||||
@ -134,7 +135,6 @@ export default function DiagramOverview(props) {
|
|||||||
</Popover>
|
</Popover>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</div>
|
|
||||||
</Form>
|
</Form>
|
||||||
))}
|
))}
|
||||||
{t.indices.length > 0 && (
|
{t.indices.length > 0 && (
|
||||||
@ -185,6 +185,7 @@ export default function DiagramOverview(props) {
|
|||||||
label="Name"
|
label="Name"
|
||||||
initValue={idx.name}
|
initValue={idx.name}
|
||||||
trigger="blur"
|
trigger="blur"
|
||||||
|
placeholder="Index name"
|
||||||
/>
|
/>
|
||||||
</Form>
|
</Form>
|
||||||
<Button
|
<Button
|
||||||
@ -229,7 +230,16 @@ export default function DiagramOverview(props) {
|
|||||||
>
|
>
|
||||||
<Collapse>
|
<Collapse>
|
||||||
<Collapse.Panel header="Comment" itemKey="1">
|
<Collapse.Panel header="Comment" itemKey="1">
|
||||||
<TextArea autosize rows={1} />
|
<Form>
|
||||||
|
<Form.TextArea
|
||||||
|
field="comment"
|
||||||
|
noLabel={true}
|
||||||
|
initValue={t.comment}
|
||||||
|
autosize
|
||||||
|
placeholder="Add comment"
|
||||||
|
rows={1}
|
||||||
|
/>
|
||||||
|
</Form>
|
||||||
</Collapse.Panel>
|
</Collapse.Panel>
|
||||||
</Collapse>
|
</Collapse>
|
||||||
</Card>
|
</Card>
|
||||||
|
Loading…
Reference in New Issue
Block a user