From cd46cdd04c014f979b8f98ba76568d80522e102b Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Mon, 4 Jul 2022 22:02:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E4=BB=98=E5=AE=9D=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=20tabbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-mp-alipay/src/compiler/options.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/uni-mp-alipay/src/compiler/options.ts b/packages/uni-mp-alipay/src/compiler/options.ts index 459d6f3a0..a57560ffe 100644 --- a/packages/uni-mp-alipay/src/compiler/options.ts +++ b/packages/uni-mp-alipay/src/compiler/options.ts @@ -67,7 +67,15 @@ export const options: UniMiniProgramPluginOptions = { }, copyOptions: { assets: [COMPONENTS_DIR], - targets: process.env.UNI_MP_PLUGIN ? [copyMiniProgramPluginJson] : [], + targets: [ + ...(process.env.UNI_MP_PLUGIN ? [copyMiniProgramPluginJson] : []), + { + src: ['customize-tab-bar'], + get dest() { + return process.env.UNI_OUTPUT_DIR + }, + }, + ], }, }, global: 'my', @@ -86,6 +94,7 @@ export const options: UniMiniProgramPluginOptions = { titlePenetrate: 'titlePenetrate', }, tabBarOptionsMap: { + customize: 'customize', textColor: 'color', selectedColor: 'selectedColor', backgroundColor: 'backgroundColor', -- GitLab