Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
traceSourceMb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yanyanhong
traceSourceMb
Commits
d61d966a
Commit
d61d966a
authored
Aug 07, 2020
by
yyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
无模板缺省页面
parent
f137b2fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
notemplate.png
src/assets/notemplate.png
+0
-0
Index.vue
src/views/template/Index.vue
+7
-1
List.vue
src/views/template/List.vue
+7
-1
No files found.
src/assets/notemplate.png
0 → 100644
View file @
d61d966a
1.84 KB
src/views/template/Index.vue
View file @
d61d966a
...
...
@@ -39,6 +39,11 @@
:title="folder_name"
:desc="`${detail.length}条模板`"
>
</template-item>
-->
<van-empty
v-if=
"!list.length"
description=
"您还未添加模板"
image=
"@/assets/notemplate.png"
>
</van-empty>
<div
class=
"folder-item"
v-for=
"
{id, folder_simg_url, folder_name, detail} of list" :key="id" @click="goTemplList(detail)">
<van-image
class=
"thumb"
...
...
@@ -54,13 +59,14 @@
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
,
Watch
}
from
'vue-property-decorator'
;
import
{
List
,
Image
}
from
'vant'
;
import
{
List
,
Image
,
Empty
}
from
'vant'
;
import
{
TEMPLATETYPE
}
from
'@/const/enum'
;
import
{
State
,
Action
}
from
'vuex-class'
;
@
Component
({
components
:
{
[
List
.
name
]:
List
,
[
Image
.
name
]:
Image
,
[
Empty
.
name
]:
Empty
,
},
})
export
default
class
Index
extends
Vue
{
...
...
src/views/template/List.vue
View file @
d61d966a
<
template
>
<div
class=
"template-list"
>
<van-empty
v-if=
"!list"
description=
"您还未添加模板"
image=
"@/assets/notemplate.png"
>
</van-empty>
<template-item
v-for=
"
{id, s_image_url, name, info} of list"
:key="id"
...
...
@@ -13,12 +18,13 @@
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
,
Watch
}
from
'vue-property-decorator'
;
import
{
List
,
Image
}
from
'vant'
;
import
{
List
,
Image
,
Empty
}
from
'vant'
;
import
{
TEMPLATETYPE
}
from
'@/const/enum'
;
@
Component
({
components
:
{
[
List
.
name
]:
List
,
[
Image
.
name
]:
Image
,
[
Empty
.
name
]:
Empty
,
},
})
export
default
class
Index
extends
Vue
{
...
...
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