mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🌱 添加优化方向
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<TItemBox :model-value="box" />
|
||||
<TItemBox v-model="box" @click="showData" />
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
// vue
|
||||
@@ -15,10 +15,10 @@ const box = ref({} as TItemBoxData);
|
||||
const getName = () => {
|
||||
return (
|
||||
props.modelValue.id === 10000005
|
||||
? "旅行者-空"
|
||||
: props.modelValue.id === 10000007
|
||||
? "旅行者-荧"
|
||||
: props.modelValue.name
|
||||
? "旅行者-空"
|
||||
: props.modelValue.id === 10000007
|
||||
? "旅行者-荧"
|
||||
: props.modelValue.name
|
||||
);
|
||||
};
|
||||
|
||||
@@ -37,4 +37,9 @@ onMounted(async () => {
|
||||
display: "inner",
|
||||
};
|
||||
});
|
||||
|
||||
function showData () {
|
||||
// todo @click 应该出来的是一个弹窗,而不是 console
|
||||
console.log(props.modelValue);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user