1
1
import { useState } from 'react' ;
2
- import { Button , Icon , Input , Skeleton , Card } from 'pivot-design' ;
2
+ import { Button , Icon , Input , Skeleton , Card , Popover } from 'pivot-design' ;
3
3
// import router from '@/routers';
4
4
import ButtonMdx from '../../components/Button/index.mdx' ;
5
5
import IconMdx from '../../components/Icon/index.mdx' ;
6
6
import InputMdx from '../../components/Input/index.mdx' ;
7
7
import CardMdx from '../../components/Card/index.mdx' ;
8
8
import SkeletonMdx from '../../components/Skeleton/index.mdx' ;
9
+ import PopoverMdx from '@/components/Popover/index.mdx' ;
10
+
9
11
import Draggable from '@/examples/Draggable/Draggable' ;
10
12
import CodeBlock from '@/components/_CodeBlock/codeBlock' ;
13
+
11
14
import './index.scss' ;
12
15
13
16
function Index ( ) {
@@ -33,6 +36,9 @@ function Index() {
33
36
< div className = { `demo-item ${ select === 'Input' ? 'active' : '' } ` } onClick = { ( ) => setSelect ( 'Input' ) } >
34
37
输入框
35
38
</ div >
39
+ < div className = { `demo-item ${ select === 'Popover' ? 'active' : '' } ` } onClick = { ( ) => setSelect ( 'Popover' ) } >
40
+ 气泡
41
+ </ div >
36
42
</ div >
37
43
) ;
38
44
} ;
@@ -45,6 +51,7 @@ function Index() {
45
51
{ select === 'Icon' ? < IconMdx components = { { Icon, CodeBlock } } /> : null }
46
52
{ select === 'Input' ? < InputMdx components = { { Input, CodeBlock } } /> : null }
47
53
{ select === 'Card' ? < CardMdx components = { { Card, CodeBlock } } /> : null }
54
+ { select === 'Popover' ? < PopoverMdx components = { { Popover, CodeBlock } } /> : null }
48
55
{ select === 'Draggable' ? < Draggable /> : null }
49
56
{ select === 'Skeleton' ? < SkeletonMdx components = { { Skeleton, CodeBlock } } /> : null }
50
57
</ div >
0 commit comments