From 16a8d4d7cbda8b13117bdb34502e4bc7c378310d Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Wed, 17 Apr 2024 20:16:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(uni-app-x):=20=E4=BF=AE=E5=A4=8D=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E7=9B=B8=E5=85=B3api=E6=98=BE=E7=A4=BA=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uni-h5/src/service/api/ui/popup/modal.tsx | 27 ++++---- packages/uni-h5/style/framework/uvue.css | 68 ++++++++++--------- 2 files changed, 50 insertions(+), 45 deletions(-) diff --git a/packages/uni-h5/src/service/api/ui/popup/modal.tsx b/packages/uni-h5/src/service/api/ui/popup/modal.tsx index 1a46380548..c6bf481161 100644 --- a/packages/uni-h5/src/service/api/ui/popup/modal.tsx +++ b/packages/uni-h5/src/service/api/ui/popup/modal.tsx @@ -1,17 +1,17 @@ import { onEventPrevent, onEventStop } from '@dcloudio/uni-core' import { + type ExtractPropTypes, + type Ref, Transition, defineComponent, - ExtractPropTypes, ref, - Ref, watchEffect, } from 'vue' -import { usePopup, VNODE_MASK } from './utils' +import { VNODE_MASK, usePopup } from './utils' import { - onThemeChange, - offThemeChange, getTheme, + offThemeChange, + onThemeChange, } from '../../../../helpers/theme' type ModalTheme = Record @@ -57,7 +57,7 @@ const props = { default: '#576b95', //#endif //#if !_X_ - // @ts-ignore + // @ts-expect-error default: '#007aff', //#endif }, @@ -108,11 +108,15 @@ export default /*#__PURE__*/ defineComponent({ {VNODE_MASK}
- {title && ( -
- -
- )} + {title || + (__X__ && ( +
+ +
+ ))} {editable ? (