(component): update

This commit is contained in:
就眠儀式
2022-10-04 01:52:58 +08:00
parent 43d223653e
commit e0f1f0affe
10 changed files with 16 additions and 21 deletions

View File

@@ -86,8 +86,9 @@ export interface LayCascaderProps {
replaceFields?: { label: string; value: string; children: string };
allowClear?: boolean;
size?: "lg" | "md" | "sm" | "xs";
trigger: DropdownTrigger | DropdownTrigger[];
trigger?: DropdownTrigger | DropdownTrigger[];
}
const props = withDefaults(defineProps<LayCascaderProps>(), {
options: null,
modelValue: "",

View File

@@ -12,10 +12,10 @@ import "./index.less";
export interface LayCheckboxProps {
name?: string;
skin?: string;
value: string | object;
value: string | number | object;
label?: string;
isIndeterminate?: boolean;
modelValue?: boolean | Array<string | object>;
modelValue?: boolean | Array<string | number | object>;
disabled?: boolean;
size?: "lg" | "md" | "sm" | "xs";
}

View File

@@ -100,7 +100,7 @@ onMounted(() => {
[selectedValue, options],
() => {
if (multiple.value) {
multipleValue.value = selectedValue.value.map((value: any) => {
multipleValue.value = selectedValue.value?.map((value: any) => {
return options.value.find((item: any) => {
item.disabled == "" || item.disabled == true
? (item.closable = false)

View File

@@ -17,7 +17,7 @@ import {
export interface LaySelectOptionProps {
label: string;
value: string | object;
value: string | number |object;
disabled?: boolean;
keyword?: string;
}

View File

@@ -8,7 +8,7 @@ export default {
import { useSlots } from "vue";
export interface LayTimelineItemProps {
title: string;
title?: string;
simple?: boolean;
}

View File

@@ -61,7 +61,6 @@ import LayDropdownSubMenu from "./component/dropdownSubMenu/index";
import LayTab from "./component/tab/index";
import LayTabItem from "./component/tabItem/index";
import LayTree from "./component/tree/index";
import LayTreeSelect from "./component/treeSelect/index";
import LayTable from "./component/table/index";
import LayPage from "./component/page/index";
import LayTransfer from "./component/transfer/index";
@@ -180,8 +179,7 @@ const components: Record<string, Plugin> = {
LayAffix,
LaySpace,
LayTag,
LayTagInput,
LayTreeSelect,
LayTagInput
};
const install = (app: App, options?: InstallOptions): void => {
@@ -278,7 +276,6 @@ export {
LaySpace,
LayTag,
LayTagInput,
LayTreeSelect,
install,
};