Unverified Commit b508a5b2 by Sendya

chore: eslint fix.

parent 7eb35815
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<a-list <a-list
:grid="{ gutter: 24, lg: 3, md: 2, sm: 1, xs: 1 }" :grid="{ gutter: 24, lg: 3, md: 2, sm: 1, xs: 1 }"
:dataSource="dataSource"> :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 :hoverable="true">
<a-card-meta> <a-card-meta>
<div style="margin-bottom: 3px" slot="title">{{ item.title }}</div> <div style="margin-bottom: 3px" slot="title">{{ item.title }}</div>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
:dataSource="data" :dataSource="data"
:pagination="false" :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 <a-input
:key="col" :key="col"
v-if="record.editable" v-if="record.editable"
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
/> />
<template v-else>{{ text }}</template> <template v-else>{{ text }}</template>
</template> </template>
<template slot="operation" slot-scope="text, record, index"> <template slot="operation" slot-scope="text, record">
<template v-if="record.editable"> <template v-if="record.editable">
<span v-if="record.isNew"> <span v-if="record.isNew">
<a @click="saveRow(record.key)">添加</a> <a @click="saveRow(record.key)">添加</a>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
:grid="{gutter: 24, lg: 3, md: 2, sm: 1, xs: 1}" :grid="{gutter: 24, lg: 3, md: 2, sm: 1, xs: 1}"
:dataSource="dataSource" :dataSource="dataSource"
> >
<a-list-item slot="renderItem" slot-scope="item, index"> <a-list-item slot="renderItem" slot-scope="item">
<template v-if="item === null"> <template v-if="item === null">
<a-button class="new-btn" type="dashed"> <a-button class="new-btn" type="dashed">
<a-icon type="plus"/> <a-icon type="plus"/>
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
:alert="{ show: true, clear: true }" :alert="{ show: true, clear: true }"
:rowSelection="{ selectedRowKeys: this.selectedRowKeys, onChange: this.onSelectChange }" :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"> <div :key="index">
<a-input <a-input
v-if="record.editable" v-if="record.editable"
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<template v-else>{{ text }}</template> <template v-else>{{ text }}</template>
</div> </div>
</template> </template>
<template slot="action" slot-scope="text, record, index"> <template slot="action" slot-scope="text, record">
<div class="editable-row-operations"> <div class="editable-row-operations">
<span v-if="record.editable"> <span v-if="record.editable">
<a @click="() => save(record)">保存</a> <a @click="() => save(record)">保存</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment