fat-design 0.0.1-beta.20250508202444 → 0.0.1-beta.20250611154805
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/index.browser.js +32 -24
- package/index.js +6005 -5802
- package/index.umd.cjs +31 -23
- package/index.umd.js +31 -23
- package/libs/theme/theme-blue4.css +54 -0
- package/libs/theme/theme-green.css +1 -1
- package/libs/theme/theme-orange.css +1 -1
- package/libs/theme/theme-pink.css +54 -0
- package/libs/theme/theme-purple.css +1 -1
- package/libs/theme/theme-red.css +56 -0
- package/package.json +2 -2
- package/style.css +1 -1
- package/types/0buildTypes/config-provider/v2/index.d.ts +0 -1
- package/types/0buildTypes/form2/form-item-card.d.ts +0 -5
- package/types/0buildTypes/form2/form-types.d.ts +1 -0
- package/types/0buildTypes/form2/helper/useDataSource.d.ts +1 -1
- package/types/0buildTypes/previews/renderFileImage.d.ts +34 -0
- package/types/0buildTypes/sortable-list/sortable-list.d.ts +2 -6
- package/types/0buildTypes/util/string.d.ts +1 -0
- package/types/loading/index.d.ts +8 -0
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IFormItemCardProps } from "./form-types";
|
|
3
3
|
declare function FormItemCard(props: IFormItemCardProps): React.JSX.Element;
|
|
4
|
-
declare namespace FormItemCard {
|
|
5
|
-
var defaultProps: {
|
|
6
|
-
prefix: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
4
|
export { FormItemCard };
|
|
@@ -10,5 +10,5 @@ import { IFormContext } from "../form-types";
|
|
|
10
10
|
* @param formContext
|
|
11
11
|
* @param forceUpdateTick
|
|
12
12
|
*/
|
|
13
|
-
declare function useDataSource(enums: any, childProps: any, xProps: any, formContext: IFormContext, forceUpdateTick?: number): any;
|
|
13
|
+
declare function useDataSource(enums: any, childProps: any, xProps: any, formContext: IFormContext, forceUpdateTick?: number): any[];
|
|
14
14
|
export { useDataSource };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IRenderProps {
|
|
3
|
+
value: any;
|
|
4
|
+
prefix?: string;
|
|
5
|
+
}
|
|
6
|
+
interface IRenderCfg {
|
|
7
|
+
deep: number;
|
|
8
|
+
index: number;
|
|
9
|
+
prefix: string;
|
|
10
|
+
}
|
|
11
|
+
interface IRenderLinkFnProps extends IRenderCfg {
|
|
12
|
+
downloadURL: string;
|
|
13
|
+
imgURL?: string;
|
|
14
|
+
url?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
}
|
|
17
|
+
type IRenderLinkFn = (props: IRenderLinkFnProps) => any;
|
|
18
|
+
declare function renderFileDownload(value: any, cfg: IRenderCfg): any;
|
|
19
|
+
declare function renderFileImage(value: any, cfg: IRenderCfg): any;
|
|
20
|
+
declare function renderFileAutoBySuffix(value: any, cfg: IRenderCfg): any;
|
|
21
|
+
declare const RenderFileDownload: React.MemoExoticComponent<{
|
|
22
|
+
(props: IRenderProps): any;
|
|
23
|
+
displayName: string;
|
|
24
|
+
}>;
|
|
25
|
+
declare const RenderFileImage: React.MemoExoticComponent<{
|
|
26
|
+
(props: IRenderProps): any;
|
|
27
|
+
displayName: string;
|
|
28
|
+
}>;
|
|
29
|
+
declare const RenderFileAutoBySuffix: React.MemoExoticComponent<{
|
|
30
|
+
(props: IRenderProps): any;
|
|
31
|
+
displayName: string;
|
|
32
|
+
}>;
|
|
33
|
+
export { RenderFileImage, renderFileImage, renderFileDownload, RenderFileDownload, renderFileAutoBySuffix, RenderFileAutoBySuffix, };
|
|
34
|
+
export type { IRenderProps, IRenderCfg, IRenderLinkFnProps, IRenderLinkFn };
|
|
@@ -141,7 +141,7 @@ declare const SortableList: <TTag extends keyof JSX.IntrinsicElements = "div">({
|
|
|
141
141
|
onBlurCapture?: React.FocusEventHandler<TTag>;
|
|
142
142
|
onChange?: React.FormEventHandler<TTag>;
|
|
143
143
|
onChangeCapture?: React.FormEventHandler<TTag>;
|
|
144
|
-
onBeforeInput?: React.
|
|
144
|
+
onBeforeInput?: React.InputEventHandler<TTag>;
|
|
145
145
|
onBeforeInputCapture?: React.FormEventHandler<TTag>;
|
|
146
146
|
onInput?: React.FormEventHandler<TTag>;
|
|
147
147
|
onInputCapture?: React.FormEventHandler<TTag>;
|
|
@@ -191,8 +191,6 @@ declare const SortableList: <TTag extends keyof JSX.IntrinsicElements = "div">({
|
|
|
191
191
|
onProgressCapture?: React.ReactEventHandler<TTag>;
|
|
192
192
|
onRateChange?: React.ReactEventHandler<TTag>;
|
|
193
193
|
onRateChangeCapture?: React.ReactEventHandler<TTag>;
|
|
194
|
-
onResize?: React.ReactEventHandler<TTag>;
|
|
195
|
-
onResizeCapture?: React.ReactEventHandler<TTag>;
|
|
196
194
|
onSeeked?: React.ReactEventHandler<TTag>;
|
|
197
195
|
onSeekedCapture?: React.ReactEventHandler<TTag>;
|
|
198
196
|
onSeeking?: React.ReactEventHandler<TTag>;
|
|
@@ -410,7 +408,7 @@ declare const SortableList: <TTag extends keyof JSX.IntrinsicElements = "div">({
|
|
|
410
408
|
onBlurCapture?: React.FocusEventHandler<TTag>;
|
|
411
409
|
onChange?: React.FormEventHandler<TTag>;
|
|
412
410
|
onChangeCapture?: React.FormEventHandler<TTag>;
|
|
413
|
-
onBeforeInput?: React.
|
|
411
|
+
onBeforeInput?: React.InputEventHandler<TTag>;
|
|
414
412
|
onBeforeInputCapture?: React.FormEventHandler<TTag>;
|
|
415
413
|
onInput?: React.FormEventHandler<TTag>;
|
|
416
414
|
onInputCapture?: React.FormEventHandler<TTag>;
|
|
@@ -460,8 +458,6 @@ declare const SortableList: <TTag extends keyof JSX.IntrinsicElements = "div">({
|
|
|
460
458
|
onProgressCapture?: React.ReactEventHandler<TTag>;
|
|
461
459
|
onRateChange?: React.ReactEventHandler<TTag>;
|
|
462
460
|
onRateChangeCapture?: React.ReactEventHandler<TTag>;
|
|
463
|
-
onResize?: React.ReactEventHandler<TTag>;
|
|
464
|
-
onResizeCapture?: React.ReactEventHandler<TTag>;
|
|
465
461
|
onSeeked?: React.ReactEventHandler<TTag>;
|
|
466
462
|
onSeekedCapture?: React.ReactEventHandler<TTag>;
|
|
467
463
|
onSeeking?: React.ReactEventHandler<TTag>;
|
package/types/loading/index.d.ts
CHANGED
|
@@ -70,6 +70,14 @@ export interface LoadingProps extends React.HTMLAttributes<HTMLElement>, CommonP
|
|
|
70
70
|
|
|
71
71
|
safeNode?: any;
|
|
72
72
|
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 在Loading组件外包一个div,一般用于loading时的占位
|
|
76
|
+
* demo: <Loading wrapper={true} />
|
|
77
|
+
* demo: <Loading wrapper={{height:'500px'}} />
|
|
78
|
+
*/
|
|
79
|
+
wrapper?: any | boolean;
|
|
80
|
+
|
|
73
81
|
/**
|
|
74
82
|
* 全屏模式下,loading弹层请求关闭时触发的回调函数
|
|
75
83
|
* @en The callback function triggered when the loading layer request is closed in full screen mode
|