ywana-core8 0.0.103 → 0.0.107
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 +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +3 -2
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -224,7 +224,8 @@ const TableEditor = (props) => {
|
|
224
224
|
setPageContext(Object.assign({}, pageContext))
|
225
225
|
}
|
226
226
|
|
227
|
-
async function check(id, value) {
|
227
|
+
async function check(id, value, t) {
|
228
|
+
console.log('check() ',id, value, t)
|
228
229
|
const ids = Array.isArray(id) ? id : [id]
|
229
230
|
pageContext.check(ids, value)
|
230
231
|
setPageContext(Object.assign({}, pageContext))
|
@@ -269,7 +270,7 @@ const TableEditor = (props) => {
|
|
269
270
|
}),
|
270
271
|
rows: groups[groupName]
|
271
272
|
.map(item => {
|
272
|
-
item.checked = pageContext.checked.
|
273
|
+
item.checked = pageContext.checked.has(item.id)
|
273
274
|
item.actions = actions ? actions.map(action => {
|
274
275
|
return action.filter ?
|
275
276
|
action.filter(item) ? <Icon icon={action.icon} clickable size="small" action={() => run(action, item)} /> : null
|