├── .browserslistrc ├── postcss.config.js ├── public ├── favicon.ico └── index.html ├── docs ├── zh-CN │ ├── browser-compatibility.md │ ├── README.md │ ├── params.md │ ├── quick-start.md │ └── examples.md ├── browser-compatibility.md ├── .vuepress │ ├── enhanceApp.js │ ├── styles │ │ └── index.styl │ ├── config.js │ └── public │ │ └── vue-directive-window.umd.min.js ├── README.md ├── quick-start.md ├── params.md └── examples.md ├── .prettierrc.js ├── src ├── config │ ├── constant.js │ └── default-params.js ├── main.js └── libs │ ├── validate.js │ ├── maximize.js │ ├── event-binding.js │ ├── move.js │ ├── common.js │ └── resize.js ├── dist ├── demo.html └── vue-directive-window.umd.min.js ├── babel.config.js ├── .gitignore ├── .eslintrc.js ├── script ├── deploy.sh ├── dist-copy.js └── file-watch.js ├── vue.config.js ├── LICENSE ├── test.html ├── package.json ├── README.zh-CN.md └── README.md /.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | not ie <= 8 3 | last 2 versions 4 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | autoprefixer: {}, 4 | }, 5 | }; 6 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Array-Huang/vue-directive-window/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /docs/zh-CN/browser-compatibility.md: -------------------------------------------------------------------------------- 1 | # 浏览器兼容性 2 | | IE10 | IE11 | Chrome | 3 | | :---: | :---: | :---: | 4 | | OK | OK | OK | -------------------------------------------------------------------------------- /docs/browser-compatibility.md: -------------------------------------------------------------------------------- 1 | # Browser Compatibility 2 | | IE10 | IE11 | Chrome | 3 | | :---: | :---: | :---: | 4 | | OK | OK | OK | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | trailingComma: 'es5', 3 | tabWidth: 2, 4 | useTabs: false, 5 | semi: true, 6 | singleQuote: true, 7 | bracketSpacing: true, 8 | arrowParens: 'avoid', 9 | }; 10 | -------------------------------------------------------------------------------- /src/config/constant.js: -------------------------------------------------------------------------------- 1 | export default { 2 | BORDER_SCOPE: 10, // resize区域的宽度 3 | AVAILABLE_CLICK_MAX_MOVE_DISTANCE: 4, // 在move中,超出这个距离的话将把click事件吞掉 4 | AVAILABLE_CLICK_MAX_RESIZE_DISTANCE: 4, // 在resize中,超出这个距离的话将把click事件吞掉 5 | }; 6 | -------------------------------------------------------------------------------- /dist/demo.html: -------------------------------------------------------------------------------- 1 | 2 |
窗口内容1
48 |窗口内容2
49 |窗口内容3
50 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
窗口内容1
89 |窗口内容2
90 |窗口内容3
91 |窗口内容1
157 |窗口内容2
158 |窗口内容3
159 |窗口内容1
212 |窗口内容2
213 |窗口内容3
214 |window content1
91 |window content2
92 |window content3
93 |window content1
159 |window content2
160 |window content3
161 |window content1
214 |window content2
215 |window content3
216 |