@robot-admin/naive-ui-components 0.6.2 → 0.6.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/C_Menu.cjs +1 -1
  3. package/dist/C_Menu.js +1 -1
  4. package/dist/C_Menu.js.map +1 -1
  5. package/dist/C_Menu2.js.map +1 -1
  6. package/dist/_shared.cjs +1 -1
  7. package/dist/_shared.js +1 -1
  8. package/dist/constants.d.ts +1 -1
  9. package/dist/constants2.d.ts +2 -2
  10. package/dist/constants3.d.ts +5 -5
  11. package/dist/constants4.d.ts +3 -3
  12. package/dist/constants5.d.ts +2 -2
  13. package/dist/data.d.ts +2 -2
  14. package/dist/index.vue.d.ts +1 -1
  15. package/dist/index11.vue.d.ts +7 -7
  16. package/dist/index13.vue.d.ts +4 -4
  17. package/dist/index15.vue.d.ts +3 -3
  18. package/dist/index16.vue.d.ts +1 -1
  19. package/dist/index17.vue.d.ts +1 -1
  20. package/dist/index19.vue.d.ts +3 -3
  21. package/dist/index2.vue.d.ts +1 -1
  22. package/dist/index7.vue.d.ts +3 -3
  23. package/dist/index8.vue.d.ts +1 -1
  24. package/dist/index9.vue.d.ts +2 -2
  25. package/dist/menuAdapter.js +1 -1
  26. package/dist/menuAdapter.js.map +1 -1
  27. package/dist/useCalendarEvents.d.ts +1 -1
  28. package/dist/useCollapsePanel.d.ts +4 -4
  29. package/dist/useCropperCore.d.ts +4 -4
  30. package/dist/useDraggableLayout.d.ts +9 -9
  31. package/dist/useDynamicFormState.d.ts +116 -116
  32. package/dist/useEdgeInteraction.d.ts +2 -2
  33. package/dist/useInfiniteScroll.d.ts +2 -2
  34. package/dist/useModalEdit.d.ts +2 -2
  35. package/dist/useQRCode.d.ts +4 -4
  36. package/dist/useSignatureHistory.d.ts +2 -2
  37. package/dist/useSplitResize.d.ts +5 -5
  38. package/dist/useTimeSelection.d.ts +2 -2
  39. package/dist/useTreeOperations.d.ts +6 -6
  40. package/dist/useWorkflowValidation.d.ts +2 -2
  41. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"menuAdapter.js","names":[],"sources":["../src/components/_shared/menuAdapter.ts"],"sourcesContent":["/**\r\n * 菜单适配器 — 将路由数据转换为 NMenu 的 MenuOption[]\r\n *\r\n * 设计理念:\r\n * - 开箱即用:`createMenuOptions(routes)` 零配置即可生成菜单\r\n * - 完全可控:通过 `MenuAdapterConfig` 定制每一步转换逻辑\r\n * - i18n 解耦:`labelFormatter` 回调注入翻译函数,不绑定任何 i18n 方案\r\n *\r\n * @example 基础用法\r\n * ```ts\r\n * import { createMenuOptions } from '@robot-admin/naive-ui-components'\r\n *\r\n * const menuOptions = createMenuOptions(routes)\r\n * ```\r\n *\r\n * @example 带 i18n + 过滤\r\n * ```ts\r\n * const menuOptions = createMenuOptions(routes, {\r\n * labelFormatter: t, // vue-i18n 的 t 函数\r\n * filter: route => !route.meta?.hidden,\r\n * })\r\n * ```\r\n *\r\n * @example 自定义 key 取值\r\n * ```ts\r\n * const menuOptions = createMenuOptions(routes, {\r\n * getKey: route => route.name || route.path,\r\n * })\r\n * ```\r\n */\r\n\r\nimport { h, type VNode } from 'vue'\r\nimport { Icon } from '@iconify/vue'\r\nimport type { MenuOption } from 'naive-ui/es'\r\nimport type { RouteItem } from './types'\r\n\r\n/**\r\n * 菜单适配器配置\r\n */\r\nexport interface MenuAdapterConfig {\r\n /**\r\n * 标签文本格式化函数(用于 i18n)\r\n * 默认:原样返回 title\r\n */\r\n labelFormatter?: (title: string) => string\r\n\r\n /**\r\n * 获取菜单项的唯一 key\r\n * 默认:`normalizePath(route.path)`\r\n */\r\n getKey?: (route: RouteItem) => string\r\n\r\n /**\r\n * 获取显示文本\r\n * 默认:`route.meta?.title || route.name || ''`\r\n */\r\n getLabel?: (route: RouteItem) => string\r\n\r\n /**\r\n * 路由过滤器 — return false 排除该项\r\n * 默认:排除 `meta.hidden === true`\r\n */\r\n filter?: (route: RouteItem) => boolean\r\n\r\n /**\r\n * 自定义图标渲染\r\n * 默认:字符串 → Iconify Icon;函数 → 直接调用\r\n */\r\n renderIcon?: (\r\n icon: string | (() => VNode) | undefined\r\n ) => (() => VNode) | undefined\r\n\r\n /**\r\n * 是否递归处理 children\r\n * 默认:true\r\n */\r\n recursive?: boolean\r\n}\r\n\r\n// ====== 内置默认值 ======\r\n\r\nconst normalizePath = (path: string): string =>\r\n path.startsWith('/') ? path : `/${path}`\r\n\r\nconst defaultGetKey = (route: RouteItem): string =>\r\n route.path ? normalizePath(route.path) : ''\r\n\r\nconst defaultGetLabel = (route: RouteItem): string =>\r\n route.meta?.title || route.name || ''\r\n\r\nconst defaultFilter = (route: RouteItem): boolean => !route.meta?.hidden\r\n\r\nconst defaultRenderIcon = (\r\n icon: string | (() => VNode) | undefined\r\n): (() => VNode) | undefined => {\r\n if (!icon) return undefined\r\n if (typeof icon === 'string') {\r\n return () =>\r\n h(\r\n 'span',\r\n {\r\n class: 'n-icon',\r\n style: 'display: inline-flex; align-items: center;',\r\n },\r\n [h(Icon, { icon })]\r\n )\r\n }\r\n if (typeof icon === 'function') return icon\r\n return undefined\r\n}\r\n\r\n/**\r\n * 将路由数据转换为 NMenu 的 MenuOption[]\r\n *\r\n * 支持的输入格式:\r\n * 1. **Vue Router RouteRecordRaw** — 直接传 `router.getRoutes()` 或手写路由表\r\n * 2. **后端 JSON 路由表** — `{ path, meta: { title, icon }, children }`\r\n * 3. **自定义格式** — 通过 config 完全自定义 key/label/icon 的取值逻辑\r\n *\r\n * @param routes 路由数据数组\r\n * @param config 适配器配置\r\n * @returns NMenu 可直接使用的 MenuOption[]\r\n */\r\nexport function createMenuOptions(\r\n routes: RouteItem[],\r\n config: MenuAdapterConfig = {}\r\n): MenuOption[] {\r\n const {\r\n labelFormatter = (s: string) => s,\r\n getKey = defaultGetKey,\r\n getLabel = defaultGetLabel,\r\n filter = defaultFilter,\r\n renderIcon = defaultRenderIcon,\r\n recursive = true,\r\n } = config\r\n\r\n const convert = (items: RouteItem[]): MenuOption[] => {\r\n return items.filter(filter).map(item => {\r\n const icon = item.meta?.icon || (item as any).icon\r\n const children =\r\n recursive && item.children?.length ? convert(item.children) : undefined\r\n\r\n return {\r\n key: getKey(item),\r\n label: labelFormatter(getLabel(item)),\r\n disabled: item.disabled || false,\r\n icon: renderIcon(icon),\r\n ...(item.type && { type: item.type }),\r\n ...(children?.length && { children }),\r\n }\r\n }) as MenuOption[]\r\n }\r\n\r\n return convert(routes)\r\n}\r\n\r\n/**\r\n * 将路由树扁平化为一维数组(常用于搜索、快捷导航)\r\n *\r\n * @param routes 路由数据数组\r\n * @param filter 过滤器(默认排除 hidden)\r\n * @returns 扁平化后的路由数组\r\n */\r\nexport function flattenRoutes(\r\n routes: RouteItem[],\r\n filter: (route: RouteItem) => boolean = defaultFilter\r\n): RouteItem[] {\r\n const result: RouteItem[] = []\r\n const walk = (items: RouteItem[]) => {\r\n for (const item of items) {\r\n if (filter(item)) {\r\n result.push(item)\r\n }\r\n if (item.children?.length) {\r\n walk(item.children)\r\n }\r\n }\r\n }\r\n walk(routes)\r\n return result\r\n}\r\n"],"mappings":"4DAiFA,MAAM,EAAiB,GACrB,EAAK,WAAW,IAAI,CAAG,EAAO,IAAI,IAE9B,EAAiB,GACrB,EAAM,KAAO,EAAc,EAAM,KAAK,CAAG,GAErC,EAAmB,GACvB,EAAM,MAAM,OAAS,EAAM,MAAQ,GAE/B,EAAiB,GAA8B,CAAC,EAAM,MAAM,OAE5D,EACJ,GAC8B,CACzB,KACL,IAAI,OAAO,GAAS,SAClB,UACE,EACE,OACA,CACE,MAAO,SACP,MAAO,6CACR,CACD,CAAC,EAAE,EAAM,CAAE,OAAM,CAAC,CAAC,CACpB,CAEL,GAAI,OAAO,GAAS,WAAY,OAAO,IAgBzC,SAAgB,EACd,EACA,EAA4B,EAAE,CAChB,CACd,GAAM,CACJ,iBAAkB,GAAc,EAChC,SAAS,EACT,WAAW,EACX,SAAS,EACT,aAAa,EACb,YAAY,IACV,EAEE,EAAW,GACR,EAAM,OAAO,EAAO,CAAC,IAAI,GAAQ,CACtC,IAAM,EAAO,EAAK,MAAM,MAAS,EAAa,KACxC,EACJ,GAAa,EAAK,UAAU,OAAS,EAAQ,EAAK,SAAS,CAAG,IAAA,GAEhE,MAAO,CACL,IAAK,EAAO,EAAK,CACjB,MAAO,EAAe,EAAS,EAAK,CAAC,CACrC,SAAU,EAAK,UAAY,GAC3B,KAAM,EAAW,EAAK,CACtB,GAAI,EAAK,MAAQ,CAAE,KAAM,EAAK,KAAM,CACpC,GAAI,GAAU,QAAU,CAAE,WAAU,CACrC,EACD,CAGJ,OAAO,EAAQ,EAAO,CAUxB,SAAgB,EACd,EACA,EAAwC,EAC3B,CACb,IAAM,EAAsB,EAAE,CACxB,EAAQ,GAAuB,CACnC,IAAK,IAAM,KAAQ,EACb,EAAO,EAAK,EACd,EAAO,KAAK,EAAK,CAEf,EAAK,UAAU,QACjB,EAAK,EAAK,SAAS,EAKzB,OADA,EAAK,EAAO,CACL"}
