@ztjy/uni-app
v1.9.6
Published
## 技术栈
Downloads
200
Readme
@ztjy/uni-app
技术栈
- 开发框架:uni-app + vue2 + composition-api
- 组件库:vant weapp
开发环境
Node.js 12+
Visual Studio Code
开发说明
npm install
npm run serve
使用说明
// main.ts
import ZTJYUniApp from '@ztjy/uni-app'
Vue.use(
ZTJYUniApp({
defaultAvatar: 'avatarUrl',
})
)
// page.vue
import { defineComponent } from '@vue/composition-api'
import { getCurrentProxy } from '@ztjy/uni-app'
export default defineComponent({
setup() {
const $this = getCurrentProxy()
console.log($this.$zt)
console.log($this.$zt.defaultAvatar) // avatarUrl
console.log($this.$zt.formatter) // formatter utils
console.log($this.$zt.report) // report
},
})