Fixed #1256 - Chip - allow removable property while template is defined

pull/1281/head
Cagatay Civici 2021-05-18 12:10:12 +03:00
parent 940d86299c
commit 97e0bbbed8
1 changed files with 2 additions and 2 deletions

View File

@ -4,9 +4,9 @@
<img :src="image" v-if="image"> <img :src="image" v-if="image">
<span :class="iconClass" v-else-if="icon"></span> <span :class="iconClass" v-else-if="icon"></span>
<div class="p-chip-text" v-if="label">{{label}}</div> <div class="p-chip-text" v-if="label">{{label}}</div>
</slot>
<span v-if="removable" tabindex="0" :class="removeIconClass" <span v-if="removable" tabindex="0" :class="removeIconClass"
@click="close" @keydown.enter="close"></span> @click="close" @keydown.enter="close"></span>
</slot>
</div> </div>
</template> </template>