Repository navigation
v0.3.1-preview.6
Pre-release
Pre-release
·
22 commits
to main
since this release
0.3.1-preview.6
Added
- Cascader (Extras,
TKCode.Arc): pick one node of a hierarchy level by level, such as province, city and district (#22). The field, menu, gliding highlight and clear button matchSelect; a parent opens its children in a column to the right and the menu width springs to its new size. - Data is read through delegates (
ChildrenSelector,TextSelector,ValueSelector,DisabledSelector,IsLeafSelector), so nothing is reflected.SelectedItem,SelectedValueandSelectedPathstay in step, and a value written before the data arrives is kept and resolved when it does. - Options:
LeafOnly,ExpandTrigger(click or hover),ShowFullPath,PathSeparator,IsClearable,IsReadOnly,ColumnWidth; full keyboard support. Gallery page with six demos: https://docs.tkcode.si/
dotnet add package TKCode.Arc --version 0.3.1-preview.6
Full list: CHANGELOG.md
0.3.1-preview.6(中文)
新增
- Cascader(Extras,
TKCode.Arc):按层级逐级选择一个节点,如省、市、区(#22)。字段、菜单、滑动高亮和清除按钮与Select一致;父节点的子级在右侧一列中展开,菜单宽度用弹簧过渡到新的宽度。 - 数据通过委托读取(
ChildrenSelector、TextSelector、ValueSelector、DisabledSelector、IsLeafSelector),不使用反射。SelectedItem、SelectedValue与SelectedPath始终保持一致,数据到达之前写入的值会被保留,数据到达后再解析。 - 选项:
LeafOnly、ExpandTrigger(点击或悬停)、ShowFullPath、PathSeparator、IsClearable、IsReadOnly、ColumnWidth;完整的键盘支持。Gallery 页面含六个示例:https://docs.tkcode.si/