radio component

This commit is contained in:
cookfront
2017-02-28 16:32:26 +08:00
parent 5de064caf4
commit f2260deaa3
4 changed files with 121 additions and 12 deletions
+5 -1
View File
@@ -11,7 +11,11 @@
type="radio"
class="z-radio__control"
:disabled="isDisabled">
<span class="z-radio__circle"></span>
<span class="zui-icon" :class="{
'zui-icon-checked': currentValue === name,
'zui-icon-check': currentValue !== name
}">
</span>
</span>
<span class="z-radio__label">
<slot></slot>