Files
lgp-admin-plus/apps/web-antd/src/views/goods/carousel/config/table.ts
年糕崽崽 0cdfb7e956
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
更新若干功能
2026-08-20 19:18:39 +08:00

21 lines
624 B
TypeScript

import {
actionColumn,
createGridOptions,
statusColumn,
} from '#/components/crud';
import { carouselApi } from '../api';
export const gridOptions = createGridOptions({
columns: [
{ field: 'id', align: 'left', title: 'ID', width: 80 },
{ field: 'url', title: '轮播图', width: 160, slots: { default: 'image' } },
{ field: 'to_path', align: 'left', title: '跳转路径', minWidth: 260 },
{ field: 'sort', title: '排序', width: 90 },
statusColumn,
{ field: 'created_at', title: '创建时间', width: 180 },
actionColumn(160),
],
query: (params) => carouselApi.list(params),
});