diff options
Diffstat (limited to 'src/components/TutorialPane.vue')
| -rw-r--r-- | src/components/TutorialPane.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/TutorialPane.vue b/src/components/TutorialPane.vue index 3cc1eb6..0bbe8e9 100644 --- a/src/components/TutorialPane.vue +++ b/src/components/TutorialPane.vue @@ -2,11 +2,11 @@ import {defineComponent, PropType} from 'vue'; import CloseIcon from './icon/CloseIcon.vue'; import RButton from './RButton.vue'; -import {Action} from '../lib'; +import {Action, UiOptions} from '../lib'; export default defineComponent({ props: { - uiOpts: {type: Object, required: true}, + uiOpts: {type: Object as PropType<UiOptions>, required: true}, triggerFlag: {type: Boolean, required: true}, skipWelcome: {type: Boolean, default: false}, height: {type: String, default: 'auto'}, @@ -73,7 +73,7 @@ export default defineComponent({ let disabledActions = this.uiOpts.disabledActions; let currentAction = stageActions[this.stage]; for (let i = 1; i <= this.maxStage; i++){ - let action = stageActions[i]; + let action = stageActions[i] as Action; if (i <= this.stage){ if (disabledActions.has(action)){ disabledActions.delete(action); |
