Code Monkey home page Code Monkey logo

v-dialogs's Introduction

v-dialogs's People

Contributors

codeclipse avatar hectorgrecco avatar rommyarb avatar terryz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

v-dialogs's Issues

bottomCenter and topCenter placement for toast messages doesnt work

bottomCenter and topCenter placement for toast messages doesnt work. The toast shows up on top left

			this.$dlg.toast('you got a new message!', function(){
			    //toast close callback
			}, {
			    messageType: 'error',
			    position: 'topCenter',
			    closeTime: 3 //auto close dialog time(second)
			});

shaking属性优化建议

大佬,能不能这样,shaking属性,如果是“close",就关闭,这样的话,是不是更灵活,还是说大佬已经决定了不这样做?

error on vue-i18n

i write this code

<div class="card-header rgba-stylish-strong text-white pt-1 pb-1">{{$t('sideMenu1')}}</div>

return below error
image

Component type check error

When exporting component with @Component decorator from vue-class-component / vue-property-decorator it is not a plain object.

[Vue warn]: Invalid prop: type check failed for prop "component". Expected Object, got Function 

found in

---> <DialogModal>
       <Root>

Adding Function as allowed type should fix it.

Alert Dialog width not proportional on mobile view

source code:
<div class="v-dialog-dialog" style="width: 450px; height: 210px; top: 263px;"><div class="v-dialog-content" style=""><div class="v-dialog-header"><h3>Confirmation</h3></div><div class="v-dialog-body" style="height: 168px;"><div class="v-dialog-alert alertConfirm"><div class="v-dialog-alert__content">Do you really want to leave?</div><div class="v-dialog-alert__buttons"><button type="button" class="v-dialog-btn__ok">OK</button><button type="button" class="v-dialog-btn__cancel">Cancel</button></div></div></div></div></div>

localhost_3000_(iPhone 6_7_8 Plus)

can you make it dynamic?

Any other component in v-dialogs is not working well

I'm user any other component is not working well as my datePicker it not working well

Forpost component:

<template>
 <div class="">
 <date-picker 
   class="dateTimePiker"
   :lang="langs" 
   format="DD/MM/YYYY" 
   v-model="model.close_date" 
   :placeholder="close_date" 
   name="close_date"
 >
 </date-picker>                   
</div>
</template>
<script>
import DatePicker from 'vue2-datepicker';
export default{
 props:[],
 components:{
   'date-picker':DatePicker,
 },
 mounted(){
 },
 computed: {
 },
 data(){
     return{
       model:{
         close_date:''
       }
     }
 },
 methods:{
 }
}
</script>

Call Dialog Component:

import jobPostForm from './formPostJob.vue';
import vDialog from 'v-dialogs';
Vue.use(vDialog);
export default{
openEditPost(data){
	            this.$dlg.modal(jobPostForm, {
	            	title:"Edit Post",
	                width: 550,
	                height: 450,
	                //send params to inner component
	                params: {
	                },
	                //modal dialog close callback
	                //data: inner component call 'this.$emit.('close', data)'
	                //to close modal and return data
	                // callback: data=>{
	                //     //alert selected result
	                //     this.$dlg.alert(`You selected ${data.companyName} company`);
	                // }
	            });
		    },
}

Error:
2019-10-27_13-21-04

async component

if i write async component, show Vue Warn

  async openReferral(mailID) {
                let that = this;
                let addReferral= async ()=>{return  await import('../../referral/referralTask/add.vue')}
                that.$dlg.modal(addReferral, {width: 800, height: 750, title: "add task"
                    params: {
                    mailID :mailID,
                    }});
            },

image

Safari

Somehow it doesn't pop up at safari

this.$route

this.$route gives error when i work with modal

mixin error

v2.2.0
not detect mixin function
cal modal:

 openAddRecModal() {
            let that = this;
            that.$dlg.modal(addRecMail, {
                width: 1600,
                height: 600,
                title: "ثبت ",
                params: {
                    page: that.page,
                    keyword: that.keyword,
                    view: that.view,
                    limit: that.limit
                }
            });
        },

inside modal i have this button:

 <input type="button" :value="i18nMixin('shared.btnSubmit')" :class="btnSubmit" @click="submitReceive" />

image
image

button localization

How can I change title, "ok" and(or) "cancel" names (strings) to custom text? In confirm alert specifically.

some idea

i hope to add responsive feature in next version...

second idea related to {params}...
with this version of v-dialogs, we should change props name from {firstname} to {params.firstname} that is not good...
it is better that i can send dynamic props name to child component...

not show some tag

v2.2.0

some tag not show in modal

<treeselect v-model="selectedOffice" :async="true" :load-options="(selected) => loadOptionsMixIn(selected, {modelForCall:'Office'})" :defaultOptions="true"  />

it works correctly in previous version like 2.1.4

Installation and config problems

Trying to get a basic POC working in my Laravel app. What am I doing wrong?

blade file:


            <div id="app" class="content">
                <div class="title m-b-md">
                    Laravel
                </div>
            </div>
        <script src="/js/app.js"></script>

app.js:


require('./bootstrap');
window.Vue = require('vue');
import vDialogs from 'v-dialogs';
Vue.use(vDialogs, { });
Vue.component('vDialogs', vDialogs);

const app = new Vue({
    el: '#app',
	mounted: function() {
		console.log('mounted');
    },
    methods: {
    	show() {
			console.log('show');
			//show message with close callback and options
			this.alert('Data saved successfully!', function(){
				//dialog close callback
			}, {
				messageType: 'success',
				language: 'en'
			});

    	}
    }
});

app.show();


Calling app.show() gives an error in console. What am I doing wrong?

app.js:49382 Uncaught TypeError: this.alert is not a function
    at Vue.show (app.js:49382)
    at Module../resources/js/app.js (app.js:49390)
    at __webpack_require__ (app.js:20)
    at Object.0 (app.js:49539)
    at __webpack_require__ (app.js:20)
    at app.js:84
    at app.js:87

position:'topRight'

IE9+:

div[data-v-09e2b9ea].topRight.vDialogToast{left:auto\9;bottom:auto\9;}

其他position可能也需要类似处理

nested modal

v2.2.0
this error was shown when i try open modal in modal...
Cannot read properties of undefined (reading 'modal')
image

Add Style class

Hi,
thanks for useful plugin.
I need to change some css value on a specific dialog. How can I achieve it?
If I override modal-dialog class, every dialog change its attributes (as aspected)

Thanks in advance

请问一下,可以使用CDN方式使用吗?

我现在通过CDN方式使用时遇到了问题(历史问题不能使用npm这种方式), 我使用Vue.component{'组件名A', {}} 全局注册组件A,在其他的组件B里面这样调用 this.$dlg.modal(这个地方如何填写, {}),
尝试以下几种方式都不行

  1. Vue.component('组件名A')
    报错: Invalid prop: type check failed for prop "component". Expected Object, got Function
  2. '组件名'
  3. 使用私有组件的注册方式进行
    都不行, 该如何填写

接上个话题

@tage-zh 默认的是 Font class,并不是 Unicode,这里应该要使用 Unicode
的方式生成才符合你的需求
download.zip

再说一个题外话,你的问题和需求,和这个 issues 的主题不是同个内容,你本应新建一个 issues 来说你的事情,现在题主莫明收了一大堆与其不相关的邮件提醒

我觉得不管怎么样生成,总会生成一个Unicode,只要有Unicode冲突,不管你使用什么方式 都会出现我这种情况

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.