mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Refactor #5175 - IconField component added
This commit is contained in:
parent
355bbebe7e
commit
0f2aa807bd
7 changed files with 221 additions and 0 deletions
21
components/lib/iconfield/BaseIconField.vue
Normal file
21
components/lib/iconfield/BaseIconField.vue
Normal file
|
@ -0,0 +1,21 @@
|
|||
<script>
|
||||
import BaseComponent from 'primevue/basecomponent';
|
||||
import IconFieldStyle from 'primevue/iconfield/style';
|
||||
|
||||
export default {
|
||||
name: 'BaseIconField',
|
||||
extends: BaseComponent,
|
||||
props: {
|
||||
iconPosition: {
|
||||
type: String,
|
||||
default: 'right'
|
||||
}
|
||||
},
|
||||
style: IconFieldStyle,
|
||||
provide() {
|
||||
return {
|
||||
$parentInstance: this
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue