chore: 升级vue^3.4.0,整体性能得到不错的提升

This commit is contained in:
xiaoxian521
2023-12-29 23:11:23 +08:00
parent f7883606c8
commit 50a4b177d4
4 changed files with 195 additions and 219 deletions

View File

@@ -7,15 +7,8 @@ defineOptions({
name: "ReAnimateSelector"
});
const props = defineProps({
modelValue: {
require: false,
type: String
}
});
const emit = defineEmits<{ (e: "update:modelValue", v: string) }>();
const inputValue = defineModel({ type: String });
const inputValue = toRef(props, "modelValue");
const animatesList = ref(animates);
const copyAnimatesList = cloneDeep(animatesList);
@@ -47,11 +40,11 @@ const animateStyle = computed(
);
function onChangeIcon(animate: string) {
emit("update:modelValue", animate);
inputValue.value = animate;
}
function onClear() {
emit("update:modelValue", "");
inputValue.value = "";
}
function filterMethod(value: any) {