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 🙏

© 2025 – Pkg Stats / Ryan Hefner

theme-vue

v0.0.8

Published

A theme de that modifies Element

Readme

修改Element主题

  • desc: 修改element元素主题
  • version:0.0.8
  • Author: nibing
  • 修改时间:2021年6月30日14:42:03
  • 修改时间:2021年7月7日15:41:15

实现原理

  • scss变量的用法
  • CSSStyleDeclaration setProperty()方法
  • CSSStyleDeclaration removeProperty()方法
  • localStorage方法

运行依赖

  • "core-js": "^3.15.2",
  • "node-sass": "^4.12.0",
  • "sass-loader": "^8.0.2",
  • "element-ui": "^2.15.2",

API

  • Th.changeTheme($color)

    修改主题方法: 修改Element颜色(hex/rgb/rgba) 参数说明: $color: 初始化颜色值 类型:string 必填:true

  • Th.Help()

    获取帮助说明的方法: 获取帮助说明 参数说明:null

  • Th.setThemeS(options = [], $color = [])

    属性修改方法: 修改element主题与其他的效果值,详细运行Th.Help()获取 参数说明:options: 属性 类型:array>string 必填:true ,$color: 颜色值 类型:array>string 必填:true

  • Th.getThemeS(options = [])

    属性获取方法:获取element的属性值,详细运行Th.Help()获取 参数说明:options: 属性 类型:array>string 必填:true

  • Th.delTheme(option =['--primary'])

    属性删除方法:删除element的属性值,详细运行Th.Help()获取 参数说明:options: 属性 类型:array>string 必填:true

如何使用

一、

main.js
1.注释掉原element样式文件即:import 'element-ui/lib/theme-chalk/index.css';
2.引入自定义组件

  • import Theme from "theme-vue"; // 引入

3.XXX.vue

  • import Theme from "theme-vue"";// 引入
  • const Th = new Theme(); // 创建修改主题对象
  • Th.changeTheme("#cccccc") // 修改element颜色(hex/rgb/rgba)

二、

main.js
1.注释掉原element样式文件即:import 'element-ui/lib/theme-chalk/index.css';
2.引入自定义组件

  • import Theme from "theme-vue"; // 引入
  • const Th = new Theme(); // 创建修改主题对象
  • Vue.prototype.$theme = Th;

3.XXX.vue

  • import Vue from 'vue'
  • Vue.prototype.$theme.changeTheme("#123456")

BUG反馈与解答

开发单位

  • 单位:中科院成都信息技术股份有限公司(中科信息)

  • 地址:四川省成都市武侯区人民南路四段9号附78号

  • 电话:028-85249933