| | |
| | | */ |
| | | |
| | | <template> |
| | | <view class="c-select"> |
| | | <view |
| | | class="c-select" |
| | | :class="readOnly ? 'read-only':''" |
| | | > |
| | | <!-- 下拉选择模式 --> |
| | | <view |
| | | v-if="!selectByPage" |
| | |
| | | :placeholder="placeholder" |
| | | :value="selected" |
| | | > |
| | | <view class="at-icon at-icon-chevron-right" /> |
| | | <view |
| | | v-show="!readOnly" |
| | | class="at-icon at-icon-chevron-right" |
| | | /> |
| | | </AtInput> |
| | | </picker> |
| | | <view class="c-select-slot"> |
| | |
| | | :placeholder="placeholder" |
| | | :value="choose.name" |
| | | > |
| | | <view class="at-icon at-icon-chevron-right" /> |
| | | <view |
| | | v-show="!readOnly" |
| | | class="at-icon at-icon-chevron-right" |
| | | /> |
| | | </AtInput> |
| | | </view> |
| | | </view> |
| | |
| | | selectByPage: String, |
| | | // 页面模式下,选择完成后的回调 |
| | | onSelectFromPage: Function, |
| | | // 只读模式 |
| | | readOnly: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |