From 7057e4894fb80835c92bb733d9f779e7f7c03400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Fri, 14 Oct 2022 22:09:17 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20=E8=A1=A5=E5=85=85=20ms?= =?UTF-8?q?g=20=E6=A1=88=E4=BE=8B=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/carouselItem/index.vue | 4 +--- package/component/src/provider/index.vue | 3 ++- .../document-component/src/document/zh-CN/components/msg.md | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package/component/src/component/carouselItem/index.vue b/package/component/src/component/carouselItem/index.vue index b2cfdf77..3634aba7 100644 --- a/package/component/src/component/carouselItem/index.vue +++ b/package/component/src/component/carouselItem/index.vue @@ -22,9 +22,7 @@ const getStyle = computed(() => { let allChild = item.value.parentNode.children; let allChildNum = allChild.length; - //当前的activeIndex - let activeIndex, - currentIndex = 0; + let activeIndex, currentIndex = 0; for (let index = 0; index < allChild.length; index++) { const element = allChild[index]; // @ts-ignore diff --git a/package/component/src/provider/index.vue b/package/component/src/provider/index.vue index eb1f4e54..660f6f4b 100644 --- a/package/component/src/provider/index.vue +++ b/package/component/src/provider/index.vue @@ -55,10 +55,11 @@ const changeLocales = (lang: string, locales: any, merge: boolean) => { }; const changeTheme = (theme: string) => { + const defaultPartial: Partial = { mode: 1, brightness: 100, - contrast: 80, + contrast: 90, sepia: 0, grayscale: 0, }; diff --git a/package/document-component/src/document/zh-CN/components/msg.md b/package/document-component/src/document/zh-CN/components/msg.md index cfd9a3fa..18b7c1f2 100644 --- a/package/document-component/src/document/zh-CN/components/msg.md +++ b/package/document-component/src/document/zh-CN/components/msg.md @@ -10,7 +10,7 @@ ::: title 基础使用 ::: -::: demo +::: demo 通过 layer.msg 方法, 创建一个提示框。