component templates: store binding renamed to state

This commit is contained in:
Michael Shanks 2020-02-21 23:02:01 +00:00
parent d7de2f1b0e
commit bb4a7d1f4a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)