@@ -7,10 +7,10 @@ _为组件提供统一的全局化配置_
77## 何时使用
88
99- 当需要定制主题时
10- <!-- - 当需要为组件提供的全局配置时 -->
10+ <!-- - 当需要为组件提供全局配置时 -->
1111
1212<script setup lang =" ts " >
13- import { ref , h } from ' vue'
13+ import { ref } from ' vue'
1414import { format } from ' date-fns'
1515import { MessageOutlined , CommentOutlined , MinusOutlined , PlusOutlined } from ' @ant-design/icons-vue'
1616import type { ConfigProviderTheme , CarouselImage , SelectOption , StepsItem , TabsItem , TextScrollItem , UploadFileType } from ' vue-amazing-ui'
@@ -286,8 +286,8 @@ _`ConfigProvider` 使用 `Vue3` 的 `provide` / `inject` 特性,只需在应
286286 <Progress :percent="percent" />
287287 <Space align="center">
288288 <Progress type="circle" :percent="percent" />
289- <Button @click="onDecline(5)" size="large" :icon="() => h( MinusOutlined) ">Decline</Button>
290- <Button @click="onIncrease(5)" size="large" :icon="() => h( PlusOutlined) ">Increase</Button>
289+ <Button @click="onDecline(5)" size="large" :icon="MinusOutlined">Decline</Button>
290+ <Button @click="onIncrease(5)" size="large" :icon="PlusOutlined">Increase</Button>
291291 </Space>
292292 </Flex>
293293 </Card>
@@ -330,7 +330,7 @@ _`ConfigProvider` 使用 `Vue3` 的 `provide` / `inject` 特性,只需在应
330330
331331``` vue
332332<script setup lang="ts">
333- import { ref, h } from 'vue'
333+ import { ref } from 'vue'
334334import { format } from 'date-fns'
335335import { MessageOutlined, CommentOutlined, MinusOutlined, PlusOutlined } from '@ant-design/icons-vue'
336336import type { CarouselImage, SelectOption, StepsItem, TabsItem, TextScrollItem, UploadFileType } from 'vue-amazing-ui'
@@ -587,8 +587,8 @@ function onDecline(scale: number) {
587587 <Progress :percent="percent" />
588588 <Space align="center">
589589 <Progress type="circle" :percent="percent" />
590- <Button @click="onDecline(5)" size="large" :icon="() => h( MinusOutlined) ">Decline</Button>
591- <Button @click="onIncrease(5)" size="large" :icon="() => h( PlusOutlined) ">Increase</Button>
590+ <Button @click="onDecline(5)" size="large" :icon="MinusOutlined">Decline</Button>
591+ <Button @click="onIncrease(5)" size="large" :icon="PlusOutlined">Increase</Button>
592592 </Space>
593593 </Flex>
594594 </Card>
0 commit comments