From 1f68790a7d03ecf396fcc791b28386f9c202e102 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 14 Aug 2018 15:51:50 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E6=95=B4?= =?UTF-8?q?=E7=90=86=E4=B8=80=E4=B8=8Bfineui=20demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/js/base/demo.canvas.js | 48 ---- demo/js/base/demo.svg.js | 32 --- demo/js/base/editor/demo.code_editor.js | 33 --- demo/js/base/editor/demo.formula_editor.js | 21 -- demo/js/base/editor/demo.rich_editor.js | 61 ----- demo/js/base/editor/demo.sql_editor.js | 33 --- demo/js/case/demo.clipboard.js | 42 ---- demo/js/case/demo.complex_canvas.js | 35 --- .../case/editor/demo.sign_initial_editor.js | 33 --- demo/js/case/tree/demo.branch_relation.js | 149 ----------- demo/js/case/tree/demo.branch_tree.js | 233 ------------------ .../case/tree/demo.handstand_branch_tree.js | 103 -------- demo/js/config/base.js | 24 -- demo/js/config/case.js | 32 --- demo/js/config/widget.js | 12 - demo/js/widget/tree/demo.switchtree.js | 57 ----- src/css/base/editor/editor.css | 4 - src/less/base/editor/editor.sign.initial.less | 7 - 18 files changed, 959 deletions(-) delete mode 100644 demo/js/base/demo.canvas.js delete mode 100644 demo/js/base/demo.svg.js delete mode 100644 demo/js/base/editor/demo.code_editor.js delete mode 100644 demo/js/base/editor/demo.formula_editor.js delete mode 100644 demo/js/base/editor/demo.rich_editor.js delete mode 100644 demo/js/base/editor/demo.sql_editor.js delete mode 100644 demo/js/case/demo.clipboard.js delete mode 100644 demo/js/case/demo.complex_canvas.js delete mode 100644 demo/js/case/editor/demo.sign_initial_editor.js delete mode 100644 demo/js/case/tree/demo.branch_relation.js delete mode 100644 demo/js/case/tree/demo.branch_tree.js delete mode 100644 demo/js/case/tree/demo.handstand_branch_tree.js delete mode 100644 demo/js/widget/tree/demo.switchtree.js delete mode 100644 src/less/base/editor/editor.sign.initial.less diff --git a/demo/js/base/demo.canvas.js b/demo/js/base/demo.canvas.js deleted file mode 100644 index 8e8d0683ee..0000000000 --- a/demo/js/base/demo.canvas.js +++ /dev/null @@ -1,48 +0,0 @@ -Demo.Func = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-func" - }, - render: function () { - - var canvas = BI.createWidget({ - type: "bi.canvas", - width: 500, - height: 600 - }); - canvas.rect(0, 0, 80, 100, "#7dbd2f"); - - canvas.line(80, 0, 100, 100, 200, 100, 300, 0, { - strokeStyle: "red", - lineWidth: 2 - }); - - canvas.circle(150, 50, 20, "green"); - - // 渐变矩形 - canvas.rect(0, 120, 80, 100, canvas.gradient(0, 120, 80, 220, "#FF0000", "#00FF00")); - - // 空心图形 - canvas.hollow(100, 120, 100, 220, 200, 120, { - strokeStyle: "blue" - }); - - // 实心图形 - canvas.solid(100, 240, 200, 240, 150, 280, 200, 320, 100, 320, { - strokeStyle: "yellow", - fillStyle: "pink" - }); - - canvas.stroke(); - - BI.createWidget({ - type: "bi.absolute", - element: this, - items: [{ - el: canvas, - left: 100, - top: 50 - }] - }); - } -}); -BI.shortcut("demo.canvas", Demo.Func); \ No newline at end of file diff --git a/demo/js/base/demo.svg.js b/demo/js/base/demo.svg.js deleted file mode 100644 index 05fae74652..0000000000 --- a/demo/js/base/demo.svg.js +++ /dev/null @@ -1,32 +0,0 @@ -Demo.Func = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-func" - }, - render: function () { - var svg = BI.createWidget({ - type: "bi.svg", - width: 500, - height: 600 - }); - - var circle = svg.circle(100, 100, 10); - circle.animate({fill: "#223fa3", stroke: "#000", "stroke-width": 80, "stroke-opacity": 0.5}, 2000); - - var el = svg.rect(10, 200, 300, 200); - el.transform("t100,100r45t-100,0"); - - svg.path("M10,10L50,50M50,10L10,50") - .attr({stroke: "red"}); - - BI.createWidget({ - type: "bi.absolute", - element: this, - items: [{ - el: svg, - left: 100, - top: 50 - }] - }); - } -}); -BI.shortcut("demo.svg", Demo.Func); \ No newline at end of file diff --git a/demo/js/base/editor/demo.code_editor.js b/demo/js/base/editor/demo.code_editor.js deleted file mode 100644 index d95243742b..0000000000 --- a/demo/js/base/editor/demo.code_editor.js +++ /dev/null @@ -1,33 +0,0 @@ -Demo.CodeEditor = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-editor" - }, - render: function () { - var editor = BI.createWidget({ - type: "bi.code_editor", - cls: "mvc-border", - width: 600, - height: 400 - }); - BI.createWidget({ - type: "bi.vertical", - element: this, - hgap: 30, - vgap: 20, - items: [editor, { - type: "bi.button", - text: "getValue", - handler: function () { - BI.Msg.toast(JSON.stringify(editor.getValue())); - } - }, { - type: "bi.button", - text: "setValue", - handler: function () { - editor.setValue("测试数据"); - } - }] - }); - } -}); -BI.shortcut("demo.code_editor", Demo.CodeEditor); \ No newline at end of file diff --git a/demo/js/base/editor/demo.formula_editor.js b/demo/js/base/editor/demo.formula_editor.js deleted file mode 100644 index 3f0d8c5bc8..0000000000 --- a/demo/js/base/editor/demo.formula_editor.js +++ /dev/null @@ -1,21 +0,0 @@ -Demo.CodeEditor = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-editor" - }, - render: function () { - this.formula = BI.createWidget({ - type: "bi.formula_editor", - width: 300, - height: 200, - value: "SUM(C5, 16, 26)" - }); - BI.createWidget({ - type: "bi.left", - element: this, - items: [this.formula], - hgap: 20, - vgap: 20 - }); - } -}); -BI.shortcut("demo.formula_editor", Demo.CodeEditor); \ No newline at end of file diff --git a/demo/js/base/editor/demo.rich_editor.js b/demo/js/base/editor/demo.rich_editor.js deleted file mode 100644 index f36d112765..0000000000 --- a/demo/js/base/editor/demo.rich_editor.js +++ /dev/null @@ -1,61 +0,0 @@ -Demo.RichEditor = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-rich-editor" - }, - render: function () { - var self = this; - BI.createWidget({ - type: "bi.absolute", - element: this, - items: [{ - el: { - type: "bi.rich_editor", - height: "100%", - cls: "bi-border", - ref: function () { - self.editor = this; - }, - toolbar: { - type: "bi.rich_editor_text_toolbar", - buttons: [ - {type: "bi.rich_editor_font_chooser"}, - {type: "bi.rich_editor_size_chooser"}, - {type: "bi.rich_editor_bold_button"}, - {type: "bi.rich_editor_italic_button"}, - {type: "bi.rich_editor_underline_button"}, - {type: "bi.rich_editor_color_chooser"}, - { - type: "bi.rich_editor_background_color_chooser", - listeners: [{ - eventName: "EVENT_CHANGE", - action: function (backgroundColor) { - self.editor.element.css({ - backgroundColor: backgroundColor, - color: BI.DOM.getContrastColor(backgroundColor) - }); - } - }] - }, - {type: "bi.rich_editor_align_left_button"}, - {type: "bi.rich_editor_align_center_button"}, - {type: "bi.rich_editor_align_right_button"}, - {type: "bi.rich_editor_param_button"} - ] - } - }, - left: 10, - top: 10, - bottom: 10, - right: 10 - }] - }); - }, - - mounted: function () { - var image = BI.DOM.getImage("测试"); - var src = image.src; - var style = image.style; - this.editor.setValue("
这是一条测试数据
"); - } -}); -BI.shortcut("demo.rich_editor", Demo.RichEditor); \ No newline at end of file diff --git a/demo/js/base/editor/demo.sql_editor.js b/demo/js/base/editor/demo.sql_editor.js deleted file mode 100644 index 5a708adb02..0000000000 --- a/demo/js/base/editor/demo.sql_editor.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Created by Windy on 2017/12/15. - */ -Demo.SQLEditor = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-editor" - }, - render: function () { - var self = this; - this.formula = BI.createWidget({ - type : 'bi.sql_editor', - supportParam: true, - width : 300, - height : 200, - value : "select * from DEMO_CONTRACT where 合同类型 = ${长期协议} and 购买数量 = sum([1,2,3,4])" - }); - BI.createWidget({ - type: "bi.left", - element: this, - items: [this.formula, { - type: "bi.button", - height: 24, - handler: function () { - BI.Msg.alert("", self.formula.getValue()); - } - - }], - hgap: 20, - vgap: 20 - }) - } -}); -BI.shortcut("demo.sql_editor", Demo.SQLEditor); \ No newline at end of file diff --git a/demo/js/case/demo.clipboard.js b/demo/js/case/demo.clipboard.js deleted file mode 100644 index a1d0bfb300..0000000000 --- a/demo/js/case/demo.clipboard.js +++ /dev/null @@ -1,42 +0,0 @@ -Demo.Func = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-func" - }, - - render: function () { - var editor = BI.createWidget({ - type: "bi.text_editor", - width: 200, - height: 30, - value: "这是复制的内容" - }); - var clipboard = BI.createWidget({ - type: "bi.clipboard", - width: 100, - height: 100, - cls: "layout-bg1", - copy: function () { - return editor.getValue(); - }, - - afterCopy: function () { - BI.Msg.toast(editor.getValue()); - } - }); - - BI.createWidget({ - type: "bi.absolute", - element: this, - items: [{ - el: editor, - left: 100, - top: 50 - }, { - el: clipboard, - left: 100, - top: 100 - }] - }); - } -}); -BI.shortcut("demo.clipboard", Demo.Func); \ No newline at end of file diff --git a/demo/js/case/demo.complex_canvas.js b/demo/js/case/demo.complex_canvas.js deleted file mode 100644 index 7a7ff1c367..0000000000 --- a/demo/js/case/demo.complex_canvas.js +++ /dev/null @@ -1,35 +0,0 @@ -Demo.Func = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-func" - }, - - render: function () { - var canvas = BI.createWidget({ - type: "bi.complex_canvas", - width: 500, - height: 600 - }); - canvas.branch(55, 100, 10, 10, 100, 10, 200, 10, { - offset: 20, - strokeStyle: "red", - lineWidth: 2 - }); - - canvas.branch(220, 155, 120, 110, 150, 200, { - offset: 40 - }); - - canvas.stroke(); - - BI.createWidget({ - type: "bi.absolute", - element: this, - items: [{ - el: canvas, - left: 100, - top: 50 - }] - }); - } -}); -BI.shortcut("demo.complex_canvas", Demo.Func); \ No newline at end of file diff --git a/demo/js/case/editor/demo.sign_initial_editor.js b/demo/js/case/editor/demo.sign_initial_editor.js deleted file mode 100644 index f7482e7964..0000000000 --- a/demo/js/case/editor/demo.sign_initial_editor.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * 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); \ No newline at end of file diff --git a/demo/js/case/tree/demo.branch_relation.js b/demo/js/case/tree/demo.branch_relation.js deleted file mode 100644 index 8f091680c3..0000000000 --- a/demo/js/case/tree/demo.branch_relation.js +++ /dev/null @@ -1,149 +0,0 @@ -Demo.Func = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-func" - }, - - render: function () { - var relation = BI.createWidget({ - type: "bi.branch_relation", - items: [ - { - id: -1, - value: "根目录", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - }, - { - id: 1, - pId: -1, - value: "第一级目录1", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - }, - { - id: 11, - pId: 1, - value: "第二级文件1", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - }, - { - id: 12, - pId: 1, - value: "第二级目录1", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - }, - { - id: 121, - pId: 12, - value: "第三级目录1", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - }, - { - id: 122, - pId: 12, - value: "第三级文件1", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - }, - { - id: 1211, - pId: 121, - value: "第四级目录", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - }, - { - id: 12111, - pId: 1211, - value: "第五级文件1", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - }, - { - id: 2, - pId: -1, - value: "第一级目录2", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - }, - { - id: 21, - pId: 2, - value: "第二级目录2", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - }, - { - id: 22, - pId: 2, - value: "第二级文件2", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - }, - { - id: 211, - pId: 21, - value: "第三级目录2", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - }, - { - id: 212, - pId: 21, - value: "第三级文件2", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - }, - { - id: 2111, - pId: 211, - value: "第四级文件2", - type: "bi.text_button", - cls: "layout-bg2", - width: 180, - height: 100 - } - ], - - direction: BI.Direction.Right, - align: BI.HorizontalAlign.Right, - - centerOffset: -50 - }); - BI.createWidget({ - type: "bi.adaptive", - element: this, - items: [relation] - }); - } -}); -BI.shortcut("demo.branch_relation", Demo.Func); \ No newline at end of file diff --git a/demo/js/case/tree/demo.branch_tree.js b/demo/js/case/tree/demo.branch_tree.js deleted file mode 100644 index d95fcd55d2..0000000000 --- a/demo/js/case/tree/demo.branch_tree.js +++ /dev/null @@ -1,233 +0,0 @@ -Demo.Func = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-func" - }, - - _createBranchTree: function () { - var tree = BI.createWidget({ - type: "bi.branch_tree", - items: [{ - el: { - text: "且", - value: "且1", - cls: "layout-bg7" - }, - children: [{ - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字1", - value: "这里是一段文字1" - }, { - el: { - text: "或", - value: "或2", - cls: "layout-bg7" - }, - children: [{ - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字1435", - value: "这里是一段文字1435" - }, { - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字1xx", - value: "这里是一段文字1xx" - }, { - el: { - text: "且", - value: "且3", - cls: "layout-bg7" - }, - children: [{ - type: "bi.label", - height: 30, - textAlign: "left", - text: "可以理解为一个条件", - value: "可以理解为一个条件" - }, { - type: "bi.label", - height: 30, - textAlign: "left", - text: "可以理解为一个条件v", - value: "可以理解为一个条件v" - }] - }] - }, { - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字1xa", - value: "这里是一段文字1xa" - }] - }] - }); - return tree; - }, - - _createBranchMapTree: function () { - var tree = BI.createWidget({ - type: "bi.branch_tree", - el: { - type: "bi.virtual_group" - }, - items: [{ - text: "且", - value: "且1", - cls: "layout-bg7", - children: [{ - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字1", - value: "这里是一段文字1" - }, { - text: "或", - value: "或2", - cls: "layout-bg7", - children: [{ - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字1435", - value: "这里是一段文字1435" - }, { - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字1xx", - value: "这里是一段文字1xx" - }, { - text: "且", - value: "且3", - cls: "layout-bg7", - children: [{ - type: "bi.label", - height: 30, - textAlign: "left", - text: "可以理解为一个条件", - value: "可以理解为一个条件" - }, { - type: "bi.label", - height: 30, - textAlign: "left", - text: "可以理解为一个条件v", - value: "可以理解为一个条件v" - }] - }] - }, { - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字1xa", - value: "这里是一段文字1xa" - }] - }] - }); - return tree; - }, - - render: function () { - var tree = this._createBranchTree(); - var mapTree = this._createBranchMapTree(); - - function getItems () { - return [{ - text: "且", - value: "且", - cls: "layout-bg7", - children: [{ - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字", - value: "这里是一段文字" - }, { - text: "或", - value: "或2", - cls: "layout-bg7", - children: [{ - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字", - value: "这里是一段文字" - }, { - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字", - value: "这里是一段文字" - }, { - text: "且", - value: "且3", - cls: "layout-bg7", - children: [{ - type: "bi.label", - height: 30, - textAlign: "left", - text: "可以理解为一个条件", - value: "可以理解为一个条件" - }] - }] - }, { - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字1xa", - value: "这里是一段文字1xa" - }] - }]; - } - - BI.createWidget({ - type: "bi.center", - element: this, - items: [{ - type: "bi.vtape", - items: [{ - el: tree - }, { - height: 30, - el: { - type: "bi.button", - height: 30, - text: "getValue", - handler: function () { - BI.Msg.alert("", tree.getValue()); - } - } - }] - }, { - type: "bi.vtape", - items: [{ - el: mapTree - }, { - height: 30, - el: { - type: "bi.button", - height: 30, - text: "populate", - handler: function () { - mapTree.populate(getItems()); - } - } - }, { - height: 30, - el: { - type: "bi.button", - height: 30, - text: "getValue", - handler: function () { - BI.Msg.alert("", mapTree.getValue()); - } - } - }] - }] - }); - } -}); -BI.shortcut("demo.branch_tree", Demo.Func); \ No newline at end of file diff --git a/demo/js/case/tree/demo.handstand_branch_tree.js b/demo/js/case/tree/demo.handstand_branch_tree.js deleted file mode 100644 index 770b507f41..0000000000 --- a/demo/js/case/tree/demo.handstand_branch_tree.js +++ /dev/null @@ -1,103 +0,0 @@ -Demo.Func = BI.inherit(BI.Widget, { - props: { - baseCls: "demo-func" - }, - - _createHandStandBranchTree: function () { - var tree = BI.createWidget({ - type: "bi.handstand_branch_tree", - expander: {}, - el: { - layouts: [{ - type: "bi.horizontal_adapt", - verticalAlign: BI.VerticalAlign.Top - }] - }, - items: [{ - el: { - text: "且", - value: "且1", - cls: "layout-bg7" - }, - children: [{ - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字1", - value: "这里是一段文字1" - }, { - el: { - text: "或", - value: "或2", - cls: "layout-bg7" - }, - children: [{ - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字1435", - value: "这里是一段文字1435" - }, { - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字1xx", - value: "这里是一段文字1xx" - }, { - el: { - text: "且", - value: "且3", - cls: "layout-bg7" - }, - children: [{ - type: "bi.label", - height: 30, - textAlign: "left", - text: "可以理解为一个条件", - value: "可以理解为一个条件" - }, { - type: "bi.label", - height: 30, - textAlign: "left", - text: "可以理解为一个条件v", - value: "可以理解为一个条件v" - }] - }] - }, { - type: "bi.label", - height: 30, - textAlign: "left", - text: "这里是一段文字1xa", - value: "这里是一段文字1xa" - }] - }] - }); - return tree; - }, - - render: function () { - var tree = this._createHandStandBranchTree(); - - BI.createWidget({ - type: "bi.center", - element: this, - items: [{ - type: "bi.vtape", - items: [{ - el: tree - }, { - height: 30, - el: { - type: "bi.button", - height: 30, - text: "getValue", - handler: function () { - BI.Msg.alert("", tree.getValue()); - } - } - }] - }] - }); - } -}); -BI.shortcut("demo.handstand_branch_tree", Demo.Func); \ No newline at end of file diff --git a/demo/js/config/base.js b/demo/js/config/base.js index 34ff279be7..342610f061 100644 --- a/demo/js/config/base.js +++ b/demo/js/config/base.js @@ -54,10 +54,6 @@ Demo.BASE_CONFIG = [{ pId: 202, text: "bi.editor", value: "demo.editor" -}, { - pId: 202, - text: "bi.code_editor", - value: "demo.code_editor" }, { pId: 202, text: "bi.multifile_editor", @@ -66,18 +62,6 @@ Demo.BASE_CONFIG = [{ pId: 202, text: "bi.textarea_editor", value: "demo.textarea_editor" -}, { - pId: 202, - text: "bi.sql_editor", - value: "demo.sql_editor" -}, { - pId: 202, - text: "bi.formula_editor", - value: "demo.formula_editor" -}, { - pId: 202, - text: "bi.rich_editor", - value: "demo.rich_editor" }, { pId: 2, id: 203, @@ -98,12 +82,4 @@ Demo.BASE_CONFIG = [{ pId: 2, text: "bi.pager", value: "demo.pager" -}, { - pId: 2, - text: "bi.svg", - value: "demo.svg" -}, { - pId: 2, - text: "bi.canvas", - value: "demo.canvas" }]; \ No newline at end of file diff --git a/demo/js/config/case.js b/demo/js/config/case.js index 74109daaf7..7b62db09e1 100644 --- a/demo/js/config/case.js +++ b/demo/js/config/case.js @@ -30,10 +30,6 @@ Demo.CASE_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", @@ -58,14 +54,6 @@ Demo.CASE_CONFIG = [{ pId: 302, text: "bi.lazy_loader", value: "demo.lazy_loader" -}, { - pId: 302, - text: "bi.sort_list(排序)", - value: "demo.sort_list" -}, { - pId: 302, - text: "bi.list_loader(排序)", - value: "demo.list_loader" }, { pId: 3, id: 303, @@ -150,14 +138,6 @@ Demo.CASE_CONFIG = [{ pId: 3, id: 307, text: "tree" -}, { - pId: 307, - text: "bi.branch_tree", - value: "demo.branch_tree" -}, { - pId: 307, - text: "bi.handstand_branch_tree", - value: "demo.handstand_branch_tree" }, { pId: 307, text: "bi.display_tree", @@ -170,10 +150,6 @@ Demo.CASE_CONFIG = [{ pId: 307, text: "bi.level_tree", value: "demo.level_tree" -}, { - pId: 307, - text: "bi.branch_relation", - value: "demo.branch_relation" }, { pId: 3, id: 309, @@ -190,14 +166,6 @@ Demo.CASE_CONFIG = [{ pId: 3, text: "bi.calendar", value: "demo.calendar" -}, { - pId: 3, - text: "bi.clipboard", - value: "demo.clipboard" -}, { - pId: 3, - text: "bi.complex_canvas", - value: "demo.complex_canvas" }, { pId: 3, text: "bi.color_chooser", diff --git a/demo/js/config/widget.js b/demo/js/config/widget.js index a620641b6a..32139ce0bb 100644 --- a/demo/js/config/widget.js +++ b/demo/js/config/widget.js @@ -62,10 +62,6 @@ Demo.WIDGET_CONFIG = [{ pId: 403, text: "bi.multilayer_select_level_tree", value: "demo.multilayer_select_level_tree" -}, { - pId: 403, - text: "bi.switch_tree", - value: "demo.switch_tree" }, { pId: 4, id: 405, @@ -190,14 +186,6 @@ Demo.WIDGET_CONFIG = [{ pId: 413, text: "bi.number_interval", value: "demo.number_interval" -}, { - pId: 4, - id: 419, - text: "文件管理" -}, { - pId: 419, - text: "bi.file_manager", - value: "demo.file_manager" }, { id: 420, text: "滚动sliders", diff --git a/demo/js/widget/tree/demo.switchtree.js b/demo/js/widget/tree/demo.switchtree.js deleted file mode 100644 index 38f94a2732..0000000000 --- a/demo/js/widget/tree/demo.switchtree.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Created by Dailer on 2017/7/26. - */ - - -Demo.SwitchTree = BI.inherit(BI.Widget, { - - render: function () { - var self = this; - var tree = BI.createWidget({ - type: "bi.switch_tree", - items: BI.deepClone(Demo.CONSTANTS.TREE), - value: "第五级文件1" - }); - - return { - type: "bi.vtape", - items: [{ - el: tree - }, { - el: { - type: "bi.button", - height: 25, - text: "点击切换", - handler: function () { - tree.switchSelect(); - } - }, - height: 25 - }, { - el: { - type: "bi.button", - height: 25, - text: "getValue", - handler: function () { - BI.Msg.alert("", JSON.stringify(tree.getValue())); - } - }, - height: 25 - }, { - el: { - type: "bi.button", - height: 25, - text: "setValue (第二级文件1)", - handler: function () { - tree.setValue(["第二级文件1"]); - } - }, - height: 25 - }], - width: 500, - hgap: 300 - }; - } -}); - -BI.shortcut("demo.switch_tree", Demo.SwitchTree); \ No newline at end of file diff --git a/src/css/base/editor/editor.css b/src/css/base/editor/editor.css index c4ecbf69b8..418acc6b9d 100644 --- a/src/css/base/editor/editor.css +++ b/src/css/base/editor/editor.css @@ -27,7 +27,3 @@ .bi-small-search-editor .search-font { font-size: 18px; } - -.bi-sign-initial-editor .sign-initial-editor-text { - font-size: 14px; -} diff --git a/src/less/base/editor/editor.sign.initial.less b/src/less/base/editor/editor.sign.initial.less deleted file mode 100644 index c08ddb6d31..0000000000 --- a/src/less/base/editor/editor.sign.initial.less +++ /dev/null @@ -1,7 +0,0 @@ -@import "../../index"; - -.bi-sign-initial-editor{ - .sign-initial-editor-text{ - font-size: @font-size-14; - } -} \ No newline at end of file From 1b1091765091eb25db2ecb3e65189e48f0893567 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 14 Aug 2018 16:07:53 +0800 Subject: [PATCH 2/3] update --- src/widget/intervalslider/intervalslider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget/intervalslider/intervalslider.js b/src/widget/intervalslider/intervalslider.js index b56e845082..f5191bf827 100644 --- a/src/widget/intervalslider/intervalslider.js +++ b/src/widget/intervalslider/intervalslider.js @@ -485,10 +485,10 @@ BI.IntervalSlider = BI.inherit(BI.Single, { valueTwo = o.digit === false ? valueTwo : valueTwo.toFixed(o.digit); if (!isNaN(valueOne) && !isNaN(valueTwo)) { if (this._checkValidation(valueOne)) { - this.valueOne = valueOne; + this.valueOne = (this.valueOne <= this.valueTwo ? valueOne : valueTwo); } if (this._checkValidation(valueTwo)) { - this.valueTwo = valueTwo; + this.valueTwo = (this.valueOne <= this.valueTwo ? valueTwo : valueOne); } if (valueOne < this.min) { this.valueOne = this.min; From e251e23011f613205c288b0d90d7be16843b9875 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 14 Aug 2018 17:33:40 +0800 Subject: [PATCH 3/3] update --- src/css/base/single/button/item.css | 1 - .../single/button/item.singleselectradio.less | 7 -- .../search/singleselect.search.loader.js | 2 +- src/widget/singleselect/singleselect.item.js | 67 ------------------- .../singleselect/singleselect.loader.js | 2 +- 5 files changed, 2 insertions(+), 77 deletions(-) delete mode 100644 src/less/base/single/button/item.singleselectradio.less delete mode 100644 src/widget/singleselect/singleselect.item.js diff --git a/src/css/base/single/button/item.css b/src/css/base/single/button/item.css index 7711adc00a..cfdcbf6892 100644 --- a/src/css/base/single/button/item.css +++ b/src/css/base/single/button/item.css @@ -4,4 +4,3 @@ color: #3685f2; } - diff --git a/src/less/base/single/button/item.singleselectradio.less b/src/less/base/single/button/item.singleselectradio.less deleted file mode 100644 index 89a3eef643..0000000000 --- a/src/less/base/single/button/item.singleselectradio.less +++ /dev/null @@ -1,7 +0,0 @@ -@import "../../../index"; - -.bi-single-select-radio-item{ - //& .list-item-text{ - // max-width: 189px; - //} -} \ No newline at end of file diff --git a/src/widget/singleselect/search/singleselect.search.loader.js b/src/widget/singleselect/search/singleselect.search.loader.js index 69d6dcd444..55915a869a 100644 --- a/src/widget/singleselect/search/singleselect.search.loader.js +++ b/src/widget/singleselect/search/singleselect.search.loader.js @@ -82,7 +82,7 @@ BI.SingleSelectSearchLoader = BI.inherit(BI.Widget, { _createItems: function (items) { return BI.createItems(items, { - type: "bi.single_select_combo.item", + type: "bi.single_select_item", logic: { dynamic: false }, diff --git a/src/widget/singleselect/singleselect.item.js b/src/widget/singleselect/singleselect.item.js deleted file mode 100644 index 01d3b9a2a9..0000000000 --- a/src/widget/singleselect/singleselect.item.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * guy - * 单选框item - * @type {*|void|Object} - */ -BI.SingleSelectComboItem = BI.inherit(BI.BasicButton, { - _defaultConfig: function () { - return BI.extend(BI.SingleSelectComboItem.superclass._defaultConfig.apply(this, arguments), { - extraCls: "bi-single-select-radio-item", - logic: { - dynamic: false - }, - height: 24 - }); - }, - _init: function () { - BI.SingleSelectComboItem.superclass._init.apply(this, arguments); - var self = this, o = this.options; - this.radio = BI.createWidget({ - type: "bi.radio" - }); - this.text = BI.createWidget({ - type: "bi.label", - cls: "list-item-text", - textAlign: "left", - whiteSpace: "nowrap", - textHeight: o.height, - height: o.height, - hgap: o.hgap, - text: o.text, - keyword: o.keyword, - value: o.value, - py: o.py - }); - - BI.createWidget(BI.extend({ - element: this - }, BI.LogicFactory.createLogic("horizontal", BI.extend(o.logic, { - items: BI.LogicFactory.createLogicItemsByDirection("left", { - type: "bi.center_adapt", - items: [this.radio], - width: 26 - }, this.text) - })))); - }, - - doRedMark: function () { - this.text.doRedMark.apply(this.text, arguments); - }, - - unRedMark: function () { - this.text.unRedMark.apply(this.text, arguments); - }, - - doClick: function () { - BI.SingleSelectComboItem.superclass.doClick.apply(this, arguments); - this.radio.setSelected(this.isSelected()); - }, - - setSelected: function (v) { - BI.SingleSelectComboItem.superclass.setSelected.apply(this, arguments); - this.radio.setSelected(v); - - } -}); - -BI.shortcut("bi.single_select_combo.item", BI.SingleSelectComboItem); \ No newline at end of file diff --git a/src/widget/singleselect/singleselect.loader.js b/src/widget/singleselect/singleselect.loader.js index 1287266752..3ca7040e45 100644 --- a/src/widget/singleselect/singleselect.loader.js +++ b/src/widget/singleselect/singleselect.loader.js @@ -103,7 +103,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, { _createItems: function (items) { return BI.createItems(items, { - type: "bi.single_select_combo.item", + type: "bi.single_select_item", logic: this.options.logic, cls: "bi-list-item-active", height: 24,