@flatbiz/antd 4.2.68 → 4.2.69

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.
@@ -0,0 +1,3 @@
1
+ /*! @flatjs/forge MIT @flatbiz/antd */
2
+ function n(){n=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var e in t){if(Object.prototype.hasOwnProperty.call(t,e)){n[e]=t[e]}}}return n};return n.apply(this,arguments)}function r(n,r){if(n==null)return{};var t={};var e=Object.keys(n);var a,i;for(i=0;i<e.length;i++){a=e[i];if(r.indexOf(a)>=0)continue;t[a]=n[a]}return t}export{n as _,r as a};
3
+ //# sourceMappingURL=_rollupPluginBabelHelpers-fc015ef2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_rollupPluginBabelHelpers-fc015ef2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
File without changes
@@ -0,0 +1,5 @@
1
+ /* eslint-disable */
2
+ import './index.css';
3
+ /*! @flatjs/forge MIT @flatbiz/antd */
4
+ import{ColorPicker as n}from"antd";import{jsx as o}from"react/jsx-runtime";var r=function r(t){return o(n,{value:t.value,onChange:function n(o){t.onChange==null?void 0:t.onChange(o.toHexString())}})};export{r as ColorPickerWrapper};
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["@flatbiz/antd/src/color-picker-wrapper/color-picker.tsx"],"sourcesContent":["import { ColorPicker, ColorPickerProps } from 'antd';\n\nexport type ColorPickerWrapperProps = Omit<ColorPickerProps, 'value' | 'onChange'> & {\n /** 格式:#1677ff */\n value?: string;\n /** 转换成 hex 格式颜色字符串,返回格式如:#1677ff */\n onChange?: (hex?: string) => void;\n};\n\nexport const ColorPickerWrapper = (props: ColorPickerWrapperProps) => {\n return (\n <ColorPicker\n value={props.value}\n onChange={(color) => {\n props.onChange?.(color.toHexString());\n }}\n />\n );\n};\n"],"names":["ColorPickerWrapper","props","_jsx","ColorPicker","value","onChange","color","toHexString"],"mappings":";+EASaA,EAAqB,SAArBA,EAAsBC,GACjC,OACEC,EAACC,EAAW,CACVC,MAAOH,EAAMG,MACbC,SAAU,SAAAA,EAACC,GACTL,EAAMI,UAANJ,UAAAA,EAAAA,EAAMI,SAAWC,EAAMC,cACzB,GAGN"}
@@ -0,0 +1,3 @@
1
+ /*! @flatjs/forge MIT @flatbiz/antd */
2
+ import{_ as t}from"./_rollupPluginBabelHelpers-fc015ef2.js";import{Select as e,Pagination as r}from"antd";import"react";import{jsx as n}from"react/jsx-runtime";var o=function r(o){return n(e,t({size:"small"},o,{placement:"topLeft"}))};o.Option=e.Option;e.Option;var i=function r(o){return n(e,t({size:"middle"},o,{placement:"topLeft"}))};i.Option=e.Option;var p=function e(p){var a=p.size==="small"?o:i;return n(r,t({},p,{selectComponentClass:a}))};export{p as P,o as S};
3
+ //# sourceMappingURL=index-e98b9352.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-e98b9352.js","sources":["@flatbiz/antd/src/pagination-wrapper/select.tsx","@flatbiz/antd/src/pagination-wrapper/pagination.tsx"],"sourcesContent":["import { Select, SelectProps } from 'antd';\nimport * as React from 'react';\n\ntype CompoundedComponent = React.FC<SelectProps> & {\n Option: typeof Select.Option;\n};\n\n/**\n * 由于 antd 5.3.x 分页Pagination组件,存在点击分页选择框框时,一直朝下\n * issues:https://github.com/ant-design/ant-design/issues/36866\n * 为了兼容,在 Pagination 中添加了 selectComponentClass 属性,后期antd 官方优化了bug,可取消 配置selectComponentClass\n * @param props\n * @returns\n */\nexport const SmallSelect: CompoundedComponent = (props) => (\n <Select size=\"small\" {...props} placement=\"topLeft\" />\n);\n\nSmallSelect.Option = Select.Option;\n\nexport const LargeSelect: CompoundedComponent = (props) => (\n <Select size=\"large\" {...props} placement=\"topLeft\" />\n);\n\nLargeSelect.Option = Select.Option;\n\nexport const MiddleSelect: CompoundedComponent = (props) => (\n <Select size=\"middle\" {...props} placement=\"topLeft\" />\n);\n\nMiddleSelect.Option = Select.Option;\n","import { Pagination, PaginationProps } from 'antd';\nimport { MiddleSelect, SmallSelect } from './select';\n\n/**\n * 由于 antd 5.3.x 分页Pagination组件,存在点击分页选择框时,一直朝下\n * issues:https://github.com/ant-design/ant-design/issues/36866\n * 为了兼容,在 Pagination 中添加了 selectComponentClass 属性,后期antd 官方优化了bug,可取消 配置selectComponentClass\n * @param props\n * @returns\n */\nexport const PaginationWrapper = (props: PaginationProps) => {\n const selectComponentClass = props.size === 'small' ? SmallSelect : MiddleSelect;\n return <Pagination {...props} selectComponentClass={selectComponentClass} />;\n};\n"],"names":["SmallSelect","props","_jsx","Select","_extends","size","placement","Option","MiddleSelect","PaginationWrapper","selectComponentClass","Pagination"],"mappings":";oKAcaA,EAAmC,SAAnCA,EAAoCC,GAAK,OACpDC,EAACC,EAAMC,EAAA,CAACC,KAAK,SAAYJ,EAAK,CAAEK,UAAU,YAAY,EAGxDN,EAAYO,OAASJ,EAAOI,OAMPJ,EAAOI,OAErB,IAAMC,EAAoC,SAApCA,EAAqCP,GAAK,OACrDC,EAACC,EAAMC,EAAA,CAACC,KAAK,UAAaJ,EAAK,CAAEK,UAAU,YAAY,EAGzDE,EAAaD,OAASJ,EAAOI,WCpBhBE,EAAoB,SAApBA,EAAqBR,GAChC,IAAMS,EAAuBT,EAAMI,OAAS,QAAUL,EAAcQ,EACpE,OAAON,EAACS,EAAUP,KAAKH,EAAK,CAAES,qBAAsBA,IACtD"}
@@ -0,0 +1 @@
1
+ .tips-title{border:1px solid #d9d9d9;border-radius:8px;padding:24px;position:relative}.tips-title-title{background-color:#fff;font-weight:600;left:10px;padding:0 10px;position:absolute;top:0;transform:translateY(-50%)}.tips-title-small{padding:12px}
@@ -0,0 +1,5 @@
1
+ /* eslint-disable */
2
+ import './index.css';
3
+ /*! @flatjs/forge MIT @flatbiz/antd */
4
+ import{classNames as i}from"@dimjs/utils/cjs/class-names";import t from"@ant-design/icons/es/icons/QuestionCircleOutlined";import{Space as e}from"antd";import{jsx as l,jsxs as s}from"react/jsx-runtime";var n=function n(r){if(r.hidden)return null;var o=r.helpIcon?r.helpIcon:r.onHelp?l(t,{onClick:r.onHelp}):null;return s("div",{className:i("tips-title",{"tips-title-small":r.size==="small"},r.className),style:r.style,children:[s(e,{className:"tips-title-title",size:5,direction:"horizontal",children:[r.title,o]}),l("div",{className:"tips-title-content",children:r.children})]})};export{n as TipsTitle};
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["@flatbiz/antd/src/tips-title/tips-title.tsx"],"sourcesContent":["import { QuestionCircleOutlined } from '@ant-design/icons';\nimport { classNames } from '@dimjs/utils';\nimport { Space } from 'antd';\nimport { CSSProperties, ReactElement, type ReactNode } from 'react';\nimport './style.less';\n\nexport type TipsTitleProps = {\n className?: string;\n style?: CSSProperties;\n title: string;\n children: ReactNode;\n size?: 'default' | 'small';\n /** 自定义 help icon */\n helpIcon?: ReactElement;\n /** 配置 helpIcon 后,此参数失效 */\n onHelp?: () => void;\n hidden?: boolean;\n};\n\nexport const TipsTitle = (props: TipsTitleProps) => {\n if (props.hidden) return null;\n const helpElement = props.helpIcon ? (\n props.helpIcon\n ) : props.onHelp ? (\n <QuestionCircleOutlined onClick={props.onHelp} />\n ) : null;\n\n return (\n <div\n className={classNames(\n 'tips-title',\n {\n 'tips-title-small': props.size === 'small',\n },\n props.className,\n )}\n style={props.style}\n >\n <Space className=\"tips-title-title\" size={5} direction=\"horizontal\">\n {props.title}\n {helpElement}\n </Space>\n <div className=\"tips-title-content\">{props.children}</div>\n </div>\n );\n};\n"],"names":["TipsTitle","props","hidden","helpElement","helpIcon","onHelp","_jsx","_QuestionCircleOutlined","onClick","_jsxs","className","_classNames","size","style","children","Space","direction","title"],"mappings":";8MAmBaA,EAAY,SAAZA,EAAaC,GACxB,GAAIA,EAAMC,OAAQ,OAAO,KACzB,IAAMC,EAAcF,EAAMG,SACxBH,EAAMG,SACJH,EAAMI,OACRC,EAAAC,EAAA,CAAwBC,QAASP,EAAMI,SACrC,KAEJ,OACEI,EAAA,MAAA,CACEC,UAAWC,EACT,aACA,CACE,mBAAoBV,EAAMW,OAAS,SAErCX,EAAMS,WAERG,MAAOZ,EAAMY,MAAMC,SAAA,CAEnBL,EAACM,EAAK,CAACL,UAAU,mBAAmBE,KAAM,EAAGI,UAAU,aAAYF,SAChEb,CAAAA,EAAMgB,MACNd,KAEHG,EAAA,MAAA,CAAKI,UAAU,qBAAoBI,SAAEb,EAAMa,aAGjD"}
package/index.d.ts CHANGED
@@ -1,21 +1,19 @@
1
+ /// <reference types="node" />
1
2
  /// <reference types="prop-types" />
