补充部分组件描述

This commit is contained in:
就眠儀式
2022-02-06 03:19:24 +08:00
parent a74c559fdd
commit 6e568f2d2f
94 changed files with 352 additions and 259 deletions

View File

@@ -20,6 +20,16 @@ import {
import { useClickOutside } from "@layui/hooks-vue";
import { SelectItem } from "../../types";
export interface LaySelectProps {
modelValue?: string | number | [] | null;
name?: string;
placeholder?: string;
disabled?: boolean;
showEmpty?: boolean;
emptyMessage?: string;
multiple?: boolean;
}
const selectRef = ref<null | HTMLElement>(null);
const isClickOutside = useClickOutside(selectRef);
@@ -30,15 +40,7 @@ watch(isClickOutside, () => {
});
const props = withDefaults(
defineProps<{
modelValue?: string | number | [] | null;
name?: string;
placeholder?: string;
disabled?: boolean;
showEmpty?: boolean;
emptyMessage?: string;
multiple?: boolean;
}>(),
defineProps<LaySelectProps>(),
{
modelValue: null,
placeholder: "请选择",

View File