im-ui-mobile 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/{src/components → components}/chat-item/index.vue +11 -7
  2. package/package.json +6 -6
  3. package/{src/types → types}/components/chat-item/index.vue.d.ts +0 -1
  4. /package/{src/components → components}/chat-box/index.vue +0 -0
  5. /package/{src/components → components}/chat-message-item/index.vue +0 -0
  6. /package/{src/index.js → index.js} +0 -0
  7. /package/{src/libs → libs}/index.ts +0 -0
  8. /package/{src/libs → libs}/recorder.ts +0 -0
  9. /package/{src/libs → libs}/user.ts +0 -0
  10. /package/{src/types → types}/components/chat-box/index.vue.d.ts +0 -0
  11. /package/{src/types → types}/components/chat-message-item/index.vue.d.ts +0 -0
  12. /package/{src/types → types}/index.d.ts +0 -0
  13. /package/{src/types → types}/libs/index.d.ts +0 -0
  14. /package/{src/types → types}/libs/recorder.d.ts +0 -0
  15. /package/{src/types → types}/libs/user.d.ts +0 -0
  16. /package/{src/types → types}/utils/auth.d.ts +0 -0
  17. /package/{src/types → types}/utils/datetime.d.ts +0 -0
  18. /package/{src/types → types}/utils/emotion.d.ts +0 -0
  19. /package/{src/types → types}/utils/enums.d.ts +0 -0
  20. /package/{src/types → types}/utils/env.d.ts +0 -0
  21. /package/{src/types → types}/utils/eventBus/EventBusImpl.d.ts +0 -0
  22. /package/{src/types → types}/utils/eventBus/EventCallback.d.ts +0 -0
  23. /package/{src/types → types}/utils/eventBus/GlobalEventCallback.d.ts +0 -0
  24. /package/{src/types → types}/utils/eventBus/IEventBus.d.ts +0 -0
  25. /package/{src/types → types}/utils/eventBus/IEventListener.d.ts +0 -0
  26. /package/{src/types → types}/utils/eventBus/index.d.ts +0 -0
  27. /package/{src/types → types}/utils/htmlEscape.d.ts +0 -0
  28. /package/{src/types → types}/utils/index.d.ts +0 -0
  29. /package/{src/types → types}/utils/messageType.d.ts +0 -0
  30. /package/{src/types → types}/utils/recorderApp.d.ts +0 -0
  31. /package/{src/types → types}/utils/recorderH5.d.ts +0 -0
  32. /package/{src/types → types}/utils/request.d.ts +0 -0
  33. /package/{src/types → types}/utils/requestx.d.ts +0 -0
  34. /package/{src/types → types}/utils/url.d.ts +0 -0
  35. /package/{src/types → types}/utils/useDynamicRefs.d.ts +0 -0
  36. /package/{src/types → types}/utils/websocket.d.ts +0 -0
  37. /package/{src/utils → utils}/auth.ts +0 -0
  38. /package/{src/utils → utils}/datetime.ts +0 -0
  39. /package/{src/utils → utils}/emotion.ts +0 -0
  40. /package/{src/utils → utils}/enums.ts +0 -0
  41. /package/{src/utils → utils}/env.ts +0 -0
  42. /package/{src/utils → utils}/eventBus/EventBusImpl.ts +0 -0
  43. /package/{src/utils → utils}/eventBus/EventCallback.ts +0 -0
  44. /package/{src/utils → utils}/eventBus/GlobalEventCallback.ts +0 -0
  45. /package/{src/utils → utils}/eventBus/IEventBus.ts +0 -0
  46. /package/{src/utils → utils}/eventBus/IEventListener.ts +0 -0
  47. /package/{src/utils → utils}/eventBus/index.ts +0 -0
  48. /package/{src/utils → utils}/htmlEscape.ts +0 -0
  49. /package/{src/utils → utils}/index.ts +0 -0
  50. /package/{src/utils → utils}/messageType.ts +0 -0
  51. /package/{src/utils → utils}/recorderApp.ts +0 -0
  52. /package/{src/utils → utils}/recorderH5.ts +0 -0
  53. /package/{src/utils → utils}/request.ts +0 -0
  54. /package/{src/utils → utils}/requestx.ts +0 -0
  55. /package/{src/utils → utils}/url.ts +0 -0
  56. /package/{src/utils → utils}/useDynamicRefs.ts +0 -0
  57. /package/{src/utils → utils}/websocket.ts +0 -0
@@ -65,15 +65,19 @@ export default {
65
65
  },
66
66
  methods: {
67
67
  handleClick() {
68
- this.showToast('恭喜发财')
68
+ // 添加更多调试信息
69
+ try {
70
+ uni.showModal({
71
+ title: `点击了 ${this.name}`,
72
+ icon: 'none',
73
+ duration: 2000
74
+ })
75
+ console.log('✅ uni.showToast 调用成功')
76
+ } catch (error) {
77
+ console.error('❌ uni.showToast 调用失败:', error)
78
+ }
69
79
  this.$emit('click')
70
80
  },
71
- showToast(message) {
72
- uni.showToast({
73
- title: message,
74
- icon: 'none'
75
- })
76
- },
77
81
  }
78
82
  }
79
83
  </script>
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "im-ui-mobile",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "A Vue3.0 + typescript instant messaging component library for Uniapp",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
7
7
  "files": [
8
- "src/components",
9
- "src/libs",
10
- "src/types",
11
- "src/utils",
8
+ "components",
9
+ "libs",
10
+ "types",
11
+ "utils",
12
12
  "index.js"
13
13
  ],
14
14
  "scripts": {
15
15
  "dev": "cd examples && npm run dev:h5",
16
- "build": "npm run build:types",
16
+ "build": "npm run build:types",
17
17
  "build:types": "vue-tsc -p tsconfig.build.json",
18
18
  "clean:types": "rmdir /s /q src/types 2>nul # '删除 types 目录'",
19
19
  "prepublishOnly": "npm run build"
@@ -29,7 +29,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
29
29
  displayUnreadCount(): number | "99+";
30
30
  }, {
31
31
  handleClick(): void;
32
- showToast(message: any): void;
33
32
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
33
  type: {
35
34
  type: StringConstructor;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes