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

@fujica/components

v0.0.1

Published

基础 uni-app 组件库

Readme

Fujica UI

基础的 uni-app 组件库,包含常用的基础组件。

📦 安装

npm 安装

npm install @fujica/components
# 或
pnpm add @fujica/components
# 或
yarn add @fujica/components

uni_modules 安装

将项目克隆或下载后,复制 src/components 目录到你的 uni-app 项目的 src/uni_modules/@fujica/components/components 目录下。

🚀 使用方式

方式一:uni-app 项目(推荐)

默认导入源码,让 uni-app 编译系统处理多端编译:

<template>
  <view>
    <fs-button type="primary">主要按钮</fs-button>
    <fs-icon name="search" size="24px" />
    <fs-input v-model="value" placeholder="请输入" />
  </view>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { FsButton, FsIcon, FsInput } from '@fujica/components'

const value = ref('')
</script>

方式二:非 uni-app 项目

如果在普通 Vue 项目中使用编译后的版本:

import { FsButton, FsIcon, FsInput } from '@fujica/components/dist'

或在 Vite 配置中添加别名:

// vite.config.ts
export default {
  resolve: {
    alias: {
      '@fujica/components': '@fujica/components/dist'
    }
  }
}

📚 组件列表

  • FsButton - 按钮组件
  • FsIcon - 图标组件
  • FsInput - 输入框组件

💡 类型支持

项目已内置 TypeScript 类型定义,支持:

  • ✅ 组件 Props 类型提示
  • ✅ 全局组件类型(Volar 支持)
  • ✅ 工具函数类型

📖 文档

运行文档站点:

pnpm docs:dev

🛠 开发

# 安装依赖
pnpm install

# H5 开发
pnpm dev:h5

# 微信小程序开发
pnpm dev:mp-weixin

# 构建库文件(发布前)
pnpm build:lib

# 文档开发
pnpm docs:dev

# 构建文档
pnpm docs:build

📝 发布流程

  1. 更新版本号:编辑 package.json 中的 version 字段
  2. 构建库文件:pnpm build:lib
  3. 发布到 npm:npm publish --access public

License

MIT