forked from opentiny/tiny-vue
18 lines
402 B
Vue
18 lines
402 B
Vue
<template>
|
||
<div>
|
||
<tiny-country v-model="value" @change="change"></tiny-country>
|
||
<p>当前选中值:{{ value }}</p>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup lang="jsx">
|
||
import { ref } from 'vue'
|
||
import { Country as TinyCountry, Modal } from '@opentiny/vue'
|
||
|
||
const value = ref('')
|
||
|
||
function change(value) {
|
||
Modal.message({ message: '当前选中国家:' + value, status: 'info' })
|
||
}
|
||
</script>
|