File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ export default class ImageExample {
294
294
| color | 字体颜色 | black |
295
295
| maxLines | 最大行数 | 不限,根据 width 来 |
296
296
| lineHeight | 行高(上下两行文字 baseline 的距离) | fontSize 大小 |
297
- | fontWeight | 字体粗细。仅支持 normal, bold | normal |
297
+ | fontWeight | 字体粗细。 | normal |
298
298
| textDecoration | 文本修饰,支持 underline、 overline、 line-through,也可组合使用 | 无效果 |
299
299
| textStyle | fill: 填充样式,stroke:镂空样式 | fill |
300
300
| background | 文字背景颜色 | 无 |
Original file line number Diff line number Diff line change @@ -211,8 +211,8 @@ export default class Painter {
211
211
textArray [ i ] = ' ' ;
212
212
}
213
213
}
214
- const fontWeight = view . css . fontWeight === 'bold' ? 'bold' : 'normal ';
215
- const textStyle = view . css . textStyle === 'italic' ? 'italic' : 'normal' ;
214
+ const fontWeight = view . css . fontWeight || '400 ';
215
+ const textStyle = view . css . textStyle || 'normal' ;
216
216
if ( ! view . css . fontSize ) {
217
217
view . css . fontSize = '20rpx' ;
218
218
}
Original file line number Diff line number Diff line change 5
5
<button bind:tap='saveImage'>保存</button>
6
6
</view>
7
7
<painter
8
- customStyle='margin-left: 40rpx; height: 1000rpx;'
9
8
customActionStyle="{{customActionStyle}}"
10
- dancePalette="{{template}}"
11
9
palette="{{paintPallette}}"
12
10
bind:imgOK="onImgOK"
13
11
bind:touchEnd="touchEnd"
14
12
action="{{action}}"
15
- use2D="{{true}}"
16
13
widthPixels="1000"
17
- />
18
- <!-- <image src="{{image}}" style="width: 654rpx; height: 1000rpx; margin-left:40rpx;"/> -->
19
-
14
+ />
15
+ <image src="{{image}}" style="width: 654rpx; height: 1000rpx; margin-left:40rpx;"/>
20
16
</view>
You can’t perform that action at this time.
0 commit comments