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

heren-design-web-vue

v1.5.3

Published

Heren Design Component For Vue3

Downloads

109

Readme

基于和仁设计规范的 Vue 组件库,适配桌面端应用,适合在 Vue 3.x 技术栈项目中使用。

🎉 特性

  • 适配桌面端交互
  • 支持全局以及组件级别的主题配置
    • css variable
    • less variable
  • Typescript编写,所有组件类型友好
  • 支持暗黑模式及其他主题定制
  • 支持按需加载

安装

# npm 
npm install heren-design-web-vue

# yarn (推荐)
yarn add heren-design-web-vue

编辑器提示

安装注册 HerenDesign 之后,在开发项目时,可以配合插件在VSCode等主流编辑器中达到提示组件名及API的效果。

推荐安装 volar,并在项目的 tsconfig.json 的 includes 属性中增加node_modules/heren-design-web-vue/global.d.ts,即可实现该效果。

基础使用

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

import { createApp } from 'vue';
import { Button, Input, Form } from 'heren-design-web-vue';
import App from './App.vue';

// 引入组件库全局样式资源
import 'heren-design-web-vue/es/style/index.css';

const app = createApp(App);
app.use(Button);
app.use(Input);
app.use(Form);
app.mount('#app');

全局引入

import { createApp } from 'vue';
import HerenDesign from 'heren-design-web-vue';
import App from './App.vue';

// 引入组件库全局样式资源
import 'heren-design-web-vue/es/style/index.css';

const app = createApp(App);
app.use(HerenDesign);
app.mount('#app');

Web 最佳实践

HerenDesign Web 脚手架

一个使用 Vue3、Vite2、TypeScript 开发,可进行个性化主题配置,旨在提供项目开箱即用的、配置式的中后台项目脚手架。

浏览器兼容性

| IE / Edge | Firefox | Chrome | Safari | | --- | --- | --- | --- | | Edge >=84 | Firefox >=83 | Chrome >=84 | Safari >=14.1 |

开源协议

Heren Design 遵循 MIT 协议