flameresttable 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Table/TableOpts.ts +2 -2
package/package.json
CHANGED
package/src/Table/TableOpts.ts
CHANGED
|
@@ -36,7 +36,7 @@ export default class TableOpts {
|
|
|
36
36
|
* Удалить одну колонку или сразу несколько
|
|
37
37
|
* @param ColumnName Полностью удалить строку
|
|
38
38
|
*/
|
|
39
|
-
public delete(ColumnName: string | Array<string
|
|
39
|
+
public delete(ColumnName: string | Array<string>, opts: IColumn = {}) {
|
|
40
40
|
|
|
41
41
|
let arr: Array<string> = [];
|
|
42
42
|
if (typeof ColumnName === 'string') arr = [ColumnName as string];
|
|
@@ -45,7 +45,7 @@ export default class TableOpts {
|
|
|
45
45
|
for (const key in arr) {
|
|
46
46
|
// TODO: ????? as any
|
|
47
47
|
if (this.columnsOpts[arr[key]] === undefined) this.columnsOpts[arr[key]] = new Column as any
|
|
48
|
-
merge(this.columnsOpts[arr[key]], { Table: { isShow: false }, Popup: { isShow: false } })
|
|
48
|
+
merge(this.columnsOpts[arr[key]], { Table: { isShow: false }, Popup: { isShow: false }, Filter: { isShow: false } })
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
}
|