feat(smart-table): add defaultSearch option
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e8b4896e98
commit
7bd74d6b3b
|
@ -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)
|
||||
|
|
|
@ -37,10 +37,6 @@ smart-table table {
|
|||
&[centered] {
|
||||
text-align: center;
|
||||
}
|
||||
&[mid] {
|
||||
width: 150px;
|
||||
max-width: 150px;
|
||||
}
|
||||
&[shrink] {
|
||||
width: 1px;
|
||||
text-align: center;
|
||||
|
|
Loading…
Reference in New Issue