fix: 🐛 修复 vue-tsc 校验不通过的问题 (#753)

 Closes: #752
This commit is contained in:
不如摸鱼去 2024-12-03 18:35:55 +08:00 committed by GitHub
parent e9b147ea96
commit a90f4ad2f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 3 deletions

View File

@ -695,7 +695,13 @@ export function isImageUrl(url: string): boolean {
/** /**
* H5 * H5
*/ */
export const isH5 = process.env.UNI_PLATFORM === 'h5' export const isH5 = (() => {
let isH5 = false
// #ifdef H5
isH5 = true
// #endif
return isH5
})()
/** /**
* *

View File

@ -22,7 +22,6 @@
:custom-class="`wd-fab__actions wd-fab__actions--${fabDirection}`" :custom-class="`wd-fab__actions wd-fab__actions--${fabDirection}`"
:show="isActive" :show="isActive"
:duration="300" :duration="300"
name=""
> >
<slot></slot> <slot></slot>
</wd-transition> </wd-transition>

View File

@ -34,7 +34,7 @@ const props = defineProps(progressProps)
const showColor = ref<string>('') const showColor = ref<string>('')
const showPercent = ref<number>(0) const showPercent = ref<number>(0)
const changeCount = ref<number>(0) const changeCount = ref<number>(0)
let timer: NodeJS.Timeout | null = null let timer: ReturnType<typeof setTimeout> | null = null
const rootStyle = computed(() => { const rootStyle = computed(() => {
return objToStyle({ return objToStyle({