## **Vue3 js工程**
## 添加插件
**npm方式:**
```
1、安裝代碼編譯器插件
npm install vue-codemirror --save
2、選擇安裝編程語言插件
npm install @codemirror/commands
npm install @codemirror/lang-cpp
npm install @codemirror/lang-css
npm install @codemirror/lang-html
npm install @codemirror/lang-java
npm install @codemirror/lang-javascript
npm install @codemirror/lang-json
npm install @codemirror/lang-lezer
npm install @codemirror/lang-markdown
npm install @codemirror/lang-php
npm install @codemirror/lang-python
npm install @codemirror/lang-rust
npm install @codemirror/lang-sql
npm install @codemirror/lang-xml
npm install @codemirror/legacy-modes
3、安裝編譯器主題插件
npm install @codemirror/theme-one-dark
4、業務頁面如何使用
<template>
<!-- 代碼編譯器 -->
<div class="codemirror-tbody">
<codemirror
v-model="fileContent"
:style="{ height: '633px;', fontSize: '16px;'}"
:options="{
// 加載完成后自定定焦
autofocus: true,
// 自動縮進
smartIndent: true,
// 縮進單位
indentUnit: 4,
// 啟用table按鍵
indentWithTab: true,
// table按鍵縮進空格數
tabSize: 2,
// 是否顯示行
lineNumbers: true,
// 第一行的行號
firstLineNumber: 1,
// 在選擇時是否顯示光標
showCursorWhenSelecting: true,
// 光標高度
cursorHeight: 1,
// 是否只讀,不能獲取焦點
readOnly: false,
// 當前行背景高亮
styleActionLine: true,
// 自動換行
lineWrapping: true,
// 允許用戶將一個編輯器高度的空白區域滾動到編輯器底部的視圖
scrollPastEnd: true
}"
:extensions="extensions"
/>
</div>
</template>
<script setup>
import { ref, watch } from 'vue';
import { Codemirror } from "vue-codemirror";
import { css } from "@codemirror/lang-css";
import { html } from "@codemirror/lang-html";
import { javascript } from "@codemirror/lang-javascript";
import { json } from "@codemirror/lang-json";
import { java } from "@codemirror/lang-java";
import { sql } from "@codemirror/lang-sql";
import { xml } from "@codemirror/lang-xml";
import { oneDark } from "@codemirror/theme-one-dark";
// 變量-代碼編譯器額外配置
const extensions = [java(), oneDark];
// 變量-文件內容
const fileContent = ref();
</script>
<style lang="less" scoped>
/* 代碼編譯器自適應高度 */
.codemirror-tbody {
min-height: calc(100vh - 320px);
max-height: calc(100vh - 320px);
overflow: auto;
}
</style>
- Jump簡介
- 技術架構
- 代碼規范
- 規范導讀
- JAVA規范
- 數據庫表設計規范
- 集成項目
- JDK1.8-pom.xml
- JDK21-pom.xml
- 項目結構
- 業務模塊-方法名稱規范
- 跨域配置
- License授權配置
- 公共字段自動填充
- 全局異常處理器
- PageOffice配置
- Beetl模板引擎配置
- application.properties
- application-prod.yml
- banner.txt
- logback-spring.xml
- jump-core (核心組件)
- Maven依賴
- 通用枚舉
- 公共數據狀態 - 枚舉
- 公共邏輯刪除 - 枚舉
- 公共操作編碼類型 - 枚舉
- 公共tree父節點 - 枚舉
- 公共是或否 - 枚舉
- 工具Util
- AopTargetUtil
- DownloadUtil
- GenerateNumUtil
- HttpServletUtil
- IpUtil
- JoinPointUtil
- MacUtil
- NetworkUtil
- ParamToUtil
- ResponseUtil
- TimeZoneDateUtil
- UaUtil
- 統一返回
- 結果對象
- 如何使用
- jump-cahche (緩存組件)
- Maven依賴
- Redis配置
- 緩存常量
- 工具Util
- RedisCacheUtil
- jump-idempotent (幕等組件)
- Maven依賴
- Context上下文
- 操作器
- 接口
- 如何實現
- AOP參數
- AOP使用方法
- jump-lock (分布式鎖組件)
- Maven依賴
- 枚舉
- AOP參數
- AOP使用方法
- 工具Util
- RedissonLockUtil
- Util使用方法
- jump-mybatis (mybatis組件)
- Maven依賴
- 基礎Entity
- 枚舉
- 查詢類型 - 枚舉
- 條件查詢
- search
- service
- 分頁結果集
- Mapper
- MyMapper
- 使用方法
- DDL操作
- DML操作
- 工具Util
- EntityUtil
- PageUtil
- TableUtil
- jump-dynamic-datasource (多數據源組件)
- Maven依賴
- Context上下文
- 操作器
- 接口
- 如何實現
- 工具Util
- DatasourceUtil
- 如何使用
- jump-satoken (satoken組件)
- Maven依賴
- Context上下文
- 操作器
- 接口
- 如何實現
- Satoken配置信息
- SatokenUser信息
- Redis緩存操作
- SatokenRedisCache
- SatokenUserRedisCache
- 放行白名單
- jump-oss (OSS組件)
- Maven依賴
- 工具Util
- OssFileUtil
- OssPlatformUtil
- 如何使用
- jump-xss (XSS組件)
- Maven依賴
- 白名單放行
- jump-email (郵件組件)
- Maven依賴
- Email客戶端信息
- Email發送參數
- 工具Util
- jump-websocket (WebSocket組件)
- Maven依賴
- 消息對象
- 工具Util
- 如何使用
- jump-weixin (微信組件)
- Maven依賴
- jump-system (系統管理組件)
- Maven依賴
- AOP
- 系統操作日志AOP
- 系統數據日志AOP
- 系統操作權限AOP
- 字典轉文本AOP
- Redis緩存操作
- SystemConfigRedisCache
- 工具Util
- LoginUserUtil
- SystemAreaUtil
- SystemHomeUtil
- SystemMenuUtil
- SystemOrgAdminUtil
- SystemOrgTypeUtil
- SystemRoleUtil
- SystemUserLoginAreaUtil
- SystemUserUtil
- jump-timer(定時器組件)
- Maven依賴
- 枚舉
- Api接口
- 工具Util
- ActionClassUtil
- TimerTaskUtil
- 如何使用
- jump-ueditor (富文本組件)
- Maven依賴
- 如何使用
- 配置 ueditor.config.js
- 后端 application.properties
- 前端 vue3
- vue-codemirror (代碼編譯器)
- npm依賴
- PageOffice整合
- Maven依賴
- License授權配置
- 枚舉
- 文件來源 - 枚舉
- 預覽文件類型 - 枚舉
- 文件預覽參數
- 下載文件
- 預覽文件
- 工具Util