tiny-vue/examples/sites/demos/pc/app/input/show-tooltip.vue

35 lines
803 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 class="demo-input">
是否悬浮提示<tiny-switch v-model="showTooltip"></tiny-switch>
<tiny-input v-model="input" display-only :show-tooltip="showTooltip"></tiny-input>
</div>
</template>
<script>
import { Input, Switch } from '@opentiny/vue'
export default {
components: {
TinyInput: Input,
TinySwitch: Switch
},
data() {
return {
showTooltip: false,
input:
'内容很多内容很多内容很多内容很多内容很多内容很多内容很多内容很多内容很多内容很多内容很多内容很多内容很多内容很多内容很多内容很多内容很多内容很多内容很多'
}
}
}
</script>
<style scoped>
.demo-input {
width: 200px;
display: inline-block;
}
.tiny-input {
margin-top: 12px;
}
</style>