@robot-admin/naive-ui-components 0.27.0 → 0.28.1

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 (105) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +5 -13
  3. package/README_EN.md +5 -13
  4. package/dist/C_Table.base.css +145 -145
  5. package/dist/C_Table.css +145 -145
  6. package/dist/C_Table2.cjs +3 -3
  7. package/dist/C_Table2.js +3 -3
  8. package/dist/constants.d.cts +2 -2
  9. package/dist/constants.d.ts +2 -2
  10. package/dist/constants2.d.cts +2 -2
  11. package/dist/constants2.d.ts +2 -2
  12. package/dist/constants3.d.cts +5 -5
  13. package/dist/constants3.d.ts +5 -5
  14. package/dist/constants4.d.cts +8 -8
  15. package/dist/constants4.d.ts +8 -8
  16. package/dist/constants5.d.cts +2 -2
  17. package/dist/constants5.d.ts +2 -2
  18. package/dist/data2.d.cts +11 -11
  19. package/dist/data2.d.ts +11 -11
  20. package/dist/index.vue.d.cts +7 -7
  21. package/dist/index.vue.d.ts +7 -7
  22. package/dist/index10.vue.d.cts +3 -3
  23. package/dist/index10.vue.d.ts +2 -2
  24. package/dist/index11.vue.d.cts +2 -2
  25. package/dist/index11.vue.d.ts +4 -2
  26. package/dist/index12.vue.d.cts +4 -2
  27. package/dist/index13.vue.d.ts +3 -3
  28. package/dist/index14.vue.d.cts +3 -3
  29. package/dist/index16.vue.d.ts +2 -2
  30. package/dist/index17.vue.d.cts +2 -2
  31. package/dist/index17.vue.d.ts +10 -10
  32. package/dist/index18.vue.d.cts +10 -10
  33. package/dist/index18.vue.d.ts +2 -2
  34. package/dist/index19.vue.d.cts +2 -2
  35. package/dist/index19.vue.d.ts +1 -1
  36. package/dist/index2.vue.d.cts +3 -3
  37. package/dist/index2.vue.d.ts +3 -3
  38. package/dist/index20.vue.d.cts +1 -1
  39. package/dist/index20.vue.d.ts +2 -2
  40. package/dist/index21.vue.d.cts +2 -2
  41. package/dist/index21.vue.d.ts +5 -5
  42. package/dist/index22.vue.d.cts +5 -5
  43. package/dist/index22.vue.d.ts +3 -3
  44. package/dist/index23.vue.d.cts +2 -2
  45. package/dist/index23.vue.d.ts +2 -2
  46. package/dist/index24.vue.d.cts +3 -3
  47. package/dist/index24.vue.d.ts +3 -3
  48. package/dist/index25.vue.d.cts +2 -2
  49. package/dist/index25.vue.d.ts +2 -2
  50. package/dist/index26.vue.d.cts +1 -1
  51. package/dist/index26.vue.d.ts +1 -1
  52. package/dist/index27.vue.d.cts +2 -2
  53. package/dist/index27.vue.d.ts +2 -2
  54. package/dist/index29.vue.d.cts +1 -1
  55. package/dist/index29.vue.d.ts +1 -1
  56. package/dist/index3.vue.d.cts +6 -6
  57. package/dist/index3.vue.d.ts +6 -6
  58. package/dist/index30.vue.d.cts +5 -5
  59. package/dist/index30.vue.d.ts +5 -5
  60. package/dist/index31.vue.d.cts +2 -2
  61. package/dist/index31.vue.d.ts +2 -2
  62. package/dist/index5.vue.d.cts +3 -3
  63. package/dist/index6.vue.d.ts +2 -2
  64. package/dist/index7.vue.d.cts +2 -2
  65. package/dist/index7.vue.d.ts +3 -3
  66. package/dist/index8.vue.d.cts +3 -3
  67. package/dist/index8.vue.d.ts +2 -2
  68. package/dist/index9.vue.d.cts +2 -2
  69. package/dist/index9.vue.d.ts +3 -3
  70. package/dist/mapUtils.d.cts +1 -1
  71. package/dist/mapUtils.d.ts +1 -1
  72. package/dist/style.css +146 -146
  73. package/dist/useCalendarEvents.d.cts +1 -1
  74. package/dist/useCalendarEvents.d.ts +1 -1
  75. package/dist/useCollapsePanel.d.cts +7 -7
  76. package/dist/useCollapsePanel.d.ts +7 -7
  77. package/dist/useComponentLocale.cjs +1 -1
  78. package/dist/useComponentLocale.js +1 -1
  79. package/dist/useCropperCore.d.cts +4 -4
  80. package/dist/useCropperCore.d.ts +4 -4
  81. package/dist/useDraggableLayout.d.cts +2 -2
  82. package/dist/useDraggableLayout.d.ts +2 -2
  83. package/dist/useEdgeInteraction.d.cts +2 -2
  84. package/dist/useEdgeInteraction.d.ts +2 -2
  85. package/dist/useFullscreen.d.cts +2 -2
  86. package/dist/useFullscreen.d.ts +2 -2
  87. package/dist/useInfiniteScroll.d.cts +1 -1
  88. package/dist/useInfiniteScroll.d.ts +1 -1
  89. package/dist/useQRCode.d.cts +4 -4
  90. package/dist/useQRCode.d.ts +4 -4
  91. package/dist/useSignatureHistory.d.cts +6 -6
  92. package/dist/useSignatureHistory.d.ts +6 -6
  93. package/dist/useSplitResize.d.cts +5 -5
  94. package/dist/useSplitResize.d.ts +5 -5
  95. package/dist/useTableQuery.d.cts +16 -10
  96. package/dist/useTableQuery.d.ts +16 -10
  97. package/dist/useWorkflowValidation.d.cts +3 -3
  98. package/dist/useWorkflowValidation.d.ts +3 -3
  99. package/dist/verification.d.cts +5 -5
  100. package/dist/verification.d.ts +5 -5
  101. package/docs/guides/data-workflows.md +15 -0
  102. package/docs/guides/runtime-performance.md +4 -0
  103. package/docs/guides/usage.en.md +6 -3
  104. package/docs/guides/usage.md +43 -3
  105. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @robot-admin/naive-ui-components
