Coder Social home page Coder Social logo

my-dialog's Introduction

my-dialog

a public dialog for everyone is based on vue and vuex

API

描述

可改变大小、位置的对话框

版本

V1.0.0 (用于演示版)

  • 新增 改变dialog大小、位置 功能

Demo

<my-dialog
  width="470"
  height="347"
  :padBottom="'0px'"
  :titleHeight="'auto'"
  :titlePadding="'15px 8px 15px 16px'"
  :useModal="false"
  :enableTransform="true"
  :isMediaScreen="true"
  @close="closeMe"
  @dialogTransform="dialogTransform"
  @getDialogTop="getDialogTop"
  @getDialogLeft="getDialogLeft">
</my-dialog>

Props

Props 说明 type default
width Dialog的宽度 String '700'
height Dialog的高度 String 'auto'
overFolw Dialog过大出现的溢出部分的处理 String 'hidden'
titleHeight Dialog标题部分的高度 String '20px'
titlePadding Dialog标题部分的内边距 String '30px 0 20px 20px'
padBottom Dialog底部内边距 String ''
useModal 是否使用黑色遮罩层 Boolean true
enableTransform 是否使用自由拉伸Dialog功能以及拖拽dialog Boolean false
isMediaScreenn 是否使用响应式功能 Boolean false
isBufferDrag 是否添加缓冲功能 (拖拽dilog距离大于3px时才能拖动dialog) Boolean false

Events

Events 说明 返回值
close Dialog关闭的回调 --
isMoving Dialog的状态(移动中/静止) Boolean
dialogTransform 获取dialog的大小 返回值为对象 {width: (Number) , height: (Number)}
getDialogTop 获取Dialog当前的top值 Number
getDialogLeft 获取Dialog当前的Left值 Number

my-dialog's People

Contributors

swncowdevil avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Forkers

matrix4cloud

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.