Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
f0154678
提交
f0154678
authored
3月 10, 2026
作者:
hsx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
左悬浮tabs样式
上级
61bfd23a
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
84 行增加
和
37 行删除
+84
-37
index.vue
src/styles/components/TabsPage/index.vue
+18
-2
index.vue
src/styles/components/index.vue
+8
-4
container.scss
src/styles/container.scss
+10
-0
tabs.scss
src/styles/tabs.scss
+46
-25
index.vue
src/views/companyPages2/component/SupplyChain/index.vue
+1
-5
index.vue
src/views/companyPages2/index.vue
+1
-1
没有找到文件。
src/styles/components/TabsPage/index.vue
浏览文件 @
f0154678
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
ElTabs
,
ElTabPane
,
ElSpace
,
ElRow
,
ElCol
}
from
'element-plus'
;
import
{
ElTabs
,
ElTabPane
,
ElSpace
,
ElRow
,
ElCol
}
from
'element-plus'
;
import
{
ref
}
from
'vue'
;
import
'@/styles/tabs.scss'
import
'@/styles/tabs.scss'
const
span
=
12
const
span
=
12
</
script
>
</
script
>
<
template
>
<
template
>
<el-row>
<el-row
:gutter=
"16"
>
<el-col
:span=
"span"
>
<el-col
:span=
"span"
>
<pre>
<pre>
{{
`import '@/styles/tabs.scss';
{{
`import '@/styles/tabs.scss';
...
@@ -22,6 +21,23 @@ const span = 12
...
@@ -22,6 +21,23 @@ const span = 12
<el-tab-pane
label=
"tab3"
>
tab3
</el-tab-pane>
<el-tab-pane
label=
"tab3"
>
tab3
</el-tab-pane>
</el-tabs>
</el-tabs>
</el-col>
</el-col>
<el-col
:span=
"span"
>
<pre>
{{
`import '@/styles/tabs.scss';
<template>
//确保父级position: relative;
<el-tabs tabPosition="left" class="tabs-nav-no-wrap left-float-nav-tabs">
</template>
`
}}
</pre>
<div
style=
"margin-left: 160px;position: relative; height: 200px;"
>
<el-tabs
tabPosition=
"left"
class=
"tabs-nav-no-wrap left-float-nav-tabs"
>
<el-tab-pane
label=
"tab1"
>
tab1
</el-tab-pane>
<el-tab-pane
label=
"tab2"
>
tab2
</el-tab-pane>
<el-tab-pane
label=
"tab3"
>
tab3
</el-tab-pane>
</el-tabs>
</div>
</el-col>
</el-row>
</el-row>
</
template
>
</
template
>
...
...
src/styles/components/index.vue
浏览文件 @
f0154678
<
template
>
<
template
>
<el-scrollbar>
<el-scrollbar>
<div
class=
"common-page"
>
<div
class=
"common-page
box
"
>
<el-space
direction=
"vertical"
:size=
"20"
alignment=
"flex-start"
fill
>
<el-space
direction=
"vertical"
:size=
"20"
alignment=
"flex-start"
fill
>
<div
class=
"text-title-0-show"
>
开发样式
</div>
<div
class=
"text-title-0-show"
>
开发样式
</div>
<div
class=
"text-title-1-show"
>
样式变量
</div>
<div
class=
"text-title-1-show"
>
样式变量
</div>
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<el-tab-pane
label=
"单选框"
lazy
>
<el-tab-pane
label=
"单选框"
lazy
>
<radio-page
/>
<radio-page
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"选项卡"
lazy
>
<el-tab-pane
label=
"选项卡"
lazy
class=
"tab-pane-overflow-visible"
>
<tabs-page
/>
<tabs-page
/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
...
@@ -38,4 +38,8 @@ import CommonPage from './CommonPage/index.vue';
...
@@ -38,4 +38,8 @@ import CommonPage from './CommonPage/index.vue';
import
TextPage
from
'./TextPage/index.vue'
;
import
TextPage
from
'./TextPage/index.vue'
;
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
\ No newline at end of file
.box
{
padding-bottom
:
20px
;
}
</
style
>
\ No newline at end of file
src/styles/container.scss
浏览文件 @
f0154678
...
@@ -5,4 +5,13 @@
...
@@ -5,4 +5,13 @@
padding
:
16px
160px
;
padding
:
16px
160px
;
// width: 1600px;
// width: 1600px;
align-items
:
center
;
align-items
:
center
;
/* 关键属性:允许溢出内容显示 */
overflow
:
visible
;
/* 不裁剪子元素 */
/* 其他可选属性 */
position
:
relative
;
/* 如果子元素需要绝对定位 */
min-height
:
0
;
/* 防止 flex 或 grid 容器压缩 */
}
}
\ No newline at end of file
src/styles/tabs.scss
浏览文件 @
f0154678
...
@@ -25,20 +25,13 @@
...
@@ -25,20 +25,13 @@
/*定义字体*/
/*定义字体*/
.el-tabs__item
:not
(
.disinheritance
.el-tabs__item
)
{
.el-tabs__item
:not
(
.disinheritance
.el-tabs__item
)
{
font-size
:
20px
;
@extend
.text-title-2
;
font-family
:
"Source Han Sans CN-Regular"
;
color
:
var
(
--
text-primary-80-color
);
font-weight
:
Regular
;
line-height
:
26px
;
height
:
50px
;
}
}
/*激活时按钮样式*/
/*激活时按钮样式*/
.el-tabs__item.is-active
:not
(
.disinheritance
.el-tabs__item
)
{
.el-tabs__item.is-active
:not
(
.disinheritance
.el-tabs__item
)
{
@extend
.text-title-1-bold
;
font-size
:
24px
;
font-family
:
"Source Han Sans CN-Bold"
;
font-weight
:
Bold
;
color
:
var
(
--
color-primary-100
);
color
:
var
(
--
color-primary-100
);
border-width
:
1px
;
border-width
:
1px
;
border-style
:
solid
;
border-style
:
solid
;
...
@@ -48,26 +41,53 @@
...
@@ -48,26 +41,53 @@
}
}
}
}
/***允许tab-pane内部元素溢出***/
.tab-pane-overflow-visible
{
.el-tab-pane
{
overflow
:
visible
!
important
;
}
// 同时确保父容器也允许溢出
.el-tabs__content
{
overflow
:
visible
!
important
;
}
}
/***tabs-bar左边悬浮***/
/***tabs-bar左边悬浮***/
.left-float-nav-tabs
{
.left-float-nav-tabs
{
.el-tabs__header.is-left
{
position
:
absolute
;
left
:
-140px
;
top
:
0px
;
// .el-tabs__header {
.el-tabs__nav
{
gap
:
16px
;
position
:
relative
;
}
overflow
:
visible
;
/* 双重保障 */
/* 创建新的渲染层 */
.el-tabs__active-bar
{
/* 创建新的层叠上下文 */
background-color
:
transparent
;
.el-tabs__header
{
right
:
12px
;
top
:
11px
;
height
:
8px
!
important
;
border-top
:
6px
solid
transparent
;
/* 顶部边框透明 */
border-bottom
:
6px
solid
transparent
;
/* 底部边框透明 */
border-left
:
8px
solid
var
(
--
bg-white-100
);
/* 左侧边框有颜色 */
}
}
position
:
relative
;
.el-tabs__item.is-left
{
left
:
0
;
@extend
.text-tip-1
;
top
:
0
;
color
:
var
(
--
text-primary-65-color
)
;
z-index
:
999
;
height
:
32px
;
background-color
:
red
;
padding
:
4px
26px
4px
28px
;
// margin-left: -20
px;
border-radius
:
16px
16px
16px
16
px
;
}
}
// }
.el-tabs__item.is-left.is-active
{
color
:
var
(
--
bg-white-100
);
background-color
:
var
(
--
color-primary-100
);
}
}
}
\ No newline at end of file
src/views/companyPages2/component/SupplyChain/index.vue
浏览文件 @
f0154678
...
@@ -190,7 +190,7 @@ async function handleDataTypeChange() {
...
@@ -190,7 +190,7 @@ async function handleDataTypeChange() {
</el-row>
</el-row>
</el-checkbox-group>
</el-checkbox-group>
</div>
</div>
<div
class=
"background-as-card
chart-box
flex-fill"
>
<div
class=
"background-as-card flex-fill"
>
<graph-chart
:nodes=
"nodes"
:links=
"links"
/>
<graph-chart
:nodes=
"nodes"
:links=
"links"
/>
<el-radio-group
v-model=
"selectedDataType"
class=
"data-type-group"
@
change=
"handleDataTypeChange"
>
<el-radio-group
v-model=
"selectedDataType"
class=
"data-type-group"
@
change=
"handleDataTypeChange"
>
<el-radio-button
v-for=
"item in dataTypeList"
:label=
"item.id"
:value=
"item.id"
>
<el-radio-button
v-for=
"item in dataTypeList"
:label=
"item.id"
:value=
"item.id"
>
...
@@ -204,10 +204,6 @@ async function handleDataTypeChange() {
...
@@ -204,10 +204,6 @@ async function handleDataTypeChange() {
</
template
>
</
template
>
<
style
lang=
"css"
scoped
>
<
style
lang=
"css"
scoped
>
.box-div
{
margin
:
2px
;
}
.options-pane
{
.options-pane
{
width
:
360px
;
width
:
360px
;
padding-top
:
16px
;
padding-top
:
16px
;
...
...
src/views/companyPages2/index.vue
浏览文件 @
f0154678
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<div
class=
"common-page"
>
<div
class=
"common-page"
>
<el-space
wrap
:size=
"16"
fill
>
<el-space
wrap
:size=
"16"
fill
>
<title-pane
:enterprise-info=
"enterpriseInfo"
></title-pane>
<title-pane
:enterprise-info=
"enterpriseInfo"
></title-pane>
<el-tabs
stretch
class=
"tabs-header-as-card tabs-nav-no-wrap tabs-bar-as-btn"
>
<el-tabs
stretch
class=
"tabs-header-as-card tabs-nav-no-wrap tabs-bar-as-btn
tab-pane-overflow-visible
"
>
<el-tab-pane
label=
"企业详情"
>
<el-tab-pane
label=
"企业详情"
>
<div
class=
"flex-display"
>
<div
class=
"flex-display"
>
<news-pane
:enterprise-info=
"enterpriseInfo"
/>
<news-pane
:enterprise-info=
"enterpriseInfo"
/>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论