@robot-admin/naive-ui-components 0.7.1 → 0.8.0
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 +76 -60
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.d.cts +2 -2
- package/dist/C_Form.d.ts +2 -2
- package/dist/C_Form.js +1 -1
- package/dist/C_Form.js.map +1 -1
- package/dist/C_Form2.js +1 -1
- package/dist/C_Form2.js.map +1 -1
- package/dist/C_Table.js.map +1 -1
- package/dist/C_Table2.js +3 -3
- package/dist/C_Table2.js.map +1 -1
- package/dist/constants.d.ts +2 -2
- package/dist/constants2.d.ts +3 -3
- package/dist/constants4.d.ts +5 -5
- package/dist/constants5.d.ts +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.vue.d.ts +1 -1
- package/dist/index10.vue.d.ts +1 -1
- package/dist/index11.vue.d.ts +5 -5
- package/dist/index12.vue.d.ts +3 -3
- package/dist/index13.vue.d.ts +4 -4
- package/dist/index15.vue.d.ts +5 -5
- package/dist/index18.vue.d.ts +3 -3
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.ts +2 -2
- package/dist/index21.vue.d.ts +1 -1
- package/dist/index22.vue.d.ts +2 -2
- package/dist/index23.vue.d.ts +2 -2
- package/dist/index26.vue.d.ts +4 -4
- package/dist/index27.vue.d.ts +2 -2
- package/dist/index28.vue.d.ts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index4.vue.d.ts +5 -5
- package/dist/index6.vue.d.ts +5 -5
- package/dist/index8.vue.d.ts +2 -2
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCropperCore.d.ts +8 -8
- package/dist/useDraggableLayout.d.ts +10 -10
- package/dist/useDynamicFormState.d.ts +217 -143
- package/dist/useEdgeInteraction.d.ts +3 -3
- package/dist/useGlobalSearch.d.ts +1 -1
- package/dist/useInfiniteScroll.d.ts +3 -3
- package/dist/useModalEdit.d.ts +5 -5
- package/dist/useQRCode.d.ts +2 -2
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.ts +6 -6
- package/dist/useTimeSelection.d.ts +2 -2
- package/dist/useTreeOperations.d.ts +6 -6
- package/dist/useWorkflowValidation.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,60 +1,76 @@
|
|
|
1
|
-
# @robot-admin/naive-ui-components
|
|
2
|
-
|
|
3
|
-
## 0.
|
|
4
|
-
|
|
5
|
-
###
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
## 0.6.
|
|
32
|
-
|
|
33
|
-
###
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- `
|
|
45
|
-
- `
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
1
|
+
# @robot-admin/naive-ui-components
|
|
2
|
+
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- C_Form 新增8项能力:
|
|
8
|
+
- 🧹 脏检查系统(isDirty / getChangedFields / isFieldDirty / markAsClean),独立 useFormDirty Composable
|
|
9
|
+
- ✏️ 编辑模式(mode: "edit" + initialValues 自动回填 + 脏状态重置)
|
|
10
|
+
- 🔒 字段级 disabled / readonly(支持 boolean | (model) => boolean 动态判断)
|
|
11
|
+
- 🔄 联动赋值引擎(valueWhen 根据其他字段自动计算回填)
|
|
12
|
+
- 🌐 异步选项加载(asyncOptions 远程数据源 + asyncLoadingMap loading 状态)
|
|
13
|
+
- 📐 动态校验规则(rulesWhen 根据表单状态动态切换验证规则)
|
|
14
|
+
- 🔗 跨字段校验(crossFieldValidator 声明式跨字段验证)
|
|
15
|
+
- 💡 Help Tooltip(help 字段标签旁 ℹ️ 图标 + NTooltip 帮助文本)
|
|
16
|
+
- useFormRenderer 重构为 Options 对象参数模式
|
|
17
|
+
- 新增导出:FormMode 类型、useFormDirty、UseFormRendererOptions
|
|
18
|
+
|
|
19
|
+
## 0.7.2
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- C_Table 类型系统清理:移除 6 个废弃类型(TestRecord、SelectedChildGroup、DemoConfig、DataMapping、CommonMappings),集中定义 ColumnWithKey 消除跨文件重复,修复所有 TypeScript 类型错误
|
|
24
|
+
|
|
25
|
+
## 0.7.0
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- C_Table 新增10项能力:全局配置 provide/inject、列级 formatter 格式化引擎、树形表格、行拖拽排序、跨页多选、CSV/XLSX 导出、列配置持久化、编辑校验、错误状态、批量操作栏
|
|
30
|
+
|
|
31
|
+
## 0.6.2
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- 修复菜单图标在生产环境下错位问题
|
|
36
|
+
- menuAdapter 的 defaultRenderIcon 中 `inline-flex items-center` 原子类改为内联 style
|
|
37
|
+
- 组件库不应依赖宿主项目的 UnoCSS/Tailwind 原子类,否则生产构建时可能丢失样式
|
|
38
|
+
|
|
39
|
+
## 0.6.1
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- 修复 C_Table loading 状态在 crud 模式下失效的问题
|
|
44
|
+
- `loading` prop 默认值从 `false` 改为 `undefined`,使 `??` 运算符能正确回退到 `crud.loading.value`
|
|
45
|
+
- 之前 `false ?? crud.loading.value` 始终返回 `false`(`??` 不回退 falsy 值,只回退 null/undefined)
|
|
46
|
+
|
|
47
|
+
## 0.6.0
|
|
48
|
+
|
|
49
|
+
### Minor Changes
|
|
50
|
+
|
|
51
|
+
- 依赖架构优化 + CSS 按需导入 + Changesets 集成
|
|
52
|
+
- 将 optionalDependencies 迁移至 dependencies,消费端自动传递安装
|
|
53
|
+
- 新增按组件 CSS 导出 (`C_*/style.css`),支持样式按需导入
|
|
54
|
+
- 修复 merge-css.js 中 esm/cjs CSS 重复合并问题
|
|
55
|
+
- Resolver 新增 `importStyle` 选项,自动注入组件样式
|
|
56
|
+
- 集成 @changesets/cli 自动化版本管理
|
|
57
|
+
|
|
58
|
+
- 提取 C_Menu / C_Breadcrumb / C_TagsView 布局组件 + 适配器架构
|
|
59
|
+
- 新增 `_shared` 模块:统一类型定义(RouteItem, TagItem, BreadcrumbItem)+ menuAdapter 适配器
|
|
60
|
+
- `createMenuOptions(routes, config)` 工厂函数:将 RouteItem[] 转换为 NMenu MenuOption[]
|
|
61
|
+
- `flattenRoutes()` 辅助:扁平化嵌套路由用于标签页匹配
|
|
62
|
+
- C_Menu:支持双输入(options / routes),内置 labelFormatter 回调解耦 i18n
|
|
63
|
+
- C_Breadcrumb:auto(route.matched)+ manual(items)双模式
|
|
64
|
+
- C_TagsView:useTagsView composable + localStorage 持久化 + 右键菜单
|
|
65
|
+
- vue-router ^4.0.0 新增为 peerDependency
|
|
66
|
+
|
|
67
|
+
## 0.5.0
|
|
68
|
+
|
|
69
|
+
### Minor Changes
|
|
70
|
+
|
|
71
|
+
- 依赖架构优化 + CSS 按需导入 + Changesets 集成
|
|
72
|
+
- 将 optionalDependencies 迁移至 dependencies,消费端自动传递安装
|
|
73
|
+
- 新增按组件 CSS 导出 (`C_*/style.css`),支持样式按需导入
|
|
74
|
+
- 修复 merge-css.js 中 esm/cjs CSS 重复合并问题
|
|
75
|
+
- Resolver 新增 `importStyle` 选项,自动注入组件样式
|
|
76
|
+
- 集成 @changesets/cli 自动化版本管理
|
package/dist/C_Form.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./C_Icon.js`),require(`./C_Editor.js`);const e=require(`./C_Form.js`);exports.C_Form=e.t,exports.DYNAMIC_FORM_STATE_KEY=e.n,exports.FIELD_TYPE_OPTIONS=e.r,exports.FORM_DEFAULTS=e.
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./C_Icon.js`),require(`./C_Editor.js`);const e=require(`./C_Form.js`);exports.C_Form=e.t,exports.DYNAMIC_FORM_STATE_KEY=e.n,exports.FIELD_TYPE_OPTIONS=e.r,exports.FORM_DEFAULTS=e.l,exports.LAYOUTS_WITH_OWN_CONTROLS=e.u,exports.registerRenderer=e.a,exports.resolveFormConfig=e.d,exports.shouldShowActions=e.f,exports.useDynamicFormState=e.i,exports.useFormDirty=e.c,exports.useFormRenderer=e.o,exports.useFormState=e.s;
|
package/dist/C_Form.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { _default as C_Form, type CardLayoutConfig, type ComponentMap, type ComponentType, type CustomLayoutConfig, DYNAMIC_FORM_STATE_KEY, type DynamicFieldConfig, type DynamicFormConfig, type DynamicFormState, type DynamicFormStateType, FIELD_TYPE_OPTIONS, FORM_DEFAULTS, type FormConfig, type FormInstance, type FormModel, type FormOption, type FormRenderer, type GridLayoutConfig, type InlineLayoutConfig, LAYOUTS_WITH_OWN_CONTROLS, type LabelPlacement, type LayoutCallbacks, type LayoutConfig, type LayoutType, type ResolvedFormConfig, type StepsLayoutConfig, type SubmitEventPayload, type TabsLayoutConfig, registerRenderer, resolveFormConfig, shouldShowActions, useDynamicFormState, useFormRenderer, useFormState };
|
|
1
|
+
import { A as FormOption, C as CustomLayoutConfig, D as FormInstance, E as DynamicFormState, F as LayoutType, I as StepsLayoutConfig, L as SubmitEventPayload, M as InlineLayoutConfig, N as LabelPlacement, O as FormMode, P as LayoutConfig, R as TabsLayoutConfig, S as ComponentType, T as DynamicFormConfig, _ as LayoutCallbacks, a as UseFormDirtyReturn, b as shouldShowActions, c as FormRenderer, d as useFormRenderer, f as useFormState, g as LAYOUTS_WITH_OWN_CONTROLS, h as FormConfig, i as useDynamicFormState, j as GridLayoutConfig, k as FormModel, l as UseFormRendererOptions, m as FORM_DEFAULTS, n as DynamicFormStateType, o as useFormDirty, p as _default, r as FIELD_TYPE_OPTIONS, s as ComponentMap, t as DYNAMIC_FORM_STATE_KEY, u as registerRenderer, v as ResolvedFormConfig, w as DynamicFieldConfig, x as CardLayoutConfig, y as resolveFormConfig } from "./useDynamicFormState.js";
|
|
2
|
+
export { _default as C_Form, type CardLayoutConfig, type ComponentMap, type ComponentType, type CustomLayoutConfig, DYNAMIC_FORM_STATE_KEY, type DynamicFieldConfig, type DynamicFormConfig, type DynamicFormState, type DynamicFormStateType, FIELD_TYPE_OPTIONS, FORM_DEFAULTS, type FormConfig, type FormInstance, type FormMode, type FormModel, type FormOption, type FormRenderer, type GridLayoutConfig, type InlineLayoutConfig, LAYOUTS_WITH_OWN_CONTROLS, type LabelPlacement, type LayoutCallbacks, type LayoutConfig, type LayoutType, type ResolvedFormConfig, type StepsLayoutConfig, type SubmitEventPayload, type TabsLayoutConfig, type UseFormDirtyReturn, type UseFormRendererOptions, registerRenderer, resolveFormConfig, shouldShowActions, useDynamicFormState, useFormDirty, useFormRenderer, useFormState };
|
package/dist/C_Form.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { _default as C_Form, type CardLayoutConfig, type ComponentMap, type ComponentType, type CustomLayoutConfig, DYNAMIC_FORM_STATE_KEY, type DynamicFieldConfig, type DynamicFormConfig, type DynamicFormState, type DynamicFormStateType, FIELD_TYPE_OPTIONS, FORM_DEFAULTS, type FormConfig, type FormInstance, type FormModel, type FormOption, type FormRenderer, type GridLayoutConfig, type InlineLayoutConfig, LAYOUTS_WITH_OWN_CONTROLS, type LabelPlacement, type LayoutCallbacks, type LayoutConfig, type LayoutType, type ResolvedFormConfig, type StepsLayoutConfig, type SubmitEventPayload, type TabsLayoutConfig, registerRenderer, resolveFormConfig, shouldShowActions, useDynamicFormState, useFormRenderer, useFormState };
|
|
1
|
+
import { A as FormOption, C as CustomLayoutConfig, D as FormInstance, E as DynamicFormState, F as LayoutType, I as StepsLayoutConfig, L as SubmitEventPayload, M as InlineLayoutConfig, N as LabelPlacement, O as FormMode, P as LayoutConfig, R as TabsLayoutConfig, S as ComponentType, T as DynamicFormConfig, _ as LayoutCallbacks, a as UseFormDirtyReturn, b as shouldShowActions, c as FormRenderer, d as useFormRenderer, f as useFormState, g as LAYOUTS_WITH_OWN_CONTROLS, h as FormConfig, i as useDynamicFormState, j as GridLayoutConfig, k as FormModel, l as UseFormRendererOptions, m as FORM_DEFAULTS, n as DynamicFormStateType, o as useFormDirty, p as _default, r as FIELD_TYPE_OPTIONS, s as ComponentMap, t as DYNAMIC_FORM_STATE_KEY, u as registerRenderer, v as ResolvedFormConfig, w as DynamicFieldConfig, x as CardLayoutConfig, y as resolveFormConfig } from "./useDynamicFormState.js";
|
|
2
|
+
export { _default as C_Form, type CardLayoutConfig, type ComponentMap, type ComponentType, type CustomLayoutConfig, DYNAMIC_FORM_STATE_KEY, type DynamicFieldConfig, type DynamicFormConfig, type DynamicFormState, type DynamicFormStateType, FIELD_TYPE_OPTIONS, FORM_DEFAULTS, type FormConfig, type FormInstance, type FormMode, type FormModel, type FormOption, type FormRenderer, type GridLayoutConfig, type InlineLayoutConfig, LAYOUTS_WITH_OWN_CONTROLS, type LabelPlacement, type LayoutCallbacks, type LayoutConfig, type LayoutType, type ResolvedFormConfig, type StepsLayoutConfig, type SubmitEventPayload, type TabsLayoutConfig, type UseFormDirtyReturn, type UseFormRendererOptions, registerRenderer, resolveFormConfig, shouldShowActions, useDynamicFormState, useFormDirty, useFormRenderer, useFormState };
|
package/dist/C_Form.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./C_Icon2.js";import"./C_Editor2.js";import{a as e,c as t,d as n,
|
|
1
|
+
import"./C_Icon2.js";import"./C_Editor2.js";import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,r as c,s as l,t as u,u as d}from"./C_Form2.js";export{u as C_Form,o as DYNAMIC_FORM_STATE_KEY,c as FIELD_TYPE_OPTIONS,a as FORM_DEFAULTS,d as LAYOUTS_WITH_OWN_CONTROLS,e as registerRenderer,n as resolveFormConfig,r as shouldShowActions,i as useDynamicFormState,t as useFormDirty,s as useFormRenderer,l as useFormState};
|