<ShadcnTableRow> <ShadcnTableColumn v-for="c in columns" <ShadcnTableColumn v-for="(c, index) in columns" :key="c.key" :label="c.label" :border="border" :fixed="c.fixed" :width="c.width"/> :width="c.width" :isLastLeftFixed="isLastLeftFixed(index)" :isFirstRightFixed=...
export interface ColumnProps { label?: string key?: string slot?: string fixed?: 'left' | 'right' width?: string | number size?: keyof typeof TableCellSize border?: boolean stripe?: boolean isLastLeftFixed?: boolean isFirstRightFixed?: boolean leftOffset?: number rightOffset?: number ...
@UpdateDateColumn( { name: 'update_at', comment: '修改时间', }) updateAt: Date; @DeleteDateColumn( { name: 'delete_at', comment: '修改时间', }) deleteAt: Date; } export class BaseWithFullEntity extends BaseEntity { @Column('tinyint', { comment: '1(正常)0(禁用)', width: 1,...
Resend email."},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/common/Loading/LoadingDot-1745505309803":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/common/Loading/LoadingDot-1745505309803","value":{"title":"Loading..."},"localOverride...
49 + import { ColumnProps, TableCellSize } from '@/ui/table/types.ts' 49 50 50 51 withDefaults(defineProps<ColumnProps>(), { 51 52 border: false, 52 53 fixed: undefined, 53 54 width: 'auto', 54 55 isLastLeftFixed: false, 55 - isFirstRightFixed: false 56 + isFir...
'column',\n canDropNode: ({ dragEntry, dropEntry }) =>\n PathApi.equals(\n PathApi.parent(dragEntry[1]),\n PathApi.parent(dropEntry[1])\n ),\n });\n\n return (\n <div className=\"group/column relative\" style={{ width: width ?? '100%' }}>\n {!readOnly && !isSel...
columns: ColumnDef<TData, TValue>[]; Expand Down Expand Up @@ -126,7 +127,6 @@ export function EmployeeTable<TData, TValue>({ }); const searchValue = table.getColumn(searchKey)?.getFilterValue() as string; console.log("searchValue", searchValue); // React.useEffect(() =>...
columns: ColumnDef<TData, TValue>[]; Expand Down Expand Up @@ -48,11 +49,10 @@ export function DataTable<TData, TValue>({ onChange={(event) => table.getColumn(searchKey)?.setFilterValue(event.target.value) } className="max-w-sm" className="w-full md:max-w-sm" /> <div cla...
<!-- 它将包含我们的<DataTable />组件。 --> <script setup lang="ts" generic="TData, TValue"> import type { ColumnDef } from '@tanstack/vue-table' import type { ColumnDef, ColumnFiltersState, SortingState, VisibilityState, ExpandedState, } from '@tanstack/vue-table' import { Flex...