Giter VIP home page Giter VIP logo

vuetify-dialog's Introduction

vuetify-dialog

This module will help you work with vuetify dialogs without annoying templates

Implementation of vuedl dialog helper with Vuetify.js framework

This module will help you to work with modal dialogs in your project

Coverage Status

FOSSA Status

Vuedl module documentation

This module uses vuedl to automatically work with dialogs and DOM See docs here

Setup

Install the package from npm

IMPORTANT: After version 0.4.0 css and js were split and therefore you have to import css manually

Vuetify 2

For Vuetify 2 please use the latest version of [email protected]

Demo with Vuetify 2

Demo in CodeSandbox,
Demo source

npm install vuetify-dialog
// need instance of vuetify, for example
import vuetify from '@/plugins/vuetify'

import VuetifyDialog from 'vuetify-dialog'
import 'vuetify-dialog/dist/vuetify-dialog.css'

Vue.use(VuetifyDialog, {
  context: {
    vuetify
  }
})

Vuetify 1

For Vuetify 1 you need to use [email protected]

Demo with Vuetify 1

Demo with Vuetify 1 CodeSandbox,
Demo source

npm install [email protected]
import VuetifyDialog from 'vuetify-dialog'
import 'vuetify-dialog/dist/vuetify-dialog.css'
Vue.use(VuetifyDialog)

or use with extra configuration

import VuetifyDialog from 'vuetify-dialog'
import 'vuetify-dialog/dist/vuetify-dialog.css'
Vue.use(VuetifyDialog, {
  context,
  property,
  confirm: {
    actions: {
      false: 'No',
      true: {
        text: 'Yes',
        color: 'primary'
      }
    },
    icon: false, // to disable icon just put false
    width: 500
  },
  warning: {},
  error: {},
  prompt: {}
})
  • context - the context of your application, such as store, axios, router etc.
  • property - the property, which will integrate to Vue. Default is $dialog
  • confirm - confirm dialog params
  • warning - warning dialog params
  • error - error dialog params
  • prompt - prompt dialog params Where:
    • actions - dialog buttons config
    • icon - dialog icon in String, example 'warning'. Note, if you want to hide icon, just set parameter to false
    • width - dialog max width

♻️ Usage with Nuxt.js

Add vuetify-dialog/nuxt to modules section of nuxt.config.js

Module automatically add to dialog nuxt context data, such as router, route, i18n, $axios, etc

{
  modules: [
    // Simple usage
    'vuetify-dialog/nuxt'

    // Optionally passing options in module configuration
    ['vuetify-dialog/nuxt', { property: '$dialog' }]
  ],

  // Optionally passing options in module top level configuration
  vuetifyDialog: {
    property: '$dialog'
    confirm: {}
    // ...
  }
}

If you using Typescript + Nuxt.js

Add vuetify-dialog/types to the compilerOptions.types section of your project's tsconfig.json file:

{
  "compilerOptions": {
    "types": [
      "vuetify-dialog/types"
    ]
  }
}

Simple confirm dialog

const res = await this.$dialog.confirm({
  text: 'Do you really want to exit?',
  title: 'Warning'
})

Info dialog

const res = await this.$dialog.info({
  text: 'File copied successfully',
  title: 'Info'
})

Warning dialog

const res = await this.$dialog.warning({
  text: 'Do you really want to exit?',
  title: 'Warning'
})

Error dialog

this.$dialog.error({
  text: 'Cannot delete this item',
  title: 'Error'
})

Prompt dialog

let res = await this.$dialog.prompt({
  text: 'Your name',
  title: 'Please input your name',
})

Prompt dialog with password

let res = await this.$dialog.prompt({
  title: 'Password balidation',
  text: 'Enter your password',
  rules: [(v) => v.length >= 6 || 'Password must be at least 6 characters long'], // vuetify's v-text-field rules prop
  textField: {
    // Any addtional props/attrs that will be binded to v-text-field component
    type: 'password',
  }
})

Programmatically close dialog

If property waitForResult set to false, then functions will return dialog instance

Actually waitForResult = true make two steps

  1. dialogInstance = $dialog.show(component) // Show dialog
  2. return dialogInstance.wait() // Return promise

Therefore to perform programmatically close dialog you have to set waitForResult to false and work with dialogInstance directly

  const dialogInstance = await this.$dialog.warning({
    title: this.title,
    text: this.text,
    waitForResult: false
  });
  setTimeout(() => {
    dialogInstance.close()
  } , 3000)

  // then you can wait for user reaction
  const userChoice = await dialogInstance.wait()
  // after idle 3000 sec - userChoice will be undefined
  this.$dialog.notify.info(userChoice)

Notifications

The notification component is used to convey important information to the user. Notification support positioning, removal delay and callbacks. It comes in 4 variations, success, info, warning and error. These have default icons assigned which can be changed and represent different actions

Notification uses v-alert component

Props:

  • text - the text fo your message
    • type: String
  • options:
    • type: Object
    • properties:
      • position: one of top-left, top-right, bottom-left, bootom-right
      • timeout: timer to hide message. Default 5000. If set to 0 - message will not closes automatically
      • actions
this.$dialog.notify.info('Test notification', {
  position: 'top-right',
  timeout: 5000
})

Toasts

The toast component is used to display a quick message to a user. Toasts support positioning, removal delay and callbacks. It comes in 4 variations, success, info, warning and error. These have default icons assigned which can be changed and represent different actions

Toast uses v-snackbar component

Props:

  • text - the text fo your message
    • type: String
  • options:
    • type: Object
    • properties:
      • position: one of top-left, top-right, bottom-left, bootom-right
      • timeout: timer to hide message. Default 5000. If set to 0 - message will not closes automatically
      • actions: - see below
this.$dialog.message.info('Test', {
  position: 'top-left'
})

Actions

To all dialogs you can put your own buttons Props:

  • key - the text fo your message
    • type: String
  • options:
    • type: Object
    • properties:
      • position: one of top-left, top-right, bottom-left, bootom-right
      • timeout: timer to hide message. Default 5000. If set to 0 - message will not closes automatically
      • actions: - see below
{
  ...
  actions: {
    false: 'No',
    true: 'Yes'
  }
}
// result will be true, false, or undefined
{
  ...
  actions: ['No', 'Yes']
}
// result will be 'No', 'Yes', or undefined

You can also send full button options

{
  actions: [{
    text: 'Yes', color: 'blue', key: true
  }]
}

vuetify-dialog's People

Contributors

abdelrhmanabdelhamed avatar allochi avatar andrewyanuta avatar danielchodusov avatar eggplantiny avatar fossabot avatar hugojerez avatar jorgv avatar mdesmet avatar pierosavi avatar snelg avatar taxilian avatar yariksav 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

vuetify-dialog's Issues

Reset of vuetify's RTL

Problem

After invoking any of $dialog method (notify, confirm), RTL that was set dynamically resets to it's default value.

Steps to reproduce

  1. Set vuetify's rtl option as true
  2. In mounted of any component set this.$vuetify.rtl to false
  3. Open dialog/notification
  4. RTL was reseted to true

Sandbox example

https://codesandbox.io/s/nuxtjs-vuetify-qbcrl

ShowDialog

Is posible send parameter to dialog componet?

It does not work with nuxts.js

I install it, register and when using it, it gives me this error

