Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianzhuanghu
ant-design-pro-vue
Commits
b04b6add
Commit
b04b6add
authored
Sep 14, 2018
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: linkList type & CardList a-card actions
parent
1999c55b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
6 deletions
+53
-6
PageLayout.vue
src/components/layout/PageLayout.vue
+1
-1
DetailList.vue
src/components/tools/DetailList.vue
+33
-0
index.js
src/router/index.js
+1
-1
CardList.vue
src/views/list/CardList.vue
+4
-4
Index.vue
src/views/profile/basic/Index.vue
+14
-0
No files found.
src/components/layout/PageLayout.vue
View file @
b04b6add
...
...
@@ -49,7 +49,7 @@
default
:
null
},
linkList
:
{
type
:
String
,
type
:
Array
,
default
:
null
},
extraImage
:
{
...
...
src/components/tools/DetailList.vue
0 → 100644
View file @
b04b6add
<
template
>
<div
:class=
"['detail-list', size === 'small' ? 'small' : 'large', layout === 'vertical' ? 'vertical': 'horizontal']"
>
<div
v-if=
"title"
class=
"title"
>
{{
title
}}
</div>
<a-row>
<slot></slot>
</a-row>
</div>
</
template
>
<
script
>
export
default
{
name
:
"DetailList"
,
props
:
{
term
:
{
type
:
String
,
default
:
null
}
},
inject
:
{
col
:
{
type
:
Number
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
src/router/index.js
View file @
b04b6add
...
...
@@ -172,7 +172,7 @@ export const asyncRouterMap = [
{
path
:
'/profile/basic'
,
name
:
'ProfileBasic'
,
component
:
()
=>
import
(
'../views/
list/TableList
'
),
component
:
()
=>
import
(
'../views/
profile/basic/Index
'
),
meta
:
{
title
:
'基础详情页'
}
},
{
...
...
src/views/list/CardList.vue
View file @
b04b6add
...
...
@@ -18,10 +18,10 @@
<a-avatar
class=
"card-avatar"
slot=
"avatar"
:src=
"item.avatar"
size=
"large"
/>
<div
class=
"meta-content"
slot=
"description"
>
{{
item
.
content
}}
</div>
</a-card-meta>
<
ul
class=
"ant-card-actions"
slot=
"actions"
>
<
li><a>
操作一
</a></li
>
<
li><a>
操作二
</a></li
>
</
ul
>
<
template
class=
"ant-card-actions"
slot=
"actions"
>
<
a>
操作一
</a
>
<
a>
操作二
</a
>
</
template
>
</a-card>
</template>
</a-list-item>
...
...
src/views/profile/basic/Index.vue
0 → 100644
View file @
b04b6add
<
template
>
<a-card
:bordered=
"false"
>
basic
</a-card>
</
template
>
<
script
>
export
default
{}
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
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