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