@lowcodeui/relation
v1.2.8
Published
连接定制化元件和 BI 平台的
Downloads
4
Readme
连接定制化元件和 BI 平台的
Use
import { Options, Vue } from "vue-class-component";
import { Relation } from "@linezone/relation";
import packageInfo from "../package.json";
export default class Text extends Vue {
//元件内,先创建一个联系BI平台变量:relationObj
private relationObj: any = null;
private defaultValue = "默认值。。。。";
private style = "font-size:13px;";
private rules = `{
defaultValue: function() {
this.defaultValue = "111默认值。。。。";
}
}`;
mounted() {
//注册Relatio 的实例对象一定要在mounted里实现
//this:组件本身、this.rules:组件开放api、packageInfo:组件属性信息
this.relationObj = new Relation(this, this.rules, packageInfo);
}
}