V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  haodaking  ›  全部回复第 1 页 / 共 1 页
回复总数  14
线上买,线下去苹果商店取
https://i.imgur.com/uKWryEV.png
我们项目的目录结构是这样划分的,src 根目录下有公共的 components 、composables 、api 、assets ,modules 文件夹下是每个模块,每个模块都可以有自己的 components 、composables 、路由、api 、类型、静态资源、国际化文件
支持 aGFvZGFraW5nQGdtYWlsLmNvbQ==
313 天前
回复了 zhoudaiyu 创建的主题 生活 大家早晨起床后会听一些什么?
得到头条
347 天前
回复了 sdfw23xd 创建的主题 程序员 发现一个真心好用的油管字幕翻译插件
347 天前
回复了 sdfw23xd 创建的主题 程序员 发现一个真心好用的油管字幕翻译插件
2023-09-11 10:45:19 +08:00
回复了 justincnn 创建的主题 Apple 你的 mac 多久没关机或者重启了?
周一早上开机,周五下班关机
2023-05-29 10:05:35 +08:00
回复了 levelworm 创建的主题 生活 四十岁的我极其羡慕二十岁的自己的身体
周一到周五,每天早上锻炼半小时(蹲起、哑铃、俯卧撑); 7 点起床; 8 点出发; 9 点上班;
2023-05-09 13:23:35 +08:00
回复了 zhenyoung 创建的主题 程序员 翻译插件
2023-03-27 16:46:49 +08:00
回复了 sugarkeek 创建的主题 上海 数字人民币还有哪些优惠活动吗
招商银行:北京 M+6 级会员及以上可以领 10 元消费红包
https://cmbt.cn/A41EcU8FY
2023-03-13 10:34:27 +08:00
回复了 Mason2021 创建的主题 程序员 分享: Zed 编辑器邀请链接
2022-09-07 15:28:22 +08:00
回复了 SniperXu 创建的主题 Vue.js vue3+vite 动态引入 SVG ICON 的问题
https://codesandbox.io/s/magical-carson-n6540i?file=/src/Icon.vue

Icon.vue

<script lang="ts">
import { defineComponent, computed, defineAsyncComponent } from "vue";

export default defineComponent({
props: ["icon"],
setup(props) {
const iconCompoent = computed(() => {
return defineAsyncComponent(async () => {
return (await import("@vicons/ionicons5"))[props.icon];
});
});
return {
iconCompoent,
};
},
});
</script>

<template>
<n-icon :component="iconCompoent" />
</template>


使用


Demo.vue

<template>
<Icon icon="GameController" />
<Icon icon="GameController" size="40" color="#0e7a0d" />
</template>

<script lang="ts">
import { defineComponent } from "vue";
import Icon from "./Icon.vue";
export default defineComponent({
components: {
Icon,
},
});
</script>
2022-01-19 17:15:21 +08:00
回复了 krliang 创建的主题 问与答 还有 10+天就要春节了,大家要回老家过年么?
想回,车票还没抢到
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2334 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms · UTC 10:57 · PVG 18:57 · LAX 03:57 · JFK 06:57
Developed with CodeLauncher
♥ Do have faith in what you're doing.