1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <import-sjs
- from="../../_util/arrow.sjs"
- name="arrowUtil" />
- <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>
- <ant-picker
- cancelText="{{ cancelText }}"
- okText="{{ okText }}"
- placeholder="{{ placeholder }}"
- maskClosable="{{ maskClosable }}"
- maskStyle="{{ maskStyle }}"
- popClassName="{{ popClassName }}"
- style="{{ style }}"
- popStyle="{{ popStyle }}"
- animationType="{{ animationType }}"
- disabled="{{ disabled }}"
- title="{{ title }}"
- maskClassName="{{ maskClassName }}"
- indicatorStyle="{{ indicatorStyle }}"
- indicatorClassName="{{ indicatorClassName }}"
- options="{{ options }}"
- value="{{ formData.value }}"
- onOk="onOk"
- onChange="onChange"
- onCancel="onDismissPicker"
- onVisibleChange="onVisibleChange"
- onFormat="{{ handleFormat ? handleFormat : 'handleFormat' }}">
- <slot
- name="title"
- slot="title" />
- <slot
- name="content"
- slot="content" />
- <ant-icon
- a:if="{{ arrowUtil.getArrow(arrow) }}"
- className="ant-form-picker-arrow"
- type="{{ arrowUtil.getArrow(arrow) }}"
- slot="suffix" />
- </ant-picker>
- </view>
- <view
- a:if="{{ !tooltip }}"
- slot="tooltip">
- <slot name="tooltip" />
- </view>
- <view slot="extra">
- <slot name="extra">{{ extra }}</slot>
- </view>
- <view
- slot="header"
- slot-scope="item">
- <slot
- name="header"
- errors="{{ item.errors }}"
- status="{{ item.status }}" />
- </view>
- <view
- slot="footer"
- slot-scope="item">
- <slot
- name="footer"
- errors="{{ item.errors }}"
- status="{{ item.status }}" />
- </view>
- </form-item>
|