Closed yenshih closed 5 years ago
支持 json 和 attribute 数据合并,json 优先级要比 attribute 高,attribute 自动转成驼峰
<mip-example foo-bar="world" num="8" status="success">
<script type="application/json">
{
"fooBar": "world"
}
</script>
</mip-example>
如果 attribute 优先级比 json 高会导致 attitude 一些默认的属性如title 覆盖json的title的问题
event 和 action 声明~ 具体怎么实现还没想好~
要解决什么问题
发现写组件时总需要写好多重复代码
属性读取或暂存
属性类型转换
属性默认值
属性校验
属性废弃的话似乎不太好配置,暂时不写上来
希望能消灭这些组件模板代码,同时贴近现代主流框架,提供更好的开发体验
描述一下你理想中的解决方案
可以解决上述所有问题
描述你的备选方案 无
补充信息 无