ywana-core8 0.0.101 → 0.0.102
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 +39 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +39 -21
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +39 -21
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +4 -4
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -225,7 +225,7 @@ const TableEditor = (props) => {
|
|
225
225
|
}
|
226
226
|
|
227
227
|
async function check(id, value) {
|
228
|
-
const ids = Array.isArray(id) ? id : [
|
228
|
+
const ids = Array.isArray(id) ? id : [id]
|
229
229
|
pageContext.check(ids, value)
|
230
230
|
setPageContext(Object.assign({}, pageContext))
|
231
231
|
}
|
@@ -287,7 +287,7 @@ const TableEditor = (props) => {
|
|
287
287
|
<Header title={groupName} >
|
288
288
|
<span className="size">{groupSize}</span>
|
289
289
|
</Header>
|
290
|
-
<DataTable {...table} onRowSelection={select} editable={editable} onCheckAll={check}/>
|
290
|
+
<DataTable {...table} onRowSelection={select} editable={editable} onCheckAll={check} />
|
291
291
|
</Fragment>
|
292
292
|
)
|
293
293
|
})
|
@@ -347,8 +347,8 @@ const TableContext = (url, field) => {
|
|
347
347
|
if (isChecked) {
|
348
348
|
ids.forEach(id => this.checked.add(id))
|
349
349
|
} else {
|
350
|
-
ids.forEach(id => this.checked.delete(id)
|
351
|
-
}
|
350
|
+
ids.forEach(id => this.checked.delete(id))
|
351
|
+
}
|
352
352
|
},
|
353
353
|
|
354
354
|
select(id) {
|