(component): 发布 1.6.5 版本

This commit is contained in:
就眠儀式
2022-10-11 01:04:23 +08:00
parent daf5264f35
commit d7a0ab1832
7 changed files with 12 additions and 9 deletions

View File

@@ -16,7 +16,7 @@
:prefix-icon="prefixIcon"
:suffix-icon="suffixIcon"
:disabled="disabled"
v-model="(dateValue as string)"
v-model="dateValue"
v-if="!range"
@change="onChange"
:allow-clear="!disabled && allowClear"

View File

@@ -85,7 +85,7 @@ const getOption = (nodes: VNode[]) => {
?.map((item: VNode) => {
let component = item.type as Component;
if (component.name === LaySelectOption.name) {
if(item.children) {
if (item.children) {
// @ts-ignore
item.props.label = item.children.default()[0].children;
}

View File

@@ -13,7 +13,7 @@ import {
WritableComputedRef,
Ref,
onMounted,
useSlots
useSlots,
} from "vue";
export interface LaySelectOptionProps {
@@ -30,7 +30,9 @@ const props = withDefaults(defineProps<LaySelectOptionProps>(), {
});
const openState: Ref<boolean> = inject("openState") as Ref<boolean>;
const selectedValue: WritableComputedRef<any> = inject("selectedValue") as WritableComputedRef<any>;
const selectedValue: WritableComputedRef<any> = inject(
"selectedValue"
) as WritableComputedRef<any>;
const searchValue: Ref<string> = inject("searchValue") as Ref<string>;
const selectRef: Ref<HTMLElement> = inject("selectRef") as Ref<HTMLElement>;
const multiple: ComputedRef = inject("multiple") as ComputedRef;