@ray-js/smart-ui 2.6.0-beta-10 → 2.6.1-beta-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
2
3
|
import { SmartTransitionEvents } from '../transition';
|
|
3
4
|
export interface SmartBottomSheetProps {
|
|
@@ -56,6 +57,12 @@ export interface SmartBottomSheetProps {
|
|
|
56
57
|
* @default 50%
|
|
57
58
|
*/
|
|
58
59
|
maxHeight?: number | string;
|
|
60
|
+
/**
|
|
61
|
+
* @description 组件整体最大高度 用于自动撑开高度情况
|
|
62
|
+
* @version 2.6.1
|
|
63
|
+
* @default true
|
|
64
|
+
*/
|
|
65
|
+
showClose?: boolean;
|
|
59
66
|
}
|
|
60
67
|
export interface SmartBottomSheetEvents extends SmartTransitionEvents {
|
|
61
68
|
/**
|
|
@@ -91,7 +98,21 @@ export interface SmartBottomSheetEvents extends SmartTransitionEvents {
|
|
|
91
98
|
*/
|
|
92
99
|
onClickOverlay?: SmartEventHandler;
|
|
93
100
|
}
|
|
101
|
+
interface SmartBottomSheetSlot {
|
|
102
|
+
/**
|
|
103
|
+
* 内容
|
|
104
|
+
*/
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
slot?: {
|
|
107
|
+
/**
|
|
108
|
+
* @description 自定义 title 显示内容,需要不设置 title 属性
|
|
109
|
+
* @version 2.6.1
|
|
110
|
+
*/
|
|
111
|
+
title: React.ReactNode;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
94
114
|
/**
|
|
95
115
|
* Since v2.0.0
|
|
96
116
|
*/
|
|
97
|
-
export type SmartBottomSheet = SmartComponent<SmartBottomSheetProps, SmartBottomSheetEvents, SmartBaseExternalClassName>;
|
|
117
|
+
export type SmartBottomSheet = SmartComponent<SmartBottomSheetProps, SmartBottomSheetEvents, SmartBaseExternalClassName, SmartBottomSheetSlot>;
|
|
118
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
2
3
|
import { SmartTransitionEvents } from '../transition';
|
|
3
4
|
export interface SmartBottomSheetProps {
|
|
@@ -56,6 +57,12 @@ export interface SmartBottomSheetProps {
|
|
|
56
57
|
* @default 50%
|
|
57
58
|
*/
|
|
58
59
|
maxHeight?: number | string;
|
|
60
|
+
/**
|
|
61
|
+
* @description 组件整体最大高度 用于自动撑开高度情况
|
|
62
|
+
* @version 2.6.1
|
|
63
|
+
* @default true
|
|
64
|
+
*/
|
|
65
|
+
showClose?: boolean;
|
|
59
66
|
}
|
|
60
67
|
export interface SmartBottomSheetEvents extends SmartTransitionEvents {
|
|
61
68
|
/**
|
|
@@ -91,7 +98,21 @@ export interface SmartBottomSheetEvents extends SmartTransitionEvents {
|
|
|
91
98
|
*/
|
|
92
99
|
onClickOverlay?: SmartEventHandler;
|
|
93
100
|
}
|
|
101
|
+
interface SmartBottomSheetSlot {
|
|
102
|
+
/**
|
|
103
|
+
* 内容
|
|
104
|
+
*/
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
slot?: {
|
|
107
|
+
/**
|
|
108
|
+
* @description 自定义 title 显示内容,需要不设置 title 属性
|
|
109
|
+
* @version 2.6.1
|
|
110
|
+
*/
|
|
111
|
+
title: React.ReactNode;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
94
114
|
/**
|
|
95
115
|
* Since v2.0.0
|
|
96
116
|
*/
|
|
97
|
-
export type SmartBottomSheet = SmartComponent<SmartBottomSheetProps, SmartBottomSheetEvents, SmartBaseExternalClassName>;
|
|
117
|
+
export type SmartBottomSheet = SmartComponent<SmartBottomSheetProps, SmartBottomSheetEvents, SmartBaseExternalClassName, SmartBottomSheetSlot>;
|
|
118
|
+
export {};
|