Help us understand the problem. What is going on with this article?

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

環境

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

https://github.com/vuetifyjs/vuetify/pull/11374

実際のエラー

[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

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.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした