说明

1. 使用您喜欢的软件包管理器安装npm软件包

# npm
npm install --save @notice-org/vue

# yarn
yarn add @notice-org/vue

# pnpm
pnpm add @notice-org/vue






2. 您现在可以在任何地方导入和使用通知组件

<script setup>
import { Notice } from '@notice-org/vue'
</script>

<template>
  <Notice pageId="{{{project}}}" />
</template>






3. 您可以添加任何这些属性

<Notice
  project-id="string" // required
  page="string" // optionnal
  lang="string" // optionnal
  theme="light | dark" // optionnal
  navigation-type="query | memory" // default to memory
/>

// You can also pass children to this component that will act as a loading state
<Notice pageId="...">
  <span>Loading...</span>
</Notice>







示例沙盒


由 Notice 创建