@agentscope-ai/design 1.0.9 → 1.0.10
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.
- package/lib/antd/styles/alert.style.js +1 -1
- package/lib/antd/styles/breadcrumb.style.js +1 -1
- package/lib/antd/styles/button.style.js +1 -1
- package/lib/antd/styles/dropdown.style.js +1 -1
- package/lib/antd/styles/floatButton.style.js +1 -1
- package/lib/antd/styles/index.style.js +1 -1
- package/lib/antd/styles/inputNumber.style.js +1 -1
- package/lib/antd/styles/message.style.js +1 -1
- package/lib/antd/styles/notification.style.js +1 -1
- package/lib/antd/styles/popover.style.js +1 -1
- package/lib/antd/styles/radio.style.js +1 -1
- package/lib/antd/styles/segment.style.js +1 -1
- package/lib/antd/styles/select.style.js +1 -1
- package/lib/antd/styles/slider.style.js +1 -1
- package/lib/antd/styles/table.style.js +1 -1
- package/lib/antd/styles/tooltip.style.js +1 -1
- package/lib/antd/themes/bailianTheme.json +1 -1
- package/lib/antd/themes/generateThemeByToken.js +7 -1
- package/lib/components/commonComponents/AlertDialog/index.style.js +1 -1
- package/lib/components/commonComponents/Anchor/index.style.js +1 -1
- package/lib/components/commonComponents/Avatar/index.style.js +1 -1
- package/lib/components/commonComponents/Breadcrumb/index.style.js +1 -1
- package/lib/components/commonComponents/Button/index.d.ts +1 -1
- package/lib/components/commonComponents/Button/index.js +7 -7
- package/lib/components/commonComponents/Card/index.style.js +1 -1
- package/lib/components/commonComponents/Checkbox/index.style.js +1 -1
- package/lib/components/commonComponents/CodeBlock/index.js +2 -1
- package/lib/components/commonComponents/CodeBlock/index.style.js +1 -1
- package/lib/components/commonComponents/Collapse/index.style.js +1 -1
- package/lib/components/commonComponents/CollapsePanel/index.style.js +1 -1
- package/lib/components/commonComponents/ConfigProvider/index.js +10 -7
- package/lib/components/commonComponents/DatePicker/index.style.js +1 -1
- package/lib/components/commonComponents/Descriptions/index.style.js +1 -1
- package/lib/components/commonComponents/Drawer/index.style.js +1 -1
- package/lib/components/commonComponents/Dropdown/index.style.js +1 -1
- package/lib/components/commonComponents/EllipsisTip/index.style.js +1 -1
- package/lib/components/commonComponents/Empty/index.style.js +1 -1
- package/lib/components/commonComponents/FileIcon/index.style.js +1 -1
- package/lib/components/commonComponents/Form/index.style.js +1 -1
- package/lib/components/commonComponents/HelpIcon/index.style.js +1 -1
- package/lib/components/commonComponents/IconButton/index.style.js +1 -1
- package/lib/components/commonComponents/IconFont/index.style.js +1 -1
- package/lib/components/commonComponents/Image/index.style.js +1 -1
- package/lib/components/commonComponents/Input/index.style.js +1 -1
- package/lib/components/commonComponents/Modal/index.js +0 -1
- package/lib/components/commonComponents/Modal/index.style.js +1 -1
- package/lib/components/commonComponents/Pagination/index.js +75 -20
- package/lib/components/commonComponents/Pagination/index.style.js +1 -1
- package/lib/components/commonComponents/PromptsEditor/demo/basic.js +5 -4
- package/lib/components/commonComponents/PromptsEditor/index.d.ts +8 -2
- package/lib/components/commonComponents/PromptsEditor/index.js +16 -10
- package/lib/components/commonComponents/RadioButton/index.style.js +1 -1
- package/lib/components/commonComponents/Result/index.style.js +1 -1
- package/lib/components/commonComponents/SlateEditor/elements/index.style.js +1 -1
- package/lib/components/commonComponents/SlateEditor/index.style.js +1 -1
- package/lib/components/commonComponents/Slider/Input/index.js +6 -4
- package/lib/components/commonComponents/Slider/Input/index.style.js +2 -2
- package/lib/components/commonComponents/Slider/index.style.js +1 -1
- package/lib/components/commonComponents/SliderSelector/index.style.js +1 -1
- package/lib/components/commonComponents/Spinner/index.style.js +1 -1
- package/lib/components/commonComponents/Statistic/index.style.js +1 -1
- package/lib/components/commonComponents/Steps/index.style.js +1 -1
- package/lib/components/commonComponents/Switch/index.js +3 -3
- package/lib/components/commonComponents/Switch/index.style.js +1 -1
- package/lib/components/commonComponents/Table/demo/demo1.js +1 -9
- package/lib/components/commonComponents/Table/demo/demo2.js +1 -9
- package/lib/components/commonComponents/Table/demo/demo3.js +1 -9
- package/lib/components/commonComponents/Table/demo/demo4.js +1 -9
- package/lib/components/commonComponents/Table/index.d.ts +1 -1
- package/lib/components/commonComponents/Table/index.js +1 -1
- package/lib/components/commonComponents/Table/index.style.js +18 -2
- package/lib/components/commonComponents/Tabs/index.js +3 -1
- package/lib/components/commonComponents/Tabs/index.style.js +1 -1
- package/lib/components/commonComponents/Tag/index.style.js +1 -1
- package/lib/components/commonComponents/TimePicker/index.style.js +1 -1
- package/lib/components/commonComponents/Tooltip/index.style.js +1 -1
- package/lib/components/commonComponents/Upload/index.style.js +1 -1
- package/lib/components/commonComponents/Video/Control.d.ts +19 -0
- package/lib/components/commonComponents/Video/Control.js +104 -0
- package/lib/components/commonComponents/Video/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/Video/demo/demo1.js +12 -0
- package/lib/components/commonComponents/Video/index.d.ts +18 -0
- package/lib/components/commonComponents/Video/index.js +222 -0
- package/lib/components/commonComponents/Video/index.style.d.ts +1 -0
- package/lib/components/commonComponents/Video/index.style.js +40 -0
- package/lib/i18n/strings/en-US.json +3 -1
- package/lib/i18n/strings/zh-CN.json +3 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +1 -0
- package/lib/libs/createStyle/index.d.ts +7 -1
- package/lib/libs/createStyle/index.js +24 -72
- package/lib/libs/generateCssVars/index.js +1 -1
- package/package.json +1 -1
- package/lib/libs/newCreateStyle/index.d.ts +0 -7
- package/lib/libs/newCreateStyle/index.js +0 -26
- package/llms/all.llms.txt +0 -4235
- package/llms/components/commonComponents/Alert/index.zh-CN.llms.txt +0 -74
- package/llms/components/commonComponents/Anchor/index.zh-CN.llms.txt +0 -71
- package/llms/components/commonComponents/Avatar/index.zh-CN.llms.txt +0 -61
- package/llms/components/commonComponents/Breadcrumb/index.zh-CN.llms.txt +0 -89
- package/llms/components/commonComponents/Button/index.zh-CN.llms.txt +0 -99
- package/llms/components/commonComponents/Card/index.zh-CN.llms.txt +0 -79
- package/llms/components/commonComponents/Checkbox/index.zh-CN.llms.txt +0 -88
- package/llms/components/commonComponents/CodeBlock/index.zh-CN.llms.txt +0 -34
- package/llms/components/commonComponents/Collapse/index.zh-CN.llms.txt +0 -76
- package/llms/components/commonComponents/CollapsePanel/index.zh-CN.llms.txt +0 -75
- package/llms/components/commonComponents/DatePicker/index.zh-CN.llms.txt +0 -227
- package/llms/components/commonComponents/Descriptions/index.zh-CN.llms.txt +0 -60
- package/llms/components/commonComponents/Drawer/index.zh-CN.llms.txt +0 -87
- package/llms/components/commonComponents/Dropdown/index.zh-CN.llms.txt +0 -87
- package/llms/components/commonComponents/Empty/index.zh-CN.llms.txt +0 -100
- package/llms/components/commonComponents/FloatButton/index.zh-CN.llms.txt +0 -70
- package/llms/components/commonComponents/Form/index.zh-CN.llms.txt +0 -383
- package/llms/components/commonComponents/IconButton/index.zh-CN.llms.txt +0 -68
- package/llms/components/commonComponents/Image/index.zh-CN.llms.txt +0 -118
- package/llms/components/commonComponents/Input/index.zh-CN.llms.txt +0 -168
- package/llms/components/commonComponents/InputNumber/index.zh-CN.llms.txt +0 -66
- package/llms/components/commonComponents/Message/index.zh-CN.llms.txt +0 -114
- package/llms/components/commonComponents/Modal/index.zh-CN.llms.txt +0 -154
- package/llms/components/commonComponents/Notification/index.zh-CN.llms.txt +0 -118
- package/llms/components/commonComponents/Pagination/index.zh-CN.llms.txt +0 -62
- package/llms/components/commonComponents/Popover/index.zh-CN.llms.txt +0 -56
- package/llms/components/commonComponents/Progress/index.zh-CN.llms.txt +0 -64
- package/llms/components/commonComponents/Radio/index.zh-CN.llms.txt +0 -75
- package/llms/components/commonComponents/RadioButton/index.zh-CN.llms.txt +0 -94
- package/llms/components/commonComponents/Result/index.zh-CN.llms.txt +0 -63
- package/llms/components/commonComponents/Select/index.zh-CN.llms.txt +0 -120
- package/llms/components/commonComponents/Skeleton/index.zh-CN.llms.txt +0 -71
- package/llms/components/commonComponents/Slider/index.zh-CN.llms.txt +0 -83
- package/llms/components/commonComponents/Spinner/index.zh-CN.llms.txt +0 -38
- package/llms/components/commonComponents/Statistic/index.zh-CN.llms.txt +0 -77
- package/llms/components/commonComponents/Steps/index.zh-CN.llms.txt +0 -82
- package/llms/components/commonComponents/Switch/index.zh-CN.llms.txt +0 -58
- package/llms/components/commonComponents/Table/index.zh-CN.llms.txt +0 -228
- package/llms/components/commonComponents/Tabs/index.zh-CN.llms.txt +0 -95
- package/llms/components/commonComponents/Tag/index.zh-CN.llms.txt +0 -57
- package/llms/components/commonComponents/TimePicker/index.zh-CN.llms.txt +0 -104
- package/llms/components/commonComponents/Tooltip/index.zh-CN.llms.txt +0 -63
- package/llms/components/commonComponents/Upload/index.zh-CN.llms.txt +0 -105
- package/llms/index.llms.txt +0 -45
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<DemoTitle title="Alert" desc="向用户突出显示的重要提示信息。"></DemoTitle>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
示例
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<Install>Alert</Install>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
#### 全局提示示例
|
|
18
|
-
|
|
19
|
-
以下是全局提示组件的示例和变体
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
不同状态
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
仅文字描述
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
支持关闭
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
提供自定义操作
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
是否用于顶部公告
|
|
45
|
-
|
|
46
|
-
#### API
|
|
47
|
-
|
|
48
|
-
本组件完全兼容 antd 同名组件,详情可访问 [antd alert](https://ant.design/components/alert-cn) 查看更多 API
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
## antd API
|
|
52
|
-
|
|
53
|
-
通用属性参考:[通用属性](/docs/react/common-props)
|
|
54
|
-
|
|
55
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
56
|
-
|--------|--------|--------|--------|--------|
|
|
57
|
-
| action | 自定义操作项 | ReactNode | - | 4.9.0 |
|
|
58
|
-
| afterClose | 关闭动画结束后触发的回调函数 | () => void | - | |
|
|
59
|
-
| banner | 是否用作顶部公告 | boolean | false | |
|
|
60
|
-
| closable | 可关闭配置,>=5.15.0: 支持 | boolean | ({ closeIcon?: React.ReactNode } & React.AriaAttributes) | false | |
|
|
61
|
-
| description | 警告提示的辅助性文字介绍 | ReactNode | - | |
|
|
62
|
-
| icon | 自定义图标, | ReactNode | - | |
|
|
63
|
-
| message | 警告提示内容 | ReactNode | - | |
|
|
64
|
-
| showIcon | 是否显示辅助图标 | boolean | false, | |
|
|
65
|
-
| type | 指定警告提示的样式,有四种选择 | string | info | |
|
|
66
|
-
| onClose | 关闭时触发的回调函数 | (e: MouseEvent) => void | - | |
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
### Alert.ErrorBoundary
|
|
70
|
-
|
|
71
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
72
|
-
|--------|--------|--------|--------|--------|
|
|
73
|
-
| description | 自定义错误内容,如果未指定会展示报错堆栈 | ReactNode | {{ error stack }} | |
|
|
74
|
-
| message | 自定义错误标题,如果未指定会展示原生报错信息 | ReactNode | {{ error }} | |
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<DemoTitle title="Anchor" desc="用于跳转到页面指定位置。"></DemoTitle>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
示例
|
|
10
|
-
|
|
11
|
-
<Install>Anchor</Install>
|
|
12
|
-
|
|
13
|
-
#### 锚点示例
|
|
14
|
-
|
|
15
|
-
以下是此组件的示例和变体
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
水平方向锚点
|
|
22
|
-
|
|
23
|
-
#### API
|
|
24
|
-
|
|
25
|
-
ApiParser解析结果为空
|
|
26
|
-
本组件完全兼容 antd 同名组件,详情可访问 [antd anchor](https://ant.design/components/anchor-cn) 查看更多 API
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
## antd API
|
|
30
|
-
|
|
31
|
-
通用属性参考:[通用属性](/docs/react/common-props)
|
|
32
|
-
|
|
33
|
-
### Anchor Props
|
|
34
|
-
|
|
35
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
36
|
-
|--------|--------|--------|--------|--------|
|
|
37
|
-
| affix | 固定模式 | boolean | Omit<AffixProps, 'offsetTop' | 'target' | 'children'> | true | object: 5.19.0 |
|
|
38
|
-
| bounds | 锚点区域边界 | number | 5 | |
|
|
39
|
-
| getContainer | 指定滚动的容器 | () => HTMLElement | () => window | |
|
|
40
|
-
| getCurrentAnchor | 自定义高亮的锚点 | (activeLink: string) => string | - | |
|
|
41
|
-
| offsetTop | 距离窗口顶部达到指定偏移量后触发 | number | | |
|
|
42
|
-
| showInkInFixed | affix={false} | boolean | false | |
|
|
43
|
-
| targetOffset | 锚点滚动偏移量,默认与 offsetTop 相同, | number | - | |
|
|
44
|
-
| onChange | 监听锚点链接改变 | (currentActiveLink: string) => void | - | |
|
|
45
|
-
| onClick | click | (e: MouseEvent, link: object) => void | - | |
|
|
46
|
-
| items | 数据化配置选项内容,支持通过 children 嵌套 | { key, href, title, target, children }[] | - | 5.1.0 |
|
|
47
|
-
| direction | 设置导航方向 | vertical | vertical | 5.2.0 |
|
|
48
|
-
| replace | 替换浏览器历史记录中项目的 href 而不是推送它 | boolean | false | 5.7.0 |
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
### AnchorItem
|
|
52
|
-
|
|
53
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
54
|
-
|--------|--------|--------|--------|--------|
|
|
55
|
-
| key | 唯一标志 | string | number | - | |
|
|
56
|
-
| href | 锚点链接 | string | - | |
|
|
57
|
-
| target | 该属性指定在何处显示链接的资源 | string | - | |
|
|
58
|
-
| title | 文字内容 | ReactNode | - | |
|
|
59
|
-
| children | 嵌套的 Anchor Link, | | - | |
|
|
60
|
-
| replace | 替换浏览器历史记录中的项目 href 而不是推送它 | boolean | false | 5.7.0 |
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
### Link Props
|
|
64
|
-
|
|
65
|
-
建议使用 items 形式。
|
|
66
|
-
|
|
67
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
68
|
-
|--------|--------|--------|--------|--------|
|
|
69
|
-
| href | 锚点链接 | string | - | |
|
|
70
|
-
| target | 该属性指定在何处显示链接的资源 | string | - | |
|
|
71
|
-
| title | 文字内容 | ReactNode | - | |
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<DemoTitle title="Avatar" desc="用来代表用户或事物,支持图片、图标或字符展示。"></DemoTitle>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
示例
|
|
10
|
-
|
|
11
|
-
<Install>Avatar</Install>
|
|
12
|
-
|
|
13
|
-
#### 头像示例
|
|
14
|
-
|
|
15
|
-
以下是此头像组件的示例和变体
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
文字头像
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
自定义图片
|
|
27
|
-
|
|
28
|
-
#### API
|
|
29
|
-
|
|
30
|
-
本组件完全兼容 antd 同名组件,详情可访问 [antd avatar](https://ant.design/components/avatar-cn) 查看更多 API
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## antd API
|
|
34
|
-
|
|
35
|
-
通用属性参考:[通用属性](/docs/react/common-props)
|
|
36
|
-
|
|
37
|
-
### Avatar
|
|
38
|
-
|
|
39
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
40
|
-
|--------|--------|--------|--------|--------|
|
|
41
|
-
| alt | 图像无法显示时的替代文本 | string | - | |
|
|
42
|
-
| gap | 字符类型距离左右两侧边界单位像素 | number | 4 | 4.3.0 |
|
|
43
|
-
| icon | 设置头像的自定义图标 | ReactNode | - | |
|
|
44
|
-
| shape | 指定头像的形状 | circle | circle | |
|
|
45
|
-
| size | 设置头像的大小 | number | | default | 4.7.0 |
|
|
46
|
-
| src | 图片类头像的资源地址或者图片元素 | string | ReactNode | - | ReactNode: 4.8.0 |
|
|
47
|
-
| srcSet | 设置图片类头像响应式资源地址 | string | - | |
|
|
48
|
-
| draggable | 图片是否允许拖动 | boolean | | true | |
|
|
49
|
-
| crossOrigin | CORS 属性设置 | 'anonymous' | - | 4.17.0 |
|
|
50
|
-
| onError | 图片加载失败的事件,返回 false 会关闭组件默认的 fallback 行为 | () => boolean | - | |
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
Tip:你可以设置 `icon` 或 `children` 作为图片加载失败的默认 fallback 行为,优先级为 `icon` > `children`
|
|
54
|
-
|
|
55
|
-
### Avatar.Group <Badge>4.5.0+</Badge>
|
|
56
|
-
|
|
57
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
58
|
-
|--------|--------|--------|--------|--------|
|
|
59
|
-
| max | 设置最多显示相关配置, | { count?: number; style?: CSSProperties; popover?: PopoverProps } | - | 5.18.0 |
|
|
60
|
-
| size | 设置头像的大小 | number | | default | 4.8.0 |
|
|
61
|
-
| shape | 设置头像的形状 | circle | circle | 5.8.0 |
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<DemoTitle title="Breadcrumb" desc="显示当前页面在系统层级结构中的位置,并能向上返回。"></DemoTitle>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
示例
|
|
10
|
-
|
|
11
|
-
<Install>Breadcrumb</Install>
|
|
12
|
-
|
|
13
|
-
#### 面包屑示例
|
|
14
|
-
|
|
15
|
-
以下是此组件的示例和变体
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
带头像和下拉菜单
|
|
22
|
-
|
|
23
|
-
#### API
|
|
24
|
-
|
|
25
|
-
#### BreadcrumbItems 配置
|
|
26
|
-
|
|
27
|
-
| <div><span class="lang-en">Attribute</span><span class="lang-cn">属性名</span></div> | <div><span class="lang-en">Description</span><span class="lang-cn">描述</span></div> | <div><span class="lang-en">Type</span><span class="lang-cn">类型</span></div> | <div><span class="lang-en">Default</span><span class="lang-cn">默认值</span></div> |
|
|
28
|
-
|--------|--------|--------|--------|
|
|
29
|
-
| title | <div><span class="lang-en">Breadcrumb Item Title</span><span class="lang-cn">面包屑项标题</span></div> | string | React.ReactNode | <div><span class="lang-en">(Required)</span><span class="lang-cn">(必填)</span></div> |
|
|
30
|
-
| IconUrl | <div><span class="lang-en">Icon URL</span><span class="lang-cn">图标地址</span></div> | string | '' |
|
|
31
|
-
| dropdown | <div><span class="lang-en">Dropdown Menu Configuration</span><span class="lang-cn">下拉菜单配置</span></div> | {
|
|
32
|
-
items: Array<{
|
|
33
|
-
key: string;
|
|
34
|
-
label: React.ReactNode;
|
|
35
|
-
}>;
|
|
36
|
-
} | |
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
本组件完全兼容 antd 同名组件,详情可访问[antd breadcrumb](https://ant.design/components/breadcrumb-cn/)查看更多 API。
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
## antd API
|
|
43
|
-
|
|
44
|
-
通用属性参考:[通用属性](/docs/react/common-props)
|
|
45
|
-
|
|
46
|
-
### Breadcrumb
|
|
47
|
-
|
|
48
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
49
|
-
|--------|--------|--------|--------|--------|
|
|
50
|
-
| itemRender | 自定义链接函数,和 react-router 配置使用 | (route, params, routes, paths) => ReactNode | - | |
|
|
51
|
-
| params | 路由的参数 | object | - | |
|
|
52
|
-
| separator | 分隔符自定义 | ReactNode | / | |
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
### ItemType
|
|
56
|
-
|
|
57
|
-
type ItemType = Omit<[RouteItemType](#routeitemtype), 'title' | 'path'> | [SeparatorType](#separatortype)
|
|
58
|
-
|
|
59
|
-
### RouteItemType
|
|
60
|
-
|
|
61
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
62
|
-
|--------|--------|--------|--------|--------|
|
|
63
|
-
| className | 自定义类名 | string | - | |
|
|
64
|
-
| dropdownProps | 弹出下拉菜单的自定义配置 | | - | |
|
|
65
|
-
| href | 链接的目的地,不能和 | string | - | |
|
|
66
|
-
| path | 拼接路径,每一层都会拼接前一个 | string | - | |
|
|
67
|
-
| menu | 菜单配置项 | | - | 4.24.0 |
|
|
68
|
-
| onClick | 单击事件 | (e:MouseEvent) => void | - | |
|
|
69
|
-
| title | 名称 | ReactNode | - | 5.3.0 |
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
### SeparatorType
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
79
|
-
|--------|--------|--------|--------|--------|
|
|
80
|
-
| type | 标记为分隔符 | separator | | 5.3.0 |
|
|
81
|
-
| separator | 要显示的分隔符 | ReactNode | / | 5.3.0 |
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
### 和 browserHistory 配合
|
|
85
|
-
|
|
86
|
-
和 react-router 一起使用时,默认生成的 url 路径是带有 `#` 的,如果和 browserHistory 一起使用的话,你可以使用 `itemRender` 属性定义面包屑链接。
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<DemoTitle title="Button" desc="按钮用于开始一个即时操作。"></DemoTitle>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
示例
|
|
10
|
-
|
|
11
|
-
<Install>Button</Install>
|
|
12
|
-
|
|
13
|
-
#### 按钮示例
|
|
14
|
-
|
|
15
|
-
以下是此按钮组件的示例和变体
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
主按钮
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
次要按钮
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
文字按钮
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
紧凑型文字按钮
|
|
37
|
-
|
|
38
|
-
#### 图标按钮
|
|
39
|
-
|
|
40
|
-
推荐方式:直接使用 antd 提供的 icon 属性,从@agentscope-ai/icons 中获取对应的 React 组件,或是您的自定义 JSX。
|
|
41
|
-
<br/>
|
|
42
|
-
便捷方式:我们的按钮组件接受 iconType 属性,如果在 ConfigProvider 中设置了 iconfont 属性,您可以在 iconType 中直接传入图标的 Symbol
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
图标前置按钮
|
|
48
|
-
|
|
49
|
-
#### API
|
|
50
|
-
|
|
51
|
-
| <div><span class="lang-en">Attribute</span><span class="lang-cn">属性名</span></div> | <div><span class="lang-en">Description</span><span class="lang-cn">描述</span></div> | <div><span class="lang-en">Type</span><span class="lang-cn">类型</span></div> | <div><span class="lang-en">Default</span><span class="lang-cn">默认值</span></div> |
|
|
52
|
-
|--------|--------|--------|--------|
|
|
53
|
-
| size | <div><span class="lang-en">size of the button</span><span class="lang-cn">按钮大小</span></div> | 'small' | 'middle' | 'large' | 'middle' |
|
|
54
|
-
| type | <div><span class="lang-en">type of the button</span><span class="lang-cn">类型</span></div> | | 'primary'
|
|
55
|
-
| 'dashed'
|
|
56
|
-
| 'link'
|
|
57
|
-
| 'text'
|
|
58
|
-
| 'default'
|
|
59
|
-
| 'primaryLess'
|
|
60
|
-
| 'textCompact' | 'deafult' |
|
|
61
|
-
| tooltipContent | <div><span class="lang-en">content of the tooltip</span><span class="lang-cn">hover上去Popover的内容</span></div> | string | ReactNode | |
|
|
62
|
-
| iconType | <div><span class="lang-en">key of the iconfont, depends on the iconfont of the ConfigProvider, such as bl-icon-add</span><span class="lang-cn">百炼图标iconfont的key,依赖ConfigProvider传入的iconfont,例如bl-icon-add</span></div> | string | |
|
|
63
|
-
| iconSize | <div><span class="lang-en">size of the icon</span><span class="lang-cn">图标大小</span></div> | SparkIconFontProps['size'] | |
|
|
64
|
-
|
|
65
|
-
本组件完全兼容 antd 同名组件,详情可访问 [antd button](https://ant.design/components/button-cn) 查看更多 API
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
## antd API
|
|
69
|
-
|
|
70
|
-
通用属性参考:[通用属性](/docs/react/common-props)
|
|
71
|
-
|
|
72
|
-
通过设置 Button 的属性来产生不同的按钮样式,推荐顺序为:`type` -> `shape` -> `size` -> `loading` -> `disabled`。
|
|
73
|
-
|
|
74
|
-
按钮的属性说明如下:
|
|
75
|
-
|
|
76
|
-
| 属性 | 说明 | 类型 | 默认值 | 版本 |
|
|
77
|
-
|--------|--------|--------|--------|--------|
|
|
78
|
-
| autoInsertSpace | 我们默认提供两个汉字之间的空格,可以设置 | boolean | true | 5.17.0 |
|
|
79
|
-
| block | 将按钮宽度调整为其父宽度的选项 | boolean | false | |
|
|
80
|
-
| classNames | 语义化结构 class | | - | 5.4.0 |
|
|
81
|
-
| color | 设置按钮的颜色 | default | - | default |
|
|
82
|
-
| danger | 语法糖,设置危险按钮。当设置 | boolean | false | |
|
|
83
|
-
| disabled | 设置按钮失效状态 | boolean | false | |
|
|
84
|
-
| ghost | 幽灵属性,使按钮背景透明 | boolean | false | |
|
|
85
|
-
| href | 点击跳转的地址,指定此属性 button 的行为和 a 链接一致 | string | - | |
|
|
86
|
-
| htmlType | 设置 | submit | button | |
|
|
87
|
-
| iconPosition | 设置按钮图标组件的位置 | start | start | 5.17.0 |
|
|
88
|
-
| loading | 设置按钮载入状态 | boolean | { delay: number, icon: ReactNode } | false | icon: 5.23.0 |
|
|
89
|
-
| styles | 语义化结构 style | | - | 5.4.0 |
|
|
90
|
-
| target | 相当于 a 链接的 target 属性,href 存在时生效 | string | - | |
|
|
91
|
-
| onClick | 点击按钮时的回调 | (event: React.MouseEvent<HTMLElement, MouseEvent>) => void | - | |
|
|
92
|
-
| variant | 设置按钮的变体 | outlined | - | 5.21.0 |
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
支持原生 button 的其他所有属性。
|
|
96
|
-
|
|
97
|
-
### PresetColors
|
|
98
|
-
|
|
99
|
-
type PresetColors = 'blue' | 'purple' | 'cyan' | 'green' | 'magenta' | 'pink' | 'red' | 'orange' | 'yellow' | 'volcano' | 'geekblue' | 'lime' | 'gold';
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<DemoTitle title="Card" desc="通用卡片容器"></DemoTitle>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
示例
|
|
10
|
-
|
|
11
|
-
<Install>Card</Install>
|
|
12
|
-
|
|
13
|
-
#### 卡片示例
|
|
14
|
-
|
|
15
|
-
以下是此卡片组件的示例和变体
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
仅展示 Content
|
|
22
|
-
|
|
23
|
-
#### API
|
|
24
|
-
|
|
25
|
-
| <div><span class="lang-en">Attribute</span><span class="lang-cn">属性名</span></div> | <div><span class="lang-en">Description</span><span class="lang-cn">描述</span></div> | <div><span class="lang-en">Type</span><span class="lang-cn">类型</span></div> | <div><span class="lang-en">Default</span><span class="lang-cn">默认值</span></div> |
|
|
26
|
-
|--------|--------|--------|--------|
|
|
27
|
-
| info | <div><span class="lang-en">subtitle</span><span class="lang-cn">副标题</span></div> | ReactNode | |
|
|
28
|
-
|
|
29
|
-
本组件完全兼容 antd 同名组件,详情可访问 [antd card](https://ant.design/components/card-cn) 查看更多 API
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
## antd API
|
|
33
|
-
|
|
34
|
-
通用属性参考:[通用属性](/docs/react/common-props)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
41
|
-
|--------|--------|--------|--------|--------|
|
|
42
|
-
| actions | 卡片操作组,位置在卡片底部 | Array<ReactNode> | - | |
|
|
43
|
-
| activeTabKey | 当前激活页签的 key | string | - | |
|
|
44
|
-
| | 是否有边框, 请使用 | boolean | true | |
|
|
45
|
-
| variant | 形态变体 | outlined | outlined | 5.24.0 |
|
|
46
|
-
| cover | 卡片封面 | ReactNode | - | |
|
|
47
|
-
| defaultActiveTabKey | 初始化选中页签的 key,如果没有设置 activeTabKey | string | 第一个页签的 key | |
|
|
48
|
-
| extra | 卡片右上角的操作区域 | ReactNode | - | |
|
|
49
|
-
| hoverable | 鼠标移过时可浮起 | boolean | false | |
|
|
50
|
-
| loading | 当卡片内容还在加载中时,可以用 loading 展示一个占位 | boolean | false | |
|
|
51
|
-
| size | card 的尺寸 | default | default | |
|
|
52
|
-
| tabBarExtraContent | tab bar 上额外的元素 | ReactNode | - | |
|
|
53
|
-
| tabList | 页签标题列表 | | - | |
|
|
54
|
-
| tabProps | | - | - | |
|
|
55
|
-
| title | 卡片标题 | ReactNode | - | |
|
|
56
|
-
| type | 卡片类型,可设置为 | string | - | |
|
|
57
|
-
| classNames | 配置卡片内置模块的 className | | - | 5.14.0 |
|
|
58
|
-
| styles | 配置卡片内置模块的 style | | - | 5.14.0 |
|
|
59
|
-
| onTabChange | 页签切换的回调 | (key) => void | - | |
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
### Card.Grid
|
|
63
|
-
|
|
64
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
65
|
-
|--------|--------|--------|--------|--------|
|
|
66
|
-
| className | 网格容器类名 | string | - | |
|
|
67
|
-
| hoverable | 鼠标移过时可浮起 | boolean | true | |
|
|
68
|
-
| style | 定义网格容器类名的样式 | CSSProperties | - | |
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### Card.Meta
|
|
72
|
-
|
|
73
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
74
|
-
|--------|--------|--------|--------|--------|
|
|
75
|
-
| avatar | 头像/图标 | ReactNode | - | |
|
|
76
|
-
| className | 容器类名 | string | - | |
|
|
77
|
-
| description | 描述内容 | ReactNode | - | |
|
|
78
|
-
| style | 定义容器类名的样式 | CSSProperties | - | |
|
|
79
|
-
| title | 标题内容 | ReactNode | - | |
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<DemoTitle title="Checkbox" desc="收集用户的多项选择。"></DemoTitle>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
示例
|
|
10
|
-
|
|
11
|
-
<Install>Checkbox</Install>
|
|
12
|
-
|
|
13
|
-
#### 多选框示例
|
|
14
|
-
|
|
15
|
-
以下是此组件的示例和变体
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
附带描述
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
部分选择
|
|
28
|
-
|
|
29
|
-
#### API
|
|
30
|
-
|
|
31
|
-
| <div><span class="lang-en">Attribute</span><span class="lang-cn">属性名</span></div> | <div><span class="lang-en">Description</span><span class="lang-cn">描述</span></div> | <div><span class="lang-en">Type</span><span class="lang-cn">类型</span></div> | <div><span class="lang-en">Default</span><span class="lang-cn">默认值</span></div> |
|
|
32
|
-
|--------|--------|--------|--------|
|
|
33
|
-
| description | <div><span class="lang-en">Description Text</span><span class="lang-cn">描述文本</span></div> | string | |
|
|
34
|
-
| descriptionClassName | <div><span class="lang-en">Description Text Style Class Name</span><span class="lang-cn">描述文本的样式类名</span></div> | string | |
|
|
35
|
-
| descriptionStyle | <div><span class="lang-en">Description Text Inline Style</span><span class="lang-cn">描述文本的内联样式</span></div> | React.CSSProperties | |
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
本组件完全兼容 antd 同名组件,详情可访问[antd checkbox](https://ant.design/components/checkbox-cn/)查看更多 API。
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## antd API
|
|
42
|
-
|
|
43
|
-
通用属性参考:[通用属性](/docs/react/common-props)
|
|
44
|
-
|
|
45
|
-
#### Checkbox
|
|
46
|
-
|
|
47
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
48
|
-
|--------|--------|--------|--------|--------|
|
|
49
|
-
| autoFocus | 自动获取焦点 | boolean | false | |
|
|
50
|
-
| checked | 指定当前是否选中 | boolean | false | |
|
|
51
|
-
| defaultChecked | 初始是否选中 | boolean | false | |
|
|
52
|
-
| disabled | 失效状态 | boolean | false | |
|
|
53
|
-
| indeterminate | 设置 indeterminate 状态,只负责样式控制 | boolean | false | |
|
|
54
|
-
| onChange | 变化时的回调函数 | (e: CheckboxChangeEvent) => void | - | |
|
|
55
|
-
| onBlur | 失去焦点时的回调 | function() | - | |
|
|
56
|
-
| onFocus | 获得焦点时的回调 | function() | - | |
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
#### Checkbox.Group
|
|
60
|
-
|
|
61
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
62
|
-
|--------|--------|--------|--------|--------|
|
|
63
|
-
| defaultValue | 默认选中的选项 | (string | number)[] | [] | |
|
|
64
|
-
| disabled | 整组失效 | boolean | false | |
|
|
65
|
-
| name | CheckboxGroup 下所有 | string | - | |
|
|
66
|
-
| options | 指定可选项 | string[] | number[] | Option[] | [] | |
|
|
67
|
-
| value | 指定选中的选项 | (string | number | boolean)[] | [] | |
|
|
68
|
-
| title | 选项的 title | string | - | |
|
|
69
|
-
| className | 选项的类名 | string | - | 5.25.0 |
|
|
70
|
-
| style | 选项的样式 | React.CSSProperties | - | |
|
|
71
|
-
| onChange | 变化时的回调函数 | (checkedValue: T[]) => void | - | |
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
##### Option
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
### 方法
|
|
81
|
-
|
|
82
|
-
#### Checkbox
|
|
83
|
-
|
|
84
|
-
| 名称 | 描述 | 版本 |
|
|
85
|
-
|--------|--------|--------|
|
|
86
|
-
| blur() | 移除焦点 | |
|
|
87
|
-
| focus() | 获取焦点 | |
|
|
88
|
-
| nativeElement | 返回 Checkbox 的 DOM 节点 | 5.17.3 |
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<DemoTitle title="CodeBlock" desc="代码块"></DemoTitle>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
示例
|
|
10
|
-
|
|
11
|
-
<Install>CodeBlock</Install>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
纯代码展示
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
限制高度下的展示
|
|
24
|
-
|
|
25
|
-
#### API
|
|
26
|
-
|
|
27
|
-
| <div><span class="lang-en">Attribute</span><span class="lang-cn">属性名</span></div> | <div><span class="lang-en">Description</span><span class="lang-cn">描述</span></div> | <div><span class="lang-en">Type</span><span class="lang-cn">类型</span></div> | <div><span class="lang-en">Default</span><span class="lang-cn">默认值</span></div> |
|
|
28
|
-
|--------|--------|--------|--------|
|
|
29
|
-
| language | <div><span class="lang-en">Language</span><span class="lang-cn">语言</span></div> | string | string[] | <div><span class="lang-en">(Required)</span><span class="lang-cn">(必填)</span></div> |
|
|
30
|
-
| value | <div><span class="lang-en">Value</span><span class="lang-cn">值</span></div> | string | <div><span class="lang-en">(Required)</span><span class="lang-cn">(必填)</span></div> |
|
|
31
|
-
| className | <div><span class="lang-en">Class name</span><span class="lang-cn">类名</span></div> | string | |
|
|
32
|
-
| theme | <div><span class="lang-en"></span><span class="lang-cn">主题</span></div> | 'dark' | 'light' | |
|
|
33
|
-
| readOnly | <div><span class="lang-en">Read only</span><span class="lang-cn">只读</span></div> | boolean | |
|
|
34
|
-
| onChange | <div><span class="lang-en"></span><span class="lang-cn"></span></div> | (value: string) => void | |
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<DemoTitle title="Collapse" desc="可以折叠/展开的内容区域"></DemoTitle>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
示例
|
|
10
|
-
|
|
11
|
-
<Install>Collapse</Install>
|
|
12
|
-
|
|
13
|
-
#### 折叠面板示例
|
|
14
|
-
|
|
15
|
-
以下是此组件的示例和变体
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
支持操作配置
|
|
22
|
-
|
|
23
|
-
#### API
|
|
24
|
-
|
|
25
|
-
本组件完全兼容 antd 同名组件,详情可访问 [antd collapse](https://ant.design/components/collapse-cn) 查看更多 API
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
## antd API
|
|
29
|
-
|
|
30
|
-
通用属性参考:[通用属性](/docs/react/common-props)
|
|
31
|
-
|
|
32
|
-
### Collapse
|
|
33
|
-
|
|
34
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
35
|
-
|--------|--------|--------|--------|--------|
|
|
36
|
-
| accordion | 手风琴模式 | boolean | false | |
|
|
37
|
-
| activeKey | 当前激活 tab 面板的 key | string[] | string | | |
|
|
38
|
-
| bordered | 带边框风格的折叠面板 | boolean | true | |
|
|
39
|
-
| collapsible | 所有子面板是否可折叠或指定可折叠触发区域 | header | - | 4.9.0 |
|
|
40
|
-
| defaultActiveKey | 初始化选中面板的 key | string[] | string | - | |
|
|
41
|
-
| | 销毁折叠隐藏的面板 | boolean | false | |
|
|
42
|
-
| destroyOnHidden | 销毁折叠隐藏的面板 | boolean | false | 5.25.0 |
|
|
43
|
-
| expandIcon | 自定义切换图标 | (panelProps) => ReactNode | - | |
|
|
44
|
-
| expandIconPosition | 设置图标位置 | start | - | 4.21.0 |
|
|
45
|
-
| ghost | 使折叠面板透明且无边框 | boolean | false | 4.4.0 |
|
|
46
|
-
| size | 设置折叠面板大小 | large | middle | 5.2.0 |
|
|
47
|
-
| onChange | 切换面板的回调 | function | - | |
|
|
48
|
-
| items | 折叠项目内容 | | - | 5.6.0 |
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
### ItemType
|
|
52
|
-
|
|
53
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
54
|
-
|--------|--------|--------|--------|--------|
|
|
55
|
-
| classNames | 语义化结构 className | | - | 5.21.0 |
|
|
56
|
-
| collapsible | 是否可折叠或指定可折叠触发区域 | header | - | |
|
|
57
|
-
| forceRender | 被隐藏时是否渲染 body 区域 DOM 结构 | boolean | false | |
|
|
58
|
-
| key | 对应 activeKey | string | number | - | |
|
|
59
|
-
| label | 面板标题 | ReactNode | - | - |
|
|
60
|
-
| showArrow | 是否展示当前面板上的箭头(为 false 时,collapsible 不能设为 icon) | boolean | true | |
|
|
61
|
-
| styles | 语义化结构 style | | - | 5.21.0 |
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
### Collapse.Panel
|
|
65
|
-
|
|
66
|
-
<!-- prettier-ignore -->
|
|
67
|
-
<Container type="warning" title="已废弃">
|
|
68
|
-
版本 >= 5.6.0 时请使用 items 方式配置面板。
|
|
69
|
-
</Container>
|
|
70
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
71
|
-
|--------|--------|--------|--------|--------|
|
|
72
|
-
| collapsible | 是否可折叠或指定可折叠触发区域 | header | - | 4.9.0 (icon: 4.24.0) |
|
|
73
|
-
| forceRender | 被隐藏时是否渲染 body 区域 DOM 结构 | boolean | false | |
|
|
74
|
-
| header | 面板标题 | ReactNode | - | |
|
|
75
|
-
| key | 对应 activeKey | string | number | - | |
|
|
76
|
-
| showArrow | 是否展示当前面板上的箭头(为 false 时,collapsible 不能设为 icon) | boolean | true | |
|