Skip to content

Commit 606089f

Browse files
committed
type: fix ts
1 parent 4353aa9 commit 606089f

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

src/checkbox/checkbox.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Component<any>({
1+
Component({
22
options: {
33
addGlobalClass: true,
44
multipleSlots: true

src/gallery/gallery.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Component({
2828
value: true
2929
},
3030
extClass: {
31-
type: Boolean,
31+
type: String,
3232
value: ''
3333
}
3434
},

src/searchbar/searchbar.ts

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Component({
4242
data: {
4343
result: [] // 搜索结果
4444
},
45+
/* @ts-ignore */
4546
lastSearch: Date.now(),
4647
lifetimes: {
4748
// @ts-ignore

src/uploader/uploader.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ Component({
3636
},
3737
select: {
3838
// 过滤某个文件
39-
type: Function,
40-
value() {}
39+
type: null,
40+
value: () => {}
4141
},
4242
upload: {
4343
// 返回Promise的一个文件上传的函数
44-
type: Function,
44+
type: null,
4545
value: null
4646
},
4747
tips: {

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"baseUrl": ".",
34
"module": "commonjs",
45
"noImplicitAny": false,
56
"removeComments": true,

0 commit comments

Comments
 (0)