Commit Graph

308 Commits

Author SHA1 Message Date
Yev Vlasenko
7a2e002df6 Merge pull request #105 from DaxChen/master
Fix MutationObserver callback $refs.modal undefined
2017-10-18 11:07:30 +01:00
DaxChen
c144f2f4f6 Merge branch 'master' of https://github.com/euvl/vue-js-modal 2017-10-18 18:00:17 +08:00
Yev Vlasenko
04337a607b Update README.md 2017-10-18 09:55:29 +01:00
euvl
e30e1040f6 Rebuild 2017-10-18 09:50:52 +01:00
euvl
62291e3268 Merge branch 'master' of https://github.com/euvl/vue-modal 2017-10-18 09:49:23 +01:00
euvl
bb9a721894 Rebuild v1.3.2 2017-10-18 09:49:00 +01:00
DaxChen
778fcff2cf check $refs.modal in observe callback 2017-10-13 12:33:21 +08:00
Yev Vlasenko
aa429de13d Merge pull request #100 from DaxChen/master
[Fix] add attributes:true to MutationObserver
2017-10-11 11:02:50 +01:00
DaxChen
9352c2db64 add attributes:true to MutationObserver 2017-10-11 13:55:19 +08:00
euvl
553d55d392 Minor code cleaning [2] 2017-10-09 14:41:44 +01:00
euvl
4652eb0b86 Minor code cleaning 2017-10-09 14:23:21 +01:00
euvl
220573f137 Tiny refactoring of the new pull request (passing linting) 2017-10-09 14:04:12 +01:00
Yev Vlasenko
907c2d9104 Merge pull request #97 from DaxChen/master
Fixes #15 #60
2017-10-09 13:55:28 +01:00
Yev Vlasenko
8c7f88f444 Merge pull request #98 from Dalanir/fix/docs-default-className
fix default className
2017-10-06 20:16:50 +01:00
Jordan Lorho
02a6da3e73 fix default className 2017-10-06 18:25:23 +02:00
DaxChen
2b5b150a8d sorry for the noise, forgot to remove console.log 2017-10-06 17:04:16 +08:00
DaxChen
5103a3039c move window MutationObserver to beforeMount for SSR 2017-10-06 16:54:27 +08:00
DaxChen
2573c3e2c8 build 2017-10-06 16:24:07 +08:00
DaxChen
6f54bbc9a9 add opened event and auto center height to demo: SizeModal 2017-10-06 16:24:00 +08:00
DaxChen
e1d4993a4a fixes #60, #15: detect renderedHeight when "auto"; call "opened" after DOM changes 2017-10-06 16:23:10 +08:00
euvl
c0781b6156 Removed all the opencollective stuff that was breaking building process for SPARKL 2017-10-02 16:33:26 +01:00
euvl
8ad49c7f65 Merge branch 'master' of https://github.com/euvl/vue-modal 2017-09-28 09:42:38 +01:00
euvl
641c58ca21 Removed opencollective postinstall as it was breaking build in yarn 2017-09-28 09:42:35 +01:00
Yev Vlasenko
106c7b160e Update README.md 2017-09-28 09:39:02 +01:00
euvl
b937c93ed5 v1.3.0 🚀 2017-09-27 10:24:15 +01:00
euvl
8d5316601f Fixed click event not working on dragagble modals and inputs now are not draggable 2017-09-27 10:22:50 +01:00
euvl
12797cc0e6 Merge branch 'master' of https://github.com/euvl/vue-modal 2017-09-27 10:10:11 +01:00
euvl
9bf61f5a2c Bubbling modal events to v-dialog 2017-09-27 10:10:06 +01:00
Yev Vlasenko
6a1581b9b3 Update README.md 2017-09-20 14:30:55 +01:00
Yev Vlasenko
9b01fd7fd5 Merge pull request #88 from opencollective/opencollective
Activating Open Collective
2017-09-19 17:21:06 +01:00
Aseem Sood
a054d5ecce Added call to donate after npm install (optional) 2017-09-19 12:17:25 -04:00
Aseem Sood
d4937de50a Added backers and sponsors on the README 2017-09-19 12:17:25 -04:00
Aseem Sood
341d94b06c Added .github/ISSUE_TEMPLATE.md (optional) 2017-09-19 12:16:45 -04:00
Yev Vlasenko
0602529e61 Update README.md 2017-09-19 15:23:53 +01:00
Yev Vlasenko
3ac104f569 Merge pull request #87 from arve0/vue_runtime_dep
Remove Vue runtime dependency
2017-09-16 08:50:06 +01:00
euvl
40bdbfb3bc Merge branch 'master' of https://github.com/euvl/vue-modal 2017-09-14 11:47:10 +01:00
euvl
ddefb5db8f v1.2.12 2017-09-14 11:47:08 +01:00
Yev Vlasenko
8d81fb14e1 Merge pull request #86 from arve0/pivot-x-fix-width
Use window.innerWidth instead of body.clientWidth
2017-09-13 21:35:12 +01:00
arve0
e3179625d0 Remove Vue runtime dependency
This allow the bundle to be used in jsfiddle, plnkr, jsbin, etc.,
as the bundle does not depend on Vue.

The problem lies on second line of bundle

```js
"object" == typeof exports ? exports["vue-js-modal"] = factory(require("vue")) : root["vue-js-modal"] = factory(root.vue)
```

where `factory` tries to find `root.vue`, but the official Vue bundle exports
as `root.Vue`.

Removing the runtime dependency solves this.

`Object.assign` is available in all browsers but IE:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
2017-09-13 20:30:01 +02:00
arve0
9f814fb842 Use window.innerWidth instead of body.clientWidth
Fixes pivot-x for cases where you have body smaller than document,
for example:

```html
<!DOCTYPE html>
<html>
<head>
  <style>
    html {
      background-color: white;
    }
    body {
      width: 80%;
      background-color: lightgreen;
    }
  </style>
</head>
<body>
  <script>
      document.body.innerHTML += `<pre>
        window.innerWidth is ${window.innerWidth}<br>
        document.body.clientWidth is ${document.body.clientWidth}<br>
        window.innerWidth == document.body.clientWidth: ${window.innerWidth == document.body.clientWidth}`
    </script>
  </body>
</html>
```

Fixes issue #84
2017-09-13 19:25:21 +02:00
euvl
48721f956d Added uglification stap to remove dead code (fix by @arve0) 2017-09-13 13:41:30 +01:00
euvl
3a8a5884c8 Added configurable clickToClose and width for v-dialog (#76) 2017-09-12 17:31:41 +01:00
euvl
de051ee119 Merge branch 'master' of https://github.com/euvl/vue-modal 2017-09-07 15:44:00 +01:00
euvl
b5642b8bd6 Adding overflow:hidden to the body when "scrollable" is enabled. #71 2017-09-07 15:43:58 +01:00
Yev Vlasenko
5898d252cd Merge pull request #77 from detailyang/patch-1
doc: fix js demo syntax error
2017-08-31 17:10:54 +01:00
detailyang
f80a08ab05 doc: fix js demo syntax error 2017-08-31 23:38:14 +08:00
Yev Vlasenko
f61e6afac2 Update README.md 2017-08-29 15:03:48 +01:00
Yev Vlasenko
97e950a52e Merge pull request #74 from euvl/mobile-touch-fix
v1.2.9
2017-08-24 07:56:19 +01:00
euvl
f1049716eb v1.2.9 2017-08-24 07:55:27 +01:00
Yev Vlasenko
b3ce3d5314 Merge pull request #73 from euvl/mobile-touch-fix
Added touchstart to places where mousedown is called
2017-08-23 11:27:38 +01:00