Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update docs #50

Merged
merged 2 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/guide/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ ProEditor 定位轻量级编辑器 UI 框架,期望为「编辑」场景提供
## 安装

```bash
npm install @ant-design/pro-editor -S
# @ant-design/pro-editor 基于 antd 和 antd-style,需要在项目中安装
$ npm install antd antd-style -S
$ npm install @ant-design/pro-editor -S
```

### 使用组件
Expand Down
8 changes: 0 additions & 8 deletions src/FieldIcon/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ group: 基础组件

### APIFieldType 字段类型枚举

`@alipay/studio-oneapi-sdk` 中导出了 API 字段类型的枚举,你可以这样使用:

```tsx | pure
import { APIFieldType } from '@alipay/studio-oneapi-sdk';

<FieldIcon type={APIFieldType.any} />;
```

| 类型 | 字段说明 |
| :------------- | :----------- |
| `integer` | 整数 |
Expand Down
4 changes: 2 additions & 2 deletions src/Highlight/demos/config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/antd/Segmented.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,10 @@ export interface SegmentedProps<T = string>
/**
* 选项值
*/
options: { label: ReactNode; value: T }[];
options: { label: ReactNode; value: T; icon?: React.ReactNode }[];
}

export const Segmented: <T = string>(
props: SegmentedProps<T>,
) => JSX.Element = (props) => {
export const Segmented: <T = string>(props: SegmentedProps<T>) => JSX.Element = (props) => {
const { styles, cx } = useStyles();

return (
Expand Down