feat:default set text aligment to center

This commit is contained in:
pengfei.zhou 2019-11-20 15:04:20 +08:00
parent c8feaa37fc
commit 7d6ad70682

View File

@ -23,10 +23,13 @@
#import "DoricTextNode.h" #import "DoricTextNode.h"
#import "DoricUtil.h" #import "DoricUtil.h"
#import "DoricGroupNode.h" #import "DoricGroupNode.h"
#import "Doric.h"
@implementation DoricTextNode @implementation DoricTextNode
- (UILabel *)build { - (UILabel *)build {
return [[UILabel alloc] init]; return [[[UILabel alloc] init] also:^(UILabel *it) {
it.textAlignment = NSTextAlignmentCenter;
}];
} }
- (void)blendView:(UILabel *)view forPropName:(NSString *)name propValue:(id)prop { - (void)blendView:(UILabel *)view forPropName:(NSString *)name propValue:(id)prop {