From 28cc92d570750f66540ce8eb1aad691f41fb6c03 Mon Sep 17 00:00:00 2001 From: chenxi-20 <76168465+chenxi-20@users.noreply.github.com> Date: Fri, 3 Mar 2023 17:35:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(anchor):=20=E6=B7=BB=E5=8A=A0=E9=94=9A?= =?UTF-8?q?=E7=82=B9anchor=E7=BB=84=E4=BB=B6onchange=E4=BA=8B=E4=BB=B6=20(?= =?UTF-8?q?#35)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(anchor): 新增anchor组件第一个功能:基本使用 * feat(anchor): 修改anchor组件讨论意见,增加container api和maskClass类名 * fix(anchor): 修复anchor组件MD文档说明 * feat(anchor): 添加锚点anchor组件onchange事件 * fix(anchor): 修复review意见,取消行内样式 --- example/src/demo/pc/anchor/basic-usage.vue | 32 +++++-- example/src/demo/pc/anchor/on-change.vue | 87 ++++++++++++++++++++ example/src/demo/pc/anchor/set-container.vue | 42 ++++++++-- example/src/docs/zh-CN/anchor/on-change.md | 22 +++++ example/src/nav.config.comp.json | 4 + example/src/route.config.comp.js | 5 ++ packages/anchor/src/index.vue | 2 +- 7 files changed, 179 insertions(+), 15 deletions(-) create mode 100644 example/src/demo/pc/anchor/on-change.vue create mode 100644 example/src/docs/zh-CN/anchor/on-change.md diff --git a/example/src/demo/pc/anchor/basic-usage.vue b/example/src/demo/pc/anchor/basic-usage.vue index 9dc15dd2e..739e2df4e 100644 --- a/example/src/demo/pc/anchor/basic-usage.vue +++ b/example/src/demo/pc/anchor/basic-usage.vue @@ -1,12 +1,12 @@