Skip to content

Commit

Permalink
style: 优化格式 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed May 6, 2024
1 parent 056b00b commit bccea52
Show file tree
Hide file tree
Showing 49 changed files with 304 additions and 658 deletions.
7 changes: 5 additions & 2 deletions CONTRIBUTING.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CONTRIBUTING

> 暂未翻译。
>
> Not yet translated.
English | [Chinese](https://github.com/FightingDesign/fighting-design/blob/master/CONTRIBUTING.md)

## 👋 写在前面
Expand Down Expand Up @@ -52,8 +56,7 @@ pnpm dev:docs

编辑器强烈推荐使用 [Visual Studio Code](https://code.visualstudio.com/),内置插件请务必安装以下几款:

- [Vue Language Features (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) Vue3 官方开发插件
- [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) 用于支持在 TS 中 import `*.vue` 文件
- [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) Vue3 官方开发插件
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) 代码格式校验,如果不安装,那么 [fighting-eslint-config](https://github.com/FightingDesign/fighting-design/blob/master/packages/fighting-eslint-config) 则不生效
- [Code Spell Checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) 用于检测单词拼写错误

Expand Down
7 changes: 3 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CONTRIBUTING
# 贡献指南

English | [Chinese](https://github.com/FightingDesign/fighting-design/blob/master/CONTRIBUTING.md)
[English](https://github.com/FightingDesign/fighting-design/blob/master/CONTRIBUTING.en-US.md) | Chinese

## 👋 写在前面

Expand Down Expand Up @@ -52,8 +52,7 @@ pnpm dev:docs

编辑器强烈推荐使用 [Visual Studio Code](https://code.visualstudio.com/),内置插件请务必安装以下几款:

- [Vue Language Features (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) Vue3 官方开发插件
- [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) 用于支持在 TS 中 import `*.vue` 文件
- [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) Vue3 官方开发插件
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) 代码格式校验,如果不安装,那么 [fighting-eslint-config](https://github.com/FightingDesign/fighting-design/blob/master/packages/fighting-eslint-config) 则不生效
- [Code Spell Checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) 用于检测单词拼写错误

Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
- 👍 Maintained by the community team
- ❤️ Developed according to actual demand
- 📃 High quality detailed documentation
- 📌 Improve RFC
- ☝️ Put forward demands and keep improving
- 🌍 More configuration options & flexible components
- 🛠 More features are under development
Expand Down Expand Up @@ -71,7 +70,9 @@ import App from './App.vue'
import FightingDesign from 'fighting-design'
import 'fighting-design/dist/index.css'

createApp(App).use(FightingDesign).mount('#app')
const app = createApp(App)
app.use(FightingDesign)
app.mount('#app')
```

## 🪂 Quick experience
Expand Down Expand Up @@ -132,7 +133,7 @@ createApp(App).use(FightingDesign).mount('#app')

Add WeChat & please note the `Github` username

<img width="200" height="200" src="https://raw.githubusercontent.com/Tyh2001/images/master/my/we-chat.jpg" >
<img width="200" height="200" src="https://raw.githubusercontent.com/Tyh2001/images/master/my/we-chat-2.jpg" >

## 💌 Special Thanks

Expand Down
8 changes: 5 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
- 👍 社区团队维护
- ❤️ 根据实际需求开发
- 📃 优质详细的文档
- 📌 完善 RFC
- ☝️ 提出需求,不断完善
- 🌍 更多配置项,灵活组件
- 🛠 更多特性开发中
Expand Down Expand Up @@ -68,10 +67,13 @@ yarn add --save-dev fighting-design
```ts
import { createApp } from 'vue'
import App from './App.vue'

import FightingDesign from 'fighting-design'
import 'fighting-design/dist/index.css'

createApp(App).use(FightingDesign).mount('#app')
const app = createApp(App)
app.use(FightingDesign)
app.mount('#app')
```

## 🪂 快速体验
Expand Down Expand Up @@ -132,7 +134,7 @@ createApp(App).use(FightingDesign).mount('#app')

添加微信请备注 `Github` 用户名

<img width="200" height="200" src="https://raw.githubusercontent.com/Tyh2001/images/master/my/we-chat.jpg" >
<img width="200" height="200" src="https://raw.githubusercontent.com/Tyh2001/images/master/my/we-chat-2.jpg" >

## 💌 特别感谢

Expand Down
4 changes: 0 additions & 4 deletions docs/components/date-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
- [源代码](https://github.com/FightingDesign/fighting-design/tree/master/packages/fighting-design/date-picker)
- [文档编辑](https://github.com/FightingDesign/fighting-design/blob/master/docs/components/date-picker.md)

:::danger
组件仍在测试阶段,高频更新中,部分参数暂不稳定!
:::

## 基本使用

使用 `v-model:date` 绑定一个值
Expand Down
4 changes: 0 additions & 4 deletions docs/components/input-number.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
- [源代码](https://github.com/FightingDesign/fighting-design/tree/master/packages/fighting-design/input-number)
- [文档编辑](https://github.com/FightingDesign/fighting-design/blob/master/docs/components/input-number.md)

:::danger
组件仍在测试阶段,高频更新中,部分参数暂不稳定!
:::

## 基本使用

使用 `v-model` 绑定一个值,`model` 可配置不同的模式
Expand Down
4 changes: 0 additions & 4 deletions docs/components/loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
- [源代码](https://github.com/FightingDesign/fighting-design/tree/master/packages/fighting-design/loading)
- [文档编辑](https://github.com/FightingDesign/fighting-design/blob/master/docs/components/loading.md)

:::danger
组件仍在测试阶段,高频更新中,部分参数暂不稳定!
:::

## 基本使用

可以在指定元素上通过`fighting-design`内置指令 `v-loading` 来实现加载状态
Expand Down
4 changes: 0 additions & 4 deletions docs/components/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
- [源代码](https://github.com/FightingDesign/fighting-design/tree/master/packages/fighting-design/menu)
- [文档编辑](https://github.com/FightingDesign/fighting-design/blob/master/docs/components/menu.md)

:::danger
组件仍在测试阶段,高频更新中,部分参数暂不稳定!
:::

## 基本使用

::: demo
Expand Down
2 changes: 1 addition & 1 deletion docs/components/notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
| `background` | 自定义背景色 | string | —— | —— |
| `placement` | 弹出位置 | <a href="#notificationplacement">NotificationPlacement</a> | `top-left` `top-right` `bottom-left` `bottom-right` | top-right |
| `offset` | 偏移距离 | number | —— | 20 |
| `close-btn` | 自定义关闭按钮 | string / <a href="/components/interface.html#fightingicon">FightingIcon</a> | —— | —— |
| `close-btn` | 自定义关闭按钮 | string / <a href="/components/interface.html#fightingicon">FightingIcon</a> | —— | —— |
| `z-index` | 层级 | boolean | —— | 1000 |
| `on-close` | 关闭之后回调 | <a href="/components/message.html#messageclose">MessageClose</a> | —— | —— |

Expand Down
4 changes: 0 additions & 4 deletions docs/components/pagination.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
- [源代码](https://github.com/FightingDesign/fighting-design/tree/master/packages/fighting-design/pagination)
- [文档编辑](https://github.com/FightingDesign/fighting-design/blob/master/docs/components/pagination.md)

:::danger
组件仍在测试阶段,高频更新中,部分参数暂不稳定!
:::

## 基本使用

`v-model:current` 属性来绑定当前页码
Expand Down
4 changes: 0 additions & 4 deletions docs/components/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
- [源代码](https://github.com/FightingDesign/fighting-design/tree/master/packages/fighting-design/slider)
- [文档编辑](https://github.com/FightingDesign/fighting-design/blob/master/docs/components/slider.md)

:::danger
组件仍在测试阶段,高频更新中,部分参数暂不稳定!
:::

## 基本使用

使用 `v-model` 绑定一个数字
Expand Down
4 changes: 0 additions & 4 deletions docs/components/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
- [源代码](https://github.com/FightingDesign/fighting-design/tree/master/packages/fighting-design/table)
- [文档编辑](https://github.com/FightingDesign/fighting-design/blob/master/docs/components/table.md)

:::danger
组件仍在测试阶段,高频更新中,部分参数暂不稳定!
:::

## 基本使用

`data` 属性绑定需要展示的数据
Expand Down
4 changes: 0 additions & 4 deletions docs/components/time-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
- [源代码](https://github.com/FightingDesign/fighting-design/tree/master/packages/fighting-design/time-picker)
- [文档编辑](https://github.com/FightingDesign/fighting-design/blob/master/docs/components/time-picker.md)

:::danger
组件仍在测试阶段,高频更新中,部分参数暂不稳定!
:::

## 基本使用

使用 `v-model:time` 绑定一个值
Expand Down
Loading

0 comments on commit bccea52

Please sign in to comment.