This commit is contained in:
aihe 2024-06-03 18:12:01 +08:00
parent a2fffdd7da
commit 952572a84c

View File

@ -1,6 +1,6 @@
<template>
<view>
<u-row justify="start">
<u-row justify="start" :custom-style="conStyle" >
<view v-for="(item) in list" @click="handleChangeTab(item)"
:class="`sta-item ${value == item.val?'active':''} stai-${mode}`">
<view class="stai-text">
@ -17,6 +17,12 @@
<script>
export default {
computed: {
conStyle() {
let sty = `overflow: auto;gap:30rpx;`;
return `${sty};${this.customStyle}`
}
},
props: {
list: {
default () {
@ -32,6 +38,11 @@
default () {
return 'primary' // primary info
}
},
customStyle: {
default() {
return ''
}
}
},
data() {
@ -58,7 +69,7 @@
<style scoped lang="scss">
.sta-item {
flex: 1;
flex-shrink: 0;
padding: 0 0 30rpx 0;
margin-right: 30rpx;
position: relative;