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

weui-uniapp

v1.1.9

Published

WeUI components for uni-app Vue 3.

Downloads

112

Readme

weui-uniapp

WeUI UniApp 是基于 WeUI 视觉体系封装的 uni-app Vue 3 组件库,适用于 H5、小程序等 uni-app 项目。

文档

  • 文档站:https://vueshow.github.io/weui-uniapp/
  • GitHub:https://github.com/vueshow/weui-uniapp
  • npm:https://www.npmjs.com/package/weui-uniapp

安装

pnpm add weui-uniapp

也可以把本目录作为 uni_modules/weui-uni 放入 uni-app 项目中使用。

引入样式

App.vue 中按平台引入:

/* #ifdef MP */
@import 'weui-uniapp/styles/mp.scss';
/* #endif */

/* #ifndef MP */
@import 'weui-uniapp/styles/index.scss';
/* #endif */

H5 项目如果不方便编译 Sass,也可以直接引入完整 CSS。小程序端请使用 styles/mp.scss,不要把完整 H5 CSS 打进 WXSS:

@import 'weui-uniapp/styles/weui.css';

全量注册

import { createSSRApp } from 'vue';
import App from './App.vue';
import WeuiUni from 'weui-uniapp';

export function createApp() {
  const app = createSSRApp(App);
  app.use(WeuiUni);
  return { app };
}

H5 端可以通过 app.use(WeuiUni) 使用全量注册。小程序端需要编译期识别组件,推荐同时在 pages.json 配置 easycom:

{
  "easycom": {
    "autoscan": true,
    "custom": {
      "^weui-(.*)": "weui-uniapp/components/weui-$1/weui-$1.vue"
    }
  }
}

配置后可以直接使用 <weui-button /><weui-cell /> 等组件标签。

基础用法

<template>
  <view class="weui-uni-page">
    <weui-button text="主要操作" />
    <weui-cell-group title="列表">
      <weui-cell title="标题文字" value="说明文字" arrow clickable />
    </weui-cell-group>
  </view>
</template>

组件

当前已包含:

  • weui-actionsheet
  • weui-agree
  • weui-article
  • weui-badge
  • weui-button
  • weui-card
  • weui-cell-group
  • weui-cell
  • weui-checkbox
  • weui-dialog
  • weui-empty-state
  • weui-flex
  • weui-flex-item
  • weui-footer
  • weui-form
  • weui-form-preview
  • weui-gallery
  • weui-grid
  • weui-grid-item
  • weui-half-screen-dialog
  • weui-icon
  • weui-information-bar
  • weui-input
  • weui-list-tips
  • weui-loading
  • weui-loadmore
  • weui-msg
  • weui-navbar
  • weui-panel
  • weui-picker
  • weui-progress
  • weui-radio
  • weui-searchbar
  • weui-slider
  • weui-steps
  • weui-switch
  • weui-tabbar
  • weui-toast
  • weui-toptips
  • weui-uploader

发布前检查

pnpm pack

确认压缩包中包含:

  • index.js
  • components/
  • styles/index.scss
  • styles/mp.scss
  • styles/weui.css
  • README.md
  • package.json

发布

npm login
npm whoami
pnpm publish --access public

如果当前目录不在 git 仓库或 git 状态不干净,可以使用:

pnpm publish --access public --no-git-checks