【新增】插件git同步模块,用于同步项目内容,加速项目开发

【调整】前端暗色问题
This commit is contained in:
chudong
2025-05-14 16:50:56 +08:00
parent dc43da936b
commit e6947ec5c4
215 changed files with 19918 additions and 9710 deletions

View File

@@ -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) => {