Browse Source

引入uni-ui组件

刘浩男 1 year ago
parent
commit
7fe826513f
3 changed files with 28 additions and 0 deletions
  1. 6 0
      package.json
  2. 18 0
      pages.json
  3. 4 0
      vue.config.js

+ 6 - 0
package.json

@@ -9,6 +9,12 @@
   "license": "ISC",
   "description": "",
   "dependencies": {
+    "@dcloudio/uni-ui": "^1.5.2",
+    "dayjs": "^1.11.10",
     "quill": "^1.3.7"
+  },
+  "devDependencies": {
+    "sass": "^1.71.1",
+    "sass-loader": "^10.1.1"
   }
 }

+ 18 - 0
pages.json

@@ -132,6 +132,17 @@
 				"navigationBarTitleText": "主题配置类型"
 
 			}
+		},
+		{
+			"path": "pages/quotations/quotations",
+			"style": {
+				"usingComponents": {},
+				"navigationBarBackgroundColor": "#07c160",
+				"navigationBarTextStyle": "white",
+				"navigationBarTitleText": "行情"
+
+
+			}
 		},{
 			"path": "pages/toGovernmentList/toGovernmentList",
 			"style": {
@@ -162,6 +173,13 @@
 			}
 		}
 	],
+	"easycom": {
+		"autoscan": true,
+		"custom": {
+			// uni-ui 规则如下配置
+			"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
+		}
+	},
 	"tabBar": {
 		"index": "-1",
 		"color": "#737373",

+ 4 - 0
vue.config.js

@@ -0,0 +1,4 @@
+
+module.exports = {
+    transpileDependencies: ['@dcloudio/uni-ui']
+}