From 2bc9f478c51cf5be1b9000ddbc13ad8961350c1a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 14 Nov 2024 17:31:54 +0800 Subject: [PATCH] bugfix --- bricks/build.sh | 2 +- bricks/css/bricks.css | 8 ++++++++ bricks/splitter.js | 11 +++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 bricks/splitter.js diff --git a/bricks/build.sh b/bricks/build.sh index 8a1a0f7..9f287d9 100755 --- a/bricks/build.sh +++ b/bricks/build.sh @@ -1,5 +1,5 @@ SOURCES=" page_data_loader.js factory.js uitypesdef.js utils.js uitype.js \ - i18n.js widget.js layout.js bricks.js image.js html.js \ + i18n.js widget.js layout.js bricks.js image.js html.js splitter.js \ jsoncall.js myoperator.js scroll.js menu.js popup.js modal.js running.js \ markdown_viewer.js video.js audio.js toolbar.js tab.js \ input.js registerfunction.js button.js accordion.js dataviewer.js \ diff --git a/bricks/css/bricks.css b/bricks/css/bricks.css index 9d8a10f..baff075 100755 --- a/bricks/css/bricks.css +++ b/bricks/css/bricks.css @@ -6,10 +6,18 @@ body { overflow: auto; display: flex; } + * { box-sizing: border-box!important; } +hr { + border: 0; + height: 1px; + background-color: #8a8a8a; + width: 80%; +} + .flexbox { height: 100%; width: 100%; diff --git a/bricks/splitter.js b/bricks/splitter.js new file mode 100644 index 0000000..94f7d85 --- /dev/null +++ b/bricks/splitter.js @@ -0,0 +1,11 @@ + +var bricks = window.bricks || {}; +bricks.Splitter = class extends bricks.JsWidget { + constructor(ops){ + super({}); + } + create(){ + this.dom_element = this._create('hr') + } +} +bricks.Factory.register('Splitter', bricks.Splitter);