File tree Expand file tree Collapse file tree 5 files changed +31
-2
lines changed
Expand file tree Collapse file tree 5 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 1313 " vue"
1414 ],
1515 "typings" : " ./dist/types/index.d.ts" ,
16+ "types" : " ./dist/types/index.d.ts" ,
1617 "exports" : {
1718 "./*" : " ./dist/*" ,
19+ "./global" : " ./global.d.ts" ,
1820 "./attachments/attachments.vue" : {
1921 "types" : " ./dist/types/attachments.d.ts" ,
2022 "import" : " ./dist/attachments/attachments.vue" ,
Original file line number Diff line number Diff line change @@ -71,7 +71,16 @@ import TChatList from '@tdesign/uniapp-chat/chat-list/chat-list.vue';
7171
7272安装注册 TDesign 之后,在开发项目时,可以配合插件在VSCode等主流编辑器中达到提示组件名及API的效果。
7373
74- 推荐安装 ` Volar ` ,并在项目的 ` tsconfig.json ` 的 ` includes ` 属性中增加 ` node_modules/@tdesign/uniapp-chat/global.d.ts ` ,即可实现该效果。
74+ 推荐安装 [ Vue (Official)] ( https://marketplace.visualstudio.com/items?itemName=Vue.volar ) (之前是 Volar),并在项目的 ` tsconfig.json ` 的 ` compilerOptions.types ` 属性中增加 ` @tdesign/uniapp-chat/global ` ,即可实现提示效果。
75+
76+ ``` json
77+ {
78+ "compilerOptions" : {
79+ "types" : [
80+ " @tdesign/uniapp-chat/global" ,
81+ ]
82+ }
83+ }
7584
7685## 平台兼容性
7786
Original file line number Diff line number Diff line change 1+ ---
2+ pr_number : 4290
3+ contributor : liweijie0812
4+ ---
5+
6+ - feat(Theme): 修复 index.css 尺寸值错误的问题 @liweijie0812 ([ #4290 ] ( https://github.com/Tencent/tdesign-miniprogram/pull/4290 ) )
Original file line number Diff line number Diff line change 3232 "registry" : " https://registry.npmjs.org/"
3333 },
3434 "typings" : " ./dist/types/index.d.ts" ,
35+ "types" : " ./dist/types/index.d.ts" ,
3536 "exports" : {
3637 "./*" : " ./dist/*" ,
38+ "./global" : " ./global.d.ts" ,
3739 "./action-sheet/action-sheet.vue" : {
3840 "types" : " ./dist/types/action-sheet.d.ts" ,
3941 "import" : " ./dist/action-sheet/action-sheet.vue" ,
Original file line number Diff line number Diff line change @@ -126,7 +126,17 @@ export default defineConfig({
126126
127127安装注册 TDesign 之后,在开发项目时,可以配合插件在VSCode等主流编辑器中达到提示组件名及API的效果。
128128
129- 推荐安装 ` Volar ` ,并在项目的 ` tsconfig.json ` 的 ` includes ` 属性中增加 ` node_modules/@tdesign/uniapp/global.d.ts ` ,即可实现该效果。
129+ 推荐安装 [ Vue (Official)] ( https://marketplace.visualstudio.com/items?itemName=Vue.volar ) (之前是 Volar),并在项目的 ` tsconfig.json ` 的 ` compilerOptions.types ` 属性中增加 ` @tdesign/uniapp/global ` ,即可实现提示效果。
130+
131+ ``` json
132+ {
133+ "compilerOptions" : {
134+ "types" : [
135+ " @tdesign/uniapp/global" ,
136+ ]
137+ }
138+ }
139+ ```
130140
131141## 平台兼容性
132142
You can’t perform that action at this time.
0 commit comments