@flatbiz/antd 4.0.0 → 4.0.3

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
@@ -30,7 +30,7 @@ export interface ButtonOperateItem extends ButtonProps {
30
30
  export interface ButtonOperateProps {
31
31
  /**
32
32
  * 如果数组中使用ReactElement类型
33
- * 1. 一般为antd Button组件,可设置type=link,会有设置的hover效果
33
+ * 1. 一般为antd Button组件,如果组件存在属性hidden=true,则会隐藏
34
34
  * 2. 可配置 v-permission 权限值,例如 v-permission="add"
35
35
  * 3. 任何confirm、disabled等状态在外部控制
36
36
  * 3. 不支持fold效果
@@ -412,7 +412,9 @@ export declare type SelectorServiceConfig = {
412
412
  */
413
413
  onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
414
414
  };
415
- export declare type SelectorWrapperProps = Omit<SelectProps, "filterOption" | "onSearch" | "notFoundContent" | "options" | "fieldNames" | "onChange" | "value" | "loading"> & {
415
+ export declare type SelectorWrapperProps = Omit<SelectProps, "filterOption" | "onSearch" | "notFoundContent" | "options" | "fieldNames" | "onChange" | "value" | "loading" | "mode"> & {
416
+ /** 不支持 tags 模式,tags模式请使用antd Select 组件 */
417
+ mode?: "multiple";
416
418
  modelKey: string;
417
419
  fieldNames?: {
418
420
  label: string;
@@ -611,6 +613,7 @@ export declare type EditableCustomConfig = {
611
613
  name: Array<number | string>;
612
614
  editable?: boolean;
613
615
  completeName: Array<number | string>;
616
+ tableRowIndex: number;
614
617
  }) => ReactElement;
615
618
  };
616
619
  export declare type EditableTypeConfig = EditableCustomConfig | EditableInputConfig | EditableSelectWrapperConfig | EditableDatePickerWrapperConfig | EditableDateRangePickerWrapperConfig | EditableCheckboxGroupConfig | EditableTextareaConfig | EditableInputNumberConfig | EditableRadioGroupConfig | EditableFileUploadConfig;
@@ -1007,7 +1010,10 @@ export declare type PageFixedFooterProps = {
1007
1010
  children?: ReactNode | ReactNode[];
1008
1011
  };
1009
1012
  export declare const PageFixedFooter: (props: PageFixedFooterProps) => JSX.Element;
1010
- export declare const Page404: () => JSX.Element;
1013
+ export declare type Page404Props = {
1014
+ message?: string;
1015
+ };
1016
+ export declare const Page404: (props: Page404Props) => JSX.Element;
1011
1017
  export declare const getPermissionList: () => string[];
1012
1018
  export declare const hasPermission: (name?: string) => boolean;
1013
1019
  export interface PermissionProps {
@@ -1128,6 +1134,48 @@ export declare type RuleDescribeProps = {
1128
1134
  titleSign?: boolean;
1129
1135
  };
1130
1136
  export declare const RuleDescribe: (props: RuleDescribeProps) => JSX.Element;
1137
+ export declare type SelectorWrapperSimpleServiceConfig = {
1138
+ params?: TPlainObject;
1139
+ onRequest: (params?: TAny) => TAny;
1140
+ onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
1141
+ };
1142
+ export declare type SelectorWrapperSimpleProps = Omit<SelectProps, "filterOption" | "onSearch" | "notFoundContent" | "options" | "fieldNames" | "loading" | "showSearch" | "autoClearSearchValue"> & {
1143
+ fieldNames?: {
1144
+ label: string;
1145
+ value: string;
1146
+ disabled?: string;
1147
+ };
1148
+ /**
1149
+ * 请求服务需求的数据
1150
+ */
1151
+ serviceConfig: SelectorWrapperSimpleServiceConfig;
1152
+ /**
1153
+ * 添加全部选项
1154
+ * ```
1155
+ * 1. 默认值label="全部",value=""
1156
+ * 2. 可配置label、value
1157
+ * ```
1158
+ */
1159
+ showAllOption?: true | TPlainObject<string | number>;
1160
+ /** electorList发生变更时触发,每次都会调用 */
1161
+ onSelectorListAllChange?: (dataList: TPlainObject[]) => void;
1162
+ /**
1163
+ * 通过服务获取数据异常回调
1164
+ */
1165
+ onSelectorRequestError?: (error: Error) => void;
1166
+ requestMessageConfig?: RequestStatusRenderProps["messageConfig"];
1167
+ };
1168
+ /**
1169
+ * 选择器简单包装组件
1170
+ * @param props
1171
+ * @returns
1172
+ * ```
1173
+ * 1. 不支持search效果
1174
+ * 2. 不会缓存接口数据
1175
+ * 3. 不会对value、onChange做任何处理
1176
+ * ```
1177
+ */
1178
+ export declare const SelectorWrapperSimple: (props: SelectorWrapperSimpleProps) => JSX.Element;
1131
1179
  export declare type SimpleLayoutProps = {
1132
1180
  className?: string;
1133
1181
  style?: CSSProperties;
@@ -1304,11 +1352,11 @@ export declare type TimePickerWrapperProps = Omit<TimePickerProps, "value" | "on
1304
1352
  value?: string;
1305
1353
  onChange?: (value?: string) => void;
1306
1354
  /**
1307
- * minDatemaxDate设置格式
1355
+ * minTimemaxTime设置格式,默认格式:HH:mm:ss
1308
1356
  */
1309
- disabledDateConfig?: {
1310
- minDate?: string;
1311
- maxDate?: string;
1357
+ disabledTimeConfig?: {
1358
+ minTime?: string;
1359
+ maxTime?: string;
1312
1360
  };
1313
1361
  };
1314
1362
  /**
@@ -1332,11 +1380,11 @@ export declare type TimeRangePickerWrapperProps = Omit<TimeRangePickerProps, "va
1332
1380
  string
1333
1381
  ]) => void;
1334
1382
  /**
1335
- * minDatemaxDate设置格式
1383
+ * minTimemaxTime设置格式,默认格式:HH:mm:ss
1336
1384
  */
1337
- disabledDateConfig?: {
1338
- minDate?: string;
1339
- maxDate?: string;
1385
+ disabledTimeConfig?: {
1386
+ minTime?: string;
1387
+ maxTime?: string;
1340
1388
  };
1341
1389
  };
1342
1390
  export declare type EventValue<DateType> = DateType | null;
@@ -1349,9 +1397,8 @@ export declare type RangeValue<DateType> = [
1349
1397
  * ```
1350
1398
  * 1. value类型为 [string, string]
1351
1399
  * 2. onChange返回类型 [string, string]
1352
- * 3. 默认格式化类型 HH:mm:ss
1353
- * 4. 其他格式化类型自定义format
1354
- * 5. 设置disabledTime后,disabledDateConfig配置将失效
1400
+ * 3. 默认格式化类型 HH:mm:ss,其他格式化类型自定义format
1401
+ * 4. 设置disabledTime后,disabledTimeConfig配置将失效
1355
1402
  * ```
1356
1403
  */
1357
1404
  export declare const TimeRangePickerWrapper: (props: TimeRangePickerWrapperProps) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/antd",
3
- "version": "4.0.0",
3
+ "version": "4.0.3",
4
4
  "description": "flat-biz oss ui components",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -52,5 +52,5 @@
52
52
  "react": "18.2.0",
53
53
  "react-dom": "18.2.0"
54
54
  },
55
- "gitHead": "5381ba2486f8ee1fdfb6ff8957b82166f69a1b0c"
55
+ "gitHead": "4378d433b73ee28fd7cb4c64bed8571f993eb5a9"
56
56
  }