Ver Fonte

[Fix][UI Next][V1.0.0-Beta] Fix some errors on the datasource page. (#9877)

* Set the description default value to "-"
* Pager is missing page selector.
Amy0104 há 3 anos atrás
pai
commit
84484b6a6b

+ 2 - 0
dolphinscheduler-ui-next/src/views/datasource/list/index.tsx

@@ -147,6 +147,8 @@ const list = defineComponent({
             page-size={pageSize}
             item-count={itemCount}
             show-quick-jumper
+            show-size-picker
+            page-sizes={[10, 30, 50]}
             class={styles['pagination']}
             on-update:page={changePage}
             on-update:page-size={changePageSize}

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

@@ -82,7 +82,8 @@ export function useColumns(onCallback: Function) {
       {
         title: t('datasource.description'),
         key: 'note',
-        ...COLUMN_WIDTH_CONFIG['note']
+        ...COLUMN_WIDTH_CONFIG['note'],
+        render: (rowData) => rowData.description || '-'
       },
       {
         title: t('datasource.create_time'),