@robot-admin/naive-ui-components 0.31.1 → 0.31.3
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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/README_EN.md +1 -1
- package/dist/C_Date.css +5 -5
- package/dist/C_Date2.cjs +1 -1
- package/dist/C_Date2.js +1 -1
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +1 -1
- package/dist/C_Form.css +1 -1
- package/dist/C_FormModal.css +1 -1
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +72 -72
- package/dist/C_Select.css +1 -1
- package/dist/C_Select2.cjs +1 -1
- package/dist/C_Select2.js +1 -1
- package/dist/C_Table.base.css +110 -110
- package/dist/C_Table.css +109 -109
- package/dist/C_Table2.cjs +2 -2
- package/dist/C_Table2.js +2 -2
- package/dist/C_Time.css +4 -4
- package/dist/C_Time2.cjs +1 -1
- package/dist/C_Time2.js +1 -1
- package/dist/C_Upload.css +28 -28
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/constants4.d.cts +9 -7
- package/dist/constants4.d.ts +9 -7
- package/dist/data2.d.cts +2 -2
- package/dist/data2.d.ts +2 -2
- package/dist/formField.d.cts +1 -1
- package/dist/formField.d.ts +1 -1
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.vue.d.cts +3 -3
- package/dist/index.vue.d.ts +3 -3
- package/dist/index10.vue.d.cts +4 -4
- package/dist/index10.vue.d.ts +2 -2
- package/dist/index11.vue.d.cts +2 -2
- package/dist/index12.vue.d.ts +5 -5
- package/dist/index13.vue.d.cts +5 -5
- package/dist/index15.vue.d.ts +5 -5
- package/dist/index16.vue.d.cts +5 -5
- package/dist/index16.vue.d.ts +7 -7
- package/dist/index17.vue.d.cts +7 -7
- package/dist/index17.vue.d.ts +1 -1
- package/dist/index18.vue.d.cts +1 -1
- package/dist/index18.vue.d.ts +1 -1
- package/dist/index19.vue.d.cts +1 -1
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +3 -3
- package/dist/index21.vue.d.cts +3 -3
- package/dist/index23.vue.d.cts +1 -1
- package/dist/index23.vue.d.ts +1 -1
- package/dist/index27.vue.d.cts +3 -3
- package/dist/index27.vue.d.ts +3 -3
- package/dist/index29.vue.d.cts +1 -1
- package/dist/index29.vue.d.ts +1 -1
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index30.vue.d.cts +3 -3
- package/dist/index30.vue.d.ts +3 -3
- package/dist/index31.vue.d.cts +2 -2
- package/dist/index31.vue.d.ts +2 -2
- package/dist/index9.vue.d.ts +4 -4
- package/dist/mapUtils.d.cts +1 -1
- package/dist/mapUtils.d.ts +1 -1
- package/dist/selectPresentation.cjs +1 -1
- package/dist/selectPresentation.js +1 -1
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/style.css +220 -220
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +4 -4
- package/dist/useCollapsePanel.d.ts +4 -4
- package/dist/useCropperCore.d.cts +7 -7
- package/dist/useCropperCore.d.ts +7 -7
- package/dist/useEdgeInteraction.d.cts +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFullscreen.d.cts +1 -1
- package/dist/useFullscreen.d.ts +1 -1
- package/dist/useInfiniteScroll.d.cts +4 -4
- package/dist/useInfiniteScroll.d.ts +4 -4
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +3 -3
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.cts +4 -4
- package/dist/useSplitResize.d.ts +4 -4
- package/dist/useTableQuery.d.cts +10 -10
- package/dist/useTableQuery.d.ts +10 -10
- package/dist/useTimeSelection.d.cts +9 -0
- package/dist/useTimeSelection.d.ts +9 -0
- package/dist/useWorkflowValidation.d.cts +2 -2
- package/dist/useWorkflowValidation.d.ts +2 -2
- package/dist/verification.d.cts +1 -1
- package/dist/verification.d.ts +1 -1
- package/docs/guides/data-workflows.md +3 -1
- package/docs/guides/usage.en.md +2 -2
- package/docs/guides/usage.md +5 -3
- package/package.json +1 -1
|
@@ -273,12 +273,12 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
|
|
|
273
273
|
onSave?: ((data: WorkflowData) => any) | undefined;
|
|
274
274
|
"onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
|
|
275
275
|
}>, {
|
|
276
|
+
readonly: boolean;
|
|
277
|
+
theme: "light" | "dark";
|
|
276
278
|
users: User[];
|
|
277
279
|
roles: Role[];
|
|
278
280
|
departments: Department[];
|
|
279
|
-
readonly: boolean;
|
|
280
281
|
allowCycles: boolean;
|
|
281
|
-
theme: "light" | "dark";
|
|
282
282
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
283
283
|
declare const _default: typeof __VLS_export;
|
|
284
284
|
//#endregion
|
package/dist/verification.d.cts
CHANGED
|
@@ -92,10 +92,10 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
|
|
|
92
92
|
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
93
93
|
onReset?: (() => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
|
-
theme: "light" | "dark";
|
|
96
95
|
disabled: boolean;
|
|
97
96
|
provider: CaptchaProvider;
|
|
98
97
|
images: string[];
|
|
98
|
+
theme: "light" | "dark";
|
|
99
99
|
verificationTimeout: number;
|
|
100
100
|
requireServerVerification: boolean;
|
|
101
101
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/verification.d.ts
CHANGED
|
@@ -92,10 +92,10 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
|
|
|
92
92
|
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
93
93
|
onReset?: (() => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
|
-
theme: "light" | "dark";
|
|
96
95
|
disabled: boolean;
|
|
97
96
|
provider: CaptchaProvider;
|
|
98
97
|
images: string[];
|
|
98
|
+
theme: "light" | "dark";
|
|
99
99
|
verificationTimeout: number;
|
|
100
100
|
requireServerVerification: boolean;
|
|
101
101
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -54,7 +54,7 @@ const config = defineTableConfig<Shipment>({
|
|
|
54
54
|
|
|
55
55
|
## 多选标签和日期时间
|
|
56
56
|
|
|
57
|
-
独立控件可用 `C_Select`,表单和搜索使用现有的 `type: 'select'` 与 `attrs: { multiple: true }`。三处默认显示首个标签和其余选中数量。用 `maxTagCount` 或 `attrs.maxTagCount` 覆盖显示数量。自由输入加 `filterable` 和 `tag`,普通多选省略 `tag`。多选清空为 `[]
|
|
57
|
+
独立控件可用 `C_Select`,表单和搜索使用现有的 `type: 'select'` 与 `attrs: { multiple: true }`。三处默认显示首个标签和其余选中数量。用 `maxTagCount` 或 `attrs.maxTagCount` 覆盖显示数量。自由输入加 `filterable` 和 `tag`,普通多选省略 `tag`。多选清空为 `[]`,选项加载中可以保留已有编码。自定义 `fallbackOption` 只负责未加载选项的回显文案;组件仍保留布尔、数字和字符串的原始类型,不会修改回调返回的选项对象。
|
|
58
58
|
|
|
59
59
|
```vue
|
|
60
60
|
<script setup lang="ts">
|
|
@@ -95,6 +95,8 @@ const condition = { prop: 'startTime', type: 'time', valueMode: 'formatted' }
|
|
|
95
95
|
|
|
96
96
|
独立日期用 `C_Date`,独立时分用 `<C_Time mode="single" value-mode="formatted" />`。未配置格式化值的现有表单、搜索和时间选择器仍按各自原有默认类型回写。
|
|
97
97
|
|
|
98
|
+
`C_Date` 的 `disabledBeforeToday` / `disabledAfterToday` 与 `isDateDisabled` 同时配置时,只要任一规则禁用,日期就不可选。基础范围模式会原样传递原生回调的起止位置和当前范围;`smart-range` 的两个端点使用单日期回调,端点配置优先于公共业务规则。
|
|
99
|
+
|
|
98
100
|
## 数值:存储、显示和校验分别定义
|
|
99
101
|
|
|
100
102
|
```ts
|
package/docs/guides/usage.en.md
CHANGED
|
@@ -279,7 +279,7 @@ For create/edit flows, `C_FormModal` consumes a structural headless `editor` dir
|
|
|
279
279
|
</template>
|
|
280
280
|
```
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
Any controller exposing `visible/mode/model/title/loading/setModel/close/submit` can drive the modal. The default uses a responsive 620px width, compact density, `small` form controls, and a right-aligned icon-based `C_ActionBar` with `tiny` footer buttons. You can configure the close button, mask click, and Escape for idle sessions. Validation and saving temporarily block all modal close controls. `@submit(payload, saved)` reports the current session's save result, including when the editor closes the modal after a successful save. `submitSuccessText` appears only when `saved` is `true`.
|
|
283
283
|
|
|
284
284
|
For remote tables, `useTableQuery` owns cancellation, latest-request-wins behavior, pagination, and loading. Destructure its `bindings` and use `<C_Table v-bind="bindings" />`:
|
|
285
285
|
|
|
@@ -697,7 +697,7 @@ With `C_FullCalendar` and `v-model:events`, listen for `@event-dropped` or `@eve
|
|
|
697
697
|
|
|
698
698
|
Upload `concurrency` applies across normal and chunk upload requests. Cancellation stops subsequent hash reads; a Blob read already in progress is discarded on completion. Application-provided check/merge callbacks retain responsibility for their own network lifecycle.
|
|
699
699
|
|
|
700
|
-
Excel previews preserve raw values, cell types and workbook display formatting. Sheets expand on demand. Defaults are 32 MiB per file and 100000 cells per sheet
|
|
700
|
+
Excel previews preserve raw values, cell types and workbook display formatting. Sheets expand on demand. Defaults are 32 MiB per file and 100000 cells per sheet. `previewLimits: { maxBytes, maxCells }` accepts finite safe positive integers. Remote Excel previews stop reading the response once the byte limit is exceeded. Over-budget previews ask users to download the original file. Memory used to decompress a workbook depends on its contents.
|
|
701
701
|
|
|
702
702
|
WaterFall fills a visible sentinel for at most five consecutive pages, then exposes a manual continuation. Custom `footer` slots receive `paused` and `loadMore`. Continue updating `loading` and `noMore` in the host. Draggable instances sort independently by default; cross-list transfers require an explicitly shared `group`.
|
|
703
703
|
|
package/docs/guides/usage.md
CHANGED
|
@@ -332,7 +332,7 @@ const fields = defineFormOptions([
|
|
|
332
332
|
</template>
|
|
333
333
|
```
|
|
334
334
|
|
|
335
|
-
`editor`
|
|
335
|
+
`editor` 采用结构类型,不要求组件库依赖某个请求库。任何提供 `visible/mode/model/title/loading/setModel/close/submit` 的 Headless 控制器都可接入。空闲时可通过标题栏按钮、遮罩或 Esc 关闭弹窗,三种方式均可配置。校验或保存期间,弹窗暂停这三种关闭方式及页脚取消。`@submit(payload, saved)` 接收当前会话的保存结果,编辑器保存成功并自行关闭时仍会发出通知。`submitSuccessText` 仅在 `saved` 为 `true` 时显示。
|
|
336
336
|
|
|
337
337
|
远程表格推荐交给 `useTableQuery` 管理请求取消、竞态、分页和 loading;只需把 `bindings` 绑定给组件。`rowKey` 必须稳定且唯一,默认会检测缺失和重复键。
|
|
338
338
|
|
|
@@ -857,7 +857,9 @@ CRUD 控制器只需满足结构契约;`@robot-admin/request-core` 0.6.3 起
|
|
|
857
857
|
|
|
858
858
|
`C_Upload.concurrency` 统一限制普通上传与分片上传请求。取消、移除和卸载会停止后续哈希读取并释放排队任务;已经开始的单次 Blob 读取完成后不再处理结果。业务自行提供的校验、合并回调仍由业务负责其网络生命周期。
|
|
859
859
|
|
|
860
|
-
在同一编辑弹窗切换记录时,调用上传实例的 `replaceFileList(record.attachments)
|
|
860
|
+
在同一编辑弹窗切换记录时,调用上传实例的 `replaceFileList(record.attachments)`。它会废弃上一条记录尚未读完的拖入目录,取消上传任务,再回填新记录的附件;`defaultFileList` 仍用于首次初始化。`clearAll()` 使用同样的取消路径。
|
|
861
|
+
|
|
862
|
+
普通单文件模式一次只接收一个符合 `accept` 的文件,点击、拖放和粘贴一致。需要接收整个目录时开启 `directory`;需要限制整个列表的数量时使用 `maxCount`。
|
|
861
863
|
|
|
862
864
|
Excel 保留原始值、单元格类型和工作簿格式,不把文本编号转换为数值,也不自行舍入小数。工作表数据在首次打开时展开,默认文件预算 32 MiB、每表 100000 格;超限明确提示下载原文件,不静默截断。可使用一个配置调整预算:
|
|
863
865
|
|
|
@@ -868,7 +870,7 @@ Excel 保留原始值、单元格类型和工作簿格式,不把文本编号
|
|
|
868
870
|
/>
|
|
869
871
|
```
|
|
870
872
|
|
|
871
|
-
|
|
873
|
+
预算必须是有限安全正整数。远程 Excel 会在读取响应时执行字节上限,超限立即取消读取。工作簿解压后的内存消耗取决于文件内容。
|
|
872
874
|
|
|
873
875
|
WaterFall 会在哨兵持续可见时继续补页,每轮最多自动请求 5 页,避免空响应循环。达到上限后可点击“继续加载”;自定义 `footer` 插槽获得 `paused` 和 `loadMore`。使用侧继续维护 `loading` 和 `noMore`。
|
|
874
876
|
|