diff --git a/.github/ISSUE_TEMPLATE/----.md b/.github/ISSUE_TEMPLATE/----.md index 0b75a94ed..78969ec92 100644 --- a/.github/ISSUE_TEMPLATE/----.md +++ b/.github/ISSUE_TEMPLATE/----.md @@ -31,7 +31,11 @@ assignees: '' - 设备: [e.g. iPhone6] - 系统: [e.g. iOS8.1] - GaiaX SDK版本 [e.g. 0.1.0] + - Gaia Studio版本 [e.g. 0.1.0] - GaiaX 模板文件和模板数据 +**崩溃日志** +在这里添加崩溃日志 + **附加信息** 在这里添加有关该问题的任何其他信息。 diff --git a/GaiaXAdapterAndroid/src/main/java/com/alibaba/gaiax/adapter/GXExtensionExpression.kt b/GaiaXAdapterAndroid/src/main/java/com/alibaba/gaiax/adapter/GXExtensionExpression.kt index 0d9e73fa1..3207039ea 100644 --- a/GaiaXAdapterAndroid/src/main/java/com/alibaba/gaiax/adapter/GXExtensionExpression.kt +++ b/GaiaXAdapterAndroid/src/main/java/com/alibaba/gaiax/adapter/GXExtensionExpression.kt @@ -83,6 +83,9 @@ class GXExtensionExpression : GXRegisterCenter.GXIExtensionExpression { is Float -> { return GXAnalyze.createValueFloat64(value) } + is Double -> { + return GXAnalyze.createValueFloat64(value.toFloat()) + } null -> { return GXAnalyze.createValueNull() } diff --git a/GaiaXiOSDemo/GaiaXiOSDemo/Preview/GaiaXPreviewViewController.m b/GaiaXiOSDemo/GaiaXiOSDemo/Preview/GaiaXPreviewViewController.m index a81a9d603..c28bb6371 100644 --- a/GaiaXiOSDemo/GaiaXiOSDemo/Preview/GaiaXPreviewViewController.m +++ b/GaiaXiOSDemo/GaiaXiOSDemo/Preview/GaiaXPreviewViewController.m @@ -315,7 +315,7 @@ - (void)handleTemlateInfo:(NSDictionary *)templateInfo{ //容器模板 NSMutableArray *nodes = [NSMutableArray array]; for (int i = 0; i < 10; i++) { - [nodes addObject:@{@"data":@"mock"}]; + [nodes addObject:@{@"data":@"'mock'"}]; } [dbDict gx_setObject:@{@"value":nodes} forKey:templateId]; @@ -323,7 +323,7 @@ - (void)handleTemlateInfo:(NSDictionary *)templateInfo{ //普通模板 NSDictionary *dependencies = [[indexJsonDict gx_dictionaryForKey:@"package"] gx_dictionaryForKey:@"dependencies"]; [dependencies enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) { - [dbDict gx_setObject:@{@"data":@"mock"} forKey:key]; + [dbDict gx_setObject:@{@"data":@"'mock'"} forKey:key]; }]; } @@ -333,7 +333,7 @@ - (void)handleTemlateInfo:(NSDictionary *)templateInfo{ //获取数据源 if (isRoot) { - _mockData = @{@"data":@"mock"}; + _mockData = @{@"data":@"'mock'"}; } } diff --git a/README-ZH.md b/README-ZH.md index ec91e026e..35b615691 100644 --- a/README-ZH.md +++ b/README-ZH.md @@ -206,10 +206,16 @@ UIView *view = [TheGXTemplateEngine creatViewByTemplateItem:item measureSize:siz ## 联系我们 钉钉: - + + 微信: - + + + +Email: + +biezhihua@gmail.com ## 支持者 diff --git a/README.md b/README.md index 0a7b87d58..c338d8efe 100644 --- a/README.md +++ b/README.md @@ -207,10 +207,12 @@ We very welcome your to contribute code for the project. In you before writing a ## Contact us DingTalk: - + + WeChat: - + + Email: biezhihua@gmail.com