Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sweetui/sweet-mobile-lib

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sweetui/sweet-mobile-lib

Geely Group Mobile Vue.js Component

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by100%
Maintainers
3
Weekly downloads
 
Created
Source

Sweet Mobile Component 移动端组件库

本文将介绍 @sweetui/sweet-mobile-lib 的安装方式和基本的用法。

npm安装

npm i @sweetui/sweet-mobile-lib -S

完整引入

在 main.js 中写入以下内容:

import Vue from 'vue'
import sweetMobileLib from '@sweetui/sweet-mobile-lib'
import '@sweetui/sweet-mobile-lib/css/index.less'
import App from './App.vue'

Vue.use(sweetMobileLib)

new Vue({
  el: '#app',
  render: h => h(App)
})

按需引入

接下来,如果你只希望引入部分组件,比如 Input 和 Group,那么需要在 main.js 中写入以下内容:

import Vue from 'vue'
import { Input, Group } from '@sweetui/sweet-mobile-lib'
import App from './App.vue'

Vue.component(Input.name, Button)
Vue.component(Group.name, Select)

new Vue({
  el: '#app',
  render: h => h(App)
});

Keywords

FAQs

Package last updated on 13 Jun 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc