提交 93e2b2e6 编写于 作者: D DCloud_LXH

fix(h5): showActionSheet

上级 e96211ad
......@@ -7,6 +7,7 @@ export const ShowActionSheetProtocol: ApiProtocol<API_TYPE_SHOW_ACTION_SHEET> =
required: true,
},
itemColor: String,
// popover: Object,
}
export const ShowActionSheetOptions: ApiOptions<API_TYPE_SHOW_ACTION_SHEET> = {
formatArgs: {
......
......@@ -134,3 +134,8 @@ export function useScroller(element: HTMLElement, options: Options) {
handleTouchEnd,
}
}
export { Friction } from './Friction'
export { Spring } from './Spring'
export { Scroller } from './Scroller'
export { initScrollBounce, disableScrollBounce } from '../scroll'
......@@ -10,6 +10,7 @@ export type {
NativeEventTrigger,
EmitEvent,
} from './helpers/useEvent'
export * from './helpers/scroller'
export { useUserAction } from './helpers/useUserAction'
export { useAttrs } from './helpers/useAttrs'
export { useBooleanAttr } from './helpers/useBooleanAttr'
......
......@@ -14,19 +14,14 @@ import { usePopupStyle } from '../../../../helpers/usePopupStyle'
import { useKeyboard } from '../../../../helpers/useKeyboard'
import { initI18nShowActionSheetMsgsOnce, useI18n } from '@dcloudio/uni-core'
import { useTouchtrack } from '@dcloudio/uni-components'
// @ts-ignore
import { Friction } from '@dcloudio/uni-components/../helpers/scroller/Friction'
// @ts-ignore
import { Spring } from '@dcloudio/uni-components/../helpers/scroller/Spring'
// @ts-ignore
import { Scroller } from '@dcloudio/uni-components/../helpers/scroller/Scroller'
// @ts-ignore
import { useScroller } from '@dcloudio/uni-components/../helpers/scroller'
import {
useScroller,
Friction,
Spring,
Scroller,
initScrollBounce,
disableScrollBounce,
// @ts-ignore
} from '@dcloudio/uni-components/../helpers/scroll'
} from '@dcloudio/uni-components'
import { onEventPrevent } from '@dcloudio/uni-core'
const props = {
......@@ -86,8 +81,8 @@ export default /*#__PURE__*/ defineComponent({
enableY: true,
friction: new Friction(0.0001),
spring: new Spring(2, 90, 20),
onScroll: (e: Event) => {
scrollTop.value = (e.target as HTMLElement).scrollTop
onScroll: (e) => {
scrollTop.value = e.target.scrollTop
},
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册