@flatbiz/antd 3.2.21 → 3.2.23
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/esm/index.css +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/index.d.ts +27 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1709,6 +1709,15 @@ export interface RichTextEditorProps extends Omit<IAllProps, "onChange" | "init"
|
|
|
1709
1709
|
/** 图片点击预览 */
|
|
1710
1710
|
imgPreview?: boolean;
|
|
1711
1711
|
init?: IAllProps["init"] & {
|
|
1712
|
+
/**
|
|
1713
|
+
* 通过粘贴图片创建的img标签,显示压缩比例,此处min、max是和指图片宽度
|
|
1714
|
+
* 1. 默认值值:[{ min: 0, max: 1000, ratio: 0.5 }, { min: 1000, ratio: 0.3 }]
|
|
1715
|
+
*/
|
|
1716
|
+
img_ratio?: {
|
|
1717
|
+
min: number;
|
|
1718
|
+
max?: number;
|
|
1719
|
+
ratio: number;
|
|
1720
|
+
}[];
|
|
1712
1721
|
/** 插件添加;自定义plugins后失效 */
|
|
1713
1722
|
plugins_append?: string;
|
|
1714
1723
|
/** 工具栏添加;自定义toolbar后失效 */
|
|
@@ -1728,6 +1737,8 @@ export interface RichTextEditorProps extends Omit<IAllProps, "onChange" | "init"
|
|
|
1728
1737
|
* 5. 可通过设置 init.plugins、init.toolbar 完全自定义插件、工具栏
|
|
1729
1738
|
* 6. 其他插件
|
|
1730
1739
|
* emoticons 表情插件
|
|
1740
|
+
* 7. 可通过设置 init.img_ratio 设置通过粘贴上传的图片压缩显示比例
|
|
1741
|
+
* 默认比例:[{ min: 0, max: 1000, ratio: 0.5 }, { min: 1000, ratio: 0.3 }]
|
|
1731
1742
|
* ```
|
|
1732
1743
|
*/
|
|
1733
1744
|
export declare const RichTextEditor: (props: RichTextEditorProps) => JSX.Element;
|
|
@@ -2304,6 +2315,7 @@ export type TreeWrapperProps = Omit<TreeProps, "expandedKeys" | "treeData" | "on
|
|
|
2304
2315
|
* 通过服务获取数据后回调,当设置`selectorList`后无效果
|
|
2305
2316
|
*/
|
|
2306
2317
|
onSelectorTreeListChange?: (dataList: TPlainObject[]) => void;
|
|
2318
|
+
onRequestResponseChange?: (data: TAny) => void;
|
|
2307
2319
|
onChange?: (selectedKey?: TreeWrapperValue, operateNodeData?: TPlainObject[] | TPlainObject, operateAllNodeDataList?: TPlainObject[]) => void;
|
|
2308
2320
|
fieldNames?: {
|
|
2309
2321
|
label?: string;
|
|
@@ -2351,7 +2363,6 @@ export type TreeWrapperProps = Omit<TreeProps, "expandedKeys" | "treeData" | "on
|
|
|
2351
2363
|
/**
|
|
2352
2364
|
* 是否必选,最后一个不能取消
|
|
2353
2365
|
*/
|
|
2354
|
-
required?: boolean;
|
|
2355
2366
|
requestMessageConfig?: RequestStatusRenderProps["messageConfig"];
|
|
2356
2367
|
/**
|
|
2357
2368
|
* value格式
|
|
@@ -2378,7 +2389,14 @@ export type TreeWrapperProps = Omit<TreeProps, "expandedKeys" | "treeData" | "on
|
|
|
2378
2389
|
* 当dateItem中包含 disabled 则数据为禁用状态
|
|
2379
2390
|
*/
|
|
2380
2391
|
disabledCanUse?: boolean;
|
|
2392
|
+
/** treeItem数据适配器 */
|
|
2381
2393
|
treeItemDataAdapter?: (dataItem: TPlainObject) => TPlainObject;
|
|
2394
|
+
/** 搜索位置额外元素 */
|
|
2395
|
+
searchExtraElement?: ReactElement;
|
|
2396
|
+
/** 有唯一跟节点时,初始化是否展开,默认值:false */
|
|
2397
|
+
initRootExpand?: boolean;
|
|
2398
|
+
/** 搜素过滤方式,高亮 | 过滤;默认:filter */
|
|
2399
|
+
searchResultType?: "highlight" | "filter";
|
|
2382
2400
|
};
|
|
2383
2401
|
export type TreeWrapperRefApi = {
|
|
2384
2402
|
onClearSelectorList: () => void;
|
|
@@ -2421,6 +2439,7 @@ export declare const TreeWrapper: import("react").ForwardRefExoticComponent<Omit
|
|
|
2421
2439
|
* 通过服务获取数据后回调,当设置`selectorList`后无效果
|
|
2422
2440
|
*/
|
|
2423
2441
|
onSelectorTreeListChange?: ((dataList: TPlainObject[]) => void) | undefined;
|
|
2442
|
+
onRequestResponseChange?: ((data: TAny) => void) | undefined;
|
|
2424
2443
|
onChange?: ((selectedKey?: TreeWrapperValue, operateNodeData?: TPlainObject[] | TPlainObject, operateAllNodeDataList?: TPlainObject[]) => void) | undefined;
|
|
2425
2444
|
fieldNames?: {
|
|
2426
2445
|
label?: string | undefined;
|
|
@@ -2468,7 +2487,6 @@ export declare const TreeWrapper: import("react").ForwardRefExoticComponent<Omit
|
|
|
2468
2487
|
/**
|
|
2469
2488
|
* 是否必选,最后一个不能取消
|
|
2470
2489
|
*/
|
|
2471
|
-
required?: boolean | undefined;
|
|
2472
2490
|
requestMessageConfig?: RequestStatusRenderProps["messageConfig"];
|
|
2473
2491
|
/**
|
|
2474
2492
|
* value格式
|
|
@@ -2495,7 +2513,14 @@ export declare const TreeWrapper: import("react").ForwardRefExoticComponent<Omit
|
|
|
2495
2513
|
* 当dateItem中包含 disabled 则数据为禁用状态
|
|
2496
2514
|
*/
|
|
2497
2515
|
disabledCanUse?: boolean | undefined;
|
|
2516
|
+
/** treeItem数据适配器 */
|
|
2498
2517
|
treeItemDataAdapter?: ((dataItem: TPlainObject) => TPlainObject) | undefined;
|
|
2518
|
+
/** 搜索位置额外元素 */
|
|
2519
|
+
searchExtraElement?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
2520
|
+
/** 有唯一跟节点时,初始化是否展开,默认值:false */
|
|
2521
|
+
initRootExpand?: boolean | undefined;
|
|
2522
|
+
/** 搜素过滤方式,高亮 | 过滤;默认:filter */
|
|
2523
|
+
searchResultType?: "filter" | "highlight" | undefined;
|
|
2499
2524
|
} & import("react").RefAttributes<TreeWrapperRefApi>>;
|
|
2500
2525
|
|
|
2501
2526
|
export {};
|