mirror of
https://github.com/iczer/vue-antd-admin.git
synced 2025-05-23 15:29:16 +08:00
Merge remote-tracking branch 'origin/basic' into basic
This commit is contained in:
commit
a3bca2756e
@ -36,7 +36,18 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'StandardTable',
|
name: 'StandardTable',
|
||||||
props: ['bordered', 'loading', 'columns', 'dataSource', 'rowKey', 'pagination', 'selectedRows'],
|
props: {
|
||||||
|
bordered: Boolean,
|
||||||
|
loading: [Boolean, Object],
|
||||||
|
columns: Array,
|
||||||
|
dataSource: Array,
|
||||||
|
rowKey: {
|
||||||
|
type: [String, Function],
|
||||||
|
default: 'key'
|
||||||
|
},
|
||||||
|
pagination: Object,
|
||||||
|
selectedRows: Array
|
||||||
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
needTotalList: [],
|
needTotalList: [],
|
||||||
@ -96,7 +107,9 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
selectedRowKeys() {
|
selectedRowKeys() {
|
||||||
return this.selectedRows.map(row => row.key)
|
return this.selectedRows.map(record => {
|
||||||
|
return (typeof this.rowKey === 'function') ? this.rowKey(record) : record[this.rowKey]
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<div :class="['admin-header-right', headerTheme]">
|
<div :class="['admin-header-right', headerTheme]">
|
||||||
<header-search class="header-item" />
|
<header-search class="header-item" />
|
||||||
<a-tooltip class="header-item" title="帮助文档" placement="bottom" >
|
<a-tooltip class="header-item" title="帮助文档" placement="bottom" >
|
||||||
<a>
|
<a href="https://iczer.github.io/vue-antd-admin/" target="_blank">
|
||||||
<a-icon type="question-circle-o" />
|
<a-icon type="question-circle-o" />
|
||||||
</a>
|
</a>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user