|
|
@ -1838,7 +1838,124 @@ BI.shortcut("demo.color_chooser", Demo.Func);Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.shortcut("demo.complex_canvas", Demo.Func);Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
BI.shortcut("demo.complex_canvas", Demo.Func);/** |
|
|
|
|
|
|
|
* Created by Dailer on 2017/7/11. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
Demo.ClearEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
baseCls: "" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
|
|
|
var editor; |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.horizontal_auto", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.shelter_editor", |
|
|
|
|
|
|
|
cls: "bi-border", |
|
|
|
|
|
|
|
ref:function(_ref){ |
|
|
|
|
|
|
|
editor=_ref; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
width: 300, |
|
|
|
|
|
|
|
watermark: "这个是带标记的" |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
type:"bi.button", |
|
|
|
|
|
|
|
text:"setValue", |
|
|
|
|
|
|
|
width:300, |
|
|
|
|
|
|
|
handler:function(){ |
|
|
|
|
|
|
|
editor.setValue("凛冬将至"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
type:"bi.button", |
|
|
|
|
|
|
|
text:"doHighLight", |
|
|
|
|
|
|
|
width:300, |
|
|
|
|
|
|
|
handler:function(){ |
|
|
|
|
|
|
|
editor.doHighLight(); |
|
|
|
|
|
|
|
console.log(editor.getState()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
vgap: 20 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("demo.shelter_editor", Demo.ClearEditor);/** |
|
|
|
|
|
|
|
* Created by Dailer on 2017/7/14. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
Demo.SignEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
baseCls: "" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.horizontal_adapt", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.sign_editor", |
|
|
|
|
|
|
|
// cls:"layout-bg5",
|
|
|
|
|
|
|
|
value: "123", |
|
|
|
|
|
|
|
text: "456", |
|
|
|
|
|
|
|
width: 300 |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
vgap: 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("demo.sign_editor", Demo.SignEditor);/** |
|
|
|
|
|
|
|
* Created by Dailer on 2017/7/11. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
Demo.SignInitialEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
baseCls: "" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
mounted: function () { |
|
|
|
|
|
|
|
this.editor.setValue({ |
|
|
|
|
|
|
|
value: "123", |
|
|
|
|
|
|
|
text: "sdga" |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
|
|
|
var self = this; |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.horizontal_adapt", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.sign_initial_editor", |
|
|
|
|
|
|
|
ref: function () { |
|
|
|
|
|
|
|
self.editor = this; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
cls: "layout-bg5", |
|
|
|
|
|
|
|
text: "原始值", |
|
|
|
|
|
|
|
width: 300 |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
vgap: 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("demo.sign_initial_editor", Demo.SignInitialEditor);/** |
|
|
|
|
|
|
|
* Created by Dailer on 2017/7/11. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
Demo.StateEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
baseCls: "" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.horizontal_adapt", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.state_editor", |
|
|
|
|
|
|
|
value: "123", |
|
|
|
|
|
|
|
text: "456", |
|
|
|
|
|
|
|
width: 300 |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
vgap: 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("demo.state_editor", Demo.StateEditor);Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
baseCls: "demo-func" |
|
|
|
baseCls: "demo-func" |
|
|
|
}, |
|
|
|
}, |
|
|
@ -3038,10 +3155,6 @@ BI.shortcut("demo.value_chooser_pane", Demo.ValueChooserPane);Demo.BASE_CONFIG = |
|
|
|
pId: 3, |
|
|
|
pId: 3, |
|
|
|
id: 301, |
|
|
|
id: 301, |
|
|
|
text: "editors" |
|
|
|
text: "editors" |
|
|
|
}, { |
|
|
|
|
|
|
|
pId: 301, |
|
|
|
|
|
|
|
text: "bi.record_editor", |
|
|
|
|
|
|
|
value: "demo.record_editor" |
|
|
|
|
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 301, |
|
|
|
pId: 301, |
|
|
|
text: "bi.shelter_editor", |
|
|
|
text: "bi.shelter_editor", |
|
|
@ -3050,6 +3163,10 @@ BI.shortcut("demo.value_chooser_pane", Demo.ValueChooserPane);Demo.BASE_CONFIG = |
|
|
|
pId: 301, |
|
|
|
pId: 301, |
|
|
|
text: "bi.sign_editor", |
|
|
|
text: "bi.sign_editor", |
|
|
|
value: "demo.sign_editor" |
|
|
|
value: "demo.sign_editor" |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
pId: 301, |
|
|
|
|
|
|
|
text: "bi.sign_initial_editor", |
|
|
|
|
|
|
|
value: "demo.sign_initial_editor" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 301, |
|
|
|
pId: 301, |
|
|
|
text: "bi.state_editor", |
|
|
|
text: "bi.state_editor", |
|
|
@ -3350,298 +3467,257 @@ Demo.COMPONENT_CONFIG = [{ |
|
|
|
id: 4, |
|
|
|
id: 4, |
|
|
|
text: "详细控件", |
|
|
|
text: "详细控件", |
|
|
|
open: true |
|
|
|
open: true |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 420, |
|
|
|
id: 420, |
|
|
|
text: '各种小控件', |
|
|
|
text: '各种小控件', |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 420, |
|
|
|
pId: 420, |
|
|
|
text: "各种通用按钮", |
|
|
|
text: "各种通用按钮", |
|
|
|
value: "demo.buttons" |
|
|
|
value: "demo.buttons" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 420, |
|
|
|
pId: 420, |
|
|
|
text: "各种提示性信息", |
|
|
|
text: "各种提示性信息", |
|
|
|
value: "demo.tips" |
|
|
|
value: "demo.tips" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 420, |
|
|
|
pId: 420, |
|
|
|
text: "各种items", |
|
|
|
text: "各种items", |
|
|
|
value: "demo.items" |
|
|
|
value: "demo.items" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 420, |
|
|
|
pId: 420, |
|
|
|
text: "各种节点node", |
|
|
|
text: "各种节点node", |
|
|
|
value: "demo.nodes" |
|
|
|
value: "demo.nodes" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 420, |
|
|
|
pId: 420, |
|
|
|
text: "各种segment", |
|
|
|
text: "各种segment", |
|
|
|
value: "demo.segments" |
|
|
|
value: "demo.segments" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 420, |
|
|
|
pId: 420, |
|
|
|
text: "可以切换的树", |
|
|
|
text: "可以切换的树", |
|
|
|
value: "demo.switch_tree" |
|
|
|
value: "demo.switch_tree" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
id: 400, |
|
|
|
id: 400, |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
text: "tree" |
|
|
|
text: "tree" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 400, |
|
|
|
pId: 400, |
|
|
|
text: "bi.multi_tree_combo", |
|
|
|
text: "bi.multi_tree_combo", |
|
|
|
value: "demo.multi_tree_combo" |
|
|
|
value: "demo.multi_tree_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 400, |
|
|
|
pId: 400, |
|
|
|
text: "bi.switch_tree", |
|
|
|
text: "bi.switch_tree", |
|
|
|
value: "demo.switch_tree" |
|
|
|
value: "demo.switch_tree" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
id: 401, |
|
|
|
id: 401, |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
text: "table" |
|
|
|
text: "table" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 401, |
|
|
|
pId: 401, |
|
|
|
text: "bi.preview_table", |
|
|
|
text: "bi.preview_table", |
|
|
|
value: "demo.preview_table" |
|
|
|
value: "demo.preview_table" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 401, |
|
|
|
pId: 401, |
|
|
|
text: "bi.responsive_table", |
|
|
|
text: "bi.responsive_table", |
|
|
|
value: "demo.responsive_table" |
|
|
|
value: "demo.responsive_table" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 401, |
|
|
|
pId: 401, |
|
|
|
text: "bi.excel_table", |
|
|
|
text: "bi.excel_table", |
|
|
|
value: "demo.excel_table" |
|
|
|
value: "demo.excel_table" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 402, |
|
|
|
id: 402, |
|
|
|
text: "年份控件", |
|
|
|
text: "年份控件", |
|
|
|
open: false |
|
|
|
open: false |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 402, |
|
|
|
pId: 402, |
|
|
|
text: "bi.year_combo", |
|
|
|
text: "bi.year_combo", |
|
|
|
value: "demo.year" |
|
|
|
value: "demo.year" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 403, |
|
|
|
id: 403, |
|
|
|
text: "月份控件", |
|
|
|
text: "月份控件", |
|
|
|
open: false |
|
|
|
open: false |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 403, |
|
|
|
pId: 403, |
|
|
|
text: "bi.month_combo", |
|
|
|
text: "bi.month_combo", |
|
|
|
value: "demo.month" |
|
|
|
value: "demo.month" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 404, |
|
|
|
id: 404, |
|
|
|
text: "季度控件", |
|
|
|
text: "季度控件", |
|
|
|
open: false |
|
|
|
open: false |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 404, |
|
|
|
pId: 404, |
|
|
|
text: "bi.quarter_combo", |
|
|
|
text: "bi.quarter_combo", |
|
|
|
value: "demo.quarter" |
|
|
|
value: "demo.quarter" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 405, |
|
|
|
id: 405, |
|
|
|
text: "下拉列表", |
|
|
|
text: "下拉列表", |
|
|
|
open: false |
|
|
|
open: false |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 405, |
|
|
|
pId: 405, |
|
|
|
text: "bi.down_list_combo", |
|
|
|
text: "bi.down_list_combo", |
|
|
|
value: "demo.down_list" |
|
|
|
value: "demo.down_list" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 406, |
|
|
|
id: 406, |
|
|
|
text: "文本框控件", |
|
|
|
text: "文本框控件", |
|
|
|
open: false |
|
|
|
open: false |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 406, |
|
|
|
pId: 406, |
|
|
|
text: "bi.text_editor", |
|
|
|
text: "bi.text_editor", |
|
|
|
value: "demo.text_editor" |
|
|
|
value: "demo.text_editor" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 406, |
|
|
|
pId: 406, |
|
|
|
text: "bi.search_editor", |
|
|
|
text: "bi.search_editor", |
|
|
|
value: "demo.search_editor" |
|
|
|
value: "demo.search_editor" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 406, |
|
|
|
|
|
|
|
text: "bi.sign_editor", |
|
|
|
|
|
|
|
value: "demo.sign_editor" |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
pId: 406, |
|
|
|
|
|
|
|
text: "bi.sign_initial_editor", |
|
|
|
|
|
|
|
value: "demo.sign_initial_editor" |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
pId: 406, |
|
|
|
|
|
|
|
text: "bi.sign_style_editor", |
|
|
|
|
|
|
|
value: "demo.sign_style_editor" |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
pId: 406, |
|
|
|
|
|
|
|
text: "bi.state_editor", |
|
|
|
|
|
|
|
value: "demo.state_editor" |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
pId: 406, |
|
|
|
pId: 406, |
|
|
|
text: "bi.clear_editor", |
|
|
|
text: "bi.clear_editor", |
|
|
|
value: "demo.clear_editor" |
|
|
|
value: "demo.clear_editor" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 406, |
|
|
|
|
|
|
|
text: "bi.record_editor", |
|
|
|
|
|
|
|
value: "demo.record_editor" |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
pId: 406, |
|
|
|
|
|
|
|
text: "bi.shelter_editor", |
|
|
|
|
|
|
|
value: "demo.shelter_editor" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 407, |
|
|
|
id: 407, |
|
|
|
text: "下拉框控件", |
|
|
|
text: "下拉框控件", |
|
|
|
open: false |
|
|
|
open: false |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 407, |
|
|
|
pId: 407, |
|
|
|
text: "bi.text_value_combo", |
|
|
|
text: "bi.text_value_combo", |
|
|
|
value: "demo.text_value_combo" |
|
|
|
value: "demo.text_value_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 407, |
|
|
|
pId: 407, |
|
|
|
text: "bi.text_value_check_combo", |
|
|
|
text: "bi.text_value_check_combo", |
|
|
|
value: "demo.text_value_check_combo" |
|
|
|
value: "demo.text_value_check_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 407, |
|
|
|
pId: 407, |
|
|
|
text: "bi.text_value_down_list_combo", |
|
|
|
text: "bi.text_value_down_list_combo", |
|
|
|
value: "demo.text_value_down_list_combo" |
|
|
|
value: "demo.text_value_down_list_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 407, |
|
|
|
pId: 407, |
|
|
|
text: "bi.static_combo", |
|
|
|
text: "bi.static_combo", |
|
|
|
value: "demo.static_combo" |
|
|
|
value: "demo.static_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 407, |
|
|
|
pId: 407, |
|
|
|
text: "bi.icon_combo", |
|
|
|
text: "bi.icon_combo", |
|
|
|
value: "demo.icon_combo" |
|
|
|
value: "demo.icon_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 407, |
|
|
|
pId: 407, |
|
|
|
text: "bi.formula_combo", |
|
|
|
text: "bi.formula_combo", |
|
|
|
value: "demo.formula_combo" |
|
|
|
value: "demo.formula_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
|
|
|
|
id: 408, |
|
|
|
|
|
|
|
text: "选择字段列表", |
|
|
|
|
|
|
|
open: false |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
pId: 408, |
|
|
|
|
|
|
|
text: "bi.placeholder" |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
pId: 4, |
|
|
|
|
|
|
|
id: 409, |
|
|
|
|
|
|
|
text: "公式编辑器", |
|
|
|
|
|
|
|
open: false |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
pId: 409, |
|
|
|
|
|
|
|
text: "bi.placeholder" |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 410, |
|
|
|
id: 410, |
|
|
|
text: "数值区间控件" |
|
|
|
text: "数值区间控件" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 410, |
|
|
|
pId: 410, |
|
|
|
text: "bi.numerical_interval", |
|
|
|
text: "bi.numerical_interval", |
|
|
|
value: "demo.numberical_interval" |
|
|
|
value: "demo.numberical_interval" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 411, |
|
|
|
id: 411, |
|
|
|
text: "下拉复选框有确定按钮" |
|
|
|
text: "下拉复选框有确定按钮" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 411, |
|
|
|
pId: 411, |
|
|
|
text: "bi.multi_select_combo", |
|
|
|
text: "bi.multi_select_combo", |
|
|
|
value: "demo.multi_select_combo" |
|
|
|
value: "demo.multi_select_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 412, |
|
|
|
id: 412, |
|
|
|
text: "简单日期控件" |
|
|
|
text: "简单日期控件" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 412, |
|
|
|
pId: 412, |
|
|
|
text: "bi.date_combo", |
|
|
|
text: "bi.date_combo", |
|
|
|
value: "demo.date" |
|
|
|
value: "demo.date" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 412, |
|
|
|
pId: 412, |
|
|
|
text: "bi.date_pane_widget", |
|
|
|
text: "bi.date_pane_widget", |
|
|
|
value: "demo.date_pane_widget" |
|
|
|
value: "demo.date_pane_widget" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 412, |
|
|
|
pId: 412, |
|
|
|
text: "bi.year_month_combo", |
|
|
|
text: "bi.year_month_combo", |
|
|
|
value: "demo.year_month_combo" |
|
|
|
value: "demo.year_month_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 412, |
|
|
|
pId: 412, |
|
|
|
text: "bi.year_quarter_combo", |
|
|
|
text: "bi.year_quarter_combo", |
|
|
|
value: "demo.year_quarter_combo" |
|
|
|
value: "demo.year_quarter_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 412, |
|
|
|
pId: 412, |
|
|
|
text: "bi.custom_date_time", |
|
|
|
text: "bi.custom_date_time", |
|
|
|
value: "demo.custom_date_time" |
|
|
|
value: "demo.custom_date_time" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 413, |
|
|
|
id: 413, |
|
|
|
text: "简单下拉树" |
|
|
|
text: "简单下拉树" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 413, |
|
|
|
pId: 413, |
|
|
|
text: "bi.single_tree_combo", |
|
|
|
text: "bi.single_tree_combo", |
|
|
|
value: "demo.single_tree_combo" |
|
|
|
value: "demo.single_tree_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 413, |
|
|
|
pId: 413, |
|
|
|
text: "bi.multilayer_single_tree_combo", |
|
|
|
text: "bi.multilayer_single_tree_combo", |
|
|
|
value: "demo.multilayer_single_tree_combo" |
|
|
|
value: "demo.multilayer_single_tree_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 414, |
|
|
|
id: 414, |
|
|
|
text: "可选下拉树" |
|
|
|
text: "可选下拉树" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 414, |
|
|
|
pId: 414, |
|
|
|
text: "bi.select_tree_combo", |
|
|
|
text: "bi.select_tree_combo", |
|
|
|
value: "demo.select_tree_combo" |
|
|
|
value: "demo.select_tree_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 414, |
|
|
|
pId: 414, |
|
|
|
text: "bi.multilayer_select_tree_combo", |
|
|
|
text: "bi.multilayer_select_tree_combo", |
|
|
|
value: "demo.multilayer_select_tree_combo" |
|
|
|
value: "demo.multilayer_select_tree_combo" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 415, |
|
|
|
id: 415, |
|
|
|
text: "路径选择" |
|
|
|
text: "路径选择" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 415, |
|
|
|
pId: 415, |
|
|
|
text: "bi.path_chooser", |
|
|
|
text: "bi.path_chooser", |
|
|
|
value: "demo.path_chooser" |
|
|
|
value: "demo.path_chooser" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 415, |
|
|
|
pId: 415, |
|
|
|
text: "bi.direction_path_chooser", |
|
|
|
text: "bi.direction_path_chooser", |
|
|
|
value: "demo.direction_path_chooser" |
|
|
|
value: "demo.direction_path_chooser" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 416, |
|
|
|
id: 416, |
|
|
|
text: "关联视图" |
|
|
|
text: "关联视图" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 416, |
|
|
|
pId: 416, |
|
|
|
text: "bi.relation_view", |
|
|
|
text: "bi.relation_view", |
|
|
|
value: "demo.relation_view" |
|
|
|
value: "demo.relation_view" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 417, |
|
|
|
id: 417, |
|
|
|
text: "布局" |
|
|
|
text: "布局" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 417, |
|
|
|
pId: 417, |
|
|
|
text: "bi.adaptive_arrangement", |
|
|
|
text: "bi.adaptive_arrangement", |
|
|
|
value: "demo.adaptive_arrangement" |
|
|
|
value: "demo.adaptive_arrangement" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 417, |
|
|
|
pId: 417, |
|
|
|
text: "bi.interactive_arrangement", |
|
|
|
text: "bi.interactive_arrangement", |
|
|
|
value: "demo.interactive_arrangement" |
|
|
|
value: "demo.interactive_arrangement" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 418, |
|
|
|
id: 418, |
|
|
|
text: "提示对话框" |
|
|
|
text: "提示对话框" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 418, |
|
|
|
pId: 418, |
|
|
|
text: "bi.dialog", |
|
|
|
text: "bi.dialog", |
|
|
|
value: "demo.dialog" |
|
|
|
value: "demo.dialog" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 4, |
|
|
|
pId: 4, |
|
|
|
id: 419, |
|
|
|
id: 419, |
|
|
|
text: "文件管理" |
|
|
|
text: "文件管理" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
pId: 419, |
|
|
|
pId: 419, |
|
|
|
text: "demo.file_manager", |
|
|
|
text: "bi.file_manager", |
|
|
|
value: "demo.file_manager" |
|
|
|
value: "demo.file_manager" |
|
|
|
} |
|
|
|
} |
|
|
|
];Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
];Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
baseCls: "demo-func" |
|
|
|
baseCls: "demo-func" |
|
|
@ -7453,27 +7529,6 @@ Demo.ClearEditor = BI.inherit(BI.Widget, { |
|
|
|
BI.shortcut("demo.clear_editor", Demo.ClearEditor);/** |
|
|
|
BI.shortcut("demo.clear_editor", Demo.ClearEditor);/** |
|
|
|
* Created by Dailer on 2017/7/11. |
|
|
|
* Created by Dailer on 2017/7/11. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
Demo.RecordEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
baseCls: "" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.horizontal_auto", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.record_editor", |
|
|
|
|
|
|
|
cls: "bi-border", |
|
|
|
|
|
|
|
width: 300, |
|
|
|
|
|
|
|
watermark: "这个是可以记录输入的" |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
vgap: 20 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("demo.record_editor", Demo.RecordEditor);/** |
|
|
|
|
|
|
|
* Created by Dailer on 2017/7/11. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
Demo.SearchEditor = BI.inherit(BI.Widget, { |
|
|
|
Demo.SearchEditor = BI.inherit(BI.Widget, { |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
baseCls: "demo-exceltable" |
|
|
|
baseCls: "demo-exceltable" |
|
|
@ -7502,136 +7557,6 @@ Demo.SearchEditor = BI.inherit(BI.Widget, { |
|
|
|
BI.shortcut("demo.search_editor", Demo.SearchEditor);/** |
|
|
|
BI.shortcut("demo.search_editor", Demo.SearchEditor);/** |
|
|
|
* Created by Dailer on 2017/7/11. |
|
|
|
* Created by Dailer on 2017/7/11. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
Demo.ClearEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
baseCls: "" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
|
|
|
var editor; |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.horizontal_auto", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.shelter_editor", |
|
|
|
|
|
|
|
cls: "bi-border", |
|
|
|
|
|
|
|
ref:function(_ref){ |
|
|
|
|
|
|
|
editor=_ref; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
width: 300, |
|
|
|
|
|
|
|
watermark: "这个是带标记的" |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
type:"bi.button", |
|
|
|
|
|
|
|
text:"setValue", |
|
|
|
|
|
|
|
width:300, |
|
|
|
|
|
|
|
handler:function(){ |
|
|
|
|
|
|
|
editor.setValue("凛冬将至"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
type:"bi.button", |
|
|
|
|
|
|
|
text:"doHighLight", |
|
|
|
|
|
|
|
width:300, |
|
|
|
|
|
|
|
handler:function(){ |
|
|
|
|
|
|
|
editor.doHighLight(); |
|
|
|
|
|
|
|
console.log(editor.getState()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
vgap: 20 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("demo.shelter_editor", Demo.ClearEditor);/** |
|
|
|
|
|
|
|
* Created by Dailer on 2017/7/14. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
Demo.SignEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
baseCls: "" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.horizontal_adapt", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.sign_editor", |
|
|
|
|
|
|
|
// cls:"layout-bg5",
|
|
|
|
|
|
|
|
value: "123", |
|
|
|
|
|
|
|
text: "456", |
|
|
|
|
|
|
|
width: 300 |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
vgap: 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("demo.sign_editor", Demo.SignEditor);/** |
|
|
|
|
|
|
|
* Created by Dailer on 2017/7/11. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
Demo.SignInitialEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
baseCls: "" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.horizontal_adapt", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.sign_initial_editor", |
|
|
|
|
|
|
|
cls:"layout-bg5", |
|
|
|
|
|
|
|
value:"123", |
|
|
|
|
|
|
|
text:"456", |
|
|
|
|
|
|
|
width: 300 |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
vgap:20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("demo.sign_initial_editor", Demo.SignInitialEditor);/** |
|
|
|
|
|
|
|
* Created by Dailer on 2017/7/11. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
Demo.SignStyleEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
baseCls: "demo-exceltable" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.horizontal_adapt", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.sign_style_editor", |
|
|
|
|
|
|
|
cls:"layout-bg5", |
|
|
|
|
|
|
|
value:"12313", |
|
|
|
|
|
|
|
width: 300 |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
vgap:20 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("demo.sign_style_editor", Demo.SignStyleEditor);/** |
|
|
|
|
|
|
|
* Created by Dailer on 2017/7/11. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
Demo.StateEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
baseCls: "" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.horizontal_adapt", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.state_editor", |
|
|
|
|
|
|
|
cls:"bi-border", |
|
|
|
|
|
|
|
value:"123", |
|
|
|
|
|
|
|
text:"456", |
|
|
|
|
|
|
|
width: 300 |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
vgap:20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("demo.state_editor", Demo.StateEditor);/** |
|
|
|
|
|
|
|
* Created by Dailer on 2017/7/11. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
Demo.TextEditor = BI.inherit(BI.Widget, { |
|
|
|
Demo.TextEditor = BI.inherit(BI.Widget, { |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
baseCls: "demo-exceltable" |
|
|
|
baseCls: "demo-exceltable" |
|
|
|