mirror of
https://github.com/allinssl/allinssl.git
synced 2025-12-21 10:14:03 +08:00
【新增】插件git同步模块,用于同步项目内容,加速项目开发
【调整】前端暗色问题
This commit is contained in:
@@ -92,6 +92,7 @@ export default function useTable<T = Record<string, any>, Z extends Record<strin
|
||||
const component = (props: DataTableProps, context: { slots?: DataTableSlots }) => {
|
||||
const { slots, ...attrs } = props as any
|
||||
const s2 = context
|
||||
console.log(slots, s2)
|
||||
return (
|
||||
<NDataTable
|
||||
remote
|
||||
@@ -239,15 +240,17 @@ const useTablePage = <T extends Record<string, any> = Record<string, any>>({
|
||||
const useTableOperation = (
|
||||
options: {
|
||||
title: string
|
||||
width?: number
|
||||
onClick: (row: any) => void
|
||||
isHide?: boolean | ((row: any) => boolean)
|
||||
}[],
|
||||
others?: any,
|
||||
) => {
|
||||
const width = options.reduce((accumulator, option) => accumulator + (option.width || 40), 0) + 20
|
||||
return {
|
||||
title: hookT('operation'),
|
||||
key: 'CreatedAt',
|
||||
width: 180,
|
||||
width,
|
||||
fixed: 'right' as const,
|
||||
align: 'right' as const,
|
||||
render: (row: any) => {
|
||||
|
||||
Reference in New Issue
Block a user