Commit 9a46c963 authored by chenjiahao's avatar chenjiahao

修改主菜单切换样式

parent 4ba5d8ed
......@@ -26,7 +26,7 @@
// }
localStorage.setItem(localKey, String(Date.now()));
const value = ref('服务平台');
const value = ref();
const data = ref([
{
payload: {
......@@ -56,7 +56,7 @@
payload: {
key: 6,
},
value: '数据共享交换',
value: '数据要素',
},
]);
......@@ -97,16 +97,17 @@
<template #label="{ payload, value: segmentValue }">
<div
@click="handleSelect(payload.key, segmentValue)"
:class="{ 'selected-item': segmentValue === value }"
style="
font-size: 18px;
font-size: 16px;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
width: 70px;
height: 35px;
"
>
<span> {{ segmentValue }} </span>
<span>{{ segmentValue }}</span>
</div>
</template>
</Segmented>
......@@ -116,3 +117,10 @@
<!-- }}</a-button>-->
</div>
</template>
<style lang="less" scoped>
/deep/ .ant-segmented-item-selected {
background-color: #007bff;
color: white;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment