38 lines
1.1 KiB
Vue
38 lines
1.1 KiB
Vue
|
<template>
|
||
|
<span v-bind="$attrs"
|
||
|
:aria-hidden="title ? null : true"
|
||
|
:aria-label="title"
|
||
|
class="material-design-icon help-circle-icon"
|
||
|
role="img"
|
||
|
@click="$emit('click', $event)">
|
||
|
<svg :fill="fillColor"
|
||
|
class="material-design-icon__svg"
|
||
|
:width="size"
|
||
|
:height="size"
|
||
|
viewBox="0 0 24 24">
|
||
|
<path d="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z">
|
||
|
<title v-if="title">{{ title }}</title>
|
||
|
</path>
|
||
|
</svg>
|
||
|
</span>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: "HelpCircleIcon",
|
||
|
emits: ['click'],
|
||
|
props: {
|
||
|
title: {
|
||
|
type: String,
|
||
|
},
|
||
|
fillColor: {
|
||
|
type: String,
|
||
|
default: "currentColor"
|
||
|
},
|
||
|
size: {
|
||
|
type: Number,
|
||
|
default: 24
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|