Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
submodule
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
web_component
submodule
Commits
68611ce6
Commit
68611ce6
authored
Feb 02, 2021
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除本地排序缓存
parent
1482c759
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
DragFixed.tsx
components/apolloTable/component/DragFixed.tsx
+1
-1
DragSorted.tsx
components/apolloTable/component/DragSorted.tsx
+1
-1
memCols.ts
components/apolloTable/utils/memCols.ts
+2
-2
No files found.
components/apolloTable/component/DragFixed.tsx
View file @
68611ce6
...
...
@@ -139,7 +139,7 @@ const DragFixed = (props: any) => {
cachedCols
[
item
.
columnName
]
=
{
...
cachedCols
[
item
.
columnName
],
fixed
:
item
.
fixed
,
orderNo
:
item
.
orderNo
,
//
orderNo: item.orderNo,
};
saveCache
({
tableId
,
data
:
cachedCols
});
}
...
...
components/apolloTable/component/DragSorted.tsx
View file @
68611ce6
...
...
@@ -177,7 +177,7 @@ const DragSorted = (props: any) => {
newColumns
.
map
((
item
:
any
)
=>
{
cachedCols
[
item
.
columnName
]
=
{
...
cachedCols
[
item
.
columnName
],
orderNo
:
item
.
orderNo
,
//
orderNo: item.orderNo,
fixed
:
item
.
fixed
,
};
});
...
...
components/apolloTable/utils/memCols.ts
View file @
68611ce6
...
...
@@ -118,7 +118,7 @@ export const getFormatColumns = (columns: ColumnProps[], cachedFeAttr: boolean,
width
:
item
.
width
,
align
:
item
.
align
,
fixed
:
item
.
fixed
,
orderNo
:
item
.
orderNo
,
//
orderNo: item.orderNo,
};
}
return
{
...
...
@@ -134,7 +134,7 @@ export const getFormatColumns = (columns: ColumnProps[], cachedFeAttr: boolean,
width
:
item
.
width
,
align
:
item
.
align
,
fixed
:
item
.
fixed
,
orderNo
:
item
.
orderNo
,
//
orderNo: item.orderNo,
};
});
if
(
columns
.
length
>
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment