refactor: 更新组件演示路径并添加新组件
- 更新数据库中组件演示路径,将 'demo' 替换为 'componentsDemo'- 添加多个新组件的 Vue 文件,包括: - CuteBusinessDemo - CuteDragTableDemo - CuteFileUploadDemo - CuteJavaEditorDemo - CuteMarkdownDemo - CuteOneKeyCopyDemo - CuteRichTextEditorDemo - CuteSimpleTableDemo - 新组件涵盖了业务组件、表格组件、富文本编辑器、Markdown 编辑器等多种类型
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<!-- <cute-java-editor :content="content" @change="onChange" />-->
|
||||
<cute-code-editor :content="content" mode="java" @change="onChange" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// 旧组件
|
||||
// import CuteYamlEditor from '@/views/components/dev/CuteYamlEditor'
|
||||
// 新组件
|
||||
import CuteCodeEditor from '@/views/components/dev/CuteCodeEditor'
|
||||
|
||||
export default {
|
||||
name: 'CuteJavaEditorDemo',
|
||||
// components: { CuteJavaEditor },
|
||||
components: { CuteCodeEditor },
|
||||
data() {
|
||||
return {
|
||||
content: 'package cn.odboy;\n' +
|
||||
'\n' +
|
||||
'import cn.odboy.framework.context.CsBootApplication;\n' +
|
||||
'import io.swagger.annotations.Api;\n' +
|
||||
'import org.springframework.boot.SpringApplication;\n' +
|
||||
'import org.springframework.boot.autoconfigure.SpringBootApplication;\n' +
|
||||
'\n' +
|
||||
'import java.net.UnknownHostException;\n' +
|
||||
'\n' +
|
||||
'@Api(hidden = true)\n' +
|
||||
'@SpringBootApplication\n' +
|
||||
'public class AppRun extends CsBootApplication {\n' +
|
||||
'\n' +
|
||||
' public static void main(String[] args) throws UnknownHostException {\n' +
|
||||
' SpringApplication springApplication = new SpringApplication(AppRun.class);\n' +
|
||||
' inited(springApplication.run(args));\n' +
|
||||
' }\n' +
|
||||
'}\n'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onChange(value) {
|
||||
console.error('onChange', value)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user