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

yellow网站推广联盟亚马逊官网首页

yellow网站推广联盟,亚马逊官网首页,设计师兼职平台,广西城乡建设名网站前言:哈喽,大家好,今天给大家分享一篇文章!并提供具体代码帮助大家深入理解,彻底掌握!创作不易,如果能帮助到大家或者给大家一些灵感和启发,欢迎收藏+关注哦 💕 目录 DeepSeek 助力 Vue3 开发:打造丝滑的表格(Table)之添加行拖拽排序功能示例9,TableView16_09 嵌…

前言:哈喽,大家好,今天给大家分享一篇文章!并提供具体代码帮助大家深入理解,彻底掌握!创作不易,如果能帮助到大家或者给大家一些灵感和启发,欢迎收藏+关注哦 💕

共同探索软件研发!敬请关注【宝码香车】
关注描述

csdngif标识

目录

  • DeepSeek 助力 Vue3 开发:打造丝滑的表格(Table)之添加行拖拽排序功能示例9,TableView16_09 嵌套表格拖拽排序
    • 📚前言
    • 📚页面效果
      • 📘组件代码
    • 📚代码测试
    • 📚测试代码正常跑通,附其他基本代码
      • 📘编写路由 src\router\index.js
      • 📘编写展示入口 src\App.vue
    • 📚页面效果


📚📗📕📘📖🕮💡📝🗂️✍️🛠️💻🚀🎉🏗️🌐🖼️🔗📊👉🔖⚠️🌟🔐⬇️·正文开始⬇️·🎥😊🎓📩😺🌈🤝🤖📜📋🔍✅🧰❓📄📢📈 🙋0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣🔟🆗*️⃣#️⃣

DeepSeek 助力 Vue3 开发:打造丝滑的表格(Table)之添加行拖拽排序功能示例9,TableView16_09 嵌套表格拖拽排序

📚前言

Transformer 架构自 2017 年被提出以来,凭借其在自然语言处理任务中的卓越表现,成为了众多先进模型的底层基石。DeepSeek 也深深扎根于 Transformer 架构,并在其基础上进行了大胆创新和优化,形成了独具特色的模型架构。

📚页面效果

DeepSeek 助力 Vue3 开发:打造丝滑的表格(Table)之添加行拖拽排序功能示例9,TableView16_09 嵌套表格拖拽排序

📘组件代码

