1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <template>
- <view class="bg-white my-1 p-2 item rounded-md overflow-hidden border border-light shadow-sm" @tap='onTapItem' >
- <slot name="title">
- <view class="font-weight-bold text-dark font-md">{{title}}</view>
- </slot>
- <slot name="subTitle">
- <view class="font-weight-bold text-muted font-md">{{subTitle}}</view>
- </slot>
- <view class="text-muted">
- <slot></slot>
- </view>
- </view>
- </template>
- <script>
- export default {
- props:{
- title:{
- type:String,
- default:""
- },
- subTitle:{
- type:String,
- default:""
- }
- },
- methods:{
- onTapItem () {
- this.$emit('click')
- }
- }
- }
- </script>
- <style scoped lang="scss">
- /* @import url("@/common/styles/free.css"); */
- .item{
- border-left:6px solid var(--info);
- }
- </style>
|