mand-mobile/components/ruler/test/cases/demo0.vue

37 lines
647 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="md-example-child md-example-child-single-component">
<p>当前值{{ value }}</p>
<div class="container">
<md-ruler
:scope="scope"
:step="100"
:unit="10"
v-model="value"
></md-ruler>
</div>
</div>
</template>
<script>
import {Ruler} from 'mand-mobile'
export default {
name: 'ruler-demo',
components: {
[Ruler.name]: Ruler,
},
data() {
return {
value: 1000,
scope: [1000, 2000],
}
},
}
</script>
<style lang="stylus" scoped>
.md-example-child-single-component
.container
margin 0 auto
width 640px
</style>