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

View File

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

View File

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