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>
<script>
import { SweetalertIcon } from 'vue-sweetalert-icons'
export default {
name: 'ConfirmModal',
components: {
SweetalertIcon,
},
props: {
name: { type: String, default: '' },
type: { type: String, required: true },

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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