|
14 | 14 | <!-- 水平对齐 --> |
15 | 15 | <Tooltip :content="$t('attrSeting.align.left')"> |
16 | 16 | <Button @click="left" size="small" type="text"> |
17 | | - <leftIcon class="icon"></leftIcon> |
| 17 | + <leftIcon /> |
18 | 18 | </Button> |
19 | 19 | </Tooltip> |
20 | 20 | <Tooltip :content="$t('attrSeting.align.centerX')"> |
21 | 21 | <Button @click="xcenter" size="small" type="text"> |
22 | | - <centerxIcon class="icon"></centerxIcon> |
| 22 | + <centerxIcon /> |
23 | 23 | </Button> |
24 | 24 | </Tooltip> |
25 | 25 | <Tooltip :content="$t('attrSeting.align.right')"> |
26 | 26 | <Button @click="right" size="small" type="text"> |
27 | | - <rightIcon class="icon"></rightIcon> |
| 27 | + <rightIcon /> |
28 | 28 | </Button> |
29 | 29 | </Tooltip> |
30 | 30 | <!-- 垂直对齐 --> |
31 | 31 | <Tooltip :content="$t('attrSeting.align.top')"> |
32 | 32 | <Button @click="top" size="small" type="text"> |
33 | | - <topIcon class="icon"></topIcon> |
| 33 | + <topIcon /> |
34 | 34 | </Button> |
35 | 35 | </Tooltip> |
36 | 36 | <Tooltip :content="$t('attrSeting.align.centerY')"> |
37 | 37 | <Button @click="ycenter" size="small" type="text"> |
38 | | - <centeryIcon class="icon"></centeryIcon> |
| 38 | + <centeryIcon /> |
39 | 39 | </Button> |
40 | 40 | </Tooltip> |
41 | 41 | <Tooltip :content="$t('attrSeting.align.bottom')"> |
42 | 42 | <Button @click="bottom" size="small" type="text"> |
43 | | - <bottomIcon class="icon"></bottomIcon> |
| 43 | + <bottomIcon /> |
44 | 44 | </Button> |
45 | 45 | </Tooltip> |
46 | 46 | <!-- 平均对齐 --> |
47 | 47 | <Tooltip :content="$t('attrSeting.align.averageX')"> |
48 | 48 | <Button @click="xequation" size="small" type="text"> |
49 | | - <sxIcon class="icon"></sxIcon> |
| 49 | + <sxIcon /> |
50 | 50 | </Button> |
51 | 51 | </Tooltip> |
52 | 52 | <Tooltip :content="$t('attrSeting.align.averageY')"> |
53 | 53 | <Button @click="yequation" size="small" type="text"> |
54 | | - <syIcon class="icon"></syIcon> |
| 54 | + <syIcon /> |
55 | 55 | </Button> |
56 | 56 | </Tooltip> |
57 | 57 | </div> |
|
62 | 62 | <script name="Align" setup> |
63 | 63 | import useSelect from '@/hooks/select'; |
64 | 64 |
|
65 | | -import leftIcon from '@/assets/icon/left.svg?component'; |
66 | | -import rightIcon from '@/assets/icon/right.svg?component'; |
| 65 | +import leftIcon from '@/assets/icon/left.svg'; |
| 66 | +import rightIcon from '@/assets/icon/right.svg'; |
67 | 67 |
|
68 | | -import topIcon from '@/assets/icon/top.svg?component'; |
69 | | -import bottomIcon from '@/assets/icon/bottom.svg?component'; |
| 68 | +import topIcon from '@/assets/icon/top.svg'; |
| 69 | +import bottomIcon from '@/assets/icon/bottom.svg'; |
70 | 70 |
|
71 | | -import sxIcon from '@/assets/icon/sx.svg?component'; |
72 | | -import syIcon from '@/assets/icon/sy.svg?component'; |
| 71 | +import sxIcon from '@/assets/icon/sx.svg'; |
| 72 | +import syIcon from '@/assets/icon/sy.svg'; |
73 | 73 |
|
74 | | -import centerxIcon from '@/assets/icon/centerx.svg?component'; |
75 | | -import centeryIcon from '@/assets/icon/centery.svg?component'; |
| 74 | +import centerxIcon from '@/assets/icon/centerx.svg'; |
| 75 | +import centeryIcon from '@/assets/icon/centery.svg'; |
76 | 76 |
|
77 | 77 | const { mixinState, canvasEditor } = useSelect(); |
78 | 78 |
|
|
0 commit comments