39 lines
754 B
Vue
39 lines
754 B
Vue
<script>
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
import ChipStyle from 'primevue/chip/style';
|
|
|
|
export default {
|
|
name: 'BaseChip',
|
|
extends: BaseComponent,
|
|
props: {
|
|
label: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
icon: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
image: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
removable: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
removeIcon: {
|
|
type: String,
|
|
default: undefined
|
|
}
|
|
},
|
|
style: ChipStyle,
|
|
provide() {
|
|
return {
|
|
$pcChip: this,
|
|
$parentInstance: this
|
|
};
|
|
}
|
|
};
|
|
</script>
|