@donglegeyu/company-ui 1.2.21 → 1.2.22

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.
@@ -148,7 +148,9 @@ function SmartListTemplate({
148
148
  (0, import_react.useEffect)(() => {
149
149
  if (!fields || fields.length === 0)
150
150
  return;
151
- const updatedOptions = fields.filter((field) => !nonBusinessFields.includes(field.key)).map((field) => {
151
+ const updatedOptions = fields.filter(
152
+ (field) => !nonBusinessFields.includes(field.key) && !field.hideInFilter
153
+ ).map((field) => {
152
154
  var _a;
153
155
  return {
154
156
  key: field.key,
@@ -51,6 +51,7 @@ export interface FieldDefinition {
51
51
  width?: number;
52
52
  fixed?: 'left' | 'right';
53
53
  ellipsis?: boolean;
54
+ hideInFilter?: boolean;
54
55
  }
55
56
  export interface PaginationConfig {
56
57
  current: number;
@@ -214,7 +214,7 @@ export default function SmartListTemplate(_ref) {
214
214
  useEffect(function () {
215
215
  if (!fields || fields.length === 0) return;
216
216
  var updatedOptions = fields.filter(function (field) {
217
- return !nonBusinessFields.includes(field.key);
217
+ return !nonBusinessFields.includes(field.key) && !field.hideInFilter;
218
218
  }).map(function (field) {
219
219
  var _field$options;
220
220
  return {
@@ -51,6 +51,7 @@ export interface FieldDefinition {
51
51
  width?: number;
52
52
  fixed?: 'left' | 'right';
53
53
  ellipsis?: boolean;
54
+ hideInFilter?: boolean;
54
55
  }
55
56
  export interface PaginationConfig {
56
57
  current: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donglegeyu/company-ui",
3
- "version": "1.2.21",
3
+ "version": "1.2.22",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/es/index.js",
6
6
  "types": "dist/es/index.d.ts",