提交 00cceafa 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

fix: types

上级 a4e99678
<script lang="uts">
import {type PropType} from 'vue'
export type ItemType = { value : number; name : string }
export default {
......
......@@ -18,7 +18,7 @@ export default {
data: '',
}
},
onLoad(options: OnLoadOptions) {
onLoad(options: Map<string, string>) {
if (options.has('data')) {
this.data = options.get('data')!
}
......
......@@ -12,7 +12,7 @@
</template>
<script lang="uts">
import { State, state, setLifeCycleNum } from '@/store/index.uts'
import { state, setLifeCycleNum } from '@/store/index.uts'
export default {
data() {
......@@ -20,7 +20,7 @@ export default {
isScrolled: false,
}
},
onLoad(_ : OnLoadOptions) {
onLoad(_ : Map<string, string>) {
// 自动化测试
setLifeCycleNum(state.lifeCycleNum + 100)
},
......@@ -77,7 +77,7 @@ export default {
},
scrollToBottom() {
uni.pageScrollTo({
scrollTop: 2000,
scrollTop: 2000
})
},
},
......
import {reactive} from 'vue'
export type State = {
lifeCycleNum: number
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册