enn-juan-fe-ai
v0.0.3
Published
<h3 align="center"> 聚安前端 </h3>
Downloads
4
Maintainers
Readme
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>