提交 b62030fb 编写于 作者: G guoenquan

add the test

Signed-off-by: Nguoenquan <guoenquan1@huawei-partners.com>
上级 1f76cb71
......@@ -138,6 +138,23 @@ export default struct Common_ts_ets_apiStaticClear {
console.info("PersistProp emit action state err: " + JSON.stringify(err.message))
}
})
Text("common_ts_ets_api-clear")
.width(320)
.height(70)
.fontSize(20)
.opacity(1)
.align(Alignment.TopStart)
.fontColor(0xCCCCCC)
.lineHeight(25)
.border({ width: 1 })
.padding(10)
.textAlign(TextAlign.Center)
.textOverflow({ overflow: TextOverflow.None })
.key("staticClearText")
.onClick(() => {
AppStorage.clear()
})
}.width("100%").height("100%")
}
......
......@@ -24,29 +24,14 @@ struct ClipAndMaskExample {
@State maskType: CommonShapeMethod= new Rect({ width: 280, height: 280 });
@State clipType: CommonShapeMethod= new Circle({ width: 280, height: 280 });
polygonInterface:PolygonInterface = Polygon
circle : CircleInterface = Circle
line: LineInterface = Line
ellsple :EllipseInterface = Ellipse
pathInterface : PathInterface = Path
shape:ShapeInterface = Shape
rect: RectInterface = Rect
polylineInterface:PolylineInterface = Polyline
ellsple: EllipseAttribute = new Ellipse({
width:'150px',
height: '150px'
})
circle : CircleAttribute = new Circle({
width:'150px',
height: '150px'
})
line : LineAttribute = new Line({
width:'15px',
height: '15px'
})
private stateChangCallBack = (eventData) => {
if (eventData != null) {
console.info("shapeClipping page state change called:" + JSON.stringify(eventData));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册