(button): 增加所有类型按钮 active 状态样式

This commit is contained in:
就眠儀式 2022-11-02 11:07:12 +08:00
parent 2a5bd7d1fc
commit cceeb03c9f
3 changed files with 13 additions and 10 deletions

View File

@ -58,16 +58,13 @@
}
.layui-btn:hover {
color: #333;
}
.layui-btn-warm:hover,
.layui-btn-normal:hover,
.layui-btn-primary:hover,
.layui-btn-danger:hover {
opacity: 0.8;
filter: alpha(opacity=80);
color: white;
}
.layui-btn:active {
opacity: 1;
filter: alpha(opacity=100);
}
.layui-btn-lg {

View File

@ -175,7 +175,10 @@ const showPassword = () => {
<password-icon v-if="isPassword"></password-icon>
<un-password-icon v-else></un-password-icon>
</span>
<span class="layui-input-clear" v-if="allowClear && hasContent && !disabled">
<span
class="layui-input-clear"
v-if="allowClear && hasContent && !disabled"
>
<lay-icon type="layui-icon-close-fill" @click.stop="onClear"></lay-icon>
</span>
<span class="layui-input-suffix" v-if="slots.suffix || props.suffixIcon">

View File

@ -319,7 +319,10 @@ defineExpose({
/>
</template>
</span>
<span v-if="allowClear && tagData?.length && !disabled" class="layui-tag-input-clear">
<span
v-if="allowClear && tagData?.length && !disabled"
class="layui-tag-input-clear"
>
<lay-icon type="layui-icon-close-fill" @click.stop="handleClearClick" />
</span>
<span class="layui-tag-input-suffix" v-if="$slots.suffix">