Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c73597b9
authored
Mar 01, 2022
by
周子尧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
自定义表头实现
1 parent
2699c96b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
2 deletions
src/components/index.js
src/components/table-tooltip/index.vue
src/views/giftBag/receivedGiftList.vue
src/components/index.js
View file @
c73597b
...
@@ -14,6 +14,7 @@ import selectMutiProDialog from '@/components/selectMutiProDialog/index.vue'
...
@@ -14,6 +14,7 @@ import selectMutiProDialog from '@/components/selectMutiProDialog/index.vue'
import
selectSingleProDialog
from
'@/components/selectSingleProDialog/index.vue'
import
selectSingleProDialog
from
'@/components/selectSingleProDialog/index.vue'
import
relateStoreDialog
from
'@/components/relate-store-dialog'
import
relateStoreDialog
from
'@/components/relate-store-dialog'
import
selectMutiProForcouponDialog
from
'@/components/selectMutiProDialog/indexForCoupon.vue'
import
selectMutiProForcouponDialog
from
'@/components/selectMutiProDialog/indexForCoupon.vue'
import
tableTooltip
from
'@/components/table-tooltip/index.vue'
Vue
.
component
(
'glsx-combi-form'
,
glsxCombiForm
)
Vue
.
component
(
'glsx-combi-form'
,
glsxCombiForm
)
Vue
.
component
(
'glsx-dialog'
,
glsxDialog
)
Vue
.
component
(
'glsx-dialog'
,
glsxDialog
)
...
@@ -21,3 +22,4 @@ Vue.component('select-muti-pro-dialog', selectMutiProDialog)
...
@@ -21,3 +22,4 @@ Vue.component('select-muti-pro-dialog', selectMutiProDialog)
Vue
.
component
(
'select-single-pro-dialog'
,
selectSingleProDialog
)
Vue
.
component
(
'select-single-pro-dialog'
,
selectSingleProDialog
)
Vue
.
component
(
'relate-store-dialog'
,
relateStoreDialog
)
Vue
.
component
(
'relate-store-dialog'
,
relateStoreDialog
)
Vue
.
component
(
'select-muti-pro-forcoupon-dialog'
,
selectMutiProForcouponDialog
)
Vue
.
component
(
'select-muti-pro-forcoupon-dialog'
,
selectMutiProForcouponDialog
)
Vue
.
component
(
'table-tooltip'
,
tableTooltip
)
\ No newline at end of file
\ No newline at end of file
src/components/table-tooltip/index.vue
0 → 100644
View file @
c73597b
<
template
>
<div
class=
"table-tooltip"
>
<el-popover
placement=
"top"
width=
"200"
trigger=
"hover"
:content=
"content"
>
<el-button
slot=
"reference"
icon=
"el-icon-warning"
circle
></el-button>
</el-popover>
</div>
</
template
>
<
script
>
export
default
{
name
:
'table-tooltip'
,
props
:
{
content
:
{
type
:
String
,
default
:
''
}
},
}
</
script
>
<
style
scope
>
.table-tooltip
{
padding-right
:
0
!important
;
}
.table-tooltip
.el-button
{
border
:
none
!important
;
}
.table-tooltip
.el-button.is-circle
{
padding
:
0
!important
;
}
.table-tooltip
.el-button
:focus
,
.table-tooltip
.el-button
:hover
{
background-color
:
transparent
;
}
.table-tooltip
.el-button
:focus
{
color
:
initial
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/giftBag/receivedGiftList.vue
View file @
c73597b
...
@@ -213,8 +213,17 @@ export default {
...
@@ -213,8 +213,17 @@ export default {
}
}
},
},
{
{
label
:
'已核销成本/元'
,
//
label: '已核销成本/元',
prop
:
'verificationAnticipatedCost'
,
prop
:
'verificationAnticipatedCost'
,
// sortable: true,
renderHeader
:
h
=>
{
return
h
(
'div'
,
{
class
:
'table-header'
},
[
h
(
'span'
,
'已核销成本/元'
),
h
(
'table-tooltip'
,
{
props
:
{
content
:
'该商品的历史总销量,订单发生退款、换货历史销量均不变'
}
})
])
},
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
verificationAnticipatedCost
/
100
return
cellValue
.
verificationAnticipatedCost
/
100
}
}
...
@@ -378,4 +387,11 @@ export default {
...
@@ -378,4 +387,11 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
></
style
>
<
style
scoped
>
.table-header
{
display
:
inline-flex
!important
;
align-items
:
center
;
justify-content
:
center
;
padding
:
0
!important
;
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment