No global import - Thank you @JorgenVatle! ❤️

In version `v4.2.0` of `vue-sweetalert-icons` the local import is back, see:
https://github.com/JorgenVatle/vue-sweetalert-icons/issues/3#issuecomment-519497796
This commit is contained in:
Robert Schäfer 2019-08-09 13:21:54 +02:00
parent 295c7bcb39
commit 5d57f7b376
8 changed files with 21 additions and 5 deletions

View File

@ -28,8 +28,13 @@
</template> </template>
<script> <script>
import { SweetalertIcon } from 'vue-sweetalert-icons'
export default { export default {
name: 'ConfirmModal', name: 'ConfirmModal',
components: {
SweetalertIcon,
},
props: { props: {
name: { type: String, default: '' }, name: { type: String, default: '' },
type: { type: String, required: true }, type: { type: String, required: true },

View File

@ -27,9 +27,13 @@
<script> <script>
import gql from 'graphql-tag' import gql from 'graphql-tag'
import { SweetalertIcon } from 'vue-sweetalert-icons'
export default { export default {
name: 'ReportModal', name: 'ReportModal',
components: {
SweetalertIcon,
},
props: { props: {
name: { type: String, default: '' }, name: { type: String, default: '' },
type: { type: String, required: true }, type: { type: String, required: true },

View File

@ -54,10 +54,12 @@
<script> <script>
import PasswordStrength from '../Password/Strength' import PasswordStrength from '../Password/Strength'
import gql from 'graphql-tag' import gql from 'graphql-tag'
import { SweetalertIcon } from 'vue-sweetalert-icons'
import PasswordForm from '~/components/utils/PasswordFormHelper' import PasswordForm from '~/components/utils/PasswordFormHelper'
export default { export default {
components: { components: {
SweetalertIcon,
PasswordStrength, PasswordStrength,
}, },
props: { props: {

View File

@ -48,8 +48,12 @@
<script> <script>
import gql from 'graphql-tag' import gql from 'graphql-tag'
import { SweetalertIcon } from 'vue-sweetalert-icons'
export default { export default {
components: {
SweetalertIcon,
},
data() { data() {
return { return {
formData: { formData: {

View File

@ -71,6 +71,7 @@
<script> <script>
import gql from 'graphql-tag' import gql from 'graphql-tag'
import PasswordStrength from '../Password/Strength' import PasswordStrength from '../Password/Strength'
import { SweetalertIcon } from 'vue-sweetalert-icons'
import PasswordForm from '~/components/utils/PasswordFormHelper' import PasswordForm from '~/components/utils/PasswordFormHelper'
export const SignupVerificationMutation = gql` export const SignupVerificationMutation = gql`
@ -85,6 +86,7 @@ export const SignupVerificationMutation = gql`
export default { export default {
components: { components: {
PasswordStrength, PasswordStrength,
SweetalertIcon,
}, },
data() { data() {
const passwordForm = PasswordForm({ translate: this.$t }) const passwordForm = PasswordForm({ translate: this.$t })

View File

@ -56,6 +56,7 @@
<script> <script>
import gql from 'graphql-tag' import gql from 'graphql-tag'
import { SweetalertIcon } from 'vue-sweetalert-icons'
export const SignupMutation = gql` export const SignupMutation = gql`
mutation($email: String!) { mutation($email: String!) {
@ -72,6 +73,9 @@ export const SignupByInvitationMutation = gql`
} }
` `
export default { export default {
components: {
SweetalertIcon,
},
props: { props: {
token: { type: String, default: null }, token: { type: String, default: null },
}, },

View File

@ -100,7 +100,6 @@ module.exports = {
{ src: '~/plugins/v-tooltip.js', ssr: false }, { src: '~/plugins/v-tooltip.js', ssr: false },
{ src: '~/plugins/izi-toast.js', ssr: false }, { src: '~/plugins/izi-toast.js', ssr: false },
{ src: '~/plugins/vue-filters.js' }, { src: '~/plugins/vue-filters.js' },
{ src: '~/plugins/vue-sweetalert-icons.js' },
], ],
router: { router: {

View File

@ -1,4 +0,0 @@
import Vue from 'vue'
import VueSweetalertIcons from 'vue-sweetalert-icons'
Vue.use(VueSweetalertIcons)