列表字数限制

pull/3445/head
ruibaby 2019-04-07 22:10:01 +08:00
parent b035e20c21
commit c580207c4f
3 changed files with 34 additions and 36 deletions

View File

@ -4,9 +4,8 @@ import Ellipsis from '@/components/Ellipsis'
import FooterToolbar from '@/components/FooterToolbar'
import NumberInfo from '@/components/NumberInfo'
import DetailList from '@/components/tools/DetailList'
import Tree from '@/components/Tree/Tree'
import MultiTab from '@/components/MultiTab'
import Result from '@/components/Result'
import IconSelector from '@/components/IconSelector'
export { AvatarList, Ellipsis, FooterToolbar, NumberInfo, DetailList, Tree, MultiTab, Result, IconSelector }
export { AvatarList, Ellipsis, FooterToolbar, NumberInfo, DetailList, MultiTab, Result, IconSelector }

View File

@ -54,16 +54,7 @@
</template>
<script>
export default {
name: 'PostList',
components: {},
data() {
return {
mdl: {},
//
queryParam: {},
//
columns: [
const columns = [
{
title: '#',
scopedSlots: { customRender: 'serial' }
@ -90,12 +81,20 @@ export default {
width: '150px',
scopedSlots: { customRender: 'action' }
}
],
]
export default {
name: 'CommentList',
components: {},
data() {
return {
//
queryParam: {},
//
columns,
loadData: parameter => {},
selectedRowKeys: [],
selectedRows: [],
options: {},
optionAlertShow: false
options: {}
}
},
created() {},

View File

@ -48,7 +48,7 @@
:style="{ 'padding-bottom': '12px' }">
<a-card title="所有菜单">
<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 }}
</ellipsis>
<span slot="action" slot-scope="text, record">
@ -71,7 +71,7 @@
</template>
<script>
import { Ellipsis } from '@/components/Ellipsis'
import { Ellipsis } from '@/components'
import menuApi from '@/api/menu'
const columns = [
{