This commit is contained in:
yumoqing 2024-11-14 17:31:54 +08:00
parent e96c1786fb
commit 2bc9f478c5
3 changed files with 20 additions and 1 deletions

View File

@ -1,5 +1,5 @@
SOURCES=" page_data_loader.js factory.js uitypesdef.js utils.js uitype.js \ 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 \ 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 \ markdown_viewer.js video.js audio.js toolbar.js tab.js \
input.js registerfunction.js button.js accordion.js dataviewer.js \ input.js registerfunction.js button.js accordion.js dataviewer.js \

View File

@ -6,10 +6,18 @@ body {
overflow: auto; overflow: auto;
display: flex; display: flex;
} }
* { * {
box-sizing: border-box!important; box-sizing: border-box!important;
} }
hr {
border: 0;
height: 1px;
background-color: #8a8a8a;
width: 80%;
}
.flexbox { .flexbox {
height: 100%; height: 100%;
width: 100%; width: 100%;

11
bricks/splitter.js Normal file
View File

@ -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);