npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@x-coins/ui

v0.1.2

Published

Vue 3 企业统一 UI 组件库(配置化表单 SchemaForm / SearchForm)

Downloads

36

Readme

@x-coins/ui

Business UI components for Vue 3 applications. The package wraps Ant Design Vue with project-level table, form, and pop conventions.

Detailed API reference: ../../docs/api-reference.md. CRUD agent workflow: ../../docs/skills/coins-crud-page/SKILL.md.

Public Entry

Import from the package root:

import {
  createModalPop,
  defineColumns,
  defineSchema,
  ProTable,
  SchemaForm,
  SearchForm,
  useProTable,
  useSchemaForm,
} from '@x-coins/ui'

Form APIs

  • SchemaForm: renders configuration-driven forms from FormSchema.
  • SearchForm: compact query form built on SchemaForm; emits search with query plus pagination.
  • defineSchema<T>(): type helper for schema declarations.
  • useSchemaForm<T>(): exposes validate, setFieldsValue, resetFields, and other form instance helpers.

Common field components include input, textarea, input-number, select, tree-select, switch, checkbox, checkbox-group, and radio-group.

Use form-level state for whole-form behavior:

<SchemaForm
  v-model:model="model"
  :schema="schema"
  :loading="detailLoading"
/>

loading shows a spin indicator and disables the form. Use field-level disabled only for business-specific exceptions.

Table APIs

  • ProTable: wraps Ant Design Vue Table with toolbar, column settings, row actions, selection, pagination, tree rows, and slots.
  • defineColumns<T>(): type helper for column declarations.
  • useProTable<T, Q>(): centralizes loading, request sequencing, pagination, search, reload, and table change state.

Use actions for row operations and named slots for custom cells:

<ProTable :columns="columns" :data-source="dataSource" :actions="actions">
  <template #status="{ record }">
    {{ record.status }}
  </template>
</ProTable>

Pop APIs

  • createModalPop: opens a lazy-loaded component in a modal container.
  • Pop content can expose submit(); the modal confirm button calls it and resolves the returned promise on success.
  • Pass business data through params, and call props.handle.confirm() after successful submit.

CRUD Convention

For admin pages, prefer SearchForm + useProTable + ProTable for lists and SchemaForm + createModalPop for create/edit forms. Edit and detail pop components should fetch by id before filling the form.