Vue2-ace-editor and vue2-brace-editor plug-ins in vue report error-urgent help

the basic requirement point is to add a new piece of code to execute the command. Pass it backstage. Then I get the data to display a list, which has the function of modifying. When you take this piece of data and render it to the vue2-ace-editor component, the data cannot get in, and an error is reported.

this plug-in is quite unpopular. I searched a lot of information and didn"t find the reason, and I didn"t find out why I studied the source code. Write according to the document he gave, or report an error. After looking at the cause of the error, the assignment at the time of modification did not go into it. It is OK to assign values directly in created, but it would be wrong to request the data to assign values to him again, which has been entangled for two days.

packet address, two ways, the first part of the require is not very clear about the use of the second way.
https://www.npmjs.com/package.
https://www.npmjs.com/package.

vue part

   <ace-editor :fontSize="12" :showPrintMargin="true" :showGutter="true" :highlightActiveLine="true" mode="batchfile" theme="monokai" :editorProps="{$blockScrolling: true}" height="160px" width="400px" :value="jenkinsForm.execCommand" style="border-radius: 4px 4px 4px 4px;"  :onInput="changeData"></ace-editor>

introduction:

import { mapActions } from "vuex";
import brace from "brace";
import { Ace as AceEditor } from "vue2-brace-editor";
import "brace/mode/batchfile";
import "brace/theme/monokai";

effect:
clipboard.png

:

clipboard.png

Apr.22,2021

what you listed are two packages. According to your description, do you use the second package according to the first document?


then why do you have to use these two packages?.


problem solved ~ ~ as I said upstairs, because I introduced two packages. I deleted node_modules, deleted all the information about this package in packjson, and just got a new package to come in.


do you have the function of customizing prompt words with this plug-in?

Menu