From 51c0d15008db2646b5b96747b79532dfc1c49048 Mon Sep 17 00:00:00 2001 From: Hefeng <1057605508@qq.com> Date: Thu, 31 Aug 2023 18:42:03 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20fui-preview=20=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/firstui/fui-preview/fui-preview.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components/firstui/fui-preview/fui-preview.vue b/components/firstui/fui-preview/fui-preview.vue index 50a023a..c0d6eca 100644 --- a/components/firstui/fui-preview/fui-preview.vue +++ b/components/firstui/fui-preview/fui-preview.vue @@ -162,6 +162,7 @@ export default { }, emits: ['click', 'valueClick'], data() { + const app = uni && uni.$fui && uni.$fui.color; return { pvd: {}, label: 'label', @@ -173,6 +174,13 @@ export default { text: 'text', color: 'color', icon:'icon', + fuiColor: { + primary: (app && app.primary) || '#465CFF', + success: (app && app.success) || '#09BE4F', + warning: (app && app.warning) || '#FFB703', + danger: (app && app.danger) || '#FF2B2B', + purple: (app && app.purple) || '#6831FF', + } } }, watch: { @@ -315,7 +323,7 @@ export default { :hover-class="highlight ? 'fui-preview_hover' : ''" :hover-stay-time="150" @tap="handleClick(idx)" > - +