12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <script setup lang="tsx">
- import { BulbOutlined, InfoCircleOutlined, RocketOutlined, SmileOutlined, WarningOutlined } from '@ant-design/icons-vue';
- import { Prompts, type PromptsProps } from 'ant-design-x-vue';
- defineOptions({ name: 'AXPromptsFlexWrapFixed' });
- const items: PromptsProps['items'] = [
- {
- key: '1',
- icon: <BulbOutlined style={{ color: '#FFD700' }} />,
- label: 'Ignite Your Creativity',
- description: 'Got any sparks for a new project?',
- },
- {
- key: '2',
- icon: <InfoCircleOutlined style={{ color: '#1890FF' }} />,
- label: 'Uncover Background Info',
- description: 'Help me understand the background of this topic.',
- },
- {
- key: '3',
- icon: <RocketOutlined style={{ color: '#722ED1' }} />,
- label: 'Efficiency Boost Battle',
- description: 'How can I work faster and better?',
- },
- {
- key: '4',
- icon: <SmileOutlined style={{ color: '#52C41A' }} />,
- label: 'Tell me a Joke',
- description: 'Why do not ants get sick? Because they have tiny ant-bodies!',
- },
- {
- key: '5',
- icon: <WarningOutlined style={{ color: '#FF4D4F' }} />,
- label: 'Common Issue Solutions',
- description: 'How to solve common issues? Share some tips!',
- },
- ];
- defineRender(() => {
- return (
- <Prompts
- title="✨ Inspirational Sparks and Marvelous Tips"
- items={items}
- wrap
- styles={{
- item: {
- flex: 'none',
- width: 'calc(50% - 6px)',
- },
- }}
- />
- )
- })
- </script>
|