优化页面
This commit is contained in:
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
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["TUIKit/components/TUIContact/index.vue?type=page"],"sourcesContent":["import MiniProgramPage from '/Users/plw/Documents/outsource/tk-mini-program/TUIKit/components/TUIContact/index.vue'\nwx.createPage(MiniProgramPage)"],"names":["MiniProgramPage"],"mappings":";;AACA,GAAG,WAAWA,wBAAe,iBAAA;"}
|
||||
{"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
@@ -1 +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;;"}
|
||||
{"version":3,"file":"server.js","sources":["TUIKit/components/TUIContact/server.ts"],"sourcesContent":["import TUICore, { TUIConstants } from '@tencentcloud/tui-core';\r\nimport { TUIStore, StoreName } from '@tencentcloud/chat-uikit-engine';\r\nimport { TUIGlobal } from '@tencentcloud/universal-api';\r\nimport { isUniFrameWork } from '../../utils/env';\r\n\r\nexport default class TUIContactServer {\r\n static instance: TUIContactServer;\r\n private onCallParamsMap: Map<string, any>;\r\n private onCallCallbackMap: Map<string, () => void>;\r\n public constants: typeof TUIConstants;\r\n constructor() {\r\n TUICore.registerService(TUIConstants.TUIContact.SERVICE.NAME, this);\r\n this.onCallParamsMap = new Map();\r\n this.onCallCallbackMap = new Map();\r\n this.constants = TUIConstants;\r\n }\r\n\r\n static getInstance(): TUIContactServer {\r\n if (!TUIContactServer.instance) {\r\n TUIContactServer.instance = new TUIContactServer();\r\n }\r\n return TUIContactServer.instance;\r\n }\r\n\r\n public getOnCallParams(method: string): any {\r\n return this.onCallParamsMap.get(method);\r\n }\r\n\r\n public getOnCallCallback(method: string) {\r\n return this.onCallCallbackMap.get(method);\r\n }\r\n\r\n public async onCall(method: string, params: Record<string, any>, callback: () => void): Promise<void> {\r\n this.onCallParamsMap.set(method, params);\r\n this.onCallCallbackMap.set(method, callback);\r\n if (method === TUIConstants.TUIContact.SERVICE.METHOD.SELECT_FRIEND) {\r\n TUIStore.update(StoreName.CUSTOM, 'isShowSelectFriendComponent', true);\r\n isUniFrameWork && TUIGlobal?.reLaunch({\r\n url: '/TUIKit/components/TUIContact/index',\r\n });\r\n }\r\n }\r\n}\r\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
Reference in New Issue
Block a user