Skip to content

Commit d29a3cd

Browse files
authored
chore(deps): update vitepress-demo-plugin to fix build docs error (#45)
1 parent 7a048a4 commit d29a3cd

34 files changed

+57
-98
lines changed

docs/demos/bubble/aborted.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
</template>
1313

1414
<script setup lang="ts">
15-
// import { TrBubble } from '@opentiny/tiny-robot'
15+
import { TrBubble } from '@opentiny/tiny-robot'
1616
import { IconAi } from '@opentiny/tiny-robot-svgs'
17+
import { TinySwitch } from '@opentiny/vue'
1718
import { h, ref } from 'vue'
1819
1920
const aiAvatar = h(IconAi, { style: { fontSize: '32px' } })

docs/demos/bubble/actions.vue

Lines changed: 0 additions & 44 deletions
This file was deleted.

docs/demos/bubble/avatar-and-placement.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</template>
1111

1212
<script setup lang="ts">
13-
// import { TrBubble } from '@opentiny/tiny-robot'
13+
import { TrBubble } from '@opentiny/tiny-robot'
1414
import { IconAi, IconUser } from '@opentiny/tiny-robot-svgs'
1515
import { h } from 'vue'
1616

docs/demos/bubble/basic.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
</template>
66

77
<script setup lang="ts">
8-
// import { TrBubble } from '@opentiny/tiny-robot'
8+
import { TrBubble } from '@opentiny/tiny-robot'
99
</script>

docs/demos/bubble/list.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
</template>
44

55
<script setup lang="ts">
6-
// import { TrBubbleList, TrFeedback} from '@opentiny/tiny-robot'
7-
import type { BubbleListProps, BubbleRoleConfig, TrFeedback } from '@opentiny/tiny-robot'
6+
import { BubbleListProps, BubbleRoleConfig, TrBubbleList, TrFeedback } from '@opentiny/tiny-robot'
87
import { IconAi, IconUser } from '@opentiny/tiny-robot-svgs'
9-
import { h, resolveComponent } from 'vue'
8+
import { h } from 'vue'
109
1110
const aiAvatar = h(IconAi, { style: { fontSize: '32px' } })
1211
const userAvatar = h(IconUser, { style: { fontSize: '32px' } })
@@ -53,9 +52,7 @@ const roles: Record<string, BubbleRoleConfig> = {
5352
return h('div', { style: { color: 'red' } }, bubbleProps.content)
5453
},
5554
footer: ({ bubbleProps }) => {
56-
// 由于vitepress-demo插件的问题,不能引入TrFeedback的值,这里使用resolveComponent
57-
// 正常可以直接使用h(TrFeedback)
58-
return h(resolveComponent('TrFeedback') as typeof TrFeedback, {
55+
return h(TrFeedback, {
5956
actions: [
6057
{ name: 'refresh', label: '刷新', icon: 'refresh' },
6158
{ name: 'copy', label: '复制', icon: 'copy' },

docs/demos/bubble/loading.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
</template>
1313

1414
<script setup lang="ts">
15-
// import { TrBubble } from '@opentiny/tiny-robot'
15+
import { TrBubble } from '@opentiny/tiny-robot'
1616
import { IconAi } from '@opentiny/tiny-robot-svgs'
17+
import { TinySwitch } from '@opentiny/vue'
1718
import { h, ref } from 'vue'
1819
1920
const aiAvatar = h(IconAi, { style: { fontSize: '32px' } })

docs/demos/bubble/markdown.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
</template>
44

55
<script setup lang="ts">
6-
// import { TrBubble } from '@opentiny/tiny-robot'
6+
import { TrBubble } from '@opentiny/tiny-robot'
77
import { IconAi } from '@opentiny/tiny-robot-svgs'
88
import { h } from 'vue'
99

docs/demos/bubble/max-width.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
</template>
1414

1515
<script setup lang="ts">
16-
// import { TrBubble } from '@opentiny/tiny-robot'
16+
import { TrBubble } from '@opentiny/tiny-robot'
1717
import { IconAi } from '@opentiny/tiny-robot-svgs'
18+
import { TinySlider } from '@opentiny/vue'
1819
import { h, ref } from 'vue'
1920
2021
const aiAvatar = h(IconAi, { style: { fontSize: '32px' } })

docs/demos/bubble/slots.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
</template>
2121

2222
<script setup lang="tsx">
23-
// import { TrBubble } from '@opentiny/tiny-robot'
24-
import { type FeedbackProps } from '@opentiny/tiny-robot'
23+
import { FeedbackProps, TrBubble, TrFeedback } from '@opentiny/tiny-robot'
2524
import { IconAi } from '@opentiny/tiny-robot-svgs'
2625
import { h } from 'vue'
2726

docs/demos/bubble/streaming.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</template>
66

77
<script setup lang="ts">
8-
// import { TrBubble } from '@opentiny/tiny-robot'
8+
import { TrBubble } from '@opentiny/tiny-robot'
99
import { IconAi } from '@opentiny/tiny-robot-svgs'
1010
import { h, ref } from 'vue'
1111

0 commit comments

Comments
 (0)