parking_h5

gcz 654fe6d71e first commit 4 yıl önce
common 654fe6d71e first commit 4 yıl önce
js_sdk 654fe6d71e first commit 4 yıl önce
pages 654fe6d71e first commit 4 yıl önce
static 654fe6d71e first commit 4 yıl önce
store 654fe6d71e first commit 4 yıl önce
utils 654fe6d71e first commit 4 yıl önce
uview-ui 654fe6d71e first commit 4 yıl önce
.eslintignore 654fe6d71e first commit 4 yıl önce
.gitignore 654fe6d71e first commit 4 yıl önce
App.vue 654fe6d71e first commit 4 yıl önce
LICENSE 654fe6d71e first commit 4 yıl önce
README.md 654fe6d71e first commit 4 yıl önce
main.js 654fe6d71e first commit 4 yıl önce
manifest.json 654fe6d71e first commit 4 yıl önce
pages.json 654fe6d71e first commit 4 yıl önce
pay.js 654fe6d71e first commit 4 yıl önce
template.h5.html 654fe6d71e first commit 4 yıl önce
uni.scss 654fe6d71e first commit 4 yıl önce
vue.config.js 654fe6d71e first commit 4 yıl önce
wxapi.js 654fe6d71e first commit 4 yıl önce

README.md

说明

uView UI,是uni-app生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水

官方文档:https://www.uviewui.com/components/intro.html

特性

  • 兼容安卓,iOS,微信小程序,H5,QQ小程序,百度小程序,支付宝小程序,头条小程序
  • 60+精选组件,功能丰富,多端兼容,让您快速集成,开箱即用
  • 众多贴心的JS利器,让您飞镖在手,召之即来,百步穿杨
  • 众多的常用页面和布局,让您专注逻辑,事半功倍
  • 详尽的文档支持,现代化的演示效果
  • 按需引入,精简打包体积

链接

安装

下载地址 —— https://ext.dcloud.net.cn/plugin?id=1593

快速上手

  1. main.js引入uView库

    // main.js
    import uView from 'uview-ui';
    Vue.use(uView);
    
  2. App.vue引入基础样式(注意style标签需声明scss属性支持)

    /* App.vue */
    <style lang="scss">
    /* 注意声明lang="scss"! */
    @import "uview-ui/index.scss";
    </style>
    
  3. uni.scss引入全局scss变量文件

    /* uni.scss */
    @import "uview-ui/theme.scss";
    
  4. pages.json配置easycom规则(按需引入)

// pages.json
{
	"easycom": {
		// 下载安装的方式需要前面的"@/",npm安装的方式无需"@/"
		// 下载安装方式
		"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
		// npm安装方式
		// "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
	},
	// 此为本身已有的内容
	"pages": [
		// ......
	]
}

请通过快速上手了解更详细的内容

使用方法

配置easycom规则后,自动按需引入,无需import组件,直接引用即可。

<template>
	<u-button>按钮</u-button>
</template>

请通过快速上手了解更详细的内容