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

@ldesign/mobile-next

v0.1.10

Published

基于vue3的移动端组件库

Downloads

7

Readme


@ldesign/mobile-next 是基于[email protected]开发用于 桌面端 的组件库,切记保证本地的 vue 版本号不要高于 2.6.x,如果使用报错,请检查本地项目的 package.json,确保vue以及vue-template-compiler的版本号为:2.6.x

{ javascript
  "dependencies": {
    ...,
    "vue": "~2.6.14",
  },
  "devDependencies": {
    ...,
    "vue-template-compiler": "~2.6.14"
  }
}

特性

  • 用于桌面端系统及网站,统一的接口风格,一致的 UI 表现

  • 基于 vue(2.6.14),@vue/composition-api开发,既能使用 2.0 的语法,也能尝鲜 3.0 的语法

  • 支持暗黑模式及主题定制,基于less变量和css变量,更换主题方式灵活

  • 支持按需加载,通过esesm模块引入,能最小限度减小项目大小

安装

npm i @ldesign/mobile-next

// 最好还要安装@vue/composition-api

npm i @vue/composition-api

基本用法

推荐使用 WebpackRollup 等支持 tree-shaking 特性的构建工具,无需额外配置即可实现组件按需引入:

import Vue from 'vue'
import LDesign from '@ldesign/mobile-next';
import compositionAPI from '@vue/composition-api';
// 这里面主要是主题以及reset样式,组件自身的样式已经跟随组件一同加载,如果需要自定义主题,也可通过改变该文件来实现
import '@ldesign/mobile-next/es/style/index.css';

Vue.use(LDesign)
Vue.use(compositionAPI)

注意:如果没有安装@vue/composition-api,项目可能会报错。