Skip to content

Commit a90f4ad

Browse files
fix: 🐛 修复 vue-tsc 校验不通过的问题 (#753)
Closes: #752
1 parent e9b147e commit a90f4ad

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/uni_modules/wot-design-uni/components/common/util.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,13 @@ export function isImageUrl(url: string): boolean {
695695
/**
696696
* 判断环境是否是H5
697697
*/
698-
export const isH5 = process.env.UNI_PLATFORM === 'h5'
698+
export const isH5 = (() => {
699+
let isH5 = false
700+
// #ifdef H5
701+
isH5 = true
702+
// #endif
703+
return isH5
704+
})()
699705

700706
/**
701707
* 剔除对象中的某些属性

src/uni_modules/wot-design-uni/components/wd-fab/wd-fab.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
:custom-class="`wd-fab__actions wd-fab__actions--${fabDirection}`"
2323
:show="isActive"
2424
:duration="300"
25-
name=""
2625
>
2726
<slot></slot>
2827
</wd-transition>

src/uni_modules/wot-design-uni/components/wd-progress/wd-progress.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const props = defineProps(progressProps)
3434
const showColor = ref<string>('')
3535
const showPercent = ref<number>(0)
3636
const changeCount = ref<number>(0)
37-
let timer: NodeJS.Timeout | null = null
37+
let timer: ReturnType<typeof setTimeout> | null = null
3838
3939
const rootStyle = computed(() => {
4040
return objToStyle({

0 commit comments

Comments
 (0)