✨(component): update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@layui/layui-vue",
|
||||
"version": "1.6.0-alpha.2",
|
||||
"version": "1.6.0",
|
||||
"author": "就眠儀式",
|
||||
"license": "MIT",
|
||||
"description": "a component library for Vue 3 base on layui-vue",
|
||||
|
||||
@@ -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: "",
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
|
||||
export interface LaySelectOptionProps {
|
||||
label: string;
|
||||
value: string | object;
|
||||
value: string | number |object;
|
||||
disabled?: boolean;
|
||||
keyword?: string;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ export default {
|
||||
import { useSlots } from "vue";
|
||||
|
||||
export interface LayTimelineItemProps {
|
||||
title: string;
|
||||
title?: string;
|
||||
simple?: boolean;
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user