2018-11-18 11:00:15 +05:30
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
colors: {
|
|
|
|
type: Array,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
opacity: {
|
|
|
|
type: Array,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
identifierName: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<template>
|
2019-02-15 15:39:39 +05:30
|
|
|
<svg height="0" width="0">
|
2018-11-18 11:00:15 +05:30
|
|
|
<defs>
|
2019-02-15 15:39:39 +05:30
|
|
|
<linearGradient :id="identifierName">
|
|
|
|
<stop :stop-color="colors[0]" :stop-opacity="opacity[0]" offset="0%" />
|
|
|
|
<stop :stop-color="colors[1]" :stop-opacity="opacity[1]" offset="100%" />
|
2018-11-18 11:00:15 +05:30
|
|
|
</linearGradient>
|
|
|
|
</defs>
|
|
|
|
</svg>
|
|
|
|
</template>
|