update: page issue template

This commit is contained in:
sanfan.hx
2019-08-13 14:26:41 +08:00
parent 64664959e6
commit c366806a1f
4 changed files with 29 additions and 9 deletions

View File

@ -13,13 +13,25 @@ about: something about page
如果长时间未得到您的回复, 如果我们无法在某些环境上重现该问题, 并且您**超过7天未回复**, 我们可能会关 **闭掉issue**, 谢谢
## Page 标题
(例如: *"xx介绍页"*)
## Page 增加或者更新的内容概括
## 界面增加或者更新的内容概括
## 界面数据
例如:
```
{
"name": "standard_for_slider",
"screenShot": "",
"author":"sanfan",
"title":"slider组件",
"email": "hanxu@qq.com",
"desc": "slider, new Slider",
"id": "8ab2b5c2_42ae_4241_9c8a_5c9e1f92b096"
}
```
## Page 关联的 DEMO 信息
例如:
@ -33,9 +45,18 @@ about: something about page
"email": "hanxu317@qq.com",
"desc": "desc",
"id": "ee4feb8e_32ae_4241_9c8a_5c9e1f92b096"
},
{
"name": "intor pag2e",
"screenShot": "",
"author":"sanfan",
"title":"介绍页",
"email": "hanxu317@qq.com",
"desc": "desc",
"id": "ee4feb8e_32ae_4241_9c8a_5c9e1f92b097"
}
```
## 引入第三方包的文件与版本号
## 引入第三方包的文件与版本号(如果有引入, 请标明)

View File

@ -193,7 +193,6 @@ class CategoryComponent extends CommonItem {
this.parent
});
CategoryComponent.fromJson(Map json) {
print('name: ${json['name']} id: ${json['id'].runtimeType}');
if (json['id'] != null && json['id'].runtimeType == String) {
this.id = int.parse(json['id']);
} else {

View File

@ -188,7 +188,7 @@ class DataUtils {
"name": json['name'],
"cnName": json['name'],
"routerName": routerName,
"catId": int.parse(json['parentId'])
"catId": json['parentId'].runtimeType == String ? int.parse(json['parentId']) : json['parentId']
};
list.add(WidgetPoint.fromJSON(tempMap));
}

View File

@ -70,7 +70,7 @@ const contentB = '''
''';
class Demo extends StatefulWidget {
static const String routeName = 'elements/Form/Slider/Slider';
static const String routeName = 'element/form/Slider/Slider';
_Demo createState() => _Demo();
}