✨(component): update
This commit is contained in:
parent
9ad7879323
commit
2a898b4ff9
@ -78,26 +78,24 @@
|
|||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layui-input-prefix {
|
.layui-input-clear,
|
||||||
display: flex;
|
.layui-input-password,
|
||||||
flex: none;
|
.layui-input-prefix,
|
||||||
align-items: center;
|
|
||||||
padding: 0 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.layui-input-suffix {
|
.layui-input-suffix {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: none;
|
flex: none;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 15px;
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layui-input-has-prefix {
|
||||||
|
input {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.layui-input-clear,
|
.layui-input-clear,
|
||||||
.layui-input-password {
|
.layui-input-password {
|
||||||
flex: none;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
padding-right: 10px;
|
|
||||||
color: rgba(0, 0, 0, 0.45);
|
color: rgba(0, 0, 0, 0.45);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ const showPassword = () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<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">
|
<div class="layui-input-prepend" v-if="slots.prepend">
|
||||||
<slot name="prepend"></slot>
|
<slot name="prepend"></slot>
|
||||||
</div>
|
</div>
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
.layui-select-content .layui-select-option.layui-this {
|
.layui-select-content .layui-select-option.layui-this {
|
||||||
background-color: var(--global-neutral-color-2);
|
background-color: var(--global-neutral-color-2);
|
||||||
color: var(--global-checked-color);
|
color: var(--global-checked-color);
|
||||||
font-size: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layui-select-search {
|
.layui-select-search {
|
||||||
|
@ -63,10 +63,10 @@ const slots = useSlots();
|
|||||||
const searchValue = ref("");
|
const searchValue = ref("");
|
||||||
const singleValue = ref("");
|
const singleValue = ref("");
|
||||||
const multipleValue = ref([]);
|
const multipleValue = ref([]);
|
||||||
|
const emits = defineEmits<SelectEmits>();
|
||||||
const openState: Ref<boolean> = ref(false);
|
const openState: Ref<boolean> = ref(false);
|
||||||
const selectedItem: Ref<any> = ref([]);
|
const selectedItem: Ref<any> = ref([]);
|
||||||
const options = ref<any>([]);
|
const options = ref<any>([]);
|
||||||
const emits = defineEmits<SelectEmits>();
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (slots.default) {
|
if (slots.default) {
|
||||||
@ -128,12 +128,12 @@ const handleSearch = (value: string) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleClear = () => {
|
const handleClear = () => {
|
||||||
if(multiple.value) {
|
if (multiple.value) {
|
||||||
selectedValue.value = [];
|
selectedValue.value = [];
|
||||||
} else {
|
} else {
|
||||||
selectedValue.value = "";
|
selectedValue.value = "";
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
provide("openState", openState);
|
provide("openState", openState);
|
||||||
provide("selectedItem", selectedItem);
|
provide("selectedItem", selectedItem);
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
flex: none;
|
flex: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding-right: 10px;
|
padding: 0 10px;
|
||||||
color: rgba(0, 0, 0, 0.45);
|
color: rgba(0, 0, 0, 0.45);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
@ -133,7 +133,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex: none;
|
flex: none;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 15px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layui-tag-input:hover,
|
.layui-tag-input:hover,
|
||||||
|
@ -34,6 +34,8 @@
|
|||||||
<li>[优化] page 组件 limit 逻辑, 切换 limit 后,如果页数大于当前页,保持当前页码不变,否则使用最大页码。</li>
|
<li>[优化] page 组件 limit 逻辑, 切换 limit 后,如果页数大于当前页,保持当前页码不变,否则使用最大页码。</li>
|
||||||
<li>[优化] input 组件 suffix 插槽与 allow-clear 启用时的显示顺序, clear > suffix。</li>
|
<li>[优化] input 组件 suffix 插槽与 allow-clear 启用时的显示顺序, clear > suffix。</li>
|
||||||
<li>[优化] tag 组件 border background height 等, 使其更贴合 layui 的设计规范。</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>
|
<li>[删除] select 组件 create 属性。</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user