.theme-default-content .contentdefault{ padding-bottom: 20px; } @media (min-width: 768px){ .img-box .img-item { width: calc(50% - 1.2rem); } } @media (min-width: 992px){ .img-box .img-item { width: calc(25% - 1.2rem); } } .details-content{ color:#407DBC; a{ line-height:1.9; display:block; } } .home-container{ width:100%; display:flex; flex-direction:column; &.flex-column-class{ flex-direction: column; flex-wrap: wrap; } } .home-container-route { width: 75%; display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; >div{ width: 100%; flex-wrap:wrap; height: auto; } &.flex-column-class{ flex-direction: column; >div{ width: 100%; flex-wrap:wrap; height: auto; } } } .home-container-routeright{ width: 25%; padding-left: 2rem; &.flex-column-class{ padding-left: 0; width: 100%; } } .home-container-main{ flex-basis: unset; width: 100%; display:flex; flex-direction:column; &.flex-column-class{ flex-basis: unset; } } .home-container-resource{ width:100%; position:relative; &.flex-column-class{ margin-left:0; } } @media (min-width: 768px){ .home-container{ flex-direction: column; } .home-container-route > div{ width: 100%; } .home-container-routeright{ padding-left: 0; } .home-container-main-box{ display:flex; justify-content: space-between; } } @media (min-width: 979px){ .home-container{ flex-direction: row; } .home-container-route > div{ width: 49%; } .home-container-routeright{ padding-left: 2rem; } .home-container-main-box{ display:flex; justify-content: space-between; } } .toggle-details-box{ height: 1px; } .toggle-details{ float: right; / margin-top: .5rem; / } .resource-list{ display: flex; flex-direction: column; justify-content:flex-start; align-items: flex-start; .resource-item{ width:100%; display:flex; justify-content:flex-start; align-items: center; gap:0.5rem; &.education{ border-top: 1px solid #dee2e6; } /* span{ color: #0076a8; } span:hover{ color:#004b87; } */ } } .details-single{ width: 100%; display: inline-block; margin-top: 5px; border: 1px solid #ddd; border-radius: 3px; overflow: hidden; max-height: 3000px; transition: max-height .3s ease; >div{ width: 100%; display: inline-block !important; margin: 0 !important; vertical-align: top; border: 0 solid #ddd; border-radius: 0 !important; padding: 0 1.5rem !important; background-color: #f9f9f9 !important; box-sizing: border-box; height: calc(50px + 1rem); position: relative; >div{ color:#0076a8; font-weight: 700; padding:0 .5rem; outline: none; width: 100%; max-height: 50px; position: absolute; top: 50%; transform: translateY(-50%); cursor: pointer; } } } /* .details-box{ max-height:1000px; } */ 文档 {{toggleText}} --> 使用 Syslab Syslab 什么是 Syslab Syslab 快速入门 Syslab 环境基础知识 函数库开发 包管理 --> APP 构建 M 语言计算环境 Syslab AI 简介与入门 进阶使用 提示词指南 应用场景 实践案例 配置与参考 简介与入门 进阶使用 提示词指南 应用场景 实践案例 配置与参考 Julia 语言 Julia 语言概览 Julia 中文文档 --> Julia 中文文档 Julia 高性能编程 Julia 最佳实践 外部语言接口 与 MATLAB 的显著差异 与 Python 的显著差异 --> 参考信息 基础函数库 语言基础 数据导入和分析 数学 图形 图形库 V2(Beta) 图像 地理图 多语言编程环境 M 语言计算环境 从 Python 调用 Syslab 函数库 从 MATLAB® 到 Syslab 新一代科学计算环境 兼容 M 代码调试运行 从 M 代码迁移到 Julia 代码 M 语言到 Julia 语言 Syslab 与 M 函数对照表 工作流 并行计算 并行计算工具箱 报告生成 Syslab 报告生成 代码生成 Syslab 代码生成 Syslab 定点设计工具 应用程序部署 从 julia 文件创建独立应用程序 使用 julia 代码创建 C 共享库 生成安装程序 与 Sysplorer 双向集成 Sysplorer API 工作区同步 From Workspace To Workspace Syslab Block 代码生成与 FMU 支持 Syslab 调试 模型回调 开放系统架构 使用范围 术语和缩略语 引用文件 平台分层架构 开放架构和接口使用场景 开放架构和接口详细说明 附录1:内核级开放接口 附录2:平台层开放接口 附录3:应用资源开发手册 工具箱 数学、统计和优化 曲线拟合工具箱 统计工具箱 优化工具箱 凸优化工具箱 全局优化工具箱 符号数学工具箱 信号处理和无线通信 信号处理工具箱 DSP 系统工具箱 小波工具箱 通信工具箱 雷达工具箱 相控阵工具箱 射频工具箱 天线工具箱 WLAN 工具箱 5G 工具箱(Beta) SerDes 工具箱(Beta) LTE 工具箱(Beta) 控制系统 控制系统工具箱 系统辨识工具箱 鲁棒控制工具箱 模糊逻辑工具箱 模型预测控制工具箱 图像处理和计算机视觉 图像处理工具箱 计算机视觉工具箱 图像采集工具箱 AI 与数据科学 机器学习工具箱 深度学习工具箱 强化学习工具箱 测试与测量 仪器控制工具箱 Aether 接口工具箱 资源 {{toggleText}} --> 发行说明 安装帮助 平台支持 与系统要求 常见问题 视频课程 视频课程 export default { props: ['slot-key'], data(){ return { allClose:true, homeContainerMain:true, flexClass:false, isHuawei: process.env.IS_HUAWEI, } }, mounted () { // console.log("slot-key",this.props) this.$nextTick(() => { // 在DOM更新完成后执行 const resizeTarget = this.$refs.homeContainer; // 创建 ResizeObserver 实例 const resizeObserver = new ResizeObserver(entries => { // entries 是一个 ResizeObserverEntry 对象数组,包含目标元素的大小信息 for (const entry of entries) { // 获取宽度和高度 const { width, height } = entry.contentRect; // console.log('Width:', width, 'Height:', height); // 在这里可以触发自定义的处理逻辑,例如将宽高信息传递给 Vue 组件的方法 this.handleResize(width, height); } }); // 开始监听目标元素的大小变化 resizeObserver.observe(resizeTarget); // 在组件销毁时停止监听,防止内存泄漏 this.$once('hook:beforeDestroy', () => { resizeObserver.disconnect(); }); }); }, computed:{ toggleText(){ return !this.allClose?'全部折叠':'全部展开' } }, methods:{ toggleDetails(){ let detailsNode = document.querySelectorAll( ) this.allClose = !this.allClose for(let i=0;i