File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,9 @@ const receiveMessage = ({ data }) => {
40
40
if (! [' tiny-vue-site' ].includes (from )) {
41
41
return
42
42
}
43
- showLoading ()
44
43
const demoPath = ` ${component }/${demo } `
45
44
getComponent (demoPath ).then ((cmp ) => {
46
45
showComponent .value = cmp
47
- closeLoading ()
48
46
})
49
47
}
50
48
Original file line number Diff line number Diff line change 168
168
</div >
169
169
</tiny-tab-item >
170
170
</tiny-tabs >
171
- </ div >
172
- < div v-if = " demoConfig.isMobile " class = " mobile-view-container " >
173
- <!-- 移动端展示内容 -- >
174
- <div class =" phone -container" >
175
- < div class = " mobile-iframe-container " >
176
- <iframe ref = " iframeRef " width = " 100% " height = " 100% " :src = " state.iframeUrl " frameborder = " 0 " ></ iframe >
171
+ < div v-if = " demoConfig.isMobile " class = " mobile-view-container " >
172
+ <!-- 移动端展示内容 -- >
173
+ < div class = " phone-container " >
174
+ <div class =" mobile-iframe -container" >
175
+ < iframe ref = " iframeRef " width = " 100% " height = " 100% " :src = " state.iframeUrl " frameborder = " 0 " ></ iframe >
176
+ </ div >
177
177
</div >
178
178
</div >
179
179
</div >
180
+
180
181
<!-- demo与api目录锚点 -->
181
182
<div class =" cmp-page-anchor catalog" v-if =" state.currAnchorLinks.length" >
182
183
<tiny-anchor
Original file line number Diff line number Diff line change 55
55
</div >
56
56
<div v-else-if =" demoConfig.isMobile" class =" mobile-demo-container" >
57
57
<div class =" mobile-view-btn" >
58
- <tiny-mobile-button type =" secondary" @click =" openIframe(demo)" >{{
59
- i18nByKey('yan-shi')
60
- }}</tiny-mobile-button >
58
+ <tiny-button tiny_mode =" pc" @click =" openIframe(demo)" >{{ i18nByKey('yan-shi') }}</tiny-button >
61
59
</div >
62
60
</div >
63
61
<div v-else class =" pc-demo-container" >
@@ -94,7 +92,6 @@ import demoConfig from '@demos/config.js'
94
92
import { useApiMode , useTemplateMode } from ' @/tools'
95
93
import useTheme from ' @/tools/useTheme'
96
94
import AsyncHighlight from ' ./async-highlight.vue'
97
- import { Button as TinyMobileButton } from ' @opentiny/vue-mobile'
98
95
99
96
const props = defineProps ({
100
97
demo: {
You can’t perform that action at this time.
0 commit comments