ant-design-vue/components/typography/Paragraph.tsx
tangjinzhou b0025d9e79
feat: add typography (#3807)
* feat: add typography

* fix: review typography

* fix: review typography

* feat: update typography

* feat: update typography

* fix: typography

* test: update typography

Co-authored-by: zkwolf <chenhao5866@gmail.com>
2021-03-16 12:54:22 +08:00

20 lines
514 B
Vue

import Omit from 'omit.js';
import { FunctionalComponent } from 'vue';
import Base, { BlockProps, baseProps } from './Base';
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;