1
import * as React from 'react';
2 4
import { createHostComponent } from '@remax/shared';
3
import { BaseProps } from '../../types/component';
4

5
export interface CoverViewProps extends BaseProps {
6
  /**	设置顶部滚动偏移量,仅在设置了 overflow-y: scroll 成为滚动元素后生效	2.1.0  */
7
  scrollTop?: number | string;
8
}
9

10
/**
11
 * @see https://developers.weixin.qq.com/miniprogram/dev/component/cover-view.html
12
 */
13 4
export const CoverView: React.ComponentType<CoverViewProps> = createHostComponent<CoverViewProps>('cover-view');

Read our documentation on viewing source code .

Loading