Browse Source

release: 2.5.1

kailong321200875 1 year ago
parent
commit
55b3519f8a
3 changed files with 31 additions and 1 deletions
  1. 4 0
      .vitepress/config.js
  2. 21 0
      components/button.md
  3. 6 1
      components/table.md

+ 4 - 0
.vitepress/config.js

@@ -221,6 +221,10 @@ function createSidebar() {
             text: 'Permission 权限组件(2.1.0+)',
             text: 'Permission 权限组件(2.1.0+)',
             link: '/components/permission',
             link: '/components/permission',
           },
           },
+          {
+            text: 'BaseButton 按钮组件(2.5.1+)',
+            link: '/components/button',
+          },
         ],
         ],
       },
       },
       {
       {

+ 21 - 0
components/button.md

@@ -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` 的所有属性

+ 6 - 1
components/table.md

@@ -246,7 +246,12 @@ const { tableRegister, tableState, tableMethods } = useTable(props: UseTableConf
 | headerAlign | 表头对齐方式 | `string` | `left`/`center`/`right` | left |
 | headerAlign | 表头对齐方式 | `string` | `left`/`center`/`right` | left |
 | data | 表格数据 | `Recordable[]` | - | [] |
 | data | 表格数据 | `Recordable[]` | - | [] |
 | showAction | 是否显示表格操作 | `boolean` | - | false |
 | showAction | 是否显示表格操作 | `boolean` | - | false |
-| preview | 需要展示图片的字段 | `string[]` | - | - |
+| preview | 需要展示图片或者视频的字段 | `string[]` | - | - |
+| customContent | 是否自定义内容 | `boolean` | - | false |
+| cardBodyStyle | 卡片内容样式 | `CSSProperties` | - | - |
+| cardBodyClass | 卡片内容类名 | `string` | - | - |
+| cardWrapStyle | 卡片容器样式 | `CSSProperties` | - | - |
+| cardWrapClass | 卡片容器类名 | `string` | - | - |
 
 
 ### Columns<span id="Columns"></span>
 ### Columns<span id="Columns"></span>