[Bug][UI][V1.0.0-Beta] Fix action buttons not displayed on one line bug (#9700)
parent
3faa65ef0c
commit
cd82f45d5e
|
|
@ -32,6 +32,7 @@ import { useColumns } from './use-columns'
|
|||
import { useTable } from './use-table'
|
||||
import styles from './index.module.scss'
|
||||
import type { TableColumns } from './types'
|
||||
import { DefaultTableWidth } from '@/utils/column-width-config'
|
||||
|
||||
const list = defineComponent({
|
||||
name: 'list',
|
||||
|
|
@ -39,7 +40,10 @@ const list = defineComponent({
|
|||
const { t } = useI18n()
|
||||
const showDetailModal = ref(false)
|
||||
const selectId = ref()
|
||||
const columns = ref({ columns: [] as TableColumns, tableWidth: 0 })
|
||||
const columns = ref({
|
||||
columns: [] as TableColumns,
|
||||
tableWidth: DefaultTableWidth
|
||||
})
|
||||
const { data, changePage, changePageSize, deleteRecord, updateList } =
|
||||
useTable()
|
||||
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ export function useColumns(onCallback: Function) {
|
|||
{
|
||||
circle: true,
|
||||
type: 'info',
|
||||
size: 'small',
|
||||
onClick: () => void onCallback(rowData.id, 'edit')
|
||||
},
|
||||
{
|
||||
|
|
@ -134,6 +135,7 @@ export function useColumns(onCallback: Function) {
|
|||
{
|
||||
circle: true,
|
||||
type: 'error',
|
||||
size: 'small',
|
||||
class: 'btn-delete'
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue