Skip to content

Commit

Permalink
fix(uni-app-x web): 修复scroll-view、list-view下拉刷新背景颜色默认不为透明的Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangyaqi committed Apr 30, 2024
1 parent 78f068d commit 56e740d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
20 changes: 10 additions & 10 deletions packages/uni-components/src/vue/list-view/index.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
import {
ref,
computed,
nextTick,
onBeforeUnmount,
onMounted,
nextTick,
computed,
provide,
watch,
reactive,
ref,
watch,
} from 'vue'
import type {
ComputedRef,
Ref,
VNode,
ExtractPropTypes,
Ref,
SetupContext,
VNode,
} from 'vue'
import { UniElement } from '../../helpers/UniElement'
import {
type CustomEventTrigger,
type EmitEvent,
useCustomEvent,
EmitEvent,
CustomEventTrigger,
} from '../../helpers/useEvent'
import { defineBuiltInComponent } from '@dcloudio/uni-components'
import ResizeSensor from '../resize-sensor/index'
import {
import type {
ListItemStatus,
StickyHeaderStatus,
StickySectionStatus,
Expand Down Expand Up @@ -135,7 +135,7 @@ const props = {
},
refresherBackground: {
type: String,
default: '#fff',
default: __X__ ? 'transparent' : '#fff',
},
refresherTriggered: {
type: [Boolean, String],
Expand Down
4 changes: 2 additions & 2 deletions packages/uni-components/src/vue/refresher/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ref, computed } from 'vue'
import { computed, ref } from 'vue'
import { defineBuiltInComponent } from '../../helpers/component'

export default /*#__PURE__*/ defineBuiltInComponent({
Expand All @@ -22,7 +22,7 @@ export default /*#__PURE__*/ defineBuiltInComponent({
},
refresherBackground: {
type: String,
default: '#fff',
default: __X__ ? 'transparent' : '#fff',
},
},
setup(props, { slots }) {
Expand Down
24 changes: 12 additions & 12 deletions packages/uni-components/src/vue/scroll-view/index.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import {
Ref,
ref,
ExtractPropTypes,
type ExtractPropTypes,
type Ref,
type SetupContext,
computed,
reactive,
onMounted,
onBeforeUnmount,
nextTick,
onActivated,
onBeforeUnmount,
onMounted,
reactive,
ref,
watch,
SetupContext,
nextTick,
} from 'vue'
import { passive } from '@dcloudio/uni-shared'
import { initScrollBounce, disableScrollBounce } from '../../helpers/scroll'
import { disableScrollBounce, initScrollBounce } from '../../helpers/scroll'
import { UniElement } from '../../helpers/UniElement'
import {
type CustomEventTrigger,
type EmitEvent,
useCustomEvent,
CustomEventTrigger,
EmitEvent,
} from '../../helpers/useEvent'
import { defineBuiltInComponent } from '@dcloudio/uni-components'
import Refresher from '../refresher'
Expand Down Expand Up @@ -95,7 +95,7 @@ const props = {
},
refresherBackground: {
type: String,
default: '#fff',
default: __X__ ? 'transparent' : '#fff',
},
refresherTriggered: {
type: [Boolean, String],
Expand Down

0 comments on commit 56e740d

Please sign in to comment.