@agentscope-ai/design 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/lib/antd/styles/button.style.js +13 -1
  2. package/lib/antd/styles/index.style.js +3 -1
  3. package/lib/antd/styles/tree.style.d.ts +6 -0
  4. package/lib/antd/styles/tree.style.js +18 -0
  5. package/lib/antd/themes/bailianDarkTheme.json +3 -1
  6. package/lib/antd/themes/bailianTheme.json +4 -2
  7. package/lib/antd/themes/carbonDarkTheme.json +3 -1
  8. package/lib/antd/themes/carbonTheme.json +3 -1
  9. package/lib/antd/themes/generateTheme.js +30 -29
  10. package/lib/components/commonComponents/Audio/Control.d.ts +53 -0
  11. package/lib/components/commonComponents/{Video → Audio}/Control.js +18 -15
  12. package/lib/components/commonComponents/Audio/Control.style.d.ts +1 -0
  13. package/lib/components/commonComponents/Audio/Control.style.js +14 -0
  14. package/lib/components/commonComponents/Audio/demo/demo1.d.ts +2 -0
  15. package/lib/components/commonComponents/Audio/demo/demo1.js +11 -0
  16. package/lib/components/commonComponents/Audio/index.d.ts +10 -0
  17. package/lib/components/commonComponents/Audio/index.js +164 -0
  18. package/lib/components/commonComponents/Audio/index.style.d.ts +1 -0
  19. package/lib/components/commonComponents/Audio/index.style.js +10 -0
  20. package/lib/components/commonComponents/Button/demo/demo1.js +7 -0
  21. package/lib/components/commonComponents/Button/index.js +2 -1
  22. package/lib/components/commonComponents/CollapsePanel/demo/demo1.js +6 -6
  23. package/lib/components/commonComponents/CollapsePanel/index.js +4 -4
  24. package/lib/components/commonComponents/EllipsisTip/index.d.ts +8 -1
  25. package/lib/components/commonComponents/EllipsisTip/index.js +33 -3
  26. package/lib/components/commonComponents/Empty/index.d.ts +6 -0
  27. package/lib/components/commonComponents/Empty/index.js +22 -7
  28. package/lib/components/commonComponents/Empty/index.style.js +1 -1
  29. package/lib/components/commonComponents/Pagination/index.js +33 -42
  30. package/lib/components/commonComponents/Pagination/index.style.js +1 -1
  31. package/lib/components/commonComponents/PromptsEditor/VarRender.js +1 -1
  32. package/lib/components/commonComponents/SliderSelector/index.d.ts +1 -1
  33. package/lib/components/commonComponents/SliderSelector/index.js +8 -4
  34. package/lib/components/commonComponents/Steps/index.js +2 -1
  35. package/lib/components/commonComponents/Steps/index.style.js +5 -1
  36. package/lib/components/commonComponents/Table/index.style.js +27 -1
  37. package/lib/components/commonComponents/Tabs/index.js +9 -8
  38. package/lib/components/commonComponents/Tooltip/demo/demo3.d.ts +3 -0
  39. package/lib/components/commonComponents/Tooltip/demo/demo3.js +25 -0
  40. package/lib/components/commonComponents/Tooltip/index.d.ts +7 -1
  41. package/lib/components/commonComponents/Tooltip/index.js +12 -1
  42. package/lib/components/commonComponents/Tooltip/index.style.js +1 -1
  43. package/lib/components/commonComponents/Video/index.d.ts +5 -6
  44. package/lib/components/commonComponents/Video/index.js +14 -9
  45. package/lib/components/commonComponents/Video/index.style.js +2 -4
  46. package/lib/components/mobileComponents/MobileDrawer/index.style.js +7 -1
  47. package/lib/index.d.ts +2 -1
  48. package/lib/index.js +1 -0
  49. package/lib/typings.d.ts +12 -0
  50. package/llms/all.llms.txt +889 -1772
  51. package/llms/components/commonComponents/Empty/index.zh-CN.llms.txt +1 -0
  52. package/llms/components/commonComponents/Tooltip/index.zh-CN.llms.txt +2 -1
  53. package/llms/index.llms.txt +47 -47
  54. package/package.json +4 -4
  55. package/scripts/mcp-docs-server.js +4 -4
  56. package/lib/components/commonComponents/Video/Control.d.ts +0 -19
  57. package/llms/docs/guide/fromAntd.zh-CN.llms.txt +0 -156
  58. package/llms/docs/guide/fromScratch.zh-CN.llms.txt +0 -83
  59. package/llms/docs/guide/iconfont.zh-CN.llms.txt +0 -69
  60. package/llms/docs/guide/overview.zh-CN.llms.txt +0 -51
  61. package/llms/docs/guide/theme.zh-CN.llms.txt +0 -61
  62. package/llms/docs/guide/tokens&variables.zh-CN.llms.txt +0 -425
  63. package/llms/docs/guide/vibe-coding.zh-CN.llms.txt +0 -29
@@ -23,20 +23,20 @@ var App = function App() {
23
23
  }),
