component templates: store binding renamed to state
This commit is contained in:
parent
d7de2f1b0e
commit
bb4a7d1f4a
|
@ -65,7 +65,7 @@ const dataCells = (index, indexSchema) =>
|
||||||
}))
|
}))
|
||||||
|
|
||||||
const dataItem = index => `${index.name}_item`
|
const dataItem = index => `${index.name}_item`
|
||||||
const dataCollection = index => `store.${index.name}`
|
const dataCollection = index => `state.${index.name}`
|
||||||
const rowCode = index =>
|
const rowCode = index =>
|
||||||
`
|
`
|
||||||
if (!${dataCollection(index)}) return
|
if (!${dataCollection(index)}) return
|
||||||
|
|
|
@ -44,7 +44,7 @@ const checkbox = (record, f) => ({
|
||||||
checked: fieldValueBinding(record, f),
|
checked: fieldValueBinding(record, f),
|
||||||
})
|
})
|
||||||
|
|
||||||
const fieldValueBinding = (record, f) => `store.${record.name}.${f.name}`
|
const fieldValueBinding = (record, f) => `state.${record.name}.${f.name}`
|
||||||
|
|
||||||
const capitalize = s => s.charAt(0).toUpperCase() + s.slice(1)
|
const capitalize = s => s.charAt(0).toUpperCase() + s.slice(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue