@oldeng/v-simulator
v0.0.2
Published
``` npm install @oldeng/v-simulator ```
Downloads
1
Readme
#安装
npm install @oldeng/v-simulator
#使用
import { Spinners } from "v-simulator";
import "v-spinners/plugin/v-simulator.css";
| 参数 | 值 | 作用 | | ---- | ---- |----| | url | String | webapp加载地址 |
#使用示例
<template>
<div class="home">
<div class="container">
<div class="wraper">
<v-simulator :url="url"></v-simulator>
</div>
</div>
</div>
</template>
<script>
import VSimulator from '../../packages/src/index';
export default {
name: "Home",
data() {
return {
url: 'http://www.baidu.com'
}
},
components: {
VSimulator
}
};
</script>
<style lang="less" scoped>
h1 {
margin: 0;
}
.container {
.wraper {
margin: 0 auto;
width: 320px;
}
}
</style>