24
24
  children: /*#__PURE__*/_jsxs("div", {
25
25
  style: {
26
- padding: '0 12px'
26
+ padding: '12px'
27
27
  },
28
28
  children: [/*#__PURE__*/_jsx("p", {
29
29
  children: /*#__PURE__*/_jsx("strong", {
30
30
  children: "\u676D\u5DDE\uFF1A\u4EBA\u95F4\u5929\u5802\u7684\u8BD7\u610F\u6816\u5C45"
31
31
  })
32
32
  }), /*#__PURE__*/_jsx("p", {
33
- children: "\u676D\u5DDE\uFF0C\u8FD9\u5EA7\u4F4D\u4E8E\u4E2D\u56FD\u4E1C\u5357\u6CBF\u6D77\u7684\u5386\u53F2\u6587\u5316\u540D\u57CE\uFF0C\u4EE5\u5176\u79C0\u7F8E\u7684\u81EA\u7136\u98CE\u5149\u548C\u6DF1\u539A\u7684\u4EBA\u6587\u5E95\u8574\uFF0C\u88AB\u8A89\u4E3A\"\u4EBA\u95F4\u5929\u5802\"\u3002\u65E0\u8BBA\u662F\u897F\u6E56\u7684\u70DF\u6CE2\u6D69\u6E3A\uFF0C\u8FD8\u662F\u7075\u9690\u5BFA\u7684\u949F\u58F0\u60A0\u626C\uFF0C\u4EA6\u6216\u662F\u9F99\u4E95\u8336\u7684\u6E05\u9999\u56DB\u6EA2\uFF0C\u676D\u5DDE\u90FD\u4EE5\u5176\u72EC\u7279\u7684\u9B45\u529B\u5438\u5F15\u7740\u65E0\u6570\u6E38\u5BA2\u548C\u6587\u4EBA\u58A8\u5BA2\u3002\u5728\u8FD9\u91CC\uFF0C\u81EA\u7136\u4E0E\u4EBA\u6587\u4EA4\u76F8\u8F89\u6620\uFF0C\u4F20\u7EDF\u4E0E\u73B0\u4EE3\u548C\u8C10\u5171\u5B58\uFF0C\u6784\u6210\u4E86\u4E00\u5E45\u4EE4\u4EBA\u6D41\u8FDE\u5FD8\u8FD4\u7684\u753B\u5377\u3002"
33
+ children: "\u676D\u5DDE\uFF0C\u8FD9\u5EA7\u4F4D\u4E8E\u4E2D\u56FD\u4E1C\u5357\u6CBF\u6D77\u7684\u5386\u53F2\u6587\u5316\u540D\u57CE\uFF0C\u4EE5\u5176\u79C0\u7F8E\u7684\u81EA\u7136\u98CE\u5149\u548C\u6DF1\u539A\u7684\u4EBA\u6587\u5E95\u8574\uFF0C\u88AB\u8A89\u4E3A\u201C\u4EBA\u95F4\u5929\u5802\u201D\u3002\u65E0\u8BBA\u662F\u897F\u6E56\u7684\u70DF\u6CE2\u6D69\u6E3A\uFF0C\u8FD8\u662F\u7075\u9690\u5BFA\u7684\u949F\u58F0\u60A0\u626C\uFF0C\u4EA6\u6216\u662F\u9F99\u4E95\u8336\u7684\u6E05\u9999\u56DB\u6EA2\uFF0C\u676D\u5DDE\u90FD\u4EE5\u5176\u72EC\u7279\u7684\u9B45\u529B\u5438\u5F15\u7740\u65E0\u6570\u6E38\u5BA2\u548C\u6587\u4EBA\u58A8\u5BA2\u3002\u5728\u8FD9\u91CC\uFF0C\u81EA\u7136\u4E0E\u4EBA\u6587\u4EA4\u76F8\u8F89\u6620\uFF0C\u4F20\u7EDF\u4E0E\u73B0\u4EE3\u548C\u8C10\u5171\u5B58\uFF0C\u6784\u6210\u4E86\u4E00\u5E45\u4EE4\u4EBA\u6D41\u8FDE\u5FD8\u8FD4\u7684\u753B\u5377\u3002"
34
34
  }), /*#__PURE__*/_jsx("p", {
35
35
  children: /*#__PURE__*/_jsx("strong", {
36
36
  children: "\u897F\u6E56\uFF1A\u676D\u5DDE\u7684\u7075\u9B42"
37
37
  })
38
38
  }), /*#__PURE__*/_jsx("p", {
39
- children: "\u63D0\u5230\u676D\u5DDE\uFF0C\u4EBA\u4EEC\u9996\u5148\u60F3\u5230\u7684\u4FBF\u662F\u897F\u6E56\u3002\u897F\u6E56\u662F\u676D\u5DDE\u7684\u7075\u9B42\uFF0C\u4E5F\u662F\u4E2D\u56FD\u6700\u8457\u540D\u7684\u6E56\u6CCA\u4E4B\u4E00\u3002\u5B83\u4EE5\u5176\"\u6DE1\u5986\u6D53\u62B9\u603B\u76F8\u5B9C\"\u7684\u7F8E\u666F\uFF0C\u6210\u4E3A\u4E2D\u56FD\u53E4\u5178\u56ED\u6797\u827A\u672F\u7684\u5178\u8303\u3002\u65E0\u8BBA\u662F\u6625\u5929\u7684\u82CF\u5824\u6625\u6653\uFF0C\u590F\u5929\u7684\u66F2\u9662\u98CE\u8377\uFF0C\u79CB\u5929\u7684\u5E73\u6E56\u79CB\u6708\uFF0C\u8FD8\u662F\u51AC\u5929\u7684\u65AD\u6865\u6B8B\u96EA\uFF0C\u897F\u6E56\u56DB\u5B63\u7686\u6709\u4E0D\u540C\u7684\u97F5\u5473\u3002"
39
+ children: "\u63D0\u5230\u676D\u5DDE\uFF0C\u4EBA\u4EEC\u9996\u5148\u60F3\u5230\u7684\u4FBF\u662F\u897F\u6E56\u3002\u897F\u6E56\u662F\u676D\u5DDE\u7684\u7075\u9B42\uFF0C\u4E5F\u662F\u4E2D\u56FD\u6700\u8457\u540D\u7684\u6E56\u6CCA\u4E4B\u4E00\u3002\u5B83\u4EE5\u5176\u201C\u6DE1\u5986\u6D53\u62B9\u603B\u76F8\u5B9C\u201D\u7684\u7F8E\u666F\uFF0C\u6210\u4E3A\u4E2D\u56FD\u53E4\u5178\u56ED\u6797\u827A\u672F\u7684\u5178\u8303\u3002\u65E0\u8BBA\u662F\u6625\u5929\u7684\u82CF\u5824\u6625\u6653\uFF0C\u590F\u5929\u7684\u66F2\u9662\u98CE\u8377\uFF0C\u79CB\u5929\u7684\u5E73\u6E56\u79CB\u6708\uFF0C\u8FD8\u662F\u51AC\u5929\u7684\u65AD\u6865\u6B8B\u96EA\uFF0C\u897F\u6E56\u56DB\u5B63\u7686\u6709\u4E0D\u540C\u7684\u97F5\u5473\u3002"
40
40
  }), /*#__PURE__*/_jsx("p", {
41
41
  children: "\u6F2B\u6B65\u5728\u897F\u6E56\u8FB9\uFF0C\u6E56\u6C34\u6CE2\u5149\u7CBC\u7CBC\uFF0C\u8FDC\u5C71\u5982\u9EDB\uFF0C\u6E56\u4E2D\u7684\u4E09\u6F6D\u5370\u6708\u3001\u96F7\u5CF0\u5854\u3001\u65AD\u6865\u7B49\u666F\u70B9\uFF0C\u65E0\u4E0D\u8BC9\u8BF4\u7740\u4E00\u4E2A\u4E2A\u52A8\u4EBA\u7684\u6545\u4E8B\u3002\u897F\u6E56\u7684\u7F8E\uFF0C\u4E0D\u4EC5\u5728\u4E8E\u5B83\u7684\u81EA\u7136\u98CE\u5149\uFF0C\u66F4\u5728\u4E8E\u5B83\u627F\u8F7D\u7684\u6DF1\u539A\u6587\u5316\u3002\u4ECE\u767D\u5C45\u6613\u7684\u300A\u94B1\u5858\u6E56\u6625\u884C\u300B\u5230\u82CF\u8F7C\u7684\u300A\u996E\u6E56\u4E0A\u521D\u6674\u540E\u96E8\u300B\uFF0C\u5386\u4EE3\u6587\u4EBA\u58A8\u5BA2\u4E3A\u897F\u6E56\u7559\u4E0B\u4E86\u65E0\u6570\u810D\u7099\u4EBA\u53E3\u7684\u8BD7\u7BC7\uFF0C\u4F7F\u5176\u6210\u4E3A\u4E2D\u56FD\u6587\u5316\u7684\u91CD\u8981\u8C61\u5F81\u3002"
42
42
  }), /*#__PURE__*/_jsx("p", {
@@ -52,7 +52,7 @@ var App = function App() {
52
52
  children: "\u9F99\u4E95\u8336\uFF1A\u676D\u5DDE\u7684\u5473\u9053"
53
53
  })
54
54
  }), /*#__PURE__*/_jsx("p", {
55
- children: "\u676D\u5DDE\u7684\u9F99\u4E95\u8336\uFF0C\u662F\u4E2D\u56FD\u5341\u5927\u540D\u8336\u4E4B\u4E00\uFF0C\u4E5F\u662F\u676D\u5DDE\u6587\u5316\u7684\u91CD\u8981\u7EC4\u6210\u90E8\u5206\u3002\u9F99\u4E95\u8336\u4EE5\u5176\"\u8272\u7EFF\u3001\u9999\u90C1\u3001\u5473\u7518\u3001\u5F62\u7F8E\"\u56DB\u7EDD\u800C\u95FB\u540D\u4E8E\u4E16\u3002\u6BCF\u5E74\u6625\u5929\uFF0C\u676D\u5DDE\u7684\u8336\u519C\u4EEC\u4FBF\u5F00\u59CB\u5FD9\u788C\u8D77\u6765\uFF0C\u91C7\u6458\u65B0\u9C9C\u7684\u8336\u53F6\uFF0C\u7ECF\u8FC7\u7CBE\u5FC3\u7092\u5236\uFF0C\u5236\u6210\u6E05\u9999\u6251\u9F3B\u7684\u9F99\u4E95\u8336\u3002"
55
+ children: "\u676D\u5DDE\u7684\u9F99\u4E95\u8336\uFF0C\u662F\u4E2D\u56FD\u5341\u5927\u540D\u8336\u4E4B\u4E00\uFF0C\u4E5F\u662F\u676D\u5DDE\u6587\u5316\u7684\u91CD\u8981\u7EC4\u6210\u90E8\u5206\u3002\u9F99\u4E95\u8336\u4EE5\u5176\u201C\u8272\u7EFF\u3001\u9999\u90C1\u3001\u5473\u7518\u3001\u5F62\u7F8E\u201D\u56DB\u7EDD\u800C\u95FB\u540D\u4E8E\u4E16\u3002\u6BCF\u5E74\u6625\u5929\uFF0C\u676D\u5DDE\u7684\u8336\u519C\u4EEC\u4FBF\u5F00\u59CB\u5FD9\u788C\u8D77\u6765\uFF0C\u91C7\u6458\u65B0\u9C9C\u7684\u8336\u53F6\uFF0C\u7ECF\u8FC7\u7CBE\u5FC3\u7092\u5236\uFF0C\u5236\u6210\u6E05\u9999\u6251\u9F3B\u7684\u9F99\u4E95\u8336\u3002"
56
56
  }), /*#__PURE__*/_jsx("p", {
57
57
  children: "\u5728\u676D\u5DDE\uFF0C\u54C1\u8336\u4E0D\u4EC5\u662F\u4E00\u79CD\u751F\u6D3B\u4E60\u60EF\uFF0C\u66F4\u662F\u4E00\u79CD\u6587\u5316\u4F53\u9A8C\u3002\u5728\u9F99\u4E95\u6751\uFF0C\u6E38\u5BA2\u53EF\u4EE5\u4EB2\u81EA\u4F53\u9A8C\u91C7\u8336\u3001\u7092\u8336\u7684\u8FC7\u7A0B\uFF0C\u611F\u53D7\u8336\u6587\u5316\u7684\u9B45\u529B\u3002\u5750\u5728\u8336\u56ED\u4E2D\uFF0C\u54C1\u4E00\u676F\u6E05\u9999\u56DB\u6EA2\u7684\u9F99\u4E95\u8336\uFF0C\u8FDC\u773A\u9752\u5C71\u7EFF\u6C34\uFF0C\u4EFF\u4F5B\u65F6\u95F4\u90FD\u6162\u4E86\u4E0B\u6765\u3002"
58
58
  }), /*#__PURE__*/_jsx("p", {
@@ -68,7 +68,7 @@ var App = function App() {
68
68
  children: "\u73B0\u4EE3\u676D\u5DDE\uFF1A\u4F20\u7EDF\u4E0E\u521B\u65B0\u7684\u878D\u5408"
69
69
  })
70
70
  }), /*#__PURE__*/_jsx("p", {
71
- children: "\u4ECA\u5929\u7684\u676D\u5DDE\uFF0C\u4E0D\u4EC5\u662F\u5386\u53F2\u6587\u5316\u540D\u57CE\uFF0C\u4E5F\u662F\u4E2D\u56FD\u79D1\u6280\u521B\u65B0\u7684\u91CD\u8981\u4E2D\u5FC3\u3002\u4F5C\u4E3A\u963F\u91CC\u5DF4\u5DF4\u7684\u603B\u90E8\u6240\u5728\u5730\uFF0C\u676D\u5DDE\u88AB\u8A89\u4E3A\"\u4E2D\u56FD\u7845\u8C37\"\uFF0C\u5438\u5F15\u4E86\u65E0\u6570\u521B\u4E1A\u8005\u548C\u79D1\u6280\u4EBA\u624D\u3002\u5728\u8FD9\u91CC\uFF0C\u53E4\u8001\u7684\u4F20\u7EDF\u6587\u5316\u4E0E\u73B0\u4EE3\u79D1\u6280\u5B8C\u7F8E\u878D\u5408\uFF0C\u5C55\u73B0\u51FA\u4E00\u79CD\u72EC\u7279\u7684\u57CE\u5E02\u6C14\u8D28\u3002"
71
+ children: "\u4ECA\u5929\u7684\u676D\u5DDE\uFF0C\u4E0D\u4EC5\u662F\u5386\u53F2\u6587\u5316\u540D\u57CE\uFF0C\u4E5F\u662F\u4E2D\u56FD\u79D1\u6280\u521B\u65B0\u7684\u91CD\u8981\u4E2D\u5FC3\u3002\u4F5C\u4E3A\u963F\u91CC\u5DF4\u5DF4\u7684\u603B\u90E8\u6240\u5728\u5730\uFF0C\u676D\u5DDE\u88AB\u8A89\u4E3A\u201C\u4E2D\u56FD\u7845\u8C37\u201D\uFF0C\u5438\u5F15\u4E86\u65E0\u6570\u521B\u4E1A\u8005\u548C\u79D1\u6280\u4EBA\u624D\u3002\u5728\u8FD9\u91CC\uFF0C\u53E4\u8001\u7684\u4F20\u7EDF\u6587\u5316\u4E0E\u73B0\u4EE3\u79D1\u6280\u5B8C\u7F8E\u878D\u5408\uFF0C\u5C55\u73B0\u51FA\u4E00\u79CD\u72EC\u7279\u7684\u57CE\u5E02\u6C14\u8D28\u3002"
72
72
  }), /*#__PURE__*/_jsx("p", {
73
73
  children: "\u676D\u5DDE\u7684\u73B0\u4EE3\u5316\u53D1\u5C55\u5E76\u672A\u63A9\u76D6\u5176\u4F20\u7EDF\u6587\u5316\u7684\u9B45\u529B\u3002\u76F8\u53CD\uFF0C\u73B0\u4EE3\u79D1\u6280\u4E3A\u4F20\u7EDF\u6587\u5316\u7684\u4F20\u627F\u4E0E\u521B\u65B0\u63D0\u4F9B\u4E86\u65B0\u7684\u5E73\u53F0\u3002\u4F8B\u5982\uFF0C\u897F\u6E56\u7684\u591C\u666F\u901A\u8FC7\u706F\u5149\u79C0\u7115\u53D1\u51FA\u65B0\u7684\u751F\u673A\uFF0C\u9F99\u4E95\u8336\u7684\u9500\u552E\u4E5F\u501F\u52A9\u7535\u5546\u5E73\u53F0\u8D70\u5411\u5168\u7403\u3002\u676D\u5DDE\u4EE5\u5176\u5305\u5BB9\u4E0E\u521B\u65B0\u7684\u7CBE\u795E\uFF0C\u6B63\u5728\u4E66\u5199\u7740\u65B0\u7684\u7BC7\u7AE0\u3002"
74
74
  }), /*#__PURE__*/_jsx("p", {
@@ -76,7 +76,7 @@ var App = function App() {
76
76
  children: "\u7ED3\u8BED"
77
77
  })
78
78
  }), /*#__PURE__*/_jsx("p", {
79
- children: "\u676D\u5DDE\uFF0C\u8FD9\u5EA7\u517C\u5177\u81EA\u7136\u4E4B\u7F8E\u4E0E\u4EBA\u6587\u4E4B\u97F5\u7684\u57CE\u5E02\uFF0C\u4EE5\u5176\u72EC\u7279\u7684\u9B45\u529B\u5438\u5F15\u7740\u4E16\u754C\u5404\u5730\u7684\u6E38\u5BA2\u3002\u65E0\u8BBA\u662F\u897F\u6E56\u7684\u70DF\u6CE2\u6D69\u6E3A\uFF0C\u7075\u9690\u5BFA\u7684\u7985\u610F\u60A0\u8FDC\uFF0C\u8FD8\u662F\u9F99\u4E95\u8336\u7684\u6E05\u9999\u56DB\u6EA2\uFF0C\u676D\u5DDE\u90FD\u4EE5\u5176\u6DF1\u539A\u7684\u6587\u5316\u5E95\u8574\u548C\u7F8E\u4E3D\u7684\u81EA\u7136\u98CE\u5149\uFF0C\u6210\u4E3A\u4EBA\u4EEC\u5FC3\u4E2D\u7684\"\u4EBA\u95F4\u5929\u5802\"\u3002\u5728\u8FD9\u91CC\uFF0C\u4F20\u7EDF\u4E0E\u73B0\u4EE3\u4EA4\u7EC7\uFF0C\u81EA\u7136\u4E0E\u4EBA\u6587\u5171\u5B58\uFF0C\u6784\u6210\u4E86\u4E00\u5E45\u4EE4\u4EBA\u6D41\u8FDE\u5FD8\u8FD4\u7684\u753B\u5377\u3002\u676D\u5DDE\uFF0C\u4E0D\u4EC5\u662F\u8BD7\u610F\u7684\u6816\u5C45\u5730\uFF0C\u66F4\u662F\u68A6\u60F3\u4E0E\u5E0C\u671B\u7684\u8D77\u70B9\u3002"
79
+ children: "\u676D\u5DDE\uFF0C\u8FD9\u5EA7\u517C\u5177\u81EA\u7136\u4E4B\u7F8E\u4E0E\u4EBA\u6587\u4E4B\u97F5\u7684\u57CE\u5E02\uFF0C\u4EE5\u5176\u72EC\u7279\u7684\u9B45\u529B\u5438\u5F15\u7740\u4E16\u754C\u5404\u5730\u7684\u6E38\u5BA2\u3002\u65E0\u8BBA\u662F\u897F\u6E56\u7684\u70DF\u6CE2\u6D69\u6E3A\uFF0C\u7075\u9690\u5BFA\u7684\u7985\u610F\u60A0\u8FDC\uFF0C\u8FD8\u662F\u9F99\u4E95\u8336\u7684\u6E05\u9999\u56DB\u6EA2\uFF0C\u676D\u5DDE\u90FD\u4EE5\u5176\u6DF1\u539A\u7684\u6587\u5316\u5E95\u8574\u548C\u7F8E\u4E3D\u7684\u81EA\u7136\u98CE\u5149\uFF0C\u6210\u4E3A\u4EBA\u4EEC\u5FC3\u4E2D\u7684\u201C\u4EBA\u95F4\u5929\u5802\u201D\u3002\u5728\u8FD9\u91CC\uFF0C\u4F20\u7EDF\u4E0E\u73B0\u4EE3\u4EA4\u7EC7\uFF0C\u81EA\u7136\u4E0E\u4EBA\u6587\u5171\u5B58\uFF0C\u6784\u6210\u4E86\u4E00\u5E45\u4EE4\u4EBA\u6D41\u8FDE\u5FD8\u8FD4\u7684\u753B\u5377\u3002\u676D\u5DDE\uFF0C\u4E0D\u4EC5\u662F\u8BD7\u610F\u7684\u6816\u5C45\u5730\uFF0C\u66F4\u662F\u68A6\u60F3\u4E0E\u5E0C\u671B\u7684\u8D77\u70B9\u3002"
80
80
  })]
