|
|
|
@ -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: { |
|
|
|
|
baseCls: "demo-func" |
|
|
|
|
}, |
|
|
|
@ -3038,10 +3155,6 @@ BI.shortcut("demo.value_chooser_pane", Demo.ValueChooserPane);Demo.BASE_CONFIG =
|
|
|
|
|
pId: 3, |
|
|
|
|
id: 301, |
|
|
|
|
text: "editors" |
|
|
|
|
}, { |
|
|
|
|
pId: 301, |
|
|
|
|
text: "bi.record_editor", |
|
|
|
|
value: "demo.record_editor" |
|
|
|
|
}, { |
|
|
|
|
pId: 301, |
|
|
|
|
text: "bi.shelter_editor", |
|
|
|
@ -3050,6 +3163,10 @@ BI.shortcut("demo.value_chooser_pane", Demo.ValueChooserPane);Demo.BASE_CONFIG =
|
|
|
|
|
pId: 301, |
|
|
|
|
text: "bi.sign_editor", |
|
|
|
|
value: "demo.sign_editor" |
|
|
|
|
}, { |
|
|
|
|
pId: 301, |
|
|
|
|
text: "bi.sign_initial_editor", |
|
|
|
|
value: "demo.sign_initial_editor" |
|
|
|
|
}, { |
|
|
|
|
pId: 301, |
|
|
|
|
text: "bi.state_editor", |
|
|
|
@ -3455,36 +3572,11 @@ Demo.COMPONENT_CONFIG = [{
|
|
|
|
|
pId: 406, |
|
|
|
|
text: "bi.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, |
|
|
|
|
text: "bi.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, |
|
|
|
|
id: 407, |
|
|
|
|
text: "下拉框控件", |
|
|
|
@ -3513,22 +3605,6 @@ Demo.COMPONENT_CONFIG = [{
|
|
|
|
|
pId: 407, |
|
|
|
|
text: "bi.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, |
|
|
|
|
id: 410, |
|
|
|
@ -3639,7 +3715,7 @@ Demo.COMPONENT_CONFIG = [{
|
|
|
|
|
text: "文件管理" |
|
|
|
|
}, { |
|
|
|
|
pId: 419, |
|
|
|
|
text: "demo.file_manager", |
|
|
|
|
text: "bi.file_manager", |
|
|
|
|
value: "demo.file_manager" |
|
|
|
|
} |
|
|
|
|
];Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
@ -7453,27 +7529,6 @@ Demo.ClearEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
BI.shortcut("demo.clear_editor", Demo.ClearEditor);/** |
|
|
|
|
* 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, { |
|
|
|
|
props: { |
|
|
|
|
baseCls: "demo-exceltable" |
|
|
|
@ -7502,136 +7557,6 @@ Demo.SearchEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
BI.shortcut("demo.search_editor", Demo.SearchEditor);/** |
|
|
|
|
* 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, { |
|
|
|
|
props: { |
|
|
|
|
baseCls: "demo-exceltable" |
|
|
|
|