From 0c6c9a4fd763140dfd114f770ad7b394ff12ef50 Mon Sep 17 00:00:00 2001 From: yanyilin Date: Mon, 30 Oct 2023 16:48:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E6=94=AF=E6=8C=81uni-app=20x?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 9 ++ App.uvue | 44 ++++++++ main.uts | 9 ++ manifest.json | 126 ++++++++++------------- pages.json | 39 ++++--- pages/index/index.nvue | 62 +++++++++++ pages/index/index.uvue | 62 +++++++++++ pages/test/test.uvue | 28 +++++ pages/{index/index.vue => test/test.vue} | 0 9 files changed, 292 insertions(+), 87 deletions(-) create mode 100644 .editorconfig create mode 100644 App.uvue create mode 100644 main.uts create mode 100644 pages/index/index.nvue create mode 100644 pages/index/index.uvue create mode 100644 pages/test/test.uvue rename pages/{index/index.vue => test/test.vue} (100%) diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1a3af92 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/App.uvue b/App.uvue new file mode 100644 index 0000000..a1ead0e --- /dev/null +++ b/App.uvue @@ -0,0 +1,44 @@ + + + \ No newline at end of file diff --git a/main.uts b/main.uts new file mode 100644 index 0000000..89d8f15 --- /dev/null +++ b/main.uts @@ -0,0 +1,9 @@ +import App from './App' + +import { createSSRApp } from 'vue' +export function createApp() { + const app = createSSRApp(App) + return { + app + } +} \ No newline at end of file diff --git a/manifest.json b/manifest.json index 226056a..eb45f61 100644 --- a/manifest.json +++ b/manifest.json @@ -1,72 +1,56 @@ -{ - "name" : "uni-api", - "appid" : "__UNI__ED9218B", - "description" : "", - "versionName" : "1.0.0", - "versionCode" : "100", - "transformPx" : false, - /* 5+App特有相关 */ - "app-plus" : { - "usingComponents" : true, - "nvueStyleCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 - }, - /* 模块配置 */ - "modules" : {}, - /* 应用发布信息 */ - "distribute" : { - /* android打包配置 */ - "android" : { - "permissions" : [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - /* ios打包配置 */ - "ios" : {}, - /* SDK配置 */ - "sdkConfigs" : {} - } - }, - /* 快应用特有相关 */ - "quickapp" : {}, - /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "", - "setting" : { - "urlCheck" : false - }, - "usingComponents" : true - }, - "mp-alipay" : { - "usingComponents" : true - }, - "mp-baidu" : { - "usingComponents" : true - }, - "mp-toutiao" : { - "usingComponents" : true - }, - "uniStatistics" : { - "enable" : false - }, - "vueVersion" : "3" +{ + "name": "uni-api", + "appid": "__UNI__ED9218B", + "description": "uts插件示例", + "versionName": "1.0.0", + "versionCode": "100", + "transformPx": false, + /* uni-app x 特有相关 */ + // "uni-app-x": {}, + /* uni-app特有相关 */ + "app-plus": { + "usingComponents": true, + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 + }, + /* 模块配置 */ + "modules": {}, + /* 应用发布信息 */ + "distribute": { + /* android打包配置 */ + "android": {}, + /* ios打包配置 */ + "ios": {}, + /* SDK配置 */ + "sdkConfigs": {} + } + }, + /* 快应用特有相关 */ + "quickapp": {}, + /* 小程序特有相关 */ + "mp-weixin": { + "appid": "", + "setting": { + "urlCheck": false + }, + "usingComponents": true + }, + "mp-alipay": { + "usingComponents": true + }, + "mp-baidu": { + "usingComponents": true + }, + "mp-toutiao": { + "usingComponents": true + }, + "uniStatistics": { + "enable": false + }, + "vueVersion": "3" } diff --git a/pages.json b/pages.json index 24f82b8..6b058a7 100644 --- a/pages.json +++ b/pages.json @@ -1,17 +1,24 @@ -{ - "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - { - "path": "pages/index/index", - "style": { - "navigationBarTitleText": "uni-app" - } - } - ], - "globalStyle": { - "navigationBarTextStyle": "black", - "navigationBarTitleText": "uni-app", - "navigationBarBackgroundColor": "#F8F8F8", - "backgroundColor": "#F8F8F8" - }, - "uniIdRouter": {} +{ + "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "uni-api" + } + }, + { + "path": "pages/test/test", + "style": { + "navigationBarTitleText": "测试示例", + "enablePullDownRefresh": false + } + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "uni-app", + "navigationBarBackgroundColor": "#F8F8F8", + "backgroundColor": "#F8F8F8" + }, + "uniIdRouter": {} } diff --git a/pages/index/index.nvue b/pages/index/index.nvue new file mode 100644 index 0000000..9e69fe2 --- /dev/null +++ b/pages/index/index.nvue @@ -0,0 +1,62 @@ + + + + + \ No newline at end of file diff --git a/pages/index/index.uvue b/pages/index/index.uvue new file mode 100644 index 0000000..9e69fe2 --- /dev/null +++ b/pages/index/index.uvue @@ -0,0 +1,62 @@ + + + + + \ No newline at end of file diff --git a/pages/test/test.uvue b/pages/test/test.uvue new file mode 100644 index 0000000..cdec1a4 --- /dev/null +++ b/pages/test/test.uvue @@ -0,0 +1,28 @@ + + + + + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/test/test.vue similarity index 100% rename from pages/index/index.vue rename to pages/test/test.vue -- GitLab