jm-chatbox

1.1.2 • Public • Published

在线智能客服

vue 3

import { Chat } from 'jm-chatbox'
const appid = 'xxx'
<Chat :appid="appid" />

js

new JMChat()
new JMChat({
  color: '#1e40af',
  gradient: 'red, orange, blue',
  distance: 20,
  position: 'bottom-left',
  icons: ['https://tos.learningmall.cn/lm_web_file/1ht659a75e78.webp', 'https://tos.learningmall.cn/lm_web_file/1ht659cnm6d8.jpeg'],
})

props

名称 类型 默认值 说明 备注
appid String - appid 必须 -
knids Array - 知识库 ids -
title String LM Premium 在线支持 标题 -
color String #7c3aed 主要颜色 -
gradient String #8b5cf6,#7c3aed 渐变色 -
position String bottom-right 位置 bottom-right[右下], margin, top-right[右上], top-left[左上]
margin [Array, String] [20,20] 边距 20,20
icons [Array, String] [大图,小图标] 图标 string 时用英文,分割
iconSize [Number, String] 60 图标大小 -

Readme

Keywords

Package Sidebar

Install

npm i jm-chatbox

Weekly Downloads

12

Version

1.1.2

License

ISC

Unpacked Size

263 kB

Total Files

8

Last publish

Collaborators

  • shuimei262