primevue-mirror/components/lib/text/BaseText.vue

27 lines
573 B
Vue
Raw Normal View History

2024-02-16 08:48:00 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import TextStyle from 'primevue/text/style';
2024-02-17 23:42:39 +00:00
import { defineDeclarations } from '../props/style';
2024-02-16 08:48:00 +00:00
import SPACING from '../props/style/spacing.js';
2024-02-17 23:42:39 +00:00
export const styleData = defineDeclarations(SPACING);
2024-02-16 08:48:00 +00:00
export default {
name: 'BaseText',
extends: BaseComponent,
props: {
...styleData.props,
as: {
type: String,
default: 'p'
}
},
style: TextStyle,
provide() {
return {
$parentInstance: this
};
}
};
</script>