当前位置: 首页 > news >正文

Vue进阶之Vue无代码可视化项目(四)

Vue无代码可视化项目

  • 左侧栏
    • 第一步
      • LeftPanel.vue
      • LayoutView.vue
      • base.css
    • 第二步
      • LayoutView.vue
      • LeftPanel.vue
  • 编排引擎
    • smooth-dnd
      • 安装
      • 创建文件
        • SmoothDndContainer.ts
        • utils.ts
        • SmoothDndDraggable.ts
        • LeftPanel.vue

左侧栏

第一步

创建LeftPanel
请添加图片描述

LeftPanel.vue

<script setup lang="ts">
</script><template><div class="left-panel-wrapper">left panel</div>
</template><style scoped>
.left-panel-wrapper {width: 200px;height: 100%;background-color: #f5f5f5;border: 1px solid #e8e8e8;
}
</style>

LayoutView.vue

<template><div class="layout-wrapper" :class="{debug:editorStore.debug}" @click="editorStore.toggleDebug()"><LeftPanel /><div></div><div></div>
</div>
</template><script lang="ts" setup>
import LeftPanel from '@/components/LeftPanel.vue';
import {useEditorStore} from '@/stores/editor'
const editorStore = useEditorStore()
</script>
<style>
.layout-wrapper {display: flex;flex-direction: row;height: 100%;background-color: pink;
}
</style>

base.css

html,
body,
#app{height:calc(100% - 48px);
}

全部代码:

*,
*::before,
*::after {box-sizing: border-box;margin: 0;
}
html,
body,
#app{height:calc(100% - 48px);
}
body {height: 100%;min-height: 100vh;color: var(--color-text);background: var(--color-background);transition:color 0.5s,background-color 0.5s;line-height: 1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue','Icons16',sans-serif;font-size: var(--font-size-normal);text-rendering: optimizelegibility;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;
}/* .tiny-scrollbar::-webkit-scrollbar {scrollbar-width: thin;scrollbar-color: var(--color-gray-400) var(--color-gray-100);
} *//* width */
.tiny-scrollbar::-webkit-scrollbar {width: 6px;
}/* Track */
.tiny-scrollbar::-webkit-scrollbar-track {background: var(--color-gray-100);
}/* Handle */
.tiny-scrollbar::-webkit-scrollbar-thumb {border-radius: 8px;background: var(--color-gray-400);
}.i-icon {line-height: 0;
}

请添加图片描述

第二步

LayoutView.vue

<template><div class="layout-wrapper" :class="{debug:editorStore.debug}" @click="editorStore.toggleDebug()"><div><LeftPanel /><div></div><div></div></div>
</div>
</template><script lang="ts" setup>
// import AppLeftPanel from '@/components/AppLeftPanel/AppLeftPanel';
import LeftPanel from '@/components/LeftPanel.vue';

相关文章:

  • 北京网站建设多少钱?
  • 辽宁网页制作哪家好_网站建设
  • 高端品牌网站建设_汉中网站制作
  • ArcGIS for js 4.x 加载图层
  • 部署LVS-DR群集
  • Pythone 程序打包成 exe
  • Java从入门到放弃
  • 公用nacos,实现只调用本机相应服务,不出现负载均衡到别人机器上
  • eNSP学习——配置前缀列表
  • python爬虫爬取豆瓣TOP250用csv文件
  • 【MySQL】函数
  • HTML静态网页成品作业(HTML+CSS)—— 美食湘菜介绍网页(5个页面)
  • 图形和插图软件Canvas X Pro 20 Build 914
  • Android面试题之说说系统的启动流程(总结)
  • Python 机器学习 基础 之 【实战案例】轮船人员获救预测实战
  • 常用的三种软件架构
  • 【Vue】购物车案例-构建项目
  • 15.2 测试-网格测试、基准测试与测试覆盖率
  • C++类的相互关联
  • CentOS 7 修改主机名
  • JavaScript的使用你知道几种?(上)
  • JS进阶 - JS 、JS-Web-API与DOM、BOM
  • JS实现简单的MVC模式开发小游戏
  • PAT A1092
  • Promise面试题,控制异步流程
  • React-flux杂记
  • spring-boot List转Page
  • Vue官网教程学习过程中值得记录的一些事情
  • 基于webpack 的 vue 多页架构
  • 简单实现一个textarea自适应高度
  • 盘点那些不知名却常用的 Git 操作
  • 前端代码风格自动化系列(二)之Commitlint
  • 浅析微信支付:申请退款、退款回调接口、查询退款
  • 删除表内多余的重复数据
  • 双管齐下,VMware的容器新战略
  • 微信小程序上拉加载:onReachBottom详解+设置触发距离
  • ​queue --- 一个同步的队列类​
  • # 深度解析 Socket 与 WebSocket:原理、区别与应用
  • #传输# #传输数据判断#
  • #基础#使用Jupyter进行Notebook的转换 .ipynb文件导出为.md文件
  • #在 README.md 中生成项目目录结构
  • (6)设计一个TimeMap
  • (floyd+补集) poj 3275
  • (Java)【深基9.例1】选举学生会
  • (二)WCF的Binding模型
  • (二)换源+apt-get基础配置+搜狗拼音
  • (附源码)ssm捐赠救助系统 毕业设计 060945
  • (源码版)2024美国大学生数学建模E题财产保险的可持续模型详解思路+具体代码季节性时序预测SARIMA天气预测建模
  • **《Linux/Unix系统编程手册》读书笔记24章**
  • .DFS.
  • .pop ----remove 删除
  • @Autowired标签与 @Resource标签 的区别
  • [20150904]exp slow.txt
  • [2021]Zookeeper getAcl命令未授权访问漏洞概述与解决
  • [Angularjs]asp.net mvc+angularjs+web api单页应用
  • [AX]AX2012 AIF(四):文档服务应用实例
  • [BZOJ1008][HNOI2008]越狱
  • [BZOJ3223]文艺平衡树