2
3
  /// <reference types="scheduler" />
3
4
 
4
5
  import { API, ModelType } from '@dimjs/model';
5
6
  import { DateFormatType, TAny, TNoopDefine, TPlainObject } from '@flatbiz/utils';
6
7
  import { IAllProps } from '@tinymce/tinymce-react';
7
- import { ButtonProps, CascaderProps, CheckboxProps, CollapseProps, DrawerProps, DropdownProps, FormInstance, FormItemProps, FormListFieldData, FormListOperation, InputNumberProps, InputProps, ModalProps, PaginationProps, PopconfirmProps, RadioGroupProps, RowProps, SelectProps, SpaceProps, SwitchProps, TableProps, TabsProps, TagProps, TimePickerProps, TimeRangePickerProps, TooltipProps, TreeProps, TreeSelectProps, UploadProps } from 'antd';
8
+ import { ButtonProps, CascaderProps, CheckboxProps, CollapseProps, ColorPickerProps, DrawerProps, DropdownProps, FormInstance, FormItemProps, FormListFieldData, FormListOperation, InputNumberProps, InputProps, ModalProps, PaginationProps, PopconfirmProps, RadioGroupProps, RowProps, SelectProps, SpaceProps, SwitchProps, TableProps, TabsProps, TagProps, TimePickerProps, TimeRangePickerProps, TooltipProps, TreeProps, TreeSelectProps, UploadProps } from 'antd';
8
9
  import { ConfigProviderProps } from 'antd/es/config-provider';
9
- import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
10
+ import { PickerDateProps, RangePickerDateProps } from 'antd/es/date-picker/generatePicker';
10
11
  import { FormListProps } from 'antd/es/form';
11
12
  import { CheckboxGroupProps } from 'antd/lib/checkbox';
12
- import { RangePickerDateProps } from 'antd/lib/date-picker/generatePicker';
13
13
  import { SearchProps, TextAreaProps } from 'antd/lib/input';
14
14
  import { ColumnsType } from 'antd/lib/table';
15
15
  import { UploadChangeParam } from 'antd/lib/upload';
16
16
  import { UploadFile } from 'antd/lib/upload/interface';
17
- import dayjs from 'dayjs';
18
- import { Dayjs } from 'dayjs';
19
17
  import { CSSProperties, DependencyList, FC, ReactElement, ReactNode } from 'react';
20
18
  import { Editor as TinyMCEEditor } from 'tinymce';
21
19
 
