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

island-design-uni

v0.1.6

Published

A lightweight uni-app component library built with Vue3 and TypeScript.

Readme

island-design-uni

一个轻量的 uni-app 组件库骨架,按 wot-design-uni 的思路整理成纯组件库形态,不包含 demo 页面、文档站或业务代码。

当前内置组件:

  • IslandScroll

目录结构

island-design-uni
├─ scripts
├─ src
│  ├─ components
│  ├─ global.d.ts
│  └─ index.ts
├─ env.d.ts
├─ package.json
├─ package.publish.json
└─ tsconfig.json

开发

pnpm install
pnpm run typecheck
pnpm run build

构建后会生成 lib 目录。这个目录就是实际用于发布到 npm 的包内容。

平时你主要只需要关注 src/components,新增组件时直接在里面创建自己的组件目录即可。

发布

发布前先确认 package.publish.json 里的 version 没有和 npm 上已有版本重复。

预演发布内容:

pnpm run publish:dry-run

正式发布:

pnpm run publish:npm

脚本会先执行类型检查和构建,然后把 lib 目录作为 npm 包发布。

在 uni-app 项目中使用

推荐方式是按需引入:

<script setup lang="ts">
import { IslandScroll } from 'island-design-uni'
</script>

<template>
  <IslandScroll
    :loading="loading"
    :load-done="loadDone"
    :reset-key="activeTab"
    @refresh="handleRefresh"
    @load="handleLoad"
  >
    <view v-for="item in list" :key="item.id">{{ item.title }}</view>
  </IslandScroll>
</template>

也支持作为插件注册:

import { createSSRApp } from 'vue'
import App from './App.vue'
import IslandDesignUni from 'island-design-uni'

export function createApp() {
  const app = createSSRApp(App)
  app.use(IslandDesignUni)

  return { app }
}

在 vite.config.ts 中自动解析组件

发布 0.1.1 及以上版本后,可以在 UniComponents 中使用库内置 resolver:

import UniComponents from '@uni-helper/vite-plugin-uni-components'
import { WotResolver } from '@uni-helper/vite-plugin-uni-components/resolvers'
import { IslandResolver } from 'island-design-uni/resolver'

UniComponents({
  resolvers: [WotResolver(), IslandResolver()],
})

这样页面里可以直接使用 <IslandScroll />,不再需要手动 import

组件说明

IslandScroll 是一个通用滚动加载容器,提供:

  • 触顶刷新事件 refresh
  • 触底或点击文字加载事件 load
  • 数据源切换后自动回到顶部
  • 底部占位和安全区预留

它已经移除了业务 store、别名路径和 taro-text 依赖,可以直接作为公共组件发布。

优先使用 resetKey 来标记“数据源切换”。dataTotal 只作为兼容字段保留,更适合传总量或重置后的数量,不建议直接传当前列表长度。