📝: 补充 tagInput 文档

This commit is contained in:
sight
2022-09-25 01:03:51 +08:00
parent ec5f744a2e
commit 34b7502231
2 changed files with 171 additions and 17 deletions

View File

@@ -30,7 +30,6 @@ export interface LayInputTagProps {
modelValue?: (string | number | TagData)[];
inputValue?: string;
disabled?: boolean;
disabledInput?: boolean;
placeholder?: string;
readonly?: boolean;
allowClear?: boolean;
@@ -39,15 +38,12 @@ export interface LayInputTagProps {
collapseTagsTooltip?: boolean;
size?: "lg" | "md" | "sm" | "xs";
tagProps?: LayTagProps;
disabledInput?: boolean;
}
const props = withDefaults(defineProps<LayInputTagProps>(), {
disabled: false,
disabledInput: false,
placeholder: "",
readonly: false,
allowClear: false,
minCollapsedNum: 3,
placeholder: undefined,
minCollapsedNum: 0,
size: "md",
});
@@ -223,7 +219,12 @@ defineExpose({
</LayTag>
</template>
<template v-if="computedTagData?.length != tagData?.length">
<LayToopTip :isDark="false" trigger="click" popperStyle="padding:6px">
<LayToopTip
:isDark="false"
trigger="hover"
popperStyle="padding:6px"
:disabled="!collapseTagsTooltip"
>
<LayTag v-bind="tagProps" key="more" :closable="false" :size="size">
+{{ moreCount }}...
</LayTag>