Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
d292a5f1
提交
d292a5f1
authored
12月 30, 2024
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
style(levitatedsphere): 样式修改
多个工具按钮时布局不太对,调整完毕
上级
5b3ca7bb
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
12 行增加
和
8 行删除
+12
-8
index.vue
src/components/LevitatedSphere/index.vue
+12
-8
没有找到文件。
src/components/LevitatedSphere/index.vue
浏览文件 @
d292a5f1
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<!-- 工具抽屉 -->
<!-- 工具抽屉 -->
<el-drawer
title=
"工具箱"
<el-drawer
title=
"工具箱"
v-model=
"drawer"
v-model=
"drawer"
size=
"
20%
"
size=
"
300px
"
@
click
.
native=
"drawer = false"
>
@
click
.
native=
"drawer = false"
>
<slot></slot>
<slot></slot>
</el-drawer>
</el-drawer>
...
@@ -133,23 +133,27 @@ export default {
...
@@ -133,23 +133,27 @@ export default {
align-items
:
center
;
align-items
:
center
;
transition
:
all
0
.5s
;
transition
:
all
0
.5s
;
font-size
:
20px
;
font-size
:
20px
;
}
}
::v-deep
(
.el-drawer__body
)
{
::v-deep
(
.el-drawer__body
)
{
padding
:
10px
;
padding
:
10px
;
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1fr
);
grid-template-columns
:
repeat
(
3
,
1fr
);
/* 让元素两端对齐 */
grid-template-rows
:
repeat
(
auto-fill
,
30px
);
/* 明确指定行高为100px */
justify-content
:
space-between
;
grid-auto-rows
:
30px
;
/* 自动生成的行高也为100px */
align-items
:
start
;
grid-gap
:
20px
5px
;
/* 上下间距20px,左右间距5px */
grid-gap
:
5px
;
/* 可以根据实际情况设置容器宽度等其他样式 */
width
:
100%
;
width
:
100%
;
.el-button
{
.el-button
{
width
:
100%
;
width
:
100%
;
margin
:
0
;
margin
:
0
;
}
}
}
}
@media
(
max-width
:
768px
)
{
.wrap
{
width
:
30px
;
height
:
30px
;
font-size
:
12px
;
}
}
</
style
>
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论