Skip to content

Commit

Permalink
feat(x:ios): 适配 unicloud-db 组件
Browse files Browse the repository at this point in the history
  • Loading branch information
hdx committed Mar 6, 2024
1 parent 0f15b6b commit 682c8cb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/uni-components/lib-x/unicloud-db/unicloud-db.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { SlotsType } from 'vue'
//#endif
//#ifdef WEB
//#ifdef WEB || APP-IOS
let registerFlag = false
//#endif
Expand Down Expand Up @@ -103,13 +103,13 @@
return options as T | null
}
//#ifdef APP
//#ifdef APP-ANDROID
export class UniCloudDBElement extends UniViewElementImpl {
constructor(data : INodeData, pageNode : PageNode) {
super(data, pageNode)
}
//#endif
//#ifdef WEB
//#ifdef WEB || APP-IOS
export class UniCloudDBElement extends UniElementImpl {
constructor(data : INodeData, pageNode : PageNode) {
super(data, pageNode);
Expand Down Expand Up @@ -154,7 +154,7 @@
}
// @ts-ignore
remove(id : any, options : UTSJSONObject) {
//#ifdef WEB
//#ifdef WEB || APP-IOS
// @ts-ignore
if (arguments.length == 0) {
super.remove()
Expand Down Expand Up @@ -303,12 +303,12 @@
error: null as UniCloudError | null
}
},
//#ifdef WEB
//#ifdef WEB || APP-IOS
beforeCreate() {
if (!registerFlag) {
registerFlag = true
// @ts-ignore
window.customElements.define(
customElements.define(
'uni-cloud-db-element',
UniCloudDBElement,
)
Expand Down

0 comments on commit 682c8cb

Please sign in to comment.