This commit is contained in:
pengxiaolong
2025-05-13 19:39:53 +08:00
parent 37da6765b8
commit c006a8e63d
1232 changed files with 96963 additions and 883 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sources":["../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/VFVJS2l0XGNvbXBvbmVudHNcVFVJQ29udGFjdFxpbmRleC52dWU"],"sourcesContent":["import MiniProgramPage from 'D:/项目/tk-mini-program/TUIKit/components/TUIContact/index.vue'\nwx.createPage(MiniProgramPage)"],"names":["MiniProgramPage"],"mappings":";;AACA,GAAG,WAAWA,wBAAe,iBAAA;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"server.js","sources":["TUIKit/components/TUIContact/server.ts"],"sourcesContent":["import TUICore, { TUIConstants } from '@tencentcloud/tui-core';\nimport { TUIStore, StoreName } from '@tencentcloud/chat-uikit-engine';\nimport { TUIGlobal } from '@tencentcloud/universal-api';\nimport { isUniFrameWork } from '../../utils/env';\n\nexport default class TUIContactServer {\n static instance: TUIContactServer;\n private onCallParamsMap: Map<string, any>;\n private onCallCallbackMap: Map<string, () => void>;\n public constants: typeof TUIConstants;\n constructor() {\n TUICore.registerService(TUIConstants.TUIContact.SERVICE.NAME, this);\n this.onCallParamsMap = new Map();\n this.onCallCallbackMap = new Map();\n this.constants = TUIConstants;\n }\n\n static getInstance(): TUIContactServer {\n if (!TUIContactServer.instance) {\n TUIContactServer.instance = new TUIContactServer();\n }\n return TUIContactServer.instance;\n }\n\n public getOnCallParams(method: string): any {\n return this.onCallParamsMap.get(method);\n }\n\n public getOnCallCallback(method: string) {\n return this.onCallCallbackMap.get(method);\n }\n\n public async onCall(method: string, params: Record<string, any>, callback: () => void): Promise<void> {\n this.onCallParamsMap.set(method, params);\n this.onCallCallbackMap.set(method, callback);\n if (method === TUIConstants.TUIContact.SERVICE.METHOD.SELECT_FRIEND) {\n TUIStore.update(StoreName.CUSTOM, 'isShowSelectFriendComponent', true);\n isUniFrameWork && TUIGlobal?.reLaunch({\n url: '/TUIKit/components/TUIContact/index',\n });\n }\n }\n}\n"],"names":["TUICore","TUIConstants","TUIStore","StoreName","isUniFrameWork","TUIGlobal"],"mappings":";;;AAKA,MAAqB,iBAAiB;AAAA,EAKpC,cAAc;AACZA,kBAAA,EAAQ,gBAAgBC,gBAAa,WAAW,QAAQ,MAAM,IAAI;AAC7D,SAAA,sCAAsB;AACtB,SAAA,wCAAwB;AAC7B,SAAK,YAAYA;EACnB;AAAA,EAEA,OAAO,cAAgC;AACjC,QAAA,CAAC,iBAAiB,UAAU;AACb,uBAAA,WAAW,IAAI;IAClC;AACA,WAAO,iBAAiB;AAAA,EAC1B;AAAA,EAEO,gBAAgB,QAAqB;AACnC,WAAA,KAAK,gBAAgB,IAAI,MAAM;AAAA,EACxC;AAAA,EAEO,kBAAkB,QAAgB;AAChC,WAAA,KAAK,kBAAkB,IAAI,MAAM;AAAA,EAC1C;AAAA,EAEA,MAAa,OAAO,QAAgB,QAA6B,UAAqC;;AAC/F,SAAA,gBAAgB,IAAI,QAAQ,MAAM;AAClC,SAAA,kBAAkB,IAAI,QAAQ,QAAQ;AAC3C,QAAI,WAAWA,cAAAA,EAAa,WAAW,QAAQ,OAAO,eAAe;AACnEC,oBAAA,GAAS,OAAOC,cAAA,EAAU,QAAQ,+BAA+B,IAAI;AACrEC,uBAAA,oBAAkBC,yBAAAA,mBAAW,SAAS;AAAA,QACpC,KAAK;AAAA,MAAA;AAAA,IAET;AAAA,EACF;AACF;;"}

File diff suppressed because one or more lines are too long