Yao 451a3b19fc
[new feature] 增加 css 编译,方便组件书写 (#40)
* add src dir && add build

* add build watch && change dir name

* bower ignore package.json
2017-10-29 10:42:28 +08:00

16 lines
515 B
Plaintext

<template name="zan-switch">
<view
class="zan-switch zan-switch--{{ checked ? 'on' : 'off' }} {{ disabled ? 'zan-swtich--disabled' : '' }}"
data-checked="{{ checked }}"
data-loading="{{ loading }}"
data-disabled="{{ disabled }}"
data-component-id="{{ componentId }}"
bindtap="_handleZanSwitchChange"
>
<view class="zan-switch__circle">
<view hidden="{{ !loading }}" class="zan-switch__loading"></view>
</view>
<view class="zan-switch__bg"></view>
</view>
</template>