update 选择用户组件调整
This commit is contained in:
@@ -6,7 +6,11 @@
|
||||
:autoSize="true"
|
||||
:rows="1"
|
||||
readOnly
|
||||
class="user-input"
|
||||
:disabled="disabled"
|
||||
:class="{
|
||||
'input-readonly': !disabled,
|
||||
'user-input': showBtn
|
||||
}"
|
||||
:placeholder="placeholder"
|
||||
:value="checkedValue"
|
||||
@click="selectClick"
|
||||
@@ -85,6 +89,10 @@ export default {
|
||||
methods: {
|
||||
selectClick () {
|
||||
console.log('点击了')
|
||||
// 禁用后不弹框
|
||||
if (this.disabled) {
|
||||
return
|
||||
}
|
||||
this.$refs.selectModal.open(this.value)
|
||||
},
|
||||
selectChange (ids) {
|
||||
@@ -119,7 +127,7 @@ export default {
|
||||
}
|
||||
|
||||
// 因为需要加title,所以不能把鼠标事件去掉
|
||||
/deep/ .ant-input-disabled {
|
||||
/deep/ .input-readonly.ant-input-disabled {
|
||||
background: #fff;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
cursor: default;
|
||||
|
||||
Reference in New Issue
Block a user