✨(component): 发布 1.6.5 版本
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user