docs(components): [icon] using shallowRef instead of ref (#11809)

This commit is contained in:
qiang 2023-03-04 11:45:13 +08:00 committed by GitHub
parent 829c3dfe60
commit 85338b41f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { computed, ref } from 'vue'
import { computed, ref, shallowRef } from 'vue'
import clipboardCopy from 'clipboard-copy'
import { ElMessage } from 'element-plus'
import * as Icons from '@element-plus/icons-vue'
@ -44,7 +44,7 @@ const copySvgIcon = async (name, refs) => {
}
}
const categories = ref<CategoriesItem[]>([])
const categories = shallowRef<CategoriesItem[]>([])
const iconMap = new Map(Object.entries(Icons))
IconCategories.categories.forEach((o) => {