修复button无法自定义尺寸的bug;修复input框点击选中文本没的同步的bug;
parent
b936200b45
commit
5e86c1e232
|
@ -19,7 +19,8 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
min-width: 32px;
|
||||
height: 32px;
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
padding: 0 5px;
|
||||
margin: auto;
|
||||
font-size: 14px;
|
||||
|
|
|
@ -390,7 +390,6 @@ export default class Input {
|
|||
// 键盘事件
|
||||
this._handleSubmit = ebind(this.__INPUT__, 'keydown', ev => {
|
||||
if (this.disabled || this.readonly) {
|
||||
ev.stopPropagation()
|
||||
return
|
||||
}
|
||||
// up: 38, down: 40
|
||||
|
@ -466,6 +465,7 @@ export default class Input {
|
|||
this._handleSelect = bind(this.__LIST__, 'click', ev => {
|
||||
if (ev.target.tagName === 'LI') {
|
||||
this._fetchSelect(ev.target.dataset.idx, ev)
|
||||
this.dispatchEvent(new CustomEvent('input'))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
font-size: 14px;
|
||||
|
||||
wc-icon {
|
||||
--size: 16px;
|
||||
--size: 14px;
|
||||
margin: 0 3px;
|
||||
color: nth($cgr, 1);
|
||||
cursor: pointer;
|
||||
|
|
Reference in New Issue