巡检点上传图片修正
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
class="tabs_items"
|
||||
:class="{
|
||||
active: item.value === currentActiveValue,
|
||||
line: showBottomLine
|
||||
line: showBottomLine && item.value === currentActiveValue
|
||||
}"
|
||||
>
|
||||
{{ item.label }}
|
||||
@@ -62,7 +62,6 @@ const tabs = computed<TabItem[]>(() => {
|
||||
// ======================
|
||||
const currentActiveValue = ref<string | number>(props.activeValue ?? tabs.value[0]?.value ?? '')
|
||||
|
||||
console.log(currentActiveValue)
|
||||
// 事件
|
||||
const emit = defineEmits<{
|
||||
update: [value: string | number]
|
||||
@@ -90,22 +89,21 @@ const handleTabs = (item: TabItem) => {
|
||||
margin-right: 60rpx;
|
||||
font-size: 28rpx;
|
||||
color: #222222;
|
||||
position: relative;
|
||||
&.active {
|
||||
color: #4d5dfa;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
&.line {
|
||||
&::after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 8rpx;
|
||||
background: linear-gradient(180deg, #4d5dfa 0%, #bac0fa 100%);
|
||||
border-radius: 4rpx;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
&.line {
|
||||
&::after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 8rpx;
|
||||
background: linear-gradient(180deg, #4d5dfa 0%, #bac0fa 100%);
|
||||
border-radius: 4rpx;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user