feat: use unplugin-vue-define-options add setup name

This commit is contained in:
xiaoxian521
2022-05-21 12:29:54 +08:00
parent dca722cb29
commit 747e2b9c1c
93 changed files with 2387 additions and 4420 deletions

View File

@@ -1,14 +1,12 @@
<script lang="ts">
export default {
name: "reEditor"
};
</script>
<script setup lang="ts">
import "@wangeditor/editor/dist/css/style.css"; // 引入 css
import { onBeforeUnmount, ref, shallowRef, onMounted } from "vue";
import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
import { onBeforeUnmount, ref, shallowRef, onMounted } from "vue";
defineOptions({
name: "Editor"
});
const mode = "default";
// 编辑器实例,必须用 shallowRef
@@ -51,9 +49,9 @@ const handleCreated = editor => {
:icon="useRenderIcon('edit')"
style="font-size: 16px; margin: 0 4px 5px"
>
wangeditor
</el-link></span
>
Wangeditor
</el-link>
</span>
</div>
</template>
<Toolbar