(component): 优化文档体验

This commit is contained in:
就眠儀式
2022-09-28 23:59:36 +08:00
parent 46953e9a30
commit 645389dac8
5 changed files with 21 additions and 14 deletions

View File

@@ -17,6 +17,7 @@ import {
Component,
watch,
} from "vue";
import { LayIcon } from "@layui/icons-vue";
import LayInput from "../input/index.vue";
import LayTagInput from "../tagInput/index.vue";
import LayDropdown from "../dropdown/index.vue";
@@ -57,9 +58,9 @@ const props = withDefaults(defineProps<LaySelectProps>(), {
minCollapsedNum: 3,
disabled: false,
multiple: false,
size: "md",
allowClear: false,
showSearch: false,
size: "md"
});
const slots = useSlots();
@@ -162,6 +163,7 @@ provide("multiple", multiple);
:collapseTagsTooltip="collapseTagsTooltip"
:minCollapsedNum="minCollapsedNum"
:disabledInput="true"
:size="size"
@clear="handleClear"
>
<template #suffix>
@@ -177,6 +179,7 @@ provide("multiple", multiple);
:placeholder="placeholder"
:allow-clear="allowClear"
:readonly="!showSearch"
:size="size"
@Input="handleSearch"
@clear="handleClear"
>