mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-07 01:28:30 +08:00
parent
e9b147ea96
commit
a90f4ad2f2
@ -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
|
||||||
|
})()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 剔除对象中的某些属性
|
* 剔除对象中的某些属性
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user