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

做微信的网站有哪些功能吗网站建设移动端官网

做微信的网站有哪些功能吗,网站建设移动端官网,邯郸专业做网站,六安seo报价Vue无代码可视化项目 编排引擎smooth-dndLeftPanel.vueLayoutView.vuestores/debug.tsstores/editor.tsAppNavigator.vue添加-左侧栏添加到中间部分LayoutView.vuestore/editor.tsLeftPanel.vue移动-中间部分区域的位置更改新建文件夹utils、文件array.tsarray.tsLayoutView.vu…

Vue无代码可视化项目

  • 编排引擎
    • smooth-dnd
      • LeftPanel.vue
      • LayoutView.vue
      • stores/debug.ts
      • stores/editor.ts
      • AppNavigator.vue
    • 添加-左侧栏添加到中间部分
      • LayoutView.vue
      • store/editor.ts
      • LeftPanel.vue
    • 移动-中间部分区域的位置更改
      • 新建文件夹utils、文件array.ts
        • array.ts
        • LayoutView.vue

编排引擎

smooth-dnd

LeftPanel.vue

 <SmoothDndContainer class="block-group" behaviour="copy"tag="div"  group-name="blocks" @drag-start="(e,v)=>console.log(e,v)" @drag-leave="(e,v)=>console.log(e,v)"@drop="(e)=>console.log('drop',e)":get-child-payload="(index:number)=>index"><SmoothDndDraggable v-for="i in 10" :key="i"><div class="block-item">{{i}}</div></SmoothDndDraggable></SmoothDndContainer>
.block-item{width: 40px;height: 40px;background-color: #fff;border: 1px solid #e8e8e8;margin-bottom: 8px;display: flex;justify-content: center;align-items: center;font-size: 14px;transition:background-color 0.3s;cursor: move;user-select: none;
}.block-group{padding: 8px;display: flex;flex-wrap: wrap;gap: 8px;
}
</style>

全部代码:

<script setup lang="ts">
import {Lightning, Share } from '@icon-park/vue-next'
import { ref } from 'vue';
import {SmoothDndContainer} from '@/components/SmoothDnd/SmoothDndContainer'
import {SmoothDndDraggable} from '@/components/SmoothDnd/SmoothDndDraggable'type Mode = 'outline'|'blocks'|null
const mode = ref<Mode>(null)const toggleMode = (newMode:Mode) => {if(newMode === mode.value){mode.value = null}else{mode.value = newMode}
}
</script><template><div class="left-panel-wrapper"><div class="left-panel-left"><div class="btn" :class="{active:mode==='outline'}" @click="()=>toggleMode('outline')"><Lightning /></div><div class="btn" :class="{active:mode==='blocks'}" @click="()=>toggleMode('blocks')"><Share /></div></div><!-- 接入动画 --><transition name="app-left-panel-drawer"><div class="left-panel-content" v-show="mode">{{mode}}<!-- 面板中使用SmoothDnd --><SmoothDndContainer class="block-group" behaviour="copy"tag="div"  group-name="blocks" @drag-start="(e,v)=>console.log(e,v)" @drag-leave="(e,v)=>console.log(e,v)"@drop="(e)=>console.log('drop',e)":get-child-payload="(index:number)=>index"><SmoothDndDraggable v-for="i in 10" :key="i"><div class="block-item">{{i}}</div></SmoothDndDraggable></SmoothDndContainer></div></transition></div>
</template><style scoped>
.left-panel-wrapper {display: flex;height: 100%;background-color: #f5f5f5;border: 1px solid #e8e8e8;
}
.left-panel-left{display: flex;padding:0 10px;flex-direction: column;align-items: center;width: 50px;height: 100%;background-color: #e8e8e8;
}
.btn{width: 32px;height: 32px;display: flex;justify-content: center;align-items: center;cursor: pointer;border-radius: 6px;margin-top:20px;/* &:hover{background-color: #f5f5f5;} */
}
.btn:hover{background-color: #f5f5f5;
}
/* 被激活时候的特定样式 */
.btn.active{background-color: rgb(0,196,83);color: #fff;
}
.left-panel-content{flex: 1;width: 280px;height: 100%;background-color: #f5f5f5;overflow: hidden;
}/* 下面我们会解释这些 class 是做什么的 */
.app-left-panel-drawer-enter-active,
.app-left-panel-drawer-leave-active {transition: width 0.1s cubic-bezier(0.3, 0.1, 0.3, 1);
}.app-left-panel-drawer-enter-from,
.app-left-panel-drawer-leave-to {width: 0;
}.app-left-panel-drawer-content {width: calc(var(--panel-width) - 60px);height: 100%;padding: 16px;
}.block-item{width: 40px;height: 40px;background-color: #fff;border: 1px solid #e8e8e8;margin-bottom: 8px;display: flex;justify-content: center;align-items: center;font-size: 14px;transition:background-color 0.3s;cursor: move;user-select: none;
}.block-group{padding: 8px;display: flex;flex-wrap: wrap;gap: 8px;
}
</style>

LayoutView.vue

  <SmoothDndContainer class="block-group" orientation="vertical"tag="div"  group-name="blocks" @drop="(payload)=>editorStore.addBlock(payload)"  ><SmoothDndDraggable v-for="block in blocks" :key="block"
http://www.sczhlp.com/news/103034/

相关文章:

  • 网站设计师的岗位职责建设网上银行登录
  • 敦煌网的网站推广方式程序员开发软件被拿去违法
  • 郑州建设高端网站在线logo设计网站
  • 外贸网站外链网站售后
  • 关于公司申请建设门户网站的请示介绍国外的网站有什么不同
  • 做网站点击软件电子商务公司图片
  • 泰安专业网站开发公司昆明网站设计电话
  • 先域名 还是先做网站蒙阴做网站
  • 建设工程规划许可证网站wordpress弹幕播放器插件
  • uni-app项目支付宝端Input不受控
  • 适合小型企业的项目管理系统推荐:Reddit 用户真实需求
  • 如何制作和设计公司网站wordpress搭建视频站
  • 网站正在建设中热优秀的国外网站
  • 网站建设及推广预算表网站建设好之后怎么自己推广
  • 小学生做网站网站数据库怎么建立
  • 流量对于网站盈利公司可以做网站
  • 自助创建网站江门建网站
  • 建设专业网站的价格泉州网站制作案例
  • 四川省中国建设银行招聘信息网站03340 网站建设与管理
  • 李航统计学习方法第二版 学习笔记
  • 厦门怎么没有 网站备案asp.net+制作网站开发
  • 帝国网站管理系统前台建一个大型网站需要多少钱
  • 优秀网站设计网站乐陵森源木业全屋定制
  • 东莞网站设计方案南阳建站公司
  • 如何拥有自己的一台永久免费云主机/云服务器
  • 第三周训练总结
  • 网站开发所需配置网页制作兼职
  • 网站顶部图片代码湖州注册公司
  • 哪些网站做机票酒店有优势西安企业招聘官网
  • 房产网站建设榆林网站开发公司