
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
asp-smart-ui-1
Advanced tools
cnpm i asp-smart-ui -S
import Vue from 'vue'
import AspSmartUI from 'asp-smart-ui'
Vue.use(AspSmartUI)
new Vue({
el: '#app',
render: h => h(App)
})
借助 babel-plugin-component,我们可以只引入需要的组件,以达到减小项目体积的目的。
首先,安装 babel-plugin-component:
然后,将 .babelrc 修改为:
{
"presets": [["es2015", { "modules": false }]],
"plugins": [
[
"component",
{
"libraryName": "asp-smart-ui",
style: false
}
]
]
}
然后,将 babel.config.js 修改为:
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
plugins: [ // element官方教程
[
'component',
{
'libraryName': 'asp-smart-ui',
style: false
}
]
]
}
接下来,如果你只希望引入部分组件,比如 Button main.js 中写入以下内容:
import Vue from 'vue';
import { Button } from 'asp-smart-ui';
import App from './App.vue';
Vue.use(Button)
new Vue({
el: '#app',
render: h => h(App)
});
步骤:登录、打包、发布
npm login --registry http://registry.npmjs.org
```bash
npm run dist
npm publish --registry http://registry.npmjs.org
npm view 【项目名称】 versions
npm view asp-smart-ui version
```历次
npm view asp-smart-ui versions
FAQs
SmartUI, Vue 2.0 的桌面端组件库
We found that asp-smart-ui-1 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.