Commit 3844b182 authored by knight's avatar knight

uView安装配置设置

parent 73ee2bc2
...@@ -37,6 +37,7 @@ export default { ...@@ -37,6 +37,7 @@ export default {
} }
</script> </script>
<style> <style lang="scss">
@import "uview-ui/index.scss";
@import url(@/static/css/main.css); @import url(@/static/css/main.css);
</style> </style>
...@@ -4,7 +4,7 @@ import App from './App' ...@@ -4,7 +4,7 @@ import App from './App'
import request from './utils/request.js' import request from './utils/request.js'
import store from '@/store' import store from '@/store'
import mixin from '@/mixins/default' import mixin from '@/mixins/default'
import uView from "uview-ui";
import lang from '@/common/lang.js' import lang from '@/common/lang.js'
Vue.config.productionTip = false Vue.config.productionTip = false
......
{ {
"easycom": {
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
},
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{ {
"path": "pages/index/index", "path": "pages/index/index",
...@@ -340,6 +343,12 @@ ...@@ -340,6 +343,12 @@
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},
{
"path": "pages/cons/index",
"style": {
"navigationStyle": "custom"
}
} }
], ],
"globalStyle": { "globalStyle": {
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
/* 颜色变量 */ /* 颜色变量 */
/* uni.scss */
@import 'uview-ui/theme.scss';
/* 行为相关颜色 */ /* 行为相关颜色 */
$uni-color-primary: #007aff; $uni-color-primary: #007aff;
$uni-color-success: #4cd964; $uni-color-success: #4cd964;
......
...@@ -2,6 +2,7 @@ const path = require('path'); ...@@ -2,6 +2,7 @@ const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin'); // 最新版本copy-webpack-plugin插件暂不兼容,推荐v5.0.0 const CopyWebpackPlugin = require('copy-webpack-plugin'); // 最新版本copy-webpack-plugin插件暂不兼容,推荐v5.0.0
module.exports = { module.exports = {
transpileDependencies: ['uview-ui'],
configureWebpack: { configureWebpack: {
plugins: [ plugins: [
new CopyWebpackPlugin([ new CopyWebpackPlugin([
......
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