浏览代码

HUE-5870 [importer] Improve performances for tables with a lot of columns

Enrico Berti 8 年之前
父节点
当前提交
e625383

+ 3 - 3
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -4181,7 +4181,7 @@
    *
    * Example:
    *
-   * <div class=".container" style="overflow-y: scroll; height: 100px">
+   * <div class="container" style="overflow-y: scroll; height: 100px">
    *  <ul data-bind="foreachVisible: { data: items, minHeight: 20, container: '.container' }">
    *    <li>...</li>
    *  </ul>
@@ -4189,7 +4189,7 @@
    *
    * For tables the binding has to be attached to the tbody element:
    *
-   * <div class=".container" style="overflow-y: scroll; height: 100px">
+   * <div class="container" style="overflow-y: scroll; height: 100px">
    *  <table>
    *    <thead>...</thead>
    *    <tbody data-bind="foreachVisible: { data: items, minHeight: 20, container: '.container' }>
@@ -4201,7 +4201,7 @@
    * Currently the binding only supports one element inside the bound element otherwise the height
    * calculations will be off. In other words this will make it go bonkers:
    *
-   * <div class=".container" style="overflow-y: scroll; height: 100px">
+   * <div class="container" style="overflow-y: scroll; height: 100px">
    *  <ul data-bind="foreachVisible: { data: items, minHeight: 20, container: '.container' }">
    *    <li>...</li>
    *    <li style="display: none;">...</li>

+ 1 - 1
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -668,7 +668,7 @@ ${ assist.assistPanel() }
           <div class="card step">
             <h3 class="card-heading simple show-edit-on-hover">${_('Fields')} <!-- ko if: $root.createWizard.isGuessingFieldTypes --><i class="fa fa-spinner fa-spin"></i><!-- /ko --> <a class="inactive-action pointer" data-bind="visible: columns().length > 0" href="#fieldsBulkEditor" data-toggle="modal"><i class="fa fa-edit"></i></a></h3>
             <div class="card-body no-margin-top">
-              <form class="form-inline inline-table" data-bind="foreach: columns">
+              <form class="form-inline inline-table" data-bind="foreachVisible: { data: columns, minHeight: 44, container: '.content-panel' }">
                 <!-- ko if: $parent.outputFormat() == 'table' -->
                   <!-- ko if: $root.createWizard.source.inputFormat() == 'manual' -->
                   <a class="pointer pull-right margin-top-20" data-bind="click: function() { $parent.columns.remove($data); }"><i class="fa fa-minus"></i></a>