This commit is contained in:
yumoqing 2024-07-24 18:03:44 +08:00
parent 28446fd6f0
commit 9630c27ec0
6 changed files with 57 additions and 2 deletions

45
3parties/echarts.min.js vendored Normal file

File diff suppressed because one or more lines are too long

3
3parties/videojs.record.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@ SOURCES=" page_data_loader.js factory.js uitypesdef.js utils.js uitype.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 \
tree.js multiple_state_image.js dynamiccolumn.js form.js message.js conform.js \ tree.js multiple_state_image.js dynamiccolumn.js form.js message.js conform.js \
paging.js datagrid.js iframe.js cols.js \ paging.js datagrid.js iframe.js cols.js echarts_ebeding.js \
floaticonbar.js miniform.js wterm.js dynamicaccordion.js \ floaticonbar.js miniform.js wterm.js dynamicaccordion.js \
llm_dialog.js llm.js websocket.js datarow.js tabular.js " llm_dialog.js llm.js websocket.js datarow.js tabular.js "
echo ${SOURCES} echo ${SOURCES}

View File

@ -72,11 +72,13 @@ bricks.DataViewer = class extends bricks.VBox {
build_records_area(){ build_records_area(){
this.filler_widget = new bricks.Filler({}); this.filler_widget = new bricks.Filler({});
this.add_widget(this.filler_widget) this.add_widget(this.filler_widget)
this.scrollpanel = new bricks.VBox({}); this.scrollpanel = new bricks.VScrollPanel({});
/*
this.scrollpanel.set_css('scrollpanel'); this.scrollpanel.set_css('scrollpanel');
this.scrollpanel.set_style('height','100%'); this.scrollpanel.set_style('height','100%');
this.scrollpanel.set_style('width','100%'); this.scrollpanel.set_style('width','100%');
this.scrollpanel.set_style('overflow','auto'); this.scrollpanel.set_style('overflow','auto');
*/
this.filler_widget.add_widget(this.scrollpanel); this.filler_widget.add_widget(this.scrollpanel);
} }
async renderPageData(data, page){ async renderPageData(data, page){
@ -284,6 +286,7 @@ bricks.DataViewer = class extends bricks.VBox {
} }
} }
async load_previous_page(){ async load_previous_page(){
// console.log('tabular:load_previous_page() called');
if (this.loading){ if (this.loading){
bricks.debug('this.loading is set, do not thing'); bricks.debug('this.loading is set, do not thing');
return; return;
@ -306,6 +309,7 @@ bricks.DataViewer = class extends bricks.VBox {
running.dismiss(); running.dismiss();
} }
async load_next_page(){ async load_next_page(){
// console.log('tabular:load_next_page() called');
if (this.loading){ if (this.loading){
bricks.debug('this.loading is set, do not thing'); bricks.debug('this.loading is set, do not thing');
return; return;

View File

@ -16,6 +16,7 @@
<script src="//cdn.bootcdn.net/ajax/libs/eruda/2.3.3/eruda.js"></script> <script src="//cdn.bootcdn.net/ajax/libs/eruda/2.3.3/eruda.js"></script>
<script>eruda.init();</script> <script>eruda.init();</script>
--> -->
<script src="{{entire_url('/bricks/3parties/echarts.min.js')}}"></script>
<script src="{{entire_url('/bricks/3parties/marked.min.js')}}"></script> <script src="{{entire_url('/bricks/3parties/marked.min.js')}}"></script>
<script src="{{entire_url('/bricks/3parties/xterm.js')}}"></script> <script src="{{entire_url('/bricks/3parties/xterm.js')}}"></script>
<script src="{{entire_url('/bricks/3parties/video.min.js')}}"></script> <script src="{{entire_url('/bricks/3parties/video.min.js')}}"></script>

View File

@ -24,6 +24,7 @@ bricks.HScrollPanel = class extends bricks.HBox {
constructor(opts){ constructor(opts){
opts.width = '100%'; opts.width = '100%';
opts.height = '100%'; opts.height = '100%';
opts.css = 'scrollpanel';
opts.overflow = 'auto'; opts.overflow = 'auto';
super(opts); super(opts);
this.min_threshold = opts.min_threshold || 0.01; this.min_threshold = opts.min_threshold || 0.01;
@ -61,6 +62,7 @@ bricks.VScrollPanel = class extends bricks.VBox {
constructor(opts){ constructor(opts){
opts.width = '100%'; opts.width = '100%';
opts.height = '100%'; opts.height = '100%';
opts.css = 'scrollpanel';
opts.overflow = 'auto'; opts.overflow = 'auto';
super(opts); super(opts);
this.min_threshold = opts.min_threshold || 0.02; this.min_threshold = opts.min_threshold || 0.02;