zsl-im-sdk 1.0.0 → 1.0.2
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.
- package/dist/api/common/common.api.d.ts +1 -0
- package/dist/api/common/common.api.js +13 -0
- package/dist/api/conversation/conversation.api.d.ts +54 -0
- package/dist/api/conversation/conversation.api.js +88 -0
- package/dist/api/im-login.d.ts +11 -0
- package/dist/api/im-login.js +16 -0
- package/dist/api/message/message.api.d.ts +23 -0
- package/dist/api/message/message.api.js +36 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +76 -0
- package/dist/store.d.ts +61 -0
- package/dist/store.js +493 -0
- package/dist/types/conversation.type.d.ts +42 -0
- package/dist/types/conversation.type.js +8 -0
- package/dist/types/im-user.type.d.ts +22 -0
- package/dist/types/im-user.type.js +2 -0
- package/{types/index.ts → dist/types/index.d.ts} +4 -5
- package/dist/types/index.js +21 -0
- package/dist/types/message-type.type.d.ts +76 -0
- package/dist/types/message-type.type.js +48 -0
- package/dist/types/socket-data.type.d.ts +38 -0
- package/dist/types/socket-data.type.js +19 -0
- package/dist/types.d.ts +62 -0
- package/dist/types.js +5 -0
- package/dist/utils/http.d.ts +41 -0
- package/dist/utils/http.js +159 -0
- package/dist/websocket.d.ts +46 -0
- package/dist/websocket.js +302 -0
- package/package.json +34 -5
- package/api/common/common.api.ts +0 -7
- package/api/conversation/conversation.api.ts +0 -93
- package/api/im-login.ts +0 -18
- package/api/message/message.api.ts +0 -51
- package/index.ts +0 -36
- package/jsconfig.json +0 -14
- package/store.ts +0 -692
- package/types/conversation.type.ts +0 -60
- package/types/im-user.type.ts +0 -31
- package/types/message-type.type.ts +0 -94
- package/types/socket-data.type.ts +0 -55
- package/types.ts +0 -66
- package/utils/http.ts +0 -195
- package/websocket.ts +0 -367
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getOssConfig: () => Promise<any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getOssConfig = void 0;
|
|
7
|
+
const http_1 = __importDefault(require("../../utils/http"));
|
|
8
|
+
const getOssConfig = async () => {
|
|
9
|
+
const res = await http_1.default.request('GET', '/common/oss/config');
|
|
10
|
+
console.log('==getOssConfig== ', res);
|
|
11
|
+
return res;
|
|
12
|
+
};
|
|
13
|
+
exports.getOssConfig = getOssConfig;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { IConversation } from '../../types/conversation.type';
|
|
2
|
+
export declare function getConversationsBuUserId(userId: string): Promise<Array<IConversation>>;
|
|
3
|
+
/**
|
|
4
|
+
* 获取会话详情
|
|
5
|
+
* @param conversationId 会话ID
|
|
6
|
+
* @returns 会话详情
|
|
7
|
+
*/
|
|
8
|
+
export declare const getConversationDetail: (conversationId: string) => Promise<IConversation>;
|
|
9
|
+
/**
|
|
10
|
+
* 删除会话
|
|
11
|
+
* @param conversationId 会话ID
|
|
12
|
+
* @returns 删除结果
|
|
13
|
+
*/
|
|
14
|
+
export declare const deleteConversation: (conversationId: string) => Promise<any>;
|
|
15
|
+
/**
|
|
16
|
+
* 标记会话已读
|
|
17
|
+
* @param conversationId 会话ID
|
|
18
|
+
* @returns 标记结果
|
|
19
|
+
*/
|
|
20
|
+
export declare const markConversationRead: (conversationId: string) => Promise<any>;
|
|
21
|
+
/**
|
|
22
|
+
* 清空会话未读计数
|
|
23
|
+
* @param conversationId 会话ID
|
|
24
|
+
* @returns 清空结果
|
|
25
|
+
*/
|
|
26
|
+
export declare const clearConversationUnread: (conversationId: string) => Promise<any>;
|
|
27
|
+
/**
|
|
28
|
+
* 创建单聊会话
|
|
29
|
+
* @param recipientId 接收者ID
|
|
30
|
+
* @returns 会话信息
|
|
31
|
+
*/
|
|
32
|
+
export declare const createPrivateConversation: (recipientId: string) => Promise<IConversation>;
|
|
33
|
+
/**
|
|
34
|
+
* 创建群聊会话
|
|
35
|
+
* @param params 群聊参数
|
|
36
|
+
* @returns 会话信息
|
|
37
|
+
*/
|
|
38
|
+
export declare const createGroupConversation: (params: {
|
|
39
|
+
name: string;
|
|
40
|
+
avatar?: string;
|
|
41
|
+
memberIds: Array<string | number>;
|
|
42
|
+
description?: string;
|
|
43
|
+
}) => Promise<IConversation>;
|
|
44
|
+
/**
|
|
45
|
+
* 更新会话信息
|
|
46
|
+
* @param conversationId 会话ID
|
|
47
|
+
* @param params 更新参数
|
|
48
|
+
* @returns 更新结果
|
|
49
|
+
*/
|
|
50
|
+
export declare const updateConversation: (conversationId: string, params: {
|
|
51
|
+
name?: string;
|
|
52
|
+
avatar?: string;
|
|
53
|
+
description?: string;
|
|
54
|
+
}) => Promise<IConversation>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.updateConversation = exports.createGroupConversation = exports.createPrivateConversation = exports.clearConversationUnread = exports.markConversationRead = exports.deleteConversation = exports.getConversationDetail = void 0;
|
|
7
|
+
exports.getConversationsBuUserId = getConversationsBuUserId;
|
|
8
|
+
const http_1 = __importDefault(require("../../utils/http"));
|
|
9
|
+
// *
|
|
10
|
+
// * 获取会话列表
|
|
11
|
+
// * @param userId 查询参数
|
|
12
|
+
// * @returns 会话列表
|
|
13
|
+
//
|
|
14
|
+
function getConversationsBuUserId(userId) {
|
|
15
|
+
return http_1.default.request('POST', '/conversations/byUserId', {
|
|
16
|
+
userId
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 获取会话详情
|
|
21
|
+
* @param conversationId 会话ID
|
|
22
|
+
* @returns 会话详情
|
|
23
|
+
*/
|
|
24
|
+
const getConversationDetail = (conversationId) => {
|
|
25
|
+
return http_1.default.request('GET', `/conversation/${conversationId}`);
|
|
26
|
+
};
|
|
27
|
+
exports.getConversationDetail = getConversationDetail;
|
|
28
|
+
/**
|
|
29
|
+
* 删除会话
|
|
30
|
+
* @param conversationId 会话ID
|
|
31
|
+
* @returns 删除结果
|
|
32
|
+
*/
|
|
33
|
+
const deleteConversation = (conversationId) => {
|
|
34
|
+
return http_1.default.request('DELETE', `/conversation/${conversationId}`);
|
|
35
|
+
};
|
|
36
|
+
exports.deleteConversation = deleteConversation;
|
|
37
|
+
/**
|
|
38
|
+
* 标记会话已读
|
|
39
|
+
* @param conversationId 会话ID
|
|
40
|
+
* @returns 标记结果
|
|
41
|
+
*/
|
|
42
|
+
const markConversationRead = (conversationId) => {
|
|
43
|
+
return http_1.default.request('POST', `/conversation/${conversationId}/read`);
|
|
44
|
+
};
|
|
45
|
+
exports.markConversationRead = markConversationRead;
|
|
46
|
+
/**
|
|
47
|
+
* 清空会话未读计数
|
|
48
|
+
* @param conversationId 会话ID
|
|
49
|
+
* @returns 清空结果
|
|
50
|
+
*/
|
|
51
|
+
const clearConversationUnread = (conversationId) => {
|
|
52
|
+
return http_1.default.request('POST', `/conversation/${conversationId}/clear-unread`);
|
|
53
|
+
};
|
|
54
|
+
exports.clearConversationUnread = clearConversationUnread;
|
|
55
|
+
/**
|
|
56
|
+
* 创建单聊会话
|
|
57
|
+
* @param recipientId 接收者ID
|
|
58
|
+
* @returns 会话信息
|
|
59
|
+
*/
|
|
60
|
+
const createPrivateConversation = (recipientId) => {
|
|
61
|
+
return http_1.default.request('POST', '/conversation/private', {
|
|
62
|
+
data: { recipientId }
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
exports.createPrivateConversation = createPrivateConversation;
|
|
66
|
+
/**
|
|
67
|
+
* 创建群聊会话
|
|
68
|
+
* @param params 群聊参数
|
|
69
|
+
* @returns 会话信息
|
|
70
|
+
*/
|
|
71
|
+
const createGroupConversation = (params) => {
|
|
72
|
+
return http_1.default.request('POST', '/conversation/group', {
|
|
73
|
+
data: params
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
exports.createGroupConversation = createGroupConversation;
|
|
77
|
+
/**
|
|
78
|
+
* 更新会话信息
|
|
79
|
+
* @param conversationId 会话ID
|
|
80
|
+
* @param params 更新参数
|
|
81
|
+
* @returns 更新结果
|
|
82
|
+
*/
|
|
83
|
+
const updateConversation = (conversationId, params) => {
|
|
84
|
+
return http_1.default.request('PUT', `/conversation/${conversationId}`, {
|
|
85
|
+
data: params
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
exports.updateConversation = updateConversation;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IIMUserInfo } from '../types/im-user.type';
|
|
2
|
+
/**
|
|
3
|
+
* 消息已读
|
|
4
|
+
* @param conversationId 会话id
|
|
5
|
+
* @param lastReadMessageId 最后一条已读消息id
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function userAuth(data: {
|
|
9
|
+
account: string;
|
|
10
|
+
token: string;
|
|
11
|
+
}): Promise<IIMUserInfo>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.userAuth = userAuth;
|
|
7
|
+
const http_1 = __importDefault(require("../utils/http"));
|
|
8
|
+
/**
|
|
9
|
+
* 消息已读
|
|
10
|
+
* @param conversationId 会话id
|
|
11
|
+
* @param lastReadMessageId 最后一条已读消息id
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
function userAuth(data) {
|
|
15
|
+
return http_1.default.request('POST', '/users/auth', data);
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IMessage, ISearchMessageRes } from "../../types/message-type.type";
|
|
2
|
+
/**
|
|
3
|
+
* 获取历史消息列表
|
|
4
|
+
* @param conversationId 会话id
|
|
5
|
+
* @param pageSize 每页数量
|
|
6
|
+
* @param lastMessageId 最后一条消息id
|
|
7
|
+
* @returns 历史消息列表
|
|
8
|
+
*/
|
|
9
|
+
export declare function getHistoryList(conversationId: string, pageSize: number, lastMessageId: string): Promise<Array<IMessage>>;
|
|
10
|
+
/**
|
|
11
|
+
* 搜索消息
|
|
12
|
+
* @param userId 用户id
|
|
13
|
+
* @param keyword 搜索关键词
|
|
14
|
+
* @param page 页码
|
|
15
|
+
* @param size 每页数量
|
|
16
|
+
* @returns 搜索到的消息列表
|
|
17
|
+
*/
|
|
18
|
+
export declare function searchMessage(data: {
|
|
19
|
+
conversationId: string;
|
|
20
|
+
keyword: string;
|
|
21
|
+
page: number;
|
|
22
|
+
size: number;
|
|
23
|
+
}): Promise<Array<ISearchMessageRes>>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getHistoryList = getHistoryList;
|
|
7
|
+
exports.searchMessage = searchMessage;
|
|
8
|
+
const http_1 = __importDefault(require("../../utils/http"));
|
|
9
|
+
/**
|
|
10
|
+
* 获取历史消息列表
|
|
11
|
+
* @param conversationId 会话id
|
|
12
|
+
* @param pageSize 每页数量
|
|
13
|
+
* @param lastMessageId 最后一条消息id
|
|
14
|
+
* @returns 历史消息列表
|
|
15
|
+
*/
|
|
16
|
+
async function getHistoryList(conversationId, pageSize, lastMessageId) {
|
|
17
|
+
const res = await http_1.default.request("POST", "/messages/history", {
|
|
18
|
+
conversationId,
|
|
19
|
+
pageSize,
|
|
20
|
+
lastMessageId,
|
|
21
|
+
});
|
|
22
|
+
// return res || []
|
|
23
|
+
return res.sort((a, b) => Number(BigInt(b.id) - BigInt(a.id)));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 搜索消息
|
|
27
|
+
* @param userId 用户id
|
|
28
|
+
* @param keyword 搜索关键词
|
|
29
|
+
* @param page 页码
|
|
30
|
+
* @param size 每页数量
|
|
31
|
+
* @returns 搜索到的消息列表
|
|
32
|
+
*/
|
|
33
|
+
function searchMessage(data) {
|
|
34
|
+
// return http.Post<Array<ISearchMessageRes>>('/messages/search', data)
|
|
35
|
+
return http_1.default.request("POST", "/messages/search", data);
|
|
36
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZSL IM SDK 核心入口
|
|
3
|
+
* 提供 IM 功能的核心能力:状态管理、WebSocket 连接、消息收发等
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* // 在 main.js 中安装
|
|
7
|
+
* import { install } from '@zsl-im/sdk'
|
|
8
|
+
* Vue.use(install)
|
|
9
|
+
*
|
|
10
|
+
* // 在组件中使用
|
|
11
|
+
* this.$store.dispatch('login', { user, wsUrl, token })
|
|
12
|
+
* this.$store.dispatch('sendMessage', messageData)
|
|
13
|
+
*/
|
|
14
|
+
import store from './store';
|
|
15
|
+
export declare const installWithConfig: (vue: any, options?: {
|
|
16
|
+
baseURL?: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
export type { IMessage, IUser, IState } from './store';
|
|
19
|
+
export { default as IM } from './websocket';
|
|
20
|
+
export * from './types';
|
|
21
|
+
export * from './api/common/common.api';
|
|
22
|
+
export * from './api/conversation/conversation.api';
|
|
23
|
+
export * from './api/message/message.api';
|
|
24
|
+
export * from './api/im-login';
|
|
25
|
+
export { store, installWithConfig as install };
|
|
26
|
+
export default store;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ZSL IM SDK 核心入口
|
|
4
|
+
* 提供 IM 功能的核心能力:状态管理、WebSocket 连接、消息收发等
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* // 在 main.js 中安装
|
|
8
|
+
* import { install } from '@zsl-im/sdk'
|
|
9
|
+
* Vue.use(install)
|
|
10
|
+
*
|
|
11
|
+
* // 在组件中使用
|
|
12
|
+
* this.$store.dispatch('login', { user, wsUrl, token })
|
|
13
|
+
* this.$store.dispatch('sendMessage', messageData)
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
49
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
50
|
+
};
|
|
51
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
52
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
53
|
+
};
|
|
54
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55
|
+
exports.install = exports.store = exports.IM = exports.installWithConfig = void 0;
|
|
56
|
+
const store_1 = __importStar(require("./store"));
|
|
57
|
+
exports.store = store_1.default;
|
|
58
|
+
const http_1 = require("./utils/http");
|
|
59
|
+
// 增强 install 方法,支持配置
|
|
60
|
+
const originalInstall = store_1.install;
|
|
61
|
+
const installWithConfig = (vue, options = {}) => {
|
|
62
|
+
if (options.baseURL) {
|
|
63
|
+
(0, http_1.setBaseURL)(options.baseURL);
|
|
64
|
+
}
|
|
65
|
+
originalInstall(vue);
|
|
66
|
+
};
|
|
67
|
+
exports.installWithConfig = installWithConfig;
|
|
68
|
+
exports.install = exports.installWithConfig;
|
|
69
|
+
var websocket_1 = require("./websocket");
|
|
70
|
+
Object.defineProperty(exports, "IM", { enumerable: true, get: function () { return __importDefault(websocket_1).default; } });
|
|
71
|
+
__exportStar(require("./types"), exports);
|
|
72
|
+
__exportStar(require("./api/common/common.api"), exports);
|
|
73
|
+
__exportStar(require("./api/conversation/conversation.api"), exports);
|
|
74
|
+
__exportStar(require("./api/message/message.api"), exports);
|
|
75
|
+
__exportStar(require("./api/im-login"), exports);
|
|
76
|
+
exports.default = store_1.default;
|
package/dist/store.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IM 状态管理 Store
|
|
3
|
+
* 使用 Vuex 管理会话、消息、用户、WebSocket 连接等状态
|
|
4
|
+
*/
|
|
5
|
+
import { Store } from "vuex";
|
|
6
|
+
import IM from "./websocket";
|
|
7
|
+
import { IConversation } from "./types/conversation.type";
|
|
8
|
+
/** 消息类型 */
|
|
9
|
+
export interface IMessage {
|
|
10
|
+
id: string;
|
|
11
|
+
conversationId: string;
|
|
12
|
+
content: string;
|
|
13
|
+
messageType: string;
|
|
14
|
+
senderId: string | number;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
status: "SENDING" | "SENT" | "FAILED";
|
|
17
|
+
icon?: string;
|
|
18
|
+
recipientId?: string;
|
|
19
|
+
mediaUrl?: string;
|
|
20
|
+
}
|
|
21
|
+
/** 用户类型 */
|
|
22
|
+
export interface IUser {
|
|
23
|
+
account: string;
|
|
24
|
+
avatarUrl?: string;
|
|
25
|
+
biz: string;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
displayName: string;
|
|
28
|
+
id: string | number;
|
|
29
|
+
isDel: number;
|
|
30
|
+
status: string;
|
|
31
|
+
token: string;
|
|
32
|
+
updatedAt: string;
|
|
33
|
+
}
|
|
34
|
+
/** 根状态类型 */
|
|
35
|
+
export interface IState {
|
|
36
|
+
conversation: {
|
|
37
|
+
conversations: IConversation[];
|
|
38
|
+
selectedConversationId: string;
|
|
39
|
+
};
|
|
40
|
+
message: {
|
|
41
|
+
messages: Record<string, IMessage[]>;
|
|
42
|
+
messageQueue: IMessage[];
|
|
43
|
+
};
|
|
44
|
+
user: {
|
|
45
|
+
currentUser: IUser | null;
|
|
46
|
+
users: Record<string | number, IUser>;
|
|
47
|
+
};
|
|
48
|
+
websocket: {
|
|
49
|
+
isConnected: boolean;
|
|
50
|
+
reconnectAttempts: number;
|
|
51
|
+
imInstance: IM | null;
|
|
52
|
+
};
|
|
53
|
+
global: {
|
|
54
|
+
loading: boolean;
|
|
55
|
+
error: string | null;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
declare const store: Store<IState>;
|
|
59
|
+
/** Vue 插件安装函数 */
|
|
60
|
+
export declare function install(vue: any): void;
|
|
61
|
+
export default store;
|