From 8b62cb44acff32373d8bb4c230f4070bf4ae31a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Tue, 15 Jul 2025 14:40:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 7 +++++- pages.json | 23 +++++++++-------- .../components/form-input/form-input.vue | 25 +++++++++++++++---- .../modules/component-show/index.vue | 2 +- 4 files changed, 40 insertions(+), 17 deletions(-) diff --git a/manifest.json b/manifest.json index 444c50b2..132142e1 100644 --- a/manifest.json +++ b/manifest.json @@ -207,7 +207,12 @@ "appid" : "", "setting" : { "urlCheck" : false - } + }, + "dynamicLib": {//引入百度小程序动态库 + "editorLib": { + "provider": "swan-editor" + } + } }, "mp-toutiao" : { "usingComponents" : true, diff --git a/pages.json b/pages.json index 3b86d4ba..a39a5b71 100644 --- a/pages.json +++ b/pages.json @@ -122,6 +122,9 @@ // #endif "enablePullDownRefresh": true, "navigationBarTitleText": "" + }, + "usingComponents": { + "baidu-editor": "dynamicLib://editorLib/editor" } } ] @@ -1945,15 +1948,15 @@ "pagePath": "pages/user/user" } ] - }, - "condition" : { //模式配置,仅开发期间生效 - "current": 0, //当前激活的模式(list 的索引项) - "list": [ - { - "name": "", //模式名称 - "path": "", //启动页面,必选 - "query": "" //启动参数,在页面的onLoad函数里面得到 - } - ] + }, + "condition" : { //模式配置,仅开发期间生效 + "current": 0, //当前激活的模式(list 的索引项) + "list": [ + { + "name": "", //模式名称 + "path": "", //启动页面,必选 + "query": "" //启动参数,在页面的onLoad函数里面得到 + } + ] } } \ No newline at end of file diff --git a/pages/form-input/components/form-input/form-input.vue b/pages/form-input/components/form-input/form-input.vue index 0c76457f..5535db91 100644 --- a/pages/form-input/components/form-input/form-input.vue +++ b/pages/form-input/components/form-input/form-input.vue @@ -57,9 +57,14 @@