mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 19:28:14 +08:00
docs(components): [icon] using shallowRef instead of ref (#11809)
This commit is contained in:
parent
829c3dfe60
commit
85338b41f5
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user