Skip to content

引入组件

局部引入

ts
// parent.vue
const FCell = defineAsyncComponent(() => import('@/components/formaui/f-cell/f-cell.vue'))

基础用法

html
<f-cell @click="click">cell</f-cell>
<f-cell :is-hover="false">无点击效果</f-cell>
<f-cell font-bold>cell</f-cell>
<f-cell show-line>cell</f-cell>
<f-cell show-arrow>cell</f-cell>

插槽

名称说明
default显示内容

属性

名称类型说明默认值
typestring样式类型,可传入[rowcolumn]row
iconTypenumber图标类型,可传入[01234567]0
iconstring自定义图标iconType=0时生效-
textstring自定义文字加载中
textColorstring自定义文字颜色type=row:#888888/type=column:#FFFFFF
fontSizestring自定义文字大小26rpx
bgColorstring自定义背景颜色type=row:transparent/type=column:rgba(0, 0, 0, 0.6)
borderRadiusstring自定义圆角type=column时生效16rpx
isFixedboolean是否固定在屏幕中心false
isMaskboolean是否显示遮罩层isFixed=true时生效false
maskColorstring自定义遮罩颜色rgba(0, 0, 0, 0.3)
marginstring自定义外边距type=row时生效0
paddingstring自定义内边距type=row时生效0

事件

事件名说明回调参数
click点击事件-