: update

This commit is contained in:
就眠儀式 2022-06-26 17:24:26 +08:00
parent 60c1dbff95
commit 129106705e
2 changed files with 9 additions and 11 deletions

View File

@ -36,7 +36,7 @@ const matchModule: string[] = [
"button",
"tooltip",
"page",
"scroll"
"scroll",
];
export default (): UserConfigExport => {

View File

@ -67,8 +67,8 @@ const open = function () {
}
openState.value = !openState.value;
nextTick(() => {
multipleSearchInputRef.value?.querySelector('input')?.focus();
})
multipleSearchInputRef.value?.querySelector("input")?.focus();
});
};
const emit = defineEmits(["update:modelValue", "change", "search", "create"]);
@ -244,19 +244,17 @@ provide("keyword", txt);
<!-- 下拉内容 -->
<dl class="layui-anim layui-anim-upbit">
<div
ref="multipleSearchInputRef"
class="layui-multiple-select-input">
<lay-input
v-if="multiple"
<div ref="multipleSearchInputRef" class="layui-multiple-select-input">
<lay-input
v-if="multiple"
v-model="value"
@input="input = true"
@blur="input = false"
:placeholder="placeholder"
prefix-icon="layui-icon-search"
allow-clear
prefix-icon="layui-icon-search"
allow-clear
autocomplete
>
>
</lay-input>
</div>
<template v-if="!multiple && showEmpty && !props.create">