Skip to content

Commit 584fb32

Browse files
committed
Issue 53324: LKSM: Custom Grid View Column Limit
1 parent 9ff7dcc commit 584fb32

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

packages/components/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/components/src/internal/ViewInfo.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ describe('ViewInfo', () => {
3636
expect((ViewInfo.serialize(view) as any).sorts).toBe(undefined);
3737
expect(ViewInfo.serialize(view).sort).toStrictEqual([sortObj]);
3838

39-
view = ViewInfo.fromJson({ columns: [{ name: 'col1', key: 'col1', fieldKey: 'col1' }], fields: [{name: 'col1'} as IQueryColumn] });
40-
expect((ViewInfo.serialize(view) as any).fields).toBeUndefined()
39+
view = ViewInfo.fromJson({
40+
columns: [{ name: 'col1', key: 'col1', fieldKey: 'col1' }],
41+
fields: [{ name: 'col1' } as IQueryColumn],
42+
});
43+
expect((ViewInfo.serialize(view) as any).fields).toBeUndefined();
4144
expect(ViewInfo.serialize(view).fields).toBeUndefined();
4245
expect(ViewInfo.serialize(view).columns).toStrictEqual([{ name: 'col1', key: 'col1', fieldKey: 'col1' }]);
4346
});

packages/components/src/internal/ViewInfo.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface ViewInfoColumn {
3232
interface ViewInfoFilter {
3333
fieldKey: string;
3434
op: string;
35-
value: string | number | boolean;
35+
value: boolean | number | string;
3636
}
3737

3838
export interface ViewInfoJson {
@@ -216,4 +216,3 @@ export class ViewInfo {
216216
});
217217
}
218218
}
219-

0 commit comments

Comments
 (0)