@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
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import * as naive_ui0 from "naive-ui";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { CSSProperties, Component, ComputedRef, Ref, VNode } from "vue";
|
|
4
|
+
import * as _robot_admin_form_validate0 from "@robot-admin/form-validate";
|
|
4
5
|
import { FieldRule } from "@robot-admin/form-validate";
|
|
5
6
|
import { FormInst } from "naive-ui/es";
|
|
6
7
|
import * as naive_ui_es_form_src_interface0 from "naive-ui/es/form/src/interface";
|
|
7
8
|
import { FormInst as FormInst$1, FormRules } from "naive-ui/es/form";
|
|
8
9
|
|
|
9
10
|
//#region src/components/C_Form/types.d.ts
|
|
11
|
+
/**
|
|
12
|
+
* 表单模式
|
|
13
|
+
* @description create = 新建(空白表单),edit = 编辑(回填已有数据 + 脏检查)
|
|
14
|
+
*/
|
|
15
|
+
type FormMode = "create" | "edit";
|
|
10
16
|
/**
|
|
11
17
|
* 支持的布局类型
|
|
12
18
|
* @description 定义表单支持的所有布局模式
|
|
@@ -230,6 +236,18 @@ interface FormOption {
|
|
|
230
236
|
required?: boolean;
|
|
231
237
|
dependsOn?: string | string[];
|
|
232
238
|
showWhen?: (formModel: Record<string, any>) => boolean;
|
|
239
|
+
/** 字段级禁用(优先级高于全局 config.disabled) */
|
|
240
|
+
disabled?: boolean | ((formModel: Record<string, any>) => boolean);
|
|
241
|
+
/** 字段级只读(优先级高于全局 config.readonly) */
|
|
242
|
+
readonly?: boolean | ((formModel: Record<string, any>) => boolean);
|
|
243
|
+
/** 联动赋值:其他字段变化时自动计算本字段的值 */
|
|
244
|
+
valueWhen?: (formModel: Record<string, any>) => any;
|
|
245
|
+
/** 异步数据源:select / cascader / checkbox / radio 的远程选项加载 */
|
|
246
|
+
asyncOptions?: (formModel: Record<string, any>) => Promise<OptionItem[]>;
|
|
247
|
+
/** 联动校验规则:根据表单数据动态返回校验规则 */
|
|
248
|
+
rulesWhen?: (formModel: Record<string, any>) => FieldRule[];
|
|
249
|
+
/** 跨字段校验:需要引用多个字段值的验证函数,返回错误消息或 null */
|
|
250
|
+
crossFieldValidator?: (formModel: Record<string, any>) => string | null;
|
|
233
251
|
}
|
|
234
252
|
/**
|
|
235
253
|
* 表单提交事件参数
|
|
@@ -261,6 +279,16 @@ interface FormInstance {
|
|
|
261
279
|
initialize(): void;
|
|
262
280
|
layoutType: ComputedRef<LayoutType>;
|
|
263
281
|
shouldShowDefaultActions: ComputedRef<boolean>;
|
|
282
|
+
/** 表单是否被修改过 */
|
|
283
|
+
isDirty: Ref<boolean>;
|
|
284
|
+
/** 获取被修改的字段列表 */
|
|
285
|
+
getChangedFields(): string[];
|
|
286
|
+
/** 检查某字段是否被修改 */
|
|
287
|
+
isFieldDirty(field: string): boolean;
|
|
288
|
+
/** 将当前值设为初始快照(常用于编辑模式加载数据后) */
|
|
289
|
+
markAsClean(): void;
|
|
290
|
+
/** 字段异步选项的 loading 状态 */
|
|
291
|
+
asyncLoadingMap: Ref<Record<string, boolean>>;
|
|
264
292
|
}
|
|
265
293
|
/**
|
|
266
294
|
* 表单数据模型类型(泛型)
|
|
@@ -322,7 +350,7 @@ interface FormConfig extends LayoutCallbacks {
|
|
|
322
350
|
/** 标签宽度,默认 'auto' */
|
|
323
351
|
labelWidth?: string | number;
|
|
324
352
|
/** 尺寸,默认 'medium' */
|
|
325
|
-
size?:
|
|
353
|
+
size?: 'small' | 'medium' | 'large';
|
|
326
354
|
/** 禁用整个表单,默认 false */
|
|
327
355
|
disabled?: boolean;
|
|
328
356
|
/** 只读,默认 false */
|
|
@@ -331,6 +359,10 @@ interface FormConfig extends LayoutCallbacks {
|
|
|
331
359
|
showActions?: boolean;
|
|
332
360
|
/** 值变化时自动校验,默认 false */
|
|
333
361
|
validateOnChange?: boolean;
|
|
362
|
+
/** 表单模式:create = 新建(默认),edit = 编辑(配合 initialValues 实现回填 + 脏检查) */
|
|
363
|
+
mode?: FormMode;
|
|
364
|
+
/** 编辑模式初始值:设置后自动作为脏检查基准 */
|
|
365
|
+
initialValues?: Record<string, any>;
|
|
334
366
|
grid?: GridLayoutConfig;
|
|
335
367
|
inline?: InlineLayoutConfig;
|
|
336
368
|
card?: CardLayoutConfig;
|
|
@@ -340,7 +372,7 @@ interface FormConfig extends LayoutCallbacks {
|
|
|
340
372
|
custom?: CustomLayoutConfig;
|
|
341
373
|
}
|
|
342
374
|
/** 解析后的配置(所有必填字段均已设置默认值) */
|
|
343
|
-
interface ResolvedFormConfig extends Required<Omit<FormConfig, keyof LayoutCallbacks |
|
|
375
|
+
interface ResolvedFormConfig extends Required<Omit<FormConfig, keyof LayoutCallbacks | 'grid' | 'inline' | 'card' | 'tabs' | 'steps' | 'dynamic' | 'custom' | 'initialValues'>> {
|
|
344
376
|
grid?: GridLayoutConfig;
|
|
345
377
|
inline?: InlineLayoutConfig;
|
|
346
378
|
card?: CardLayoutConfig;
|
|
@@ -348,19 +380,20 @@ interface ResolvedFormConfig extends Required<Omit<FormConfig, keyof LayoutCallb
|
|
|
348
380
|
steps?: StepsLayoutConfig;
|
|
349
381
|
dynamic?: DynamicLayoutConfig;
|
|
350
382
|
custom?: CustomLayoutConfig;
|
|
351
|
-
onTabChange?: LayoutCallbacks[
|
|
352
|
-
onTabValidate?: LayoutCallbacks[
|
|
353
|
-
onStepChange?: LayoutCallbacks[
|
|
354
|
-
onStepBeforeChange?: LayoutCallbacks[
|
|
355
|
-
onStepValidate?: LayoutCallbacks[
|
|
356
|
-
onFieldAdd?: LayoutCallbacks[
|
|
357
|
-
onFieldRemove?: LayoutCallbacks[
|
|
358
|
-
onFieldToggle?: LayoutCallbacks[
|
|
359
|
-
onFieldsClear?: LayoutCallbacks[
|
|
360
|
-
onRenderModeChange?: LayoutCallbacks[
|
|
361
|
-
onGroupToggle?: LayoutCallbacks[
|
|
362
|
-
onGroupReset?: LayoutCallbacks[
|
|
363
|
-
onFieldsChange?: LayoutCallbacks[
|
|
383
|
+
onTabChange?: LayoutCallbacks['onTabChange'];
|
|
384
|
+
onTabValidate?: LayoutCallbacks['onTabValidate'];
|
|
385
|
+
onStepChange?: LayoutCallbacks['onStepChange'];
|
|
386
|
+
onStepBeforeChange?: LayoutCallbacks['onStepBeforeChange'];
|
|
387
|
+
onStepValidate?: LayoutCallbacks['onStepValidate'];
|
|
388
|
+
onFieldAdd?: LayoutCallbacks['onFieldAdd'];
|
|
389
|
+
onFieldRemove?: LayoutCallbacks['onFieldRemove'];
|
|
390
|
+
onFieldToggle?: LayoutCallbacks['onFieldToggle'];
|
|
391
|
+
onFieldsClear?: LayoutCallbacks['onFieldsClear'];
|
|
392
|
+
onRenderModeChange?: LayoutCallbacks['onRenderModeChange'];
|
|
393
|
+
onGroupToggle?: LayoutCallbacks['onGroupToggle'];
|
|
394
|
+
onGroupReset?: LayoutCallbacks['onGroupReset'];
|
|
395
|
+
onFieldsChange?: LayoutCallbacks['onFieldsChange'];
|
|
396
|
+
initialValues?: Record<string, any>;
|
|
364
397
|
}
|
|
365
398
|
declare const FORM_DEFAULTS: ResolvedFormConfig;
|
|
366
399
|
/** 拥有自身控制按钮的布局(不显示默认操作按钮) */
|
|
@@ -427,6 +460,11 @@ declare const __VLS_base: vue.DefineComponent<CFormProps, {
|
|
|
427
460
|
initialize: () => void;
|
|
428
461
|
layoutType: vue.ComputedRef<LayoutType>;
|
|
429
462
|
shouldShowDefaultActions: vue.ComputedRef<boolean>;
|
|
463
|
+
isDirty: vue.Ref<boolean, boolean>;
|
|
464
|
+
getChangedFields: () => string[];
|
|
465
|
+
isFieldDirty: (field: string) => boolean;
|
|
466
|
+
markAsClean: () => void;
|
|
467
|
+
asyncLoadingMap: vue.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
430
468
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
431
469
|
"update:modelValue": (model: Record<string, any>) => any;
|
|
432
470
|
submit: (payload: SubmitEventPayload) => any;
|
|
@@ -450,11 +488,7 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
450
488
|
//#endregion
|
|
451
489
|
//#region src/components/C_Form/composables/useFormState.d.ts
|
|
452
490
|
/**
|
|
453
|
-
* C_Form 状态引擎 — 管理表单数据模型、校验规则、验证 API
|
|
454
|
-
* @param options - 表单配置项(响应式)
|
|
455
|
-
* @param config - 解析后的表单配置(响应式)
|
|
456
|
-
* @param formRef - NForm 实例引用
|
|
457
|
-
* @param emit - 组件事件发射器
|
|
491
|
+
* C_Form 状态引擎 — 管理表单数据模型、校验规则、验证 API、字段操作、脏检查、联动
|
|
458
492
|
*/
|
|
459
493
|
declare function useFormState(options: ComputedRef<FormOption[]>, config: ComputedRef<ResolvedFormConfig>, formRef: Ref<FormInst$1 | null>, emit: {
|
|
460
494
|
(e: 'update:modelValue', model: FormModel): void;
|
|
@@ -482,27 +516,44 @@ declare function useFormState(options: ComputedRef<FormOption[]>, config: Comput
|
|
|
482
516
|
setFieldsValue: (fields: FormModel, shouldValidate?: boolean) => Promise<void>;
|
|
483
517
|
handleSubmit: () => Promise<void>;
|
|
484
518
|
handleReset: () => void;
|
|
519
|
+
isDirty: Ref<boolean, boolean>;
|
|
520
|
+
getChangedFields: () => string[];
|
|
521
|
+
isFieldDirty: (field: string) => boolean;
|
|
522
|
+
markAsClean: () => void;
|
|
523
|
+
asyncOptionsCache: Ref<Record<string, OptionItem[]>, Record<string, OptionItem[]>>;
|
|
524
|
+
asyncLoadingMap: Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
485
525
|
};
|
|
486
526
|
//#endregion
|
|
487
527
|
//#region src/components/C_Form/composables/useFormRenderer.d.ts
|
|
488
|
-
/** 组件映射表 — 由调用方(C_Form)注入已解析的组件引用 */
|
|
489
528
|
type ComponentMap = Record<string, Component>;
|
|
490
|
-
/** 单个控件的渲染函数签名 */
|
|
491
529
|
type FormRenderer = (baseProps: Record<string, any>, item: FormOption, config: ResolvedFormConfig, ctx?: {
|
|
492
530
|
slots?: Record<string, any>;
|
|
493
531
|
components?: ComponentMap;
|
|
494
532
|
}) => VNode | null;
|
|
533
|
+
interface UseFormRendererOptions {
|
|
534
|
+
formModel: FormModel;
|
|
535
|
+
visibleOptions: ComputedRef<FormOption[]>;
|
|
536
|
+
config: ComputedRef<ResolvedFormConfig>;
|
|
537
|
+
handleFieldChange: (field: string) => void;
|
|
538
|
+
componentMap: ComponentMap;
|
|
539
|
+
instanceSlots?: Record<string, any>;
|
|
540
|
+
asyncOptionsCache: Ref<Record<string, OptionItem[]>>;
|
|
541
|
+
asyncLoadingMap: Ref<Record<string, boolean>>;
|
|
542
|
+
}
|
|
495
543
|
/**
|
|
496
544
|
* 运行时注册自定义渲染器 — 开闭原则
|
|
497
|
-
* @param type - 控件类型名
|
|
498
|
-
* @param renderer - 渲染函数
|
|
499
545
|
*/
|
|
500
546
|
declare function registerRenderer(type: string, renderer: FormRenderer): void;
|
|
501
547
|
/**
|
|
502
548
|
* 渲染引擎 Composable — 生成 formItems VNode 数组
|
|
503
|
-
*
|
|
549
|
+
*
|
|
550
|
+
* v0.8.0 增强:
|
|
551
|
+
* - 字段级 disabled / readonly
|
|
552
|
+
* - help / tooltip label 渲染
|
|
553
|
+
* - asyncOptions 远程选项合并
|
|
554
|
+
* - loading 占位
|
|
504
555
|
*/
|
|
505
|
-
declare function useFormRenderer(
|
|
556
|
+
declare function useFormRenderer(opts: UseFormRendererOptions): {
|
|
506
557
|
renderFormItem: (item: FormOption) => VNode | null;
|
|
507
558
|
formItems: ComputedRef<VNode<vue.RendererNode, vue.RendererElement, {
|
|
508
559
|
[key: string]: any;
|
|
@@ -510,6 +561,23 @@ declare function useFormRenderer(formModel: FormModel, visibleOptions: ComputedR
|
|
|
510
561
|
getBaseProps: (item: FormOption) => Record<string, unknown>;
|
|
511
562
|
};
|
|
512
563
|
//#endregion
|
|
564
|
+
//#region src/components/C_Form/composables/useFormDirty.d.ts
|
|
565
|
+
interface UseFormDirtyReturn {
|
|
566
|
+
/** 表单是否已修改 */
|
|
567
|
+
isDirty: Ref<boolean>;
|
|
568
|
+
/** 获取发生变化的字段名列表 */
|
|
569
|
+
getChangedFields: () => string[];
|
|
570
|
+
/** 检查指定字段是否脏 */
|
|
571
|
+
isFieldDirty: (field: string) => boolean;
|
|
572
|
+
/** 保存当前值为干净快照 */
|
|
573
|
+
markAsClean: () => void;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* 脏检查 Composable — 追踪 formModel 相对于初始快照的变化
|
|
577
|
+
* @param formModel 响应式表单数据对象(reactive)
|
|
578
|
+
*/
|
|
579
|
+
declare function useFormDirty(formModel: FormModel): UseFormDirtyReturn;
|
|
580
|
+
//#endregion
|
|
513
581
|
//#region node_modules/async-validator/dist-types/interface.d.ts
|
|
514
582
|
declare type RuleType = 'string' | 'number' | 'boolean' | 'method' | 'regexp' | 'integer' | 'float' | 'array' | 'object' | 'enum' | 'date' | 'url' | 'hex' | 'email' | 'pattern' | 'any';
|
|
515
583
|
interface ValidateOption {
|
|
@@ -1296,10 +1364,67 @@ declare const useDynamicFormState: () => {
|
|
|
1296
1364
|
readonly rules?: readonly {
|
|
1297
1365
|
readonly type?: RuleType | undefined;
|
|
1298
1366
|
readonly required?: boolean | undefined;
|
|
1367
|
+
readonly max?: number | undefined;
|
|
1368
|
+
readonly level?: "warning" | "error" | undefined;
|
|
1369
|
+
readonly key?: string | undefined;
|
|
1370
|
+
readonly options?: {
|
|
1371
|
+
readonly suppressWarning?: boolean | undefined;
|
|
1372
|
+
readonly suppressValidatorError?: boolean | undefined;
|
|
1373
|
+
readonly first?: boolean | undefined;
|
|
1374
|
+
readonly firstFields?: boolean | readonly string[] | undefined;
|
|
1375
|
+
readonly messages?: {
|
|
1376
|
+
readonly default?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
1377
|
+
readonly required?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
1378
|
+
readonly enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1379
|
+
readonly whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
1380
|
+
readonly date?: {
|
|
1381
|
+
readonly format?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
1382
|
+
readonly parse?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
1383
|
+
readonly invalid?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
1384
|
+
} | undefined;
|
|
1385
|
+
readonly types?: {
|
|
1386
|
+
readonly string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1387
|
+
readonly method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1388
|
+
readonly array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1389
|
+
readonly object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1390
|
+
readonly number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1391
|
+
readonly date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1392
|
+
readonly boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1393
|
+
readonly integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1394
|
+
readonly float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1395
|
+
readonly regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1396
|
+
readonly email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1397
|
+
readonly url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1398
|
+
readonly hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1399
|
+
} | undefined;
|
|
1400
|
+
readonly string?: {
|
|
1401
|
+
readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1402
|
+
readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1403
|
+
readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1404
|
+
readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
1405
|
+
} | undefined;
|
|
1406
|
+
readonly number?: {
|
|
1407
|
+
readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1408
|
+
readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1409
|
+
readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1410
|
+
readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
1411
|
+
} | undefined;
|
|
1412
|
+
readonly array?: {
|
|
1413
|
+
readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1414
|
+
readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1415
|
+
readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1416
|
+
readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
1417
|
+
} | undefined;
|
|
1418
|
+
readonly pattern?: {
|
|
1419
|
+
readonly mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
|
|
1420
|
+
} | undefined;
|
|
1421
|
+
} | undefined;
|
|
1422
|
+
readonly keys?: readonly string[] | undefined;
|
|
1423
|
+
readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
|
|
1424
|
+
} | undefined;
|
|
1299
1425
|
readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
|
|
1300
1426
|
readonly pattern?: (RegExp | string) | undefined;
|
|
1301
1427
|
readonly min?: number | undefined;
|
|
1302
|
-
readonly max?: number | undefined;
|
|
1303
1428
|
readonly len?: number | undefined;
|
|
1304
1429
|
readonly enum?: readonly (string | number | boolean | null | undefined)[] | undefined;
|
|
1305
1430
|
readonly whitespace?: boolean | undefined;
|
|
@@ -1446,61 +1571,6 @@ declare const useDynamicFormState: () => {
|
|
|
1446
1571
|
readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
1447
1572
|
}[];
|
|
1448
1573
|
} | undefined;
|
|
1449
|
-
readonly options?: {
|
|
1450
|
-
readonly suppressWarning?: boolean | undefined;
|
|
1451
|
-
readonly suppressValidatorError?: boolean | undefined;
|
|
1452
|
-
readonly first?: boolean | undefined;
|
|
1453
|
-
readonly firstFields?: boolean | readonly string[] | undefined;
|
|
1454
|
-
readonly messages?: {
|
|
1455
|
-
readonly default?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
1456
|
-
readonly required?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
1457
|
-
readonly enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1458
|
-
readonly whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
1459
|
-
readonly date?: {
|
|
1460
|
-
readonly format?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
1461
|
-
readonly parse?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
1462
|
-
readonly invalid?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
1463
|
-
} | undefined;
|
|
1464
|
-
readonly types?: {
|
|
1465
|
-
readonly string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1466
|
-
readonly method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1467
|
-
readonly array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1468
|
-
readonly object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1469
|
-
readonly number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1470
|
-
readonly date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1471
|
-
readonly boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1472
|
-
readonly integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1473
|
-
readonly float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1474
|
-
readonly regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1475
|
-
readonly email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1476
|
-
readonly url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1477
|
-
readonly hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
1478
|
-
} | undefined;
|
|
1479
|
-
readonly string?: {
|
|
1480
|
-
readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1481
|
-
readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1482
|
-
readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1483
|
-
readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
1484
|
-
} | undefined;
|
|
1485
|
-
readonly number?: {
|
|
1486
|
-
readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1487
|
-
readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1488
|
-
readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1489
|
-
readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
1490
|
-
} | undefined;
|
|
1491
|
-
readonly array?: {
|
|
1492
|
-
readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1493
|
-
readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1494
|
-
readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
1495
|
-
readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
1496
|
-
} | undefined;
|
|
1497
|
-
readonly pattern?: {
|
|
1498
|
-
readonly mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
|
|
1499
|
-
} | undefined;
|
|
1500
|
-
} | undefined;
|
|
1501
|
-
readonly keys?: readonly string[] | undefined;
|
|
1502
|
-
readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
|
|
1503
|
-
} | undefined;
|
|
1504
1574
|
readonly defaultField?: {
|
|
1505
1575
|
readonly type?: RuleType | undefined;
|
|
1506
1576
|
readonly required?: boolean | undefined;
|
|
@@ -1928,10 +1998,8 @@ declare const useDynamicFormState: () => {
|
|
|
1928
1998
|
}[] | undefined;
|
|
1929
1999
|
readonly transform?: ((value: Value) => Value) | undefined;
|
|
1930
2000
|
readonly message?: string | ((a?: string) => string) | undefined;
|
|
1931
|
-
readonly key?: string | undefined;
|
|
1932
2001
|
readonly trigger?: string | readonly string[] | undefined;
|
|
1933
2002
|
readonly renderMessage?: (() => vue.VNodeChild) | undefined;
|
|
1934
|
-
readonly level?: "warning" | "error" | undefined;
|
|
1935
2003
|
readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
|
|
1936
2004
|
}[] | undefined;
|
|
1937
2005
|
readonly attrs?: {
|
|
@@ -3557,6 +3625,12 @@ declare const useDynamicFormState: () => {
|
|
|
3557
3625
|
readonly required?: boolean | undefined;
|
|
3558
3626
|
readonly dependsOn?: string | readonly string[] | undefined;
|
|
3559
3627
|
readonly showWhen?: ((formModel: Record<string, any>) => boolean) | undefined;
|
|
3628
|
+
readonly disabled?: boolean | ((formModel: Record<string, any>) => boolean) | undefined;
|
|
3629
|
+
readonly readonly?: boolean | ((formModel: Record<string, any>) => boolean) | undefined;
|
|
3630
|
+
readonly valueWhen?: ((formModel: Record<string, any>) => any) | undefined;
|
|
3631
|
+
readonly asyncOptions?: ((formModel: Record<string, any>) => Promise<OptionItem[]>) | undefined;
|
|
3632
|
+
readonly rulesWhen?: ((formModel: Record<string, any>) => _robot_admin_form_validate0.FieldRule[]) | undefined;
|
|
3633
|
+
readonly crossFieldValidator?: ((formModel: Record<string, any>) => string | null) | undefined;
|
|
3560
3634
|
}[];
|
|
3561
3635
|
readonly dynamicFields: readonly {
|
|
3562
3636
|
readonly id: string;
|
|
@@ -3573,10 +3647,67 @@ declare const useDynamicFormState: () => {
|
|
|
3573
3647
|
readonly rules?: readonly {
|
|
3574
3648
|
readonly type?: RuleType | undefined;
|
|
3575
3649
|
readonly required?: boolean | undefined;
|
|
3650
|
+
readonly max?: number | undefined;
|
|
3651
|
+
readonly level?: "warning" | "error" | undefined;
|
|
3652
|
+
readonly key?: string | undefined;
|
|
3653
|
+
readonly options?: {
|
|
3654
|
+
readonly suppressWarning?: boolean | undefined;
|
|
3655
|
+
readonly suppressValidatorError?: boolean | undefined;
|
|
3656
|
+
readonly first?: boolean | undefined;
|
|
3657
|
+
readonly firstFields?: boolean | readonly string[] | undefined;
|
|
3658
|
+
readonly messages?: {
|
|
3659
|
+
readonly default?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
3660
|
+
readonly required?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
3661
|
+
readonly enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3662
|
+
readonly whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
3663
|
+
readonly date?: {
|
|
3664
|
+
readonly format?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
3665
|
+
readonly parse?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
3666
|
+
readonly invalid?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
3667
|
+
} | undefined;
|
|
3668
|
+
readonly types?: {
|
|
3669
|
+
readonly string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3670
|
+
readonly method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3671
|
+
readonly array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3672
|
+
readonly object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3673
|
+
readonly number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3674
|
+
readonly date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3675
|
+
readonly boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3676
|
+
readonly integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3677
|
+
readonly float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3678
|
+
readonly regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3679
|
+
readonly email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3680
|
+
readonly url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3681
|
+
readonly hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3682
|
+
} | undefined;
|
|
3683
|
+
readonly string?: {
|
|
3684
|
+
readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3685
|
+
readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3686
|
+
readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3687
|
+
readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
3688
|
+
} | undefined;
|
|
3689
|
+
readonly number?: {
|
|
3690
|
+
readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3691
|
+
readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3692
|
+
readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3693
|
+
readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
3694
|
+
} | undefined;
|
|
3695
|
+
readonly array?: {
|
|
3696
|
+
readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3697
|
+
readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3698
|
+
readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3699
|
+
readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
3700
|
+
} | undefined;
|
|
3701
|
+
readonly pattern?: {
|
|
3702
|
+
readonly mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
|
|
3703
|
+
} | undefined;
|
|
3704
|
+
} | undefined;
|
|
3705
|
+
readonly keys?: readonly string[] | undefined;
|
|
3706
|
+
readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
|
|
3707
|
+
} | undefined;
|
|
3576
3708
|
readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
|
|
3577
3709
|
readonly pattern?: (RegExp | string) | undefined;
|
|
3578
3710
|
readonly min?: number | undefined;
|
|
3579
|
-
readonly max?: number | undefined;
|
|
3580
3711
|
readonly len?: number | undefined;
|
|
3581
3712
|
readonly enum?: readonly (string | number | boolean | null | undefined)[] | undefined;
|
|
3582
3713
|
readonly whitespace?: boolean | undefined;
|
|
@@ -3723,61 +3854,6 @@ declare const useDynamicFormState: () => {
|
|
|
3723
3854
|
readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
3724
3855
|
}[];
|
|
3725
3856
|
} | undefined;
|
|
3726
|
-
readonly options?: {
|
|
3727
|
-
readonly suppressWarning?: boolean | undefined;
|
|
3728
|
-
readonly suppressValidatorError?: boolean | undefined;
|
|
3729
|
-
readonly first?: boolean | undefined;
|
|
3730
|
-
readonly firstFields?: boolean | readonly string[] | undefined;
|
|
3731
|
-
readonly messages?: {
|
|
3732
|
-
readonly default?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
3733
|
-
readonly required?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
3734
|
-
readonly enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3735
|
-
readonly whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
|
|
3736
|
-
readonly date?: {
|
|
3737
|
-
readonly format?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
3738
|
-
readonly parse?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
3739
|
-
readonly invalid?: (string | ((...args: unknown[]) => string)) | undefined;
|
|
3740
|
-
} | undefined;
|
|
3741
|
-
readonly types?: {
|
|
3742
|
-
readonly string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3743
|
-
readonly method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3744
|
-
readonly array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3745
|
-
readonly object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3746
|
-
readonly number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3747
|
-
readonly date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3748
|
-
readonly boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3749
|
-
readonly integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3750
|
-
readonly float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3751
|
-
readonly regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3752
|
-
readonly email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3753
|
-
readonly url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3754
|
-
readonly hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
|
|
3755
|
-
} | undefined;
|
|
3756
|
-
readonly string?: {
|
|
3757
|
-
readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3758
|
-
readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3759
|
-
readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3760
|
-
readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
3761
|
-
} | undefined;
|
|
3762
|
-
readonly number?: {
|
|
3763
|
-
readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3764
|
-
readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3765
|
-
readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3766
|
-
readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
3767
|
-
} | undefined;
|
|
3768
|
-
readonly array?: {
|
|
3769
|
-
readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3770
|
-
readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3771
|
-
readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
|
|
3772
|
-
readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
|
|
3773
|
-
} | undefined;
|
|
3774
|
-
readonly pattern?: {
|
|
3775
|
-
readonly mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
|
|
3776
|
-
} | undefined;
|
|
3777
|
-
} | undefined;
|
|
3778
|
-
readonly keys?: readonly string[] | undefined;
|
|
3779
|
-
readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
|
|
3780
|
-
} | undefined;
|
|
3781
3857
|
readonly defaultField?: {
|
|
3782
3858
|
readonly type?: RuleType | undefined;
|
|
3783
3859
|
readonly required?: boolean | undefined;
|
|
@@ -4205,10 +4281,8 @@ declare const useDynamicFormState: () => {
|
|
|
4205
4281
|
}[] | undefined;
|
|
4206
4282
|
readonly transform?: ((value: Value) => Value) | undefined;
|
|
4207
4283
|
readonly message?: string | ((a?: string) => string) | undefined;
|
|
4208
|
-
readonly key?: string | undefined;
|
|
4209
4284
|
readonly trigger?: string | readonly string[] | undefined;
|
|
4210
4285
|
readonly renderMessage?: (() => vue.VNodeChild) | undefined;
|
|
4211
|
-
readonly level?: "warning" | "error" | undefined;
|
|
4212
4286
|
readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
|
|
4213
4287
|
}[] | undefined;
|
|
4214
4288
|
}[];
|
|
@@ -4244,5 +4318,5 @@ type DynamicFormStateType = ReturnType<typeof useDynamicFormState>;
|
|
|
4244
4318
|
*/
|
|
4245
4319
|
declare const DYNAMIC_FORM_STATE_KEY: unique symbol;
|
|
4246
4320
|
//#endregion
|
|
4247
|
-
export {
|
|
4321
|
+
export { FormOption as A, CustomLayoutConfig as C, FormInstance as D, DynamicFormState as E, LayoutType as F, StepsLayoutConfig as I, SubmitEventPayload as L, InlineLayoutConfig as M, LabelPlacement as N, FormMode as O, LayoutConfig as P, TabsLayoutConfig as R, ComponentType as S, DynamicFormConfig as T, LayoutCallbacks as _, UseFormDirtyReturn as a, shouldShowActions as b, FormRenderer as c, useFormRenderer as d, useFormState as f, LAYOUTS_WITH_OWN_CONTROLS as g, FormConfig as h, useDynamicFormState as i, GridLayoutConfig as j, FormModel as k, UseFormRendererOptions as l, FORM_DEFAULTS as m, DynamicFormStateType as n, useFormDirty as o, _default as p, FIELD_TYPE_OPTIONS as r, ComponentMap as s, DYNAMIC_FORM_STATE_KEY as t, registerRenderer as u, ResolvedFormConfig as v, DynamicFieldConfig as w, CardLayoutConfig as x, resolveFormConfig as y };
|
|
4248
4322
|
//# sourceMappingURL=useDynamicFormState.d.ts.map
|
|
@@ -259,11 +259,11 @@ 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
|
readonly: boolean;
|
|
265
|
-
|
|
263
|
+
height: string | number;
|
|
266
264
|
theme: "light" | "dark";
|
|
265
|
+
width: string | number;
|
|
266
|
+
showToolbar: boolean;
|
|
267
267
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
268
268
|
declare const _default: typeof __VLS_export;
|
|
269
269
|
//#endregion
|
|
@@ -50,8 +50,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
50
50
|
openDialog: () => Promise<void>;
|
|
51
51
|
closeDialog: () => void;
|
|
52
52
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
53
|
-
emptyText: string;
|
|
54
53
|
placeholder: string;
|
|
54
|
+
emptyText: string;
|
|
55
55
|
resultGroupTitle: string;
|
|
56
56
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
57
57
|
declare const _default: typeof __VLS_export;
|
|
@@ -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
|
-
gap: number;
|
|
93
|
-
animationDuration: number;
|
|
94
92
|
columns: number;
|
|
95
|
-
infinite: boolean;
|
|
96
93
|
loading: boolean;
|
|
94
|
+
animationDuration: number;
|
|
95
|
+
gap: number;
|
|
96
|
+
infinite: boolean;
|
|
97
97
|
lazy: boolean;
|
|
98
98
|
skeleton: boolean;
|
|
99
99
|
skeletonCount: number;
|
package/dist/useModalEdit.d.ts
CHANGED
|
@@ -827,7 +827,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
|
|
|
827
827
|
clearRowSelection: () => void;
|
|
828
828
|
resetToFirstPage: () => void;
|
|
829
829
|
getSelectedRows: () => DataRecord[];
|
|
830
|
-
getEditingData: () => vue.Ref<Record<string, any>, Record<string, any>> |
|
|
830
|
+
getEditingData: () => DataRecord | vue.Ref<Record<string, any>, Record<string, any>> | null;
|
|
831
831
|
isEditing: (rowKey: DataTableRowKey$1, columnKey?: string) => boolean;
|
|
832
832
|
isExpanded: (rowKey: DataTableRowKey$1) => boolean;
|
|
833
833
|
getManager: () => {
|
|
@@ -836,7 +836,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
|
|
|
836
836
|
cancel(): void;
|
|
837
837
|
save(): Promise<void>;
|
|
838
838
|
isEditing(rowKey: DataTableRowKey$1, columnKey?: string): boolean;
|
|
839
|
-
getEditingData(): vue.Ref<Record<string, any>, Record<string, any>> |
|
|
839
|
+
getEditingData(): DataRecord | vue.Ref<Record<string, any>, Record<string, any>> | null;
|
|
840
840
|
};
|
|
841
841
|
expand: {
|
|
842
842
|
row(rowKey: DataTableRowKey$1): Promise<void>;
|
|
@@ -885,7 +885,6 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
|
|
|
885
885
|
} | undefined;
|
|
886
886
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
887
887
|
cancel: (rowData: DataRecord, rowIndex: number) => any;
|
|
888
|
-
save: (rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any;
|
|
889
888
|
"pagination-change": (...args: unknown[]) => any;
|
|
890
889
|
"row-delete": (...args: unknown[]) => any;
|
|
891
890
|
"expand-change": (expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any;
|
|
@@ -893,6 +892,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
|
|
|
893
892
|
"child-selection-change": (parentKey: DataTableRowKey$1, childKeys: DataTableRowKey$1[], childRows: any[]) => any;
|
|
894
893
|
"parent-child-link-change": (parentKey: DataTableRowKey$1, shouldSelect: boolean) => any;
|
|
895
894
|
"update:data": (data: DataRecord[]) => any;
|
|
895
|
+
save: (rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any;
|
|
896
896
|
"row-add": (newRow: DataRecord) => any;
|
|
897
897
|
"row-copy": (originalRow: DataRecord, newRow: DataRecord) => any;
|
|
898
898
|
"row-move": (row: DataRecord, fromIndex: number, toIndex: number) => any;
|
|
@@ -901,7 +901,6 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
|
|
|
901
901
|
"column-change": (columns: TableColumn[]) => any;
|
|
902
902
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
903
903
|
onCancel?: ((rowData: DataRecord, rowIndex: number) => any) | undefined;
|
|
904
|
-
onSave?: ((rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
905
904
|
"onPagination-change"?: ((...args: unknown[]) => any) | undefined;
|
|
906
905
|
"onRow-delete"?: ((...args: unknown[]) => any) | undefined;
|
|
907
906
|
"onExpand-change"?: ((expandedKeys: DataTableRowKey$1[], row?: DataRecord | undefined, expanded?: boolean | undefined) => any) | undefined;
|
|
@@ -909,6 +908,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
|
|
|
909
908
|
"onChild-selection-change"?: ((parentKey: DataTableRowKey$1, childKeys: DataTableRowKey$1[], childRows: any[]) => any) | undefined;
|
|
910
909
|
"onParent-child-link-change"?: ((parentKey: DataTableRowKey$1, shouldSelect: boolean) => any) | undefined;
|
|
911
910
|
"onUpdate:data"?: ((data: DataRecord[]) => any) | undefined;
|
|
911
|
+
onSave?: ((rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
912
912
|
"onRow-add"?: ((newRow: DataRecord) => any) | undefined;
|
|
913
913
|
"onRow-copy"?: ((originalRow: DataRecord, newRow: DataRecord) => any) | undefined;
|
|
914
914
|
"onRow-move"?: ((row: DataRecord, fromIndex: number, toIndex: number) => any) | undefined;
|
|
@@ -1158,7 +1158,7 @@ declare function useTableManager(params: TableManagerParams): {
|
|
|
1158
1158
|
cancel(): void; /** 保存编辑 */
|
|
1159
1159
|
save(): Promise<void>; /** 是否正在编辑 */
|
|
1160
1160
|
isEditing(rowKey: DataTableRowKey$1, columnKey?: string): boolean; /** 获取当前编辑数据 */
|
|
1161
|
-
getEditingData(): vue.Ref<Record<string, any>, Record<string, any>> |
|
|
1161
|
+
getEditingData(): DataRecord | vue.Ref<Record<string, any>, Record<string, any>> | null;
|
|
1162
1162
|
};
|
|
1163
1163
|
expand: {
|
|
1164
1164
|
/** 展开行 */row(rowKey: DataTableRowKey$1): Promise<void>; /** 折叠行 */
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -51,12 +51,12 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
51
51
|
onError?: ((error: Error) => any) | undefined;
|
|
52
52
|
}>, {
|
|
53
53
|
size: number;
|
|
54
|
+
mode: RenderMode;
|
|
54
55
|
label: string;
|
|
55
56
|
color: string;
|
|
56
|
-
margin: number;
|
|
57
57
|
showBorder: boolean;
|
|
58
|
+
margin: number;
|
|
58
59
|
showLabel: boolean;
|
|
59
|
-
mode: RenderMode;
|
|
60
60
|
bgColor: string;
|
|
61
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
62
62
|
logo: LogoOptions;
|