Skip to content

Commit

Permalink
📝 docs: update some demos
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Nov 15, 2023
1 parent b2694ed commit 1d919e5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
3 changes: 3 additions & 0 deletions src/ActionIcon/demos/basic.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* title: Basic
*/
import { SmileOutlined } from '@ant-design/icons';
import { ActionIcon } from '@ant-design/pro-editor';

Expand Down
11 changes: 5 additions & 6 deletions src/ActionIcon/demos/preset.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import {
CollapseAction,
DeleteAction,
EditAction,
HandleAction,
} from '@ant-design/pro-editor';
/**
* title: 预设
* description: 一些编辑器常用按钮的预设
*/
import { CollapseAction, DeleteAction, EditAction, HandleAction } from '@ant-design/pro-editor';
import { Space } from 'antd';

export default () => (
Expand Down
9 changes: 2 additions & 7 deletions src/ActionIcon/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ atomId: ActionIcon
nav:
title: 基础组件
order: 2
demo:
cols: 2
---

# ActionIcon 动作图标
Expand All @@ -15,14 +17,7 @@ nav:

## 代码演示

### Basic

<code src="./demos/basic.tsx" ></code>

### 预设

一些编辑器常用按钮的预设

<code src="./demos/preset.tsx" ></code>

## API
Expand Down

0 comments on commit 1d919e5

Please sign in to comment.