@@ -32,7 +30,7 @@ export type AnchorStepsProps = {
32
30
  * @param props
33
31
  * @returns
34
32
  */
35
- export declare const AnchorSteps: (props: AnchorStepsProps) => JSX.Element;
33
+ export declare const AnchorSteps: (props: AnchorStepsProps) => import("react/jsx-runtime").JSX.Element;
36
34
  export type ButtonWrapperProps = Omit<ButtonProps, "onClick"> & {
37
35
  onClick?: (e: React.MouseEvent<HTMLElement>) => Promise<TAny> | void;
38
36
  debounceDuration?: number;
@@ -48,11 +46,11 @@ export type ButtonWrapperProps = Omit<ButtonProps, "onClick"> & {
48
46
  * @param props
49
47
  * @returns
50
48
  */
51
- export declare const ButtonWrapper: (props: ButtonWrapperProps) => JSX.Element | null;
49
+ export declare const ButtonWrapper: (props: ButtonWrapperProps) => import("react/jsx-runtime").JSX.Element | null;
52
50
  export type ConfigProviderWrapperProps = Omit<ConfigProviderProps, "locale"> & {
53
51
  locale?: "en" | "zh-cn";
54
52
  };
55
- export declare const ConfigProviderWrapper: (props: ConfigProviderWrapperProps) => JSX.Element;
53
+ export declare const ConfigProviderWrapper: (props: ConfigProviderWrapperProps) => import("react/jsx-runtime").JSX.Element;
56
54
  export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContainer" | "open" | "open" | "okButtonProps" | "cancelButtonProps"> & {
57
55
  onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
58
56
  onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
@@ -140,7 +138,7 @@ export interface DropdownMenuWrapperProps extends Omit<DropdownProps, "menu"> {
140
138
  * 1. Dropdown默认弹框根节点在组件内部,通过isFixed=true可设置弹框根节点在body下
141
139
  * ```
142
140
  */
143
- export declare const DropdownMenuWrapper: (props: DropdownMenuWrapperProps) => JSX.Element;
141
+ export declare const DropdownMenuWrapper: (props: DropdownMenuWrapperProps) => import("react/jsx-runtime").JSX.Element;
144
142
  export interface ButtonOperateItem extends ButtonWrapperProps {
145
143
  hidden?: boolean;
146
144
  /** hover 提示文字,isFold=true无效 */
@@ -182,7 +180,7 @@ export interface ButtonOperateProps {
182
180
  }
183
181
  export declare const ButtonOperateItemContent: (props: Pick<ButtonOperateItem, "hoverTips" | "tipsType"> & {
184
182
  content: ReactNode;
185
- }) => JSX.Element;
183
+ }) => import("react/jsx-runtime").JSX.Element;
186
184
  /**
187
185
  * 按钮组合处理组件
188
186
  * ```
@@ -199,7 +197,7 @@ export type TRequestStatusProps = {
199
197
  messageConfig?: Partial<Record<TRequestStatus, string>>;
200
198
  loading?: boolean;
201
199
  };
202
- export declare const RequestStatus: (props: TRequestStatusProps) => JSX.Element;
200
+ export declare const RequestStatus: (props: TRequestStatusProps) => import("react/jsx-runtime").JSX.Element;
203
201
  export type CascaderWrapperServiceConfig = {
204
202
  params?: TPlainObject;
205
203
  onRequest?: (params?: TAny) => TAny;
@@ -289,7 +287,7 @@ export type CheckListItemProps = {
289
287
  className?: string;
290
288
  style?: CSSProperties;
291
289
  };
292
- export declare const CheckList: (<T extends "radio" | "multi">(props: CheckListProps<T>) => JSX.Element) & {
290
+ export declare const CheckList: (<T extends "radio" | "multi">(props: CheckListProps<T>) => import("react/jsx-runtime").JSX.Element) & {
293
291
  Item: (props: CheckListItemProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
294
292
  };
295
293
  export type CheckboxWrapperProps = Omit<CheckboxProps, "checked" | "defaultChecked" | "onChange"> & {
@@ -310,7 +308,14 @@ export type CheckboxWrapperProps = Omit<CheckboxProps, "checked" | "defaultCheck
310
308
  * </Form.Item>
311
309
  * ```
312
310
  */
313
- export declare const CheckboxWrapper: (props: CheckboxWrapperProps) => JSX.Element;
311
+ export declare const CheckboxWrapper: (props: CheckboxWrapperProps) => import("react/jsx-runtime").JSX.Element;
312
+ export type ColorPickerWrapperProps = Omit<ColorPickerProps, "value" | "onChange"> & {
313
+ /** 格式:#1677ff */
314
+ value?: string;
315
+ /** 转换成 hex 格式颜色字符串,返回格式如:#1677ff */
316
+ onChange?: (hex?: string) => void;
317
+ };
318
+ export declare const ColorPickerWrapper: (props: ColorPickerWrapperProps) => import("react/jsx-runtime").JSX.Element;
314
319
  export interface DrawerStateType {
315
320
  title: string;
316
321
  /**
@@ -375,7 +380,7 @@ export type CssHoverProps = {
375
380
  * @param props
376
381
  * @returns
377
382
  */
378
- export declare const CssNodeHover: (props: CssHoverProps) => JSX.Element;
383
+ export declare const CssNodeHover: (props: CssHoverProps) => import("react/jsx-runtime").JSX.Element;
379
384
  export type DataRenderProps = {
380
385
  isEmpty: boolean | (() => boolean);
381
386
  empty?: ReactElement;
@@ -400,10 +405,10 @@ export type DataRenderProps = {
400
405
  * </DataRender>
401
406
  * ```
402
407
  */
403
- export declare const DataRender: (props: DataRenderProps) => JSX.Element;
408
+ export declare const DataRender: (props: DataRenderProps) => import("react/jsx-runtime").JSX.Element;
404
409
  export type TDayjsDateType = "YYYY-MM-DD HH:mm:ss" | "YYYY-MM-DD HH:mm" | "YYYY-MM-DD HH" | "YYYY-MM-DD" | (string & {});
405
410
  export type TDayjsTimeType = "HH:mm:ss" | "HH:mm" | "HH" | "mm:ss" | "mm" | "ss" | (string & {});
406
- export type DatePickerWrapperProps = Omit<PickerDateProps<dayjs.Dayjs>, "value" | "onChange" | "format"> & {
411
+ export type DatePickerWrapperProps = Omit<PickerDateProps<TAny>, "value" | "onChange" | "format"> & {
407
412
  value?: string;
408
413
  onChange?: (value?: string) => void;
409
414
  disabledDateConfig?: {
@@ -429,8 +434,8 @@ export type DatePickerWrapperProps = Omit<PickerDateProps<dayjs.Dayjs>, "value"
429
434
  * 5. 设置 disabledTime 后,内置的disabledTime逻辑将失效
430
435
  * ```
431
436
  */
432
- export declare const DatePickerWrapper: (props: DatePickerWrapperProps) => JSX.Element;
433
- export type DateRangePickerWrapperProps = Omit<RangePickerDateProps<Dayjs>, "value" | "onChange" | "onCalendarChange" | "disabledDate" | "format"> & {
437
+ export declare const DatePickerWrapper: (props: DatePickerWrapperProps) => import("react/jsx-runtime").JSX.Element;
438
+ export type DateRangePickerWrapperProps = Omit<RangePickerDateProps<TAny>, "value" | "onChange" | "onCalendarChange" | "disabledDate" | "format"> & {
434
439
  value?: [
435
440
  string,
436
441
  string
@@ -470,7 +475,7 @@ export type DateRangePickerWrapperProps = Omit<RangePickerDateProps<Dayjs>, "val
470
475
  * TODO: 存在场景缺陷,当设置maxDays、showTime后,在选择单个日期不通过确认按钮直接切换输入框,无法获取回调,无法约束disabledDate
471
476
  * ```
472
477
  */
473
- export declare const DateRangePickerWrapper: (props: DateRangePickerWrapperProps) => JSX.Element;
478
+ export declare const DateRangePickerWrapper: (props: DateRangePickerWrapperProps) => import("react/jsx-runtime").JSX.Element;
474
479
  export type FormItemNamePath = string | number | Array<string | number>;
475
480
  export type DateRangePickerWrapperFormItemProps = Omit<FormItemProps, "name"> & {
476
481
  /**
@@ -494,7 +499,7 @@ export type DateRangePickerWrapperFormItemProps = Omit<FormItemProps, "name"> &
494
499
  * 2. 会在form中产生一个 `__#invalid_date_xxxx_xxxx` 的无效字段,可以直接忽略
495
500
  * ```
496
501
  */
497
- export declare const DateRangePickerWrapperFormItem: (props: DateRangePickerWrapperFormItemProps) => JSX.Element;
502
+ export declare const DateRangePickerWrapperFormItem: (props: DateRangePickerWrapperFormItemProps) => import("react/jsx-runtime").JSX.Element;
498
503
  export type DialogAlertProps = Omit<DialogModalProps, "onOk" | "cancelHidden" | "cancelButtonProps" | "onCancel" | "onClick"> & {
499
504
  onClick?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
500
505
  };
@@ -591,7 +596,7 @@ export type DialogDrawerContentProps = {
591
596
  * 1. 设置 footer 后,okHidden、cancelHidden、okButtonExtraProps、cancelButtonExtraProps、okText、cancelText、onOk、onCancel全部失效
592
597
  * ```
593
598
  */
594
- export declare const DialogDrawerContent: (props: DialogDrawerContentProps) => JSX.Element;
599
+ export declare const DialogDrawerContent: (props: DialogDrawerContentProps) => import("react/jsx-runtime").JSX.Element;
595
600
  export type DialogLoadingProps = {
596
601
  className?: string;
597
602
  message?: string;
@@ -648,7 +653,7 @@ export type DragCollapseProps = {
648
653
  * @param props
649
654
  * @returns
650
655
  */
651
- export declare const DragCollapse: (props: DragCollapseProps) => JSX.Element;
656
+ export declare const DragCollapse: (props: DragCollapseProps) => import("react/jsx-runtime").JSX.Element;
652
657
  export type DragCollapseFormListHeaderProps = {
653
658
  /** Form.List item fieldData */
654
659
  formListFieldData: FormListFieldData;
@@ -707,7 +712,7 @@ export type DragCollapseFormListProps = {
707
712
  * 1. FormList数组中必须要有 uid 唯一值字段
708
713
  * ```
709
714
  */
710
- export declare const DragCollapseFormList: (props: DragCollapseFormListProps) => JSX.Element;
715
+ export declare const DragCollapseFormList: (props: DragCollapseFormListProps) => import("react/jsx-runtime").JSX.Element;
711
716
  export interface DrawerOperationProps {
712
717
  loading?: boolean;
713
718
  okText?: string;
@@ -732,8 +737,8 @@ export type DrawerWrapperProps = {
732
737
  declare const DrawerWrapperContent: (props: {
733
738
  operationProps?: DrawerOperationProps;
734
739
  children?: ReactNode;
735
- }) => JSX.Element;
736
- declare const DrawerWrapperFooter: (props: any) => JSX.Element;
740
+ }) => import("react/jsx-runtime").JSX.Element;
741
+ declare const DrawerWrapperFooter: (props: any) => import("react/jsx-runtime").JSX.Element;
737
742
  /**
738
743
  * 弹窗机制
739
744
  * @deprecated 已过时 4.3.0版本移除;请使用 dialogDrawer.open
@@ -866,6 +871,8 @@ export type EasyTableProps = {
866
871
  * ```
867
872
  */
868
873
  isInline?: boolean;
874
+ /** Form 实例 */
875
+ form?: FormInstance;
869
876
  };
870
877
  export type FormOperateColProps = {
871
878
  className?: string;
@@ -987,7 +994,7 @@ export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTa
987
994
  *5. Filter 子节点包含 hidden = true 会被忽略
988
995
  *```
989
996
  */
990
- Filter: (props: EasyTableFilterProps) => JSX.Element;
997
+ Filter: (props: EasyTableFilterProps) => import("react/jsx-runtime").JSX.Element;
991
998
  /**
992
999
  * 表格渲染
993
1000
  * @param props
@@ -996,7 +1003,7 @@ export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTa
996
1003
  * 2. 分页功能已内置处理,不调用 onChange
997
1004
  * ```
998
1005
  */
999
- Table: <T extends import("@flatbiz/utils").TPlainObject>(props: EasyTableTableProps<T>) => JSX.Element;
1006
+ Table: <T extends import("@flatbiz/utils").TPlainObject>(props: EasyTableTableProps<T>) => import("react/jsx-runtime").JSX.Element;
1000
1007
  /**
1001
1008
  * @deprecated 已过时 4.3.0版本移除,请使用 useEasyTable
1002
1009
  */
@@ -1062,7 +1069,7 @@ export interface EditableFieldProviderProps {
1062
1069
  * @param props
1063
1070
  * @returns
1064
1071
  */
1065
- export declare const EditableFieldProvider: (props: EditableFieldProviderProps) => JSX.Element;
1072
+ export declare const EditableFieldProvider: (props: EditableFieldProviderProps) => import("react/jsx-runtime").JSX.Element;
1066
1073
  export type SelectorWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
1067
1074
  export type SelectorServiceConfig = {
1068
1075
  params?: TPlainObject;
@@ -1154,7 +1161,7 @@ export type SelectorWrapperProps = Omit<SelectProps, "onSearch" | "notFoundConte
1154
1161
  * 1. 不支持搜索 + 调用服务模式
1155
1162
  * ```
1156
1163
  */
1157
- export declare const SelectorWrapper: (props: SelectorWrapperProps) => JSX.Element;
1164
+ export declare const SelectorWrapper: (props: SelectorWrapperProps) => import("react/jsx-runtime").JSX.Element;
1158
1165
  export type UploadWrapperFileItem = {
1159
1166
  uid: string;
1160
1167
  name: string;
@@ -1205,7 +1212,7 @@ export type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {
1205
1212
  * ```
1206
1213
  *
1207
1214
  */
1208
- export declare const UploadWrapper: (props: UploadWrapperProps) => JSX.Element;
1215
+ export declare const UploadWrapper: (props: UploadWrapperProps) => import("react/jsx-runtime").JSX.Element;
1209
1216
  export type EditableTableName = string | number | Array<string | number>;
1210
1217
  export type EditableTableRecordType = FormListFieldData & {
1211
1218
  operation: FormListOperation;
@@ -1379,7 +1386,7 @@ export type EditableTableProps = {
1379
1386
  /** 隐藏底部`新增`按钮,设置 onTableAfterRender后 失效 */
1380
1387
  hiddenFooterBtn?: boolean;
1381
1388
  };
1382
- export declare const EditableTable: (props: EditableTableProps) => JSX.Element;
1389
+ export declare const EditableTable: (props: EditableTableProps) => import("react/jsx-runtime").JSX.Element;
1383
1390
  export type EditorWrapperProps = {
1384
1391
  onChange?: (data?: string) => void;
1385
1392
  value?: string;
@@ -1407,7 +1414,7 @@ export type EditorWrapperProps = {
1407
1414
  *
1408
1415
  * ```
1409
1416
  */
1410
- export declare const EditorWrapper: (props: EditorWrapperProps) => JSX.Element;
1417
+ export declare const EditorWrapper: (props: EditorWrapperProps) => import("react/jsx-runtime").JSX.Element;
1411
1418
  export type ShouldUpdateFunc<T> = (prev: T | undefined, next: T) => boolean;
1412
1419
  declare function usePrevious<T>(state: T, shouldUpdate?: ShouldUpdateFunc<T>): T | undefined;
1413
1420
  export declare const fbaHooks: {
@@ -1454,7 +1461,7 @@ export type FileImportProps = {
1454
1461
  * ```
1455
1462
  */
1456
1463
  export declare const FileImport: {
1457
- (props: FileImportProps): JSX.Element;
1464
+ (props: FileImportProps): import("react/jsx-runtime").JSX.Element;
1458
1465
  defaultProps: {
1459
1466
  name: string;
1460
1467
  accept: string;
@@ -1478,7 +1485,7 @@ export type FlexLayoutProps = {
1478
1485
  * @param props
1479
1486
  * @returns
1480
1487
  */
1481
- export declare const FlexLayout: (props: FlexLayoutProps) => JSX.Element;
1488
+ export declare const FlexLayout: (props: FlexLayoutProps) => import("react/jsx-runtime").JSX.Element;
1482
1489
  export type FormColProps = {
1483
1490
  span?: number;
1484
1491
  /** 屏幕 < 576px */
@@ -1506,7 +1513,7 @@ export declare const FormGrid: {
1506
1513
  * 2. 子元素只能是 FormCol、FormOperateCol,其他会被忽略
1507
1514
  * 3. 所有子元素中只能存在一个 FormOperateCol
1508
1515
  */
1509
- Row: (props: FormRowProps) => JSX.Element;
1516
+ Row: (props: FormRowProps) => import("react/jsx-runtime").JSX.Element;
1510
1517
  /**
1511
1518
  * 网格响应式布局,默认值:{ xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 }
1512
1519
  *```
@@ -1521,7 +1528,7 @@ export declare const FormGrid: {
1521
1528
  * ```
1522
1529
  */
1523
1530
  Col: {
1524
- (props: FormColProps): JSX.Element | null;
1531
+ (props: FormColProps): import("react/jsx-runtime").JSX.Element | null;
1525
1532
  domTypeName: string;
1526
1533
  };
1527
1534
  /**
@@ -1534,7 +1541,7 @@ export declare const FormGrid: {
1534
1541
  * ```
1535
1542
  */
1536
1543
  OperateCol: {
1537
- (props: FormOperateColProps): JSX.Element | null;
1544
+ (props: FormOperateColProps): import("react/jsx-runtime").JSX.Element | null;
1538
1545
  domTypeName: string;
1539
1546
  };
1540
1547
  };
@@ -1563,13 +1570,13 @@ export type FormItemCardProps = {
1563
1570
  titleSign?: boolean;
1564
1571
  };
1565
1572
  export declare const FormItemGroup: {
1566
- HorizontalUnion: (props: FormItemHorizontalUnionProps) => JSX.Element;
1573
+ HorizontalUnion: (props: FormItemHorizontalUnionProps) => import("react/jsx-runtime").JSX.Element;
1567
1574
  Card: import("react").FC<FormItemCardProps>;
1568
1575
  };
1569
1576
  export type FormItemHiddenProps = {
1570
- name: string;
1577
+ name: string | Array<string | number>;
1571
1578
  };
1572
- export declare const FormItemHidden: (props: FormItemHiddenProps) => JSX.Element;
1579
+ export declare const FormItemHidden: (props: FormItemHiddenProps) => import("react/jsx-runtime").JSX.Element;
1573
1580
  export interface FormItemWrapperProps extends FormItemProps {
1574
1581
  wrapper?: (children: ReactNode) => ReactElement;
1575
1582
  /** 设置wrapper后,before、after失效 */
@@ -1593,7 +1600,7 @@ export interface FormItemWrapperProps extends FormItemProps {
1593
1600
  * 2. 对输入、输出数据进行序列化处理
1594
1601
  * ```
1595
1602
  */
1596
- export declare const FormItemWrapper: (props: FormItemWrapperProps) => JSX.Element | null;
1603
+ export declare const FormItemWrapper: (props: FormItemWrapperProps) => import("react/jsx-runtime").JSX.Element | null;
1597
1604
  export type GapProps = {
1598
1605
  height?: number;
1599
1606
  width?: number;
@@ -1606,7 +1613,7 @@ export type GapProps = {
1606
1613
  * @param props
1607
1614
  * @returns
1608
1615
  */
1609
- export declare const Gap: (props: GapProps) => JSX.Element;
1616
+ export declare const Gap: (props: GapProps) => import("react/jsx-runtime").JSX.Element;
1610
1617
  export type IconWrapperProps = {
1611
1618
  hoverTips?: string | React.ReactElement;
1612
1619
  /**
@@ -1623,7 +1630,7 @@ export type IconWrapperProps = {
1623
1630
  hideHoverBgColor?: boolean;
1624
1631
  hidden?: boolean;
1625
1632
  };
1626
- export declare const IconWrapper: (props: IconWrapperProps) => JSX.Element | null;
1633
+ export declare const IconWrapper: (props: IconWrapperProps) => import("react/jsx-runtime").JSX.Element | null;
1627
1634
  export type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
1628
1635
  /**
1629
1636
  * ```
@@ -1636,7 +1643,7 @@ export type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
1636
1643
  *
1637
1644
  * ```
1638
1645
  */
1639
- export declare const InputSearchWrapper: (props: InputSearchWrapperProps) => JSX.Element;
1646
+ export declare const InputSearchWrapper: (props: InputSearchWrapperProps) => import("react/jsx-runtime").JSX.Element;
1640
1647
  export type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValue"> & {
1641
1648
  debounceDuration?: number;
1642
1649
  };
@@ -1651,7 +1658,7 @@ export type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValue"> & {
1651
1658
  *
1652
1659
  * ```
1653
1660
  */
1654
- export declare const InputTextAreaWrapper: (props: InputTextAreaWrapperProps) => JSX.Element;
1661
+ export declare const InputTextAreaWrapper: (props: InputTextAreaWrapperProps) => import("react/jsx-runtime").JSX.Element;
1655
1662
  export type InputWrapperProps = Omit<InputProps, "defaultValue"> & {
1656
1663
  debounceDuration?: number;
1657
1664
  };
@@ -1666,7 +1673,7 @@ export type InputWrapperProps = Omit<InputProps, "defaultValue"> & {
1666
1673
  * 6. 可设置防抖执行时间
1667
1674
  * ```
1668
1675
  */
1669
- export declare const InputWrapper: (props: InputWrapperProps) => JSX.Element;
1676
+ export declare const InputWrapper: (props: InputWrapperProps) => import("react/jsx-runtime").JSX.Element;
1670
1677
  export type LabelValueLayoutProps = {
1671
1678
  options: {
1672
1679
  label: string | ReactElement;
@@ -1683,7 +1690,7 @@ export type LabelValueLayoutProps = {
1683
1690
  * options[].span 是 Description.Item 的数量。 span={2} 会占用两个 DescriptionItem 的宽度
1684
1691
  * options[].hidden 是否隐藏 Description.Item
1685
1692
  */
1686
- export declare const LabelValueLayout: (props: LabelValueLayoutProps) => JSX.Element;
1693
+ export declare const LabelValueLayout: (props: LabelValueLayoutProps) => import("react/jsx-runtime").JSX.Element;
1687
1694
  export type LocalLoadingServiceConfig = {
1688
1695
  onRequest: (params?: TAny) => Promise<TPlainObject>;
1689
1696
  params?: TPlainObject;
@@ -1753,7 +1760,7 @@ export interface ModalActionProps {
1753
1760
  * </ModalAction>
1754
1761
  * ```
1755
1762
  */
1756
- export declare const ModalAction: (props: ModalActionProps) => JSX.Element;
1763
+ export declare const ModalAction: (props: ModalActionProps) => import("react/jsx-runtime").JSX.Element;
1757
1764
  export interface ModalOperationOldProps {
1758
1765
  loading?: boolean;
1759
1766
  okText?: string;
@@ -1775,8 +1782,8 @@ export type ModalWrapperProps = {
1775
1782
  declare const ModalWrapperContent: (props: {
1776
1783
  operationProps?: ModalOperationOldProps;
1777
1784
  children?: ReactNode;
1778
- }) => JSX.Element;
1779
- declare const ModalWrapperFooter: (props: any) => JSX.Element;
1785
+ }) => import("react/jsx-runtime").JSX.Element;
1786
+ declare const ModalWrapperFooter: (props: any) => import("react/jsx-runtime").JSX.Element;
1780
1787
  /**
1781
1788
  * 弹窗机制
1782
1789
  * @deprecated 已过时 4.3.0版本移除,后面版本会移除;请使用 dialogModal.open
@@ -1798,11 +1805,11 @@ export type PageFixedFooterProps = {
1798
1805
  children?: ReactNode | ReactNode[];
1799
1806
  hidden?: boolean;
1800
1807
  };
1801
- export declare const PageFixedFooter: (props: PageFixedFooterProps) => JSX.Element | null;
1808
+ export declare const PageFixedFooter: (props: PageFixedFooterProps) => import("react/jsx-runtime").JSX.Element | null;
1802
1809
  export type Page404Props = {
1803
1810
  message?: string;
1804
1811
  };
1805
- export declare const Page404: (props: Page404Props) => JSX.Element;
1812
+ export declare const Page404: (props: Page404Props) => import("react/jsx-runtime").JSX.Element;
1806
1813
  /**
1807
1814
  * 由于 antd 5.3.x 分页Pagination组件,存在点击分页选择框时,一直朝下
1808
1815
  * issues:https://github.com/ant-design/ant-design/issues/36866
@@ -1810,12 +1817,12 @@ export declare const Page404: (props: Page404Props) => JSX.Element;
1810
1817
  * @param props
1811
1818
  * @returns
1812
1819
  */
1813
- export declare const PaginationWrapper: (props: PaginationProps) => JSX.Element;
1820
+ export declare const PaginationWrapper: (props: PaginationProps) => import("react/jsx-runtime").JSX.Element;
1814
1821
  export interface PermissionProps {
1815
1822
  name?: string;
1816
1823
  children?: ReactNode | ReactNode[];
1817
1824
  }
1818
- export declare const Permission: (props: PermissionProps) => JSX.Element | null;
1825
+ export declare const Permission: (props: PermissionProps) => import("react/jsx-runtime").JSX.Element | null;
1819
1826
  /**
1820
1827
  * 预定义className
1821
1828
  * ```
@@ -1885,7 +1892,7 @@ export type CustomRadioGroupProps = {
1885
1892
  * @param props
1886
1893
  * @returns
1887
1894
  */
1888
- export declare const RadioGroupWrapper: (props: CustomRadioGroupProps) => JSX.Element;
1895
+ export declare const RadioGroupWrapper: (props: CustomRadioGroupProps) => import("react/jsx-runtime").JSX.Element;
1889
1896
  export type RelationProps = {
1890
1897
  /** 左侧Tag+线占用宽度 */
1891
1898
  tagLineWidth?: number;
@@ -1938,7 +1945,7 @@ export type TRelationTreeOperate = {
1938
1945
  remove: (uid: string) => void;
1939
1946
  onChange: (name: string, value: TAny) => void;
1940
1947
  };
1941
- export declare const RelationTree: (props: RelationTreeProps) => JSX.Element;
1948
+ export declare const RelationTree: (props: RelationTreeProps) => import("react/jsx-runtime").JSX.Element;
1942
1949
  export interface RichTextEditorProps extends Omit<IAllProps, "onChange" | "init"> {
1943
1950
  onChange?: (data?: string) => void;
1944
1951
  /** 上传图片服务 */
@@ -1979,7 +1986,7 @@ export interface RichTextEditorProps extends Omit<IAllProps, "onChange" | "init"
1979
1986
  * 默认比例:[{ min: 0, max: 1000, ratio: 0.5 }, { min: 1000, ratio: 0.3 }]
1980
1987
  * ```
1981
1988
  */
1982
- export declare const RichTextEditor: (props: RichTextEditorProps) => JSX.Element;
1989
+ export declare const RichTextEditor: (props: RichTextEditorProps) => import("react/jsx-runtime").JSX.Element;
1983
1990
  export type RichTextViewerProps = {
1984
1991
  value: string;
1985
1992
  className?: string;
@@ -1999,7 +2006,7 @@ export type RichTextViewerProps = {
1999
2006
  * @param props
2000
2007
  * @returns
2001
2008
  */
2002
- export declare const RichTextViewer: (props: RichTextViewerProps) => JSX.Element;
2009
+ export declare const RichTextViewer: (props: RichTextViewerProps) => import("react/jsx-runtime").JSX.Element;
2003
2010
  export type RollLocationCenterProps = {
2004
2011
  renderList: {
2005
2012
  activeKey: string;
@@ -2011,7 +2018,7 @@ export type RollLocationCenterProps = {
2011
2018
  style?: CSSProperties;
2012
2019
  className?: string;
2013
2020
  };
2014
- export declare const RollLocationCenter: (props: RollLocationCenterProps) => JSX.Element;
2021
+ export declare const RollLocationCenter: (props: RollLocationCenterProps) => import("react/jsx-runtime").JSX.Element;
2015
2022
  export type RollLocationInViewProps = {
2016
2023
  renderList: {
2017
2024
  activeKey: string;
@@ -2024,7 +2031,7 @@ export type RollLocationInViewProps = {
2024
2031
  style?: CSSProperties;
2025
2032
  className?: string;
2026
2033
  };
2027
- export declare const RollLocationInView: (props: RollLocationInViewProps) => JSX.Element;
2034
+ export declare const RollLocationInView: (props: RollLocationInViewProps) => import("react/jsx-runtime").JSX.Element;
2028
2035
  export type RuleDataItem = {
2029
2036
  title?: string | ReactElement;
2030
2037
  desc?: string | ReactElement;
@@ -2038,7 +2045,7 @@ export type RuleDescribeProps = {
2038
2045
  ruleItemTitleStyle?: CSSProperties;
2039
2046
  ruleItemDescStyle?: CSSProperties;
2040
2047
  };
2041
- export declare const RuleDescribe: (props: RuleDescribeProps) => JSX.Element;
2048
+ export declare const RuleDescribe: (props: RuleDescribeProps) => import("react/jsx-runtime").JSX.Element;
2042
2049
  export type SelectorWrapperSearchServiceConfig = {
2043
2050
  params?: TPlainObject;
2044
2051
  onRequest: (params?: TAny) => TAny;
@@ -2090,7 +2097,7 @@ export type SelectorWrapperSearchProps = Omit<SelectProps, "onSearch" | "notFoun
2090
2097
  * 3. 不会对value、onChange做任何处理
2091
2098
  * ```
2092
2099
  */
2093
- export declare const SelectorWrapperSearch: (props: SelectorWrapperSearchProps) => JSX.Element;
2100
+ export declare const SelectorWrapperSearch: (props: SelectorWrapperSearchProps) => import("react/jsx-runtime").JSX.Element;
2094
2101
  export type SelectorWrapperSimpleServiceConfig = {
2095
2102
  params?: TPlainObject;
2096
2103
  onRequest: (params?: TAny) => TAny;
@@ -2140,7 +2147,7 @@ export type SelectorWrapperSimpleProps = Omit<SelectProps, "onSearch" | "notFoun
2140
2147
  * 3. 不会对value、onChange做任何处理
2141
2148
  * ```
2142
2149
  */
2143
- export declare const SelectorWrapperSimple: (props: SelectorWrapperSimpleProps) => JSX.Element;
2150
+ export declare const SelectorWrapperSimple: (props: SelectorWrapperSimpleProps) => import("react/jsx-runtime").JSX.Element;
2144
2151
  export type SimpleLayoutProps = {
2145
2152
  className?: string;
2146
2153
  style?: CSSProperties;
@@ -2184,7 +2191,7 @@ export type SimpleLayoutProps = {
2184
2191
  * ```
2185
2192
  */
2186
2193
  export declare const SimpleLayout: {
2187
- (props: SimpleLayoutProps): JSX.Element;
2194
+ (props: SimpleLayoutProps): import("react/jsx-runtime").JSX.Element;
2188
2195
  defaultProps: {
2189
2196
  titleLeftLine: boolean;
2190
2197
  layoutType: string;
@@ -2273,7 +2280,7 @@ export type SwitchConfirmWrapperProps = Omit<SwitchProps, "defaultChecked" | "on
2273
2280
  * </Form.Item>
2274
2281
  * ```
2275
2282
  */
2276
- export declare const SwitchConfirmWrapper: (props: SwitchConfirmWrapperProps) => JSX.Element;
2283
+ export declare const SwitchConfirmWrapper: (props: SwitchConfirmWrapperProps) => import("react/jsx-runtime").JSX.Element;
2277
2284
  export type SwitchWrapperValue = string | number | boolean;
2278
2285
  export type SwitchWrapperProps = Omit<SwitchProps, "checked" | "defaultChecked" | "onChange"> & {
2279
2286
  value?: SwitchWrapperValue;
@@ -2304,7 +2311,7 @@ export type SwitchWrapperProps = Omit<SwitchProps, "checked" | "defaultChecked"
2304
2311
  * 6. 可设置 serviceConfig 配置服务调用交互
2305
2312
  * ```
2306
2313
  */
2307
- export declare const SwitchWrapper: (props: SwitchWrapperProps) => JSX.Element;
2314
+ export declare const SwitchWrapper: (props: SwitchWrapperProps) => import("react/jsx-runtime").JSX.Element;
2308
2315
  export type TagListSelectValue = string | number | boolean;
2309
2316
  export type TagListSelectDataItem = {
2310
2317
  label: string;
@@ -2414,7 +2421,7 @@ export declare const tableCellRender: {
2414
2421
  * }))
2415
2422
  * ```
2416
2423
  */
2417
- operateCell: (options: (item: TAny, index: number) => ButtonOperateProps) => (_value: string | number, record: any, index: number) => JSX.Element;
2424
+ operateCell: (options: (item: TAny, index: number) => ButtonOperateProps) => (_value: string | number, record: any, index: number) => import("react/jsx-runtime").JSX.Element;
2418
2425
  /**
2419
2426
  * 实现字段超出隐藏,默认长度10个字符
2420
2427
  * ```
@@ -2422,7 +2429,7 @@ export declare const tableCellRender: {
2422
2429
  * 2. 会讲字符转出字节进行计算显示
2423
2430
  * ```
2424
2431
  */
2425
- tooltipCell: (showMaxNumber?: number, defaultValue?: string) => (value: string | number) => string | number | JSX.Element | undefined;
2432
+ tooltipCell: (showMaxNumber?: number, defaultValue?: string) => (value: string | number) => string | number | import("react/jsx-runtime").JSX.Element | undefined;
2426
2433
  /**
2427
2434
  * ```
2428
2435
  * 使用方式1
@@ -2432,7 +2439,7 @@ export declare const tableCellRender: {
2432
2439
  * tableCellRender.selectorCell([{ label: '已开启', value: 1 }], { 1: '#108ee9' })
2433
2440
  * ```
2434
2441
  */
2435
- selectorCell: (selectorList: TagListSelectProps["dataList"], colorMap?: TagListSelectProps["colorMap"]) => (value: string | number) => JSX.Element;
2442
+ selectorCell: (selectorList: TagListSelectProps["dataList"], colorMap?: TagListSelectProps["colorMap"]) => (value: string | number) => import("react/jsx-runtime").JSX.Element;
2436
2443
  /**
2437
2444
  * 单元格对象数据处理,支持多级处理
2438
2445
  * ```
@@ -2458,7 +2465,7 @@ export type TableScrollProps = {
2458
2465
  * ```
2459
2466
  */
2460
2467
  export declare const TableScrollbar: ({ children, target, ...props }: TableScrollProps) => import("react").FunctionComponentElement<{
2461
- summary: (...args: any[]) => JSX.Element;
2468
+ summary: (...args: any[]) => import("react/jsx-runtime").JSX.Element;
2462
2469
  }>;
2463
2470
  export type TableTitleTooltipProps = {
2464
2471
  title: string;
@@ -2476,7 +2483,7 @@ export type TableTitleTooltipProps = {
2476
2483
  * @param props
2477
2484
  * @returns
2478
2485
  */
2479
- export declare const TableTitleTooltip: (props: TableTitleTooltipProps) => JSX.Element;
2486
+ export declare const TableTitleTooltip: (props: TableTitleTooltipProps) => import("react/jsx-runtime").JSX.Element;
2480
2487
  export type TabsWrapperProps = TabsProps & {
2481
2488
  /**
2482
2489
  * Tabs Header 提供 Sticky 效果,默认值:true
@@ -2504,7 +2511,7 @@ export type TabsWrapperProps = TabsProps & {
2504
2511
  * 缓存模式:会话缓存,在浏览器关闭后,会清除
2505
2512
  * ```
2506
2513
  */
2507
- export declare const TabsWrapper: (props: TabsWrapperProps) => JSX.Element;
2514
+ export declare const TabsWrapper: (props: TabsWrapperProps) => import("react/jsx-runtime").JSX.Element;
2508
2515
  export type TagGroupDataItem = {
2509
2516
  label: string;
2510
2517
  value: string | number;
@@ -2530,7 +2537,7 @@ export type TagWrapperProps = Omit<TagProps, "onClick"> & {
2530
2537
  /**
2531
2538
  * 为 Tag 添加 loading 效果
2532
2539
  */
2533
- export declare const TagWrapper: (props: TagWrapperProps) => JSX.Element;
2540
+ export declare const TagWrapper: (props: TagWrapperProps) => import("react/jsx-runtime").JSX.Element;
2534
2541
  export type CssTextEllipsisProps = {
2535
2542
  text?: string;
2536
2543
  width: number;
@@ -2540,7 +2547,7 @@ export type CssTextEllipsisProps = {
2540
2547
  * @param props
2541
2548
  * @returns
2542
2549
  */
2543
- export declare const TextCssEllipsis: (props: CssTextEllipsisProps) => JSX.Element;
2550
+ export declare const TextCssEllipsis: (props: CssTextEllipsisProps) => import("react/jsx-runtime").JSX.Element;
2544
2551
  export type TextOverflowRenderProps = {
2545
2552
  /** width 宽度控制超长 */
2546
2553
  width?: number;
@@ -2566,7 +2573,7 @@ export type TextOverflowRenderProps = {
2566
2573
  * @param props
2567
2574
  * @returns
2568
2575
  */
2569
- export declare const TextOverflowRender: (props: TextOverflowRenderProps) => JSX.Element;
2576
+ export declare const TextOverflowRender: (props: TextOverflowRenderProps) => import("react/jsx-runtime").JSX.Element;
2570
2577
  export type TimePickerWrapperProps = Omit<TimePickerProps, "value" | "onChange" | "format"> & {
2571
2578
  value?: string;
2572
2579
  onChange?: (value?: string) => void;
@@ -2596,7 +2603,7 @@ export type TimePickerWrapperProps = Omit<TimePickerProps, "value" | "onChange"
2596
2603
  * 5. 设置disabledTime后,disabledTimeConfig配置将失效
2597
2604
  * ```
2598
2605
  */
2599
- export declare const TimePickerWrapper: (props: TimePickerWrapperProps) => JSX.Element;
2606
+ export declare const TimePickerWrapper: (props: TimePickerWrapperProps) => import("react/jsx-runtime").JSX.Element;
2600
2607
  export type TimeRangePickerWrapperProps = Omit<TimeRangePickerProps, "value" | "onChange" | "format"> & {
2601
2608
  value?: [
2602
2609
  string,
@@ -2631,7 +2638,7 @@ export type TimeRangePickerWrapperProps = Omit<TimeRangePickerProps, "value" | "
2631
2638
  * 4. 设置disabledTime后,disabledTimeConfig配置将失效
2632
2639
  * ```
2633
2640
  */
2634
- export declare const TimeRangePickerWrapper: (props: TimeRangePickerWrapperProps) => JSX.Element;
2641
+ export declare const TimeRangePickerWrapper: (props: TimeRangePickerWrapperProps) => import("react/jsx-runtime").JSX.Element;
2635
2642
  export type TimeRangePickerWrapperFormItemProps = Omit<FormItemProps, "name"> & {
2636
2643
  /**
2637
2644
  * 开始的时间name
@@ -2654,7 +2661,20 @@ export type TimeRangePickerWrapperFormItemProps = Omit<FormItemProps, "name"> &
2654
2661
  * 2. 会在form中产生一个 `__#invalid_time_xxxx_xxxx` 的无效字段,可以直接忽略
2655
2662
  * ```
2656
2663
  */
2657
- export declare const TimeRangePickerWrapperFormItem: (props: TimeRangePickerWrapperFormItemProps) => JSX.Element;
2664
+ export declare const TimeRangePickerWrapperFormItem: (props: TimeRangePickerWrapperFormItemProps) => import("react/jsx-runtime").JSX.Element;
2665
+ export type TipsTitleProps = {
2666
+ className?: string;
2667
+ style?: CSSProperties;
2668
+ title: string;
2669
+ children: ReactNode;
2670
+ size?: "default" | "small";
2671
+ /** 自定义 help icon */
2672
+ helpIcon?: ReactElement;
2673
+ /** 配置 helpIcon 后,此参数失效 */
2674
+ onHelp?: () => void;
2675
+ hidden?: boolean;
2676
+ };
2677
+ export declare const TipsTitle: (props: TipsTitleProps) => import("react/jsx-runtime").JSX.Element | null;
2658
2678
  export type TreeSelectorWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
2659
2679
  export type TreeSelectorServiceConfig = {
2660
2680
  params?: TPlainObject;
@@ -2768,184 +2788,7 @@ export type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpandedKeys"
2768
2788
  * 2. 父节点默认不返回,需要返回请设置showCheckedStrategy
2769
2789
  * ```
2770
2790
  */
2771
- export declare const TreeSelectorWrapper: (props: TreeSelectorWrapperProps) => JSX.Element;
2772
- export type TreeWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
2773
- export type TreeServiceConfig = {
2774
- params?: TPlainObject;
2775
- requiredParamsKeys?: string[];
2776
- onRequest?: (params?: TAny) => TAny;
2777
- /**
2778
- * 响应数据适配器
2779
- */
2780
- onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
2781
- };
2782
- export type TreeLoadDataServiceConfig = {
2783
- getParams: (dataItem: TPlainObject) => TPlainObject;
2784
- onRequest: (params: TPlainObject) => TAny;
2785
- /**
2786
- * 响应数据适配器
2787
- */
2788
- onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
2789
- };
2790
- export type TreeWrapperMenuItem = {
2791
- title: string;
2792
- onClick: (dataItem: TPlainObject, event: any) => void;
2793
- icon?: ReactElement;
2794
- };
2795
- export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "selectedKeys" | "checkedKeys" | "onCheck" | "onSelect" | "fieldNames" | "multiple" | "loadData" | "icon" | "defaultCheckedKeys" | "defaultExpandParent" | "defaultSelectedKeys"> & {
2796
- modelKey: string;
2797
- /**
2798
- * useEffect依赖项数组,用于重新发起获取接口数据
2799
- */
2800
- effectDependencyList?: DependencyList;
2801
- /**
2802
- * 请求服务需求的数据,当设置`selectorTreeList`后无效果
2803
- */
2804
- serviceConfig?: TreeServiceConfig;
2805
- loadDataServiceConfig?: TreeLoadDataServiceConfig;
2806
- /**
2807
- * 当设置selectorTreeList后,serviceConfig将失效
2808
- * ```
2809
- * 1. 不支持异步数据,异步使用serviceConfig方式
2810
- * ```
2811
- */
2812
- selectorTreeList?: TPlainObject[];
2813
- /**
2814
- * 通过服务获取数据后回调,当设置`selectorList`后无效果
2815
- * ```
2816
- * 相同modelKey,同时发起多个渲染时,只有第一个会执行 onSelectorTreeListChange 回调
2817
- * ```
2818
- */
2819
- onSelectorTreeListChange?: (dataList: TPlainObject[]) => void;
2820
- onRequestResponseChange?: (data: TAny) => void;
2821
- onChange?: (selectedKey?: TreeWrapperValue, operateNodeData?: TPlainObject[] | TPlainObject, operateAllNodeDataList?: TPlainObject[]) => void;
2822
- fieldNames?: {
2823
- label?: string;
2824
- value?: string;
2825
- children?: string;
2826
- };
2827
- /**
2828
- * 搜索关键字,打开tree折叠过滤关键字
2829
- */
2830
- searchValue?: string;
2831
- /**
2832
- * checkable模式下,onChange是否返回父节点,默认值true
2833
- * 1. checkStrictly = true,模式下失效
2834
- */
2835
- checkableResponseParentNode?: boolean;
2836
- loadDataFlag?: boolean;
2837
- /**
2838
- * 菜单结构类型 tile/平铺 fold/折叠;默认:fold
2839
- * @deprecated 已过期 4.3.0版本移除,请使用 menus
2840
- * ```
2841
- * 自定义设置 titleRender 后失效
2842
- * ```
2843
- */
2844
- menuLayoutType?: "tile" | "fold";
2845
- /**
2846
- * 获取菜单类别
2847
- * @param dataItem
2848
- * @deprecated 已过期 4.3.0版本移除,请使用 menus
2849
- * @returns
2850
- * ```
2851
- * 1. menuLayoutType = tile 无效
2852
- * 2. 自定义设置 titleRender 后失效
2853
- * ```
2854
- */
2855
- getMenuOptions?: (dataItem: TPlainObject) => DropdownMenuItem[] | ButtonOperateItem[];
2856
- /**
2857
- * 根据 menuLayoutType 类型赋值
2858
- * @deprecated 已过期 4.3.0版本移除,请使用 menuOptions
2859
- */
2860
- menuOptions?: {
2861
- tile?: (dataItem: TPlainObject) => ButtonOperateProps;
2862
- fold?: (dataItem: TPlainObject) => DropdownMenuItem[];
2863
- };
2864
- /**
2865
- * 菜单触发类型,默认:click
2866
- * ```
2867
- * 自定义设置 titleRender 后失效
2868
- * ```
2869
- */
2870
- menuTriggerType?: "click" | "hover";
2871
- menus?: (dataItem: any) => ButtonOperateProps;
2872
- showSearch?: boolean;
2873
- onSearchValueChange?: (searchValue?: string) => void;
2874
- searchPlaceholder?: string;
2875
- searchStyle?: CSSProperties;
2876
- icon?: (data: {
2877
- isParent: boolean;
2878
- isLeaf: boolean;
2879
- }) => ReactElement;
2880
- /**
2881
- * 是否必选,最后一个不能取消
2882
- */
2883
- requestMessageConfig?: TRequestStatusProps["messageConfig"];
2884
- /**
2885
- * value格式
2886
- *```
2887
- * 1. string 、number
2888
- * 2. Array<string | number>
2889
- * 3. lableInValue = true,根据labelInValueFieldNames配置格式
2890
- * 4. lableInValue = true,Array<labelInValueFieldNames配置>
2891
- * ```
2892
- */
2893
- value?: TreeWrapperValue;
2894
- labelInValue?: boolean;
2895
- /**
2896
- * ```
2897
- * lableInValue = true,onChange输出数据字段名称,默认:{ label: string; value: string|number }
2898
- * ```
2899
- */
2900
- labelInValueFieldNames?: {
2901
- label: string;
2902
- value: string;
2903
- };
2904
- /**
2905
- * 禁用状态是否可选,默认值true
2906
- * 当dateItem中包含 disabled 则数据为禁用状态
2907
- */
2908
- disabledCanUse?: boolean;
2909
- /** treeItem数据适配器 */
2910
- treeItemDataAdapter?: (dataItem: TPlainObject) => TPlainObject;
2911
- /** 搜索位置额外元素 */
2912
- searchExtraElement?: ReactElement;
2913
- /** 有唯一跟节点时,初始化是否展开,默认值:false */
2914
- initRootExpand?: boolean;
2915
- /** 搜素过滤方式,高亮 | 过滤;默认:filter */
2916
- searchResultType?: "highlight" | "filter";
2917
- /**
2918
- * 拖拽节点处理,自定义onDrop事件后,失效
2919
- * ```
2920
- * 参数
2921
- * 1. parentId 当前拖拽节点的父节点ID
2922
- * 2. id 当前拖拽节点ID
2923
- * 3. index 当前拖拽节点所在数组下标
2924
- * ```
2925
- */
2926
- onDropNodeHandle?: (result: {
2927
- parentId?: string | number;
2928
- id: string | number;
2929
- index: number;
2930
- }) => void;
2931
- /**
2932
- * 拖拽排序前判断,如果返回 true,可排序,其他不可排序
2933
- * ```
2934
- * 可用于需要权限控制判断
2935
- * ```
2936
- */
2937
- onDropPrev?: (info: any) => boolean;
2938
- /**
2939
- * 标签渲染
2940
- * ```
2941
- * 1. 自定义设置 titleRender 后失效
2942
- * 2. 与titleRender的区别
2943
- * a. 设置 labelRender 后,menuLayout有效
2944
- * b. 设置 titleRender 后,menuLayout失效
2945
- * ```
2946
- */
2947
- labelRender?: (nodeData: TPlainObject) => ReactElement;
2948
- };
2791
+ export declare const TreeSelectorWrapper: (props: TreeSelectorWrapperProps) => import("react/jsx-runtime").JSX.Element;
2949
2792
  export type TreeWrapperRefApi = {
2950
2793
  onClearSelectorList: () => void;
2951
2794
  getTreeDataList: () => TreeProps["treeData"];
@@ -2993,7 +2836,7 @@ export declare const TreeWrapper: import("react").ForwardRefExoticComponent<Omit
2993
2836
  checkableResponseParentNode?: boolean | undefined;
2994
2837
  loadDataFlag?: boolean | undefined;
2995
2838
  menuLayoutType?: "tile" | "fold" | undefined;
2996
- getMenuOptions?: ((dataItem: import("@flatbiz/utils").TPlainObject) => ButtonOperateItem[] | DropdownMenuItem[]) | undefined;
2839
+ getMenuOptions?: ((dataItem: import("@flatbiz/utils").TPlainObject) => DropdownMenuItem[] | ButtonOperateItem[]) | undefined;
2997
2840
  menuOptions?: {
2998
2841
  tile?: ((dataItem: import("@flatbiz/utils").TPlainObject) => ButtonOperateProps) | undefined;
2999
2842
  fold?: ((dataItem: import("@flatbiz/utils").TPlainObject) => DropdownMenuItem[]) | undefined;
@@ -3027,7 +2870,7 @@ export declare const TreeWrapper: import("react").ForwardRefExoticComponent<Omit
3027
2870
  }) => void) | undefined;
3028
2871
  onDropPrev?: ((info: any) => boolean) | undefined;
3029
2872
  labelRender?: ((nodeData: import("@flatbiz/utils").TPlainObject) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | undefined;
3030
- } & import("react").RefAttributes<TreeWrapperRefApi>> & {
2873
+ } & import("react").RefAttributes<tw.TreeWrapperRefApi>> & {
3031
2874
  /**
3032
2875
  * 获取树形原数据
3033
2876
  * ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/antd",
3
- "version": "4.2.68",
3
+ "version": "4.2.69",
4
4
  "description": "flat-biz ui components",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -33,8 +33,8 @@
33
33
  "@dimjs/utils": ">=1.3.2",
34
34
  "@flatbiz/utils": ">=4.0.10",
35
35
  "@wove/react": ">=1.2.23",
36
- "antd": ">=5.4.0",
37
- "dayjs": ">=1.11.7",
36
+ "antd": ">=5.5.1",
37
+ "dayjs": ">=1.11.9",
38
38
  "react": ">=18.2.0",
39
39
  "react-dom": ">=18.2.0",
40
40
  "ahooks": "^3.7.5"
@@ -47,8 +47,8 @@
47
47
  "@ant-design/icons": "^4.8.0",
48
48
  "@flatbiz/utils": "^4.0.10",
49
49
  "@wove/react": "^1.2.22",
50
- "antd": "^5.4.0",
51
- "dayjs": "1.11.7",
50
+ "antd": "5.5.1",
51
+ "dayjs": "1.11.9",
52
52
  "dequal": "^2.0.3",
53
53
  "react": "18.2.0",
54
54
  "react-dom": "18.2.0",