Skip to content

Commit

Permalink
docs: 优化文档顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft committed Aug 25, 2024
1 parent cc5175e commit 404b42c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/docs/src/lib/LoginForm.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ config.js 主要属性值有:

(我们可以先将初始化的代码全部删除,每个文件保留最基本的格式)

1. `index.jsx`
#### 一、 `index.jsx`

```jsx
export default ({ id, type, config }, ref) => {
return <div data-id={id} data-type={type}></div>;
};
```

2. `config.js`
#### 二、 `config.js`

```js
export default {
Expand All @@ -68,9 +68,7 @@ export default {
};
```

3.

### 组件结构编写
#### 三、 组件结构编写

`index.jsx` 文件中书写组件结构。

Expand Down Expand Up @@ -182,7 +180,7 @@ export default ({ id, type, config, onClick }, ref) => {
};
```

### `config` 配置
#### 四、 `config` 配置

`config` 是定义属性值以及属性值的修改方式。

Expand Down

0 comments on commit 404b42c

Please sign in to comment.