1
+ {"version":3,"file":"menuAdapter.js","names":["C_Icon"],"sources":["../src/components/_shared/menuAdapter.ts"],"sourcesContent":["/**\n * 菜单适配器 — 将路由数据转换为 NMenu 的 MenuOption[]\n *\n * 设计理念:\n * - 开箱即用:`createMenuOptions(routes)` 零配置即可生成菜单\n * - 完全可控:通过 `MenuAdapterConfig` 定制每一步转换逻辑\n * - i18n 解耦:`labelFormatter` 回调注入翻译函数,不绑定任何 i18n 方案\n *\n * @example 基础用法\n * ```ts\n * import { createMenuOptions } from '@robot-admin/naive-ui-components'\n *\n * const menuOptions = createMenuOptions(routes)\n * ```\n *\n * @example 带 i18n + 过滤\n * ```ts\n * const menuOptions = createMenuOptions(routes, {\n * labelFormatter: t, // vue-i18n 的 t 函数\n * filter: route => !route.meta?.hidden,\n * })\n * ```\n *\n * @example 自定义 key 取值\n * ```ts\n * const menuOptions = createMenuOptions(routes, {\n * getKey: route => route.name || route.path,\n * })\n * ```\n */\n\nimport { h, type VNode } from 'vue'\nimport { C_Icon } from '../C_Icon'\nimport type { MenuOption } from 'naive-ui/es'\nimport type { RouteItem } from './types'\n\n/**\n * 菜单适配器配置\n */\nexport interface MenuAdapterConfig {\n /**\n * 标签文本格式化函数(用于 i18n)\n * 默认:原样返回 title\n */\n labelFormatter?: (title: string) => string\n\n /**\n * 获取菜单项的唯一 key\n * 默认:`normalizePath(route.path)`\n */\n getKey?: (route: RouteItem) => string\n\n /**\n * 获取显示文本\n * 默认:`route.meta?.title || route.name || ''`\n */\n getLabel?: (route: RouteItem) => string\n\n /**\n * 路由过滤器 — return false 排除该项\n * 默认:排除 `meta.hidden === true`\n */\n filter?: (route: RouteItem) => boolean\n\n /**\n * 自定义图标渲染\n * 默认:字符串 → Iconify Icon;函数 → 直接调用\n */\n renderIcon?: (\n icon: string | (() => VNode) | undefined\n ) => (() => VNode) | undefined\n\n /**\n * 是否递归处理 children\n * 默认:true\n */\n recursive?: boolean\n}\n\n// ====== 内置默认值 ======\n\nconst normalizePath = (path: string): string =>\n path.startsWith('/') ? path : `/${path}`\n\nconst defaultGetKey = (route: RouteItem): string =>\n route.path ? normalizePath(route.path) : ''\n\nconst defaultGetLabel = (route: RouteItem): string =>\n route.meta?.title || route.name || ''\n\nconst defaultFilter = (route: RouteItem): boolean => !route.meta?.hidden\n\nconst defaultRenderIcon = (\n icon: string | (() => VNode) | undefined\n): (() => VNode) | undefined => {\n if (!icon) return undefined\n if (typeof icon === 'string') {\n return () => h(C_Icon, { name: icon, size: 18 })\n }\n if (typeof icon === 'function') return icon\n return undefined\n}\n\n/**\n * 将路由数据转换为 NMenu 的 MenuOption[]\n *\n * 支持的输入格式:\n * 1. **Vue Router RouteRecordRaw** — 直接传 `router.getRoutes()` 或手写路由表\n * 2. **后端 JSON 路由表** — `{ path, meta: { title, icon }, children }`\n * 3. **自定义格式** — 通过 config 完全自定义 key/label/icon 的取值逻辑\n *\n * @param routes 路由数据数组\n * @param config 适配器配置\n * @returns NMenu 可直接使用的 MenuOption[]\n */\nexport function createMenuOptions(\n routes: RouteItem[],\n config: MenuAdapterConfig = {}\n): MenuOption[] {\n const {\n labelFormatter = (s: string) => s,\n getKey = defaultGetKey,\n getLabel = defaultGetLabel,\n filter = defaultFilter,\n renderIcon = defaultRenderIcon,\n recursive = true,\n } = config\n\n const convert = (items: RouteItem[]): MenuOption[] => {\n return items.filter(filter).map(item => {\n const icon = item.meta?.icon || (item as any).icon\n const children =\n recursive && item.children?.length ? convert(item.children) : undefined\n\n return {\n key: getKey(item),\n label: labelFormatter(getLabel(item)),\n disabled: item.disabled || false,\n icon: renderIcon(icon),\n ...(item.type && { type: item.type }),\n ...(children?.length && { children }),\n }\n }) as MenuOption[]\n }\n\n return convert(routes)\n}\n\n/**\n * 将路由树扁平化为一维数组(常用于搜索、快捷导航)\n *\n * @param routes 路由数据数组\n * @param filter 过滤器(默认排除 hidden)\n * @returns 扁平化后的路由数组\n */\nexport function flattenRoutes(\n routes: RouteItem[],\n filter: (route: RouteItem) => boolean = defaultFilter\n): RouteItem[] {\n const result: RouteItem[] = []\n const walk = (items: RouteItem[]) => {\n for (const item of items) {\n if (filter(item)) {\n result.push(item)\n }\n if (item.children?.length) {\n walk(item.children)\n }\n }\n }\n walk(routes)\n return result\n}\n"],"mappings":"yDAiFA,MAAM,EAAiB,GACrB,EAAK,WAAW,IAAI,CAAG,EAAO,IAAI,IAE9B,EAAiB,GACrB,EAAM,KAAO,EAAc,EAAM,KAAK,CAAG,GAErC,EAAmB,GACvB,EAAM,MAAM,OAAS,EAAM,MAAQ,GAE/B,EAAiB,GAA8B,CAAC,EAAM,MAAM,OAE5D,EACJ,GAC8B,CACzB,KACL,IAAI,OAAO,GAAS,SAClB,UAAa,EAAEA,EAAQ,CAAE,KAAM,EAAM,KAAM,GAAI,CAAC,CAElD,GAAI,OAAO,GAAS,WAAY,OAAO,IAgBzC,SAAgB,EACd,EACA,EAA4B,EAAE,CAChB,CACd,GAAM,CACJ,iBAAkB,GAAc,EAChC,SAAS,EACT,WAAW,EACX,SAAS,EACT,aAAa,EACb,YAAY,IACV,EAEE,EAAW,GACR,EAAM,OAAO,EAAO,CAAC,IAAI,GAAQ,CACtC,IAAM,EAAO,EAAK,MAAM,MAAS,EAAa,KACxC,EACJ,GAAa,EAAK,UAAU,OAAS,EAAQ,EAAK,SAAS,CAAG,IAAA,GAEhE,MAAO,CACL,IAAK,EAAO,EAAK,CACjB,MAAO,EAAe,EAAS,EAAK,CAAC,CACrC,SAAU,EAAK,UAAY,GAC3B,KAAM,EAAW,EAAK,CACtB,GAAI,EAAK,MAAQ,CAAE,KAAM,EAAK,KAAM,CACpC,GAAI,GAAU,QAAU,CAAE,WAAU,CACrC,EACD,CAGJ,OAAO,EAAQ,EAAO,CAUxB,SAAgB,EACd,EACA,EAAwC,EAC3B,CACb,IAAM,EAAsB,EAAE,CACxB,EAAQ,GAAuB,CACnC,IAAK,IAAM,KAAQ,EACb,EAAO,EAAK,EACd,EAAO,KAAK,EAAK,CAEf,EAAK,UAAU,QACjB,EAAK,EAAK,SAAS,EAKzB,OADA,EAAK,EAAO,CACL"}
@@ -67,8 +67,8 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
67
67
  "onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
