Skip to content

Commit

Permalink
feat: 工作流隐藏分组
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft authored and jianbing.chen committed Dec 18, 2024
1 parent e73590f commit 9eb3e99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions packages/editor/src/components/Searchbar/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ const SearchBar = memo((props: any) => {
<div className={styles.searchBar}>
<div className={styles.searchBarForm}>
<Form form={form} layout="inline" initialValues={{ type: 1 }}>
<Form.Item name="type">
<Radio.Group options={options} onChange={submit} optionType="button" buttonStyle="solid" />
</Form.Item>
{props.showGroup === false ? null : (
<Form.Item name="type">
<Radio.Group options={options} onChange={submit} optionType="button" buttonStyle="solid" />
</Form.Item>
)}

<Form.Item name="keyword" style={{ width: 200 }}>
<Input placeholder={`请输入${from}名称`} onPressEnter={submit} />
</Form.Item>
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/pages/home/workflow/WorkFlowList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default function WorkFlow() {
return (
<>
<Layout.Content className={styles.workflow}>
<SearchBar form={form} from="工作流模板" submit={handleSearch} refresh={getList} onCreate={handleCreate} />
<SearchBar form={form} from="工作流模板" showGroup={false} submit={handleSearch} refresh={getList} onCreate={handleCreate} />
{total > 0 || loading ? (
<>
<div className={styles.pagesContent}>
Expand Down

0 comments on commit 9eb3e99

Please sign in to comment.