<wux-cell
    wux-class="{{ classes.cell }}"
    prefixCls="{{ cellPrefixCls }}"
    thumb="{{ context.iconPosition === 'right' ? thumb : '' }}"
    title="{{ title }}"
    label="{{ label }}"
    hasLine="{{ !context.hasFieldDecorator ? (hasLine || context.hasLine) && !isLast : false }}"
    disabled="{{ disabled || context.disabled }}"
    hoverClass="{{ !(readOnly || context.readOnly || context.hasFieldDecorator) ? 'default' : 'none' }}"
    wrapStyle="{{ !context.hasFieldDecorator ? wrapStyle : { paddingLeft: 0, paddingRight: 0, ...wrapStyle } }}"
    wx:if="{{ context.withListComponent }}"
>
    <block wx:if="{{ context.iconPosition === 'right' }}">
        <wux-selectable
            slot="footer"
            wux-class="{{ classes.selectable }}"
            prefixCls="{{ selectablePrefixCls }}"
            type="radio"
            value="{{ value }}"
            checked="{{ inputChecked }}"
            color="{{ color }}"
            disabled="{{ disabled || context.disabled }}"
            readOnly="{{ readOnly || context.readOnly }}"
            iconSize="{{ context.iconSize }}"
            iconOn="{{ context.iconOn }}"
            iconOff="{{ context.iconOff }}"
            controlled
            bind:change="radioChange"
        />
    </block>
    <block wx:else>
        <view slot="header" class="{{ classes.iconPosition }}">
            <view class="{{ classes.iconSelectable }}">
                <wux-selectable
                    wux-class="{{ classes.selectable }}"
                    prefixCls="{{ selectablePrefixCls }}"
                    type="radio"
                    value="{{ value }}"
                    checked="{{ inputChecked }}"
                    color="{{ color }}"
                    disabled="{{ disabled || context.disabled }}"
                    readOnly="{{ readOnly || context.readOnly }}"
                    iconSize="{{ context.iconSize }}"
                    iconOn="{{ context.iconOn }}"
                    iconOff="{{ context.iconOff }}"
                    controlled
                    bind:change="radioChange"
                />
            </view>
            <block wx:if="{{ thumb }}">
                <image class="{{ classes.thumb }}" src="{{ thumb }}" />
            </block>
        </view>
    </block>
</wux-cell>
<block wx:else>
    <wux-selectable
        wux-class="{{ classes.selectableH }}"
        prefixCls="{{ selectablePrefixCls }}"
        type="radio"
        value="{{ value }}"
        checked="{{ inputChecked }}"
        color="{{ color }}"
        disabled="{{ disabled || context.disabled }}"
        readOnly="{{ readOnly || context.readOnly }}"
        iconSize="{{ context.iconSize }}"
        iconOn="{{ context.iconOn }}"
        iconOff="{{ context.iconOff }}"
        controlled
        bind:change="radioChange"
    >
        {{ title }}
    </wux-selectable>
</block>
