Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@kajirikajiri

'sort-icon' has been removed, use 'header-props.sort-icon' instead

techブログ

環境

vuetify 2.2.26

:o: 修正後


      <v-data-table
        :header-props="{'sort-icon': 'delete' }"
     >

:x: 修正前

      <v-data-table
        sort-icon="filter_list"
      >

ドキュメント

https://vuetifyjs.com/ja/components/data-tables/
3日前にドキュメントがmergeされたようです。ほかにもいろいろなpropsがあり、便利そう!

ドキュメント pull request

実際のエラー

[Vuetify] [BREAKING] 'sort-icon' has been removed, use 'header-props.sort-icon' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide

参考1

ドキュメントが無い助けてくれ
https://github.com/vuetifyjs/vuetify/issues/9402

参考2

実装箇所
https://github.com/vuetifyjs/vuetify/blob/239e238d69f35064db55e9f41db8fd832f347ab5/packages/vuetify/src/components/VDataTable/VDataTable.ts#L171

その他

経緯とかまとめました
https://kajirikajiri.hatenablog.com/entry/2020/05/23/111218

0
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
0
Help us understand the problem. What is going on with this article?