Merge branch 'master' of ssh://dev.zhiheiot.com:29418/mob-components
| | |
| | | <template> |
| | | <view |
| | | class="c-date-picker" |
| | | :class="readyOnly ? 'read-only':''" |
| | | :class="readOnly ? 'read-only':''" |
| | | > |
| | | <CDateRangeAction |
| | | v-if="mode==='dateRange'" |
| | |
| | | :placeholder="placeholder" |
| | | > |
| | | <view |
| | | v-show="!readyOnly" |
| | | v-show="!readOnly" |
| | | class="at-icon at-icon-chevron-right" |
| | | /> |
| | | </AtInput> |
| | |
| | | :placeholder="placeholder" |
| | | > |
| | | <view |
| | | v-show="!readyOnly" |
| | | v-show="!readOnly" |
| | | class="at-icon at-icon-chevron-right" |
| | | /> |
| | | </AtInput> |
| | |
| | | :placeholder="placeholder" |
| | | > |
| | | <view |
| | | v-show="!readyOnly" |
| | | v-show="!readOnly" |
| | | class="at-icon at-icon-chevron-right" |
| | | /> |
| | | </AtInput> |
| | |
| | | // 结束日期 |
| | | limitEnd: String, |
| | | // 是否只读 |
| | | readyOnly: { |
| | | readOnly: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | |
| | | .c-date-picker { |
| | | &.read-only { |
| | | pointer-events: none; |
| | | background-color: #fafafa; |
| | | } |
| | | .at-input__input { |
| | | .weui-input { |
| | |
| | | */ |
| | | |
| | | <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 { |
| | |
| | | @import "../../common/sassMixin"; |
| | | |
| | | .c-select { |
| | | &.read-only { |
| | | pointer-events: none; |
| | | background-color: #fafafa; |
| | | } |
| | | .at-input__input { |
| | | .weui-input { |
| | | pointer-events: none; |