Sign In

@daflow-ui/ui-avatar

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@daflow-ui/ui-avatar

Avatar component for DaFlow UI

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@daflow-ui/ui-avatar

Avatar component for DaFlow UI component library.

Installation

pnpm add @daflow-ui/ui-avatar

Usage

全局引入样式(在 main.ts 中):

import '@daflow-ui/ui-avatar/style.css';

在组件中使用:

<script setup lang="ts">
import { DfAvatar } from '@daflow-ui/ui-avatar';
</script>

<template>
  <DfAvatar
    src="https://i.pravatar.cc/120?img=12"
    fallback="DF"
  />
</template>

Development

Install dependencies

pnpm install

Start playground (at monorepo root)

cd ../..  # 回到 monorepo 根目录
pnpm dev  # 启动统一 playground,自动发现组件

组件会自动出现在 playground 导航中(通过 dev/index.vue)。

Build

pnpm build

Type check

pnpm typecheck

Lint

pnpm lint
pnpm lint:fix

License

MIT

Keywords

vue

FAQs

Package last updated on 04 Mar 2026

Related posts