: 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", "button",
"tooltip", "tooltip",
"page", "page",
"scroll" "scroll",
]; ];
export default (): UserConfigExport => { export default (): UserConfigExport => {

View File

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