mirror of https://github.com/halo-dev/halo
列表字数限制
parent
b035e20c21
commit
c580207c4f
|
@ -4,9 +4,8 @@ import Ellipsis from '@/components/Ellipsis'
|
||||||
import FooterToolbar from '@/components/FooterToolbar'
|
import FooterToolbar from '@/components/FooterToolbar'
|
||||||
import NumberInfo from '@/components/NumberInfo'
|
import NumberInfo from '@/components/NumberInfo'
|
||||||
import DetailList from '@/components/tools/DetailList'
|
import DetailList from '@/components/tools/DetailList'
|
||||||
import Tree from '@/components/Tree/Tree'
|
|
||||||
import MultiTab from '@/components/MultiTab'
|
import MultiTab from '@/components/MultiTab'
|
||||||
import Result from '@/components/Result'
|
import Result from '@/components/Result'
|
||||||
import IconSelector from '@/components/IconSelector'
|
import IconSelector from '@/components/IconSelector'
|
||||||
|
|
||||||
export { AvatarList, Ellipsis, FooterToolbar, NumberInfo, DetailList, Tree, MultiTab, Result, IconSelector }
|
export { AvatarList, Ellipsis, FooterToolbar, NumberInfo, DetailList, MultiTab, Result, IconSelector }
|
||||||
|
|
|
@ -54,16 +54,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
const columns = [
|
||||||
name: 'PostList',
|
|
||||||
components: {},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
mdl: {},
|
|
||||||
// 查询参数
|
|
||||||
queryParam: {},
|
|
||||||
// 表头
|
|
||||||
columns: [
|
|
||||||
{
|
{
|
||||||
title: '#',
|
title: '#',
|
||||||
scopedSlots: { customRender: 'serial' }
|
scopedSlots: { customRender: 'serial' }
|
||||||
|
@ -90,12 +81,20 @@ export default {
|
||||||
width: '150px',
|
width: '150px',
|
||||||
scopedSlots: { customRender: 'action' }
|
scopedSlots: { customRender: 'action' }
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
|
export default {
|
||||||
|
name: 'CommentList',
|
||||||
|
components: {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 查询参数
|
||||||
|
queryParam: {},
|
||||||
|
// 表头
|
||||||
|
columns,
|
||||||
loadData: parameter => {},
|
loadData: parameter => {},
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
selectedRows: [],
|
selectedRows: [],
|
||||||
options: {},
|
options: {}
|
||||||
optionAlertShow: false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {},
|
created() {},
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
:style="{ 'padding-bottom': '12px' }">
|
:style="{ 'padding-bottom': '12px' }">
|
||||||
<a-card title="所有菜单">
|
<a-card title="所有菜单">
|
||||||
<a-table :columns="columns" :dataSource="menus" :loading="loading">
|
<a-table :columns="columns" :dataSource="menus" :loading="loading">
|
||||||
<ellipsis :length="10" tooltip slot="name" slot-scope="text">
|
<ellipsis :length="30" tooltip slot="name" slot-scope="text">
|
||||||
{{ text }}
|
{{ text }}
|
||||||
</ellipsis>
|
</ellipsis>
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Ellipsis } from '@/components/Ellipsis'
|
import { Ellipsis } from '@/components'
|
||||||
import menuApi from '@/api/menu'
|
import menuApi from '@/api/menu'
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue