We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e173543 commit 83fa0b0Copy full SHA for 83fa0b0
docs/guide/common-problems.md
@@ -179,6 +179,21 @@ uni-app 3.99.2023122704 将支付宝小程序的`styleIsolation`默认值设置
179
}
180
```
181
182
+## 为什么组件库文档中都是从`@/uni_modules/wot-design-uni`导入方法和工具类?
183
+当前组件库本身的开发方式是将组件库代码放到`@/uni_modules/wot-design-uni`这个目录的,所以文档中都是从`@/uni_modules/wot-design-uni`导入方法和工具类,使用`npm`方式安装组件库的时候可以这样调整:
184
+```ts
185
+// useToast、useNotify等同理
186
+import { useMessage } from '@/uni_modules/wot-design-uni'
187
+
188
+```
189
+替换为
190
191
192
+import { useMessage } from 'wot-design-uni'
193
194
195
196
197
## 如何快速解决你的问题?
198
199
[提问的智慧](https://lug.ustc.edu.cn/wiki/doc/smart-questions/),可以帮助你快速提出正确的问题,获得更快的解答。
0 commit comments