diff --git a/src/ActionGroup/demos/basic.tsx b/src/ActionGroup/demos/basic.tsx index 961d7446..281124b8 100644 --- a/src/ActionGroup/demos/basic.tsx +++ b/src/ActionGroup/demos/basic.tsx @@ -1,6 +1,3 @@ -/** - * title: 基础使用 - */ import { ActionGroup } from '@ant-design/pro-editor'; export default () => { diff --git a/src/ActionGroup/demos/config.tsx b/src/ActionGroup/demos/config.tsx index 575c067c..3a8940fc 100644 --- a/src/ActionGroup/demos/config.tsx +++ b/src/ActionGroup/demos/config.tsx @@ -1,7 +1,3 @@ -/** - * title: 配置使用 - * description: 通过配置 `items` 渲染整个内容,你可以通过在 items 声明 type 为 divider 来渲染一个分隔符 - */ import { CopyOutlined, DragOutlined, ZoomInOutlined, ZoomOutOutlined } from '@ant-design/icons'; import { ActionGroup } from '@ant-design/pro-editor'; import { message } from 'antd'; diff --git a/src/ActionGroup/demos/custom.tsx b/src/ActionGroup/demos/custom.tsx index ed50f37a..acbf7c05 100644 --- a/src/ActionGroup/demos/custom.tsx +++ b/src/ActionGroup/demos/custom.tsx @@ -1,7 +1,3 @@ -/** - * title: 自定义 - * description: 通过 `render` 可以自定义渲染特殊的操作内容 - */ import { ActionGroup, ActionIcon, ActionIconGroupItemType } from '@ant-design/pro-editor'; import { Card, Input, Rate, Switch } from 'antd'; diff --git a/src/ActionGroup/demos/dropMenu.tsx b/src/ActionGroup/demos/dropMenu.tsx index fbc44e12..a4d7a967 100644 --- a/src/ActionGroup/demos/dropMenu.tsx +++ b/src/ActionGroup/demos/dropMenu.tsx @@ -1,8 +1,3 @@ -/** - * title: dropdown - * description: 通过配置 `dropdownMenu` 可以在尾部渲染一个下拉内容 - */ - import { CopyOutlined, DragOutlined, ZoomInOutlined, ZoomOutOutlined } from '@ant-design/icons'; import { ActionGroup } from '@ant-design/pro-editor'; import { message } from 'antd'; diff --git a/src/ActionGroup/demos/type.tsx b/src/ActionGroup/demos/type.tsx index 4968cfaf..97f12db6 100644 --- a/src/ActionGroup/demos/type.tsx +++ b/src/ActionGroup/demos/type.tsx @@ -1,7 +1,4 @@ import { CopyOutlined, DragOutlined, ZoomInOutlined, ZoomOutOutlined } from '@ant-design/icons'; -/** - * title: 模式配置 - */ import { ActionGroup } from '@ant-design/pro-editor'; import { InputNumber, Segmented, Space } from 'antd'; import { useState } from 'react'; diff --git a/src/ActionGroup/demos/withPanel.tsx b/src/ActionGroup/demos/withPanel.tsx index 05eefce2..8a0a12fd 100644 --- a/src/ActionGroup/demos/withPanel.tsx +++ b/src/ActionGroup/demos/withPanel.tsx @@ -1,8 +1,3 @@ -/** - * title: 浮动面板中使用 - * description: 配合 DraggablePanel 可以使得整个面板可浮动拖拽 - */ - import type { Position } from '@ant-design/pro-editor'; import { ActionGroup, DraggablePanel } from '@ant-design/pro-editor'; import { useLocalStorageState } from 'ahooks'; diff --git a/src/ActionGroup/index.en-US.md b/src/ActionGroup/index.en-US.md index 6e791016..fbb5dc18 100644 --- a/src/ActionGroup/index.en-US.md +++ b/src/ActionGroup/index.en-US.md @@ -17,7 +17,12 @@ When you need a general panel to carry a series of global tools such as "full sc ## Code Demo - + + + + + + ## API diff --git a/src/ActionGroup/index.zh-CN.md b/src/ActionGroup/index.zh-CN.md index 760366d6..debe9d3c 100644 --- a/src/ActionGroup/index.zh-CN.md +++ b/src/ActionGroup/index.zh-CN.md @@ -15,11 +15,13 @@ demo: ## 代码演示 - - - - - + + + +> +> ## API diff --git a/src/ActionIcon/demos/preset.tsx b/src/ActionIcon/demos/preset.tsx index 6c79eb92..c62047bb 100644 --- a/src/ActionIcon/demos/preset.tsx +++ b/src/ActionIcon/demos/preset.tsx @@ -1,7 +1,3 @@ -/** - * title: 预设 - * description: 一些编辑器常用按钮的预设 - */ import { CollapseAction, DeleteAction, EditAction, HandleAction } from '@ant-design/pro-editor'; import { Space } from 'antd'; diff --git a/src/ActionIcon/index.en-US.md b/src/ActionIcon/index.en-US.md index 12770720..117fb85a 100644 --- a/src/ActionIcon/index.en-US.md +++ b/src/ActionIcon/index.en-US.md @@ -14,7 +14,8 @@ It is a encapsulation of antd Button, allowing icons to have responsive button a ## Code Example - + + ## API