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
b508a5b2
Unverified
Commit
b508a5b2
authored
Mar 06, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: eslint fix.
parent
7eb35815
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
App.vue
src/views/account/center/page/App.vue
+1
-1
AdvancedForm.vue
src/views/form/advancedForm/AdvancedForm.vue
+2
-2
CardList.vue
src/views/list/CardList.vue
+1
-1
TableInnerEditList.vue
src/views/list/TableInnerEditList.vue
+2
-2
No files found.
src/views/account/center/page/App.vue
View file @
b508a5b2
...
...
@@ -3,7 +3,7 @@
<a-list
:grid=
"
{ gutter: 24, lg: 3, md: 2, sm: 1, xs: 1 }"
:dataSource="dataSource">
<a-list-item
slot=
"renderItem"
slot-scope=
"item
, index"
>
<a-list-item
slot=
"renderItem"
slot-scope=
"item
"
>
<a-card
:hoverable=
"true"
>
<a-card-meta>
<div
style=
"margin-bottom: 3px"
slot=
"title"
>
{{
item
.
title
}}
</div>
...
...
src/views/form/advancedForm/AdvancedForm.vue
View file @
b508a5b2
...
...
@@ -15,7 +15,7 @@
:dataSource=
"data"
:pagination=
"false"
>
<template
v-for=
"(col, i) in ['name', 'workId', 'department']"
:slot=
"col"
slot-scope=
"text, record
, index"
>
<template
v-for=
"(col, i) in ['name', 'workId', 'department']"
:slot=
"col"
slot-scope=
"text, record
"
>
<a-input
:key=
"col"
v-if=
"record.editable"
...
...
@@ -26,7 +26,7 @@
/>
<template
v-else
>
{{
text
}}
</
template
>
</template>
<
template
slot=
"operation"
slot-scope=
"text, record
, index"
>
<
template
slot=
"operation"
slot-scope=
"text, record
"
>
<template
v-if=
"record.editable"
>
<span
v-if=
"record.isNew"
>
<a
@
click=
"saveRow(record.key)"
>
添加
</a>
...
...
src/views/list/CardList.vue
View file @
b508a5b2
...
...
@@ -4,7 +4,7 @@
:grid=
"
{gutter: 24, lg: 3, md: 2, sm: 1, xs: 1}"
:dataSource="dataSource"
>
<a-list-item
slot=
"renderItem"
slot-scope=
"item
, index"
>
<a-list-item
slot=
"renderItem"
slot-scope=
"item
"
>
<template
v-if=
"item === null"
>
<a-button
class=
"new-btn"
type=
"dashed"
>
<a-icon
type=
"plus"
/>
...
...
src/views/list/TableInnerEditList.vue
View file @
b508a5b2
...
...
@@ -83,7 +83,7 @@
:alert=
"{ show: true, clear: true }"
:rowSelection=
"{ selectedRowKeys: this.selectedRowKeys, onChange: this.onSelectChange }"
>
<
template
v-for=
"(col, index) in columns"
v-if=
"col.scopedSlots"
:slot=
"col.dataIndex"
slot-scope=
"text, record
, index
"
>
<
template
v-for=
"(col, index) in columns"
v-if=
"col.scopedSlots"
:slot=
"col.dataIndex"
slot-scope=
"text, record"
>
<div
:key=
"index"
>
<a-input
v-if=
"record.editable"
...
...
@@ -94,7 +94,7 @@
<template
v-else
>
{{
text
}}
</
template
>
</div>
</template>
<
template
slot=
"action"
slot-scope=
"text, record
, index
"
>
<
template
slot=
"action"
slot-scope=
"text, record"
>
<div
class=
"editable-row-operations"
>
<span
v-if=
"record.editable"
>
<a
@
click=
"() => save(record)"
>
保存
</a>
...
...
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