Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nse-ui
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
nse-ui
Commits
07a6a96b
Commit
07a6a96b
authored
Sep 16, 2025
by
wanglizhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分割线组件
parent
4bb9f995
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
82 行增加
和
0 行删除
+82
-0
src/components/DividerTitle/index.vue
+79
-0
src/main.js
+3
-0
没有找到文件。
src/components/DividerTitle/index.vue
0 → 100644
View file @
07a6a96b
<
script
lang=
"ts"
setup
name=
"FormTitle"
>
import
{
ref
}
from
'vue'
const
props
=
withDefaults
(
defineProps
<
{
titleName
?:
string
,
id
?:
string
,
line
?:
boolean
,
leftBox
?:
boolean
,
// 增加参数左侧 自定义div 默认 false
isStar
?:
boolean
,
// 是否显示星号
}
>
(),
{
line
:
true
,
leftBox
:
false
,
isStar
:
false
// 是否显示星号
})
</
script
>
<
template
>
<div
class=
"titleBox"
>
<div
class=
"leftBox"
>
<div
v-if=
"props.line"
class=
"borderLeft"
/>
<div
:id=
"props.id"
class=
"titleName mini-title"
><span
class=
"red-star"
v-if=
"props.isStar"
>
*
</span>
{{
props
.
titleName
}}
</div>
<div
v-if=
"props.leftBox"
class=
"leftBox-div"
>
<slot
name=
"leftBox"
/></div>
</div>
<div
class=
"rightBox"
>
<slot/>
</div>
</div>
</
template
>
<
style
lang=
"scss"
>
.el-row
{
>
.titleBox
{
padding-left
:
6px
;
padding-right
:
6px
;
}
}
</
style
>
<
style
lang=
"scss"
scoped
>
.titleBox
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
18px
;
padding-bottom
:
8px
;
width
:
100%
;
height
:
32px
;
border-bottom
:
1px
solid
rgba
(
241
,
243
,
245
,
1
);
.leftBox{
display
:
flex
;
align-items
:
center
;
height
:
100%
;
.borderLeft{
margin-right
:
10px
;
border-radius
:
20px
;
width
:
3px
;
height
:
14px
;
background
:
rgba
(
53
,
108
,
236
,
1
);
}
.titleName
{
font-size
:
14px
;
font-weight
:
600
;
line-height
:
19.6px
;
color
:
rgba
(
46
,
46
,
46
,
1
);
}
}
.rightBox
{
}
}
.leftBox-div
{
margin-left
:
10px
;
}
.red-star
{
color
:
#f56c6c
;
margin-right
:
4px
;
}
</
style
>
\ No newline at end of file
src/main.js
View file @
07a6a96b
...
@@ -48,6 +48,8 @@ import DictTag from '@/components/DictTag'
...
@@ -48,6 +48,8 @@ import DictTag from '@/components/DictTag'
import
PageTitle
from
'./components/PageTitle/index.vue'
import
PageTitle
from
'./components/PageTitle/index.vue'
// Modal组件
// Modal组件
import
Modal
from
'./components/Modal/index.vue'
;
import
Modal
from
'./components/Modal/index.vue'
;
// 分割线标题
import
DividerTitle
from
'./components/DividerTitle/index.vue'
const
app
=
createApp
(
App
)
const
app
=
createApp
(
App
)
...
@@ -72,6 +74,7 @@ app.component('RightToolbar', RightToolbar)
...
@@ -72,6 +74,7 @@ app.component('RightToolbar', RightToolbar)
app
.
component
(
'Editor'
,
Editor
)
app
.
component
(
'Editor'
,
Editor
)
app
.
component
(
'PageTitle'
,
PageTitle
)
app
.
component
(
'PageTitle'
,
PageTitle
)
app
.
component
(
'Modal'
,
Modal
)
app
.
component
(
'Modal'
,
Modal
)
app
.
component
(
'DividerTitle'
,
DividerTitle
)
app
.
use
(
router
)
app
.
use
(
router
)
app
.
use
(
store
)
app
.
use
(
store
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论