renderHeader(h, { column }) {
const serviceContent= [
h(
"img",
{
slot: "content",
style: "width:100px;height:100px",
attrs:{
src:'https://xxx/logo2.png',
}
},
),
h(
"div",
{
slot: "content"
},
"1癞蚕、分成數(shù)值百分比:"
),
h(
"div",
{
slot: "content"
},
"商家結(jié)算服務(wù)費(fèi)百分比 = 券后價(jià) * 銷(xiāo)量 * 服務(wù)費(fèi)比例(商家)"
),
h(
"div",
{
slot: "content"
},
"商家結(jié)算服務(wù)費(fèi)固定值 = 銷(xiāo)量 * 服務(wù)費(fèi)固定值(商家)"
),
h(
"div",
{
slot: "content",
style: "margin-bottom:5px"
},
"服務(wù)費(fèi)收入(流量主) = 商家結(jié)算服務(wù)費(fèi) * 分成數(shù)值百分比"
),
h(
"div",
{
slot: "content"
},
"2穴亏、分成數(shù)值固定值:"
),
h(
"div",
{
slot: "content"
},
"服務(wù)費(fèi)收入(流量主) = 銷(xiāo)量 * 分成數(shù)值固定值"
)
]
const paymentContent= h(
"div",
{
slot: "content"
},
"貨款 = 券后價(jià) * 銷(xiāo)量"
);
const popoverContent= [
h(
"img",
{
style: "width:100px;height:100px",
attrs:{
src:"http://xxx/5b03e13a59ba4b04afd49f1c9f32f2ec.jpg" }
},
),
h(
"div",
{
style: "color:red",
},
"1最冰、分成數(shù)值百分比:"
),
h(
"div",
"商家結(jié)算服務(wù)費(fèi)百分比 = 券后價(jià) * 銷(xiāo)量 * 服務(wù)費(fèi)比例(商家)"
)];
return h("div", [
h("span", column.label),
h(
"el-tooltip",
{
props: {
placement: "bottom"
}
},
[
column.label != "貨款" ? serviceContent: paymentContent,
h("i", {
class: "el-icon-warning-outline",
style: "color:orange;margin-left:5px;"
})
]
)]
)
if(this.type===2){
return h("div",[
h("span", column.label),
h(
"el-popover",
{
props: {
trigger:'hover',
placement: "bottom",
}
},
[
column.label != "貨款" ? popoverContent: paymentContent,
h("i", {
slot: "reference",
class: "el-icon-warning-outline",
style: "color:orange;margin-left:5px;"
})
]
)
])
}
},
文章來(lái)源網(wǎng)上 我添加了一些想法 不妥刪