|
@@ -1,5 +1,5 @@
|
|
|
import type { VbenFormSchema } from '#/adapter/form';
|
|
import type { VbenFormSchema } from '#/adapter/form';
|
|
|
-import type { OnActionClickFn, VxeTableGridOptions } from '#/adapter/vxe-table';
|
|
|
|
|
|
|
+import type { OnActionClickFn, VxeTableGridColumns } from '#/adapter/vxe-table';
|
|
|
import type { SystemRoleApi } from '#/api';
|
|
import type { SystemRoleApi } from '#/api';
|
|
|
|
|
|
|
|
import { $t } from '#/locales';
|
|
import { $t } from '#/locales';
|
|
@@ -77,7 +77,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|
|
export function useColumns<T = SystemRoleApi.SystemRole>(
|
|
export function useColumns<T = SystemRoleApi.SystemRole>(
|
|
|
onActionClick: OnActionClickFn<T>,
|
|
onActionClick: OnActionClickFn<T>,
|
|
|
onStatusChange?: (newStatus: any, row: T) => PromiseLike<boolean | undefined>,
|
|
onStatusChange?: (newStatus: any, row: T) => PromiseLike<boolean | undefined>,
|
|
|
-): VxeTableGridOptions['columns'] {
|
|
|
|
|
|
|
+): VxeTableGridColumns {
|
|
|
return [
|
|
return [
|
|
|
{
|
|
{
|
|
|
field: 'name',
|
|
field: 'name',
|