feat(smart-table): add defaultSearch option
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-03-17 09:14:01 +01:00
parent e8b4896e98
commit 7bd74d6b3b
2 changed files with 3 additions and 4 deletions

View File

@ -32,6 +32,9 @@ export default class SmartTable extends Component {
this._options = options;
if (!options) return;
if (options.defaultSearch)
this.displaySearch();
const activeButtons = options.activeButtons;
const missingId = activeButtons && activeButtons.shownColumns && !this.viewConfigId;
if (missingId)

View File

@ -37,10 +37,6 @@ smart-table table {
&[centered] {
text-align: center;
}
&[mid] {
width: 150px;
max-width: 150px;
}
&[shrink] {
width: 1px;
text-align: center;