From fb1cbbada498ec1493ee2502074785b6f8f58207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=8C=E7=B3=96=E5=8C=85=E5=AD=90?= Date: Tue, 24 Mar 2026 22:46:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=20Vue=202=20=E5=88=B0=20Vue?= =?UTF-8?q?=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 升级 vue 2.7.16 → 3.5.14 - 重构 slider.js:new Vue() 迁移到 createApp() - data 改为函数形式,移除 filters 改用 methods - 更新模板 tools.ejs:过滤器语法改为方法调用 - 代码风格优化:箭头函数、const/let、简化数组操作 Co-Authored-By: Claude Opus 4.6 --- themes/yilia/layout/_partial/tools.ejs | 2 +- themes/yilia/package-lock.json | 176 +++++++++++++++++---- themes/yilia/package.json | 2 +- themes/yilia/source-src/js/slider.js | 209 ++++++++++++------------- 4 files changed, 241 insertions(+), 148 deletions(-) diff --git a/themes/yilia/layout/_partial/tools.ejs b/themes/yilia/layout/_partial/tools.ejs index 2d559f2..9e4f1f4 100644 --- a/themes/yilia/layout/_partial/tools.ejs +++ b/themes/yilia/layout/_partial/tools.ejs @@ -60,7 +60,7 @@