For example, I have a code block a that I need to include in a node in some cases
For example, code block a contains dozens of lines
<div v-if="needScroll">
<scroll-view>
代码块A
</scroll-view>
</div>
<div v-else>
代码块A
</div>
Is there any easy way to write it? At present, one copy is directly copied up and down. It's a bit messy to change two places
Seal code block a as a new component, and all the data needed by code block a will be sent in through props