Giter Site home page Giter Site logo

shuliangfu / vue-window Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michitaro/vue-window

0.0 0.0 0.0 1 MB

Window component for vue2

Home Page: https://github.com/michitaro/vue-window

License: MIT License

HTML 8.88% TypeScript 60.14% Vue 25.90% JavaScript 5.08%

vue-window's Introduction

vue-window

Introduction

Recent web applications are mainly for mobile environments. Therefore window UI is no longer mainstream. However, window UI is still useful for professional web applications for PC environments. This package is an implementation of window UI for PC environment as a Vue Component.

Features

  • Window component for vue2
  • Windows are draggable
  • Automatic z-index control
  • Resizable
  • z-index group
  • Configurable color theme
  • Built-in 3 color themes
  • Open / Close animation
  • Tested on Safari10, Chrome60, Firefox55, IE11, Edge38 For PCs
  • iOS Support ๐ŸŽ‰

Screenshot

Usage

Install

npm install --save @hscmap/vue-window

Setup

ES6 / TypeScript

import Vue from 'vue'
import * as VueWindow from '@hscmap/vue-window'

Vue.use(VueWindow)

CommonJS

var Vue = require('vue')
Vue.use(require('@hscmap/vue-window'))

Example

<template>
    <hsc-window-style-metal>
        <hsc-window title="Window 1" >
            Parameters:
            <fieldset>
                <legend>&alpha;</legend>
                <input type="range" />
            </fieldset>
            <fieldset>
                <legend>&beta;</legend>
                <input type="range" />
            </fieldset>
        </hsc-window>
    </hsc-window-style-metal>
</template>

Other examples are available here.

see also @hscmap/vue-menu. This is a menu UI component for vue2 with the same color themes.

Contributing

Any comments, suggestions or PRs are welcome ๐Ÿ˜€

vue-window's People

Contributors

michitaro avatar kekos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.