mali-applet-ui 1.1.17 → 1.1.18
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/index.js +10 -2
- package/package.json +1 -1
- package/types/i18n/index.d.ts +8 -0
- package/types/index.d.ts +4 -1
package/index.js
CHANGED
|
@@ -3,15 +3,22 @@ import MaliToast from './modal/toast'
|
|
|
3
3
|
import MaliModal from './modal/modal'
|
|
4
4
|
import MaliLoading from './modal/loading'
|
|
5
5
|
import MaliStorage from './storage'
|
|
6
|
+
import MaliI18n from './i18n/i18n'
|
|
6
7
|
import MaliUtils from './utils'
|
|
7
8
|
|
|
9
|
+
export function install (Vue) {
|
|
10
|
+
Vue.prototype.$t = MaliI18n.t
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
const MaliUI = {
|
|
9
14
|
config,
|
|
15
|
+
install,
|
|
10
16
|
MaliUtils,
|
|
11
17
|
MaliToast,
|
|
12
18
|
MaliModal,
|
|
13
19
|
MaliLoading,
|
|
14
|
-
MaliStorage
|
|
20
|
+
MaliStorage,
|
|
21
|
+
MaliI18n
|
|
15
22
|
}
|
|
16
23
|
|
|
17
24
|
export {
|
|
@@ -19,7 +26,8 @@ export {
|
|
|
19
26
|
MaliToast,
|
|
20
27
|
MaliModal,
|
|
21
28
|
MaliLoading,
|
|
22
|
-
MaliStorage
|
|
29
|
+
MaliStorage,
|
|
30
|
+
MaliI18n
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
export default MaliUI
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { MaliStorage, MlStorageCore } from './storage'
|
|
|
5
5
|
import { MaliModal } from './modal'
|
|
6
6
|
import { MaliToast } from './toast'
|
|
7
7
|
import { MaliLoading } from './loading'
|
|
8
|
+
import { MaliI18n, MlI18nCore } from './i18n'
|
|
8
9
|
|
|
9
10
|
export const MaliUI: {
|
|
10
11
|
version: string
|
|
@@ -14,6 +15,7 @@ export const MaliUI: {
|
|
|
14
15
|
MaliToast: typeof MaliToast
|
|
15
16
|
MaliModal: typeof MaliModal
|
|
16
17
|
MaliLoading: typeof MaliLoading
|
|
18
|
+
MaliI18n: MlI18nCore
|
|
17
19
|
MaliStorage: MlStorageCore
|
|
18
20
|
}
|
|
19
21
|
|
|
@@ -22,7 +24,8 @@ export {
|
|
|
22
24
|
MaliToast,
|
|
23
25
|
MaliModal,
|
|
24
26
|
MaliLoading,
|
|
25
|
-
|
|
27
|
+
MaliI18n,
|
|
28
|
+
MaliStorage,
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
export default MaliUI
|