2
2
 
3
+ ## 0.28.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 修复 C_Table 在原生本地分页中为计算序号重复排序的问题,并跳过宽表中未启用的排序字段查找。保留跨页序号和筛选后页码收敛。README 补充动态搜索、表单和弹窗与两种表格的组合方式。
8
+
9
+ ## 0.28.0
10
+
11
+ ### Minor Changes
12
+
13
+ - C_Table 默认显示序号和内置分页。使用 `row-number="false"` 关闭自动序号,自定义序号列继续按声明显示。普通列和数值列默认居中。
14
+
15
+ 接口刷新列定义时延续同一报表的用户列偏好。首次异步加载也能按报表标识恢复已保存设置。文档补充动态列、分页和序号开关示例。
16
+
3
17
  ## 0.27.0
4
18
 
5
19
  ### Minor Changes
package/README.md CHANGED
@@ -33,26 +33,18 @@
33
33
  | 按需消费 | 60 个独立组件入口、自动导入 Resolver、组件样式入口,以及表单/表格的基础样式层级 |
34
34
  | 独立接入 | 支持全量注册与局部导入;反馈、文案和全局配置可由宿主提供,表单弹窗可接入结构兼容的 Headless CRUD |
35
35
 
36
- 组件库负责界面与交互;业务接口、身份权限、上传服务和第三方平台配置由应用接入。当前仓库版本 **0.27.0**,版本变化见 [CHANGELOG](./CHANGELOG.md)。
36
+ 组件库负责界面与交互;业务接口、身份权限、上传服务和第三方平台配置由应用接入。当前仓库版本 **0.28.1**,版本变化见 [CHANGELOG](./CHANGELOG.md)。
37
37
 
