Joe
11 months ago
5 changed files with 46 additions and 81 deletions
@ -1,47 +0,0 @@ |
|||||
<template> |
|
||||
<ElPopover class='Popover' v-bind="getBind" v-on="$listeners"> |
|
||||
<slot /> |
|
||||
<template #reference> |
|
||||
<slot name="reference" /> |
|
||||
</template> |
|
||||
</ElPopover> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
export default { |
|
||||
name: 'Popover', |
|
||||
computed: { |
|
||||
getBind() { |
|
||||
return { |
|
||||
trigger: 'hover', |
|
||||
placement: "left", |
|
||||
...this.$attrs, |
|
||||
popperClass: "Popover-Scope-Screen" |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</script> |
|
||||
|
|
||||
<style lang='scss'> |
|
||||
div.el-popper.Popover-Scope-Screen { |
|
||||
background: linear-gradient(180deg, #005C79 0%, #009BCC 100%); |
|
||||
border: 0; |
|
||||
color: #fff; |
|
||||
font-size: 14px; |
|
||||
font-family: PingFang SC, PingFang SC; |
|
||||
font-weight: 400; |
|
||||
color: #FFFFFF; |
|
||||
|
|
||||
div.popper__arrow { |
|
||||
border-left-color: #00799f; |
|
||||
|
|
||||
&::after { |
|
||||
border-left-color: #00799f; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</style> |
|
||||
<style lang='scss' scoped> |
|
||||
.Popover {} |
|
||||
</style> |
|
Loading…
Reference in new issue