✨(component):
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@layui/layui-vue",
|
||||
"version": "1.4.14",
|
||||
"version": "1.5.0-alpha.2",
|
||||
"author": "就眠儀式",
|
||||
"license": "MIT",
|
||||
"description": "a component library for Vue 3 base on layui-vue",
|
||||
|
||||
@@ -44,6 +44,7 @@ const matchModule: string[] = [
|
||||
"dropdownMenuItem",
|
||||
"tag",
|
||||
"tagInput",
|
||||
"footer"
|
||||
];
|
||||
|
||||
export default (): UserConfigExport => {
|
||||
|
||||
@@ -44,6 +44,7 @@ export interface LaySelectProps {
|
||||
export interface SelectEmits {
|
||||
(e: "update:modelValue", value: string): void;
|
||||
(e: "change", value: string): void;
|
||||
(e: "search", value: string): void;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<LaySelectProps>(), {
|
||||
@@ -115,9 +116,9 @@ const selectedValue = computed({
|
||||
get() {
|
||||
return props.modelValue;
|
||||
},
|
||||
set(val) {
|
||||
emits("update:modelValue", val);
|
||||
emits("change", val);
|
||||
set(value) {
|
||||
emits("update:modelValue", value);
|
||||
emits("change", value);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -126,6 +127,7 @@ const multiple = computed(() => {
|
||||
});
|
||||
|
||||
const handleSearch = (value: string) => {
|
||||
emits("search", value);
|
||||
searchValue.value = value;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user