enn-juan-fe-ai
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

聚安前端

一个基于聚安前端文档站的AI知识文档工具

Usage

npm install enn-juan-fe-ai
<script setup>
import Documate from 'enn-juan-fe-ai'
import 'enn-juan-fe-ai/dist/style.css'
</script>

<template>
  <div>
    <!-- Replace the URL with your own one -->
    <Documate endpoint="https://test123.us.aircode.run" authorization="2342424"/>
  </div>
</template>

Other Props check here component-props

Custom Button

<script setup>
import {Dialog} from 'enn-juan-fe-ai'
import 'enn-juan-fe-ai/dist/style.css'
import { ref } from 'vue'

const isOpen = ref(false)
</script>

<template>
<button type="button" @click="isOpen = true">Click me to Ask AI</button>
<Dialog  endpoint="https://xqtb17uycg.us.aircode.run/ask",authorization="12313131"
  :predefinedQuestions=[
    '聚安前端是什么团队?',
  ],
  :open = "isOpen"
  @close="isOpen = false"></Dialog>
</template>

Package Sidebar

Install

npm i enn-juan-fe-ai

Weekly Downloads

19

Version

0.0.3

License

none

Unpacked Size

2.81 MB

Total Files

8

Last publish

Collaborators

  • shijianzhong