You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!-- 商品详情 : cell 组件 -- >
< template >
< view class = "detail-cell-wrap ss-flex ss-col-center ss-row-between" @tap ="onClick" >
< view class = "label-text" > { { label } } < / view >
< view class = "cell-content ss-line-1 ss-flex-1" > { { value } } < / view >
< button class = "ss-reset-button" >
< text class = "_icon-forward right-forwrad-icon" > < / text >
< / button >
< / view >
< / template >
< script setup >
/**
* 详情 cell
*
*/
const props = defineProps ( {
label : {
type : String ,
default : '' ,
} ,
value : {
type : String ,
default : '' ,
} ,
} ) ;
const emits = defineEmits ( [ 'click' ] ) ;
// 点击
const onClick = ( ) => {
emits ( 'click' ) ;
} ;
< / script >
< style lang = "scss" scoped >
. detail - cell - wrap {
padding : 10 rpx 20 rpx ;
// min-height: 60rpx;
. label - text {
font - size : 28 rpx ;
font - weight : 500 ;
color : $dark - 9 ;
margin - right : 38 rpx ;
}
. cell - content {
font - size : 28 rpx ;
font - weight : 500 ;
color : $dark - 6 ;
}
. right - forwrad - icon {
font - size : 28 rpx ;
font - weight : 500 ;
color : $dark - 9 ;
}
}
< / style >