Commit 5759cf40 authored by 罗林杰's avatar 罗林杰

Merge remote-tracking branch 'origin/master'

parents 5e41321f fd669da0
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
// } // }
localStorage.setItem(localKey, String(Date.now())); localStorage.setItem(localKey, String(Date.now()));
const value = ref('服务平台'); const value = ref();
const data = ref([ const data = ref([
{ {
payload: { payload: {
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
payload: { payload: {
key: 6, key: 6,
}, },
value: '数据共享交换', value: '数据要素',
}, },
]); ]);
...@@ -97,16 +97,17 @@ ...@@ -97,16 +97,17 @@
<template #label="{ payload, value: segmentValue }"> <template #label="{ payload, value: segmentValue }">
<div <div
@click="handleSelect(payload.key, segmentValue)" @click="handleSelect(payload.key, segmentValue)"
:class="{ 'selected-item': segmentValue === value }"
style=" style="
font-size: 18px; font-size: 16px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 100%; width: 70px;
height: 35px; height: 35px;
" "
> >
<span> {{ segmentValue }} </span> <span>{{ segmentValue }}</span>
</div> </div>
</template> </template>
</Segmented> </Segmented>
...@@ -116,3 +117,10 @@ ...@@ -116,3 +117,10 @@
<!-- }}</a-button>--> <!-- }}</a-button>-->
</div> </div>
</template> </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