@para-ui/core 3.0.13 → 3.0.14

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/Form/index.js CHANGED
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-d7722f4b.js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { DeepClone } from '@paraview/lib';
5
5
  import React__default from 'react';
6
- import { F as FormItem, v as validate } from '../_verture/index-6bbaabcb.js';
6
+ import { F as FormItem, v as validate } from '../_verture/index-73896d60.js';
7
7
  import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
8
8
  import '../TextField/index.js';
9
9
  import '../_verture/typeof-498dd2b1.js';
package/FormItem/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { F as default } from '../_verture/index-6bbaabcb.js';
3
+ export { F as default } from '../_verture/index-73896d60.js';
4
4
  import 'clsx';
5
5
  import '../Label/index.js';
6
6
  import '../_verture/constant-bf34e6fa.js';
package/Table/index.js CHANGED
@@ -2993,17 +2993,26 @@ var Table = function Table(propsInit) {
2993
2993
  /**
2994
2994
  * 改变选择列
2995
2995
  * @param arr {HeadDataProps[]} 当前显示列
2996
+ * @param item 当前点击项
2997
+ * @param isRest 是否重置
2996
2998
  * */
2997
2999
 
2998
3000
 
2999
- var changeSelectHead = function changeSelectHead(arr, item) {
3001
+ var changeSelectHead = function changeSelectHead(arr, item, isRest) {
3000
3002
  handHeadDataCom(arr);
3001
- setHeadDataCom(arr); // 本地记住选择列
3002
-
3003
- setLocalStorageHeadCom({
3003
+ setHeadDataCom(arr);
3004
+ var obj = {
3004
3005
  setFixed: true,
3005
3006
  headArr: arr
3006
- });
3007
+ };
3008
+
3009
+ if (isRest) {
3010
+ obj.setDrag = true;
3011
+ obj.headDataConfig = {};
3012
+ } // 本地记住选择列
3013
+
3014
+
3015
+ setLocalStorageHeadCom(obj);
3007
3016
  onClickColumns && onClickColumns(arr, item);
3008
3017
  };
3009
3018
  /**
@@ -3034,7 +3043,7 @@ var Table = function Table(propsInit) {
3034
3043
  }
3035
3044
  }
3036
3045
 
3037
- changeSelectHead(arr, item);
3046
+ changeSelectHead(arr, item, true);
3038
3047
  return;
3039
3048
  }
3040
3049
 
@@ -260,8 +260,12 @@ export interface HeadDataConfigProps {
260
260
  }
261
261
  /** 设置本地数据 */
262
262
  export interface SetLocalStorageProps {
263
+ /** 显示列 */
263
264
  headArr?: HeadDataProps[];
265
+ /** 列配置 */
264
266
  headDataConfig?: HeadDataConfigProps;
267
+ /** 设置固定列 */
265
268
  setFixed?: boolean;
269
+ /** 设置拖动列 */
266
270
  setDrag?: boolean;
267
271
  }
package/index.js CHANGED
@@ -20,7 +20,7 @@ export { Drawer } from './Drawer/index.js';
20
20
  export { Dropdown } from './Dropdown/index.js';
21
21
  export { default as Empty } from './Empty/index.js';
22
22
  export { default as Form } from './Form/index.js';
23
- export { F as FormItem } from './_verture/index-6bbaabcb.js';
23
+ export { F as FormItem } from './_verture/index-73896d60.js';
24
24
  export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-4bbc454f.js';
25
25
  export { default as GlobalContext, changeConfirmLocale, getConfirmLocale } from './GlobalContext/index.js';
26
26
  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": "3.0.13",
4
+ "version": "3.0.14",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
7
7
  "description": "Powered by Para FED",