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

修正拼写错误

old
宇天 2021-01-29 18:08:33 +08:00
parent c6837e79c0
commit 48a0001104
3 changed files with 8 additions and 5 deletions

View File

@ -44,7 +44,7 @@ code, pre, samp {font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
--color-teal-1: rgb(72, 201, 176);
--color-teal-2: rgb(26, 188, 156);
--color-teal-3: rgb(22, 160, 133);
/* sucess */
/* success */
--color-green-a: rgba(88, 214, 141, 0.5);
--color-green-1: rgb(88, 214, 141);
--color-green-2: rgb(46, 204, 113);

View File

@ -188,13 +188,13 @@
}
// --------
:host([type='sucess']:not([link])) button {
:host([type='success']:not([link])) button {
background: var(--color-green-2);
}
:host([type='success'][link]) button {
color: var(--color-green-2);
}
:host([type='sucess']:not([disabled]):not([loading]):not([link])) button {
:host([type='success']:not([disabled]):not([loading]):not([link])) button {
&:hover {
background: var(--color-green-1);
}
@ -202,7 +202,7 @@
background: var(--color-green-3);
}
}
:host([type='sucess']:focus-within:not([link])) {
:host([type='success']:focus-within:not([link])) {
box-shadow: 0 0 0 2px var(--color-green-a);
}

View File

@ -459,7 +459,7 @@ export default class Input {
mounted() {
var prepend = this.__PREPEND__.assignedNodes()
var append = this.__APPEND__.assignedNodes()
var { passwd } = this.props
this.stamp = 0
// 相同插槽, 只允许1个
@ -479,6 +479,8 @@ export default class Input {
// 键盘事件
this._handleSubmit = $.catch(this.__INPUT__, 'keydown', ev => {
let { passwd } = this.props
if (this.disabled || this.readOnly) {
return
}
@ -504,6 +506,7 @@ export default class Input {
// 输入状态事件
this._handleChange = $.bind(this.__INPUT__, 'input', ev => {
let now = Date.now()
let { lazy } = this.props
// 并发拦截
if (lazy && now - this.stamp < lazy) {