Commit d5c92708 by tangjiale

配置全局uview-ui组件,直接使用无需引用,打包时自动匹配到用到的组件打包

parent 17eb8a37
......@@ -20,6 +20,6 @@
# 开发文档
- [uni-app官方文档](https://uniapp.dcloud.net.cn/)
- [uview-ui官方文档](https://v1.uviewui.com/guide/demo.html)
- [uview-ui官方文档](https://www.uviewui.com/components/intro.html)
- [api接口文档]()
- [ui交互地址]()
{
"name" : "massage-oper",
"name" : "sport-train",
"appid" : "__UNI__ED7B062",
"description" : "多平台快速开发的UI框架",
"versionName" : "1.0.0",
......
......@@ -8,9 +8,9 @@
"integrity": "sha512-AztC/IOW4L1Q41A86phW5Thhcrco3xuAA+YX/BLpLWWjRcTj5TOt/QImBLmCKlrF7u7k47arTnOyL6GnbG8Hvw=="
},
"uview-ui": {
"version": "2.0.15",
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.15.tgz",
"integrity": "sha512-sLpa1llrseaKsNmzjsNDFntlT5OkvBy3j1Loc/y5okUW6ICG5Xun95pTra/17RsT17Z4TbBB1w1IQKEMAIcftQ=="
"version": "2.0.31",
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.31.tgz",
"integrity": "sha512-I/0fGuvtiKHH/mBb864SGYk+SJ7WaF32tsBgYgeBOsxlUp+Th+Ac2tgz2cTvsQJl6eZYWsKZ3ixiSXCAcxZ8Sw=="
}
}
}
{
"id": "sport-train",
"author":"tjl",
"uni-app": {
"scripts": {
"mp-weixin-prod": {
......@@ -30,6 +31,6 @@
},
"dependencies": {
"dayjs": "1.10.6",
"uview-ui": "2.0.15"
"uview-ui": "2.0.31"
}
}
......@@ -40,8 +40,8 @@
"easycom": {
"autoscan": true,
"custom": {
"^xb-(.*)": "@/components/xb-$1.vue",
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue",
"^b-(.*)": "@/components/xb-$1.vue"
}
},
"globalStyle": {
......
<template>
<div class="page-bg">
首页调试
<view class="page-bg">
首页
<xb-icon type="icon-icon_txzy" color="#1DA47B"></xb-icon>
</div>
<u-slider v-model="value"></u-slider>
</view>
</template>
<script>
export default {
data() {
return {
value: 30
}
},
onLoad(){
console.log(uni.$u.config.v);
}
}
</script>
<style lang="less" scoped>
......
{
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": true,
"es6": true,
"enhance": true,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": false,
"coverView": true,
"nodeModules": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"lazyloadPlaceholderEnable": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useIsolateContext": false,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"disableUseStrict": false,
"minifyWXML": true,
"showES6CompileOption": false,
"useCompilerPlugins": false,
"ignoreUploadUnusedFiles": true
},
"compileType": "miniprogram",
"libVersion": "2.24.4",
"appid": "wx00e5a2576e095113",
"projectname": "sportTrain",
"debugOptions": {
"hidedInDevtools": []
},
"scripts": {},
"staticServerOptions": {
"baseURL": "",
"servePath": ""
},
"isGameTourist": false,
"condition": {
"search": {
"list": []
},
"conversation": {
"list": []
},
"game": {
"list": []
},
"plugin": {
"list": []
},
"gamePlugin": {
"list": []
},
"miniprogram": {
"list": []
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment