forked from opentiny/tiny-vue
35 lines
561 B
Vue
35 lines
561 B
Vue
<template>
|
|
<div class="demo-dept">
|
|
<h3 class="title">基本用法</h3>
|
|
<div class="content">
|
|
<tiny-dept v-model="value" @confirm="confirm"></tiny-dept>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="jsx">
|
|
import { Dept, Modal } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyDept: Dept
|
|
},
|
|
setup() {
|
|
return {
|
|
value: '022471'
|
|
}
|
|
},
|
|
methods: {
|
|
confirm() {
|
|
Modal.message({ message: 'Dept部门 confirm 事件' })
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.demo-dept .tiny-dept {
|
|
width: 270px;
|
|
}
|
|
</style>
|