3

enter image description here Vue data component not loading up correctly. This is the exact template they used. The arrows appear as "arrow_upward" and the edit and delete button don't show up right.

enter image description here I have imported all the vuetify stuff in main.js. All my other vuetify UI components are working except for this one.

1
  • did you include fonts as per documentation? Commented Mar 7, 2018 at 10:56

4 Answers 4

3

I had a similar problem. Following the link mdg provided, I solve the problem by changing the iconfont from mdi to mdiSvg

const opts = {
  icons: {
    iconfont: 'mdiSvg', // 'mdi' || 'mdiSvg' || 'md' || 'fa' || 'fa4'
  },
}

vuetify: new Vuetify(opts),
Sign up to request clarification or add additional context in comments.

Comments

2

As Traxo commented you need to include the Google material icons font. There are two solutions:

  1. Add the css link <link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' rel="stylesheet"> to your <head>,

  2. Use one of the available npm packages that provide Google's material icons and import the css as you've done with the other packages

Comments

2

Check the packages.json and ensure the webpack is up to date However, ensure in main.js, you include the following import 'vuetify/dist/vuetify.min.css' // Ensure you are using css-loader

Comments

2

I specifically call out the font:

Vue.use(Vuetify, {
  iconfont: 'mdi'
}

And have installed it.

$ npm install material-design-icons-iconfont

Vuetify Reference: https://vuetifyjs.com/en/framework/icons

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.