@zjlab-fe/data-hub-ui 0.13.0 → 0.13.2
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.
|
@@ -2,12 +2,17 @@ import React from 'react';
|
|
|
2
2
|
export interface IProps {
|
|
3
3
|
locale?: 'zh' | 'en';
|
|
4
4
|
open?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* 非弹窗形式,直接展示申请权限内容,适用于权限不足时的提示组件
|
|
7
|
+
*/
|
|
8
|
+
noModal?: boolean;
|
|
5
9
|
onCancel?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
10
|
}
|
|
7
11
|
/**
|
|
8
12
|
* 申请权限弹窗
|
|
9
13
|
* @param locale {string} 语言 'zh' | 'en',默认zh
|
|
10
14
|
* @param open {boolean} 是否展示弹窗
|
|
15
|
+
* @param noModal {boolean} 是否以非弹窗形式展示
|
|
11
16
|
* @param onCancel {function} 取消回调
|
|
12
17
|
* @returns
|
|
13
18
|
*/
|
|
@@ -10,10 +10,12 @@ export type OperatorChainProps = {
|
|
|
10
10
|
menu?: Array<SingleCardItem> | [];
|
|
11
11
|
onClick?: (id: string) => void;
|
|
12
12
|
onChange?: (values: SingleCardItem[]) => void;
|
|
13
|
+
onActive?: (id: string | null) => void;
|
|
13
14
|
width?: string;
|
|
14
15
|
};
|
|
15
16
|
export type OperatorChainRef = {
|
|
16
17
|
getCards: () => SingleCardItem[];
|
|
18
|
+
getActiveCardId: () => string | null;
|
|
17
19
|
};
|
|
18
20
|
declare const _default: import("react").ForwardRefExoticComponent<OperatorChainProps & import("react").RefAttributes<unknown>>;
|
|
19
21
|
export default _default;
|