12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <form-item
- className="{{ className }}"
- position="{{ position }}"
- label="{{ label }}"
- labelWidth="{{ labelWidth }}"
- status="{{ formData.status }}"
- errors="{{ formData.errors }}"
- tooltip="{{ tooltip }}"
- required="{{ formData.required }}"
- requiredMark="{{ requiredMark }}"
- validateStatus="{{ validateStatus }}"
- help="{{ help }}">
- <view>
- <switch
- className="{{ switchClassName }}"
- checked="{{ formData.value }}"
- checkedText="{{ checkedText }}"
- color="{{ color }}"
- disabled="{{ disabled }}"
- uncheckedText="{{ uncheckedText }}"
- size="{{ size }}"
- style="{{ switchStyle }}"
- onChange="onChange" />
- </view>
- <view
- a:if="{{ !tooltip }}"
- slot="tooltip">
- <slot name="tooltip" />
- </view>
- <view slot="extra">
- <slot name="extra">{{ extra }}</slot>
- </view>
- <view slot="header">
- <slot name="header" />
- </view>
- <view slot="footer">
- <slot name="footer" />
- </view>
- </form-item>
|