(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

@@ -1,6 +1,6 @@
{
"name": "@layui/layui-vue",
"version": "1.5.0-alpha.2",
"version": "1.5.0-alpha.4",
"author": "就眠儀式",
"license": "MIT",
"description": "a component library for Vue 3 base on layui-vue",

View File

@@ -44,7 +44,7 @@ const matchModule: string[] = [
"dropdownMenuItem",
"tag",
"tagInput",
"footer"
"footer",
];
export default (): UserConfigExport => {

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"
>