var jsonlint = Editor.require('packages://json-lint/panel/jsonlint.js') var jsonformatter = Editor.require('packages://json-lint/panel/formatter.js') Editor.Panel.extend({ // 2017年2月24日17:13:26 引入两个就会报错 // 这里从上面 Editor.require 引入 // dependencies: [ // 'packages://Fly-Box/panel/jsonlint.js', // 'packages://Fly-Box/panel/formatter.js' // ], style: ` :host { display: flex; flex-direction: column; } .top { height: 50px; line-height: 50px; padding-left: 5px; } .middle { flex: 1; } .ta { background: #252525; border-radius: 3px; color: #fd942b; border-color: #fd942b; margin: 5px; width: 100%; height: 88%; } `, template: `