mirror of
https://github.com/youzan/vant.git
synced 2026-05-02 01:01:43 +08:00
feat(vant-cli): 支持通过 vant.config.js 配置是否显示页面右侧的手机模拟器
This commit is contained in:
@@ -8,12 +8,12 @@
|
||||
@switch-version="$emit('switch-version', $event)"
|
||||
/>
|
||||
<doc-nav :lang="lang" :nav-config="config.nav" />
|
||||
<doc-container :has-simulator="!!simulator">
|
||||
<doc-container :has-simulator="hasSimulator">
|
||||
<doc-content>
|
||||
<slot />
|
||||
</doc-content>
|
||||
</doc-container>
|
||||
<doc-simulator v-if="simulator" :src="simulator" />
|
||||
<doc-simulator v-if="hasSimulator" :src="simulator" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -39,6 +39,7 @@ export default {
|
||||
lang: String,
|
||||
versions: Array,
|
||||
simulator: String,
|
||||
hasSimulator: Boolean,
|
||||
langConfigs: Array,
|
||||
config: {
|
||||
type: Object,
|
||||
|
||||
Reference in New Issue
Block a user