1 line
2.7 KiB
JSON
1 line
2.7 KiB
JSON
{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\components\\JavaEdit\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\components\\JavaEdit\\index.vue","mtime":1732871026476},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\babel.config.js","mtime":1732871025888},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _interopRequireDefault = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _codemirror = _interopRequireDefault(require(\"codemirror\"));\nrequire(\"codemirror/lib/codemirror.css\");\nrequire(\"codemirror/theme/idea.css\");\nrequire(\"codemirror/mode/clike/clike\");\n//\n//\n//\n//\n//\n//\n// 替换主题这里需修改名称\nvar _default = exports.default = {\n props: {\n value: {\n type: String,\n required: true\n },\n height: {\n type: String,\n required: true\n }\n },\n data: function data() {\n return {\n editor: false\n };\n },\n watch: {\n value: function value(_value) {\n var editorValue = this.editor.getValue();\n if (_value !== editorValue) {\n this.editor.setValue(this.value);\n }\n },\n height: function height(value) {\n this.editor.setSize('auto', this.height);\n }\n },\n mounted: function mounted() {\n this.editor = _codemirror.default.fromTextArea(this.$refs.textarea, {\n mode: 'text/x-java',\n lineNumbers: true,\n lint: true,\n lineWrapping: true,\n tabSize: 2,\n cursorHeight: 0.9,\n // 替换主题这里需修改名称\n theme: 'idea',\n readOnly: true\n });\n this.editor.setSize('auto', this.height);\n this.editor.setValue(this.value);\n },\n methods: {\n getValue: function getValue() {\n return this.editor.getValue();\n }\n }\n};",null]} |