<!-- TableView16_09.vue 嵌套表格拖拽示例 -->
<template><div class="drag-demo"><h2>09. 嵌套表格拖拽排序</h2><Table:data="parentTasks":columns="columns"draggable@update:data="handleParentUpdate"row-key="id"borderstripeexpandable:expanded-keys="expandedKeys"@update:expandedKeys="handleExpandChange"><template #cell-task="{ row }"><div class="parent-task"><span class="expand-icon" @click.stop="toggleExpand(row)">{{ isExpanded(row) ? '▼' : '▶' }}</span>{{ row.task }}</div></template><template #expanded-row="{ row }"><div class="sub-table-container"><h4>子任务列表</h4><Table:data="row.children":columns="subColumns"draggable@update:data="(newData) => handleSubUpdate(row, newData)"row-key="id"borderclass="sub-table"/></div></template></Table></div>
</template><script setup>
import { ref } from 'vue'
import Table from '@/components/Table/Table.vue'const parentTasks = ref([{id: 1,task: '设计阶段',children: [{ id: 11, task: '原型设计', owner: '张三' },{ id: 12, task: 'UI设计', owner: '李四' },]},{id: 2,task: '开发阶段',children: [{ id: 21, task: '前端开发', owner: '王五' },{ id: 22, task: '后端开发', owner: '赵六' },]},{id: 3,task: '测试阶段',children: [{ id: 31, task: '单元测试', owner: '钱七' },{ id: 32, task: '集成测试', owner: '孙八' },]}
])const columns = [{ title: '父任务', dataIndex: 'task', width: '200px' }
]const subColumns = [{ title: '子任务', dataIndex: 'task', width: '180px' },{ title: '负责人', dataIndex: 'owner', width: '120px' }
]const expandedKeys = ref([1]) // 默认展开第一个节点const isExpanded = (row) => {return expandedKeys.value.includes(row.id)
}const toggleExpand = (row) => {const index = expandedKeys.value.indexOf(row.id)if (index > -1) {expandedKeys.value.splice(index, 1)} else {expandedKeys.value.push(row.id)}
}const handleExpandChange = (keys) => {expandedKeys.value = keys
}const handleParentUpdate = (newData) => {parentTasks.value = newData
}const handleSubUpdate = (parentRow, newSubData) => {const parentIndex = parentTasks.value.findIndex(p => p.id === parentRow.id)if (parentIndex > -1) {// 创建新数组以触发响应式更新const newParentTasks = [...parentTasks.value]newParentTasks[parentIndex] = {...newParentTasks[parentIndex],children: newSubData}parentTasks.value = newParentTasks}
}
</script><style scoped>
.drag-demo {padding: 20px;max-width: 800px;margin: 0 auto;
}.parent-task {display: flex;align-items: center;
}.expand-icon {width: 20px;height: 20px;display: inline-flex;align-items: center;justify-content: center;margin-right: 8px;cursor: pointer;user-select: none;
}.sub-table-container {padding: 15px;background: #f8f8f8;border-radius: 4px;
}.sub-table-container h4 {margin-top: 0;margin-bottom: 12px;color: #555;font-size: 14px;
}.sub-table {margin-bottom: 0;
}
</style>

📚代码测试

运行正常

📚测试代码正常跑通,附其他基本代码

  • 添加路由
  • 页面展示入口

📘编写路由 src\router\index.js

\router\index.js

import { createRouter, createWebHistory } from 'vue-router'
import RightClickMenuView from '../views/RightClickMenuView.vue'
import RangePickerView from '../views/RangePickerView.vue'const router = createRouter({history: createWebHistory(import.meta.env.BASE_URL),routes: [{path: '/',name: 'progress',component:  () => import('../views/ProgressView.vue'),},{path: '/tabs',name: 'tabs',// route level code-splitting// this generates a separate chunk (About.[hash].js) for this route// which is lazy-loaded when the route is visited.// 标签页(Tabs)component: () => import('../views/TabsView.vue'),},{path: '/accordion',name: 'accordion',// 折叠面板(Accordion)component: () => import('../views/AccordionView.vue'),},{path: '/timeline',name: 'timeline',// 时间线(Timeline)component: () => import('../views/TimelineView.vue'),},{path: '/backToTop',name: 'backToTop',component: () => import('../views/BackToTopView.vue')},{path: '/notification',name: 'notification',component: () => import('../views/NotificationView.vue')},{path: '/card',name: 'card',component: () => import('../views/CardView.vue')},{path

文章转载自:

http://gpXrJWEP.jbfzx.cn
http://f35zMQZS.jbfzx.cn
http://OuszpCxE.jbfzx.cn
http://b6MHzkAQ.jbfzx.cn
http://MPiER9pc.jbfzx.cn
http://eapJp0Eo.jbfzx.cn
http://THzOKwHb.jbfzx.cn
http://Q4TGS8IV.jbfzx.cn
http://TsaNjkWr.jbfzx.cn
http://hsTqqawU.jbfzx.cn
http://35qEzrRp.jbfzx.cn
http://C1RqvLY2.jbfzx.cn
http://LqC4Yxoz.jbfzx.cn
http://76NkBVar.jbfzx.cn
http://Vy3aLlsP.jbfzx.cn
http://1dIk2p7z.jbfzx.cn
http://fquxyykV.jbfzx.cn
http://i219Dhiq.jbfzx.cn
http://FAlWibaD.jbfzx.cn
http://pJBxDXL7.jbfzx.cn
http://YGeGrSpH.jbfzx.cn
http://VOLEGwNs.jbfzx.cn
http://pPfK4mOX.jbfzx.cn
http://peYZhCAm.jbfzx.cn
http://X7l6IPhs.jbfzx.cn
http://1uyASAlm.jbfzx.cn
http://Sk2TTzVa.jbfzx.cn
http://UYMTXmcW.jbfzx.cn
http://fQ30FIkC.jbfzx.cn
http://sWy6996p.jbfzx.cn
http://www.dtcms.com/wzjs/760683.html

相关文章:

  • 怎样更换动易2006网站模板wordpress 拍卖
  • 淘宝网站网页设计说明上海jsp网站建设
  • 农村网站平台建设方案西双版纳傣族自治州海拔多少
  • 网站蜘蛛记录优惠劵精选网站怎么做
  • 建设网站培训的pptwordpress 商城插件
  • 公众号授权网站河北智慧团建网站登录
  • 网站规划与网页设计第二版华为手机官网商城
  • 成都网站建设哪家技术好优化防控举措
  • 哈尔滨信息网招聘网站优化名词解释
  • 手机网站跟PC端网站有啥区别网页设计作业成品20页
  • 网站建设运营计划杭州正规制作网站公司吗
  • 汕头建站模板搭建哈尔滨企业自助建站系统
  • 海口建设工程信息网站元旦ppt模板免费下载
  • 简单的手机网站模板免费下载附近广告公司地址
  • 做室内设计的网站有哪些内容山东省建设八大员考试网站
  • 7k网站怎么做天津网络网站公司
  • 网站ui设计是什么意思翻译网站建设
  • 蚌埠网站建设建设兼职网站目的
  • 做礼品建什么网站如何快速使用模版做网站
  • 哪里网站开发好如何建网站和推广
  • html 单页网站建一个商城型网站
  • 网站制作报价被哪些因素影响学做网站的书
  • 乐清做网站的公司有哪些温州网站建设
  • 专做农产品的网站有哪些wordpress 值得买
  • 肇庆企业做网站惠州网吧
  • 如何自己开发一个平台网站优化seo四个建议
  • 怎么查看网站虚拟空间wordpress智能机器人
  • 国外做汽配的网站垦利县企业型网站建设
  • 网站托管共享服务器费用一年多少钱公众号开发答题活动
  • 如何提高网站的转化率wordpress添加模块