Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
kadycui
game-admin
提交
f606dd89
game-admin
项目概览
kadycui
/
game-admin
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
game-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f606dd89
编写于
9月 05, 2023
作者:
kadycui
💻
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ADD: 图片管理布局
上级
4dc8eca0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
74 addition
and
4 deletion
+74
-4
src/api/image.js
src/api/image.js
+6
-0
src/pages/image/list.vue
src/pages/image/list.vue
+68
-4
未找到文件。
src/api/image.js
0 → 100644
浏览文件 @
f606dd89
import
axios
from
'
@/axios
'
export
function
getImageList
(
id
,
page
=
1
){
return
axios
.
get
(
`/admin/image_class/
${
id
}
/image/
${
page
}
`
)
}
\ No newline at end of file
src/pages/image/list.vue
浏览文件 @
f606dd89
<
template
>
<div>
图库列表
</div>
</
template
>
\ No newline at end of file
<el-container
class=
"bg-white rounded"
:style=
"
{height: (h + 'px')}">
<el-header
class=
"image-header"
>
Header
</el-header>
<el-container>
<el-aside
width=
"200px"
class=
"image-aside"
>
<div
class=
"top"
>
<div
v-for=
"i in 100"
:key=
"i"
>
{{
i
}}
</div>
</div>
<div
class=
"bottom"
>
分页区域
</div>
</el-aside>
<el-main
class=
"image-main"
>
<div
class=
"top"
>
<div
v-for=
"i in 100"
:key=
"i"
>
{{
i
}}
</div>
</div>
<div
class=
"bottom"
>
分页区域
</div>
</el-main>
</el-container>
</el-container>
</
template
>
<
script
setup
>
const
windowHeight
=
window
.
innerHeight
||
document
.
body
.
clientHeight
const
h
=
windowHeight
-
64
-
44
-
40
</
script
>
<
style
scoped
>
.image-header
{
border-bottom
:
1px
solid
#eeeeee
;
@apply
flex
items-center;
}
.image-aside
{
border-right
:
#eeeeee
solid
1px
;
position
:
relative
;
}
.image-main
{
position
:
relative
;
}
.image-aside
.top
,
.image-main
.top
{
position
:
absolute
;
top
:
0
;
right
:
0
;
left
:
0
;
bottom
:
50px
;
overflow-y
:
auto
;
}
.image-aside
.bottom
,
.image-main
.bottom
{
position
:
absolute
;
bottom
:
0
;
height
:
50px
;
left
:
0
;
right
:
0
;
@apply
flex
items-center
justify-center;
}
</
style
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录