JSFiddle - React, Tailwind, and code Playground
by core972
HTML
<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="//unpkg.com/[email protected]/lib/index.js"></script>
<div id="app">
<template>
<div class="block">
<span class="demonstration">Breakpoints not displayed</span>
<el-slider v-model="value6" :step="10">
</el-slider>
</div>
<div class="block">
<span class="demonstration">Breakpoints displayed</span>
<el-slider v-model="value7" :step="5" show-stops :max="50">
</el-slider>
</div>
<div class="element" :style="{padding:value7+'px'}">
Le texte de mon élément
</div>
</template>
</div>
SCSS
@import url("//unpkg.com/[email protected]/lib/theme-chalk/index.css");
.el-slider{
max-width:200px
}
.element{
position: absolute;
top:350px;
left:350px;
height:145px;
width:320px;
background-color:#999;
color:#fff;
font-size:20px;
}
Babel + JSX
var Main = {
data() {
return {
value6: 0,
value7: 0
}
}
}
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')