Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-sky-ui
Project
Project
Details
Activity
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
何虹
hs-sky-ui
Commits
fb32f91b
Commit
fb32f91b
authored
Jan 18, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1e303579
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
child.vue
src/packages/hs-table/src/child.vue
+6
-5
No files found.
src/packages/hs-table/src/child.vue
View file @
fb32f91b
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
:title=
"column.label"
:title=
"column.label"
:fixed=
"column.fixed"
:fixed=
"column.fixed"
:min-width=
"column.width||80"
:min-width=
"column.width||80"
:sortable=
"column.isSort
?'custom':false
"
:sortable=
"column.isSort"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<i
<i
...
@@ -170,7 +170,7 @@ import utilsExcel from '../../funTools/excel/utils_excel'
...
@@ -170,7 +170,7 @@ import utilsExcel from '../../funTools/excel/utils_excel'
import
rowTable
from
'./rowTable'
import
rowTable
from
'./rowTable'
import
commonMixins
from
'../../ucClass/commonMixins'
import
commonMixins
from
'../../ucClass/commonMixins'
export
default
{
export
default
{
mixins
:[
commonMixins
],
mixins
:
[
commonMixins
],
components
:
{
components
:
{
childItem
,
childItem
,
rowTable
,
rowTable
,
...
@@ -502,14 +502,15 @@ export default {
...
@@ -502,14 +502,15 @@ export default {
order
:
this
.
dealWithOrderValue
(
order
),
order
:
this
.
dealWithOrderValue
(
order
),
prop
prop
}
}
debugger
this
.
$emit
(
'sortChange'
,
sortData
,
this
.
getBindEntity
())
this
.
$emit
(
'sortChange'
,
sortData
,
this
.
getBindEntity
())
},
},
/**
/**
* 处理排序值
* 处理排序值
*/
*/
dealWithOrderValue
(
order
)
{
dealWithOrderValue
(
order
)
{
if
(
order
===
'descending'
)
return
0
if
(
order
===
'descending'
||
order
===
'desc'
)
return
0
if
(
order
===
'ascending'
)
return
1
if
(
order
===
'ascending'
||
order
===
'asc'
)
return
1
if
(
!
order
)
return
''
if
(
!
order
)
return
''
},
},
rowDblclick
(
row
,
column
,
event
)
{
rowDblclick
(
row
,
column
,
event
)
{
...
@@ -779,7 +780,7 @@ export default {
...
@@ -779,7 +780,7 @@ export default {
})
})
},
},
async
exportExcel
(
flage
)
{
async
exportExcel
(
flage
)
{
const
data
=
this
.
table
D
ata
const
data
=
this
.
table
d
ata
const
columnsProp_
=
[]
const
columnsProp_
=
[]
this
.
tableColumns
.
forEach
(
item
=>
{
this
.
tableColumns
.
forEach
(
item
=>
{
if
(
item
.
childs
)
{
if
(
item
.
childs
)
{
...
...
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