[Doc] add build-in style document (#633)

This commit is contained in:
neverland
2018-02-09 16:38:44 +08:00
committed by GitHub
parent 6ac8a8d2c0
commit 6f52b59d50
15 changed files with 216 additions and 33 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
<template>
<cell :title="title" class="van-switch-cell">
<cell :title="title" :border="border" class="van-switch-cell">
<van-switch v-bind="$props" @input="$emit('input', $event)" />
</cell>
</template>
@@ -20,6 +20,7 @@ export default create({
props: {
title: String,
value: Boolean,
border: Boolean,
loading: Boolean,
disabled: Boolean
},
+6 -12
View File
@@ -1,20 +1,14 @@
@import "../mixins/border-retina.css";
.van-hairline {
&,
&--top,
&--left,
&--right,
&--bottom,
&--top-bottom,
&--surround {
position: relative;
[class*='van-hairline'] {
position: relative;
&::after {
@mixin hairline;
}
&::after {
@mixin hairline;
}
}
.van-hairline {
&--top::after {
border-top-width: 1px;
}