[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> at Confirm.vue

Invoking a dialog reloads other components

Lately I came across a very weird issue when using your dialogs in my Nuxt project. Whenever I invoke a dialog to show up, the page attempts to reload other components, such as vuetify-icons, and it often fails. I'm not sure why this is happening since components are not re-mounted, but it looks like this:
BEFORE:
image
AFTER:
image

I had originally figured it would be some artifact from developer environment, but it happens in production as well. I have re-installed vuetify-dialog with latest version and using default settings and this continues to happen on any instance of invoking something to show up, for example:

 showDialog(){
        this.$dialog.notify.success('TEST!',
          {
            position: 'top-middle',
            timeout: 5000
          })

Occasionally the icons return after a moment or two, but sometimes it just stays screwed up like that.
It doesn't affect just icons, as it attempts to reload header scripts like google tag manager, facebook pixel, etc.

Using in TypeScript project.

Error message on import VuetifyDialog from 'vuetify-dialog';

Could not find a declaration file for module 'vuetify-dialog'. '.../node_modules/vuetify-dialog/dist/vuetify-dialog.cjs.js' implicitly has an 'any' type.

If I add a .d.ts file with "declare module 'vuetify-dialog';" this error goes away. Is this the correct thing to do?

Prompt autofocus works only once

Unfortunately when you prompt second time, the autofocus on v-text-field does not fire.
It can be seen in your demo sendbox.

Is there a way to make it work or maybe manually focus on input after dialog is opened?

Additionally - is there a way to modify prompt buttons style?
They are different from buttons of confirm dialog. Is this is a error or made on purpose?
Thanks!

Demo codesandbox source code?

Hello, I am very interested in seeing the source code for the CodeSandbox demo for the dialogs ("Show card", "Show login" etc) as I want to make a custom dialog with a template and I'm not understanding the documentation. The code for the dialog examples would be extremely helpful but I can't seem to find it anywhere.

No show Color & Icon

This code works, but no show icons and color ##title.

   let res = await this.$dialog.warning({
    title: 'Titulo',
    text: 'Cuerpo',
    persistent: true
  });
  if (res === undefined) {
    this.$dialog.notify.warning("Closed without select action");
  } else {
    this.$dialog.notify.info(`Your choice is ${res}`);
  }

Vuetify 2.0 Breaking Changes

Information on the release here: https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0

v-btn

  • "round" property changed to "rounded". This is easily fixed.
  • "outline" property changed to "outlined". This is easily fixed.
  • "flat" property changed to "text". This should be an easy fix, although it may be good to change the existing "text" property to "buttonText", or something similar.

v-dialog

  • "lazy" property removed, as all menus and dialogs are lazy by default
  • "eager" property added - if you want the dialog to have the old functionality (not lazy), the dialog needs this property.

I may have missed some, but these are the documented changes that immediately jump out as troublemakers.

Other Errors

  • There seems to be an issue with the "dark" property. The release notes mention changes to the light/dark theme configuration, but I haven't had much of a chance to look into it.
  • Something is going on with reading the property "smAndDown" in the "hideScroll" method.

persistent dialogs

Hello,

Is there a way to make the dialog persistent like Vuetify does. And in general is it possible to pass options to Vuetify component ?

Thanks

Property '$dialog' does not exist when using vue-property-decorator.

In my Main.ts file I have:

import VuetifyDialog from 'vuetify-dialog';
Vue.use(VuetifyDialog);

And in my App (or any other) component:

<script lang="ts">
    import { Component, Vue } from 'vue-property-decorator';
    @Component
    export default class App extends Vue {
        private SomeFunction() {
            this.$dialog.error({
                  ^^^^^

But get "Property '$dialog' does not exist."

What am I missing to get this property on any Vue instance?

How to display another action button

First of all, thank u for providing such a useful library

actions: function() {
        return {
          nextStep: {
            flat: true,
            text: "Next",
            visible: true,
            closable: false,
            handle: () => {
              //how to display another button
            }
          },
	  execute: {
            flat: true,
            text: "Execute",
            visible: false,
	    closable: false,
            handle: () => {
              //do something...
            }
          }
	}
}

Dialog into alert

Is there a way to make a dialog as an alert, I tried:

 let res = await this.$dialog.confirm({
    text: 'Do you realy want to delete item?',
    title: 'Warning',
    actions: {
      false: 'Ok',
      true: {}
      }
    }
  }

This way false button appears empty

 let res = await this.$dialog.confirm({
    text: 'Do you realy want to delete item?',
    title: 'Warning',
    actions: {
      false: 'Ok',
      true: false
      }
    }
  }

Throw an error.

Extra: Is there an option to align the button (independently will be the best) like left, right, center and/or with margin/padding.

Ps: I use your plugin a lot, thank you for you work 😄

Bug or incorrect parameters

Hello.
Apparently I found a bug, or I don’t understand which parameters should be substituted.

Привет.
Видимо, я нашел баг, или же не понимаю какие параметры стоит подставить

this.$dialog.notify.success('Test notification', {
position: 'bottom-right',
timeout: 5000
})
1

Use notifications and dialog in modules vuex and files

Good day. Can I use notifications and dialog in modules vuex and files?

import vdialog from 'vuetify-dialog';

axios.interceptors.response.use(response => response, error => {
  const { status } = error.response;

  if (status >= 500) {
    vdialog.notify.error(i18n.t('error_alert_title_server')); //error
  }

  return Promise.reject(error)
});

How does it works ?

I will try this awesome plugin but I have errors
first my ide don't find the package
image

Then, maybe due to the first error
image

What did I forgot ?

Default parameters

Hello! I have a big project. It is not convenient to manually set parameters each time (position, duration, etc.). Can you add the ability to set default parameters when initializing vuetify-dialog?

For example:

import VuetifyDialog from 'vuetify-dialog';

Vue.use(VuetifyDialog, {
    'notify': {
        'timeout': 1000
    },
    'dialog': {
        icon: '',
        actions: ['ОК']
    }
});

Broken compatibility with Nuxt

"0.3.8, update bili and config" release brakes compatiability with Nuxt.

image

compiled file is like this;

node_modules/vuetify-dialog/dist/index.js
'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var Vuedl = _interopDefault(require('vuedl/src/index'));
var styleInject = _interopDefault(require('../node_modules/style-inject/dist/style-inject.es.js'));

and occurs Cannot find module '../node_modules/style-inject/dist/style-inject.es.js'
looks like bili 4.8.0 bug in some circumstance.

Missing components under nuxt

When running the extension under nuxt I get errors like:

commons.app.js:13184 [Vue warn]: Unknown custom element: <v-snackbar> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

npm version and github releases do not match

Hi,
I have noticed two problems while using this library with npm and I think they are related:

Versioning Problem

this package version on npm page https://www.npmjs.com/package/vuetify-dialog is 0.3.3

Why I am not able to find this release here on github?

Disappears after update

npm outdated gives this output

Package                         Current  Wanted  Latest  Location
...
vuetify-dialog                   0.1.12  0.1.12   0.3.3  dis
...

and after npm update

Package                         Current  Wanted  Latest  Location
...
vuetify-dialog                  MISSING  0.1.12   0.3.3  dis
...

This behavior was repeated many times. The library is uninstalled after every npm update and I have to install it again.

Receiving custom emited events

I'm trying to build a dialog that takes a property (in my case a list of pages) then once the user clicks on one option, the dialog will then dispatch an event from the Vuex store and redirect to another page.
The problem is that this.$store and this.$router are visibly undefined when called in the dialog's component (which is structured like TestCard on https://codesandbox.io/s/ppx57r3nnj) so I thought I'll try to emit an event called useTemplate, however having the following doesn't work:

created() {
  this.$on('useTemplate', tmpl => {
    this.$store.dispatch('editPage', tmpl);
    this.$router.push('editor');
  });
}

This doesn't do anything

this.$dialog.show(TemplateSelector, {
  pages: this.pagesToUse,
 '@useTemplate': this.useTemplate //even using 'v-on:useTemplate' does nothing
});

How could I get the parent component to properly receive the event or even better, how could I get the component to have access to the store and router?

Nuxt & Veutify 2

is vuetify-dialog@next compatible with nuxt?
What is the configuration to make it go?

Unknown custom element that already import Vuetify

hi i got some error like this
[Vue warn]: Unknown custom element:
i have read the closed issue "Unknown custom element"

Vuetify imports by vuetify.js like this

import Vue from 'vue'
import Vuetify from 'vuetify/lib' // <-- this change
import 'vuetify/src/stylus/app.styl'
import VuetifyDialog from 'vuetify-dialog'
Vue.use(Vuetify, {
iconfont: 'md'
})
Vue.use(VuetifyDialog)

but it still got the errors " Unknown custom element: ..."

when i use yariksav/vuetify-confirm , it works fine , without any errors
VuetifyConfirm.js like this

import Vue from 'vue'
import VuetifyConfirm from 'vuetify-confirm'

Vue.use(VuetifyConfirm, {
buttonTrueText: 'Yes',
buttonFalseText: 'Cancel',
width: 350,
property: '$confirm'
})

it works fine!!!!
do i miss something need to config?
any help? thanks

Unable to load it with NUXT

I have setup your module using the NUXT instructions for my project. It builds correctly, but on attempting to render a page I get the following error:

imagen

I thought it was an issue with my Node version because of the nature of the error, but It has failed on both 10.0 and 11.6. vuedl is in my node_modules and contains those files.

EDIT: Attempting to load it as a plugin results in the same error, so it seems independent from NUXT.

Styles are not preloaded when using with nuxt build

I am using this package as a nuxt module @nuxt.config.js: modules['vuetify-dialog/nuxt']. Everything works as expected during development, but when you run the build nuxt build -> nuxt start the styles are not pre-loaded. But if I add the vuetify dialog component manually to the component where I have to call a confirmation dialog via this package the styles are fine.

image
image

SandBox example error

Hello,

You have typo in your sandbox examples

Confirmation : confirmation

 let res = await this.$dialog.warning('Test confirmation, {
    text: 'Test confirmation',
    title: 'Title'
  })

Seems to be

 let res = await this.$dialog.warning( {
    text: 'Test confirmation',
    title: 'Title'
  })

Notification

Missing quotes

Toast

Missing quotes


Unless that it works as expected 😃

No show Color & Icon

This code works, but no show icons and color

my config

import Vuetify from "vuetify";
import VuetifyDialog from "vuetify-dialog";
Vue.use(Vuetify);
Vue.use(VuetifyDialog, {
confirm: {
actions: {
false: "取消",
true: {
text: "确定",
color: "primary"
}
},
icon: false, // to disable icon just put false
width: 500
},
warning: {},
error: {},
prompt: {}
});

my code
this.$dialog.confirm({
text: "Do you realy want to delete item?",
title: "Warning",
actions: {
false: "No",
true: {
color: "red",
text: "Yes I do",
handle: () => {
return new Promise(resolve => {
setTimeout(resolve, 3000);
});
}
}
}
});

QQ截图20190529211645

Missing vuetify elmenets on dialog call

Hi,

I have imported the vuetify-dialog package but when trying to run a simple notification encountering this error. Using vuecli vuetify scaffold project.

[Vue warn]: Unknown custom element: <v-alert> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <DialogChild>
       <Root>

Unknown custom element

Hi,

i follow the setup and when i try:
this.$dialog.error({ text: 'Cannot delete this item', title: 'Error' });

i recive this:
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in

---> at Confirm.vue

[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in

---> at Confirm.vue

[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in

---> at Confirm.vue

[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in

---> at Confirm.vue

[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in

---> at Confirm.vue

[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in

---> at Confirm.vue

[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in

---> at Confirm.vue

[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in

---> at Confirm.vue

[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in

---> at DialogAction.vue
at DialogActions.vue
at Confirm.vue

Did i missed something? :)

SCRIPT5009: "Proxy" не определено

Привет. Пробую запуститься в ИЕ11 (с помощью babel 7), натыкаюсь на ошибку SCRIPT5009: "Proxy" не определено. Окошки не работают. Понимаю, что из-за проблем совместимости с Proxy в IE. Но есть ли возможность сделать реализацию минуя прокси? Тогда бы было меньше проблем с IE=)

Вот таблица, которая говорит, что с Proxy могут быть проблемы:
https://kangax.github.io/compat-table/es6/

image

А если использую babel 6, то ошибка:
SCRIPT1003: Предполагается наличие ':'

Update default options with method

Hi! Is there any easy way how to update default options after plugin is installed? I would like to translate default button texts when locale is changed something like this:

setI18n (lang = null) {
  this.$dialog.options = {
    actions: [this.$t('no'),  this.$t('yes')]
  }
}

Now I update components directly but having some method for changing default options would he great! :)

Compatibility with Vuetify 2.0

Hey guys,

I like the idea of this module and I'd like to use it for one of my projects. The problem is that I am working on the Vuetify 2.0 Beta since it should be released soon and it has breaking changes on a few of the components you are using.

I was wondering if you guys are working on this or planning to do so in the near future. If not I might fix a few things and do a pull request.

Notification icon not settable?

Hello, first of all thank you, this is an extremely useful project and it seems to work well, one small issue though:
In the docs it says we can set the icons for notifications, however I'm not seeing that happen.
It does work for dialogs no problem but using the same setting in a notification doesn't seem to do anything at all, is this supported?

For example this notify code won't show my icon, just the default one:

    this.$dialog.notify.warning("message", {
        position: "top-right",
        icon: "fa-exclamation-triangle",
        timeout: 7000
      });

However with a dialog it does work to show my icon, for example:

this.$dialog.warning({
      text: "Are you sure you want to delete this record?",
      title: "Delete",
      icon: "fa-exclamation-triangle"
    });

Dialog params

Hey. The documentation is written

const dialog = await this.$dialog.show(MyDialog, params, options)

But I do not understand how these parameters and options look? Can you set an example? I want for example, that the width of the window is 600px.

Close icon

In show function is pocible don't show de icon close?

When i try use $dialog.show(MyComponent). i get Component is incorrect

When i try use $dialog.show(MyComponent). i get in console Component is incorrect.

This code my component

<template>
  <div class="VueToNuxtLogo">
    <div class="Triangle Triangle--two" />
    <div class="Triangle Triangle--one" />
    <div class="Triangle Triangle--three" />
    <div class="Triangle Triangle--four" />
  </div>
</template>

<style>
.VueToNuxtLogo {
  display: inline-block;
  animation: turn 2s linear forwards 1s;
  transform: rotateX(180deg);
  position: relative;
  overflow: hidden;
  height: 180px;
  width: 245px;
}

.Triangle {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.Triangle--one {
  border-left: 105px solid transparent;
  border-right: 105px solid transparent;
  border-bottom: 180px solid #41b883;
}

.Triangle--two {
  top: 30px;
  left: 35px;
  animation: goright 0.5s linear forwards 3.5s;
  border-left: 87.5px solid transparent;
  border-right: 87.5px solid transparent;
  border-bottom: 150px solid #3b8070;
}

.Triangle--three {
  top: 60px;
  left: 35px;
  animation: goright 0.5s linear forwards 3.5s;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid #35495e;
}

.Triangle--four {
  top: 120px;
  left: 70px;
  animation: godown 0.5s linear forwards 3s;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 60px solid #fff;
}

@keyframes turn {
  100% {
    transform: rotateX(0deg);
  }
}

@keyframes godown {
  100% {
    top: 180px;
  }
}

@keyframes goright {
  100% {
    left: 70px;
  }
}
</style>

So i call dialog

import Logo from '../components/Logo';
    export default {
        components: { Logo},
            async myFunc() {
                const res = this.$dialog.show(Logo);
            },
}

what could be the problem?

Change theme from light?

I'm trying to use a dialog confirm box. My nuxt/vuetify app uses dark theme, but I'm not sure why the dialog box comes up with the light theme.

const res = await this.$dialog.confirm({ title: 'Warning', text: 'Are you sure you want to remove SQL Group ' + sqlGroup.SQL_ID });

The div element for the card is:

<div class="v-card v-sheet v-sheet--tile theme--light">

which is not what I want, I'd want theme--dark.

How do I achieve this?

Thanks.

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.