mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
build: add files of vant-cli 2
This commit is contained in:
32
packages/vant-cli/site/desktop/App.vue
Normal file
32
packages/vant-cli/site/desktop/App.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div class="app">
|
||||
<van-doc :config="config" :simulator="simulator">
|
||||
<router-view />
|
||||
</van-doc>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { config } from '../../dist/desktop-config';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
config,
|
||||
simulator: `mobile.html${location.hash}`
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
.van-doc-intro {
|
||||
padding-top: 20px;
|
||||
font-family: "Dosis", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
|
||||
text-align: center;
|
||||
|
||||
p {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user