simple-code-editor
simple-code-editor copied to clipboard
:line-nums | Invalid array length
<CodeEditor
class="border"
v-model="code"
:languages="[['php', 'PHP']]"
theme="a11y-light"
font-size="14px"
width="100%"
height="140px"
border-radius="0"
:line-nums="true"
/>
if I use the editor inside the collapse, then after opening I will have an error:
How to fix it?
I have the same problem,, I changed the v-show to v-if, and it was solved, maybe it was the loading order problem?