diff --git a/pages/SDKIntegration/Lottie/index.uvue b/pages/SDKIntegration/Lottie/index.uvue index f2c4e5b1c5d85250fe7939247c9a2ef66defc8c0..bc4832704c2d03b2303aaee78da37f7e20d436dc 100644 --- a/pages/SDKIntegration/Lottie/index.uvue +++ b/pages/SDKIntegration/Lottie/index.uvue @@ -66,7 +66,7 @@ }, changeRepeat: function() { - // this.$refs["animView"].updateRepeatConfig("RESTART"); + (this.$refs["animView"] as UtsAnimationViewElement).setRepeatMode("RESTART"); }, lottieClickTest: function() { console.log("lottieClickTest"); diff --git a/pages/advance/advance.uvue b/pages/advance/advance.uvue index 106c9cf383b643833bdfc041d738ffabc8d4b94b..f67e256a890b89a9a8c30d34b263c4576a45e65f 100644 --- a/pages/advance/advance.uvue +++ b/pages/advance/advance.uvue @@ -92,6 +92,14 @@ name: "console示例", url: "SyntaxCase/consoleTest" }] as Page[] + }, + { + name: "组件开发示例", + open: false, + pages: [{ + name: "Hello UTS Component", + url: "component/helloView" + }] }, { name: "平台代码示例", diff --git a/pages/component/helloView.uvue b/pages/component/helloView.uvue index f69983ddd4b996a94f1a66f03708c971891ed2bc..06d54da3ad56eea84f9957fa5eea002927858ac7 100644 --- a/pages/component/helloView.uvue +++ b/pages/component/helloView.uvue @@ -1,11 +1,30 @@ - - 暂时不支持 todo - + + 调用组件的方法 + + + 文本组件 + + +