Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9c8d10b7
authored
May 26, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【增加】AI image 增加图片详情,抽屉
parent
131e071b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
3 deletions
+68
-3
src/views/ai/image/ImageDetailDrawer.vue
+42
-0
src/views/ai/image/ImageTask.vue
+26
-3
No files found.
src/views/ai/image/ImageDetailDrawer.vue
0 → 100644
View file @
9c8d10b7
<
template
>
<el-drawer
v-model=
"showDrawer"
title=
"图片详细"
@
close=
"handlerDrawerClose"
>
<span>
Hi, there!
</span>
</el-drawer>
</
template
>
<
script
setup
lang=
"ts"
>
const
showDrawer
=
ref
<
boolean
>
(
false
)
// 是否显示
const
props
=
defineProps
({
show
:
{
type
:
Boolean
,
require
:
true
,
default
:
false
}
})
/**
* 抽屉 - close
*/
const
handlerDrawerClose
=
async
()
=>
{
emits
(
'handlerDrawerClose'
)
}
// watch
const
{
show
}
=
toRefs
(
props
)
watch
(
show
,
async
(
newValue
,
oldValue
)
=>
{
showDrawer
.
value
=
newValue
as
boolean
})
//
const
emits
=
defineEmits
([
'handlerDrawerClose'
])
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/ai/image/ImageTask.vue
View file @
9c8d10b7
...
@@ -11,19 +11,42 @@
...
@@ -11,19 +11,42 @@
<div>
<div>
<el-button
class=
"btn"
text
:icon=
"Download"
/>
<el-button
class=
"btn"
text
:icon=
"Download"
/>
<el-button
class=
"btn"
text
:icon=
"Delete"
/>
<el-button
class=
"btn"
text
:icon=
"Delete"
/>
<el-button
class=
"btn"
text
:icon=
"More"
/>
<el-button
class=
"btn"
text
:icon=
"More"
@
click=
"handlerTaskDetail"
/>
</div>
</div>
</div>
</div>
<div
class=
"image-wrapper"
>
<div
class=
"image-wrapper"
>
<img
class=
"image"
src=
"https://img.bigpt8.com/uploads/thumbnail/20240509/b7802797e5f709f35a451a1591d4d495.png"
/>
<img
class=
"image"
src=
"https://img.bigpt8.com/uploads/thumbnail/20240509/b7802797e5f709f35a451a1591d4d495.png"
/>
</div>
</div>
</el-card>
</el-card>
</el-card>
</el-card>
<!-- 图片 detail 抽屉 -->
<ImageDetailDrawer
:show=
"showTaskDetail"
@
handler-drawer-close=
"handlerDrawerClose"
/>
</template>
</template>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
ImageDetailDrawer
from
'./ImageDetailDrawer.vue'
import
{
Delete
,
Download
,
More
}
from
"@element-plus/icons-vue"
;
import
{
Delete
,
Download
,
More
}
from
"@element-plus/icons-vue"
;
import
{
bool
}
from
"vue-types"
;
const
showTaskDetail
=
ref
<
bool
>
(
false
)
// 是否显示 task 详情
/**
* 图片人物 - detail
*/
const
handlerTaskDetail
=
async
()
=>
{
showTaskDetail
.
value
=
!
showTaskDetail
.
value
}
/**
* 抽屉 - 关闭
*/
const
handlerDrawerClose
=
async
()
=>
{
showTaskDetail
.
value
=
false
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment