@flatbiz/antd 4.0.9 → 4.0.11

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.d.ts CHANGED
@@ -44,10 +44,10 @@ export interface ButtonOperateProps {
44
44
  split?: boolean;
45
45
  }
46
46
  export declare const ButtonOperate: FC<ButtonOperateProps>;
47
- export declare type TAny = any;
48
- export declare type TPlainObject<T = TAny> = Record<string, T>;
49
- export declare type TNoopDefine = () => void;
50
- export declare type DateFormatType = "YYYY-MM" | "YYYY-MM-DD" | "YYYY-MM-DD hh:mm" | "YYYY-MM-DD hh:mm:ss" | "MM-DD" | "YYYY/MM" | "YYYY/MM/DD" | "YYYY/MM/DD hh:mm" | "YYYY/MM/DD hh:mm:ss" | "MM/DD" | "YYYY.MM" | "YYYY.MM.DD" | "YYYY.MM.DD hh:mm" | "YYYY.MM.DD hh:mm:ss" | "MM.DD" | "YYYY\u5E74MM\u6708" | "YYYY\u5E74MM\u6708DD\u65E5" | "YYYY\u5E74MM\u6708DD\u65E5 hh:mm" | "YYYY\u5E74MM\u6708DD\u65E5 hh:mm:ss" | "MM\u6708DD\u65E5" | "hh:mm" | "hh:mm:ss" | "YYYYMM" | "YYYYMMDD" | "YYYYMMDD hh:mm" | "YYYYMMDD hh:mm:ss";
47
+ export type TAny = any;
48
+ export type TPlainObject<T = TAny> = Record<string, T>;
49
+ export type TNoopDefine = () => void;
50
+ export type DateFormatType = "YYYY-MM" | "YYYY-MM-DD" | "YYYY-MM-DD hh:mm" | "YYYY-MM-DD hh:mm:ss" | "MM-DD" | "YYYY/MM" | "YYYY/MM/DD" | "YYYY/MM/DD hh:mm" | "YYYY/MM/DD hh:mm:ss" | "MM/DD" | "YYYY.MM" | "YYYY.MM.DD" | "YYYY.MM.DD hh:mm" | "YYYY.MM.DD hh:mm:ss" | "MM.DD" | "YYYY\u5E74MM\u6708" | "YYYY\u5E74MM\u6708DD\u65E5" | "YYYY\u5E74MM\u6708DD\u65E5 hh:mm" | "YYYY\u5E74MM\u6708DD\u65E5 hh:mm:ss" | "MM\u6708DD\u65E5" | "hh:mm" | "hh:mm:ss" | "YYYYMM" | "YYYYMMDD" | "YYYYMMDD hh:mm" | "YYYYMMDD hh:mm:ss";
51
51
  export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "loading"> & {
52
52
  onClick?: (e: React.MouseEvent<HTMLElement>) => Promise<TAny> | void;
53
53
  debounceDuration?: number;
@@ -1154,6 +1154,27 @@ export declare const preDefinedClassName: {
1154
1154
  label_value_vertical: string;
1155
1155
  };
1156
1156
  };
1157
+ export type RadioGroupWrapperValue<T extends string | number> = T;
1158
+ export type RadioGroupWrapperOptionItem = {
1159
+ label: string | ReactElement;
1160
+ value: string | number;
1161
+ disabled?: boolean;
1162
+ };
1163
+ export type CustomRadioGroupProps = {
1164
+ value?: RadioGroupWrapperValue<string | number>;
1165
+ onChange?: (value?: RadioGroupWrapperValue<string | number>) => void;
1166
+ onPreChange?: (value?: RadioGroupWrapperValue<string | number>) => Promise<void>;
1167
+ options: RadioGroupWrapperOptionItem[];
1168
+ /** 是否可取消选中,默认:false */
1169
+ isCancel?: boolean;
1170
+ disabled?: boolean;
1171
+ };
1172
+ /**
1173
+ * RadioGroupWrapper 为了解决 RadioGroup 组件不能取消选中问题
1174
+ * @param props
1175
+ * @returns
1176
+ */
1177
+ export declare const RadioGroupWrapper: (props: CustomRadioGroupProps) => JSX.Element;
1157
1178
  export type RelationProps = {
1158
1179
  /** 左侧Tag+线占用宽度 */
1159
1180
  tagLineWidth?: number;
@@ -1226,7 +1247,7 @@ export type SelectorWrapperSimpleServiceConfig = {
1226
1247
  onRequest: (params?: TAny) => TAny;
1227
1248
  onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
1228
1249
  };
1229
- export type SelectorWrapperSimpleProps = Omit<SelectProps, "filterOption" | "onSearch" | "notFoundContent" | "options" | "fieldNames" | "loading" | "autoClearSearchValue"> & {
1250
+ export type SelectorWrapperSimpleProps = Omit<SelectProps, "onSearch" | "notFoundContent" | "options" | "fieldNames" | "loading"> & {
1230
1251
  fieldNames?: {
1231
1252
  label: string;
1232
1253
  value: string;
@@ -1469,14 +1490,21 @@ export type TableTitleTooltipProps = {
1469
1490
  };
1470
1491
  export declare const TableTitleTooltip: (props: TableTitleTooltipProps) => JSX.Element;
1471
1492
  export type TabsWrapperProps = TabsProps & {
1472
- /** Tabs Header 提供 Sticky 效果 */
1493
+ /** Tabs Header 提供 Sticky 效果,默认值:true */
1473
1494
  isSticky?: boolean;
1495
+ /** 是否取消 active 缓存 */
1496
+ cancelActiveCache?: boolean;
1497
+ activeCacheKey?: string;
1474
1498
  };
1475
1499
  /**
1476
1500
  * Tabs 包装组件
1477
1501
  * ```
1478
- * 1. Tabs Header 提供 Sticky 效果
1502
+ * 1. Tabs Header 提供 Sticky 效果,默认值:true
1479
1503
  * 2. 使用时,父级必须要有高度,可置于Flex布局中
1504
+ * 3. 默认缓存激活的tab item(activeKey受控操作下缓存无效)
1505
+ * 当未设置activeKey,非受控操作时,组件内部会会话缓存activeKey,在刷新时,会显示上次的激活的tab item
1506
+ * 缓存Key:如果未设置 activeCacheKey,则使用默认的 cache key(tabs-wrapper-activeKey)
1507
+ * 缓存模式:会话缓存,在浏览器关闭后,会清除
1480
1508
  * ```
1481
1509
  */
1482
1510
  export declare const TabsWrapper: (props: TabsWrapperProps) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/antd",
3
- "version": "4.0.9",
3
+ "version": "4.0.11",
4
4
  "description": "flat-biz oss ui components",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",