refactor: 组件示例重构

Former-commit-id: 039dc1ce505489c4d1b360fd50771a10b5476227
This commit is contained in:
haoxr
2023-01-14 18:37:22 +08:00
parent ed7afec7c6
commit 9ebccf0f45
10 changed files with 59 additions and 113 deletions

11
src/views/demo/editor.vue Normal file
View File

@@ -0,0 +1,11 @@
<!-- wangEditor富文本编辑器示例 -->
<script setup lang="ts">
import Editor from '@/components/WangEditor/index.vue';
const value = ref('初始内容');
</script>
<template>
<div class="app-container">
<editor v-model="value" style="height: 600px" />
</div>
</template>