27 lines
573 B
Vue
27 lines
573 B
Vue
<script>
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
import TextStyle from 'primevue/text/style';
|
|
import { defineDeclarations } from '../props/style';
|
|
import SPACING from '../props/style/spacing.js';
|
|
|
|
export const styleData = defineDeclarations(SPACING);
|
|
|
|
export default {
|
|
name: 'BaseText',
|
|
extends: BaseComponent,
|
|
props: {
|
|
...styleData.props,
|
|
as: {
|
|
type: String,
|
|
default: 'p'
|
|
}
|
|
},
|
|
style: TextStyle,
|
|
provide() {
|
|
return {
|
|
$parentInstance: this
|
|
};
|
|
}
|
|
};
|
|
</script>
|