mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-21 14:13:36 +08:00
chore: 升级vue^3.4.0,整体性能得到不错的提升
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user