You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vue.use(VueDirectiveWindow); // When you take the CDN way, you don't need to import anything; you may use `Vue.use(window['vue-directive-window'])` instead.
import { enhanceWindow } from'vue-directive-window'; //When you take the CDN way, you may use `const enhanceWindow = window['vue-directive-window'].enhanceWindow;` instead.
import VueDirectiveWindow from 'vue-directive-window';
95
+
Vue.use(VueDirectiveWindow); // When you take the CDN way, you don't need to import anything; you may use `Vue.use(window['vue-directive-window'])` instead.
maximizeCallback | 窗口最大化的回调函数。回调参数为:当前是否最大化(Boolean) | Function | —— | ——
109
+
### Javascript Class Library
110
+
```html
111
+
<divclass="demo-window"v-window="windowParams">
112
+
<!-- container content -->
113
+
</div>
114
+
```
115
+
116
+
```javascript
117
+
import { enhanceWindow } from'vue-directive-window'; // When you take the CDN way, you may use `const enhanceWindow = window['vue-directive-window'].enhanceWindow;` instead.
At this point, you already install `vue-directive-window` and create a Hello World case. If you are interested in `vue-directive-window` and want to know more about it, you may refer to chapter [examples](/examples.md) and [params](/params.md).
0 commit comments