feat: tui-image-editor 使用

master
LCJ-MinYa 8 months ago
parent 2da3ea48b7
commit 9b624fc445

@ -0,0 +1,7 @@
<template>
<div>123</div>
</template>
<script setup lang="jsx">
import { ref } from 'vue';
</script>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,32 @@
<template>
<base-container>
<h2 class="pt-5 pb-5">tui-image-editor使用教程</h2>
<el-button
type="primary"
style="width: 200px"
@click="openImageEditor"
>点击打开图片标注
</el-button>
<imageEditor
v-if="showImageEditor"
@close="showImageEditor = false"
:imgUrl="imgUrl"
/>
</base-container>
</template>
<script setup lang="jsx">
import { ref } from 'vue';
import ImageEditor from './components/image-editor.vue';
defineOptions({
name: 'TuiImageEditor',
});
const showImageEditor = ref(false);
const imgUrl = ref('');
const openImageEditor = () => {
showImageEditor.value = true;
};
</script>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save