-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* title: 隐藏删除按钮 | ||
* description: 你可以设置 `hideRemove` 属性来隐藏默认的删除按钮 | ||
* compact: true | ||
*/ | ||
import { SortableList } from '@ant-design/pro-editor'; | ||
import { useTheme } from 'antd-style'; | ||
import { Flexbox } from 'react-layout-kit'; | ||
|
||
const list = ['hello', 'world']; | ||
|
||
const Demo = () => { | ||
const token = useTheme(); | ||
return ( | ||
<Flexbox padding={24} style={{ background: token.colorBgLayout }}> | ||
<SortableList initialValues={list} hideRemove /> | ||
</Flexbox> | ||
); | ||
}; | ||
|
||
export default Demo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters