lxui-uni 0.0.8 → 0.0.9
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/README.md +6 -6
- package/components/lx-header/lx-header.vue +250 -250
- package/components/lx-hello/lx-hello.vue +25 -25
- package/components/lx-image/index.ts +2 -2
- package/components/lx-image/lx-image.vue +101 -101
- package/components/lx-list/lx-list.vue +103 -163
- package/components/lx-list-state/lx-list-state.vue +92 -92
- package/components/lx-operate-bottom/lx-operate-bottom.vue +116 -116
- package/components/lx-submit-btn/lx-submit-btn.vue +61 -61
- package/components/lx-tabbar/lx-tabbar.vue +99 -99
- package/components/lx-upload/lx-upload.vue +186 -186
- package/index.ts +46 -46
- package/libs/config/index.ts +21 -21
- package/libs/hooks/useListLoadClass/index.ts +145 -143
- package/libs/util/index.ts +294 -294
- package/package.json +13 -13
- package/theme.scss +232 -232
- package/types/components.d.ts +23 -23
- package/types/index.d.ts +25 -25
package/theme.scss
CHANGED
|
@@ -1,233 +1,233 @@
|
|
|
1
|
-
/*============================= 文字尺寸 =============================*/
|
|
2
|
-
$font-size-20: 20rpx;
|
|
3
|
-
$font-size-22: 22rpx;
|
|
4
|
-
$font-size-24: 24rpx;
|
|
5
|
-
$font-size-26: 26rpx;
|
|
6
|
-
$font-size-28: 28rpx;
|
|
7
|
-
$font-size-30: 30rpx;
|
|
8
|
-
$font-size-32: 32rpx;
|
|
9
|
-
$font-size-34: 34rpx;
|
|
10
|
-
$font-size-36: 36rpx;
|
|
11
|
-
$font-size-38: 38rpx;
|
|
12
|
-
$font-size-40: 40rpx;
|
|
13
|
-
// 主题颜色
|
|
14
|
-
$main-color: #ff8d1a;
|
|
15
|
-
|
|
16
|
-
image {
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: 100%;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin btn-line {
|
|
22
|
-
font-size: $font-size-32;
|
|
23
|
-
color: $main-color;
|
|
24
|
-
padding: 0rpx 26rpx;
|
|
25
|
-
border: 2rpx solid $main-color;
|
|
26
|
-
text-align: center;
|
|
27
|
-
border-radius: 180rpx;
|
|
28
|
-
box-sizing: border-box;
|
|
29
|
-
height: 60rpx;
|
|
30
|
-
line-height: 60rpx;
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@mixin btn-solid {
|
|
35
|
-
font-size: $font-size-32;
|
|
36
|
-
color: #fff;
|
|
37
|
-
background-color: $main-color;
|
|
38
|
-
padding: 0rpx 26rpx;
|
|
39
|
-
border: 2rpx solid $main-color;
|
|
40
|
-
text-align: center;
|
|
41
|
-
border-radius: 8rpx;
|
|
42
|
-
box-sizing: border-box;
|
|
43
|
-
height: 60rpx;
|
|
44
|
-
line-height: 60rpx;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// 间隔线
|
|
48
|
-
.line_box {
|
|
49
|
-
width: 100%;
|
|
50
|
-
height: 16rpx;
|
|
51
|
-
background-color: #f2f2f2;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
// 弹框公用
|
|
57
|
-
.dialog_content_lx {
|
|
58
|
-
.dialog_icon_lx {
|
|
59
|
-
margin: 0 auto;
|
|
60
|
-
width: 116rpx;
|
|
61
|
-
height: 116rpx;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.dialog_txt_lx {
|
|
65
|
-
text-align: center;
|
|
66
|
-
margin-top: 20rpx;
|
|
67
|
-
font-size: $font-size-34;
|
|
68
|
-
color: rgba(0, 0, 0, 1);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.dialog_sub_btns_lx {
|
|
73
|
-
padding: 0 36rpx;
|
|
74
|
-
|
|
75
|
-
.dialog_submit_btn_lx {
|
|
76
|
-
@include btn-line;
|
|
77
|
-
background-color: $main-color;
|
|
78
|
-
color: #fff;
|
|
79
|
-
margin-bottom: 20rpx;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.dialog_cancel_btn_lx {
|
|
83
|
-
@include btn-line;
|
|
84
|
-
color: rgba(128, 128, 128, 1);
|
|
85
|
-
border-color: rgba(128, 128, 128, 1);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// 弹框公用
|
|
90
|
-
|
|
91
|
-
/*============================= 弹性盒子 =============================*/
|
|
92
|
-
@mixin displayFlex($align: center, $justify: center) {
|
|
93
|
-
display: flex;
|
|
94
|
-
flex-wrap: nowrap;
|
|
95
|
-
flex-direction: row;
|
|
96
|
-
align-items: $align;
|
|
97
|
-
justify-content: $justify;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@mixin alignItems($align: center) {
|
|
101
|
-
@include displayFlex($align, center);
|
|
102
|
-
|
|
103
|
-
&-start {
|
|
104
|
-
@include displayFlex($align, flex-start);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&-center {
|
|
108
|
-
@include displayFlex($align, center);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&-end {
|
|
112
|
-
@include displayFlex($align, flex-end);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&-between {
|
|
116
|
-
@include displayFlex($align, space-between);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
&-around {
|
|
120
|
-
@include displayFlex($align, space-around);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&-evenly {
|
|
124
|
-
@include displayFlex($align, space-evenly);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.flex {
|
|
129
|
-
@include displayFlex;
|
|
130
|
-
|
|
131
|
-
&-center {
|
|
132
|
-
@include alignItems(center);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
&-start {
|
|
136
|
-
@include alignItems(flex-start);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
&-end {
|
|
140
|
-
@include alignItems(flex-end);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/* #ifdef MP-TOUTIAO */
|
|
145
|
-
.row {
|
|
146
|
-
flex-direction: row;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.row-reverse {
|
|
150
|
-
flex-direction: row-reverse;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.column {
|
|
154
|
-
flex-direction: column;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.column-reverse {
|
|
158
|
-
flex-direction: column-reverse;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.wrap {
|
|
162
|
-
flex-wrap: wrap;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.nowrap {
|
|
166
|
-
flex-wrap: nowrap;
|
|
167
|
-
}
|
|
168
|
-
/* #endif */
|
|
169
|
-
|
|
170
|
-
[class*="flex-"],
|
|
171
|
-
[class^="flex"] {
|
|
172
|
-
&.row {
|
|
173
|
-
flex-direction: row;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
&.row-reverse {
|
|
177
|
-
flex-direction: row-reverse;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
&.column {
|
|
181
|
-
flex-direction: column;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
&.column-reverse {
|
|
185
|
-
flex-direction: column-reverse;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
&.wrap {
|
|
189
|
-
flex-wrap: wrap;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&.nowrap {
|
|
193
|
-
flex-wrap: nowrap;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
// 生成flex1等占位
|
|
198
|
-
@for $i from 1 through 5 {
|
|
199
|
-
.flex#{$i} {
|
|
200
|
-
flex: #{$i};
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/*============================= 文字溢出 =============================*/
|
|
205
|
-
|
|
206
|
-
%text-ellipsis-lint {
|
|
207
|
-
text-overflow: ellipsis;
|
|
208
|
-
white-space: normal;
|
|
209
|
-
display: -webkit-box;
|
|
210
|
-
-webkit-box-orient: vertical;
|
|
211
|
-
overflow: hidden;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.text-ellipsis {
|
|
215
|
-
--line: 1;
|
|
216
|
-
@extend %text-ellipsis-lint;
|
|
217
|
-
-webkit-line-clamp: var(--line);
|
|
218
|
-
|
|
219
|
-
&-1 {
|
|
220
|
-
@extend %text-ellipsis-lint;
|
|
221
|
-
-webkit-line-clamp: 1;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
&-2 {
|
|
225
|
-
@extend %text-ellipsis-lint;
|
|
226
|
-
-webkit-line-clamp: 2;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
&-3 {
|
|
230
|
-
@extend %text-ellipsis-lint;
|
|
231
|
-
-webkit-line-clamp: 3;
|
|
232
|
-
}
|
|
1
|
+
/*============================= 文字尺寸 =============================*/
|
|
2
|
+
$font-size-20: 20rpx;
|
|
3
|
+
$font-size-22: 22rpx;
|
|
4
|
+
$font-size-24: 24rpx;
|
|
5
|
+
$font-size-26: 26rpx;
|
|
6
|
+
$font-size-28: 28rpx;
|
|
7
|
+
$font-size-30: 30rpx;
|
|
8
|
+
$font-size-32: 32rpx;
|
|
9
|
+
$font-size-34: 34rpx;
|
|
10
|
+
$font-size-36: 36rpx;
|
|
11
|
+
$font-size-38: 38rpx;
|
|
12
|
+
$font-size-40: 40rpx;
|
|
13
|
+
// 主题颜色
|
|
14
|
+
$main-color: #ff8d1a;
|
|
15
|
+
|
|
16
|
+
image {
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin btn-line {
|
|
22
|
+
font-size: $font-size-32;
|
|
23
|
+
color: $main-color;
|
|
24
|
+
padding: 0rpx 26rpx;
|
|
25
|
+
border: 2rpx solid $main-color;
|
|
26
|
+
text-align: center;
|
|
27
|
+
border-radius: 180rpx;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
height: 60rpx;
|
|
30
|
+
line-height: 60rpx;
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin btn-solid {
|
|
35
|
+
font-size: $font-size-32;
|
|
36
|
+
color: #fff;
|
|
37
|
+
background-color: $main-color;
|
|
38
|
+
padding: 0rpx 26rpx;
|
|
39
|
+
border: 2rpx solid $main-color;
|
|
40
|
+
text-align: center;
|
|
41
|
+
border-radius: 8rpx;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
height: 60rpx;
|
|
44
|
+
line-height: 60rpx;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// 间隔线
|
|
48
|
+
.line_box {
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 16rpx;
|
|
51
|
+
background-color: #f2f2f2;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
// 弹框公用
|
|
57
|
+
.dialog_content_lx {
|
|
58
|
+
.dialog_icon_lx {
|
|
59
|
+
margin: 0 auto;
|
|
60
|
+
width: 116rpx;
|
|
61
|
+
height: 116rpx;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dialog_txt_lx {
|
|
65
|
+
text-align: center;
|
|
66
|
+
margin-top: 20rpx;
|
|
67
|
+
font-size: $font-size-34;
|
|
68
|
+
color: rgba(0, 0, 0, 1);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.dialog_sub_btns_lx {
|
|
73
|
+
padding: 0 36rpx;
|
|
74
|
+
|
|
75
|
+
.dialog_submit_btn_lx {
|
|
76
|
+
@include btn-line;
|
|
77
|
+
background-color: $main-color;
|
|
78
|
+
color: #fff;
|
|
79
|
+
margin-bottom: 20rpx;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.dialog_cancel_btn_lx {
|
|
83
|
+
@include btn-line;
|
|
84
|
+
color: rgba(128, 128, 128, 1);
|
|
85
|
+
border-color: rgba(128, 128, 128, 1);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// 弹框公用
|
|
90
|
+
|
|
91
|
+
/*============================= 弹性盒子 =============================*/
|
|
92
|
+
@mixin displayFlex($align: center, $justify: center) {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-wrap: nowrap;
|
|
95
|
+
flex-direction: row;
|
|
96
|
+
align-items: $align;
|
|
97
|
+
justify-content: $justify;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@mixin alignItems($align: center) {
|
|
101
|
+
@include displayFlex($align, center);
|
|
102
|
+
|
|
103
|
+
&-start {
|
|
104
|
+
@include displayFlex($align, flex-start);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&-center {
|
|
108
|
+
@include displayFlex($align, center);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&-end {
|
|
112
|
+
@include displayFlex($align, flex-end);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&-between {
|
|
116
|
+
@include displayFlex($align, space-between);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&-around {
|
|
120
|
+
@include displayFlex($align, space-around);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&-evenly {
|
|
124
|
+
@include displayFlex($align, space-evenly);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.flex {
|
|
129
|
+
@include displayFlex;
|
|
130
|
+
|
|
131
|
+
&-center {
|
|
132
|
+
@include alignItems(center);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&-start {
|
|
136
|
+
@include alignItems(flex-start);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&-end {
|
|
140
|
+
@include alignItems(flex-end);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* #ifdef MP-TOUTIAO */
|
|
145
|
+
.row {
|
|
146
|
+
flex-direction: row;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.row-reverse {
|
|
150
|
+
flex-direction: row-reverse;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.column {
|
|
154
|
+
flex-direction: column;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.column-reverse {
|
|
158
|
+
flex-direction: column-reverse;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.wrap {
|
|
162
|
+
flex-wrap: wrap;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.nowrap {
|
|
166
|
+
flex-wrap: nowrap;
|
|
167
|
+
}
|
|
168
|
+
/* #endif */
|
|
169
|
+
|
|
170
|
+
[class*="flex-"],
|
|
171
|
+
[class^="flex"] {
|
|
172
|
+
&.row {
|
|
173
|
+
flex-direction: row;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&.row-reverse {
|
|
177
|
+
flex-direction: row-reverse;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&.column {
|
|
181
|
+
flex-direction: column;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&.column-reverse {
|
|
185
|
+
flex-direction: column-reverse;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&.wrap {
|
|
189
|
+
flex-wrap: wrap;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&.nowrap {
|
|
193
|
+
flex-wrap: nowrap;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// 生成flex1等占位
|
|
198
|
+
@for $i from 1 through 5 {
|
|
199
|
+
.flex#{$i} {
|
|
200
|
+
flex: #{$i};
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/*============================= 文字溢出 =============================*/
|
|
205
|
+
|
|
206
|
+
%text-ellipsis-lint {
|
|
207
|
+
text-overflow: ellipsis;
|
|
208
|
+
white-space: normal;
|
|
209
|
+
display: -webkit-box;
|
|
210
|
+
-webkit-box-orient: vertical;
|
|
211
|
+
overflow: hidden;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.text-ellipsis {
|
|
215
|
+
--line: 1;
|
|
216
|
+
@extend %text-ellipsis-lint;
|
|
217
|
+
-webkit-line-clamp: var(--line);
|
|
218
|
+
|
|
219
|
+
&-1 {
|
|
220
|
+
@extend %text-ellipsis-lint;
|
|
221
|
+
-webkit-line-clamp: 1;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&-2 {
|
|
225
|
+
@extend %text-ellipsis-lint;
|
|
226
|
+
-webkit-line-clamp: 2;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&-3 {
|
|
230
|
+
@extend %text-ellipsis-lint;
|
|
231
|
+
-webkit-line-clamp: 3;
|
|
232
|
+
}
|
|
233
233
|
}
|
package/types/components.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import lxHeader from '../components/lx-header/lx-header.vue'
|
|
2
|
-
import lxHello from '../components/lx-hello/lx-hello.vue'
|
|
3
|
-
import lxImage from '../components/lx-image/lx-image.vue'
|
|
4
|
-
import lxList from '../components/lx-list/lx-list.vue'
|
|
5
|
-
import lxListState from '../components/lx-list-state/lx-list-state.vue'
|
|
6
|
-
import lxOperateBottom from '../components/lx-operate-bottom/lx-operate-bottom.vue'
|
|
7
|
-
import lxSubmitBtn from '../components/lx-submit-btn/lx-submit-btn.vue'
|
|
8
|
-
import lxUpload from '../components/lx-upload/lx-upload.vue'
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
declare module '@vue/runtime-core' {
|
|
12
|
-
export interface GlobalComponents {
|
|
13
|
-
"lx-header": typeof lxHeader,
|
|
14
|
-
"lx-hello": typeof lxHello,
|
|
15
|
-
"lx-image": typeof lxImage,
|
|
16
|
-
"lx-list": typeof lxList,
|
|
17
|
-
"lx-list-state": typeof lxListState,
|
|
18
|
-
"lx-operate-bottom": typeof lxOperateBottom,
|
|
19
|
-
"lx-submit-btn": typeof lxSubmitBtn,
|
|
20
|
-
"lx-upload": typeof lxUpload,
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
1
|
+
import lxHeader from '../components/lx-header/lx-header.vue'
|
|
2
|
+
import lxHello from '../components/lx-hello/lx-hello.vue'
|
|
3
|
+
import lxImage from '../components/lx-image/lx-image.vue'
|
|
4
|
+
import lxList from '../components/lx-list/lx-list.vue'
|
|
5
|
+
import lxListState from '../components/lx-list-state/lx-list-state.vue'
|
|
6
|
+
import lxOperateBottom from '../components/lx-operate-bottom/lx-operate-bottom.vue'
|
|
7
|
+
import lxSubmitBtn from '../components/lx-submit-btn/lx-submit-btn.vue'
|
|
8
|
+
import lxUpload from '../components/lx-upload/lx-upload.vue'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
declare module '@vue/runtime-core' {
|
|
12
|
+
export interface GlobalComponents {
|
|
13
|
+
"lx-header": typeof lxHeader,
|
|
14
|
+
"lx-hello": typeof lxHello,
|
|
15
|
+
"lx-image": typeof lxImage,
|
|
16
|
+
"lx-list": typeof lxList,
|
|
17
|
+
"lx-list-state": typeof lxListState,
|
|
18
|
+
"lx-operate-bottom": typeof lxOperateBottom,
|
|
19
|
+
"lx-submit-btn": typeof lxSubmitBtn,
|
|
20
|
+
"lx-upload": typeof lxUpload,
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
package/types/index.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
/// <reference path="./components.d.ts" />
|
|
2
|
-
declare module 'lxui-uni' {
|
|
3
|
-
export function install(): void //必要
|
|
4
|
-
type pageMode = 'navigateTo' | 'redirectTo' | 'reLaunch' | 'switchTab'
|
|
5
|
-
interface goToPageInt {
|
|
6
|
-
url: string
|
|
7
|
-
mode?: pageMode
|
|
8
|
-
params?: {
|
|
9
|
-
[key: string]: string | number | boolean
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
global {
|
|
14
|
-
interface Uni {
|
|
15
|
-
goToPage({ url, mode, params }: goToPageInt): void;
|
|
16
|
-
$util: {
|
|
17
|
-
formatTime: any,
|
|
18
|
-
debounce: any,
|
|
19
|
-
throttle: any,
|
|
20
|
-
saveImgData: any,
|
|
21
|
-
setClipboardData: any,
|
|
22
|
-
config: any
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
1
|
+
/// <reference path="./components.d.ts" />
|
|
2
|
+
declare module 'lxui-uni' {
|
|
3
|
+
export function install(): void //必要
|
|
4
|
+
type pageMode = 'navigateTo' | 'redirectTo' | 'reLaunch' | 'switchTab'
|
|
5
|
+
interface goToPageInt {
|
|
6
|
+
url: string
|
|
7
|
+
mode?: pageMode
|
|
8
|
+
params?: {
|
|
9
|
+
[key: string]: string | number | boolean
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
global {
|
|
14
|
+
interface Uni {
|
|
15
|
+
goToPage({ url, mode, params }: goToPageInt): void;
|
|
16
|
+
$util: {
|
|
17
|
+
formatTime: any,
|
|
18
|
+
debounce: any,
|
|
19
|
+
throttle: any,
|
|
20
|
+
saveImgData: any,
|
|
21
|
+
setClipboardData: any,
|
|
22
|
+
config: any
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
26
|
}
|