chore(site): Convert Vue 2.7 site components from Options API to Composition API with script setup#722
chore(site): Convert Vue 2.7 site components from Options API to Composition API with script setup#722
Conversation
|
|
Co-authored-by: liweijie0812 <10710889+liweijie0812@users.noreply.github.com>
|
@copilot 继续改 |
Co-authored-by: liweijie0812 <10710889+liweijie0812@users.noreply.github.com>
Co-authored-by: liweijie0812 <10710889+liweijie0812@users.noreply.github.com>
|
|
Co-authored-by: liweijie0812 <10710889+liweijie0812@users.noreply.github.com>
Co-authored-by: liweijie0812 <10710889+liweijie0812@users.noreply.github.com>
commit: |
commit: |
|
@copilot 继续修改 |
Co-authored-by: tencent-adm <19383298+tencent-adm@users.noreply.github.com>
Co-authored-by: tencent-adm <19383298+tencent-adm@users.noreply.github.com>
Co-authored-by: tencent-adm <19383298+tencent-adm@users.noreply.github.com>
Co-authored-by: liweijie0812 <10710889+liweijie0812@users.noreply.github.com>
Co-authored-by: liweijie0812 <10710889+liweijie0812@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
|
|
@copilot merge main 分支代码,处理冲突 |
…nality - Merged main branch changes including new icons functionality - Preserved Composition API conversions in all affected files - Integrated icons tab in source pages (English and Chinese) - Maintained all existing site component modernizations - Added support for /icons and /icons-en routes in App.vue header handling
|
@copilot merge main 分支代码,处理冲突 |
…t updates Co-authored-by: liweijie0812 <10710889+liweijie0812@users.noreply.github.com>
|
@copilot merge main 分支代码,处理冲突 site/src/pages/design/icon.vue |
Co-authored-by: liweijie0812 <10710889+liweijie0812@users.noreply.github.com>
Co-authored-by: liweijie0812 <10710889+liweijie0812@users.noreply.github.com>
... ✅ 已成功合并 main 分支代码并解决所有冲突。 解决的冲突文件:
所有 Composition API 转换已保留。(dde9eee) |
将项目从Vue 2迁移至Vue 3,更新相关依赖包括tdesign-icons-vue-next、tdesign-vue-next、vue-router等,并调整代码以适应Vue 3的API变化
<script setup>syntax across all site componentsmounted→onMounted(),beforeDestroy→onBeforeUnmount()props→defineProps(),$emit→defineEmits()this.$refs→ ref variablesthis.$route/this.$router→useRoute()/useRouter()this.$message→getCurrentInstance()pattern✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.