12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <script setup lang="tsx">
- import { Card, Typography } from 'ant-design-vue';
- import { ThoughtChain, type ThoughtChainProps } from 'ant-design-x-vue';
- import { cloneVNode } from 'vue';
- defineOptions({ name: 'AXThoughtChainCollapsible' });
- const { Paragraph, Text } = Typography;
- const mockContent = (
- <Typography>
- <Paragraph>
- In the process of internal desktop applications development, many different design specs and
- implementations would be involved, which might cause designers and developers difficulties and
- duplication and reduce the efficiency of development.
- </Paragraph>
- <Paragraph>
- After massive project practice and summaries, Ant Design, a design language for background
- applications, is refined by Ant UED Team, which aims to{' '}
- <Text strong>
- uniform the user interface specs for internal background projects, lower the unnecessary
- cost of design differences and implementation and liberate the resources of design and
- front-end development
- </Text>
- </Paragraph>
- </Typography>
- );
- const items: ThoughtChainProps['items'] = [
- {
- title: 'Click me to expand the content',
- description: 'Collapsible',
- content: cloneVNode(mockContent),
- },
- {
- title: 'Click me to expand the content',
- description: 'Collapsible',
- content: cloneVNode(mockContent),
- },
- ];
- defineRender(() => {
- return (
- <Card style={{ width: '500px' }}>
- <ThoughtChain items={items} collapsible />
- </Card>
- )
- });
- </script>
|