|
@@ -1,11 +1,15 @@
|
|
|
-// 只导出工具函数和RPC客户端工具,UI组件通过细粒度路径导入
|
|
|
|
|
-// 例如:import { Button } from '@d8d/mini-shared-ui-components/button'
|
|
|
|
|
-
|
|
|
|
|
-// 导出工具函数
|
|
|
|
|
-export { cn } from './utils/cn'
|
|
|
|
|
-export { getPlatform, isWeapp, isH5 } from './utils/platform'
|
|
|
|
|
-
|
|
|
|
|
-// 导出RPC客户端工具
|
|
|
|
|
-export { createRpcClient, type RpcClientConfig, type RpcClient } from './utils/rpc/rpc-client'
|
|
|
|
|
-export { ResponsePolyfill, registerGlobalResponsePolyfill } from './utils/rpc/response-polyfill'
|
|
|
|
|
-export { default as HeadersPolyfill, registerGlobalHeadersPolyfill } from './utils/rpc/headers-polyfill'
|
|
|
|
|
|
|
+// mini-shared-ui-components采用细粒度路径导出方式
|
|
|
|
|
+// 不再导出任何内容,所有工具和组件通过具体路径导入
|
|
|
|
|
+//
|
|
|
|
|
+// 组件导入示例:
|
|
|
|
|
+// import { Button } from '@d8d/mini-shared-ui-components/button'
|
|
|
|
|
+// import { Card } from '@d8d/mini-shared-ui-components/card'
|
|
|
|
|
+//
|
|
|
|
|
+// 工具函数导入示例:
|
|
|
|
|
+// import { cn } from '@d8d/mini-shared-ui-components/utils/cn'
|
|
|
|
|
+// import { getPlatform } from '@d8d/mini-shared-ui-components/utils/platform'
|
|
|
|
|
+//
|
|
|
|
|
+// RPC工具导入示例:
|
|
|
|
|
+// import { createRpcClient } from '@d8d/mini-shared-ui-components/utils/rpc/rpc-client'
|
|
|
|
|
+//
|
|
|
|
|
+// ResponsePolyfill和HeadersPolyfill仅内部使用,不对外导出
|