diff --git a/uni_modules/uts-animation-view/utssdk/app-ios/index.vue b/uni_modules/uts-animation-view/utssdk/app-ios/index.vue
index 749ad6c9a738d66585e86dc875c60f63cfbf8c9d..da2996e84c4c71f6a4927fd3689f6ab31031ba37 100644
--- a/uni_modules/uts-animation-view/utssdk/app-ios/index.vue
+++ b/uni_modules/uts-animation-view/utssdk/app-ios/index.vue
@@ -10,12 +10,8 @@
LottieLoopMode
} from 'Lottie'
import {
- URL,
- Bundle
+ URL
} from 'Foundation'
- import {
- UIView
- } from "UIKit"
import {
UTSiOS
} from "DCloudUTSFoundation"
@@ -80,15 +76,15 @@
watch: {
"path": {
handler(newValue: string, oldValue: string) {
- this.path = newValue
- this.playAnimation()
+ if (this.autoplay) {
+ this.playAnimation()
+ }
},
immediate: false //创建时是否通过此方法更新属性,默认值为false
},
"loop": {
handler(newValue: boolean, oldValue: boolean) {
- this.loop = newValue
- if (this.loop) {
+ if (newValue) {
this.$el.loopMode = LottieLoopMode.loop
} else {
this.$el.loopMode = LottieLoopMode.playOnce
@@ -98,8 +94,7 @@
},
"autoplay": {
handler(newValue: boolean, oldValue: boolean) {
- this.autoplay = newValue
- if (this.autoplay) {
+ if (newValue) {
this.playAnimation()
}
},
@@ -108,9 +103,7 @@
"action": {
handler(newValue: string, oldValue: string) {
const action = newValue
-
if (action == "play" || action == "pause" || action == "stop") {
- this.action = action
switch (action) {
case "play":
this.playAnimation()
@@ -133,7 +126,6 @@
"hidden": {
handler(newValue: boolean, oldValue: boolean) {
- this.hidden = newValue
this.$el.isHidden = this.hidden
},
immediate: false //创建时是否通过此方法更新属性,默认值为false
diff --git a/uni_modules/uts-hello-component/utssdk/app-ios/container.vue b/uni_modules/uts-hello-component/utssdk/app-ios/container.vue
new file mode 100644
index 0000000000000000000000000000000000000000..bbc26cde28507d4fca7521b1d9ccecf1b6b4b685
--- /dev/null
+++ b/uni_modules/uts-hello-component/utssdk/app-ios/container.vue
@@ -0,0 +1,19 @@
+
+
+
+
+
+
diff --git a/uni_modules/uts-hello-component/utssdk/app-ios/index.vue b/uni_modules/uts-hello-component/utssdk/app-ios/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..5ac5f0edb5b0d168cdf7a492e3550b4c4a0ffe3e
--- /dev/null
+++ b/uni_modules/uts-hello-component/utssdk/app-ios/index.vue
@@ -0,0 +1,67 @@
+
+
+
+
+
\ No newline at end of file