@agentscope-ai/design 1.0.24-beta.1767669321337 → 1.0.24

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 (65) hide show
  1. package/lib/antd/styles/button.style.js +1 -3
  2. package/lib/components/commonComponents/Button/demo/demo1.js +0 -4
  3. package/lib/components/commonComponents/CodeBlock/index.d.ts +2 -2
  4. package/lib/components/commonComponents/CodeBlock/index.js +1 -1
  5. package/package.json +1 -1
  6. package/llms/all.llms.txt +0 -54
  7. package/llms/components/commonComponents/Alert/index.zh-CN.llms.txt +0 -32
  8. package/llms/components/commonComponents/AlertDialog/index.zh-CN.llms.txt +0 -171
  9. package/llms/components/commonComponents/Anchor/index.zh-CN.llms.txt +0 -51
  10. package/llms/components/commonComponents/Audio/index.zh-CN.llms.txt +0 -7
  11. package/llms/components/commonComponents/Avatar/index.zh-CN.llms.txt +0 -37
  12. package/llms/components/commonComponents/Breadcrumb/index.zh-CN.llms.txt +0 -117
  13. package/llms/components/commonComponents/Button/index.zh-CN.llms.txt +0 -54
  14. package/llms/components/commonComponents/Card/index.zh-CN.llms.txt +0 -61
  15. package/llms/components/commonComponents/Checkbox/index.zh-CN.llms.txt +0 -69
  16. package/llms/components/commonComponents/CodeBlock/index.zh-CN.llms.txt +0 -13
  17. package/llms/components/commonComponents/Collapse/index.zh-CN.llms.txt +0 -56
  18. package/llms/components/commonComponents/CollapsePanel/index.zh-CN.llms.txt +0 -69
  19. package/llms/components/commonComponents/DatePicker/index.zh-CN.llms.txt +0 -221
  20. package/llms/components/commonComponents/Descriptions/index.zh-CN.llms.txt +0 -37
  21. package/llms/components/commonComponents/Drawer/index.zh-CN.llms.txt +0 -62
  22. package/llms/components/commonComponents/Dropdown/index.zh-CN.llms.txt +0 -149
  23. package/llms/components/commonComponents/Empty/index.zh-CN.llms.txt +0 -41
  24. package/llms/components/commonComponents/FloatButton/index.zh-CN.llms.txt +0 -51
  25. package/llms/components/commonComponents/Form/index.zh-CN.llms.txt +0 -558
  26. package/llms/components/commonComponents/IconButton/index.zh-CN.llms.txt +0 -45
  27. package/llms/components/commonComponents/Image/index.zh-CN.llms.txt +0 -165
  28. package/llms/components/commonComponents/Input/index.zh-CN.llms.txt +0 -133
  29. package/llms/components/commonComponents/InputNumber/index.zh-CN.llms.txt +0 -51
  30. package/llms/components/commonComponents/Message/index.zh-CN.llms.txt +0 -98
  31. package/llms/components/commonComponents/Modal/index.zh-CN.llms.txt +0 -168
  32. package/llms/components/commonComponents/Notification/index.zh-CN.llms.txt +0 -94
  33. package/llms/components/commonComponents/Pagination/index.zh-CN.llms.txt +0 -45
  34. package/llms/components/commonComponents/Popconfirm/index.zh-CN.llms.txt +0 -55
  35. package/llms/components/commonComponents/Popover/index.zh-CN.llms.txt +0 -43
  36. package/llms/components/commonComponents/Progress/index.zh-CN.llms.txt +0 -50
  37. package/llms/components/commonComponents/PromptsEditor/index.zh-CN.llms.txt +0 -15
  38. package/llms/components/commonComponents/Radio/index.zh-CN.llms.txt +0 -66
  39. package/llms/components/commonComponents/RadioButton/index.zh-CN.llms.txt +0 -73
  40. package/llms/components/commonComponents/Result/index.zh-CN.llms.txt +0 -10
  41. package/llms/components/commonComponents/Select/index.zh-CN.llms.txt +0 -96
  42. package/llms/components/commonComponents/Skeleton/index.zh-CN.llms.txt +0 -59
  43. package/llms/components/commonComponents/Slider/index.zh-CN.llms.txt +0 -62
  44. package/llms/components/commonComponents/Spinner/index.zh-CN.llms.txt +0 -15
  45. package/llms/components/commonComponents/Statistic/index.zh-CN.llms.txt +0 -58
  46. package/llms/components/commonComponents/Steps/index.zh-CN.llms.txt +0 -57
  47. package/llms/components/commonComponents/Switch/index.zh-CN.llms.txt +0 -39
  48. package/llms/components/commonComponents/Table/index.zh-CN.llms.txt +0 -254
  49. package/llms/components/commonComponents/Tabs/index.zh-CN.llms.txt +0 -68
  50. package/llms/components/commonComponents/Tag/index.zh-CN.llms.txt +0 -33
  51. package/llms/components/commonComponents/TimePicker/index.zh-CN.llms.txt +0 -111
  52. package/llms/components/commonComponents/Tooltip/index.zh-CN.llms.txt +0 -45
  53. package/llms/components/commonComponents/Upload/index.zh-CN.llms.txt +0 -95
  54. package/llms/components/commonComponents/Video/index.zh-CN.llms.txt +0 -11
  55. package/llms/docs/changelog/index.zh-CN.llms.txt +0 -18
  56. package/llms/docs/guide/fromAntd.zh-CN.llms.txt +0 -156
  57. package/llms/docs/guide/fromScratch.zh-CN.llms.txt +0 -83
  58. package/llms/docs/guide/iconfont.zh-CN.llms.txt +0 -69
  59. package/llms/docs/guide/musicLofiGenerator.zh-CN.llms.txt +0 -12
  60. package/llms/docs/guide/overview.zh-CN.llms.txt +0 -51
  61. package/llms/docs/guide/sparkIcons.zh-CN.llms.txt +0 -25
  62. package/llms/docs/guide/theme.zh-CN.llms.txt +0 -61
  63. package/llms/docs/guide/tokens&variables.zh-CN.llms.txt +0 -434
  64. package/llms/docs/guide/vibe-coding.zh-CN.llms.txt +0 -29
  65. package/llms/index.llms.txt +0 -3
