@atscript/vue-form

中文文档
0.1.169发布于 2026/11/07MITTypeScriptESM + CJS近 30 天下载 2769

Type-driven form rendering for Atscript with Vue 3

原始使用文档
文档目录4 节
  1. What it provides
  2. Install
  3. Auto-resolved tags (optional)
  4. License

Atscript UI

@atscript/vue-form

📚 Documentation: ui.atscript.dev

Type-driven form rendering for Vue 3 — components and composables that turn an atscript-annotated .as type into a fully wired form.

Part of the atscript-ui monorepo. Built on @atscript/ui.

What it provides

  • <AsForm>, <AsField>, <AsIterator> — tier-1 components users tag in templates
  • Default input renderers (AsInput, AsSelect, AsCheckbox, AsDate, …) under @atscript/vue-form/as-* subpaths — swappable via the :types / :components prop map
  • Composables: useAsForm, createDefaultTypes, …
  • Headless: zero design-system assumptions. Styling lives in @atscript/ui-styles (UnoCSS) or your own layer.

Install

pnpm add @atscript/vue-form

Peer requirements: vue@^3, reka-ui@^2, @atscript/db-client, @atscript/ui-fns.

Auto-resolved tags (optional)

import Components from "unplugin-vue-components/vite";
import { AsResolver } from "@atscript/ui-styles/vite";

export default {
  plugins: [Components({ resolvers: [AsResolver()] })],
};

License

MIT © Artem Maltsev

版本与发布记录

@atscript/vue-form 共发布 112 个版本,首次发布于 2026/05/13;过去 12 个月发布了 112 个版本。

版本发布日期距今
0.1.169latest2026/11/07今天
0.1.1682026/11/071 天前
0.1.1672026/11/061 天前
0.1.1662026/11/061 天前
0.1.1652026/11/061 天前
0.1.1642026/11/043 天前

关于 @atscript/vue-form 的常见问题

@atscript/vue-form 是什么?

Type-driven form rendering for Atscript with Vue 3

如何安装 @atscript/vue-form?

在项目目录运行 npm install @atscript/vue-form,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:vue(^3)、reka-ui(^2.9.8)、@atscript/db-client(^0.1.174)、@atscript/typescript(^0.2.9)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@atscript/vue-form 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@atscript/vue-form 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@atscript/vue-form 可以商用吗?

@atscript/vue-form 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@atscript/vue-form 的下载量有多少?

根据 npm 官方下载统计,@atscript/vue-form 在 2026/10/07 – 2026/11/05 这 30 天内被下载 2,769 次,日均约 92 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@atscript/vue-form 还在维护吗?

最新版本 0.1.169 发布于 2026/11/07(今天);至今共发布 112 个版本,其中过去 12 个月发布了 112 个;首次发布于 2026/05/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。