Skip to content

Commit 3626dd8

Browse files
authored
fix(uat): 修正组件类型定义,去除一系列 JSX.IntrinsicElements 组件类型定义的 DefineComponent 泛型包裹 (#32)
1 parent 74d3d7a commit 3626dd8

File tree

16 files changed

+28
-35
lines changed

16 files changed

+28
-35
lines changed

packages/uni-app-components/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@
33
"compilerOptions": {
44
"baseUrl": "."
55
},
6-
"vueCompilerOptions": {
7-
"plugins": ["@uni-helper/uni-types/volar-plugin"]
8-
},
96
"include": ["src/**/*.ts", "src/**/*.vue", "*.d.ts"]
107
}

packages/uni-app-types/src/basic-components/progress.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ declare global {
154154
* |
155155
* [使用说明](https://uni-typed.netlify.app/)
156156
*/
157-
progress: _Progress;
157+
progress: _ProgressProps;
158158
}
159159
}
160160
}
@@ -171,7 +171,7 @@ declare module "vue/jsx-runtime" {
171171
* |
172172
* [使用说明](https://uni-typed.netlify.app/)
173173
*/
174-
progress: _Progress;
174+
progress: _ProgressProps;
175175
}
176176
}
177177
}

packages/uni-app-types/src/basic-components/text.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ declare global {
121121
* |
122122
* [使用说明](https://uni-typed.netlify.app/)
123123
*/
124-
text: _Text;
124+
text: _TextProps;
125125
}
126126
}
127127
}
@@ -140,7 +140,7 @@ declare module "vue/jsx-runtime" {
140140
* |
141141
* [使用说明](https://uni-typed.netlify.app/)
142142
*/
143-
text: _Text;
143+
text: _TextProps;
144144
}
145145
}
146146
}

packages/uni-app-types/src/canvas/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ declare global {
153153
* |
154154
* [使用说明](https://uni-typed.netlify.app/)
155155
*/
156-
canvas: _Canvas;
156+
canvas: _CanvasProps;
157157
}
158158
}
159159
}
@@ -169,7 +169,7 @@ declare module "vue/jsx-runtime" {
169169
* |
170170
* [使用说明](https://uni-typed.netlify.app/)
171171
*/
172-
canvas: _Canvas;
172+
canvas: _CanvasProps;
173173
}
174174
}
175175
}

packages/uni-app-types/src/form-components/button.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ declare global {
778778
* |
779779
* [使用说明](https://uni-typed.netlify.app/)
780780
*/
781-
button: _Button;
781+
button: _ButtonProps;
782782
}
783783
}
784784
}
@@ -794,7 +794,7 @@ declare module "vue/jsx-runtime" {
794794
* |
795795
* [使用说明](https://uni-typed.netlify.app/)
796796
*/
797-
button: _Button;
797+
button: _ButtonProps;
798798
}
799799
}
800800
}

packages/uni-app-types/src/form-components/form.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ declare global {
131131
*
132132
* 将组件内的用户输入的 switch、input、checkbox、slider、radio、picker 提交
133133
*/
134-
form: _Form;
134+
form: _FormProps;
135135
}
136136
}
137137
}
@@ -150,7 +150,7 @@ declare module "vue/jsx-runtime" {
150150
* |
151151
* [使用说明](https://uni-typed.netlify.app/)
152152
*/
153-
form: _Form;
153+
form: _FormProps;
154154
}
155155
}
156156
}

packages/uni-app-types/src/form-components/input.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ declare global {
537537
* |
538538
* [使用说明](https://uni-typed.netlify.app/)
539539
*/
540-
input: _Input;
540+
input: _InputProps;
541541
}
542542
}
543543
}
@@ -553,7 +553,7 @@ declare module "vue/jsx-runtime" {
553553
* |
554554
* [使用说明](https://uni-typed.netlify.app/)
555555
*/
556-
input: _Input;
556+
input: _InputProps;
557557
}
558558
}
559559
}

packages/uni-app-types/src/form-components/label.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ declare global {
8383
* |
8484
* [使用说明](https://uni-typed.netlify.app/)
8585
*/
86-
label: _Label;
86+
label: _LabelProps;
8787
}
8888
}
8989
}
@@ -106,7 +106,7 @@ declare module "vue/jsx-runtime" {
106106
* |
107107
* [使用说明](https://uni-typed.netlify.app/)
108108
*/
109-
label: _Label;
109+
label: _LabelProps;
110110
}
111111
}
112112
}

packages/uni-app-types/src/form-components/switch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ declare global {
100100
* |
101101
* [使用说明](https://uni-typed.netlify.app/)
102102
*/
103-
switch: _Switch;
103+
switch: _SwitchProps;
104104
}
105105
}
106106
}
@@ -116,7 +116,7 @@ declare module "vue/jsx-runtime" {
116116
* |
117117
* [使用说明](https://uni-typed.netlify.app/)
118118
*/
119-
switch: _Switch;
119+
switch: _SwitchProps;
120120
}
121121
}
122122
}

packages/uni-app-types/src/form-components/textarea.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ declare global {
355355
* |
356356
* [使用说明](https://uni-typed.netlify.app/)
357357
*/
358-
textarea: _Textarea;
358+
textarea: _TextareaProps;
359359
}
360360
}
361361
}
@@ -371,7 +371,7 @@ declare module "vue/jsx-runtime" {
371371
* |
372372
* [使用说明](https://uni-typed.netlify.app/)
373373
*/
374-
textarea: _Textarea;
374+
textarea: _TextareaProps;
375375
}
376376
}
377377
}

0 commit comments

Comments
 (0)