fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

61 lines
1.4 KiB

import { shortcut, Widget, createItems } from "@/core";
@shortcut()
export class Func extends Widget {
static xtype = "demo.searcher_view";
props = { baseCls: "demo-func" };
render() {
const self = this;
return {
type: "bi.absolute",
items: [
{
el: {
type: "bi.searcher_view",
ref() {
self.searcherView = this;
},
},
left: 100,
top: 20,
width: 230,
}
],
};
}
mounted() {
this.searcherView.populate(
createItems(
[
{
text: 2012,
},
{
text: 2013,
},
{
text: 2014,
},
{
text: 2015,
}
],
{
type: "bi.label",
textHeight: 24,
height: 24,
}
),
[
{
text: 2,
}
],
"2"
);
}
}