[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 { useTable } from './use-table'
|
||||||
import styles from './index.module.scss'
|
import styles from './index.module.scss'
|
||||||
import type { TableColumns } from './types'
|
import type { TableColumns } from './types'
|
||||||
|
import { DefaultTableWidth } from '@/utils/column-width-config'
|
||||||
|
|
||||||
const list = defineComponent({
|
const list = defineComponent({
|
||||||
name: 'list',
|
name: 'list',
|
||||||
|
|
@ -39,7 +40,10 @@ const list = defineComponent({
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const showDetailModal = ref(false)
|
const showDetailModal = ref(false)
|
||||||
const selectId = ref()
|
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 } =
|
const { data, changePage, changePageSize, deleteRecord, updateList } =
|
||||||
useTable()
|
useTable()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,7 @@ export function useColumns(onCallback: Function) {
|
||||||
{
|
{
|
||||||
circle: true,
|
circle: true,
|
||||||
type: 'info',
|
type: 'info',
|
||||||
|
size: 'small',
|
||||||
onClick: () => void onCallback(rowData.id, 'edit')
|
onClick: () => void onCallback(rowData.id, 'edit')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -134,6 +135,7 @@ export function useColumns(onCallback: Function) {
|
||||||
{
|
{
|
||||||
circle: true,
|
circle: true,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
|
size: 'small',
|
||||||
class: 'btn-delete'
|
class: 'btn-delete'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue