8000 GitHub - makadevID/vue-windows: Vue components for creating neat windows.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

makadevID/vue-windows

 
 

Repository files navigation

vue-windows NPM version NPM downloads Build Status

It's inspired by the socket.io homepage, weighing only 2kb.

Install

$ npm install --save vue-windows

Usage

<template>
  <div id="app">
    <editor-window title="my window">
      editor window body
    </editor-window>
    <browser-window url="http://example.com">
      browser window body
    </browser-window>
  </div>
</template>

<script>
  import {EditorWindow, BrowserWindow} from 'vue-windows'

  export default {
    components: {
      EditorWindow,
      BrowserWindow
    }
  }
</script>

<style src="vue-windows/dist/vue-windows.css"></style>

API

Props

title

Component: EditorWindow
Type: string
Required: true

url

Component: BrowserWindow
Type: string
Required: true

width

Component: All
Type: number
Default: 500

height

Component: All
Type: number
Default: 340

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Development

# build umd and example with vbuild
$ npm install -g vbuild

# run example
$ npm run dev
# build example
$ npm run build:example

# build umd, compress
$ npm run build

License

MIT © EGOIST

About

Vue components for creating neat windows.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 41.7%
  • JavaScript 31.2%
  • CSS 20.9%
  • HTML 6.2%
0