| | |
| | | @import "../../common/sassMixin"; |
| | | |
| | | .c-input-scan-code { |
| | | &.read-only { |
| | | pointer-events: none; |
| | | background-color: #fafafa; |
| | | } |
| | | .c-input-scan-space { |
| | | width: 140px; |
| | | height: 48px; |
| | |
| | | */ |
| | | |
| | | <template> |
| | | <view class="c-input-scan-code"> |
| | | <view |
| | | class="c-input-scan-code" |
| | | :class="[readOnly ? 'read-only':'']" |
| | | > |
| | | <AtInput |
| | | :name="itemRes.name" |
| | | :title="itemRes.label" |
| | |
| | | class="c-input-scan-btn" |
| | | size="small" |
| | | type="primary" |
| | | :disabled="readOnly" |
| | | :onClick="evt => handleScan()" |
| | | > |
| | | <text v-show="!scaning">扫描</text> |
| | |
| | | itemRes: Object, |
| | | // 占位提示 |
| | | placeholder: String, |
| | | // 只读模式 |
| | | readOnly: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | // 由业务层调用app |
| | | onScaning: Function, |
| | | // 失去焦点回调 |