Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
5b3ca7bb
提交
5b3ca7bb
authored
12月 30, 2024
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
style(components/echarts/grouplegend): 修复样式问题
宽度改变后圆圈跑出去了的样式问题
上级
6b123254
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
49 行增加
和
46 行删除
+49
-46
index.vue
src/components/ECharts/GroupLegend/index.vue
+49
-46
没有找到文件。
src/components/ECharts/GroupLegend/index.vue
浏览文件 @
5b3ca7bb
...
...
@@ -5,9 +5,12 @@
v-for=
"item in legendData"
:class=
"item.orient"
>
<div
v-for=
"o in item.data"
:class=
"[o.type, o.effective ? '' : 'dis', o.show? '' : 'none']"
:style=
"
{'--color': o.color}"
@click="handleClick(o)">
{{
o
.
name
}}
</div>
:class=
"[o.type, o.effective ? '' : 'dis', o.show ? '' : 'none']"
:style=
"
{ '--color': o.color }"
@click="handleClick(o)">
<span
class=
"e-icon"
></span>
<span>
{{
o
.
name
}}
</span>
</div>
</div>
</div>
</
template
>
...
...
@@ -95,8 +98,7 @@ export default {
font-size
:
12px
;
cursor
:
pointer
;
&
:before
{
content
:
""
;
.e-icon
{
display
:
block
;
width
:
28px
;
height
:
15px
;
...
...
@@ -112,30 +114,30 @@ export default {
align-items
:
center
;
font-size
:
12px
;
cursor
:
pointer
;
position
:
relative
;
&
:before
{
content
:
""
;
.e-icon
{
position
:
relative
;
display
:
block
;
width
:
28px
;
height
:
2px
;
background
:
var
(
--
color
);
border-radius
:
3px
;
margin-right
:
5px
;
}
&
:after
{
content
:
""
;
display
:
block
;
width
:
14px
;
height
:
14px
;
background-color
:
white
;
box-sizing
:
border-box
;
border
:
3px
solid
var
(
--
color
);
border-radius
:
50%
;
position
:
absolute
;
top
:
0
.5px
;
left
:
7
.45px
;
&
:before
{
content
:
""
;
display
:
block
;
width
:
14px
;
height
:
14px
;
background-color
:
white
;
box-sizing
:
border-box
;
border
:
3px
solid
var
(
--
color
);
border-radius
:
50%
;
position
:
absolute
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
}
}
}
...
...
@@ -145,18 +147,28 @@ export default {
align-items
:
center
;
font-size
:
12px
;
cursor
:
pointer
;
position
:
relative
;
padding-left
:
7
.75px
;
&
:before
{
content
:
""
;
.e-icon
{
position
:
relative
;
display
:
block
;
width
:
14px
;
height
:
14px
;
background
:
white
;
border
:
3px
solid
var
(
--
color
);
border-radius
:
50%
;
margin-right
:
10px
;
width
:
28px
;
height
:
0px
;
margin-right
:
5px
;
&
:before
{
content
:
""
;
display
:
block
;
width
:
14px
;
height
:
14px
;
background-color
:
white
;
box-sizing
:
border-box
;
border
:
3px
solid
var
(
--
color
);
border-radius
:
50%
;
position
:
absolute
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
}
}
}
...
...
@@ -164,26 +176,17 @@ export default {
.dis
{
color
:
lightgray
!
important
;
&
:before
{
.e-icon
{
background
:
lightgray
!
important
;
border
:
3px
solid
lightgray
!
important
;
}
&
:after
{
border
:
3px
solid
lightgray
!
important
;
}
}
/* 重写圆圈 */
.circle.dis
{
&
:before
{
background
:
white
!
important
;
border
:
3px
solid
lightgray
!
important
;
border-color
:
lightgray
!
important
;
&
:before
{
border-color
:
lightgray
!
important
;
}
}
}
/* 隐藏 */
.none
{
.none
{
display
:
none
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论