1.0.2 • Published 9 months ago
@mobilecustom/editor v1.0.2
Vue 3 可视化搭建移动端页面
import "@mobilecustom/editor/lib/editor.css";
import CustomEditor from "@mobilecustom/editor";
createApp(App).use(CustomEditor).mount("#app");
<script setup lang="ts">
import { CustomEditor } from "@mobilecustom/editor";
const onEventClick = (value) => {
console.log(value, "onEventClick");
};
const handleConfirm = (value) => {
console.log(value, "handleConfirm");
};
</script>
<template>
<CustomEditor :onEventClick="onEventClick" @confirm="handleConfirm" />
</template>
<style scoped></style>