菜单内容(3)

文档版本:1.1.0

组件名:BhtContentThree

描述

菜单内容组件,用于展示第三种内容列表布局。

效果

菜单内容(3) 效果图

示例

<bht-content-three></bht-content-three>

代码

<bht-content-three :ref="item.id" :item="item"></bht-content-three>

<BhtContentThree :ref="item.id" :item="item"></BhtContentThree>

参数

参数类型必填默认值说明
itemObject-组件配置信息。

组件配置项

key名称类型默认值说明
noContentShow没有内容显示stringtrue请输入是否 没有内容显示
titleStyle标题样式stringfont-size: 20px;请输入 标题样式
imgStyle图片样式stringwidth: 360px; height: 260px;请输入 图片样式
contentStyle内容样式stringline-height: 35px;请输入 内容样式
name菜单名称query-请输入菜单名称
groupName分组名称query-请输入分组名称
title内容标题query-请输入内容标题
menuPage.current菜单页码query1请输入 菜单页码
menuPage.size菜单条数query10请输入的菜单条数
contentPage.current内容页码query1请输入 内容页码
contentPage.size内容条数query10请输入的内容条数
orderByColumn排序字段querycreateDatetime请输入排序字段
isAsc排序方式querydesc请输入排序方式(可选值:desc、asc

通用布局配置

key名称类型默认值说明
componentWidth组件宽度string100%支持 100%、320px、50vw
componentHeight组件高度string-可选,例如 360px、50vh
componentPositionMode布局模式selectflowflow、absolute、fixed
componentPositionXX 位置string-自由/固定模式,例如 120px
componentPositionYY 位置string-自由/固定模式,例如 80px
componentZIndex层级string-例如 10
componentHorizontalAlign水平对齐selectcenterleft、center、right、stretch
componentVerticalAlign垂直对齐selecttoptop、middle、bottom、stretch
componentLocked锁定位置selectfalsetrue、false
componentRelativeTo参照组件 IDselect-可选择其他已有组件的 id 和名称
componentRelativePlacement相对位置select-right、left、bottom、top
componentRelativeGap相对间距string12px例如 12px

通用样式配置

key名称类型默认值说明
componentMargin外边距string-例如 16px 或 12px 24px
componentPadding内边距string-例如 16px 或 12px 24px
componentMinWidth最小宽度string-例如 240px
componentMaxWidth最大宽度string-例如 1200px 或 none
componentMinHeight最小高度string-例如 120px
componentMaxHeight最大高度string-例如 720px 或 none
componentBackgroundColor背景颜色color-例如 #ffffff 或 rgba(255,255,255,.9)
componentBackgroundImage背景图片string-例如 url(https://...) 或 linear-gradient(...)
componentBackgroundSize背景尺寸string-例如 cover、contain、100% 100%
componentBackgroundPosition背景位置string-例如 center、left top
componentBackgroundRepeat背景重复select-no-repeat、repeat、repeat-x、repeat-y
componentBorderColor边框颜色color-请选择边框颜色
componentBorderWidth边框宽度string-例如 1px 或 1px 0 0
componentBorderStyle边框样式select-solid、dashed、dotted、none
componentBorderRadius圆角string-例如 8px 或 12px 12px 0 0
componentBoxShadow阴影string-例如 0 12px 32px rgba(15,23,42,.12)
componentOpacity透明度string-0 到 1,例如 .95
componentOverflow溢出处理select-visible、hidden、auto、clip
componentTextAlign文本对齐select-left、center、right、justify
componentColor文字颜色color-请选择文字颜色
componentBoxSizing盒模型selectborder-boxborder-box、content-box
componentFilter滤镜string-例如 blur(2px)、grayscale(1)
componentBackdropFilter背景滤镜string-例如 blur(12px)
componentCustomStyle自定义 CSStextarea-例如 transform: translateY(8px);

引入

import { BhtContentThree } from '@behappyto/cms-ui-vue3'