1.0.6 • Published 4 years ago

adcell v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

更新历史

1.0.5 增加了showBottomLine属性,可以显示或者隐藏底部分割线 1.0.6 增加了iconRight属性,可以调整图标和文字的间距

获取方式

  • 直接在插件市场下载
  • 通过npm安装:npm i adcell

使用方式

市场下载的在 script 中引用组件

import adCell from '@/component/ADCell/ADCell.vue';
export default {
    components: {adCell}
}

通过npm安装的在 script 中引用组件

import adCell from '@/node_modules/adcell/ADCell.vue';
export default {
    components: {adCell}
}

在 template 中使用组件

<adCell text="普通"></adCell>
<adCell text="点击事件" @click="onClick"></adCell>
<adCell text="隐藏箭头" showArrow="false"></adCell>

属性说明

属性类型默认备注
textString-主标题
detailString-副标题
noteString-子标题1
note1String-子标题2
note2String-子标题3
note3String-子标题4
note4String-子标题5
note5String-子标题6
showArrowBoolean/Stringtrue是否显示右侧箭头
mustInputBoolean/Stringfalse是否显示必填红星
iconString-左侧图标
textColorString#5E5E5E主标题文字颜色
detailColorString#B3B3B3副标题文字颜色
noteColorString#B3B3B3子标题文字颜色
backgroundColorString#FFFFFF组件背景色
swipeOptionsArray-左滑选项集合

事件说明

事件名称说明返回
click点击Item触发的事件-
swipeClick点击左滑出来的按钮e: {index, content.text}
swipeChange滑动状态改变事件open:true/false
1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago