BhtContentOne
文档版本:1.0.0
描述
菜单内容组件,用于展示菜单及其内容列表。
效果
![]()
示例
<bht-content-one></bht-content-one>
代码
<bht-content-one :ref="item.id" :item="item"></bht-content-one>
或者
<BhtContentOne :ref="item.id" :item="item"></BhtContentOne>
参数
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| item | Object | 否 | - | 组件配置信息。 |
配置项
item.config.data 支持的常用字段如下:
| key | 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|---|
| noContentShow | 没有内容显示 | string | true | 请输入是否 没有内容显示 |
| titleStyle | 标题样式 | string | font-size: 20px; | 请输入 标题样式 |
| listStyle | 列表样式 | string | max-width: 420px; | 请输入 列表样式 |
| imgHeight | 图片高度 | string | 180px | 请输入 图片高度 |
| imgWidth | 图片宽度 | string | 180px | 请输入 图片宽度 |
| contentStyle | 内容样式 | string | color: #646a73; font-size: 14px; | 请输入 内容样式 |
| name | 菜单名称 | query | - | 请输入 菜单名称 |
| groupName | 分组名称 | query | - | 请输入 分组名称 |
| menuPage.current | 菜单页码 | query | 1 | 请输入 菜单页码 |
| menuPage.size | 菜单条数 | query | 2 | 请输入 菜单条数 |
| contentPage.current | 内容页码 | query | 1 | 请输入 内容页码 |
| contentPage.size | 内容条数 | query | 4 | 请输入 内容条数 |
| orderByColumn | 排序字段 | query | createDatetime | 请输入 排序字段 |
| isAsc | 排序方式 | query | desc | 请输入排序方式(可选值:desc、asc |
引入
import { BhtContentOne } from '@behappyto/cms-ui-vue3'