(component):

This commit is contained in:
就眠儀式
2022-09-28 22:55:53 +08:00
parent 62397afdd7
commit 46953e9a30
5 changed files with 13 additions and 10 deletions

View File

@@ -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",

View File

@@ -44,6 +44,7 @@ const matchModule: string[] = [
"dropdownMenuItem",
"tag",
"tagInput",
"footer"
];
export default (): UserConfigExport => {

View File

@@ -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;
};