@tplc/wot 0.1.1 → 0.1.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "@tplc/wot",
|
|
3
3
|
"name": "@tplc/wot",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wot-design-uni",
|
|
7
7
|
"国际化",
|
|
@@ -9,10 +9,6 @@
|
|
|
9
9
|
"vue3",
|
|
10
10
|
"暗黑模式"
|
|
11
11
|
],
|
|
12
|
-
"publishConfig": {
|
|
13
|
-
"access": "public",
|
|
14
|
-
"registry": "https://registry.npmjs.org/"
|
|
15
|
-
},
|
|
16
12
|
"main": "index.ts",
|
|
17
13
|
"peerDependencies": {
|
|
18
14
|
"vue": ">=3.2.47"
|
|
@@ -1,157 +1,176 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
},
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<
|
|
2
|
+
import('vue').DefineComponent<
|
|
3
|
+
{
|
|
4
|
+
plain: {
|
|
5
|
+
type: BooleanConstructor
|
|
6
|
+
default: boolean
|
|
7
|
+
}
|
|
8
|
+
round: {
|
|
9
|
+
type: BooleanConstructor
|
|
10
|
+
default: boolean
|
|
11
|
+
}
|
|
12
|
+
disabled: {
|
|
13
|
+
type: BooleanConstructor
|
|
14
|
+
default: boolean
|
|
15
|
+
}
|
|
16
|
+
hairline: {
|
|
17
|
+
type: BooleanConstructor
|
|
18
|
+
default: boolean
|
|
19
|
+
}
|
|
20
|
+
block: {
|
|
21
|
+
type: BooleanConstructor
|
|
22
|
+
default: boolean
|
|
23
|
+
}
|
|
24
|
+
type: {
|
|
25
|
+
type: import('vue').PropType<import('./types').ButtonType>
|
|
26
|
+
default: import('./types').ButtonType
|
|
27
|
+
}
|
|
28
|
+
size: {
|
|
29
|
+
type: import('vue').PropType<import('./types').ButtonSize>
|
|
30
|
+
default: import('./types').ButtonSize
|
|
31
|
+
}
|
|
32
|
+
icon: StringConstructor
|
|
33
|
+
classPrefix: {
|
|
34
|
+
type: import('vue').PropType<string>
|
|
35
|
+
default: string
|
|
36
|
+
}
|
|
37
|
+
loading: {
|
|
38
|
+
type: BooleanConstructor
|
|
39
|
+
default: boolean
|
|
40
|
+
}
|
|
41
|
+
loadingColor: StringConstructor
|
|
42
|
+
openType: StringConstructor
|
|
43
|
+
hoverStopPropagation: BooleanConstructor
|
|
44
|
+
lang: StringConstructor
|
|
45
|
+
sessionFrom: StringConstructor
|
|
46
|
+
sendMessageTitle: StringConstructor
|
|
47
|
+
sendMessagePath: StringConstructor
|
|
48
|
+
sendMessageImg: StringConstructor
|
|
49
|
+
appParameter: StringConstructor
|
|
50
|
+
showMessageCard: BooleanConstructor
|
|
51
|
+
buttonId: StringConstructor
|
|
52
|
+
customStyle: {
|
|
53
|
+
type: import('vue').PropType<string>
|
|
54
|
+
default: string
|
|
55
|
+
}
|
|
56
|
+
customClass: {
|
|
57
|
+
type: import('vue').PropType<string>
|
|
58
|
+
default: string
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{},
|
|
62
|
+
unknown,
|
|
63
|
+
{},
|
|
64
|
+
{},
|
|
65
|
+
import('vue').ComponentOptionsMixin,
|
|
66
|
+
import('vue').ComponentOptionsMixin,
|
|
67
|
+
{
|
|
68
|
+
click: (...args: any[]) => void
|
|
69
|
+
error: (...args: any[]) => void
|
|
70
|
+
getuserinfo: (...args: any[]) => void
|
|
71
|
+
contact: (...args: any[]) => void
|
|
72
|
+
getphonenumber: (...args: any[]) => void
|
|
73
|
+
launchapp: (...args: any[]) => void
|
|
74
|
+
opensetting: (...args: any[]) => void
|
|
75
|
+
chooseavatar: (...args: any[]) => void
|
|
76
|
+
agreeprivacyauthorization: (...args: any[]) => void
|
|
77
|
+
},
|
|
78
|
+
string,
|
|
79
|
+
import('vue').PublicProps,
|
|
80
|
+
Readonly<
|
|
81
|
+
import('vue').ExtractPropTypes<{
|
|
82
|
+
plain: {
|
|
83
|
+
type: BooleanConstructor
|
|
84
|
+
default: boolean
|
|
85
|
+
}
|
|
86
|
+
round: {
|
|
87
|
+
type: BooleanConstructor
|
|
88
|
+
default: boolean
|
|
89
|
+
}
|
|
90
|
+
disabled: {
|
|
91
|
+
type: BooleanConstructor
|
|
92
|
+
default: boolean
|
|
93
|
+
}
|
|
94
|
+
hairline: {
|
|
95
|
+
type: BooleanConstructor
|
|
96
|
+
default: boolean
|
|
97
|
+
}
|
|
98
|
+
block: {
|
|
99
|
+
type: BooleanConstructor
|
|
100
|
+
default: boolean
|
|
101
|
+
}
|
|
102
|
+
type: {
|
|
103
|
+
type: import('vue').PropType<import('./types').ButtonType>
|
|
104
|
+
default: import('./types').ButtonType
|
|
105
|
+
}
|
|
106
|
+
size: {
|
|
107
|
+
type: import('vue').PropType<import('./types').ButtonSize>
|
|
108
|
+
default: import('./types').ButtonSize
|
|
109
|
+
}
|
|
110
|
+
icon: StringConstructor
|
|
111
|
+
classPrefix: {
|
|
112
|
+
type: import('vue').PropType<string>
|
|
113
|
+
default: string
|
|
114
|
+
}
|
|
115
|
+
loading: {
|
|
116
|
+
type: BooleanConstructor
|
|
117
|
+
default: boolean
|
|
118
|
+
}
|
|
119
|
+
loadingColor: StringConstructor
|
|
120
|
+
openType: StringConstructor
|
|
121
|
+
hoverStopPropagation: BooleanConstructor
|
|
122
|
+
lang: StringConstructor
|
|
123
|
+
sessionFrom: StringConstructor
|
|
124
|
+
sendMessageTitle: StringConstructor
|
|
125
|
+
sendMessagePath: StringConstructor
|
|
126
|
+
sendMessageImg: StringConstructor
|
|
127
|
+
appParameter: StringConstructor
|
|
128
|
+
showMessageCard: BooleanConstructor
|
|
129
|
+
buttonId: StringConstructor
|
|
130
|
+
customStyle: {
|
|
131
|
+
type: import('vue').PropType<string>
|
|
132
|
+
default: string
|
|
133
|
+
}
|
|
134
|
+
customClass: {
|
|
135
|
+
type: import('vue').PropType<string>
|
|
136
|
+
default: string
|
|
137
|
+
}
|
|
138
|
+
}>
|
|
139
|
+
> & {
|
|
140
|
+
onError?: ((...args: any[]) => any) | undefined
|
|
141
|
+
onClick?: ((...args: any[]) => any) | undefined
|
|
142
|
+
onGetuserinfo?: ((...args: any[]) => any) | undefined
|
|
143
|
+
onContact?: ((...args: any[]) => any) | undefined
|
|
144
|
+
onGetphonenumber?: ((...args: any[]) => any) | undefined
|
|
145
|
+
onLaunchapp?: ((...args: any[]) => any) | undefined
|
|
146
|
+
onOpensetting?: ((...args: any[]) => any) | undefined
|
|
147
|
+
onChooseavatar?: ((...args: any[]) => any) | undefined
|
|
148
|
+
onAgreeprivacyauthorization?: ((...args: any[]) => any) | undefined
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
customStyle: string
|
|
152
|
+
customClass: string
|
|
153
|
+
type: import('./types').ButtonType
|
|
154
|
+
plain: boolean
|
|
155
|
+
round: boolean
|
|
156
|
+
disabled: boolean
|
|
157
|
+
hairline: boolean
|
|
158
|
+
block: boolean
|
|
159
|
+
size: import('./types').ButtonSize
|
|
160
|
+
classPrefix: string
|
|
161
|
+
loading: boolean
|
|
162
|
+
hoverStopPropagation: boolean
|
|
163
|
+
showMessageCard: boolean
|
|
164
|
+
},
|
|
165
|
+
{}
|
|
166
|
+
>,
|
|
167
|
+
{
|
|
168
|
+
default?(_: {}): any
|
|
169
|
+
}
|
|
170
|
+
>
|
|
171
|
+
export default _default
|
|
153
172
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
173
|
+
new (): {
|
|
174
|
+
$slots: S
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -1,50 +1,66 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vue').DefineComponent<
|
|
2
|
+
{
|
|
2
3
|
name: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
color: StringConstructor
|
|
7
|
-
size: StringConstructor
|
|
4
|
+
type: StringConstructor
|
|
5
|
+
required: true
|
|
6
|
+
}
|
|
7
|
+
color: StringConstructor
|
|
8
|
+
size: StringConstructor
|
|
8
9
|
classPrefix: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
10
|
+
type: import('vue').PropType<string>
|
|
11
|
+
default: string
|
|
12
|
+
}
|
|
12
13
|
customStyle: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
14
|
+
type: import('vue').PropType<string>
|
|
15
|
+
default: string
|
|
16
|
+
}
|
|
16
17
|
customClass: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
18
|
+
type: import('vue').PropType<string>
|
|
19
|
+
default: string
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{},
|
|
23
|
+
unknown,
|
|
24
|
+
{},
|
|
25
|
+
{},
|
|
26
|
+
import('vue').ComponentOptionsMixin,
|
|
27
|
+
import('vue').ComponentOptionsMixin,
|
|
28
|
+
{
|
|
29
|
+
click: (...args: any[]) => void
|
|
30
|
+
touch: (...args: any[]) => void
|
|
31
|
+
},
|
|
32
|
+
string,
|
|
33
|
+
import('vue').PublicProps,
|
|
34
|
+
Readonly<
|
|
35
|
+
import('vue').ExtractPropTypes<{
|
|
36
|
+
name: {
|
|
37
|
+
type: StringConstructor
|
|
38
|
+
required: true
|
|
39
|
+
}
|
|
40
|
+
color: StringConstructor
|
|
41
|
+
size: StringConstructor
|
|
42
|
+
classPrefix: {
|
|
43
|
+
type: import('vue').PropType<string>
|
|
44
|
+
default: string
|
|
45
|
+
}
|
|
46
|
+
customStyle: {
|
|
47
|
+
type: import('vue').PropType<string>
|
|
48
|
+
default: string
|
|
49
|
+
}
|
|
50
|
+
customClass: {
|
|
51
|
+
type: import('vue').PropType<string>
|
|
52
|
+
default: string
|
|
53
|
+
}
|
|
54
|
+
}>
|
|
55
|
+
> & {
|
|
56
|
+
onClick?: ((...args: any[]) => any) | undefined
|
|
57
|
+
onTouch?: ((...args: any[]) => any) | undefined
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
customStyle: string
|
|
61
|
+
customClass: string
|
|
62
|
+
classPrefix: string
|
|
63
|
+
},
|
|
64
|
+
{}
|
|
65
|
+
>
|
|
66
|
+
export default _default
|
package/types/locale/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
type Message = Record<string, any
|
|
2
|
-
type Messages = Record<string, Message
|
|
1
|
+
type Message = Record<string, any>;
|
|
2
|
+
type Messages = Record<string, Message>;
|
|
3
3
|
export declare const Locale: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export declare const useCurrentLang: () => import(
|
|
9
|
-
export default Locale
|
|
4
|
+
messages(): Message;
|
|
5
|
+
use(newLang: string, newMessage?: Message): void;
|
|
6
|
+
add(newMessages?: Messages): void;
|
|
7
|
+
};
|
|
8
|
+
export declare const useCurrentLang: () => import("vue").Ref<string>;
|
|
9
|
+
export default Locale;
|