diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 5500167..a366739 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -13,8 +13,6 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 - with: - version: 9 - uses: afc163/surge-preview@v1 id: preview_step diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 40865d3..f0054d7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,8 +9,6 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 - with: - version: 9 - name: Setup Node.js environment uses: actions/setup-node@v3 diff --git a/package.json b/package.json index 9be6e4b..7fbc4dc 100644 --- a/package.json +++ b/package.json @@ -128,6 +128,7 @@ "antd-style": "^3", "react": "^18" }, + "packageManager": "pnpm@9.8.0", "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" diff --git a/src/ProChat/__test__/__snapshots__/demo.test.tsx.snap b/src/ProChat/__test__/__snapshots__/demo.test.tsx.snap index 605f57f..1353d37 100644 --- a/src/ProChat/__test__/__snapshots__/demo.test.tsx.snap +++ b/src/ProChat/__test__/__snapshots__/demo.test.tsx.snap @@ -8068,6 +8068,946 @@ exports[` > renders control.tsx correctly 1`] = ` `; +exports[` > renders customeClassName.tsx correctly 1`] = ` + +
+ +
+
+
+
+
+
+ + avatar + +
+
+
+ Ant Design + +
+
+
+
+
+
+

+ 我想添加自定义类名 +

+
+
+
+
+
+ +
+
+
+
+
+
+ + +
+ 🛸 +
+
+
+
+
+
+ 自定义类名 + +
+
+
+
+
+
+

+ 如下 +

+ + +
+
+ + + +
+
+
+
+
+                                    
+                                          userMeta={{
+        avatar: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg',
+        title: 'Ant Design',
+        className: 'my-pro-chat-user',
+    }}
+
+                                    
+                                  
+
+
+ + + +
+
+
+
+ + +
+
+ + + +
+
+
+
+
+                                    
+                                      assistantMeta={{
+    avatar: '🛸',
+    title: '自定义类名',
+    backgroundColor: '#67dedd',
+    className: 'my-pro-chat-assistant',
+}}
+
+                                    
+                                  
+
+
+ + + +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+ +
+
+