feat: 添加资产记录和资金、交易账户视图;更新钱包状态管理和路由配置
This commit is contained in:
22
src/components/Icon/index.vue
Normal file
22
src/components/Icon/index.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<script lang='ts' setup>
|
||||
import type { ComponentInstance } from "vue";
|
||||
import { Icon } from "@iconify/vue";
|
||||
|
||||
defineProps<{
|
||||
icon: string;
|
||||
}>();
|
||||
|
||||
const vm = getCurrentInstance()!;
|
||||
|
||||
function changeRef(exposed) {
|
||||
vm.exposed = exposed;
|
||||
}
|
||||
|
||||
defineExpose({} as ComponentInstance<typeof Icon>);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Icon v-bind="{ ...$attrs, icon }" :ref="changeRef" />
|
||||
</template>
|
||||
|
||||
<style lang='css' scoped></style>
|
||||
Reference in New Issue
Block a user