File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
component/table/components Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export default antfu(
16
16
"**/*.md" ,
17
17
"docs/" ,
18
18
"**/*.test.*" ,
19
+ "**/*.d.ts" ,
19
20
] ,
20
21
21
22
stylistic : {
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import LayDropdown from "@layui/component/component/dropdown/index.vue";
9
9
import LayIcon from "@layui/component/component/icon" ;
10
10
import LaySpace from "@layui/component/component/space/index.vue" ;
11
11
import { isValueArray } from "@layui/component/utils" ;
12
+
12
13
import { defineComponent , h , inject } from "vue" ;
13
14
import { LAY_TABLE_CONTEXT } from "../constant" ;
14
15
import { useToolBar } from "../hooks/useToolbar" ;
@@ -111,7 +112,7 @@ const TableToolbar = defineComponent({
111
112
props : {
112
113
defaultToolbar : {
113
114
required : true ,
114
- type : Array as PropType < TableToolBarType [ "defaultToolbar" ] > ,
115
+ type : [ Array , Boolean ] as PropType < TableToolBarType [ "defaultToolbar" ] > ,
115
116
} ,
116
117
117
118
hierarchicalColumns : {
@@ -136,7 +137,7 @@ const TableToolbar = defineComponent({
136
137
137
138
tableRef : {
138
139
required : true ,
139
- type : Object as PropType < TableToolBarType [ "tableRef" ] > ,
140
+ type : [ Object , null ] as PropType < TableToolBarType [ "tableRef" ] > ,
140
141
} ,
141
142
} ,
142
143
Original file line number Diff line number Diff line change
1
+ declare module "*.vue" {
2
+ import type { DefineComponent } from "vue" ;
3
+
4
+ const component : DefineComponent < { } , { } , any > ;
5
+
6
+ export default component ;
7
+ }
You can’t perform that action at this time.
0 commit comments