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

@flyto/farco

v1.1.5

Published

基于 Arco Design Vue 的业务组件库,提供更贴近业务的统一约定层。

Readme

@flyto/farco

基于 Arco Design Vue 的业务组件库,提供更贴近业务的统一约定层。

特性

  • 基于 Arco Design Vue 二次封装
  • 统一交互和默认行为
  • 提升配置化能力
  • 保留底层扩展性

安装

npm

npm install @flyto/farco

pnpm

pnpm add @flyto/farco

依赖

本包依赖以下运行时环境,请确保已安装:

npm install vue vue-router @arco-design/web-vue

完整引入

import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import ArcoVue from '@arco-design/web-vue'
import '@arco-design/web-vue/dist/arco.css'

import Farco from '@flyto/farco'
import '@flyto/farco/style.css'

const router = createRouter({
  history: createWebHistory(),
  routes: [],
})

const app = createApp(App)

app.use(ArcoVue)
app.use(Farco, {
  router,
  icons: {
    iconfont: h('span'),
    arco: {},
  },
})

app.use(router)
app.mount('#app')

按需引入

import { createApp } from 'vue'
import { FButton, FInput, FSelect, FTable } from '@flyto/farco'
import '@flyto/farco/style.css'

const app = createApp({})
app.component('FButton', FButton)
app.component('FInput', FInput)
app.component('FSelect', FSelect)
app.component('FTable', FTable)

组件列表

基础组件

| 组件 | 说明 | | --------- | ---------------------------------- | | FButton | 按钮,支持 tooltip、icon、自定义色 | | FIcon | 图标,统一 iconfont 与 Arco Icon | | FLink | 链接,支持路由跳转 | | FSkeleton | 骨架屏 | | FText | 文本,支持省略、展开 |

表单组件

| 组件 | 说明 | | --------- | ---------- | | FCheckbox | 复选框组 | | FDate | 日期选择 | | FForm | 配置化表单 | | FFormItem | 表单项 | | FInput | 输入框 | | FMlInput | 多行输入 | | FRadio | 单选框组 | | FRange | 区间输入 | | FSearch | 搜索选择 | | FSelect | 选择器 | | FSwitch | 开关 | | FTextarea | 文本域 |

数据与交互

| 组件 | 说明 | | ---------- | -------- | | FPopChoice | 弹窗选择 | | FQueryList | 查询列表 | | FTable | 表格 |

业务工具函数

import { utils } from '@flyto/farco'

utils.formatListToMenus(list)

| 函数 | 说明 | | --------------------- | ------------------------------------ | | utils.formatListToMenus | 格式化服务端权限数据为 Arco 菜单结构 |

相关类型

| 类型 | 说明 | | ---------------- | ------------------------ | | ArcoAppMenu | Arco 框架菜单结构 | | AuthFunction | 服务端返回的权限数据结构 | | ServerEntityBase | 服务端返回数据的基础字段 |

构建

pnpm build

License

MIT