ywana-core8 0.0.459 → 0.0.462
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/dist/index.cjs +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +14 -14
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +14 -14
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +6 -8
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -190,18 +190,16 @@ const TableSelector = (props) => {
|
|
190
190
|
|
191
191
|
const columns = Object.keys(schema)
|
192
192
|
.filter(key => schema[key].selectorColumn === true)
|
193
|
-
.map(
|
193
|
+
.map(key => {
|
194
|
+
const field = schema[key]
|
195
|
+
return {id: field.id, label: field.label }
|
196
|
+
})
|
197
|
+
|
198
|
+
console.log("TableSelector ",columns, schema)
|
194
199
|
|
195
200
|
const rows = all.filter(item => checked.has(item.id))
|
196
201
|
const table = {
|
197
202
|
columns,
|
198
|
-
/*
|
199
|
-
columns: [
|
200
|
-
{ id: "id", label: "ID" },
|
201
|
-
{ id: "idMatricula", label: "ID Matricula" },
|
202
|
-
{ id: "flow", "Circuito"},
|
203
|
-
],
|
204
|
-
*/
|
205
203
|
rows: rows || []
|
206
204
|
}
|
207
205
|
const buttons = actions.map(({ label, action }) => {
|