Compare commits
	
		
			2 Commits
		
	
	
		
			1ef06f848c
			...
			b50e6c150b
		
	
	| Author | SHA1 | Date | 
|---|---|---|
|  | b50e6c150b | |
|  | 2c6a69b3e6 | 
|  | @ -3,7 +3,7 @@ type: docker | |||
| name: flowable-engine-web | ||||
| steps: | ||||
|   - name: build-package-vue | ||||
|     image: node:14.20 | ||||
|     image: node:14.17.3 | ||||
|     volumes: | ||||
|       - name: cache | ||||
|         path: /drone/src/flowable-engine-web/node_modules | ||||
|  |  | |||
|  | @ -11,7 +11,7 @@ Vue.prototype.$axios = axios; | |||
| 
 | ||||
| export function getBaseUrl(){ | ||||
| 	return "http://gateway.mytwins.top" | ||||
| 	// return "http://192.168.101.7:8000"
 | ||||
| 	// return "http://192.168.101.8:8000"
 | ||||
| 	// return "http://localhost:8000"
 | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -2,35 +2,22 @@ | |||
|   <codemirror ref="codeEdit" | ||||
|               :options="cmOptions" | ||||
|               v-model="_value" | ||||
|               @input="inputChange" | ||||
|               class="code"/> | ||||
| </template> | ||||
| 
 | ||||
| <script> | ||||
| import { codemirror } from 'vue-codemirror' | ||||
| // 引入主题 可以从 codemirror/theme/ 下引入多个 | ||||
| import "vue-codemirror/node_modules/codemirror/lib/codemirror.css"; | ||||
| import 'vue-codemirror/node_modules/codemirror/theme/idea.css' | ||||
| import 'vue-codemirror/node_modules/codemirror/theme/duotone-dark.css' | ||||
| import "codemirror/lib/codemirror.css"; | ||||
| import 'codemirror/theme/idea.css' | ||||
| import 'codemirror/theme/duotone-dark.css' | ||||
| // 引入语言模式 可以从 codemirror/mode/ 下引入多个 | ||||
| import "vue-codemirror/node_modules/codemirror/mode/javascript/javascript"; // 代码高亮必须引入 | ||||
| import "vue-codemirror/node_modules/codemirror/mode/sql/sql"; // 代码高亮必须引入 | ||||
| import "codemirror/mode/javascript/javascript"; // 代码高亮必须引入 | ||||
| //代码补全 | ||||
| import 'vue-codemirror/node_modules/codemirror/addon/hint/javascript-hint.js'; | ||||
| import 'codemirror/addon/hint/javascript-hint.js'; | ||||
| // import 'vue-codemirror/node_modules/codemirror/addon/hint/show-hint.css'; | ||||
| import 'vue-codemirror/node_modules/codemirror/addon/hint/show-hint.js'; | ||||
| import 'codemirror/addon/hint/show-hint.js'; | ||||
| 
 | ||||
| // 代码段折叠功能 | ||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/foldcode' | ||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/foldgutter' | ||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/foldgutter.css' | ||||
| 
 | ||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/brace-fold' | ||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/comment-fold' | ||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/xml-fold.js'; | ||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/indent-fold.js'; | ||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/markdown-fold.js'; | ||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/comment-fold.js'; | ||||
| 
 | ||||
| export default { | ||||
|   name: "CodeEdit", | ||||
|  |  | |||
|  | @ -17,6 +17,20 @@ import Ellipsis from '@/components/common/Ellipsis' | |||
| import WDialog from '@/components/common/WDialog' | ||||
| import Tip from '@/components/common/Tip' | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| Vue.use(ElementUI); | ||||
| Vue.use(AvatarEllipsis); | ||||
| Vue.use(Ellipsis); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue