Skip to content

Commit

Permalink
release: 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kailong321200875 committed Dec 10, 2023
1 parent 41ccf4a commit 55b3519
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ function createSidebar() {
text: 'Permission 权限组件(2.1.0+)',
link: '/components/permission',
},
{
text: 'BaseButton 按钮组件(2.5.1+)',
link: '/components/button',
},
],
},
{
Expand Down
21 changes: 21 additions & 0 deletions components/button.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# BaseButton 按钮组件

二次封装 `ElButton` ,支持修改主题色

BaseButton 组件位于 [src/components/Button](https://github.com/kailong321200875/vue-element-plus-admin/tree/master/src/components/Button)

BaseButton 已经全局引入,无需在手动引入


### 基本用法

```vue
<template>
<BaseButton type="primary"> Add </BaseButton>
</template>
```

## BaseButton 属性<span id="BaseButton"></span>

支持 `ElButton` 的所有属性
7 changes: 6 additions & 1 deletion components/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,12 @@ const { tableRegister, tableState, tableMethods } = useTable(props: UseTableConf
| headerAlign | 表头对齐方式 | `string` | `left`/`center`/`right` | left |
| data | 表格数据 | `Recordable[]` | - | [] |
| showAction | 是否显示表格操作 | `boolean` | - | false |
| preview | 需要展示图片的字段 | `string[]` | - | - |
| preview | 需要展示图片或者视频的字段 | `string[]` | - | - |
| customContent | 是否自定义内容 | `boolean` | - | false |
| cardBodyStyle | 卡片内容样式 | `CSSProperties` | - | - |
| cardBodyClass | 卡片内容类名 | `string` | - | - |
| cardWrapStyle | 卡片容器样式 | `CSSProperties` | - | - |
| cardWrapClass | 卡片容器类名 | `string` | - | - |

### Columns<span id="Columns"></span>

Expand Down

0 comments on commit 55b3519

Please sign in to comment.