123456789101112131415161718192021222324252627282930313233343536373839 |
- // components/wait/wait.ts
- Component({
- /**
- * 组件的属性列表
- */
- properties: {
- loading: {
- type: Boolean,
- value: true,
- },
- },
- observers: {
- loading(val) {
- //@ts-ignore
- wx.setPageStyle({
- style: {
- overflow: val ? 'hidden' : 'unset',
- },
- })
- // const pages = getCurrentPages() as any[]
- // if (pages && pages.length > 0) {
- // const page = pages[pages.length - 1]
- // console.log(page)
- // }
- },
- },
- /**
- * 组件的初始数据
- */
- data: {},
- /**
- * 组件的方法列表
- */
- methods: {},
- })
|