@para-ui/core 4.0.68 → 4.0.70

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/Table/index.js CHANGED
@@ -2012,7 +2012,8 @@ const Table = propsInit => {
2012
2012
  refreshInside = props.url ? true : false,
2013
2013
  checkCount = props.check ? true : false,
2014
2014
  onDragRow,
2015
- virtual = false
2015
+ virtual = false,
2016
+ columnsInfoEvent
2016
2017
  } = props;
2017
2018
  const intl = useFormatMessage('Table', localeJson);
2018
2019
  const dayNum = props.expirationTime ? props.expirationTime === 0 ? 100000000 : props.expirationTime : 7; // 过期天数
@@ -2498,6 +2499,10 @@ const Table = propsInit => {
2498
2499
  }
2499
2500
  }
2500
2501
  };
2502
+ const columnsInfoEventCom = arr => {
2503
+ if (!columnsInfoEvent) return;
2504
+ columnsInfoEvent(arr);
2505
+ };
2501
2506
  /**
2502
2507
  * 初始化设置表头
2503
2508
  * @param arr {(HeadDataProps | HeadDataReqProps)[]} 表头数据
@@ -2529,6 +2534,7 @@ const Table = propsInit => {
2529
2534
  handSerial(headShowArr); // 处理序号
2530
2535
  handHeadDataCom(headShowArr); // 处理显示列宽度
2531
2536
  setHeadDataCom(headShowArr); // 表格当前显示列 集合本地数据
2537
+ columnsInfoEventCom(headShowArr);
2532
2538
  setShowHeadList(headArr); // 显示列下拉值 所有头部的配置
2533
2539
  setHeadDataConfig(Object.assign({}, constData.current.headDataConfig));
2534
2540
  constData.current.headDataJson = json;
@@ -2951,6 +2957,7 @@ const Table = propsInit => {
2951
2957
  const changeSelectHead = (arr, item, isRest) => {
2952
2958
  handHeadDataCom(arr);
2953
2959
  setHeadDataCom(arr);
2960
+ columnsInfoEventCom(arr);
2954
2961
  const obj = {
2955
2962
  setFixed: true,
2956
2963
  headArr: arr
@@ -303,6 +303,10 @@ export interface TableProps extends TableHeadBodyPublicProps {
303
303
  * 返回true,组件内部不设置
304
304
  * */
305
305
  onDragRow?: (list: any[], evt: any) => Promise<boolean | void> | (boolean | void);
306
+ /**
307
+ * 表格列信息事件
308
+ * */
309
+ columnsInfoEvent?: (columnsInfo: HeadDataProps[]) => void;
306
310
  [key: string]: any;
307
311
  }
308
312
  export interface ExpandableRowItem {
package/index.js CHANGED
@@ -33,7 +33,7 @@ export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
33
33
  export { default as Empty } from './Empty/index.js';
34
34
  export { default as FieldForm } from './FieldForm/index.js';
35
35
  export { default as Form } from './Form/index.js';
36
- export { F as FormItem } from './_verture/index-c9e5b1a0.js';
36
+ export { F as FormItem } from './_verture/index-d73a7bf3.js';
37
37
  export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-e3beaf4b.js';
38
38
  export { G as GlobalContext, c as changeConfirmLocale, g as getConfirmLocale } from './_verture/index-ca413216.js';
39
39
  export { default as Help } from './Help/index.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@para-ui/core",
3
3
  "private": false,
4
- "version": "4.0.68",
4
+ "version": "4.0.70",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
7
7
  "description": "Powered by Para FED",