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

fix: types

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