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 🙏

© 2024 – Pkg Stats / Ryan Hefner

lninl-ui

v0.0.9

Published

一个基于 Vue 3 & UnoCSS,兼容 TDesign 的 uni-app UI开发组件

Downloads

259

Readme

lninl-ui

NPM Version NPM Downloads GitHub Issues or Pull Requests GitHub License

lninl-ui是一个基于 Vue 3 & UnoCSS,兼容 TDesignuni-app UI开发组件。

🪄 特性

🔨 开发

安装

# 安装 pnpm 和 @vue/cli
npm install -g @vue/cli pnpm

# 创建项目
pnpx degit dcloudio/uni-preset-vue#vite my-vue3-project
cd my-vue3-project

# 安装 lninl-ui UI开发组件
pnpm i lninl-ui

# 更新uniapp依赖
pnpx @dcloudio/uvm@latest

配置

  • 打开 main.js,在export function createApp()之前添加 import 'uno.css',如下
...
import 'uno.css'

export function createApp() {
    ...
}
  • 打开 vite.config.js,添加 unocss 支持,如下
import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import unocss from 'unocss/vite'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    uni(),
    unocss(),
  ],
})
  • 在项目根目录下(与 package.json 同级) 添加 uno.config.js 文件,文件内容参考

./uno.config.js

  • 打开 pages.json, 添加 easycom 配置 (此步骤可忽略)
{
    ...
    "easycom": {
        "autoscan": true,
        "custom": {
            "^l-(.*)": "lninl-ui/components/l-$1/l-$1.vue"
        }
    }
    ...
}

添加或修改功能

目前只完成组件:

  • [x] Badge 徽标 - 用于告知用户,该区域的状态变化或者待处理任务的数量。
  • [x] Icon 图标 - Icon 作为UI构成中重要的元素,一定程度上影响UI界面整体呈现出的风格。
  • [x] TabBar 标签栏 - 用于在不同功能模块之间进行快速切换,位于页面底部。
  • [x] Loading 加载 - 用于表示页面或操作的加载状态,给予用户反馈的同时减缓等待的焦虑感,由一个或一组反馈动效组成。
  • [x] Button 按钮 - 按钮用于开启一个闭环的操作任务,如“删除”对象、“购买”商品等。
  • [x] Search 搜索框 - 用于用户输入搜索信息,并进行页面内容搜索。
  • [x] Input 输入框 - 用于文本信息输入。
  • [x] Textarea 多行文本框 - 用于多行文本信息输入。
  • [x] Radio 单选框 - 用于在预设的一组选项中执行单项选择,并呈现选择结果。

进行中的组件:

  • [ ] Form 表单 - 按钮用于开启一个闭环的操作任务,如“删除”对象、“购买”商品等。
  • [ ] Upload 上传 - 用于相册读取或拉起拍照的图片上传功能。
  • [ ] Checkbox 多选框 - 用于预设的一组选项中执行多项选择,并呈现选择结果。
  • [ ] Cascader 级联选择器 - 用于多层级数据选择,主要为树形结构,可展示更多的数据。
  • [ ] Swiper 轮播 - 用于循环轮播一组图片或内容,也可以滑动进行切换,轮播动效时间可以设置。

下一阶段开发的组件:

  • [ ] 其他组件

欢迎大家的加入,一起完善!

交流反馈

欢迎加入QQ群号:195822307 点此加入