81
81
  })
82
82
  })
@@ -42,7 +42,8 @@ var CollapsePanel = function CollapsePanel(props) {
42
42
  setContentHeight = _useState6[1];
43
43
  var contentRef = useRef(null);
44
44
  var commonConfig = getCommonConfig();
45
- var sparkPrefix = commonConfig.sparkPrefix;
45
+ var sparkPrefix = commonConfig.sparkPrefix,
46
+ antPrefix = commonConfig.antPrefix;
46
47
  var Style = useStyle();
47
48
  useEffect(function () {
48
49
  if (contentRef.current) {
@@ -65,7 +66,6 @@ var CollapsePanel = function CollapsePanel(props) {
65
66
  var handlePanelClick = function handlePanelClick(e) {
66
67
  e.stopPropagation();
67
68
  e.preventDefault();
68
- if (!expandedHeight) return;
69
69
  if (!isExpanded) {
70
70
  setIsExpanded(true);
71
71
  }
@@ -91,7 +91,7 @@ var CollapsePanel = function CollapsePanel(props) {
91
91
  onClick: handleHeaderClick,
92
92
  children: [/*#__PURE__*/_jsxs("span", {
93
93
  className: "".concat(sparkPrefix, "-collapse-panel-title"),
94
- children: [title, expandedHeight && /*#__PURE__*/_jsxs("div", {
94
+ children: [title, /*#__PURE__*/_jsxs("div", {
95
95
  className: "".concat(sparkPrefix, "-collapse-panel-icon-wrapper"),
96
96
  children: [!isExpanded && isHovered && expandOnPanelClick && /*#__PURE__*/_jsx(SparkDownLine, {
97
97
  style: {
@@ -120,7 +120,7 @@ var CollapsePanel = function CollapsePanel(props) {
120
120
  ref: contentRef,
121
121
  className: "".concat("".concat(sparkPrefix, "-collapse-panel-contentWrapper"), " ", isExpanded && expandedHeight ? 'scrollable' : ''),
122
122
  children: children
123
- }), !isExpanded && expandedHeight && /*#__PURE__*/_jsx("div", {
123
+ }), !isExpanded && /*#__PURE__*/_jsx("div", {
124
124
  className: "".concat(sparkPrefix, "-collapse-panel-mask")
125
125
  })]
126
126
  })]
@@ -1,3 +1,4 @@
1
+ import { TooltipProps } from 'antd';
1
2
  import React, { CSSProperties } from 'react';
2
3
  export interface EllipsisTipProps {
3
4
  className?: string;
@@ -7,7 +8,13 @@ export interface EllipsisTipProps {
7
8
  /** 最多几行; 默认1行 */
8
9
  rows?: number;
9
10
  /** 省略时hover的提示内容; 默认值为children */
10
- tooltip?: React.ReactNode;
11
+ tooltip?: React.ReactNode | TooltipProps;
12
+ /**
13
+ * @description tooltip的最大高度
14
+ * @descriptionEn tooltip max height
15
+ * @default '90vh'
16
+ */
17
+ tooltipMaxHeight?: number | string;
11
18
  }
12
19
  /** 超过展示范围时展示tooltip */
13
20
  export default function EllipsisTip(props: EllipsisTipProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,9 @@
1
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
1
7
  import { getCommonConfig } from "../../../config";
2
8
  import { Typography } from 'antd';
3
9
  import classNames from 'classnames';
@@ -15,18 +21,42 @@ export default function EllipsisTip(props) {
15
21
  children = props.children,
16
22
  _props$rows = props.rows,
17
23
  rows = _props$rows === void 0 ? 1 : _props$rows,
18
- tooltip = props.tooltip;
19
- var _tooltip = tooltip || children;
24
+ tooltip = props.tooltip,
25
+ _props$tooltipMaxHeig = props.tooltipMaxHeight,
26
+ tooltipMaxHeight = _props$tooltipMaxHeig === void 0 ? '90vh' : _props$tooltipMaxHeig;
20
27
  var _getCommonConfig = getCommonConfig(),
21
28
  sparkPrefix = _getCommonConfig.sparkPrefix;
22
29
  var Style = useStyle();
30
+ function getTooltip() {
31
+ var defaultBodyStyle = {
32
+ maxHeight: tooltipMaxHeight,
33
+ overflow: 'auto'
34
+ };
35
+ if (_typeof(tooltip) === 'object') {
36
+ var _ref = tooltip,
37
+ title = _ref.title,
38
+ styles = _ref.styles;
39
+ return {
40
+ title: title || children,
41
+ styles: _objectSpread(_objectSpread({}, styles), {}, {
42
+ body: _objectSpread(_objectSpread({}, defaultBodyStyle), styles === null || styles === void 0 ? void 0 : styles.body)
43
+ })
44
+ };
45
+ }
46
+ return {
47
+ title: tooltip || children,
48
+ styles: {
49
+ body: defaultBodyStyle
50
+ }
51
+ };
52
+ }
23
53
  return /*#__PURE__*/_jsxs(_Fragment, {
24
54
  children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Typography.Paragraph, {
25
55
  className: classNames("".concat(sparkPrefix, "-ellipsis-tip"), className),
26
56
  style: style,
27
57
  ellipsis: {
28
58
  rows: rows,
29
- tooltip: _tooltip
59
+ tooltip: getTooltip()
30
60
  },
31
61
  children: children
32
62
  })]
@@ -75,6 +75,12 @@ export interface SparkEmptyProps {
75
75
  * @descriptionEn custom empty size
76
76
  */
77
77
  size?: React.CSSProperties['width'];
78
+ /**
79
+ * @description 是否自适应容器宽度,当容器宽度小于 size 时自动缩放
80
+ * @descriptionEn whether to auto fit the container width, auto scale when container width is less than size
81
+ * @default false
82
+ */
83
+ autoFit?: boolean;
78
84
  }
79
85
  declare const Empty: (props: SparkEmptyProps) => import("react/jsx-runtime").JSX.Element;
80
86
  export default Empty;
@@ -193,6 +193,8 @@ var Empty = function Empty(props) {
193
193
  texture = _props$texture === void 0 ? true : _props$texture,
194
194
  _props$size = props.size,
195
195
  size = _props$size === void 0 ? 320 : _props$size,
196
+ _props$autoFit = props.autoFit,
197
+ autoFit = _props$autoFit === void 0 ? true : _props$autoFit,
196
198
  okText = props.okText,
197
199
  _props$okType = props.okType,
198
200
  okType = _props$okType === void 0 ? 'primary' : _props$okType,
@@ -223,20 +225,28 @@ var Empty = function Empty(props) {
223
225
  }, [isDarkMode]);
224
226
  var Style = useStyle();
225
227
  var parsedSize = typeof size === 'string' ? parseFloat(size.replace(/px/i, '')) : size !== null && size !== void 0 ? size : 0;
228
+
229
+ /** 自适应容器样式 */
230
+ var autoFitStyle = autoFit ? {
231
+ maxWidth: '100%',
232
+ aspectRatio: '1 / 1',
233
+ width: size,
234
+ height: 'auto'
235
+ } : {
236
+ width: size,
237
+ height: size
238
+ };
226
239
  return /*#__PURE__*/_jsxs(_Fragment, {
227
240
  children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
228
241
  className: "".concat(sparkPrefix, "-empty ").concat(props.className || ''),
229
- style: _objectSpread(_objectSpread({}, imageStyle), {}, {
230
- width: size,
231
- height: size
232
- }),
242
+ style: _objectSpread(_objectSpread({}, autoFitStyle), imageStyle),
233
243
  children: [texture && /*#__PURE__*/_jsx(Illustrate, {
234
- size: size,
244
+ size: autoFit ? '100%' : size,
235
245
  svgUrl: TEXTURE_MAP.url,
236
246
  tokenMap: textureTokenMap,
237
247
  className: "".concat(sparkPrefix, "-empty-texture")
238
248
  }), /*#__PURE__*/_jsx(Illustrate, {
239
- size: size,
249
+ size: autoFit ? '100%' : size,
240
250
  svgUrl: image,
241
251
  tokenMap: tokenMap,
242
252
  className: "".concat(sparkPrefix, "-empty-image")
@@ -265,7 +275,12 @@ var Empty = function Empty(props) {
265
275
  }, okButtonProps), {}, {
266
276
  children: okText
267
277
  }))
268
- }), !!children && children]
278
+ }), !!children && /*#__PURE__*/_jsx("div", {
279
+ style: {
280
+ marginTop: 0.05 * parsedSize
281
+ },
282
+ children: children
283
+ })]
269
284
  })]
270
285
  })]
271
286
  });
@@ -1,7 +1,7 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import createGlobalStyle from "../../../libs/createStyle";
4
- export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n.", "-empty-texture,\n.", "-empty-image {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n display: flex;\n justify-content: center;\n}\n\n.", "-empty-image svg {\n margin-top: 16.875%;\n width: 108px;\n height: 108px;\n}\n\n.", "-empty-texture svg {\n width: 320px;\n height: 320px;\n}\n\n.", "-empty-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n color: var(--", "-color-text);\n}\n\n.", "-empty-description {\n font-size: 12px;\n line-height: 20px;\n color: var(--", "-color-text-secondary);\n text-align: center;\n width: 100%;\n}\n"])), function (p) {
4
+ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n.", "-empty-texture,\n.", "-empty-image {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n display: flex;\n justify-content: center;\n}\n\n.", "-empty-image svg {\n margin-top: 16.875%;\n width: 33.75%;\n height: 33.75%;\n}\n\n.", "-empty-texture svg {\n width: 100%;\n height: 100%;\n}\n\n.", "-empty-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n color: var(--", "-color-text);\n}\n\n.", "-empty-description {\n font-size: 12px;\n line-height: 20px;\n color: var(--", "-color-text-secondary);\n text-align: center;\n width: 100%;\n}\n"])), function (p) {
5
5
  return p.sparkPrefix;
6
6
  }, function (p) {
7
7
  return p.sparkPrefix;
@@ -14,47 +14,38 @@ import { LeftOutlined, RightOutlined } from "@agentscope-ai/icons-override-antd"
14
14
  import { Flex, Pagination } from 'antd';
15
15
  import classNames from 'classnames';
16
16
  import { useStyle } from "./index.style";
17
+
18
+ /**
19
+ * 获取默认的分页大小选择器配置
20
+ * 使用函数形式以支持动态国际化
21
+ */
17
22
  import { jsx as _jsx } from "react/jsx-runtime";
18
23
  import { jsxs as _jsxs } from "react/jsx-runtime";
19
24
  import { Fragment as _Fragment } from "react/jsx-runtime";
20
- var DEFAULT_SHOW_SIZE_CHANGE = {
21
- options: [{
22
- label: "10 ".concat($i18n.get({
23
- id: 'components.commonComponents.Pagination.Items',
24
- dm: '条'
25
- }), " / ").concat($i18n.get({
26
- id: 'components.commonComponents.Pagination.Page',
27
- dm: '页'
28
- })),
29
- value: 10
30
- }, {
31
- label: "20 ".concat($i18n.get({
32
- id: 'components.commonComponents.Pagination.Items',
33
- dm: '条'
34
- }), " / ").concat($i18n.get({
35
- id: 'components.commonComponents.Pagination.Page',
36
- dm: '页'
37
- })),
38
- value: 20
39
- }, {
40
- label: "50 ".concat($i18n.get({
41
- id: 'components.commonComponents.Pagination.Items',
42
- dm: '条'
43
- }), " / ").concat($i18n.get({
44
- id: 'components.commonComponents.Pagination.Page',
45
- dm: '页'
46
- })),
47
- value: 50
48
- }, {
49
- label: "100 ".concat($i18n.get({
50
- id: 'components.commonComponents.Pagination.Items',
51
- dm: '条'
52
- }), " / ").concat($i18n.get({
53
- id: 'components.commonComponents.Pagination.Page',
54
- dm: '页'
55
- })),
56
- value: 100
57
- }]
25
+ var getDefaultShowSizeChange = function getDefaultShowSizeChange() {
26
+ var itemsText = $i18n.get({
27
+ id: 'components.commonComponents.Pagination.Items',
28
+ dm: ''
29
+ });
30
+ var pageText = $i18n.get({
31
+ id: 'components.commonComponents.Pagination.Page',
32
+ dm: '页'
33
+ });
34
+ return {
35
+ options: [{
36
+ label: "10 ".concat(itemsText, " / ").concat(pageText),
37
+ value: 10
38
+ }, {
39
+ label: "20 ".concat(itemsText, " / ").concat(pageText),
40
+ value: 20
41
+ }, {
42
+ label: "50 ".concat(itemsText, " / ").concat(pageText),
43
+ value: 50
44
+ }, {
45
+ label: "100 ".concat(itemsText, " / ").concat(pageText),
46
+ value: 100
47
+ }]
48
+ };
58
49
  };
59
50
  export default (function (props) {
60
51
  var _props$hideSwitchButt = props.hideSwitchButton,
@@ -115,8 +106,8 @@ export default (function (props) {
115
106
  }
116
107
  var getMergedShowSizeChange = function getMergedShowSizeChange() {
117
108
  if (props.showSizeChanger === true) {
118
- // 用户手动设置为 true,使用预置选项
119
- return DEFAULT_SHOW_SIZE_CHANGE;
109
+ // 用户手动设置为 true,使用预置选项(动态获取以支持国际化)
110
+ return getDefaultShowSizeChange();
120
111
  }
121
112
  if (props.showSizeChanger === false) {
122
113
  // 用户手动设为 false
@@ -127,8 +118,8 @@ export default (function (props) {
127
118
  return props.showSizeChanger;
128
119
  }
129
120
  if (restProps.total && restProps.total > 50) {
130
- // 数据量大于 50,使用预置选项
131
- return DEFAULT_SHOW_SIZE_CHANGE;
121
+ // 数据量大于 50,使用预置选项(动态获取以支持国际化)
122
+ return getDefaultShowSizeChange();
132
123
  }
133
124
  return false;
134
125
  };
@@ -1,7 +1,7 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import createGlobalStyle from "../../../libs/createStyle";
4
- export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-pagination {\n color: var(--", "-color-text) !important;\n font-weight: 500 !important;\n \n .", "-pagination-total-text {\n font-weight: 500;\n }\n \n .", "-select-selection-item {\n font-weight: 500;\n }\n \n .", "-pagination-item-active {\n border-color: var(--", "-color-border-secondary);\n border-radius: 8px;\n font-weight: \n \n a {\n color: var(--", "-color-text) !important;\n }\n }\n \n a {\n color: var(--", "-color-text) !important;\n font-weight: 500 !important;\n }\n \n .", "-pagination-jump-next {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .", "-pagination-jump-prev {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}\n\n.", "-pagination {\n .", "-pagination-prev,\n .", "-pagination-next,\n .", "-pagination-jump-prev,\n .", "-pagination-jump-next {\n font-family: serif;\n display: inline-block !important;\n }\n}\n"])), function (p) {
4
+ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-pagination {\n color: var(--", "-color-text) !important;\n font-weight: 500 !important;\n \n .", "-pagination-total-text {\n font-weight: 500;\n }\n \n .", "-select-selection-item {\n font-weight: 500;\n }\n \n .", "-pagination-item-active {\n border-color: var(--", "-color-border-secondary);\n border-radius: 8px;\n font-weight: \n \n a {\n color: var(--", "-color-text) !important;\n }\n }\n \n a {\n color: var(--", "-color-text) !important;\n font-weight: 500 !important;\n }\n \n .", "-pagination-jump-next {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .", "-pagination-jump-prev {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}\n\n.", "-pagination {\n .", "-pagination-prev,\n .", "-pagination-next,\n .", "-pagination-jump-prev,\n .", "-pagination-jump-next {\n font-family: Montserrat;\n display: inline-block !important;\n }\n}\n"])), function (p) {
5
5
  return p.antPrefix;
6
6
  }, function (p) {
7
7
  return p.antPrefix;
@@ -28,7 +28,7 @@ var PlaceholderWidget = /*#__PURE__*/function (_WidgetType) {
28
28
  _createClass(PlaceholderWidget, [{
29
29
  key: "eq",
30
30
  value: function eq(other) {
31
- return other.name == this.name;
31
+ return other.name === this.name;
32
32
  }
33
33
  }, {
34
34
  key: "toDOM",
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export interface SliderSelectorProps {
3
3
  className?: string;
4
- onChange: (val: number | null) => void;
4
+ onChange?: (val: number | null) => void;
5
5
  value?: number | null;
6
6
  min: number;
7
7
  max: number;
@@ -19,15 +19,19 @@ export default function SliderSelector(props) {
19
19
  /**InputNumber为受控组件,会导致min和max失效,所以需要手动处理 */
20
20
  var numVal = typeof val === 'string' ? parseFloat(val) : val;
21
21
  if (numVal === null || isNaN(numVal)) {
22
- props.onChange(null);
22
+ var _props$onChange;
23
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, null);
23
24
  return;
24
25
  }
25
26
  if (numVal < props.min) {
26
- props.onChange(props.min);
27
+ var _props$onChange2;
28
+ (_props$onChange2 = props.onChange) === null || _props$onChange2 === void 0 || _props$onChange2.call(props, props.min);
27
29
  } else if (numVal > props.max) {
28
- props.onChange(props.max);
30
+ var _props$onChange3;
31
+ (_props$onChange3 = props.onChange) === null || _props$onChange3 === void 0 || _props$onChange3.call(props, props.max);
29
32
  } else {
30
- props.onChange(numVal);
33
+ var _props$onChange4;
34
+ (_props$onChange4 = props.onChange) === null || _props$onChange4 === void 0 || _props$onChange4.call(props, numVal);
31
35
  }
32
36
  };
33
37
  return /*#__PURE__*/_jsxs(_Fragment, {
@@ -7,6 +7,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
7
7
  import { getCommonConfig } from "../../../config";
8
8
  import { SparkTrueLine } from '@agentscope-ai/icons';
9
9
  import { Steps } from 'antd';
10
+ import classNames from 'classnames';
10
11
  import { useMemo } from 'react';
11
12
  import { useStyle } from "./index.style";
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -45,7 +46,7 @@ var SparkSteps = function SparkSteps(props) {
45
46
  return /*#__PURE__*/_jsxs(_Fragment, {
46
47
  children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Steps, _objectSpread(_objectSpread({}, props), {}, {
47
48
  items: items,
48
- className: "".concat(sparkPrefix, "-steps")
49
+ className: classNames("".concat(sparkPrefix, "-steps"), props.className)
49
50
  }))]
50
51
  });
51
52
  };
@@ -1,7 +1,7 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import createGlobalStyle from "../../../libs/createStyle";
4
- export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-steps {\n .", "-steps-item-container {\n display: flex;\n flex-direction: row;\n }\n \n .", "-steps-item:not(.", "-steps-item-active):not(.", "-steps-item-process) {\n .", "-steps-item-container {\n &:hover {\n .", "-steps-item-icon {\n border-color: transparent !important;\n }\n }\n }\n }\n \n .", "-steps-item-icon {\n font-size: 14px;\n font-weight: 600;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--", "-color-border-secondary);\n }\n \n .", "-steps-item-finish {\n .", "-steps-item-icon {\n height: 20px !important;\n }\n \n .", "-steps-icon {\n max-width: 20px;\n max-height: 20px;\n font-size: 16px !important;\n line-height: 20px !important;\n top: -0.5px !important;\n \n .", "-finish-icon {\n background-color: var(--", "-color-primary-bg);\n border-radius: 50%;\n font-size: 16px !important;\n width: 20px;\n height: 20px;\n color: var(--", "-color-primary);\n }\n }\n }\n \n .", "-steps-item-title {\n padding-inline-end: 8px;\n line-height: 20px;\n color: var(--", "-color-text) !important;\n font-size: 14px;\n font-weight: 500;\n \n &::after {\n background-color: var(--", "-color-border-secondary) !important;\n height: 1px;\n background: var(--", "-color-border-secondary);\n }\n }\n \n .", "-steps-item-description {\n font-size: 12px;\n line-height: 20px;\n color: var(--", "-color-text-tertiary) !important;\n }\n \n .", "-steps-item-wait {\n .", "-steps-item-icon {\n background-color: var(--", "-color-primary-bg);\n }\n }\n \n &.", "-steps-horizontal:not(.", "-steps-label-vertical) {\n .", "-steps-item {\n padding-inline-start: 8px;\n }\n }\n}\n\n.", "-steps-vertical {\n display: flex;\n min-height: 182px;\n align-items: center;\n justify-content: center;\n \n .", "-steps-item {\n .", "-steps-item-icon {\n margin-inline-end: 9px !important;\n }\n }\n \n .", "-steps-item-tail::after {\n width: 1px !important;\n background-color: var(--", "-color-border-secondary) !important;\n }\n}\n"])), function (p) {
4
+ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-steps {\n .", "-steps-item-container {\n display: flex;\n flex-direction: row;\n }\n \n .", "-steps-item:not(.", "-steps-item-active):not(.", "-steps-item-process) {\n .", "-steps-item-container {\n &:hover {\n .", "-steps-item-icon {\n border-color: transparent !important;\n }\n }\n }\n }\n \n .", "-steps-item-icon {\n font-size: 14px;\n font-weight: 600;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--", "-color-border-secondary);\n }\n\n .", "-steps-item-process {\n .", "-steps-item-icon {\n border-color: transparent !important;\n }\n }\n \n .", "-steps-item-finish {\n .", "-steps-item-icon {\n height: 20px !important;\n }\n \n .", "-steps-icon {\n max-width: 20px;\n max-height: 20px;\n font-size: 20px !important;\n line-height: 20px !important;\n top: -0.5px !important;\n \n .", "-finish-icon {\n background-color: var(--", "-color-primary-bg);\n border-radius: 50%;\n font-size: 20px !important;\n width: 20px;\n height: 20px;\n color: var(--", "-color-primary);\n }\n }\n }\n \n .", "-steps-item-title {\n padding-inline-end: 8px;\n line-height: 20px;\n color: var(--", "-color-text) !important;\n font-size: 14px;\n font-weight: 500;\n \n &::after {\n background-color: var(--", "-color-border-secondary) !important;\n height: 1px;\n background: var(--", "-color-border-secondary);\n }\n }\n \n .", "-steps-item-description {\n font-size: 12px;\n line-height: 20px;\n color: var(--", "-color-text-tertiary) !important;\n }\n \n .", "-steps-item-wait {\n .", "-steps-item-icon {\n background-color: var(--", "-color-primary-bg);\n }\n }\n \n &.", "-steps-horizontal:not(.", "-steps-label-vertical) {\n .", "-steps-item {\n padding-inline-start: 8px;\n }\n }\n}\n\n.", "-steps-vertical {\n display: flex;\n min-height: 182px;\n align-items: center;\n justify-content: center;\n \n .", "-steps-item {\n .", "-steps-item-icon {\n margin-inline-end: 9px !important;\n }\n }\n \n .", "-steps-item-tail::after {\n width: 1px !important;\n background-color: var(--", "-color-border-secondary) !important;\n }\n}\n"])), function (p) {
5
5
  return p.sparkPrefix;
6
6
  }, function (p) {
7
7
  return p.antPrefix;
@@ -25,6 +25,10 @@ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _t
25
25
  return p.antPrefix;
26
26
  }, function (p) {
27
27
  return p.antPrefix;
28
+ }, function (p) {
29
+ return p.antPrefix;
30
+ }, function (p) {
31
+ return p.antPrefix;
28
32
  }, function (p) {
29
33
  return p.sparkPrefix;
30
34
  }, function (p) {
@@ -1,7 +1,33 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import createGlobalStyle from "../../../libs/createStyle";
4
- export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-table-wrapper {\n .", "-table-container {\n .", "-table-thead > tr > th {\n padding: 8px 20px;\n font-weight: 400;\n color: var(--", "-color-text-secondary);\n }\n \n table > thead > tr:first-child > *:first-child {\n border-start-start-radius: 0;\n }\n \n table > thead > tr:first-child > *:last-child {\n border-start-end-radius: 0;\n }\n \n .", "-table-thead > tr > th:not(:last-child):not(.", "-table-selection-column):not(.", "-table-row-expand-icon-cell):not([colspan])::before {\n display: none !important;\n }\n \n .", "-table-tbody > tr > td {\n padding: 16px 20px;\n }\n \n .", "-table-tbody > tr {\n & > td:not(.", "-table-selection-column):first-child,\n & > td.", "-table-selection-column + td:not(\n .", "-table-selection-column) {\n font-weight: 500;\n }\n }\n }\n \n .", "-table-small {\n .", "-table-tbody > tr > td {\n padding: 8px 20px;\n }\n }\n }\n}\n"])), function (p) {
4
+ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-table-wrapper {\n .", "-table-container {\n .", "-table-thead > tr > th {\n padding: 8px 20px;\n font-weight: 400;\n color: var(--", "-color-text-secondary);\n }\n \n /* \u9ED8\u8BA4\u60C5\u51B5\u4E0B\u79FB\u9664\u8868\u5934\u5355\u5143\u683C\u7684\u5706\u89D2 */\n table > thead > tr:first-child > *:first-child {\n border-start-start-radius: 0;\n }\n \n table > thead > tr:first-child > *:last-child {\n border-start-end-radius: 0;\n }\n \n .", "-table-thead > tr > th:not(:last-child):not(.", "-table-selection-column):not(.", "-table-row-expand-icon-cell):not([colspan])::before {\n display: none !important;\n }\n \n .", "-table-tbody > tr > td {\n padding: 16px 20px;\n }\n \n .", "-table-tbody > tr {\n & > td:not(.", "-table-selection-column):first-child,\n & > td.", "-table-selection-column + td:not(\n .", "-table-selection-column) {\n font-weight: 500;\n }\n }\n }\n \n .", "-table-small {\n .", "-table-tbody > tr > td {\n padding: 8px 20px;\n }\n }\n \n /* \u65E0 footer \u65F6 bordered \u8868\u683C\u6DFB\u52A0\u6574\u4F53\u5706\u89D2 */\n .", "-table-bordered:not(:has(.", "-table-footer)) {\n\n .", "-table-container {\n border-radius: var(--", "-table-header-border-radius);\n /* \u6062\u590D\u8868\u5934\u5355\u5143\u683C\u7684\u5706\u89D2 - \u5DE6\u4E0A\u89D2\u548C\u53F3\u4E0A\u89D2 */\n table > thead > tr:first-child > *:first-child {\n border-start-start-radius: var(--", "-table-header-border-radius);\n }\n \n table > thead > tr:first-child > *:last-child {\n border-start-end-radius: var(--", "-table-header-border-radius);\n }\n\n table > tbody > tr:last-child > *:first-child {\n border-end-start-radius: var(--", "-table-header-border-radius);\n }\n \n table > tbody > tr:last-child > *:last-child {\n border-end-end-radius: var(--", "-table-header-border-radius);\n }\n }\n }\n\n/* \u6709 footer \u65F6 bordered \u8868\u683C\u6DFB\u52A0\u6574\u4F53\u5706\u89D2 */\n .", "-table-bordered:has(.", "-table-footer) {\n .", "-table-container {\n /* \u6062\u590D\u8868\u5934\u5355\u5143\u683C\u7684\u5706\u89D2 - \u5DE6\u4E0A\u89D2\u548C\u53F3\u4E0A\u89D2 */\n table > thead > tr:first-child > *:first-child {\n border-start-start-radius: var(--", "-table-header-border-radius);\n }\n \n table > thead > tr:first-child > *:last-child {\n border-start-end-radius: var(--", "-table-header-border-radius);\n }\n }\n }\n}\n"])), function (p) {
5
+ return p.antPrefix;
6
+ }, function (p) {
7
+ return p.antPrefix;
8
+ }, function (p) {
9
+ return p.antPrefix;
10
+ }, function (p) {
11
+ return p.antPrefix;
12
+ }, function (p) {
13
+ return p.antPrefix;
14
+ }, function (p) {
15
+ return p.antPrefix;
16
+ }, function (p) {
17
+ return p.antPrefix;
18
+ }, function (p) {
19
+ return p.antPrefix;
20
+ }, function (p) {
21
+ return p.antPrefix;
22
+ }, function (p) {
23
+ return p.antPrefix;
24
+ }, function (p) {
25
+ return p.antPrefix;
26
+ }, function (p) {
27
+ return p.antPrefix;
28
+ }, function (p) {
29
+ return p.antPrefix;
30
+ }, function (p) {
5
31
  return p.antPrefix;
6
32
  }, function (p) {
7
33
  return p.antPrefix;
@@ -28,8 +28,8 @@ var SparkTabs = function SparkTabs(props) {
28
28
  var _getCommonConfig = getCommonConfig(),
29
29
  sparkPrefix = _getCommonConfig.sparkPrefix;
30
30
  var _useMergedState = useMergedState(function () {
31
- var _restProps$items$;
32
- return (_restProps$items$ = restProps.items[0]) === null || _restProps$items$ === void 0 ? void 0 : _restProps$items$.key;
31
+ var _restProps$items;
32
+ return (_restProps$items = restProps.items) === null || _restProps$items === void 0 || (_restProps$items = _restProps$items[0]) === null || _restProps$items === void 0 ? void 0 : _restProps$items.key;
33
33
  }, {
34
34
  value: restProps.activeKey,
35
35
  defaultValue: restProps.defaultActiveKey
@@ -39,6 +39,11 @@ var SparkTabs = function SparkTabs(props) {
39
39
  setMergedActiveKey = _useMergedState2[1];
40
40
  var Style = useStyle();
41
41
  if (type === 'segmented') {
42
+ var handleChange = function handleChange(key) {
43
+ var _props$onChange;
44
+ setMergedActiveKey(key);
45
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, key);
46
+ };
42
47
  return /*#__PURE__*/_jsxs(_Fragment, {
43
48
  children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Tabs, _objectSpread(_objectSpread({
44
49
  animated: false
@@ -55,13 +60,9 @@ var SparkTabs = function SparkTabs(props) {
55
60
  })) || [];
56
61
  return /*#__PURE__*/_jsx(Segmented, {
57
62
  options: options,
58
- onChange: function onChange(value) {
59
- var _props$onChange;
60
- setMergedActiveKey(value);
61
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, value);
62
- },
63
+ onChange: handleChange,
63
64
  className: classNames("".concat(sparkPrefix, "-segmented-tab-bar"), _defineProperty({}, "".concat(sparkPrefix, "-segmented-tab-bar-centered"), centered)),
64
- value: tabProps.activeKey,
65
+ value: mergedActiveKey,
65
66
  size: props.size
66
67
  });
67
68
  }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -0,0 +1,25 @@
1
+ import { Button, Tooltip } from "../../../..";
2
+ import React from 'react';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { Fragment as _Fragment } from "react/jsx-runtime";
5
+ import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ var title = new Array(100).fill(1).map(function (_, index) {
7
+ return "".concat(index + 1, " \u6D4B\u8BD5maxHeight\u5C5E\u6027\u7684\u573A\u666F");
8
+ }).join('');
9
+ var App = function App() {
10
+ return /*#__PURE__*/_jsxs(_Fragment, {
11
+ children: [/*#__PURE__*/_jsx(Tooltip, {
12
+ title: title,
13
+ maxHeight: 400,
14
+ children: /*#__PURE__*/_jsx(Button, {
15
+ children: "set maxHeight"
16
+ })
17
+ }), /*#__PURE__*/_jsx(Tooltip, {
18
+ title: title,
19
+ children: /*#__PURE__*/_jsx(Button, {
20
+ children: "not set maxHeight"
21
+ })
22
+ })]
23
+ });
24
+ };
25
+ export default App;
@@ -4,9 +4,15 @@ export interface SparkTooltipProps {
4
4
  /**
5
5
  * @description 颜色模式
6
6
  * @descriptionEn color mode
7
- * @default 'light'
7
+ * @default 'dark'
8
8
  */
9
9
  mode?: 'dark' | 'light';
10
+ /**
11
+ * @description 最大高度
12
+ * @descriptionEn max height
13
+ * @default '90vh'
14
+ */
15
+ maxHeight?: number | string;
10
16
  }
11
17
  declare const SparkTooltip: import("react").ForwardRefExoticComponent<(SparkTooltipProps & TooltipProps) & import("react").RefAttributes<any>>;
12
18
  export default SparkTooltip;