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 1a46380548612dd4ac3ef7ab0f01bd5b6dab51e0..c6bf481161e7a966666a3549dd5ba1a84c56731b 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 ? (