Closed sapphi-red closed 3 years ago
常にIDがvalidになるようにする
portal-vue
のvue3対応版が出ればそのまま移行できるけど別に必要な箇所そんなにないので書き換えたほうがよさそうな気がする
vue-textarea-autosize
vue-cli
がv3でvue3に対応してないので、4.5.6にアップデートvue
を3.0.0にして、vue-template-compiler
を消して@vue/compiler-sfc@3.0.0
を入れるnode_modules/vue-cli-plugin-p11n
に移動して、rollup-plugin-vue
を6.0.0-beta.10
にアップデート(そこでnpm i
)vue
をdevDepからdependenciesに移動(これしないとvue本体が出力に混ざる)npm run build
vue-slider-component
についてvue-slider-componentはTSX + vue-class-component + vue-property-decoratorで開発されてる
TSXは問題なくVue3で対応 vue-class-componentもvue3対応ベータが出てる https://github.com/vuejs/vue-class-component/tree/next vue-property-decoratorは出てくるか怪しいかも?今のとこ何もないけど見てはいるっぽい kaorun343/vue-property-decoratorの#.294
今すぐにやるのは厳しそう
TODO: vue-slider-component@next
が出たのでそれに差し替える https://jsfiddle.net/3ea4qbg9/1/
emits
の記述に関しては #2216 に移動
ライブラリの対応は大体できてるっぽい(コンポーネント系はそうでもないかも) vue-codemodあたりがよさげになったら移行が楽になりそうだからそのくらいにやるのがよさそう
ビルド周り
v-for
を<template>
と組み合わせた時の:key
周りがvueのcompilerと矛盾してるからなんかおかしそうだけどそれ以外は大丈夫そうライブラリ
vue-textarea-autosize
がvue 3で動作するかチェックvue-slider-component
がvue 3で動作するかチェック (It will be compatible when the stable version of vue3 is released.
)v-click-outside
がvue 3で動作するかチェック<Teleport>
(たぶん全部書き換え可)リファクタ
emits
の記述@~.native
の.native
の除去provide
/inject
に書き換えprovide
/inject
に書き換えその他