From 43513f702cd573f8078ca582bc9ac264e707028e Mon Sep 17 00:00:00 2001 From: zhigang.li Date: Thu, 12 Apr 2018 17:49:55 +0800 Subject: [PATCH] add anchor component --- examples/app.vue | 1 + examples/main.js | 4 ++++ examples/routers/anchor.vue | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/anchor-link/index.js | 2 ++ src/components/anchor/anchor-link.vue | 45 +++++++++++++++++++++++++++++++++++++++++++++ src/components/anchor/anchor.vue | 189 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/anchor/index.js | 2 ++ src/index.js | 4 ++++ src/styles/components/anchor.less | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/styles/components/index.less | 1 + src/styles/custom.less | 5 ++++- src/utils/assist.js | 9 +++++++-- src/utils/dom.js | 2 +- 13 files changed, 434 insertions(+), 4 deletions(-) create mode 100644 examples/routers/anchor.vue create mode 100644 src/components/anchor-link/index.js create mode 100644 src/components/anchor/anchor-link.vue create mode 100644 src/components/anchor/anchor.vue create mode 100644 src/components/anchor/index.js create mode 100644 src/styles/components/anchor.less diff --git a/examples/app.vue b/examples/app.vue index e8cc10b..4da48f6 100644 --- a/examples/app.vue +++ b/examples/app.vue @@ -18,6 +18,7 @@ nav {