跳到正文
cccskills
免费在 GitHub 公开

nuxt-ui-tools-table

Use this skill when building or debugging table usage with nuxt-ui-tools as a package consumer. Covers defineTableSchema, useTable, DataList, granular composition, columns, filters, sorting, offset or cursor loading, layouts, summary rows on phones, first-use empty states, actions, selection, accessible row names, context, and URL state with concrete examples.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(17)

  • SKILL.md3.5 KB
  • references/actions.md6.0 KB
  • references/columns.md4.1 KB
  • references/context.md1.3 KB
  • references/data-modes.md2.9 KB
  • references/filters.md15.6 KB
  • references/getting-started.md1.4 KB
  • references/layouts.md6.7 KB
  • references/overview.md1.2 KB
  • references/pagination.md2.5 KB
  • references/patterns.md989 B
  • references/schema-surface.md1.3 KB
  • references/selection.md2.3 KB
  • references/slots.md11.0 KB
  • references/sorting.md480 B
  • references/tree.md3.9 KB
  • references/url-state.md1.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

nuxt-ui-tools Table

Use this skill for package-consumer tasks involving:

  • defineTableSchema(...)
  • tableSource(...)
  • useTable(...)
  • DataList
  • DataListRoot and granular rendering parts
  • table columns
  • table filters
  • client or remote table setup
  • table query-state integration
  • cursor infinite loading and no-pagination mode
  • tree rows (table.tree) and the expansion API
  • summary rows (table.summary) and the view toggle for phones
  • first-use empty states (empty) and record names for assistive technology (rowLabel)
  • touch targets below the md breakpoint (ui.mobile)

Read This Skill With

  • skills/consumer/package/SKILL.md
  • skills/consumer/table/references/overview.md

Then use the focused references:

  • skills/consumer/table/references/getting-started.md
  • skills/consumer/table/references/data-modes.md
  • skills/consumer/table/references/url-state.md
  • skills/consumer/table/references/schema-surface.md
  • skills/consumer/table/references/layouts.md
  • skills/consumer/table/references/pagination.md
  • skills/consumer/table/references/sorting.md
  • skills/consumer/table/references/filters.md
  • skills/consumer/table/references/columns.md
  • skills/consumer/table/references/selection.md
  • skills/consumer/table/references/tree.md
  • skills/consumer/table/references/context.md
  • skills/consumer/table/references/actions.md
  • skills/consumer/table/references/slots.md
  • skills/consumer/table/references/patterns.md

I18n-Friendly Schema Text

Schema-owned table text should be written as translation-friendly lazy values when it comes from app i18n.

Use this pattern for:

  • filter labels
  • filter placeholders
  • preset labels and descriptions
  • column labels
  • action labels
  • static option labels

Example:

const { t } = useI18n()

const schema = defineTableSchema({
  tableKey: 'employees',
  rowKey: 'id',
  filters: {
    search: {
      fields: ['fullName', 'email'],
      placeholder: () => t('employees.search.placeholder'),
    },
    ui: (filter) => [
      filter.text('fullName', {
        label: () => t('employees.filters.name'),
        editor: {
          placeholder: () => t('employees.filters.searchName'),
        },
      }),
      filter.date('hiredAt', {
        label: () => t('employees.filters.hiredAt'),
        editor: {
          scalar: {
            presets: [
              {
                label: () => t('shared.datePresets.today'),
                value: ({ now }) => now,
              },
            ],
          },
        },
      }),
    ],
  },
  rowActions: ({ row }) => [
    {
      key: 'copy-email',
      label: () => t('employees.actions.copyEmail'),
    },
  ],
  table: {
    columns: (column) => [
      column.field('fullName', {
        label: () => t('employees.columns.fullName'),
      }),
    ],
  },
})

Prefer translation keys through t(...) over writing bilingual helpers or rebuilding the whole schema in a computed(...).

If a surface only renders package-owned UI text and does not come from your schema, use the package locale/provider layer instead of duplicating those strings in your app schema.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use this skill when working with the nuxt-ui-tools package as a consumer or integrator. It provides the current package overview and routes to table, form, dashboard, file preview, query-state, shared responsive helpers, remote option loaders, and i18n usage.

中文简介正在准备中。当前显示原文说明。

ChronicStone/nuxt-ui-tools22026年10月17日 更新

Use this skill for internal architecture work around config-driven, registry-driven, and pattern-driven feature design in the nuxt-ui-tools repository. Covers how to organize variant-heavy features, where to put implementations, and how to keep both internals and public APIs standardized.

中文简介正在准备中。当前显示原文说明。

ChronicStone/nuxt-ui-tools22026年10月17日 更新

Use this skill when building analytics dashboards with nuxt-ui-tools as a package consumer. Covers schema and view functions (defineDashboardSchema, defineDashboardView) that take their context as typed params, useDashboard with a getter that rebuilds on input change, typed injection (useDashboardView, injectDashboard, InferDashboard, InferDashboardView), filters declared inline with the f builder and synced with the URL, memory, or an external store (one value per key across views), headless filters, filter controls and the shipped UI (UiDashboardPage, UiDashboardFilters, UiDashboardFilter, UiDashboardViewTabs) with slot overrides, remote paginated pickers and remoteTableOptions, staged queries (essential / background / deferred) with select and dependent requires, lazy enabled conditions on views, queries, and filters (blocks of disabled queries hidden, grids closing up), derived values, views (tabs), query-scoped filters, number formats (presets, Intl options, useDashboardFormat), and the dashboard blocks (stats with trends, goals, and comparisons, stat groups, gauges, unovis charts with highlights, value labels, and totals, lists with progress rings, bars, funnel, alerts, activity feeds, sortable tables, custom widgets) with their automatic loading, error, empty, and refresh states, card menus, header and footer actions, row actions, drill-down and selected state, card tabs, split cards, comparison periods, auto-refresh, and data freshness.

中文简介正在准备中。当前显示原文说明。

ChronicStone/nuxt-ui-tools22026年10月17日 更新

Use this skill when previewing files with nuxt-ui-tools as a package consumer. Covers mounting UiFilePreviewProvider, opening one file or a gallery with useFilePreview() or useNuxtApp().$filePreview, file descriptors (URL, File/Blob, or a function that returns a signed URL), options (index, mode, gallery, loop, pdf page, callbacks), the returned handle, the built-in renderers (image, video, audio, PDF, text/JSON, CSV, Markdown, Office and archive fallbacks), renditions, download and custom header actions, the markdown render hook, custom renderers with defineFilePreviewRenderer and UiFilePreviewTools, theming tokens, and how the upload field uses the preview.

中文简介正在准备中。当前显示原文说明。

ChronicStone/nuxt-ui-tools22026年10月17日 更新

Use this skill when working with the nuxt-ui-tools form runtime as a package consumer. It covers schema-driven forms, the provider-backed form API, inline rendering, overlay rendering, form pages with a section navigation, rich options (icon, avatar, chip, description, suffix, grouped menus, and renderOption/renderValue render functions on select, auto-complete, radio, and checkbox group), choice cards, and typed submit results.

中文简介正在准备中。当前显示原文说明。

ChronicStone/nuxt-ui-tools22026年10月17日 更新

Use this skill when wiring nuxt-ui-tools translations in an app. Covers UiToolsProvider, locale objects, lazy schema text, and how package-owned UI copy differs from schema-owned text.

中文简介正在准备中。当前显示原文说明。

ChronicStone/nuxt-ui-tools22026年10月17日 更新

查看 ChronicStone 的全部技能

报告此技能的问题