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

lview-ui

v2.0.4

Published

利宇uni-app UI组件

Readme

利宇nui-app组件

npm方式安装

// 如果您的项目是HX创建的,根目录又没有package.json文件的话,请先执行如下命令:
// npm init -y

// 安装
npm install lview-ui --save

// 更新
npm update lview-ui --save

配置

关于SCSS

lView依赖SCSS,您必须要安装此插件,否则无法正常运行。

  • 如果您的项目是由HBuilder X创建的,相信已经安装scss插件,如果没有,请在HX菜单的 工具->插件安装中找到"scss/sass编译"插件进行安装, 如不生效,重启HX即可
  • 如果您的项目是由vue-cli创建的,请通过以下命令安装对sass(scss)的支持,如果已安装,请略过。
// 安装node-sass
npm i node-sass -D

// 安装sass-loader
npm i sass-loader -D

配置步骤

  1. 引入lview-ui JS库

在项目根目录中的main.js中,引入并使用uView的JS库,注意这两行要放在import Vue之后。

// main.js
import uView from "uview-ui";
Vue.use(uView);
  1. 配置easycom组件模式

此配置需要在项目根目录的pages.json中进行。

温馨提示

uni-app为了调试性能的原因,修改easycom规则不会实时生效,配置完后,您需要重启HX或者重新编译项目才能正常使用uView的功能。

请确保您的pages.json中只有一个easycom字段,否则请自行合并多个引入规则。

// pages.json
{
	"easycom": {
        "^l-(.*)": "lview-ui/components/l-$1/l-$1.vue",
		"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
	},
	
	// 此为本身已有的内容
	"pages": [
		// ......
	]
}
  1. app配置

在项目根目录中的appconfig.json中

{
	"work":{ //正式环境
		"forcedLogin":true,
		"code": "app-hdgc",
		"deptCoding": "2-2-2-2-2-2-2-2",
		"protocol": "http",
		"domain": ".[host]",
		"host": "em.[host]",
		"port": "8020",
		"mode": "work",
		"remoteServers": {
			"sso": {
				"clientCode": "app-hdgc",
				"protocol": "http",
				"host": "dd.[host]",
				"port": "8088",
				"isConnected": true,
				"serverCode": "sso",
				"serverName": "单点登录系统"
			}
		},
		"versionService": "https://em.[host]/module/app/version/version.json" //app版本信息地址 -用于自动更新
	},
	"development":{//开发环境
		"forcedLogin":true, //是强制登录
		"code": "app-hdgc",// 系统代号
		"deptCoding": "2-2-2-2-2-2-2-2",//部门分级别规则
		"protocol": "http",//请求协议
		"domain": ".[host]",//一级域名,注意前面有'.'
		"host": "em.[host]",//系统域名
		"port": "8020",//系统端口
		"mode": "development",//工作模式
		"remoteServers": {//远程服务
			"sso": {//单点服务
				"clientCode": "app-hdgc",//访问系统代号
				"protocol": "http",//请求协议
				"host": "dd.[host]",//服务域名
				"port": "8088",//服务端口
				"isConnected": true,//是否与客户端关联
				"serverCode": "sso",//服务代号
				"serverName": "单点登录系统"//服务名称
			}
		},
		"versionService": "https://em.[host]/module/app/version/version.json" //app版本信息地址 -用于自动更新
	}
}

更新记录

版本1.0.3 2020-08-18

  1. 添加待办组件

l-list-db-item l-list-db-page

版本1.0.4 2020-08-19

  1. 添加待办组件

l-list-string l-list-text l-list-item

版本1.0.5 2020-08-19

  1. 添加待办组件

l-list-page

版本1.0.6 2020-08-19

  1. 添加待办组件

l-list-page 页面跳转bug修改

版本1.0.7 2020-08-20

  1. 发布缺少 static文件夹

版本1.0.8 2020-08-20

  1. l-list-text 组件 手机端展开bug修复

版本1.1.0 2020-09-03

  1. 添加请求处理类netUtis
  2. 重构请求类

版本1.1.1 2020-09-07

  1. 修改图片显示bug

版本1.1.2 2020-09-08

  1. 登录用户切换身份bug
  2. 流程检视查看显示未处理内容

版本2.0.1 2020-09-22

  1. 链接agent后台

版本2.0.2 2020-09-23

  1. 链接agent后台

版本2.0.3 2020-09-23

  1. 修改配置文件 添加doc配置

发布npm组件

npm publish

引入开源组件

  1. uView-ui

创建验证项目

安装webpack

npm install wepack-cli --save-dev