Pages: Implement radio button

This commit is contained in:
syuilo
2019-07-10 18:30:51 +09:00
parent a59ab79da0
commit feec5e88fc
7 changed files with 108 additions and 2 deletions

View File

@ -32,6 +32,12 @@ export function collectPageVars(content) {
type: 'number',
value: 0
});
} else if (x.type === 'radioButton') {
pageVars.push({
name: x.name,
type: 'string',
value: x.default || ''
});
} else if (x.children) {
collect(x.children);
}