# sv-ui-v2 **Repository Path**: supeijin_JavaScript/sv-ui-v2 ## Basic Information - **Project Name**: sv-ui-v2 - **Description**: 基于Vue2 开发的常用组件库(移动端) - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-06-22 - **Last Updated**: 2024-03-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 基于Vue2 开发的常用组件库(移动端) ### 设计稿宽度尺寸基于750设计 [//]: # (### 按需导入) [//]: # (#### 1、安装 babel-plugin-import 插件) [//]: # () [//]: # (#### 2、babel配置) [//]: # () [//]: # ( ```) [//]: # ( babel: {) [//]: # ( plugins: [) [//]: # ( [) [//]: # ( 'import',) [//]: # ( {) [//]: # ( libraryName: 'sv-ui-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 {ScrollView} from 'sv-ui-v2') [//]: # (ScrollView.install(Vue)) [//]: # () [//]: # (// import 'sv-ui-v2/lib/theme/scroll-view.css'(也可手动导入)) [//]: # (//Vue.component(ScrollView.name,ScrollView);) [//]: # (~~~)