- 入门指南
- 演示应用程序
- 如何
- 通知
- 使用 VB 表达式
- 设计应用程序
- 事件和规则
- 在应用程序中利用 RPA
- 在应用程序中利用实体
- 在应用程序中利用队列
- 在应用程序中利用媒体文件
- 在应用程序中利用操作
- 在应用程序中利用 Connections
- 应用程序生命周期管理 (ALM)
- UiPath 第一方应用程序
- 基本故障排除指南
如果遇到闪烁问题或水平滚动条无法正常工作,请确保设置固定高度和宽度的容器。
While Table control represents data as rows and columns, Custom List (previously called Advanced List) provides flexibility to represent data in the format the user needs them. In the Custom List control, the user can use various controls and position them according to their choice using the Template. A template is nothing but a Container that holds controls and other containers.
自定义列表有两组属性,一组用于自定义列表,另一组用于模板。
您可以通过单击画布中的控件在自定义列表属性和模板属性之间导航,或从左侧的树视图进行导航。每次单击都会在画布中的高级列表及其模板之间切换选择。
自定义列表属性
常规
- “工具提示”- 要在自定义列表上显示的工具提示。使用此选项可提供有关控件的其他信息。
- “数据源”- 表格控件的来源。有效的数据类型为数据表和对象数组。
- “已选择的绑定值”- 在运行时将表格的选定值绑定到 RPA 流程参数或应用程序字段。
- “隐藏”- 如果选中,则在运行时隐藏该控件。
- “已禁用”- 如果选中,则在运行时禁用该控件。
Events
- “值已更改”- 配置在值更改时会发生的情况。
样式
-
Control Alignment - By default, inherits the parent alignment. A different alignment other than the parent can be set. To default to Parent's alignment, toggle the selected alignment icons to switch off the specific alignment.
备注:Alignment is dependent on Parent's layout ( Vertical vs Horizontal ).
-
“布局”- 确定模板在高级列表中的显示方式。可以是水平(并排)或垂直(上下排列)。
-
“间距”- 确定模板之间的间隔。
-
“边距”- 设置控件的边距。默认情况下,边距设置为 4px。“上/下”和“左/右”边距属性结合使用。可以使用“边距”部分标题右侧的“取消链接”按钮取消链接这些属性。
-
“填充” - 设置控件的填充。“上/下”和“左/右”填充属性结合使用。如果需要为每一侧设置不同的填充值,则可以使用“填充”部分标题右侧的“取消链接”图标取消链接这些属性。
-
Size - The width and height of the control can be set in the size section. By default, the size is set to Auto. Min Width/ Min Height and Max Width/ Max Height are available under more (...) in the size section.
模板属性
常规
无属性
Events
- “已单击”- 配置单击模板时会发生的情况。
样式
如果您在“自定义列表”控件中使用“图像”控件,请确保指定图像大小(宽度和高度属性),以便更快地呈现并避免图像在运行时闪烁。
- “布局”- 确定模板中控件的定位方式。
-
Direction (Horizontal/Vertical) - Controls are arranged one below the other (vertical) or side by side (horizontal).
-
“对齐”- 控制模板内的对齐方式(垂直方向为“左对齐”、“居中”、“右对齐”和“拉伸”,水平方向为“顶端对齐”、“水平居中”、“底端对齐”和“拉伸”)。
-
“两端对齐”- 垂直方向为“顶端对齐”、“垂直居中”、“底端对齐”和“分散对齐”,水平方向为“左对齐”、“居中”、“右对齐”和“分散对齐”。
-
“允许换行”- 如果启用,则当空间不足时,容器中的控件将换行。
备注:当大小(宽度或高度)设置为定义的值而非“自动”时,系统将应用“允许换行”属性。
-
- “背景颜色”- 设置模板的背景颜色。
- “边框”- 设置控件的边框。可以为边框配置边框粗细、边框颜色和角半径。
- “填充”- 设置模板的填充。默认情况下,填充设置为 8px。“上/下”和“左/右”填充属性结合使用。如果需要为上边、下边、左边和右边设置不同的填充值,则可以使用“填充”部分标题右侧的“取消链接”图标取消链接这些属性。
- Size - The width and height of the control can be set in the size section. Width is inherited from the parent for Vertical layout and cannot be edited. Similarly Height is inherited from the parent for Horizontal layout and cannot be edited. Min Width/ Min Height and Max Width/ Max Height are available under more (...) in the size section.
当启用虚拟滚动时,具有固定像素高度的自定义列表会得到更好的优化。
对于自定义列表中的大量行,可以选择使用虚拟滚动,以便在您滚动时即时加载视口中的元素,并逐步加载即将出现的元素。虚拟滚动仅在自定义列表高度设置为像素高度时有效。
如果未使用虚拟滚动,则包含大量行的自定义列表可能会很慢。
虚拟滚动可在运行时仅加载视口中的相关项目,从而提高性能。这仅在配置了高度但未设置为“自动”时有效。
如果将“高度”属性设置为“自动”,则控件在运行时和设计时的大小可能不匹配。发生这种情况是因为控件高度取决于运行时返回的行数,而在设计时,控件为空。
对于任何具有动态数据的控件(例如表格、列表或自定义列表),我们建议配置固定高度以提高性能。