Skip to content

Commit 8680522

Browse files
committed
fix(action-sheet): fix inconsistency between type definition and documentation
1 parent a80c0fe commit 8680522

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/action-sheet/show.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import { getInstance } from '../common/utils';
2+
import { ActionSheetItem } from './type';
23

3-
export interface ActionSheetItem {
4-
label: string;
5-
color?: string;
6-
disabled?: boolean;
7-
/** 图标名称或图片链接 */
8-
icon?: string;
9-
}
4+
export { ActionSheetItem };
105

116
type Context = WechatMiniprogram.Page.TrivialInstance | WechatMiniprogram.Component.TrivialInstance;
127

0 commit comments

Comments
 (0)