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
e9dc8a33
Commit
e9dc8a33
authored
Jul 11, 2020
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善拖拽列功能
parent
49fb06fc
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
150 additions
and
97 deletions
+150
-97
DragSorted.tsx
components/apolloTable/component/DragSorted.tsx
+144
-93
Table.less
components/apolloTable/component/Table.less
+3
-2
Table.tsx
components/apolloTable/component/Table.tsx
+3
-2
No files found.
components/apolloTable/component/DragSorted.tsx
View file @
e9dc8a33
This diff is collapsed.
Click to expand it.
components/apolloTable/component/Table.less
View file @
e9dc8a33
...
...
@@ -142,6 +142,7 @@
bottom: 0;
background: rgba(0,0,0,0.3);
z-index: 5;
pointer-events: none;
//
pointer-events: none;
display: none;
}
\ No newline at end of file
cursor: grab;
}
components/apolloTable/component/Table.tsx
View file @
e9dc8a33
...
...
@@ -317,9 +317,10 @@ export default class AirTable extends Component<TableProps, TableState> {
questionText
,
icon
,
requiredFlag
,
orderNo
,
}
=
showColumns
[
columnIndex
];
return
(
<
DragSorted
column
Config=
{
showColumns
[
columnIndex
]
}
onDropFinish=
{
onDragSorted
}
onScroll=
{
this
.
onScrollHor
}
className=
{
styles
.
headerCell
}
key=
{
key
}
style=
{
style
}
>
<
DragSorted
column
Name=
{
columnName
}
orderNo=
{
orderNo
}
onDropFinish=
{
onDragSorted
}
onScroll=
{
this
.
onScrollHor
}
className=
{
styles
.
headerCell
}
key=
{
key
}
style=
{
style
}
>
<
ResizableBox
width=
{
style
.
width
}
handle=
{
...
...
@@ -805,7 +806,7 @@ export default class AirTable extends Component<TableProps, TableState> {
}
}
/>
</
div
>
<
div
id=
"columnCopyDiv"
className=
{
styles
.
columnCopyDiv
}
/>
<
div
id=
"columnCopyDiv"
className=
{
styles
.
columnCopyDiv
}
draggable=
{
true
}
/>
</
div
>
);
}
}
...
...
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