From 6847ab9d448b5f69b07c09a99e321d8e52357a3d Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Thu, 20 Feb 2025 18:24:17 +0800 Subject: [PATCH] add style for tid1867 --- package.json | 1 + src/pages.json | 17 ++++ src/subpackage/community/components/list_item.vue | 67 +++++++++++++++ src/subpackage/community/components/tab_bar.vue | 58 +++++++++++++ src/subpackage/community/pages/index.vue | 36 ++++++++ .../community/pages/modules/tab_pages/one.vue | 97 ++++++++++++++++++++++ vue.config.js | 3 + yarn.lock | 5 ++ 8 files changed, 284 insertions(+) create mode 100644 src/subpackage/community/components/list_item.vue create mode 100644 src/subpackage/community/components/tab_bar.vue create mode 100644 src/subpackage/community/pages/index.vue create mode 100644 src/subpackage/community/pages/modules/tab_pages/one.vue create mode 100644 vue.config.js diff --git a/package.json b/package.json index eb1be9f..f172bc3 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "test:mp-weixin": "cross-env UNI_PLATFORM=mp-weixin jest -i" }, "dependencies": { + "@climblee/uv-ui": "^1.1.20", "@dcloudio/uni-app-plus": "2.0.1-36520221121002", "@dcloudio/uni-h5": "2.0.1-36520221121002", "@dcloudio/uni-helper-json": "*", diff --git a/src/pages.json b/src/pages.json index 2cdabd4..ae7c01e 100644 --- a/src/pages.json +++ b/src/pages.json @@ -1,4 +1,10 @@ { + "easycom": { + "autoscan": true, + "custom": { + "^uv-(.*)": "@climblee/uv-ui/components/uv-$1/uv-$1.vue" + } + }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/index/index", @@ -995,6 +1001,17 @@ } } ] + }, + { + "root": "subpackage/community", + "pages": [ + { + "path": "pages/index", + "style" : { + "navigationBarTitleText": "社区" + } + } + ] } ], "globalStyle": { diff --git a/src/subpackage/community/components/list_item.vue b/src/subpackage/community/components/list_item.vue new file mode 100644 index 0000000..0ecd3f4 --- /dev/null +++ b/src/subpackage/community/components/list_item.vue @@ -0,0 +1,67 @@ + + + + + \ No newline at end of file diff --git a/src/subpackage/community/components/tab_bar.vue b/src/subpackage/community/components/tab_bar.vue new file mode 100644 index 0000000..4f913c5 --- /dev/null +++ b/src/subpackage/community/components/tab_bar.vue @@ -0,0 +1,58 @@ + + + + + \ No newline at end of file diff --git a/src/subpackage/community/pages/index.vue b/src/subpackage/community/pages/index.vue new file mode 100644 index 0000000..798dbbe --- /dev/null +++ b/src/subpackage/community/pages/index.vue @@ -0,0 +1,36 @@ + + + + + \ No newline at end of file diff --git a/src/subpackage/community/pages/modules/tab_pages/one.vue b/src/subpackage/community/pages/modules/tab_pages/one.vue new file mode 100644 index 0000000..9a0ecab --- /dev/null +++ b/src/subpackage/community/pages/modules/tab_pages/one.vue @@ -0,0 +1,97 @@ + + + + + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..746e797 --- /dev/null +++ b/vue.config.js @@ -0,0 +1,3 @@ +module.exports = { + transpileDependencies: ['@climblee/uv-ui'] +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 6ce3670..a8c3955 100644 --- a/yarn.lock +++ b/yarn.lock @@ -910,6 +910,11 @@ resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== +"@climblee/uv-ui@^1.1.20": + version "1.1.20" + resolved "https://registry.npmmirror.com/@climblee/uv-ui/-/uv-ui-1.1.20.tgz#52edd6948c8b62284c89b611401a21f523cf5f54" + integrity sha512-jkyesHJsPJkF4Nap9ZmG1/ibKlxXA5M8+ntqKXwwloIsYSYL5SOKb0gyPj17aBOU1PkJpmeiZ8PwnTolhK2/HA== + "@cnakazawa/watch@^1.0.3": version "1.0.4" resolved "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz"