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

@sumintong/smt-ui

v0.0.2

Published

高颜值、轻量化的 UniApp Vue3 组件库

Downloads

24

Readme

SMT-UI (SMT Design)

基于 Vue 3 + TypeScript 开发的 UniApp UI 组件库,提供丰富的组件和工具库,致力于提供轻量、高颜值的移动端开发体验。

✨ 特性

  • 🚀 60+ 高质量组件:覆盖移动端主流场景
  • 📐 TypeScript:完备的类型定义
  • 🎨 主题定制:基于 CSS 变量,支持实时切换与暗黑模式
  • 🛠 内置工具库:深拷贝、防抖节流、格式化、规则校验等
  • 📱 多端发布:完美支持 H5、微信小程序、App

📦 安装

# 使用 pnpm (推荐)
pnpm add @sumintong/smt-ui

# 使用 npm
npm install @sumintong/smt-ui

🔨 快速上手

1. 配置 easycom (推荐)

修改项目根目录下的 pages.json,配置后无需 import 即可直接使用组件。

{
  "easycom": {
    "autoscan": true,
    "custom": {
      "^mt-(.*)": "@sumintong/smt-ui/src/components/$1/$1.vue"
    }
  },
  "pages": [
    // ...
  ]
}

2. 引入样式

在项目的 App.vueuni.scss 中引入全局样式:

/* 在 App.vue 的 style 中引入 */
@import '@sumintong/smt-ui/src/index.scss';

3. 使用组件

<template>
  <view>
    <mt-button type="primary">主要按钮</mt-button>
  </view>
</template>

🧩 组件库概览

目前已支持基础布局、表单输入、反馈提示、展示导航等完整移动端交互组件。详情请参考 官方文档 (开发中)

🛠 JS 工具库

import { formatDate, debounce, request } from '@sumintong/smt-ui'

// 格式化日期
formatDate(new Date(), 'yyyy-MM-dd')

// 接口请求 (Promise 封装)
request({ url: '/api/user', method: 'GET' })

Copyright (c) 2026 SMT Team. Released under the MIT License.