
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
element-theme-zero
Advanced tools
element component chalk theme.
npm i element-theme-zero -S
Use Sass import
@import 'element-theme-zero';
Or Use webpack
import 'element-theme-zero';
Or
<link
rel="stylesheet"
href="path/to/node_modules/element-theme-zero/lib/index.css"
/>
import 'element-theme-zero/lib/input.css';
import 'element-theme-zero/lib/select.css';
// ...
你可以引入整个 Element,或是根据需要仅引入部分组件。我们先介绍如何引入完整的 Element。
在 main.js 中写入以下内容:
import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-theme-zero/lib/index.css';
import App from './App.vue';
Vue.use(ElementUI);
new Vue({
el: '#app',
render: h => h(App),
});
以上代码便完成了 Element 的引入。需要注意的是,element-theme-zero 样式文件需要单独引入。
借助 babel-plugin-component,我们可以只引入需要的组件,以达到减小项目体积的目的。
首先,安装 babel-plugin-component:
npm install babel-plugin-component -D
然后,将 babel.config.js 中 plugins 里加入:
{
"plugins": [
[
"component",
{
"libraryName": "element-ui",
"styleLibraryName": "~node_modules/element-theme-zero/lib"
}
]
]
}
FAQs
Element component chalk theme.
We found that element-theme-zero demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.