tiny-vue/examples/sites/demos/mobile-first/app/signature/value.vue

30 lines
10 KiB
Vue

<template>
<div>
<div class="h-72">
<tiny-signature :value="url"></tiny-signature>
</div>
</div>
</template>
<script>
import { Signature } from '@opentiny/vue'
export default {
components: {
TinySignature: Signature
},
mounted() {
setTimeout(() => {
this.url = this.remoteUrl
}, 1000)
},
data() {
return {
url: '',
remoteUrl:
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgsAAAEgCAYAAAA63DCmAAAAAXNSR0IArs4c6QAAHGBJREFUeF7t3U1yHEd6BmBAIQIkBEIacBQGdt547b1v4AP4mF76Dt75BN54MUJMiIBIgD8gI0RHjwQFCHV3ZWVVZuVX+cxyVJU/z5dd9XZWoXl44H8ECBAgQIAAgT0Ch3QIECBAgAABAvsEhAXrgwABAgQIENgrICxYIAQIECBAgICwYA0QIECAAAEC+QJ2FvLtnEmAAAECBLoQEBa6KLNJEiBAgACBfAFhId/OmQQIECBAoAsBYaGLMpskAQIECBDIFxAW8u2cSYAAAQIEuhAQFroos0kSIECAAIF8AWEh386ZBAgQIECgCwFhoYsymyQBAgQIEMgXEBby7ZxJgAABAgS6EBAWuiizSRIgQIAAgXwBYSHfzpkECBAgQKALAWGhizKbJAECBAgQyBcQFvLtnEmAAAECBLoQEBa6KLNJEiBAgACBfAFhId/OmQQIECBAoAsBYaGLMpskAQIECBDIFxAW8u2cSYAAAQIEuhAQFroos0kSIECAAIF8AWEh386ZBAgQIECgCwFhoYsymyQBAgQIEMgXEBby7ZxJgAABAgS6EBAWuiizSRIgQIAAgXwBYSHfzpkECBAgQKALAWGhizKbJAECBAgQyBcQFvLtnEmAAAECBLoQEBa6KLNJEiBAgACBfAFhId/OmQQIECBAoAsBYaGLMpskAQIECBDIFxAW8u2cSYAAAQIEuhAQFroos0kSIECAAIF8AWEh386ZBAgQIECgCwFhoYsymyQBAgQIEMgXEBby7ZxJgAABAgS6EBAWuiizSRIgQIAAgXwBYSHfzpkECBAgQKALAWGhizKbJAECBAg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