mirror of
https://gitee.com/hoslay/ddei-editor.git
synced 2025-12-06 17:18:36 +08:00
39 lines
929 B
HTML
39 lines
929 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>DFlow流程图-HTML直接使用</title>
|
|
<script src="./vue.js"></script>
|
|
<script src="./ddei-editor.umd.cjs"></script>
|
|
<script src="./ddei-flow.umd.cjs"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="app">
|
|
<component id="ddei_editor_1" :is="editor" :options="options"></component>
|
|
</div>
|
|
</body>
|
|
<script>
|
|
// 创建 Vue 应用
|
|
const app = Vue.createApp({
|
|
data () {
|
|
return {
|
|
editor: window["ddei-editor"].DDeiEditorView,
|
|
options:options = {
|
|
extensions: [
|
|
window["ddei-flow"].DDeiFlow,
|
|
]
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
app.mount('#app');
|
|
</script>
|
|
</html>
|
|
|
|
|