From 23e797ab8fa79538ec2aed4fc457a43fb0cf5a72 Mon Sep 17 00:00:00 2001 From: jry Date: Sun, 7 Apr 2024 23:03:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0up-copy=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/common/demo.scss | 8 +- src/main.ts | 2 +- src/pages.json | 18 +++-- src/pages/componentsA/cell/cell.nvue | 34 +++++---- src/pages/componentsD/copy/copy.vue | 23 ++++++ src/pages/example/components.config.js | 6 ++ src/static/uview/demo/copy.png | Bin 0 -> 1157 bytes .../uview-plus/components/u-copy/u-copy.vue | 70 ++++++++++++++++++ 9 files changed, 139 insertions(+), 24 deletions(-) create mode 100644 src/pages/componentsD/copy/copy.vue create mode 100644 src/static/uview/demo/copy.png create mode 100644 src/uni_modules/uview-plus/components/u-copy/u-copy.vue diff --git a/package.json b/package.json index f05fa4605..a71d04358 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "@rollup/plugin-commonjs": "^25.0.0", "clipboard": "^2.0.11", "dayjs": "^1.11.8", - "uview-plus": "^3.1.39", + "uview-plus": "^3.1.52", "vue": "^3.2.45", "vue-i18n": "^9.2.2", "vuex": "^4.1.0" diff --git a/src/common/demo.scss b/src/common/demo.scss index 600365cdf..0c95d71c3 100644 --- a/src/common/demo.scss +++ b/src/common/demo.scss @@ -1,6 +1,6 @@ -.u-block{ +.u-block { padding: 14px; - &__section{ + &__section { margin-bottom:10px; } &__title { @@ -9,7 +9,7 @@ color: $u-content-color; margin-bottom:10px; } - &__flex{ + &__flex { /* #ifndef APP-NVUE */ display: flex; /* #endif */ @@ -26,6 +26,8 @@ .u-page { padding: 15px 15px 40px 15px; &__item { + flex: 1; + margin-bottom: 23px; &__title { font-size: 14px; color: rgb(143, 156, 162); diff --git a/src/main.ts b/src/main.ts index a4cba6f64..ab3be9972 100644 --- a/src/main.ts +++ b/src/main.ts @@ -27,7 +27,7 @@ import mixin from './common/mixin' import { createSSRApp } from 'vue' import { createI18n } from 'vue-i18n' const i18n = createI18n(i18nConfig) -import {initRequest} from './util/request/index' +import { initRequest } from './util/request/index' export function createApp() { const app = createSSRApp(App) diff --git a/src/pages.json b/src/pages.json index 91ad10661..48ca49a00 100644 --- a/src/pages.json +++ b/src/pages.json @@ -435,12 +435,20 @@ }, { "root": "pages/componentsD", - "pages": [{ - "path": "qrcode/qrcode", - "style": { - "navigationBarTitleText": "二维码" + "pages": [ + { + "path": "qrcode/qrcode", + "style": { + "navigationBarTitleText": "二维码" + } } - }] + ,{ + "path": "copy/copy", + "style": { + "navigationBarTitleText": "复制" + } + } + ] }, { "root": "pages/template", diff --git a/src/pages/componentsA/cell/cell.nvue b/src/pages/componentsA/cell/cell.nvue index 187070693..75e08b72f 100644 --- a/src/pages/componentsA/cell/cell.nvue +++ b/src/pages/componentsA/cell/cell.nvue @@ -6,12 +6,12 @@ @@ -114,14 +114,14 @@ -