Sign In

@daflow-ui/ui-alert

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@daflow-ui/ui-alert

Alert component for DaFlow UI

latest
npmnpm
Version
0.1.1
Version published
Weekly downloads
3
-66.67%
Maintainers
2
Weekly downloads
 
Created
Source

@daflow-ui/ui-alert

Alert component for DaFlow UI component library.

Installation

pnpm add @daflow-ui/ui-alert

Usage

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

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

在组件中使用:

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

<template>
  <DfAlert title="系统通知" variant="primary">
    本周五 18:00-20:00 将进行系统维护,请提前保存工作。
  </DfAlert>
</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 05 Mar 2026

Related posts