68
68
  }>, {
69
69
  editable: boolean;
70
- initialView: CalendarViewType;
71
70
  events: CalendarEvent[];
71
+ initialView: CalendarViewType;
72
72
  showAddDialog: boolean;
73
73
  showEditDialog: boolean;
74
74
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -69,22 +69,22 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
69
69
  type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
70
70
  declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
71
71
  change: (activeKeys: string[]) => any;
72
- collapse: (key: string) => any;
73
72
  "update:activeKeys": (keys: string[]) => any;
74
73
  expand: (key: string) => any;
74
+ collapse: (key: string) => any;
75
75
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
76
76
  onChange?: ((activeKeys: string[]) => any) | undefined;
77
- onCollapse?: ((key: string) => any) | undefined;
78
77
  "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
79
78
  onExpand?: ((key: string) => any) | undefined;
79
+ onCollapse?: ((key: string) => any) | undefined;
80
80
  }>, {
81
- bordered: boolean;
82
- persistKey: string;
83
81
  activeKeys: string[];
84
82
  defaultActiveKeys: string[];
85
83
  accordion: boolean;
86
84
  variant: CollapsePanelVariant;
87
85
  expandIconPosition: ExpandIconPosition;
86
+ bordered: boolean;
87
+ persistKey: string;
88
88
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
89
89
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
90
90
  declare const _default: typeof __VLS_export;
@@ -52,23 +52,23 @@ interface ImageCropperEmits {
52
52
  //#region src/components/C_ImageCropper/index.vue.d.ts
53
53
  declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
54
54
  error: (error: Event) => any;
55
- cancel: () => any;
56
55
  ready: () => any;
57
56
  crop: (result: any) => any;
58
57
  confirm: (result: any) => any;
58
+ cancel: () => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
60
  onError?: ((error: Event) => any) | undefined;
61
- onCancel?: (() => any) | undefined;
62
61
  onReady?: (() => any) | undefined;
63
62
  onCrop?: ((result: any) => any) | undefined;
64
63
  onConfirm?: ((result: any) => any) | undefined;
64
+ onCancel?: (() => any) | undefined;
65
65
  }>, {
66
- height: string | number;
67
66
  disabled: boolean;
68
- aspectRatio: number;
67
+ height: string | number;
69
68
  showPreview: boolean;
70
69
  showToolbar: boolean;
71
70
  src: string;
71
+ aspectRatio: number;
72
72
  outputFormat: CropOutputFormat;
73
73
  outputQuality: number;
74
74
  maxOutputWidth: number;
@@ -116,19 +116,12 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
116
116
  "onItem-remove"?: ((item: DraggableItem, index: number) => any) | undefined;
117
117
  "onList-change"?: ((list: DraggableItem[]) => any) | undefined;
118
118
  }>, {
119
- sort: boolean;
120
119
  disabled: boolean;
120
+ sort: boolean;
121
121
  modelValue: DraggableItem[];
122
- layout: LayoutMode;
122
+ delay: number;
123
123
  group: string | GroupOptions;
124
- alignItems: AlignItems;
125
- direction: "vertical" | "horizontal";
126
- flexWrap: boolean;
127
- justifyContent: JustifyContent;
128
124
  animation: number;
129
- gap: string | number;
130
- itemClass: string;
131
- delay: number;
132
125
  handle: string;
133
126
  showHandle: boolean;
134
127
  ghostClass: string;
@@ -136,12 +129,19 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
136
129
  dragClass: string;
137
130
  wrapperClass: string;
138
131
  listClass: string;
132
+ itemClass: string;
139
133
  showEmptyState: boolean;
140
134
  emptyText: string;
141
135
  swapThreshold: number;
142
136
  invertSwap: boolean;
137
+ direction: "vertical" | "horizontal";
138
+ layout: LayoutMode;
143
139
  gridColumns: number;
144
140
  gridRows: number;
141
+ gap: string | number;
142
+ flexWrap: boolean;
143
+ justifyContent: JustifyContent;
144
+ alignItems: AlignItems;
145
145
  customStyles: Record<string, string | number>;
146
146
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
147
147
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1296,10 +1296,66 @@ declare const useDynamicFormState: () => {
1296
1296
  readonly rules?: readonly {
1297
1297
  readonly type?: RuleType | undefined;
1298
1298
  readonly required?: boolean | undefined;
1299
- readonly level?: "warning" | "error" | undefined;
1299
+ readonly options?: {
1300
+ readonly suppressWarning?: boolean | undefined;
1301
+ readonly suppressValidatorError?: boolean | undefined;
1302
+ readonly first?: boolean | undefined;
1303
+ readonly firstFields?: boolean | readonly string[] | undefined;
1304
+ readonly messages?: {
1305
+ readonly default?: (string | ((...args: unknown[]) => string)) | undefined;
1306
+ readonly required?: (string | ((args_0: string | undefined) => string)) | undefined;
1307
+ readonly enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1308
+ readonly whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
1309
+ readonly date?: {
1310
+ readonly format?: (string | ((...args: unknown[]) => string)) | undefined;
1311
+ readonly parse?: (string | ((...args: unknown[]) => string)) | undefined;
1312
+ readonly invalid?: (string | ((...args: unknown[]) => string)) | undefined;
1313
+ } | undefined;
1314
+ readonly types?: {
1315
+ readonly string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1316
+ readonly method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1317
+ readonly array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1318
+ readonly object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1319
+ readonly number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1320
+ readonly date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1321
+ readonly boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1322
+ readonly integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1323
+ readonly float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1324
+ readonly regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1325
+ readonly email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1326
+ readonly url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1327
+ readonly hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1328
+ } | undefined;
1329
+ readonly string?: {
1330
+ readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1331
+ readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1332
+ readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1333
+ readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
1334
+ } | undefined;
1335
+ readonly number?: {
1336
+ readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1337
+ readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1338
+ readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1339
+ readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
1340
+ } | undefined;
1341
+ readonly array?: {
1342
+ readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1343
+ readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1344
+ readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1345
+ readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
1346
+ } | undefined;
1347
+ readonly pattern?: {
1348
+ readonly mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
1349
+ } | undefined;
1350
+ } | undefined;
1351
+ readonly keys?: readonly string[] | undefined;
1352
+ readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
1353
+ } | undefined;
1354
+ readonly trigger?: string | readonly string[] | undefined;
1300
1355
  readonly key?: string | undefined;
1301
- readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
1302
1356
  readonly pattern?: (RegExp | string) | undefined;
1357
+ readonly level?: "warning" | "error" | undefined;
1358
+ readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
1303
1359
  readonly min?: number | undefined;
1304
1360
  readonly max?: number | undefined;
1305
1361
  readonly len?: number | undefined;
@@ -1448,61 +1504,6 @@ declare const useDynamicFormState: () => {
1448
1504
  readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
1449
1505
  }[];
1450
1506
  } | undefined;
1451
- readonly options?: {
1452
- readonly suppressWarning?: boolean | undefined;
1453
- readonly suppressValidatorError?: boolean | undefined;
1454
- readonly first?: boolean | undefined;
1455
- readonly firstFields?: boolean | readonly string[] | undefined;
1456
- readonly messages?: {
1457
- readonly default?: (string | ((...args: unknown[]) => string)) | undefined;
1458
- readonly required?: (string | ((args_0: string | undefined) => string)) | undefined;
1459
- readonly enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1460
- readonly whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
1461
- readonly date?: {
1462
- readonly format?: (string | ((...args: unknown[]) => string)) | undefined;
1463
- readonly parse?: (string | ((...args: unknown[]) => string)) | undefined;
1464
- readonly invalid?: (string | ((...args: unknown[]) => string)) | undefined;
1465
- } | undefined;
1466
- readonly types?: {
1467
- readonly string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1468
- readonly method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1469
- readonly array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1470
- readonly object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1471
- readonly number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1472
- readonly date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1473
- readonly boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1474
- readonly integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1475
- readonly float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1476
- readonly regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1477
- readonly email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1478
- readonly url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1479
- readonly hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1480
- } | undefined;
1481
- readonly string?: {
1482
- readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1483
- readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1484
- readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1485
- readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
1486
- } | undefined;
1487
- readonly number?: {
1488
- readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1489
- readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1490
- readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1491
- readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
1492
- } | undefined;
1493
- readonly array?: {
1494
- readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1495
- readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1496
- readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1497
- readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
1498
- } | undefined;
1499
- readonly pattern?: {
1500
- readonly mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
1501
- } | undefined;
1502
- } | undefined;
1503
- readonly keys?: readonly string[] | undefined;
1504
- readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
1505
- } | undefined;
1506
1507
  readonly defaultField?: {
1507
1508
  readonly type?: RuleType | undefined;
1508
1509
  readonly required?: boolean | undefined;
@@ -1930,7 +1931,6 @@ declare const useDynamicFormState: () => {
1930
1931
  }[] | undefined;
1931
1932
  readonly transform?: ((value: Value) => Value) | undefined;
1932
1933
  readonly message?: string | ((a?: string) => string) | undefined;
1933
- readonly trigger?: string | readonly string[] | undefined;
1934
1934
  readonly renderMessage?: (() => vue.VNodeChild) | undefined;
1935
1935
  readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
1936
1936
  }[] | undefined;
@@ -3573,10 +3573,66 @@ declare const useDynamicFormState: () => {
3573
3573
  readonly rules?: readonly {
3574
3574
  readonly type?: RuleType | undefined;
3575
3575
  readonly required?: boolean | undefined;
3576
- readonly level?: "warning" | "error" | undefined;
3576
+ readonly options?: {
3577
+ readonly suppressWarning?: boolean | undefined;
3578
+ readonly suppressValidatorError?: boolean | undefined;
3579
+ readonly first?: boolean | undefined;
3580
+ readonly firstFields?: boolean | readonly string[] | undefined;
3581
+ readonly messages?: {
3582
+ readonly default?: (string | ((...args: unknown[]) => string)) | undefined;
3583
+ readonly required?: (string | ((args_0: string | undefined) => string)) | undefined;
3584
+ readonly enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3585
+ readonly whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
3586
+ readonly date?: {
3587
+ readonly format?: (string | ((...args: unknown[]) => string)) | undefined;
3588
+ readonly parse?: (string | ((...args: unknown[]) => string)) | undefined;
3589
+ readonly invalid?: (string | ((...args: unknown[]) => string)) | undefined;
3590
+ } | undefined;
3591
+ readonly types?: {
3592
+ readonly string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3593
+ readonly method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3594
+ readonly array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3595
+ readonly object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3596
+ readonly number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3597
+ readonly date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3598
+ readonly boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3599
+ readonly integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3600
+ readonly float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3601
+ readonly regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3602
+ readonly email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3603
+ readonly url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3604
+ readonly hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3605
+ } | undefined;
3606
+ readonly string?: {
3607
+ readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3608
+ readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3609
+ readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3610
+ readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
3611
+ } | undefined;
3612
+ readonly number?: {
3613
+ readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3614
+ readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3615
+ readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3616
+ readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
3617
+ } | undefined;
3618
+ readonly array?: {
3619
+ readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3620
+ readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3621
+ readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3622
+ readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
3623
+ } | undefined;
3624
+ readonly pattern?: {
3625
+ readonly mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
3626
+ } | undefined;
3627
+ } | undefined;
3628
+ readonly keys?: readonly string[] | undefined;
3629
+ readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
3630
+ } | undefined;
3631
+ readonly trigger?: string | readonly string[] | undefined;
3577
3632
  readonly key?: string | undefined;
3578
- readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
3579
3633
  readonly pattern?: (RegExp | string) | undefined;
3634
+ readonly level?: "warning" | "error" | undefined;
3635
+ readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
3580
3636
  readonly min?: number | undefined;
3581
3637
  readonly max?: number | undefined;
3582
3638
  readonly len?: number | undefined;
@@ -3725,61 +3781,6 @@ declare const useDynamicFormState: () => {
3725
3781
  readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
3726
3782
  }[];
3727
3783
  } | undefined;
3728
- readonly options?: {
3729
- readonly suppressWarning?: boolean | undefined;
3730
- readonly suppressValidatorError?: boolean | undefined;
3731
- readonly first?: boolean | undefined;
3732
- readonly firstFields?: boolean | readonly string[] | undefined;
3733
- readonly messages?: {
3734
- readonly default?: (string | ((...args: unknown[]) => string)) | undefined;
3735
- readonly required?: (string | ((args_0: string | undefined) => string)) | undefined;
3736
- readonly enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3737
- readonly whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
3738
- readonly date?: {
3739
- readonly format?: (string | ((...args: unknown[]) => string)) | undefined;
3740
- readonly parse?: (string | ((...args: unknown[]) => string)) | undefined;
3741
- readonly invalid?: (string | ((...args: unknown[]) => string)) | undefined;
3742
- } | undefined;
3743
- readonly types?: {
3744
- readonly string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3745
- readonly method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3746
- readonly array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3747
- readonly object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3748
- readonly number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3749
- readonly date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3750
- readonly boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3751
- readonly integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3752
- readonly float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3753
- readonly regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3754
- readonly email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3755
- readonly url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3756
- readonly hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3757
- } | undefined;
3758
- readonly string?: {
3759
- readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3760
- readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3761
- readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3762
- readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
3763
- } | undefined;
3764
- readonly number?: {
3765
- readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3766
- readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3767
- readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3768
- readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
3769
- } | undefined;
3770
- readonly array?: {
3771
- readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3772
- readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3773
- readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3774
- readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
3775
- } | undefined;
3776
- readonly pattern?: {
3777
- readonly mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
3778
- } | undefined;
3779
- } | undefined;
3780
- readonly keys?: readonly string[] | undefined;
3781
- readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
3782
- } | undefined;
3783
3784
  readonly defaultField?: {
3784
3785
  readonly type?: RuleType | undefined;
3785
3786
  readonly required?: boolean | undefined;
@@ -4207,7 +4208,6 @@ declare const useDynamicFormState: () => {
4207
4208
  }[] | undefined;
4208
4209
  readonly transform?: ((value: Value) => Value) | undefined;
4209
4210
  readonly message?: string | ((a?: string) => string) | undefined;
4210
- readonly trigger?: string | readonly string[] | undefined;
4211
4211
  readonly renderMessage?: (() => vue.VNodeChild) | undefined;
4212
4212
  readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
4213
4213
  }[] | undefined;
@@ -259,9 +259,9 @@ declare const __VLS_export: vue.DefineComponent<Props, {
259
259
  onReady?: ((graph: any) => any) | undefined;
260
260
  "onData-change"?: ((data: DiagramData) => any) | undefined;
261
261
  }>, {
262
- width: string | number;
263
- height: string | number;
264
262
  theme: "light" | "dark";
263
+ height: string | number;
264
+ width: string | number;
265
265
  readonly: boolean;
266
266
  showToolbar: boolean;
267
267
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -89,11 +89,11 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
89
89
  "onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
90
90
  "onImage-error"?: ((item: WaterFallItem) => any) | undefined;
91
91
  }>, {
92
+ loading: boolean;
93
+ gap: number;
92
94
  columns: number;
93
95
  animationDuration: number;
94
- gap: number;
95
96
  infinite: boolean;
96
- loading: boolean;
97
97
  lazy: boolean;
98
98
  skeleton: boolean;
99
99
  skeletonCount: number;
@@ -590,8 +590,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
590
590
  clearAllSelections(): void;
591
591
  };
592
592
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
593
- cancel: (rowData: DataRecord, rowIndex: number) => any;
594
593
  save: (rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any;
594
+ cancel: (rowData: DataRecord, rowIndex: number) => any;
595
595
  "pagination-change": (...args: unknown[]) => any;
596
596
  "row-delete": (...args: unknown[]) => any;
597
597
  "expand-change": (expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any;
@@ -606,8 +606,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
606
606
  "view-detail": (data: DataRecord) => any;
607
607
  "column-change": (columns: TableColumn[]) => any;
608
608
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
609
- onCancel?: ((rowData: DataRecord, rowIndex: number) => any) | undefined;
610
609
  onSave?: ((rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
610
+ onCancel?: ((rowData: DataRecord, rowIndex: number) => any) | undefined;
611
611
  "onPagination-change"?: ((...args: unknown[]) => any) | undefined;
612
612
  "onRow-delete"?: ((...args: unknown[]) => any) | undefined;
613
613
  "onExpand-change"?: ((expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any) | undefined;
@@ -50,15 +50,15 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
50
50
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
51
51
  onError?: ((error: Error) => any) | undefined;
52
52
  }>, {
53
+ color: string;
54
+ size: number;
55
+ mode: RenderMode;
53
56
  showBorder: boolean;
54
57
  label: string;
55
58
  showLabel: boolean;
56
- size: number;
57
- mode: RenderMode;
58
- color: string;
59
- margin: number;
60
59
  bgColor: string;
61
60
  errorCorrectionLevel: ErrorCorrectionLevel;
61
+ margin: number;
62
62
  logo: LogoOptions;
63
63
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
64
64
  declare const _default: typeof __VLS_export;
@@ -107,9 +107,9 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
107
107
  onUndo?: (() => any) | undefined;
108
108
  onRedo?: (() => any) | undefined;
109
109
  }>, {
110
- width: number | string;
111
- height: number | string;
112
110
  disabled: boolean;
111
+ height: number | string;
112
+ width: number | string;
113
113
  readonly: boolean;
114
114
  showToolbar: boolean;
115
115
  maxHistory: number;
@@ -66,24 +66,24 @@ type __VLS_Slots = {} & {
66
66
  second?: (props: typeof __VLS_13) => any;
67
67
  };
68
68
  declare const __VLS_base: vue.DefineComponent<Props, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
69
- resize: (firstSize: number, secondSize: number) => any;
69
+ expand: (target: CollapseTarget) => any;
70
70
  collapse: (target: CollapseTarget) => any;
71
71
  "drag-start": (size: number) => any;
72
72
  "drag-end": (size: number) => any;
73
- expand: (target: CollapseTarget) => any;
73
+ resize: (firstSize: number, secondSize: number) => any;
74
74
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
75
- onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
75
+ onExpand?: ((target: CollapseTarget) => any) | undefined;
76
76
  onCollapse?: ((target: CollapseTarget) => any) | undefined;
77
77
  "onDrag-start"?: ((size: number) => any) | undefined;
78
78
  "onDrag-end"?: ((size: number) => any) | undefined;
79
- onExpand?: ((target: CollapseTarget) => any) | undefined;
79
+ onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
80
80
  }>, {
81
81
  disabled: boolean;
82
82
  step: number;
83
83
  direction: SplitDirection;
84
+ maxSize: number;
84
85
  defaultSize: number;
85
86
  minSize: number;
86
- maxSize: number;
87
87
  collapsible: boolean;
88
88
  showCollapseButton: boolean;
89
89
  gutterSize: number;
@@ -48,9 +48,9 @@ declare const __VLS_export: vue.DefineComponent<TimeProps, TimeExpose, {}, {}, {
48
48
  "onChange-start"?: ((time: number | null) => any) | undefined;
49
49
  "onChange-end"?: ((time: number | null) => any) | undefined;
50
50
  }>, {
51
- format: string;
52
- mode: TimeMode;
53
51
  placeholder: string;
52
+ mode: TimeMode;
53
+ format: string;
54
54
  startPlaceholder: string;
55
55
  endPlaceholder: string;
56
56
  attrs: Record<string, any>;
@@ -91,24 +91,24 @@ type __VLS_Slots = {} & {
91
91
  };
92
92
  declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
93
93
  add: (parentNode?: TreeNodeData | undefined) => any;
94
+ refresh: () => any;
94
95
  "node-select": (node: TreeNodeData | null, selectedKeys: (string | number)[]) => any;
95
96
  "node-action": (action: string, node: TreeNodeData) => any;
96
97
  "node-drop": (info: DropInfo) => any;
97
- refresh: () => any;
98
98
  }, string, vue.PublicProps, Readonly<TreeProps> & Readonly<{
99
99
  onAdd?: ((parentNode?: TreeNodeData | undefined) => any) | undefined;
100
+ onRefresh?: (() => any) | undefined;
100
101
  "onNode-select"?: ((node: TreeNodeData | null, selectedKeys: (string | number)[]) => any) | undefined;
101
102
  "onNode-action"?: ((action: string, node: TreeNodeData) => any) | undefined;
102
103
  "onNode-drop"?: ((info: DropInfo) => any) | undefined;
103
- onRefresh?: (() => any) | undefined;
104
104
  }>, {
105
+ actions: ActionConfig[];
105
106
  mode: TreeMode;
106
- draggable: boolean;
107
+ showToolbar: boolean;
107
108
  labelField: string;
108
- childrenField: string;
109
109
  keyField: string;
110
- actions: ActionConfig[];
111
- showToolbar: boolean;
110
+ childrenField: string;
111
+ draggable: boolean;
112
112
  searchPattern: string;
113
113
  searchable: boolean;
114
114
  searchPlaceholder: string;
@@ -239,15 +239,15 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
239
239
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
240
240
  change: (value: WorkflowData) => any;
241
241
  "update:modelValue": (value: WorkflowData) => any;
242
- "validate-error": (errors: ValidationError[]) => any;
243
242
  save: (data: WorkflowData) => any;
243
+ "validate-error": (errors: ValidationError[]) => any;
244
244
  "node-click": (node: WorkflowNode) => any;
245
245
  "edge-click": (edge: WorkflowEdge) => any;
246
246
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
247
247
  onChange?: ((value: WorkflowData) => any) | undefined;
248
248
  "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
249
- "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
250
249
  onSave?: ((data: WorkflowData) => any) | undefined;
250
+ "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
251
251
  "onNode-click"?: ((node: WorkflowNode) => any) | undefined;
252
252
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
253
253
  }>, {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.6.2",
6
+ "version": "0.6.3",
7
7
  "description": "基于 Naive UI 的 Vue 3 组件库",
8
8
  "type": "module",
9
9
  "main": "dist/index.cjs",