sv-data-view-v2

0.0.2 • Public • Published

基于Vue2 开发的常用组件库(大屏专用)

按需导入

1、安装 babel-plugin-import 插件

2、babel配置

  babel: {

     plugins: [

       [

         'import',

         {

           libraryName: 'sv-data-view-v2',

           libraryDirectory: 'lib',

           style: (name, file) => {

             const libDirIndex = name.lastIndexOf('/')

             const libDir = name.substring(0, libDirIndex)

             const fileName = name.substr(libDirIndex + 1)

             return `${libDir}/theme/${fileName}.css`

           }

         }

       ]

     ]

   }

3、使用组件


import {ScreenAutoAdapter} from 'sv-data-view-v2'

ScreenAutoAdapter.install(Vue)


// import 'sv-ui-v2/lib/theme/ScreenAutoAdapter.css'(也可手动导入)

//Vue.component(ScreenAutoAdapter.name,ScreenAutoAdapter);

Readme

Keywords

Package Sidebar

Install

npm i sv-data-view-v2

Homepage

x

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

89.6 kB

Total Files

20

Last publish

Collaborators

  • supeijin