@icos-desktop/react-components 1.2.0-beta.7 → 1.2.0-beta.9

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.
@@ -1,6 +1,8 @@
1
1
  import { TableProps, TreeSelectProps } from '@xirang/design-antd';
2
2
  export { App, ConfigProvider } from '@xirang/design-antd';
3
+ export { default as Provider } from '@/themes/Provider';
3
4
  import React from 'react';
5
+ import { ButtonProps } from 'antd/es/button/button';
4
6
  import { IcosDesktopType } from '@/global';
5
7
 
6
8
  interface BookGroupTableProps {
@@ -277,6 +279,30 @@ interface SenseImportProps {
277
279
  * 台账组编码
278
280
  */
279
281
  bookGroupId: string;
282
+ /**
283
+ * 确定按钮文字
284
+ */
285
+ okText?: React.ReactNode;
286
+ /**
287
+ * 取消按钮文字
288
+ */
289
+ cancelText?: React.ReactNode;
290
+ /**
291
+ * 确定按钮属性
292
+ */
293
+ okButtonProps?: ButtonProps;
294
+ /**
295
+ * 取消按钮属性
296
+ */
297
+ cancelButtonProps?: ButtonProps;
298
+ /**
299
+ * 点击取消按钮
300
+ */
301
+ onCancel?: () => void;
302
+ /**
303
+ * 保存成功
304
+ */
305
+ onSuccess?: () => void;
280
306
  }
281
307
 
282
308
  declare const SenseImport: React.ForwardRefExoticComponent<SenseImportProps & React.RefAttributes<SenseImportRef>>;
@@ -326,6 +352,11 @@ interface SenseManagerProps {
326
352
  * 显示实体记录列表
327
353
  */
328
354
  showSenseTable?: boolean;
355
+ /**
356
+ * 显示导入数据按钮
357
+ * @description 默认打开台账组导入,可按视图配置对应为台账导入/台账组导入
358
+ */
359
+ showImportButton?: boolean | Record<string, 'book' | 'bookGroup'>;
329
360
  /**
330
361
  * 台账功能
331
362
  */
@@ -371,10 +402,6 @@ interface SenseManagerProps {
371
402
  * @param record
372
403
  */
373
404
  onDoubleClickSense?: (record: any) => void;
374
- /**
375
- * 点击导入数据按钮
376
- */
377
- onClickImportData?: () => void;
378
405
  }
379
406
  interface SenseManagerRef {
380
407
  /**