Skip to content

Commit

Permalink
add view comment
Browse files Browse the repository at this point in the history
  • Loading branch information
HSunboy committed Feb 28, 2024
1 parent 0d7ef52 commit 02f7acb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/page/Workspace/components/ShowViewBaseInfoForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const { Option } = Select;

class ShowViewBaseInfoForm extends Component<IProps> {
public render() {
const { viewName, checkOption, definer } = this.props.model ?? {};
const { viewName, checkOption, definer, comment } = this.props.model ?? {};
const formItemLayout = {
labelCol: { span: 6 },
wrapperCol: { span: 14 },
Expand All @@ -42,6 +42,7 @@ class ShowViewBaseInfoForm extends Component<IProps> {
viewName: viewName,
checkOption: checkOption || CheckOption.NONE,
definer: definer,
comment,
};

if (!viewName) {
Expand Down Expand Up @@ -77,6 +78,9 @@ class ShowViewBaseInfoForm extends Component<IProps> {
>
<Input disabled={true} />
</Form.Item>
<Form.Item name="comment" label={'注释'}>
<Input.TextArea autoSize={{ minRows: 3, maxRows: 3 }} disabled={true} />
</Form.Item>
</Form>
);
}
Expand Down

0 comments on commit 02f7acb

Please sign in to comment.