38
- 0.24.3–0.24.4 复核了异步校验与编辑会话、字典订阅、列拖拽、媒体与图实例、数据快照及依赖边界,修复已复现的问题并删除死状态与不可达重试分支。审查范围、性能约束和验证证据见[稳定性复核](./docs/stability-review-20261031.md)。
38
+ 搜索条件、录入字段和操作按钮可以由响应式配置生成。筛选和编辑共享紧凑密度,支持校验、异步选项和业务弹窗。后端字典或权限由项目接入,表单和搜索消费普通选项,表格消费普通列配置。
39
39
 
40
- 表单与搜索共用 `config.density: 'compact'`:收紧字段、布局和空校验区,实际错误仍自然展开。表单弹窗默认紧凑,页脚按钮 22px;搜索可继承应用密度。紧凑数字输入默认隐藏步进按钮,保留键盘、精度和上下限,也可逐字段开启。按需设置默认值与显式覆盖见[表单密度](./docs/guides/form-density.md)。
41
-
42
- 0.24.5 修复表单弹窗首行紧贴标题的问题:标题、内容与页脚通过原生分区样式保持留白,长表单仅内容区滚动,页脚保持可见;样式不穿透内嵌业务卡片。
43
-
44
- 0.24.6 修复 `C_Table` 编辑弹窗未应用 `edit.modalWidth` 导致通栏的问题。表格编辑与 `C_FormModal` 共用原生分区样式和视口约束;桌面按配置宽度居中,窄屏自动单列,超高内容内部滚动,无需宿主原子类或页面样式补丁。
45
-
46
- 普通下拉列的 `editProps.options` 同步传递到弹窗字段;显示标签、编辑及保存继续使用各自的原始值协议。
47
-
48
- 业务工作台支持容器搜索、区域密度、远程选择、错误导航及批量结果;纯值工具走 `/data`,组合函数走 `/workflows`。接入见[业务数据与工作台](./docs/guides/data-workflows.md)、[搜索工作流](./docs/guides/search-workflows.md)、[远程选择](./docs/guides/data-picker.md)和[批量结果](./docs/guides/batch-results.md)。
49
-
50
- 本版移除组件内的字典字段、注入、订阅与翻译。表单和搜索接收普通选项及通用 `optionsState`,表格接收 formatter/render 与 editProps.options;数据插件在项目层组合,组件包不识别插件名称、实例或协议。升级时将旧 dictionary 字段转换为普通选项/格式化配置,见[项目组合指南](./docs/guides/data-workflows.md)。
40
+ 列表按场景组合 `C_FormSearch`、`C_ActionBar`、`C_FormModal` 和 `C_DataPicker`。同一套表单与搜索可搭配 `C_Table` 或 MachTable,各自使用原生表格配置和分页。见[组合用法](./docs/guides/data-workflows.md#搜索表单与弹窗组合)、[表单密度](./docs/guides/form-density.md)和[运行时性能](./docs/guides/runtime-performance.md)。
51
41
 
52
42
  ## 能力地图
53
43
 
54
44
  `C_Table` 保留 Naive UI 原生空态,继承 Provider 的主题、语言与 `componentOptions.DataTable.renderEmpty`。使用 `#empty` 可替换单个表格的空态内容。
55
45
 
46
+ `C_Table` 默认显示序号和分页,数字与其他内容默认居中。通过 `:row-number="false"` 和 `:pagination="false"` 分别关闭自动序号与分页。后端返回列和行可直接绑定,详见[动态表格示例](./docs/guides/usage.md#后端返回列和行)。
47
+
56
48
  | 场景 | 代表组件 | 覆盖能力 |
57
49
  | ---------- | ---------------------------------------------------------------- | -------------------------------------------------------- |
58
50
  | 数据录入 | `C_Form` · `C_FormModal` · `C_FormSearch` | 动态字段、校验、异步提交、搜索与新增/编辑弹窗 |
package/README_EN.md CHANGED
@@ -33,26 +33,18 @@
33
33
  | Selective loading | 60 component entries, an auto-import resolver, component CSS and base styles for forms and tables |
34
34
  | Application integration | Global registration or local imports; injectable feedback, locale and defaults; form dialogs compatible with structurally matching headless CRUD controllers |
35
35
 
36
- The library handles UI and interaction. Applications supply business APIs, authentication, authorization, upload services and platform configuration. The current repository version is **0.27.0**; see the [changelog](./CHANGELOG.md) for release details.
36
+ The library handles UI and interaction. Applications supply business APIs, authentication, authorization, upload services and platform configuration. The current repository version is **0.28.1**; see the [changelog](./CHANGELOG.md) for release details.
37
37
 
38
- The 0.24.3–0.24.4 review covers async validation and edit sessions, dictionaries, column dragging, media and graph instances, data snapshots and dependency boundaries. Reproduced issues are fixed; dead state and unreachable retry branches are removed. See the [stability review](./docs/stability-review-20261031.md) for scope, performance constraints and verification evidence.
38
+ Search fields, form fields, and actions can be generated from reactive configuration. Compact density applies consistently across search and data entry, including validation, async options, and dialogs. The application owns dictionaries and permissions, supplying ordinary options and column definitions to components.
39
39
 
40
- Forms and search share `config.density: 'compact'`, reducing field spacing and empty validation space while allowing errors to expand naturally. Form modals default to compact density with 22px footer buttons, and search can inherit application density. Compact numeric fields hide step buttons by default while retaining keyboard interaction, precision and limits; individual fields can enable buttons. See [form density](./docs/guides/form-density.en.md) for on-demand defaults and explicit overrides.
41
-
42
- 0.24.5 restores spacing between form modal titles and the first field using native card section styles. Long forms scroll inside the content area while the footer stays visible; modal styles do not override nested business cards.
43
-
44
- 0.24.6 fixes full-width `C_Table` editor dialogs ignoring `edit.modalWidth`. Table editors and `C_FormModal` share native section styles and viewport bounds. Dialogs honor configured widths on desktop, use one form column when space is limited, and scroll tall content without relying on application utility CSS.
45
-
46
- Ordinary select columns retain `editProps.options` in modal fields through the ordinary option contract. Labels are displayed while editing and saving preserve the original value types.
47
-
48
- Business workspaces support container-aware search, regional density, remote pickers, error navigation and batch results. Pure value utilities live at `/data`; opt-in composables live at `/workflows`. See the [data and workspace guide](./docs/guides/data-workflows.md), [search workflows](./docs/guides/search-workflows.md), [data picker](./docs/guides/data-picker.md) and [batch results](./docs/guides/batch-results.md).
49
-
50
- This release removes dictionary fields, injection, subscriptions and translation from components. Forms and search accept ordinary options and controlled `optionsState`; tables accept formatters/renderers and `editProps.options`. Applications compose data plugins; the component package does not recognize plugin names, instances or protocols. See the [project composition guide](./docs/guides/data-workflows.md) for migration.
40
+ Compose `C_FormSearch`, `C_ActionBar`, `C_FormModal`, and `C_DataPicker` around either `C_Table` or MachTable. Each grid uses its own column definitions and pagination. See [workspace composition](./docs/guides/data-workflows.md), [form density](./docs/guides/form-density.en.md), and [runtime performance](./docs/guides/runtime-performance.md).
51
41
 
52
42
  ## Capability map
53
43
 
54
44
  `C_Table` retains the native Naive UI empty state, including provider theme, locale and `componentOptions.DataTable.renderEmpty`. Use `#empty` to replace the content of one table.
55
45
 
46
+ `C_Table` shows row numbers and a pager by default and centers all cells, including numbers. Use `:row-number="false"` and `:pagination="false"` to disable the automatic index and pager respectively. Bind server-provided columns and rows directly as shown in the [usage guide](./docs/guides/usage.en.md).
47
+
56
48
  | Scenario | Representative components | Capabilities |
57
49
  | --------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
58
50
  | Data entry | `C_Form` · `C_FormModal` · `C_FormSearch` | Dynamic fields, validation, async submission, search and create/edit dialogs |