+
+
diff --git a/test/demo1.gif b/test/demo1.gif
deleted file mode 100644
index db5902e..0000000
Binary files a/test/demo1.gif and /dev/null differ
diff --git a/test/demo2.gif b/test/demo2.gif
deleted file mode 100644
index dc5b2d1..0000000
Binary files a/test/demo2.gif and /dev/null differ
diff --git a/test/demo3.gif b/test/demo3.gif
deleted file mode 100644
index d25a00d..0000000
Binary files a/test/demo3.gif and /dev/null differ
diff --git a/test/demo4.gif b/test/demo4.gif
deleted file mode 100644
index 6b497af..0000000
Binary files a/test/demo4.gif and /dev/null differ
diff --git a/test/test.html b/test/test.html
deleted file mode 100644
index 4009aa4..0000000
--- a/test/test.html
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
-
Document
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/website/deploy.sh b/website/deploy.sh
new file mode 100755
index 0000000..9920a66
--- /dev/null
+++ b/website/deploy.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env sh
+
+# 确保脚本抛出遇到的错误
+set -e
+
+# 生成静态文件
+npm run docs:build
+
+# 进入生成的文件夹
+cd ./public
+
+git init
+git add -A
+git commit -m 'deploy's
+
+# 如果发布到 https://chenxuan0000.github.io/vue-seamless-scroll
+git push -f https://github.com/chenxuan0000/vue-seamless-scroll master:gh-pages
+
+cd -
\ No newline at end of file
diff --git a/website/docs/.vuepress/components/Example01Basic.vue b/website/docs/.vuepress/components/Example01Basic.vue
new file mode 100644
index 0000000..99d1926
--- /dev/null
+++ b/website/docs/.vuepress/components/Example01Basic.vue
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+
+
diff --git a/website/docs/.vuepress/components/Example02Basic.vue b/website/docs/.vuepress/components/Example02Basic.vue
new file mode 100644
index 0000000..94d8b23
--- /dev/null
+++ b/website/docs/.vuepress/components/Example02Basic.vue
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+
diff --git a/website/docs/.vuepress/components/Example03Basic.vue b/website/docs/.vuepress/components/Example03Basic.vue
new file mode 100644
index 0000000..f57c027
--- /dev/null
+++ b/website/docs/.vuepress/components/Example03Basic.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
diff --git a/website/docs/.vuepress/components/Example04Basic.vue b/website/docs/.vuepress/components/Example04Basic.vue
new file mode 100644
index 0000000..a0767da
--- /dev/null
+++ b/website/docs/.vuepress/components/Example04Basic.vue
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+
diff --git a/website/docs/.vuepress/components/Example05Basic.vue b/website/docs/.vuepress/components/Example05Basic.vue
new file mode 100644
index 0000000..f076a0f
--- /dev/null
+++ b/website/docs/.vuepress/components/Example05Basic.vue
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+
diff --git a/website/docs/.vuepress/components/Example06Basic.vue b/website/docs/.vuepress/components/Example06Basic.vue
new file mode 100644
index 0000000..e257b3a
--- /dev/null
+++ b/website/docs/.vuepress/components/Example06Basic.vue
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+
diff --git a/website/docs/.vuepress/components/Example07Basic.vue b/website/docs/.vuepress/components/Example07Basic.vue
new file mode 100644
index 0000000..8788c45
--- /dev/null
+++ b/website/docs/.vuepress/components/Example07Basic.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
diff --git a/website/docs/.vuepress/components/Example08Basic.vue b/website/docs/.vuepress/components/Example08Basic.vue
new file mode 100644
index 0000000..583967c
--- /dev/null
+++ b/website/docs/.vuepress/components/Example08Basic.vue
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/website/docs/.vuepress/components/Example09Basic.vue b/website/docs/.vuepress/components/Example09Basic.vue
new file mode 100644
index 0000000..51787aa
--- /dev/null
+++ b/website/docs/.vuepress/components/Example09Basic.vue
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+
+
diff --git a/website/docs/.vuepress/components/Example10Basic.vue b/website/docs/.vuepress/components/Example10Basic.vue
new file mode 100644
index 0000000..482a633
--- /dev/null
+++ b/website/docs/.vuepress/components/Example10Basic.vue
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
diff --git a/website/docs/.vuepress/components/Example11Basic.vue b/website/docs/.vuepress/components/Example11Basic.vue
new file mode 100644
index 0000000..e9f9326
--- /dev/null
+++ b/website/docs/.vuepress/components/Example11Basic.vue
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
diff --git a/website/docs/.vuepress/config.js b/website/docs/.vuepress/config.js
new file mode 100644
index 0000000..8fc80c9
--- /dev/null
+++ b/website/docs/.vuepress/config.js
@@ -0,0 +1,144 @@
+const title = "vue-seamless-scroll";
+const path = require("path");
+const isDev = process.env.NODE_ENV === "development";
+
+module.exports = {
+ base: "/vue-seamless-scroll/",
+ locales: {
+ "/": {
+ lang: "en-US", // 将会被设置为 的 lang 属性
+ title,
+ description: "A simple, Seamless scrolling for Vue.js",
+ },
+ "/zh/": {
+ lang: "zh-CN",
+ title,
+ description: "一个简单的基于vue.js的无缝滚动",
+ },
+ },
+ head: [["link", { rel: "icon", href: `/favicon.ico` }]],
+ themeConfig: {
+ repo: "chenxuan0000/vue-seamless-scroll",
+ locales: {
+ "/": {
+ selectText: "Languages",
+ label: "English",
+ ariaLabel: "Languages",
+ editLinkText: "Edit this page on GitHub",
+ serviceWorker: {
+ updatePopup: {
+ message: "New content is available.",
+ buttonText: "Refresh",
+ },
+ },
+ algolia: {},
+ nav: [
+ { text: "Home", link: "/" },
+ { text: "Guide", link: "/guide/" },
+ { text: "Changelog", link: "/changelog/" },
+ ],
+ sidebar: {
+ "/guide/": [
+ {
+ title: "Guide",
+ collapsable: false,
+ children: [
+ "",
+ "usage",
+ "properties",
+ "events",
+ "note",
+ "issuses",
+ ],
+ },
+ {
+ title: "Examples",
+ collapsable: false,
+ children: [
+ "01-basic",
+ "02-direction-bottom",
+ "03-direction-right",
+ "04-step",
+ "05-hoverStop",
+ "06-singleStop",
+ "07-singleStopTime",
+ "08-switch",
+ "09-echart",
+ "10-array-property-update",
+ "11-array-length-update",
+ ],
+ },
+ ],
+ },
+ },
+ "/zh/": {
+ // 多语言下拉菜单的标题
+ selectText: "选择语言",
+ // 该语言在下拉菜单中的标签
+ label: "简体中文",
+ // 编辑链接文字
+ editLinkText: "在 GitHub 上编辑此页",
+ // Service Worker 的配置
+ serviceWorker: {
+ updatePopup: {
+ message: "发现新内容可用.",
+ buttonText: "刷新",
+ },
+ },
+ // 当前 locale 的 algolia docsearch 选项
+ algolia: {},
+ nav: [
+ { text: "主页", link: "/zh/" },
+ { text: "指南", link: "/zh/guide/" },
+ { text: "更新日志", link: "/zh/changelog/" },
+ ],
+ sidebar: {
+ "/zh/guide/": [
+ {
+ title: "指南",
+ collapsable: false,
+ children: [
+ "",
+ "usage",
+ "properties",
+ "events",
+ "note",
+ "issuses",
+ ],
+ },
+ {
+ title: "示例",
+ collapsable: false,
+ children: [
+ "01-basic",
+ "02-direction-bottom",
+ "03-direction-right",
+ "04-step",
+ "05-hoverStop",
+ "06-singleStop",
+ "07-singleStopTime",
+ "08-switch",
+ "09-echart",
+ "10-array-property-update",
+ "11-array-length-update",
+ ],
+ },
+ ],
+ },
+ },
+ },
+ },
+ dest: "public",
+ configureWebpack: {
+ resolve: {
+ alias: {
+ "vue-seamless-scroll": path.resolve(
+ __dirname,
+ isDev
+ ? "../../../src/index.js"
+ : "../../node_modules/vue-seamless-scroll"
+ ),
+ },
+ },
+ },
+};
diff --git a/website/docs/.vuepress/styles/index.styl b/website/docs/.vuepress/styles/index.styl
new file mode 100644
index 0000000..74a3d03
--- /dev/null
+++ b/website/docs/.vuepress/styles/index.styl
@@ -0,0 +1,2 @@
+// div.theme-default-content:not(.custom) { max-width: 1024px; }
+
diff --git a/website/docs/README.md b/website/docs/README.md
new file mode 100644
index 0000000..7bb6eaf
--- /dev/null
+++ b/website/docs/README.md
@@ -0,0 +1,22 @@
+---
+home: true
+heroText: vue-seamless-scroll
+tagline: A simple, Seamless scrolling for Vue.js.
+actionText: Get Started →
+actionLink: /guide/
+features:
+- title: Initial configuration support
+ details: current support for seamless scrolling, single-step scrolling, and manual switching support for horizontal direction.
+- title: Compatible with multiple platforms
+ details: IE9+、Firefox、Chrome、Safari、iOS、Android。
+- title: Multi-technology stack version support
+ details: Currently supports Vue2 and JavaScript versions.
+footer: If you have any suggestions or questions, please go to issues.
+---
+
+### JavaScript Version
+If you want js to scroll seamlessly (without dependencies) you can switch to here [seamscroll](https://github.com/chenxuan0000/seamless-scroll).
+
+
+### Contribution
+Welcome to give some Suggestions and optimizations, and look forward to your `Pull Request`.
\ No newline at end of file
diff --git a/website/docs/changelog/README.md b/website/docs/changelog/README.md
new file mode 100644
index 0000000..c604d67
--- /dev/null
+++ b/website/docs/changelog/README.md
@@ -0,0 +1,26 @@
+---
+sidebar: auto
+---
+# Changelog
+
+## 1.1.23 (2020-12-06)
+
+* fixed issues: [#138](https://github.com/chenxuan0000/vue-seamless-scroll/issues/138) [#136](https://github.com/chenxuan0000/vue-seamless-scroll/issues/136) [#127](https://github.com/chenxuan0000/vue-seamless-scroll/issues/127)
+
+## 1.1.21 (2020-04-05)
+
+* fixed issues: [#68](https://github.com/chenxuan0000/vue-seamless-scroll/issues/68) [#87](https://github.com/chenxuan0000/vue-seamless-scroll/issues/87) [#89](https://github.com/chenxuan0000/vue-seamless-scroll/issues/89)
+
+## 1.1.20 (2020-04-05)
+
+* Document update, source code fine-tuning.
+
+
+## 1.1.17 (2019-07-29)
+
+* fixed: The step attribute is set to a decimal point below 1 and scrolls up with a sway.
+* fixed: The offsetWidth is rounded off, causing the error to be calculated. The horizontal scrolling is not on one line, and a blank will appear.
+* fixed: If single-step scrolling is set, the step needs to be a single-numbered divisor, otherwise the position of the single-step scrolling end cannot be guaranteed.
+* update: Added navigation configuration, whether the left and right scrolling shows the controller button. When the value is true, autoPlay automatically becomes false.
+
+
diff --git a/website/docs/guide/01-basic.md b/website/docs/guide/01-basic.md
new file mode 100644
index 0000000..1ffc365
--- /dev/null
+++ b/website/docs/guide/01-basic.md
@@ -0,0 +1,85 @@
+# 01 - 默认配置
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/guide/02-direction-bottom.md b/website/docs/guide/02-direction-bottom.md
new file mode 100644
index 0000000..05fe18d
--- /dev/null
+++ b/website/docs/guide/02-direction-bottom.md
@@ -0,0 +1,93 @@
+# 02 - 向下滚动
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/guide/03-direction-right.md b/website/docs/guide/03-direction-right.md
new file mode 100644
index 0000000..3277a6a
--- /dev/null
+++ b/website/docs/guide/03-direction-right.md
@@ -0,0 +1,70 @@
+# 03 - 向右滚动
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/guide/04-step.md b/website/docs/guide/04-step.md
new file mode 100644
index 0000000..c549e6f
--- /dev/null
+++ b/website/docs/guide/04-step.md
@@ -0,0 +1,93 @@
+# 04 - 滚动速度
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/guide/05-hoverStop.md b/website/docs/guide/05-hoverStop.md
new file mode 100644
index 0000000..262c029
--- /dev/null
+++ b/website/docs/guide/05-hoverStop.md
@@ -0,0 +1,94 @@
+# 05 - 禁用鼠标悬停停止
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/guide/06-singleStop.md b/website/docs/guide/06-singleStop.md
new file mode 100644
index 0000000..99ddf26
--- /dev/null
+++ b/website/docs/guide/06-singleStop.md
@@ -0,0 +1,101 @@
+# 06 - 单步停顿
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+```
diff --git a/website/docs/guide/07-singleStopTime.md b/website/docs/guide/07-singleStopTime.md
new file mode 100644
index 0000000..a99ff61
--- /dev/null
+++ b/website/docs/guide/07-singleStopTime.md
@@ -0,0 +1,101 @@
+# 07 - 单行停顿时间(singleHeight,waitTime)
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+```
diff --git a/website/docs/guide/08-switch.md b/website/docs/guide/08-switch.md
new file mode 100644
index 0000000..2931559
--- /dev/null
+++ b/website/docs/guide/08-switch.md
@@ -0,0 +1,71 @@
+# 08 - switch控制切换
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/guide/09-echart.md b/website/docs/guide/09-echart.md
new file mode 100644
index 0000000..017aeab
--- /dev/null
+++ b/website/docs/guide/09-echart.md
@@ -0,0 +1,118 @@
+# 09 - echart图表无缝滚动
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/guide/10-array-property-update.md b/website/docs/guide/10-array-property-update.md
new file mode 100644
index 0000000..84bb965
--- /dev/null
+++ b/website/docs/guide/10-array-property-update.md
@@ -0,0 +1,109 @@
+# 10 - 复杂结构数组属性更新问题
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/guide/11-array-length-update.md b/website/docs/guide/11-array-length-update.md
new file mode 100644
index 0000000..cf31380
--- /dev/null
+++ b/website/docs/guide/11-array-length-update.md
@@ -0,0 +1,109 @@
+# 11 - 滚动列表动态追加数据
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/guide/README.md b/website/docs/guide/README.md
new file mode 100644
index 0000000..994fe7d
--- /dev/null
+++ b/website/docs/guide/README.md
@@ -0,0 +1,16 @@
+# Installation
+
+## NPM
+
+ npm install vue-seamless-scroll --save
+
+## Yarn
+
+ yarn add vue-seamless-scroll
+
+## browser
+
+```html
+
+
+```
diff --git a/website/docs/guide/events.md b/website/docs/guide/events.md
new file mode 100644
index 0000000..a4d0c67
--- /dev/null
+++ b/website/docs/guide/events.md
@@ -0,0 +1,23 @@
+# Events
+
+```vue
+
+
+
+
+
+````
+
+## ScrollEnd
+
+```javascript
+ ScrollEnd: function(){
+ console.log("ScrollEnd")
+ }
+```
+
diff --git a/website/docs/guide/examples.md b/website/docs/guide/examples.md
new file mode 100644
index 0000000..fb70958
--- /dev/null
+++ b/website/docs/guide/examples.md
@@ -0,0 +1,21 @@
+# Examples
+
+## Basic
+
+
+
+## Events
+
+
+
+## Multiple Grids
+
+
+
+## Drag allow/ignore elements
+
+Ignore drag on certain elements and allow on on others.
+
+Click and drag the dots on the corner of each item to reposition
+
+
diff --git a/website/docs/guide/issuses.md b/website/docs/guide/issuses.md
new file mode 100644
index 0000000..72252e0
--- /dev/null
+++ b/website/docs/guide/issuses.md
@@ -0,0 +1,11 @@
+# Issues solution
+
+1、**`Event cannot be duplicated`**
+
+This plugin does not make a deep copy of the node (cl (true) of jq)
+
+Solution
+
+> 1. The event agent binds the parent element to the corresponding event and makes event completions on the required child elements. (recommend)
+
+> 2. A simple direct native js for `addEventListener`, there is a problem with asynchronous data can not be bound. (Not recommended)
diff --git a/website/docs/guide/note.md b/website/docs/guide/note.md
new file mode 100644
index 0000000..c6d0194
--- /dev/null
+++ b/website/docs/guide/note.md
@@ -0,0 +1,13 @@
+# Individual special configuration items
+
+- 1.The outermost container needs to be set manually`width height overflow:hidden`.
+
+- 2.The left and right seamless rolling needs to be set for the main content area (that is, the default slot slots)`css width`(otherwise, the actual width cannot be calculated correctly). You can also set it to `display:flex;` without setting the `css width` property.
+
+- 3.The step value is not recommended to be too small, otherwise there will be carton effect.(If single-step scrolling is set, the step needs to be a divisor of the single-step size, otherwise the position of the single-step scrolling end cannot be guaranteed to be accurate. ~~~~~, such as single step 30, step can not be 4).
+
+- 4.You need to set when you need to manually switch left and right to scroll`autoPlay:false`(Starting with version 1.1.17, you only need to set `navigation:false`),(The loop is not currently supported).
+
+- 5.Provides `slot left-switch || right-switch` you can freely define the button styles you want. The outer div is positioned in the middle,the distance from both sides can be adjusted by the switchOffset parameter.
+
+- 6.When the button reaches the boundary position, it automatically adds a definition to the state button that cannot be clicked.`switchDisabledClass: 'disabled'`,you can configure it as needed.
\ No newline at end of file
diff --git a/website/docs/guide/properties.md b/website/docs/guide/properties.md
new file mode 100644
index 0000000..19d3119
--- /dev/null
+++ b/website/docs/guide/properties.md
@@ -0,0 +1,134 @@
+# Properties
+
+## data
+
+- type: `Array`
+- required: `true`
+
+无缝滚动 list 数据。
+
+组件内部只关注 data 数组的 length。
+
+## classOption
+
+### step
+
+- type: `Number`
+- required: `false`
+- default:`1`
+
+数值越大速度滚动越快。
+
+step 值不建议太小,不然会有卡顿效果(如果设置了单步滚动,step 需是单步大小的约数,否则无法保证单步滚动结束的位置是否准确。~~~~~,比如单步设置的 30,step 不能为 4)。
+
+### limitMoveNum
+
+- type: `Number`
+- required: `false`
+- default:`5`
+
+开启无缝滚动的数据量。
+
+### hoverStop
+
+- type: `Boolean`
+- required: `false`
+- default:`false`
+
+是否启用鼠标 hover 控制。
+
+### direction
+
+- type: `Number`
+- required: `false`
+- default:`1`
+
+方向: 0 往下 1 往上 2 向左 3 向右。
+
+### openTouch
+
+- type: `Boolean`
+- required: `false`
+- default:`true`
+
+移动端开启 touch 滑动。
+
+### singleHeight
+
+- type: `Number`
+- required: `false`
+- default:`0`
+
+单步运动停止的高度(默认值 0 是无缝不停止的滚动),direction 为 0|1 时生效。
+
+### singleWidth
+
+- type: `Number`
+- required: `false`
+- default:`0`
+
+单步运动停止的宽度(默认值 0 是无缝不停止的滚动),direction 为 2|3 时生效。
+
+### waitTime
+
+- type: `Number`
+- required: `false`
+- default:`1000`
+
+单步停止等待时间(默认值 1000ms)。
+
+### switchOffset
+
+- type: `Number`
+- required: `false`
+- default:`30`
+
+左右切换按钮距离左右边界的边距(px)。
+
+### autoPlay
+
+- type: `Boolean`
+- required: `false`
+- default:`true`
+
+需要实现手动切换左右滚动的时候,必须设置`autoPlay:false`(1.1.17 版本开始,只需要设置`navigation:false`),目前不支持环路。
+
+### switchSingleStep
+
+- type: `Number`
+- required: `false`
+- default:`134`
+
+手动单步切换 step 值(px)。
+
+### switchDelay
+
+- type: `Number`
+- required: `false`
+- default:`400`
+
+单步切换的动画时间(ms)。
+
+### switchDisabledClass
+
+- type: `String`
+- required: `false`
+- default:`disabled`
+
+不可以点击状态的 switch 按钮父元素的类名。
+
+### isSingleRemUnit
+
+- type: `Boolean`
+- required: `false`
+- default:`false`
+
+singleHeight and singleWidth 是否开启 rem 度量。
+
+### navigation
+
+- type: `Boolean`
+- required: `false`
+- default:`false`
+
+左右方向的滚动是否显示控制器按钮,true 的时候 autoPlay 自动变为 false。
diff --git a/website/docs/guide/usage.md b/website/docs/guide/usage.md
new file mode 100644
index 0000000..758275f
--- /dev/null
+++ b/website/docs/guide/usage.md
@@ -0,0 +1,105 @@
+# Usage
+
+## Register Component
+
+```javascript
+// **main.js**
+// 1.golbal install
+import Vue from 'vue'
+import scroll from 'vue-seamless-scroll'
+Vue.use(scroll)
+
+// Or you can set the globally registered component name yourself. The default registered component name is vue-tableau-slider
+Vue.use(scroll,{componentName: 'scroll-seamless'})
+
+// 2.install alone
+
+```
+
+## Use Component
+
+```vue
+
+
+
+
+
+
+
+
+
+```
diff --git a/website/docs/zh/README.md b/website/docs/zh/README.md
new file mode 100644
index 0000000..90f91b0
--- /dev/null
+++ b/website/docs/zh/README.md
@@ -0,0 +1,22 @@
+---
+home: true
+heroText: vue-seamless-scroll
+tagline: 一个简单的基于vue.js的无缝滚动
+actionText: 快速开始 →
+actionLink: /zh/guide/
+features:
+- title: 多样化配置支持
+ details: 目前支持上下左右无缝滚动,单步滚动,以及支持水平方向的手动切换功能。
+- title: 兼容多平台
+ details: IE9+、Firefox、Chrome、Safari、iOS、Android。
+- title: 多技术栈版本支持
+ details: 目前有Vue2、JavaScript版本。
+footer: 如有建议和疑问请前往issues。
+---
+
+### JavaScript版本
+如果你想要js无缝滚动(无依赖)你可以切换到这里[seamless-scroll](https://github.com/chenxuan0000/seamless-scroll)。
+
+
+### 贡献
+欢迎给出一些意见和优化,期待你的 `Pull Request`。
\ No newline at end of file
diff --git a/website/docs/zh/changelog/README.md b/website/docs/zh/changelog/README.md
new file mode 100644
index 0000000..7321269
--- /dev/null
+++ b/website/docs/zh/changelog/README.md
@@ -0,0 +1,25 @@
+---
+sidebar: auto
+---
+# 更新日志
+
+## 1.1.23 (2020-12-06)
+
+* fixed issues: [#138](https://github.com/chenxuan0000/vue-seamless-scroll/issues/138) [#136](https://github.com/chenxuan0000/vue-seamless-scroll/issues/136) [#127](https://github.com/chenxuan0000/vue-seamless-scroll/issues/127)
+## 1.1.21 (2020-04-05)
+
+* fixed issues: [#68](https://github.com/chenxuan0000/vue-seamless-scroll/issues/68) [#87](https://github.com/chenxuan0000/vue-seamless-scroll/issues/87) [#89](https://github.com/chenxuan0000/vue-seamless-scroll/issues/89)
+
+
+## 1.1.20 (2020-04-05)
+
+* 文档更新,源码微调
+
+## 1.1.17 (2019-07-29)
+
+* fixed: step属性设置为1以下的小数点,向上滚动有卡顿的晃动。
+* fixed: offsetWidth四舍五入,导致计算出误差,水平方向的滚动两行不一行上,会出现空白。
+* fixed: 如果设置了单步滚动,step需是单步大小的约数,否则无法保证单步滚动结束的位置是否准确。
+* update: 新增navigation配置,左右方向的滚动是否显示控制器按钮,值为true的时候autoPlay自动变为false。
+
+
diff --git a/website/docs/zh/guide/01-basic.md b/website/docs/zh/guide/01-basic.md
new file mode 100644
index 0000000..1ffc365
--- /dev/null
+++ b/website/docs/zh/guide/01-basic.md
@@ -0,0 +1,85 @@
+# 01 - 默认配置
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/zh/guide/02-direction-bottom.md b/website/docs/zh/guide/02-direction-bottom.md
new file mode 100644
index 0000000..05fe18d
--- /dev/null
+++ b/website/docs/zh/guide/02-direction-bottom.md
@@ -0,0 +1,93 @@
+# 02 - 向下滚动
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/zh/guide/03-direction-right.md b/website/docs/zh/guide/03-direction-right.md
new file mode 100644
index 0000000..3277a6a
--- /dev/null
+++ b/website/docs/zh/guide/03-direction-right.md
@@ -0,0 +1,70 @@
+# 03 - 向右滚动
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/zh/guide/04-step.md b/website/docs/zh/guide/04-step.md
new file mode 100644
index 0000000..c549e6f
--- /dev/null
+++ b/website/docs/zh/guide/04-step.md
@@ -0,0 +1,93 @@
+# 04 - 滚动速度
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/zh/guide/05-hoverStop.md b/website/docs/zh/guide/05-hoverStop.md
new file mode 100644
index 0000000..262c029
--- /dev/null
+++ b/website/docs/zh/guide/05-hoverStop.md
@@ -0,0 +1,94 @@
+# 05 - 禁用鼠标悬停停止
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/zh/guide/06-singleStop.md b/website/docs/zh/guide/06-singleStop.md
new file mode 100644
index 0000000..99ddf26
--- /dev/null
+++ b/website/docs/zh/guide/06-singleStop.md
@@ -0,0 +1,101 @@
+# 06 - 单步停顿
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+```
diff --git a/website/docs/zh/guide/07-singleStopTime.md b/website/docs/zh/guide/07-singleStopTime.md
new file mode 100644
index 0000000..a99ff61
--- /dev/null
+++ b/website/docs/zh/guide/07-singleStopTime.md
@@ -0,0 +1,101 @@
+# 07 - 单行停顿时间(singleHeight,waitTime)
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+```
diff --git a/website/docs/zh/guide/08-switch.md b/website/docs/zh/guide/08-switch.md
new file mode 100644
index 0000000..2931559
--- /dev/null
+++ b/website/docs/zh/guide/08-switch.md
@@ -0,0 +1,71 @@
+# 08 - switch控制切换
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/zh/guide/09-echart.md b/website/docs/zh/guide/09-echart.md
new file mode 100644
index 0000000..017aeab
--- /dev/null
+++ b/website/docs/zh/guide/09-echart.md
@@ -0,0 +1,118 @@
+# 09 - echart图表无缝滚动
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/zh/guide/10-array-property-update.md b/website/docs/zh/guide/10-array-property-update.md
new file mode 100644
index 0000000..84bb965
--- /dev/null
+++ b/website/docs/zh/guide/10-array-property-update.md
@@ -0,0 +1,109 @@
+# 10 - 复杂结构数组属性更新问题
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/zh/guide/11-array-length-update.md b/website/docs/zh/guide/11-array-length-update.md
new file mode 100644
index 0000000..cf31380
--- /dev/null
+++ b/website/docs/zh/guide/11-array-length-update.md
@@ -0,0 +1,109 @@
+# 11 - 滚动列表动态追加数据
+
+
+
+
+
+```vue
+
+
+
+
+
+
+
+
+
+
+```
+
diff --git a/website/docs/zh/guide/README.md b/website/docs/zh/guide/README.md
new file mode 100644
index 0000000..f8a59cb
--- /dev/null
+++ b/website/docs/zh/guide/README.md
@@ -0,0 +1,16 @@
+# 安装
+
+## NPM
+
+ npm install vue-seamless-scroll --save
+
+## Yarn
+
+ yarn add vue-seamless-scroll
+
+## browser
+
+```html
+
+
+```
diff --git a/website/docs/zh/guide/events.md b/website/docs/zh/guide/events.md
new file mode 100644
index 0000000..533062b
--- /dev/null
+++ b/website/docs/zh/guide/events.md
@@ -0,0 +1,23 @@
+# 回调事件
+
+```vue
+
+
+
+
+
+````
+
+## ScrollEnd
+
+```javascript
+ ScrollEnd: function(){
+ console.log("ScrollEnd")
+ }
+```
+
diff --git a/website/docs/zh/guide/examples.md b/website/docs/zh/guide/examples.md
new file mode 100644
index 0000000..fb70958
--- /dev/null
+++ b/website/docs/zh/guide/examples.md
@@ -0,0 +1,21 @@
+# Examples
+
+## Basic
+
+
+
+## Events
+
+
+
+## Multiple Grids
+
+
+
+## Drag allow/ignore elements
+
+Ignore drag on certain elements and allow on on others.
+
+Click and drag the dots on the corner of each item to reposition
+
+
diff --git a/website/docs/zh/guide/issuses.md b/website/docs/zh/guide/issuses.md
new file mode 100644
index 0000000..32f77c0
--- /dev/null
+++ b/website/docs/zh/guide/issuses.md
@@ -0,0 +1,11 @@
+# 常见Issues
+
+1、**`事件无法被复制的问题`**
+
+组件本身没有对copy的html做一个节点的深度事件复制(类似jq的clone(true))
+
+解决方法
+
+> 1.事件代理,给父元素绑定对应事件,在需要的子元素上进行事件补获。(推荐)
+
+> 2.简单的直接原生js进行`addEventListener`,存在异步数据无法绑定上问题。(不推荐)
diff --git a/website/docs/zh/guide/note.md b/website/docs/zh/guide/note.md
new file mode 100644
index 0000000..b185377
--- /dev/null
+++ b/website/docs/zh/guide/note.md
@@ -0,0 +1,14 @@
+# 注意项
+
+- 1.最外层容器需要手动设置`width、height、overflow:hidden`
+
+- 2.左右的无缝滚动需要给主内容区域(即默认slot插槽提供)设定合适的`css width`属性(否则无法正确计算实际宽度)。
+ 也可以通过给他设置为`display:flex;`无需设置`css width`属性
+
+- 3.step值不建议太小,不然会有卡顿效果(如果设置了单步滚动,step需是单步大小的约数,否则无法保证单步滚动结束的位置是否准确。~~~~~,比如单步设置的30,step不能为4)
+
+- 4.需要实现手动切换左右滚动的时候,必须设置`autoPlay:false`(1.1.17版本开始,只需要设置`navigation:false`),目前不支持环路
+
+- 5.提供了`slot left-switch || right-switch`可以自由定义需要的按钮样式 外层有div已经定位了位置居中,距离两边侧的距离可以通过switchOffset参数调整
+
+- 6.当按钮到达边界位置,会自动为无法点击状态按钮加上定义的`switchDisabledClass: 'disabled'`,可以按需配置
\ No newline at end of file
diff --git a/website/docs/zh/guide/properties.md b/website/docs/zh/guide/properties.md
new file mode 100644
index 0000000..c745df3
--- /dev/null
+++ b/website/docs/zh/guide/properties.md
@@ -0,0 +1,134 @@
+# 组件配置
+
+## data
+
+- type: `Array`
+- required: `true`
+
+无缝滚动 list 数据。
+
+组件内部只关注 data 数组的 length。
+
+## classOption
+
+### step
+
+- type: `Number`
+- required: `false`
+- default:`1`
+
+数值越大速度滚动越快。
+
+step 值不建议太小,不然会有卡顿效果(如果设置了单步滚动,step 需是单步大小的约数,否则无法保证单步滚动结束的位置是否准确。~~~~~,比如单步设置的 30,step 不能为 4)。
+
+### limitMoveNum
+
+- type: `Number`
+- required: `false`
+- default:`5`
+
+开启无缝滚动的数据量。
+
+### hoverStop
+
+- type: `Boolean`
+- required: `false`
+- default:`false`
+
+是否启用鼠标 hover 控制。
+
+### direction
+
+- type: `Number`
+- required: `false`
+- default:`1`
+
+方向: 0 往下 1 往上 2 向左 3 向右。
+
+### openTouch
+
+- type: `Boolean`
+- required: `false`
+- default:`true`
+
+移动端开启 touch 滑动。
+
+### singleHeight
+
+- type: `Number`
+- required: `false`
+- default:`0`
+
+单步运动停止的高度(默认值 0 是无缝不停止的滚动),direction 为 0|1 时生效。
+
+### singleWidth
+
+- type: `Number`
+- required: `false`
+- default:`0`
+
+单步运动停止的宽度(默认值 0 是无缝不停止的滚动),direction 为 2|3 时生效。
+
+### waitTime
+
+- type: `Number`
+- required: `false`
+- default:`1000`
+
+单步停止等待时间(默认值 1000ms)。
+
+### switchOffset
+
+- type: `Number`
+- required: `false`
+- default:`30`
+
+左右切换按钮距离左右边界的边距(px)。
+
+### autoPlay
+
+- type: `Boolean`
+- required: `false`
+- default:`true`
+
+需要实现手动切换左右滚动的时候,必须设置`autoPlay:false`(1.1.17 版本开始,只需要设置`navigation:false`),目前不支持环路。
+
+### switchSingleStep
+
+- type: `Number`
+- required: `false`
+- default:`134`
+
+手动单步切换 step 值(px)。
+
+### switchDelay
+
+- type: `Number`
+- required: `false`
+- default:`400`
+
+单步切换的动画时间(ms)。
+
+### switchDisabledClass
+
+- type: `String`
+- required: `false`
+- default:`disabled`
+
+不可以点击状态的 switch 按钮父元素的类名。
+
+### isSingleRemUnit
+
+- type: `Boolean`
+- required: `false`
+- default:`false`
+
+singleHeight and singleWidth 是否开启 rem 度量。
+
+### navigation
+
+- type: `Boolean`
+- required: `false`
+- default:`false`
+
+左右方向的滚动是否显示控制器按钮,true 的时候 autoPlay 自动变为 false。
diff --git a/website/docs/zh/guide/usage.md b/website/docs/zh/guide/usage.md
new file mode 100644
index 0000000..29c1f3f
--- /dev/null
+++ b/website/docs/zh/guide/usage.md
@@ -0,0 +1,105 @@
+# 使用
+
+## 注册组件
+
+```javascript
+// **main.js**
+// 1.全局 install
+import Vue from 'vue'
+import scroll from 'vue-seamless-scroll'
+Vue.use(scroll)
+
+// 或者你可以自己设置全局注册的组件名 默认注册的组件名是 vue-seamless-scroll
+Vue.use(scroll,{componentName: 'scroll-seamless'})
+
+// 2.单个.vue文件局部注册
+
+```
+
+## 使用组件
+
+```vue
+
+
+
+
+
+
+
+
+
+```
diff --git a/website/package.json b/website/package.json
new file mode 100644
index 0000000..03e2210
--- /dev/null
+++ b/website/package.json
@@ -0,0 +1,28 @@
+{
+ "name": "vue-seamless-scroll-website",
+ "version": "1.0.0",
+ "description": "vue-seamless-scroll website",
+ "author": "chenxuan",
+ "license": "MIT",
+ "private": false,
+ "scripts": {
+ "docs:dev": "sudo vuepress dev docs",
+ "docs:build": "sudo vuepress build docs",
+ "docs:deploy": "sudo ./deploy.sh"
+ },
+ "dependencies": {
+ "echarts": "^4.0.0",
+ "vue-seamless-scroll": "^1.1.21"
+ },
+ "devDependencies": {
+ "@vuepress/plugin-back-to-top": "^1.6.0",
+ "@vuepress/plugin-google-analytics": "^1.6.0",
+ "vuepress-plugin-seo": "^0.1.4",
+ "vuepress-plugin-sitemap": "^2.3.1",
+ "vuepress": "^1.7.1",
+ "vuepress-plugin-serve": "^2.0.4"
+ },
+ "resolutions": {
+ "watchpack": "1.6.1"
+ }
+}
diff --git a/website/public b/website/public
new file mode 160000
index 0000000..5542083
--- /dev/null
+++ b/website/public
@@ -0,0 +1 @@
+Subproject commit 5542083b845e834b7f8b93cb01fecac960c2d43a