Commit Graph

4 Commits

Author SHA1 Message Date
Yanzhen Yu
6d8f7d5fc1 migrate all the code to new props type
related to #54
2021-09-20 17:00:54 +08:00
Yanzhen Yu
57c46027e8 update the spec of component ids in the spec
related to #54
If users naming component with id 'input-1', it may be hard to be
used in the expression, because 'input-1' is not a valid JS variable
name.

So we update the spec to make sure component ids are valid JS variable
names.
According to https://stackoverflow.com/a/1661249, valid JS variable
name can be a big set. In this patch, we just force users to pass
a simple and limited RegExp, which keep application simple and readable.

TODO: validate component ids are not keywords.
2021-09-18 00:57:40 +08:00
Yanzhen Yu
6e0536335e fix image link 2021-06-16 13:32:24 +08:00
Yanzhen Yu
a3b6f6a7d9 init spec v0.1.0 2021-06-16 13:30:04 +08:00