markstream-vue2
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMarkstream Vue 2
Markstream Vue 2
Use this skill when the host app is Vue 2 and not specifically a Vue CLI / Webpack 4 edge case.
当宿主项目为Vue 2且不属于Vue CLI/Webpack 4特殊场景时,使用本技能。
Workflow
工作流程
- Confirm the repo is Vue 2.6 or 2.7.
- Install .
markstream-vue2- Add only when the repo is Vue 2.6 and uses Composition API patterns.
@vue/composition-api
- Add
- Import after resets.
markstream-vue2/index.css - Start with .
<MarkdownRender :content="markdown" /> - Use scoped custom component mappings when the task needs overrides or trusted tags.
- Validate with the smallest useful dev or build command.
- 确认仓库为Vue 2.6或2.7版本。
- 安装。
markstream-vue2- 仅当仓库为Vue 2.6且使用Composition API模式时,才添加。
@vue/composition-api
- 仅当仓库为Vue 2.6且使用Composition API模式时,才添加
- 在样式重置后导入。
markstream-vue2/index.css - 从使用开始。
<MarkdownRender :content="markdown" /> - 当任务需要覆盖默认配置或使用可信标签时,使用作用域内的自定义组件映射。
- 通过最小可用的开发或构建命令进行验证。
Default Decisions
默认决策
- Vue 2.7 can use built-in Composition API support.
- Vue 2.6 needs only when the codebase actually relies on Composition API.
@vue/composition-api - If the repo is Vue CLI / Webpack 4, prefer .
markstream-vue2-cli - If the repo is Vue 2 plus Vite worker imports, prefer .
markstream-vue2-vite
- Vue 2.7可使用内置的Composition API支持。
- 仅当代码库实际依赖Composition API时,Vue 2.6才需要。
@vue/composition-api - 如果仓库是Vue CLI/Webpack 4环境,优先使用。
markstream-vue2-cli - 如果仓库是Vue 2搭配Vite worker导入的环境,优先使用。
markstream-vue2-vite
Useful Doc Targets
实用文档目标
docs/guide/vue2-quick-start.mddocs/guide/vue2-installation.mddocs/guide/vue2-components.mddocs/guide/troubleshooting.md
docs/guide/vue2-quick-start.mddocs/guide/vue2-installation.mddocs/guide/vue2-components.mddocs/guide/troubleshooting.md