Appearance
通用方法
| 名称 | 描述 | 示例 |
|---|---|---|
| app.setParam | 设置参数 | app.setParam("String",123) |
| app.componentEvent | 传递参数给项目 | app.componentEvent({}) |
| app.getParam | 获取参数 | app.getParam("String") |
| app.setVisible | 设置可见 | app.setVisible({id}, false) |
| app.post | 发起 post 请求 | let res = await app.$http.post("url",{}) |
| app.get | 发起 get 请求 | let res = await app.$http.get("url",{}) |
| app.getBlob | 发起 getBlob 请求 | let res = await app.$http.getBlob("url",{}) |
| app.put | 发起 put 请求 | let res = await app.$http.put("url",{}) |
| app.patch | 发起 patch 请求 | let res = await app.$http.patch("url",{}) |
| app.delete | 发起 delete 请求 | let res = await app.$http.delete("url",{}) |
| app.postFormData | 发起 postFormData 请求 | let res = await app.$http.postFormData("url",{}) |
| app.postFile | 发起 postFile 请求 | let res = await app.$http.postFile("url",{}) |
| app.putFormData | 发起 putFormData 请求 | let res = await app.$http.putFormData("url",{}) |
| app.patchFormData | 发起 patchFormData 请求 | let res = await app.$http.patchFormData("url",{}) |
| app.$confirm | 确定提示 | app.$confirm("是否确定?", "提示", { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning', }).then(() => {}).catch(() => {}); |
