@flatbiz/antd 3.2.7 → 3.2.9
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.
- package/cjs/index.css +16 -0
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/index.d.ts +34 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1283,6 +1283,38 @@ export type LabelValueLayoutProps = {
|
|
|
1283
1283
|
bordered?: boolean;
|
|
1284
1284
|
};
|
|
1285
1285
|
export declare const LabelValueLayout: (props: LabelValueLayoutProps) => JSX.Element;
|
|
1286
|
+
export type LocalLoadingServiceConfig = {
|
|
1287
|
+
onRequest: (params?: TAny) => Promise<TPlainObject>;
|
|
1288
|
+
params?: TPlainObject;
|
|
1289
|
+
};
|
|
1290
|
+
export interface LocalLoadingProps {
|
|
1291
|
+
/** 接口数据配置 */
|
|
1292
|
+
serviceConfig: LocalLoadingServiceConfig;
|
|
1293
|
+
/** children 为函数,参数【respData】为接口返回数据 */
|
|
1294
|
+
children: (respData?: TAny) => ReactElement;
|
|
1295
|
+
/**
|
|
1296
|
+
* 是否异步,默认:false
|
|
1297
|
+
* ```
|
|
1298
|
+
* true(异步):onRequest、react dom渲染同步执行
|
|
1299
|
+
* false(同步):onRequest有结果了才渲染 react dom
|
|
1300
|
+
* ```
|
|
1301
|
+
*/
|
|
1302
|
+
isAsync?: boolean;
|
|
1303
|
+
/** 自定义异常渲染处理 */
|
|
1304
|
+
errorRender?: (error?: TAny) => ReactElement;
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* 局部加载,包含接口数据处理逻辑
|
|
1308
|
+
* ```
|
|
1309
|
+
* 包括
|
|
1310
|
+
* 1. loading显示效果
|
|
1311
|
+
* 2. error显示效果
|
|
1312
|
+
* 3. 正常接口数据渲染
|
|
1313
|
+
* ```
|
|
1314
|
+
* @param props
|
|
1315
|
+
* @returns
|
|
1316
|
+
*/
|
|
1317
|
+
export declare const LocalLoading: (props: LocalLoadingProps) => JSX.Element;
|
|
1286
1318
|
export type onClick = (e?: React.MouseEvent<HTMLElement>) => void;
|
|
1287
1319
|
export interface ModalActionProps {
|
|
1288
1320
|
children: ReactElement | ((data: {
|
|
@@ -1636,6 +1668,7 @@ export type SimpleLayoutProps = {
|
|
|
1636
1668
|
width?: CSSProperties["width"];
|
|
1637
1669
|
children?: ReactNode | ReactNode[];
|
|
1638
1670
|
titleExtra?: string | ReactElement;
|
|
1671
|
+
hidden?: boolean;
|
|
1639
1672
|
};
|
|
1640
1673
|
/**
|
|
1641
1674
|
* 简单布局
|
|
@@ -1840,6 +1873,7 @@ export type TabsWrapperProps = TabsProps & {
|
|
|
1840
1873
|
* 当未设置activeKey,非受控操作时,组件内部会会话缓存activeKey,在刷新时,会显示上次的激活的tab item
|
|
1841
1874
|
* 缓存Key:如果未设置 activeCacheKey,则使用默认的 cache key(tabs-wrapper-activeKey)
|
|
1842
1875
|
* 缓存模式:会话缓存,在浏览器关闭后,会清除
|
|
1876
|
+
* 4. 如果自定义了 defaultActiveKey,内部缓存key失效
|
|
1843
1877
|
* ```
|
|
1844
1878
|
*/
|
|
1845
1879
|
export declare const TabsWrapper: (props: TabsWrapperProps) => JSX.Element;
|