Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons and fonts in cn #1

Closed
lguerra10 opened this issue Jun 22, 2018 · 9 comments
Closed

Icons and fonts in cn #1

lguerra10 opened this issue Jun 22, 2018 · 9 comments

Comments

@lguerra10
Copy link

How do I set the language to en instead of cn?

@TerryZ
Copy link
Owner

TerryZ commented Jun 23, 2018

//call a custom type message alert dialog with dialog close callback
this.$vDialog.alert('This is a <b>Vue</b> dialog plugin: vDialog!',function(){
  //your callback code
},{
  messageType: 'error',
  closeTime: 2,// auto close alert dialog in 2 second,
  language: 'en'// i18n support 'cn', 'en', 'jp'
});

@TerryZ TerryZ closed this as completed Jun 23, 2018
@lguerra10
Copy link
Author

lguerra10 commented Jun 23, 2018 via email

@lguerra10
Copy link
Author

lguerra10 commented Jun 23, 2018 via email

@TerryZ
Copy link
Owner

TerryZ commented Jun 23, 2018

Thanks for you suggestion

the global language config will be add in next version.

in the Modal mode, the header bar title default is 'vDialog'. when your open custom Modal dialog, set 'title' option to modify

set 'title' : false to close header bar

example:

import page from './Page.vue';
//call a custom type message alert dialog with dialog close callback
this.$vDialog.modal(page, {
  width: 500,
  height: 450,
  //when inner component call $vDialog.close({data}) to close modal
  //callback will receive the return data
  callback: function(data){
    console.log(data);//{userFullName: 'TerryZeng'}
  }
  //send params to inner component
  //in the component, set props 'params' to get parameter
  params: {
    userName: 'Terry'
  },
  language: 'en'// i18n support 'cn', 'en', 'jp'
});

@lguerra10
Copy link
Author

lguerra10 commented Jun 23, 2018 via email

@TerryZ
Copy link
Owner

TerryZ commented Jun 24, 2018

sorry, width and height just pixel

@lguerra10
Copy link
Author

lguerra10 commented Jun 24, 2018 via email

@lguerra10
Copy link
Author

lguerra10 commented Sep 7, 2018 via email

@TerryZ
Copy link
Owner

TerryZ commented Sep 8, 2018

v-dialogs has not been adapted to mobile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants