🌀(component): 优化 input 组件 clear 与 password 背景色

This commit is contained in:
就眠儀式
2022-08-13 15:28:19 +08:00
parent 73d3bf90de
commit 1e5812e6e7
7 changed files with 27 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@layui/layui-vue",
"version": "1.4.0-alpha.1",
"version": "1.4.0-alpha.3",
"author": "就眠儀式",
"license": "MIT",
"description": "a component library for Vue 3 base on layui-vue",

View File

@@ -12,11 +12,11 @@
<lay-input
:name="name"
:readonly="readonly"
v-model="dateValue"
:placeholder="placeholder"
:prefix-icon="prefixIcon"
:suffix-icon="suffixIcon"
:suffix-icon="suffixIcon"
:disabled="disabled"
v-model="dateValue"
v-if="!range"
@change="onChange"
:allow-clear="!disabled && allowClear"
@@ -146,7 +146,7 @@ const props = withDefaults(defineProps<LayDatePickerProps>(), {
allowClear: false,
size: "md",
prefixIcon: "layui-icon-date",
suffixIcon: ""
suffixIcon: "",
});
const dropdownRef = ref(null);

View File

@@ -71,8 +71,10 @@
border-color: #d2d2d2 !important;
}
.layui-input-clear,
.layui-input-prefix,
.layui-input-suffix {
.layui-input-suffix,
.layui-input-password {
background-color: white;
}
@@ -90,8 +92,8 @@
padding: 0 15px;
}
.layui-input-password,
.layui-input-clear {
.layui-input-clear,
.layui-input-password {
flex: none;
display: flex;
align-items: center;

View File

@@ -614,7 +614,7 @@ const renderTotalRowCell = (column: any) => {
onBeforeUnmount(() => {
window.onresize = null;
})
});
</script>
<template>

View File

@@ -5,6 +5,7 @@ export default {
</script>
<script setup lang="ts">
import { LayIcon } from "@layui/icons-vue";
import { computed } from "vue";
import "./index.less";