label 表单组件标签

    示例

    1. Page({
    2. data: {
    3. radioItems: [
    4. {name: 'CHN', value: '中国', checked: 'true'},
    5. {name: 'USA', value: '美国'}
    6. }
    7. });
    1. data: {
    2. checkboxItems: [
    3. {name: 'CHN', value: '中国', checked: 'true'},
    4. {name: 'USA', value: '美国'}
    5. ]
    6. }
    7. });
    1. <view class="wrap">
    2. <view class="card-area">
    3. <label class="label border-bottom">
    4. <text>智能小程序</text>
    5. </label>
    6. <label class="label border-bottom">
    7. <radio/>
    8. <text>智能小程序</text>
    9. </label>
    10. <label class="label border-bottom">
    11. <switch/>
    12. <text style="vertical-align:.1rem">智能小程序</text>
    13. </label>