This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

修复button无法自定义尺寸的bug;修复input框点击选中文本没的同步的bug;

old
宇天 2019-08-08 17:16:26 +08:00
parent b936200b45
commit 5e86c1e232
3 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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'))
}
})
}

View File

@ -101,7 +101,7 @@
font-size: 14px;
wc-icon {
--size: 16px;
--size: 14px;
margin: 0 3px;
color: nth($cgr, 1);
cursor: pointer;