sunui-cell 用于点击效果复用(组件仅1kb)
v1.0.0 于 2020.01.09更新
参数介绍:
3. styles:组件样式,可按照行内样式编写(无需父组件传值子组件那样死板) - 见示例
示例代码:
<template> <view class="index-page"> <view v-for="(item,index) in 10" :key='index'> <sunui-cell :hover="true" styles="margin-top: 10rpx;border-top:1px solid #eee;border-bottom:1px solid #eee;"> <view style="padding: 12px 15px;"> 点击hover效果{{index}} </view> </sunui-cell> </view> </view> </template> <script> import sunUiCell from '@/components/sunui-cell/sunui-cell.vue'; export default { data() { return {} }, components: { 'sunui-cell': sunUiCell }, onShow() { }, onLoad() {}, methods: {} } </script> <style> </style>
点击下载示例:sunui-cell
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。