更新
This commit is contained in:
parent
f28dbce227
commit
791567bf37
@ -1,14 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<input v-model="itemNameInput" placeholder="输入物品名(英)"/><br/>
|
<input v-model="itemNameInput" placeholder="输入物品名(英)"/>
|
||||||
<select v-if="itemNameInput" v-on:select="">
|
<select v-if="itemNameInput" v-on:select="">
|
||||||
<option v-for="item in filteredItems">{{ item }}</option>
|
<option v-for="item in filteredItems">{{ item }}</option>
|
||||||
</select>
|
</select>
|
||||||
<p v-if="itemInfo">
|
<p v-if="itemInfo">
|
||||||
{{ itemInfo.value }}
|
<span>估价 (缓存):{{ itemInfo.value }}</span>
|
||||||
|
<span>实时市价 (API):<button @click="onApiPricePress"/></span>
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import Log from "../class/Log";
|
||||||
import Hello from "./Hello.vue";
|
import Hello from "./Hello.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -33,13 +35,17 @@ export default {
|
|||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onApiPricePress() {
|
||||||
|
Log.info('test');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
p {
|
select {
|
||||||
background: red;
|
padding: 0.5em;
|
||||||
color: white;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user