diff --git a/src/uni_modules/wot-design-uni/components/common/util.ts b/src/uni_modules/wot-design-uni/components/common/util.ts index 1f21718c..8d1b610a 100644 --- a/src/uni_modules/wot-design-uni/components/common/util.ts +++ b/src/uni_modules/wot-design-uni/components/common/util.ts @@ -695,7 +695,13 @@ export function isImageUrl(url: string): boolean { /** * 判断环境是否是H5 */ -export const isH5 = process.env.UNI_PLATFORM === 'h5' +export const isH5 = (() => { + let isH5 = false + // #ifdef H5 + isH5 = true + // #endif + return isH5 +})() /** * 剔除对象中的某些属性 diff --git a/src/uni_modules/wot-design-uni/components/wd-fab/wd-fab.vue b/src/uni_modules/wot-design-uni/components/wd-fab/wd-fab.vue index 7c8772fc..80128941 100644 --- a/src/uni_modules/wot-design-uni/components/wd-fab/wd-fab.vue +++ b/src/uni_modules/wot-design-uni/components/wd-fab/wd-fab.vue @@ -22,7 +22,6 @@ :custom-class="`wd-fab__actions wd-fab__actions--${fabDirection}`" :show="isActive" :duration="300" - name="" > diff --git a/src/uni_modules/wot-design-uni/components/wd-progress/wd-progress.vue b/src/uni_modules/wot-design-uni/components/wd-progress/wd-progress.vue index 51873548..7e4df514 100644 --- a/src/uni_modules/wot-design-uni/components/wd-progress/wd-progress.vue +++ b/src/uni_modules/wot-design-uni/components/wd-progress/wd-progress.vue @@ -34,7 +34,7 @@ const props = defineProps(progressProps) const showColor = ref('') const showPercent = ref(0) const changeCount = ref(0) -let timer: NodeJS.Timeout | null = null +let timer: ReturnType | null = null const rootStyle = computed(() => { return objToStyle({