aixiaoyun-v2
0.0.0 • Public • Published
vue2下载依赖
npm install aIxiaoYun-V2
导入ai-web-ui
import { aIxiaoYun } from "aIxiaoYun-V2";
导入组件样式
import "aIxiaoYun/index.css";
组件使用
1.注册组件
components: { aIxiaoYun },
1.组件初始化
<aIxiaoYun @callbackData="callbackData" :aiProps="aiProps"></aIxiaoYun>
2.组件参数说明
props: {
linkUrl:"", // 链接地址 可不传
aiProps: {
pyApi: {
url:""
},
// 样式自定义 2者选一
updateStyle: {
// textContent: `.xiaoYunAIBox .xiaoYunAI_header .icon-guanbi {color: aqua;}`,
// url: "https://anhui.project.agrisaas.com.cn/supervise/webXiaoYun/assets/_plugin-vue_export-helper-Dj0mO6rZ.css",
},
...
},
},
3.组件方法
methods: { // 回调可不传
callbackData(data) {
console.log(data);
}
}
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads