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

Arco design vue 表格排序踩坑

父组件template div classp-10 !-- 商户管理 -- div classinvate-box placeholder: div classflex items-center SvgIcon :nameuser/SvgIcon div classml-10{{ $t(channel.我的邀请码) }}/div /div div classflex justify-between items-center div clickonCopy(invateDetail.invatecode) div classflex mt-10 items-center cursor-pointer div classtext-36 font-medium{{ invateDetail.invatecode }}/div div classpy-4 px-10 bg-white rounded-md flex ml-20 items-center text-[#7833F6] font-medium divSvgIcon :nameusercopy/SvgIcon/div div classml-10{{ $t(channel.复制邀请码) }}/div /div /div div classmt-10 font-medium{{ $t(channel.复制邀请码Info) }}/div /div div classflex text-center div div classtext-24 font-medium{{ invateDetail.recent_invite_count }}/div div classtext-14 mt-10{{ $t(channel.近7天邀请) }}/div /div div classborder border-[#B58BE4] mx-30/div div div classtext-24 font-medium{{ invateDetail.total_invite_count }}/div div classtext-14 mt-10{{ $t(channel.总人数) }}/div /div /div /div /div !-- 表格 查询等 -- div classmt-20 div classmy-20 flex justify-end items-center div classw-[80%] SearchBar :itemssearchItems :loadingloading changehandleSearchChange / /div /div !-- 表格 -- ArcoTable reftableRef :current-pagesearchParams.page.page_number :page-sizesearchParams.page.page_size :columnsmerchantColumns :datatableData :totaltotal :remote-sorttrue :loadingloading :scroll{ x: 1300 } :row-selectionfalse page-changehandlePageChange sort-changehandleSortChange !-- 自定义列渲染 -- template #email{ record } a-tag colorblue{{ record.email }}/a-tag /template template #action{ record } div classcursor-pointer a-dropdown SvgIcon :namesetting /SvgIcon template #content a-doption v-for(it, ind) in channelMerchantActions :keyind clickhandleMore(it, record.invite_record_id) mouseentersetHover(it.component, true) mouseleavesetHover(it.component, false) div classflex items-center SvgIcon :nameisHover[it.component] ? it.iconActive : it.icon/SvgIcon div classml-10{{ it.label }}/div /div /a-doption /template /a-dropdown /div /template template #accountStatus{ record } !-- 账号状态 1.活跃 2.非活跃 -- !-- {{ record.status 1 ? 活跃 : 非活跃 }} -- div v-ifrecord.status 1 classtag-green{{ $t(channel.活跃) }}/div div v-else classtag-gary{{ $t(channel.非活跃) }}/div /template template #Detail{ record } !-- 详情 点击 跳转费率页面 invite_record_id -- div classw-full cursor-pointer detail-border clickonDetail(record.account) {{ $t(channel.查看费率) }} /div /template /ArcoTable /div GenericModal v-for(item, index) in channelMerchantActions :keyindex :labletitleitem.label :visiblevisibletype[item.visible] :titleitem.title :typesitem.types :component-props{ id: inviteRecordId } :content-componentitem.component closehandClose get-listgetList /GenericModal /div /template script setup langts import { ref, reactive, onMounted, watch } from vue; // computed import ArcoTable from /components/list/ArcoTable.vue; import { merchantColumns } from /constants/listColumn; // 配置列数据字段 import GenericModal from /components/modal/GenericModal.vue; import type { SearchItem } from /components/search/types; import copyText from /components/copy/copy; import { getRecordList, inviteCode, invitationStats } from /api/channel; import { channelMerchantActions as channelMerchantActionPresets, type MoreActionItem, } from /config/actionConfig; import SearchBar from /components/search/Searchbar.vue; import { useRouter } from vue-router; import { useI18n } from vue-i18n; const { t } useI18n(); const channelMerchantActions refMoreActionItem[]([...channelMerchantActionPresets]); const { copyToClipboard } copyText(); const visibletype ref({ editExchangeRate: false, modifyRemarks: false, }); const isHover reactive({ editExchangeRate: false, modifyRemarks: false, addExchangeRate: false, }); const setHover (icon: any, value: any) { isHover[icon] value; }; // 数据 const tableData refany[]([]); const loading ref(false); const total ref(0); // 合并搜索参数 const searchParams reactive({ keyword: , // 邀请账户 order_by_profit: 0, // 累计分佣排序 0.正常 1.升 2.降 time_range: { start_time: null, end_time: null, }, page: { page_number: 1, page_size: 10, }, }); // 搜索配置 const searchItems: SearchItem[] [ { key: keyword, type: input, placeholder: t(channel.搜索邀请账户), span: 2, prefixIcon: icon-search, allowClear: true, }, { key: time_range, type: dateRange, placeholder: [t(public.startTime), t(public.endTime)], span: 6, }, ]; const getList async () { loading.value true; try { tableData.value []; const { data } await getRecordList(searchParams); console.log(---执行了列表接口---searchParams, searchParams.order_by_profit); // 关键修复把 total_profit 转成数字解决字符串排序错乱 tableData.value data?.list ? data.list.map((item) ({ ...item, total_profit: Number(item.total_profit), // 字符串转数字 })) : []; total.value data?.total || 0; loading.value false; // 查询的时候 total } catch { console.log(获取商户列表失败); } finally { loading.value false; } }; // 搜索变化处理 const handleSearchChange (key: string, value: any) { console.log(搜索字段 ${key} 变化:, value); // 可以在这里添加防抖搜索逻辑 searchParams[key] value; searchParams.page.page_number 1; getList(); }; interface PageChangeData { current: number; pageSize: number; } const handlePageChange (data: PageChangeData) { const { current, pageSize } data; console.log(页码变化:, 第${current}页, 每页${pageSize}条); searchParams.page.page_number current; searchParams.page.page_size pageSize; getList(); }; const handleSortChange (sorter: object) { // 重置到第一页并重新加载数据 searchParams.page.page_number 1; const newOrder sorter?.order || undefined; searchParams.order_by_profit newOrder ascend ? 1 : newOrder descend ? 2 : 0; getList(); // order_by_profit // 累计分拥排序 0.正常 1.升 2.降 }; const inviteRecordId ref(null); const handleMore (item: any, id: any) { console.log(更多:, item, id, id); // compone visibletype.value[item.visible] true; if (item.types add) { channelMerchantActions.value.push(item); // 新增费率 标题 } inviteRecordId.value id; }; const handClose () { Object.keys(visibletype.value).forEach((key) { visibletype.value[key] false; if (channelMerchantActions.value.length 2) { const removed channelMerchantActions.value.pop(); console.log(已删除最后一项:, removed); } }); }; const onCopy (content: any) { copyToClipboard(content); }; const invateDetail reactive({ invatecode: , recent_invite_count: , // 近7天的邀请人数 total_invite_count: , // 邀请的总人数 }); const getInviteCode async () { const { data } await inviteCode({}); invateDetail.invatecode data?.invite_code || ; }; const getinviteStats async () { const { data } await invitationStats({}); Object.assign(invateDetail, data); }; const router useRouter(); const onDetail (val: any) { console.log(--点击跳转---val, val); // 把 val 传递到 另一个页面 并且拿到 该参数 // 1. query 传参参数在URL中显示 router.push({ path: /channel/merchantRates, query: { account: JSON.stringify(val), // 对象需要序列化 // id: val.id, // name: val.name, // 或者直接传递整个对象 // ...val, }, }); }; onMounted(() { getList(); getInviteCode(); getinviteStats(); }); /script style scoped langless .invate-box { padding: 20px; height: 150; border-radius: 8px; opacity: 1; background: linear-gradient(90.7deg, #6d87f1 0%, #9728fb 102.97%); color: #fff; } .detail-border { border-bottom: 1px solid #9728fb; color: #9728fb; width: 60px; } /style核心修复代码(排查了很多问题前端未更新最新数据、排序方法使用错误等等。 )但实际问题是arco 的排序 根据number类型来转的因为我的那个字段后端返回是字符串比如说“1100” “200” 那么根据字符串他是认定“1100”的1在前。而不是根据数字的大小 200在前。。。// 关键修复把 total_profit 转成数字解决字符串排序错乱 tableData.value data?.list ? data.list.map((item) ({ ...item, total_profit: Number(item.total_profit), // 字符串转数字 })) : [];再贴一下我封装的表格哪里使用排序的传递方法吧这个是一直没有问题的。记录一下template div classsuper-table-container !-- 查询区域 -- div v-if$slots.search classtable-search-area slot namesearch / /div !-- 工具栏 (导出、批量操作、) -- div v-if$slots.toolbar || (selectedRows.length 0 $slots[batch-actions]) classtable-toolbar div classtoolbar-left slot nametoolbar :selected-rowsselectedRows / !-- 批量操作 选择了才显示 -- div v-ifselectedRows.length 0 $slots[batch-actions] classbatch-actions span classselected-count已选择 {{ selectedRows.length }} 项/span slot namebatch-actions :selected-rowsselectedRows / /div /div /div !-- 表格 -- a-table :columnsfinalColumns :datacurrentPageData :borderedbordered :hoverablehoverable :stripestripe :loadingloading :sizesize :show-headershowHeader :stickysticky :scrollscroll :row-keyrowKey :paginationfalse :expandablefinalExpandable :row-selectionfinalRowSelection :sort-directions[ascend, descend] expandhandleExpand selecthandleSelect select-allhandleSelectAll row-clickhandleRowClick sorter-changehandleSort !-- 动态列插槽 -- template v-forcolumn in slotColumns #[column.slotName]{ record, rowIndex } slot :namecolumn.slotName :recordrecord :indexrowIndex / /template !-- 展开行插槽 -- template #expanded-row-render{ record } slot nameexpanded-row :recordrecord / /template !-- 空状态 -- template #empty slot nameempty a-empty :descriptionemptyText / /slot /template /a-table !-- 分页展示区域 -- div v-ifisPagination classtable-pagination-area a-pagination :show-page-sizeshowPageSize show-jumper show-total :totaltotal :currentpaginationState.current changeonPageChange page-size-changeonPageSize / /div /div /template script setup langts import { computed, ref, reactive, watch, useSlots, nextTick } from vue; import type { TableColumn, ExpandableConfig, RowSelectionConfig, // PaginationConfig, } from /types/table; interface Props { // 数据 data?: any[]; loading?: boolean; rowKey?: string; total?: number; showPageSize?: boolean; // 列配置 columns: TableColumn[]; // 功能 expandable?: ExpandableConfig; rowSelection?: boolean | RowSelectionConfig; scroll?: { x?: number | string; y?: number | string }; // 样式 bordered?: boolean; hoverable?: boolean; stripe?: boolean; size?: mini | small | medium | large; showHeader?: boolean; sticky?: boolean | number; // 其他 emptyText?: string; isPagination?: boolean; // 分页相关仅用于内部计算 pageSize?: number; currentPage?: number; // 新增从父组件接收当前页码 // 排序相关 sortParams?: { field?: string; order?: ascend | descend | undefined; }; remoteSort?: boolean; // 是否启用远程排序 } const props withDefaults(definePropsProps(), { data: () [], loading: false, rowKey: key, scrollbar: true, bordered: false, hoverable: true, stripe: false, size: medium, showHeader: true, sticky: false, rowSelection: false, emptyText: 暂无数据, total: 0, showPageSize: true, currentPage: 1, pageSize: 10, isPagination: true, }); const emit defineEmits{ update:selectedKeys: [keys: (string | number)[]]; select: [selectedKeys: (string | number)[], record: any]; select-all: [checked: boolean]; page-change: [data: { current: number; pageSize: number }]; change: [filters: any, sorter: any]; expand: [expanded: boolean, record: any]; row-click: [record: any, index: number]; sort-change: [sorter: { field: string; order: ascend | descend | undefined }]; update:sortParams: [params: { field: string; order: ascend | descend | undefined }]; }(); const slots useSlots(); const hasExpandedRowSlot computed(() !!slots[expanded-row]); // 选中行 const selectedRowKeys ref(string | number)[]([]); const selectedRows computed(() { return props.data.filter((item) selectedRowKeys.value.includes(item[props.rowKey])); }); // 更新列配置添加排序状态 const finalColumns computed(() { return props.columns.map((column) { const columnConfig { ...column, key: column.key || column.dataIndex, }; // 手动干预排序状态 if (props.remoteSort props.sortParams column.sorter) { columnConfig.sortOrder props.sortParams.field column.dataIndex ? props.sortParams.order : undefined; } return columnConfig; }); }); // 需要插槽的列 const slotColumns computed(() { return props.columns .filter((column) column.slotName) .map((column) ({ dataIndex: column.dataIndex, slotName: column.slotName, })); }); // 分页状态从父组件接收 const paginationState reactive({ current: props.currentPage, pageSize: 10, total: props.total || props.data.length, }); // 是否等待合并的标志 const pendingUpdate ref(false); // 防抖触发事件确保短时间内多次变化只触发一次 const debouncedEmitPageChange () { if (pendingUpdate.value) return; pendingUpdate.value true; // 使用 nextTick 确保所有同步更新完成 nextTick(() { emit(page-change, { current: paginationState.current, pageSize: paginationState.pageSize, }); pendingUpdate.value false; }); }; // 监听父组件的页大小变化 watch( () props.pageSize, (newSize) { paginationState.pageSize newSize; // 处理 debouncedEmitPageChange(); }, ); // 监听总数据量变化 watch( () props.total, (newTotal) { if (newTotal 0) { paginationState.total newTotal; } }, ); // 监听本地数据变化 watch( () props.data, (newData) { if (!props.total || props.total 0) { paginationState.total newData.length; } }, { immediate: true }, ); // 当前页数据本地分页 const currentPageData computed(() { // 如果有 total 说明是远程分页直接使用传入的 data if (props.total props.total 0) { return [...props.data]; // 解构创建新数组触发表格重新渲染 } return props.data; }); // 行选择配置 const finalRowSelection computed(() { if (props.rowSelection false) return undefined; const baseConfig: any { type: checkbox, showCheckedAll: true, selectedRowKeys: selectedRowKeys.value, onChange: (selectedKeys: (string | number)[]) { selectedRowKeys.value selectedKeys; emit(update:selectedKeys, selectedKeys); }, }; if (props.rowSelection true) { return baseConfig; } return { ...baseConfig, ...props.rowSelection, }; }); // 展开配置 const finalExpandable computed(() { if (!props.expandable) return undefined; const config { ...props.expandable }; // 关键必须设置 expandedRowRender 函数否则不会显示展开图标 // 如果用户提供了 expandedRowRender就使用用户的 // 如果用户没提供但有插槽就设置一个返回插槽内容的函数 if (!config.expandedRowRender hasExpandedRowSlot.value) { config.expandedRowRender (record: any) { // 这里返回一个占位符实际内容由插槽渲染 return slots[expanded-row]!({ record }); }; } return config; }); // 排序接受官方事件参数 const handleSort (dataIndex: string, direction: ascend | descend | ) { const order direction || undefined; if (props.remoteSort) { emit(sort-change, { field: dataIndex, order: order }); } }; const handleExpand (expanded: boolean, record: any) { emit(expand, expanded, record); }; const handleSelect (selectedKeys: (string | number)[], record: any) { selectedRowKeys.value selectedKeys; emit(select, selectedKeys, record); emit(update:selectedKeys, selectedKeys); }; const handleSelectAll (checked: boolean) { if (checked) { selectedRowKeys.value props.data.map((item) item[props.rowKey]); } else { selectedRowKeys.value []; } emit(select-all, checked); emit(update:selectedKeys, selectedRowKeys.value); }; const handleRowClick (record: any, index: number) { emit(row-click, record, index); }; // 分页处理 const onPageChange (current: any) { // console.log(--分页改变---val, current); paginationState.current current; debouncedEmitPageChange(); }; const onPageSize (pageSize: any) { // console.log(页数大小改变:, pageSize); paginationState.pageSize pageSize; debouncedEmitPageChange(); }; // 暴露方法 defineExpose({ selectedRowKeys, selectedRows, paginationState, clearSelection: () { selectedRowKeys.value []; }, selectAll: () { selectedRowKeys.value props.data.map((item) item[props.rowKey]); }, }); /script script langts export default { name: ArcoTable }; /script style langless .super-table-container { width: 100%; } .table-search-area { margin-bottom: 16px; padding: 16px; background: #fafafa; } .table-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding: 12px 16px; background: #fff; border-radius: 6px; } .toolbar-left { display: flex; align-items: center; gap: 16px; } .batch-actions { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #f2f3f5; border-radius: 4px; } .selected-count { color: #165dff; font-weight: 500; } .custom-pagination { margin-top: 16px; display: flex; justify-content: flex-end; } .arco-pagination-options .arco-select { min-width: 90px; } /* 分页 */ .table-pagination-area { display: flex; align-items: center; justify-content: end; margin-top: 16px; padding-top: 16px; /* border-top: 1px solid #f0f0f0; */ } /style

相关文章:

Arco design vue 表格排序踩坑

父组件&#xff1a;<template><div class"p-10"><!-- 商户管理 --><div class"invate-box placeholder:"><div class"flex items-center"><SvgIcon :name"user"></SvgIcon><div class&q…...

APK Editor Studio:从入门到精通的完整Android应用编辑指南

APK Editor Studio&#xff1a;从入门到精通的完整Android应用编辑指南 【免费下载链接】apk-editor-studio Powerful yet easy to use APK editor for PC and Mac. 项目地址: https://gitcode.com/gh_mirrors/ap/apk-editor-studio 在Android应用开发和逆向工程领域&am…...

清单来了:2026最新AI论文网站测评与推荐

2026年真正好用的AI论文网站&#xff0c;核心看生成的论文质量、低AI味、格式正确、学术适配四大指标。综合实测&#xff0c;千笔AI、ThouPen、豆包、DeepSeek、Grammarly 是当前最值得推荐的梯队&#xff0c;覆盖从免费到付费、从中文到英文、从文科到理工的全场景需求。 一、…...

Midscene.js从入门到精通:AI驱动的跨平台自动化技术指南

Midscene.js从入门到精通&#xff1a;AI驱动的跨平台自动化技术指南 【免费下载链接】midscene Let AI be your browser operator. 项目地址: https://gitcode.com/GitHub_Trending/mid/midscene 在数字化时代&#xff0c;软件界面的动态变化和跨平台兼容性给自动化测试…...

wflow工作流设计器:5分钟快速上手的企业流程自动化完整指南

wflow工作流设计器&#xff1a;5分钟快速上手的企业流程自动化完整指南 【免费下载链接】wflow workflow 工作流设计器&#xff0c;企业OA流程设计。表单流程设计界面操作超级简单&#xff01;&#xff01;普通用户也能分分钟上手&#xff0c;不需要专业知识。本设计器支持可视…...

好用还专业!盘点2026年备受推崇的一键生成论文工具

一天写完毕业论文在2026年已不再是天方夜谭。最新实测显示&#xff0c;一键生成论文工具正在颠覆传统写作方式&#xff0c;覆盖选题、文献、写作、降重、排版等核心场景&#xff0c;真正实现高效搞定论文&#xff0c;学生党必备神器。 一、全流程王者&#xff1a;一站式搞定论文…...

2026年专业金属链板输送带服务哪家强?TOP排名为你揭晓!

家人们&#xff0c;在工业生产领域&#xff0c;金属链板输送带那可是相当重要的设备&#xff0c;它的质量和服务直接影响着生产效率。今天咱就来聊聊 2026 年专业金属链板输送带服务的那些事儿&#xff0c;给大家揭晓一下排名情况&#xff0c;顺便看看哪家更值得咱们选择。冲突…...

做客户管理之前,先看看这 6 个教训

方案 A&#xff1a;传统开发方式分析 传统开发需要组建专业团队&#xff0c;包括产品经理、UI 设计师、前后端开发、测试工程师等。中等规模项目团队 5-8 人&#xff0c;开发周期 3-6 个月&#xff0c;人力成本 30-100 万。开发过程中需求沟通成本高&#xff0c;业务人员用自然…...

相机潜能解锁:从限制突破到专业创作

相机潜能解锁&#xff1a;从限制突破到专业创作 【免费下载链接】OpenMemories-Tweak Unlock your Sony cameras settings 项目地址: https://gitcode.com/gh_mirrors/op/OpenMemories-Tweak OpenMemories-Tweak作为一款专为索尼相机设计的系统级解锁工具&#xff0c;通…...

Windows 内网 Web 服务穿透方案推荐

Windows 内网 Web 服务穿透方案推荐 面向场景&#xff1a;内网机器为 Windows&#xff0c;需从公网或外网访问内网 HTTP/HTTPS Web 服务&#xff1b;优先选择相对不易被误报、来源清晰、可审计的方案。 关于「报毒」的说明 穿透类软件常被启发式引擎标为「风险/可疑」&#xf…...

AI赋能开发:让快马平台智能解析并生成17.100.c.cm规格的优化代码

最近在做一个需要处理特定规格数据的项目&#xff0c;遇到了一个有趣的开发场景&#xff1a;需要基于"17.100.c.cm"这样的参数组合来构建微服务架构。这个看似简单的字符串其实包含了多维度的技术参数&#xff0c;正好可以借助InsCode(快马)平台的AI辅助开发能力来高…...

如何在Windows上零配置运行Android应用?APK Installer的革命性方案

如何在Windows上零配置运行Android应用&#xff1f;APK Installer的革命性方案 【免费下载链接】APK-Installer An Android Application Installer for Windows 项目地址: https://gitcode.com/GitHub_Trending/ap/APK-Installer 你是否曾经遇到过这样的场景&#xff1a…...

如何在群晖NAS上部署百度网盘客户端:终极安装与配置指南

如何在群晖NAS上部署百度网盘客户端&#xff1a;终极安装与配置指南 【免费下载链接】synology-baiduNetdisk-package 项目地址: https://gitcode.com/gh_mirrors/sy/synology-baiduNetdisk-package 还在为群晖NAS与百度网盘之间的文件同步问题而烦恼吗&#xff1f;群晖…...

重构直播互动体验:BLiveChat的跨平台弹幕解决方案

重构直播互动体验&#xff1a;BLiveChat的跨平台弹幕解决方案 【免费下载链接】blivechat 用于OBS的仿YouTube风格的bilibili直播评论栏 项目地址: https://gitcode.com/gh_mirrors/bl/blivechat BLiveChat作为一款开源的B站直播弹幕工具&#xff0c;通过仿YouTube风格的…...

【亲测】OpenClaw怎么部署?2026年OpenClaw华为云8分钟搭建喂奶级教程

【亲测】OpenClaw怎么部署&#xff1f;2026年OpenClaw华为云8分钟搭建喂奶级教程。OpenClaw能做什么&#xff1f;OpenClaw怎么部署&#xff1f;本文面向零基础用户&#xff0c;完整说明在轻量服务器与本地Windows11、macOS、Linux系统中部署OpenClaw&#xff08;Clawdbot&#…...

光伏储能管理系统:绿虫赋能,破解行业流程痛点

光伏储能产业迎来高速发展期&#xff0c;但其全业务流程的复杂性却成为企业发展的桎梏。从项目开发的多环节审批&#xff0c;到建设阶段的进度质量管控&#xff0c;再到运维结算的数据协同&#xff0c;各环节割裂、部门协作不畅、数据杂乱无章等问题频发&#xff0c;不少企业负…...

基于MATLAB的模拟退火粒子群算法在含分布式电源配电网多目标优化中的应用

310.基于matlab的模拟退火粒子群算法对含分布式电源的配电网进行多目标优化&#xff0c;目标函数包括总有功网损、总投资与运行成本、电压稳定欲度。 和目标函数相关参数有单位分布式电源投资成本、运行成本&#xff0c;分布式电源设备使用年限、贴现率等。 经过优化得到最佳结…...

4步实现Android Studio本地化配置:从语言障碍到高效开发

4步实现Android Studio本地化配置&#xff1a;从语言障碍到高效开发 【免费下载链接】AndroidStudioChineseLanguagePack AndroidStudio中文插件(官方修改版本&#xff09; 项目地址: https://gitcode.com/gh_mirrors/an/AndroidStudioChineseLanguagePack 问题诊断&…...

[2026 职场洗牌系列 01] 程序员正在“杀死”自己的工作?科技行业高危预警

长久以来&#xff0c;学计算机&#xff08;CS&#xff09;在很多年轻人眼里就等同于拿到了通往高薪和阶层跃升的金钥匙。大家都觉得&#xff0c;只要把代码敲得溜&#xff0c;这辈子在职场上基本就稳了。可惜&#xff0c;到了2026年的今天&#xff0c;生成式AI正在毫不留情地把…...

英雄联盟智能工具League Akari:提升游戏体验的终极指南

英雄联盟智能工具League Akari&#xff1a;提升游戏体验的终极指南 【免费下载链接】League-Toolkit 兴趣使然的、简单易用的英雄联盟工具集。支持战绩查询、自动秒选等功能。基于 LCU API。 项目地址: https://gitcode.com/gh_mirrors/le/League-Toolkit League Akari是…...

OpenClaw备份策略:GLM-4.7-Flash智能管理本地与云端存储

OpenClaw备份策略&#xff1a;GLM-4.7-Flash智能管理本地与云端存储 1. 为什么需要智能备份方案 上周我的移动硬盘突然罢工&#xff0c;导致三个月的项目文档全部丢失。这次惨痛经历让我意识到&#xff1a;传统备份方式已经无法满足现代工作需求。手动备份不仅耗时耗力&#…...

STM32温湿度监控系统设计与实现

## 1. 工业生产线温湿度监控系统设计### 1.1 系统架构设计 基于STM32F103C8T6微控制器的工业级温湿度监控系统采用三层架构&#xff1a; - **感知层**&#xff1a;3个DHT22数字温湿度传感器 - **控制层**&#xff1a;STM32F103C8T6最小系统板 - **云平台层**&#xff1a;ESP826…...

Python AI 工具不是越多越好!——3个被低估但日均调用量破50万的轻量级用例工具(附内部灰度测试报告)

第一章&#xff1a;Python AI 工具不是越多越好&#xff01;——轻量级用例工具的价值重估在AI工程实践中&#xff0c;开发者常陷入“工具堆砌陷阱”&#xff1a;为一个文本清洗任务引入 Transformers&#xff0c;为简单分类部署完整 FastAPI ONNX Runtime Redis 缓存栈。这种…...

酷狗音乐API实战指南:解决音乐应用开发的三大核心痛点

酷狗音乐API实战指南&#xff1a;解决音乐应用开发的三大核心痛点 【免费下载链接】KuGouMusicApi 酷狗音乐 Node.js API service 项目地址: https://gitcode.com/gh_mirrors/ku/KuGouMusicApi 在构建现代音乐应用时&#xff0c;开发者常常面临歌词同步不精准、API接口分…...

SOME/IP服务发现(SD)避坑指南:从FindService到SubscribeACK,一次讲透所有配置参数与常见故障

SOME/IP服务发现实战手册&#xff1a;从参数配置到故障排查的完整指南 在车载以太网开发中&#xff0c;服务发现&#xff08;Service Discovery&#xff09;机制如同交通信号灯&#xff0c;协调着各个ECU节点之间的通信秩序。想象一下&#xff0c;当一辆智能汽车启动时&#xf…...

告别向日葵和TeamViewer!用你家路由器自带的DDNS功能,免费搭建Windows远程桌面(保姆级教程)

告别第三方远程工具&#xff1a;用路由器DDNS解锁Windows远程桌面全速体验 每次打开向日葵或TeamViewer时&#xff0c;那个转圈加载的进度条是否让你眉头紧锁&#xff1f;当免费版突然弹出"会话时长已达上限"的提示时&#xff0c;是否恨不得砸键盘&#xff1f;作为常…...

基于三相两电平逆变器的VSG并网系统:电压电流双闭环控制的仿真研究

VSG并网&#xff0c;基于三相两电平逆变器的虚拟同步机并网&#xff0c;电压电流双闭环控制 1.VSG 2.电压电流双闭环 3..提供相关参考文献 支持simulink2022以下版本&#xff0c;联系跟我说什么版本&#xff0c;我给转成你版本&#xff08;默认发2016b&#xff09;。最近在研究…...

CI/CD 流水线性能优化:从构建到部署

CI/CD 流水线性能优化&#xff1a;从构建到部署 前言 哥们&#xff0c;别整那些花里胡哨的理论。今天直接上硬菜——我在大厂一线优化 CI/CD 流水线性能的真实经验总结。作为一个白天写前端、晚上打鼓的硬核工程师&#xff0c;我对效率的追求就像对鼓点节奏的把控一样严格。 背…...

别再只盯着find了!Linux系统隐藏文件和进程的5种“花活”与排查指南

Linux系统隐匿技术深度解析&#xff1a;从防御视角看5种高级隐藏手法与实战排查 在Linux系统安全领域&#xff0c;攻击者与防御者的博弈从未停止。当普通管理员还在使用ls和ps检查系统时&#xff0c;高级攻击者早已掌握多种隐匿技术。本文将揭示五种超越常规认知的隐藏手法&…...

ESP32嵌入式系统设计与实现指南

1. 项目概述1.1 系统架构本项目基于ESP32主控芯片设计&#xff0c;采用模块化架构实现多功能嵌入式系统。系统包含以下核心模块&#xff1a;主控单元&#xff1a;ESP32-WROOM-32D模组电源管理&#xff1a;TPS63020升降压转换器传感器接口&#xff1a;I2C/SPI多协议兼容设计人机…...