2021-03-16 12:54:22 +08:00
|
|
|
import Omit from 'omit.js';
|
2021-06-26 09:35:40 +08:00
|
|
|
import type { FunctionalComponent } from 'vue';
|
|
|
|
import type { BlockProps } from './Base';
|
|
|
|
import Base, { baseProps } from './Base';
|
2021-03-16 12:54:22 +08:00
|
|
|
|
|
|
|
const Paragraph: FunctionalComponent<BlockProps> = (props, { slots, attrs }) => {
|
|
|
|
const paragraphProps = {
|
|
|
|
...props,
|
|
|
|
component: 'div',
|
|
|
|
...attrs,
|
|
|
|
};
|
|
|
|
|
|
|
|
return <Base {...paragraphProps} v-slots={slots}></Base>;
|
|
|
|
};
|
|
|
|
|
|
|
|
Paragraph.displayName = 'ATypographyParagraph';
|
|
|
|
Paragraph.inheritAttrs = false;
|
|
|
|
Paragraph.props = Omit(baseProps(), ['component']);
|
|
|
|
|
|
|
|
export default Paragraph;
|