New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@digitalzz/dlb-mobile

Package Overview
Dependencies
Maintainers
6
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@digitalzz/dlb-mobile

A Component Library Base Vant for Vue.js

unpublished
npmnpm
Version
1.7.8
Version published
Weekly downloads
0
Maintainers
6
Weekly downloads
 
Created
Source

@digitalzz/dlb-mobile

安装

## 安装 npm 包
npm i @digitalzz/dlb-mobile -S

使用

## 项目引入css
import "@digitalzz/dlb-mobile/lib/index/style.css";

## 项目main.js引入组件, 全局引入
import DlbMobile from '@digitalzz/dlb-mobile'
Vue.use(DlbMobile)

按需加载

  • 安装 babel-plugin-import
  • babel.config.js 修改配置如下
// babel.config.js 配置
module.exports = {
  presets: ['@vue/app'],
  plugins: [
    [
      'import',
      {
        libraryName: '@digitalzz/dlb-mobile',
        libraryDirectory: 'lib',
        camel2DashComponentName: false,
        style: name => {
          return `${name}/style.css`
        }
      },
      '@digitalzz/dlb-mobile'
    ]
  ]
}
  • 组件按需引入
import Vue from 'vue'
import { ImgBanner } from '@digitalzz/dlb-mobile'

Vue.use(ImgBanner)

demo

demo 文档

Keywords

vue

FAQs

Package last updated on 18 Oct 2023

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