@@ -1,149 +0,0 @@
1
-
2
-
3
- <DemoTitle title="Dropdown" desc="向下弹出的列表。">
4
- #### API
5
-
6
- <AntdApiRef url="https://ant.design/components/dropdown-cn/#api"></AntdApiRef>
7
-
8
-
9
- ## antd API
10
-
11
- 通用属性参考:[通用属性](/docs/react/common-props)
12
-
13
- ### Dropdown
14
-
15
- | 参数 | 说明 | 类型 | 默认值 | 版本 |
16
- |--------|--------|--------|--------|--------|
17
- | arrow | 下拉框箭头是否显示 | boolean \| { pointAtCenter: boolean } | false | |
18
- | autoAdjustOverflow | 下拉框被遮挡时自动调整位置 | boolean | true | 5.2.0 |
19
- | autoFocus | 打开后自动聚焦下拉框 | boolean | false | 4.21.0 |
20
- | disabled | 菜单是否禁用 | boolean | - | |
21
- | destroyOnHidden | 关闭后是否销毁 Dropdown | boolean | false | 5.25.0 |
22
- | popupRender | 自定义弹出框内容 | (menus: ReactNode) => ReactNode | - | 5.25.0 |
23
- | getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。 | (triggerNode: HTMLElement) => HTMLElement | () => document.body | |
24
- | menu | 菜单配置项 | | - | 4.24.0 |
25
- | overlayClassName | 下拉根元素的类名称 | string | - | |
26
- | overlayStyle | 下拉根元素的样式 | CSSProperties | - | |
27
- | placement | 菜单弹出位置: | string | bottomLeft | |
28
- | trigger | 触发下拉的行为,移动端不支持 hover | Array< | [ | |
29
- | open | 菜单是否显示,小于 4.23.0 使用 | boolean | - | 4.23.0 |
30
- | onOpenChange | 菜单显示状态改变时调用,点击菜单按钮导致的消失不会触发。小于 4.23.0 使用 | (open: boolean, info: { source: 'trigger' \| 'menu' }) => void | - | info.source |
31
-
32
-
33
- ### Dropdown.Button
34
-
35
- 属性与 Dropdown 的相同。还包含以下属性:
36
-
37
- | 参数 | 说明 | 类型 | 默认值 | 版本 |
38
- |--------|--------|--------|--------|--------|
39
- | buttonsRender | 自定义左右两个按钮 | (buttons: ReactNode[]) => ReactNode[] | - | |
40
- | loading | 设置按钮载入状态,和 | boolean \| { delay: number, icon: ReactNode } | false | icon: 5.23.0 |
41
- | danger | 设置危险按钮 | boolean | - | 4.23.0 |
42
- | icon | 右侧的 icon | ReactNode | - | |
43
- | size | 按钮大小,和 | large | middle | |
44
- | type | 按钮类型,和 | primary | default | |
45
- | onClick | 点击左侧按钮的回调,和 | (event: React.MouseEvent) => void | - | |
46
-
47
-
48
- ## 注意
49
-
50
- 请确保 `Dropdown` 的子元素能接受 `onMouseEnter`、`onMouseLeave`、`onFocus`、`onClick` 事件。
51
- ## antd API
52
-
53
- ### Menu
54
-
55
- | 参数 | 说明 | 类型 | 默认值 | 版本 |
56
- |--------|--------|--------|--------|--------|
57
- | defaultOpenKeys | 初始展开的 SubMenu 菜单项 key 数组 | string[] | - | |
58
- | defaultSelectedKeys | 初始选中的菜单项 key 数组 | string[] | - | |
59
- | expandIcon | 自定义展开图标 | ReactNode \| | - | 4.9.0 |
60
- | forceSubMenuRender | 在子菜单展示之前就渲染进 DOM | boolean | false | |
61
- | inlineCollapsed | inline 时菜单是否收起状态 | boolean | - | |
62
- | inlineIndent | inline 模式的菜单缩进宽度 | number | 24 | |
63
- | items | 菜单内容 | | - | 4.20.0 |
64
- | mode | 菜单类型,现在支持垂直、水平、和内嵌模式三种 | vertical | vertical | |
65
- | multiple | 是否允许多选 | boolean | false | |
66
- | openKeys | 当前展开的 SubMenu 菜单项 key 数组 | string[] | - | |
67
- | overflowedIndicator | 用于自定义 Menu 水平空间不足时的省略收缩的图标 | ReactNode | | |
68
- | selectable | 是否允许选中 | boolean | true | |
69
- | selectedKeys | 当前选中的菜单项 key 数组 | string[] | - | |
70
- | style | 根节点样式 | CSSProperties | - | |
71
- | subMenuCloseDelay | 用户鼠标离开子菜单后关闭延时,单位:秒 | number | 0.1 | |
72
- | subMenuOpenDelay | 用户鼠标进入子菜单后开启延时,单位:秒 | number | 0 | |
73
- | theme | 主题颜色 | light | light | |
74
- | triggerSubMenuAction | SubMenu 展开/关闭的触发行为 | hover | hover | |
75
- | onClick | 点击 MenuItem 调用此函数 | function({ item, key, keyPath, domEvent }) | - | |
76
- | onDeselect | 取消选中时调用,仅在 multiple 生效 | function({ item, key, keyPath, selectedKeys, domEvent }) | - | |
77
- | onOpenChange | SubMenu 展开/关闭的回调 | function(openKeys: string[]) | - | |
78
- | onSelect | 被选中时调用 | function({ item, key, keyPath, selectedKeys, domEvent }) | -   | |
79
-
80
-
81
- 更多属性查看 [rc-menu](https://github.com/react-component/menu#api)
82
-
83
- ### ItemType
84
-
85
- type ItemType = [MenuItemType](#menuitemtype) | [SubMenuType](#submenutype) | [MenuItemGroupType](#menuitemgrouptype) | [MenuDividerType](#menudividertype);
86
-
87
- #### MenuItemType
88
-
89
- | 参数 | 说明 | 类型 | 默认值 | 版本 |
90
- |--------|--------|--------|--------|--------|
91
- | danger | 展示错误状态样式 | boolean | false | |
92
- | disabled | 是否禁用 | boolean | false | |
93
- | extra | 额外节点 | ReactNode | - | 5.21.0 |
94
- | icon | 菜单图标 | ReactNode | - | |
95
- | key | item 的唯一标志 | string | - | |
96
- | label | 菜单项标题 | ReactNode | - | |
97
- | title | 设置收缩时展示的悬浮标题 | string | - | |
98
-
99
-
100
- #### SubMenuType
101
-
102
- | 参数 | 说明 | 类型 | 默认值 | 版本 |
103
- |--------|--------|--------|--------|--------|
104
- | children | 子菜单的菜单项 | | - | |
105
- | disabled | 是否禁用 | boolean | false | |
106
- | icon | 菜单图标 | ReactNode | - | |
107
- | key | 唯一标志 | string | - | |
108
- | label | 菜单项标题 | ReactNode | - | |
109
- | popupClassName | 子菜单样式, | string | - | |
110
- | popupOffset | 子菜单偏移量, | [number, number] | - | |
111
- | onTitleClick | 点击子菜单标题 | function({ key, domEvent }) | - | |
112
- | theme | 设置子菜单的主题,默认从 Menu 上继承 | light | - | |
113
-
114
-
115
- #### MenuItemGroupType
116
-
117
- 定义类型为 `group` 时,会作为分组处理:
118
-
119
-
120
- ```ts
121
- const groupItem = {
122
- type: 'group', // Must have
123
- label: 'My Group',
124
- children: [],
125
- };
126
- ```
127
-
128
-
129
- | 参数 | 说明 | 类型 | 默认值 | 版本 |
130
- |--------|--------|--------|--------|--------|
131
- | children | 分组的菜单项 | | - | |
132
- | label | 分组标题 | ReactNode | - | |
133
-
134
-
135
- #### MenuDividerType
136
-
137
- 菜单项分割线,只用在弹出菜单内,需要定义类型为 `divider`:
138
-
139
-
140
- ```ts
141
- const dividerItem = {
142
- type: 'divider', // Must have
143
- };
144
- ```
145
-
146
-
147
- | 参数 | 说明 | 类型 | 默认值 | 版本 |
148
- |--------|--------|--------|--------|--------|
149
- | dashed | 是否虚线 | boolean | false | |
@@ -1,41 +0,0 @@
1
-
2
-
3
- <DemoTitle title="Empty" desc="用于空状态的占位图形展示。">
4
- ## API
5
-
6
- | 属性名 | 描述 | 类型 | 默认值 |
7
- |--------|--------|--------|--------|
8
- | type | 空状态类型 | \| 'noData'
9
- \| 'networkError'
10
- \| '404'
11
- \| 'arrears'
12
- \| 'desktopOnly'
13
- \| 'noAudio'
14
- \| 'noImage'
15
- \| 'noVideo'
16
- \| 'noAccess'
17
- \| 'error'
18
- \| 'noModel'
19
- \| 'noApp'
20
- \| 'success'
21
- \| 'failed'
22
- \| 'inProgress'
23
- \| 'stayTuned' | 'noData' |
24
- | texture | 是否显示纹理 | boolean | true |
25
- | image | 图片地址 | string | 默认是no data的图片 |
26
- | imageStyle | 图片样式 | React.CSSProperties | |
27
- | title | 标题内容 | React.ReactNode | |
28
- | description | 自定义描述内容 | React.ReactNode | |
29
- | onOk | ok按钮的点击事件 | (e: React.MouseEvent) => void | |
30
- | okText | ok按钮的文本 | React.ReactNode | |
31
- | okType | ok按钮的类型 | SparkButtonProps['type'] | 'primary' |
32
- | okButtonProps | ok按钮的props | SparkButtonProps | |
33
- | children | 自定义空状态的内容 | React.ReactNode | |
34
- | className | 自定义空状态的类名 | string | |
35
- | style | 自定义空状态的样式 | React.CSSProperties | |
36
- | size | 自定义空状态的大小 | React.CSSProperties['width'] | |
37
- | autoFit | 是否自适应容器宽度,当容器宽度小于 size 时自动缩放 | boolean | false |
38
-
39
-
40
- <AntdApiRef url="https://ant.design/components/empty-cn/#api"></AntdApiRef>
41
-
@@ -1,51 +0,0 @@
1
-
2
-
3
- <DemoTitle title="FloatButton" desc="用于网站上的全局功能;无论浏览到何处都可以看见的按钮。">
4
- #### API
5
-
6
- <AntdApiRef url="https://ant.design/components/float-button-cn/#api"></AntdApiRef>
7
-
8
-
9
- ## antd API
10
-
11
- 通用属性参考:[通用属性](/docs/react/common-props)
12
-
13
- 自 `antd@5.0.0` 版本开始提供该组件。
14
-
15
- ### 共同的 API
16
-
17
- | 参数 | 说明 | 类型 | 默认值 | 版本 |
18
- |--------|--------|--------|--------|--------|
19
- | icon | 自定义图标 | ReactNode | - | |
20
- | description | 文字及其它内容 | ReactNode | - | |
21
- | tooltip | 气泡卡片的内容 | ReactNode \| | - | TooltipProps: 5.25.0 |
22
- | type | 设置按钮类型 | default | default | |
23
- | shape | 设置按钮形状 | circle | circle | |
24
- | onClick | 点击按钮时的回调 | (event) => void | - | |
25
- | href | 点击跳转的地址,指定此属性 button 的行为和 a 链接一致 | string | - | |
26
- | target | 相当于 a 标签的 target 属性,href 存在时生效 | string | - | |
27
- | htmlType | 设置 | submit | button | 5.21.0 |
28
- | badge | 带徽标数字的悬浮按钮(不支持 | | - | 5.4.0 |
29
-
30
-
31
- ### FloatButton.Group
32
-
33
- | 参数 | 说明 | 类型 | 默认值 | 版本 |
34
- |--------|--------|--------|--------|--------|
35
- | shape | 设置包含的 FloatButton 按钮形状 | circle | circle | |
36
- | trigger | 触发方式(有触发方式为菜单模式) | click | - | |
37
- | open | 受控展开,需配合 trigger 一起使用 | boolean | - | |
38
- | closeIcon | 自定义关闭按钮 | React.ReactNode | | |
39
- | placement | 自定义菜单弹出位置 | top | top | 5.21.0 |
40
- | onOpenChange | 展开收起时的回调,需配合 trigger 一起使用 | (open: boolean) => void | - | |
41
- | onClick | 点击按钮时的回调(仅在菜单模式中有效) | (event) => void | - | 5.3.0 |
42
-
43
-
44
- ### FloatButton.BackTop
45
-
46
- | 参数 | 说明 | 类型 | 默认值 | 版本 |
47
- |--------|--------|--------|--------|--------|
48
- | duration | 回到顶部所需时间(ms) | number | 450 | |
49
- | target | 设置需要监听其滚动事件的元素 | () => HTMLElement | () => window | |
50
- | visibilityHeight | 滚动高度达到此参数值才出现 BackTop | number | 400 | |
51
- | onClick | 点击按钮的回调函数 | () => void | - | |