Browse Source

[Bug][UI][V1.0.0-Beta] Fix action buttons not displayed on one line bug (#9700)

3.0.0/version-upgrade
Devosend 3 years ago committed by GitHub
parent
commit
cd82f45d5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui-next/src/views/datasource/list/index.tsx
  2. 2
      dolphinscheduler-ui-next/src/views/datasource/list/use-columns.ts

6
dolphinscheduler-ui-next/src/views/datasource/list/index.tsx

@ -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()

2
dolphinscheduler-ui-next/src/views/datasource/list/use-columns.ts

@ -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…
Cancel
Save