(component): update

This commit is contained in:
就眠儀式 2022-09-28 11:00:04 +08:00
parent 9ad7879323
commit 2a898b4ff9
6 changed files with 19 additions and 19 deletions

View File

@ -78,26 +78,24 @@
background-color: white;
}
.layui-input-prefix {
display: flex;
flex: none;
align-items: center;
padding: 0 15px;
}
.layui-input-clear,
.layui-input-password,
.layui-input-prefix,
.layui-input-suffix {
display: flex;
flex: none;
align-items: center;
padding: 0 15px;
padding: 0 10px;
}
.layui-input-has-prefix {
input {
padding: 0;
}
}
.layui-input-clear,
.layui-input-password {
flex: none;
display: flex;
align-items: center;
padding-right: 10px;
color: rgba(0, 0, 0, 0.45);
}

View File

@ -135,7 +135,7 @@ const showPassword = () => {
</script>
<template>
<div class="layui-input" :size="size">
<div class="layui-input" :class="{'layui-input-has-prefix': slots.prefix || props.prefixIcon}" :size="size">
<div class="layui-input-prepend" v-if="slots.prepend">
<slot name="prepend"></slot>
</div>

View File

@ -49,7 +49,7 @@
.layui-select-content .layui-select-option.layui-this {
background-color: var(--global-neutral-color-2);
color: var(--global-checked-color);
font-size: 700;
font-weight: 700;
}
.layui-select-search {

View File

@ -63,10 +63,10 @@ const slots = useSlots();
const searchValue = ref("");
const singleValue = ref("");
const multipleValue = ref([]);
const emits = defineEmits<SelectEmits>();
const openState: Ref<boolean> = ref(false);
const selectedItem: Ref<any> = ref([]);
const options = ref<any>([]);
const emits = defineEmits<SelectEmits>();
onMounted(() => {
if (slots.default) {
@ -133,7 +133,7 @@ const handleClear = () => {
} else {
selectedValue.value = "";
}
}
};
provide("openState", openState);
provide("selectedItem", selectedItem);

View File

@ -50,7 +50,7 @@
flex: none;
display: flex;
align-items: center;
padding-right: 10px;
padding: 0 10px;
color: rgba(0, 0, 0, 0.45);
cursor: pointer;
visibility: hidden;
@ -133,7 +133,7 @@
display: flex;
flex: none;
align-items: center;
padding: 0 15px;
padding: 0 10px;
}
.layui-tag-input:hover,

View File

@ -34,6 +34,8 @@
<li>[优化] page 组件 limit 逻辑, 切换 limit 后,如果页数大于当前页,保持当前页码不变,否则使用最大页码。</li>
<li>[优化] input 组件 suffix 插槽与 allow-clear 启用时的显示顺序, clear > suffix。</li>
<li>[优化] tag 组件 border background height 等, 使其更贴合 layui 的设计规范。</li>
<li>[优化] input 组件 suffix prefix password clear 左右布局, 由 15px 调整至 10px。</li>
<li>[优化] input 组件 prefix 与 prefix-icon 存在时, 取消左侧边距缩进。</li>
<li>[删除] select 组件 create 属性。</li>
</ul>
</li>