tiny-vue/examples/sites/demos/mobile-first/app/currency/multiple.vue

36 lines
625 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div>
<tiny-button @click="choose">选择币种</tiny-button>
<tiny-currency
v-model="value"
:visible="visible"
@update:visible="visible = $event"
placeholder="请选择"
multiple
></tiny-currency>
<p>当前选中值{{ value }}</p>
</div>
</template>
<script>
import { Currency, Button } from '@opentiny/vue'
export default {
components: {
TinyCurrency: Currency,
TinyButton: Button
},
data() {
return {
visible: false,
value: ['VUV', 'CNY']
}
},
methods: {
choose() {
this.visible = true
}
}
}
</script>