
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
asp-smart-ui-10
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-10 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.