@robot-admin/naive-ui-components 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/C_Form2.cjs +1 -1
- package/dist/C_Form2.js +1 -1
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants2.d.cts +4 -4
- package/dist/constants2.d.ts +4 -4
- package/dist/constants3.d.cts +4 -4
- package/dist/constants3.d.ts +4 -4
- package/dist/constants4.d.cts +3 -3
- package/dist/constants4.d.ts +3 -3
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/index10.vue.d.cts +2 -2
- package/dist/index10.vue.d.ts +2 -2
- package/dist/index11.vue.d.cts +2 -2
- package/dist/index11.vue.d.ts +3 -3
- package/dist/index12.vue.d.cts +3 -3
- package/dist/index12.vue.d.ts +3 -3
- package/dist/index13.vue.d.cts +3 -3
- package/dist/index13.vue.d.ts +3 -3
- package/dist/index14.vue.d.cts +3 -3
- package/dist/index14.vue.d.ts +7 -7
- package/dist/index15.vue.d.cts +7 -7
- package/dist/index15.vue.d.ts +2 -2
- package/dist/index16.vue.d.cts +2 -2
- package/dist/index17.vue.d.ts +3 -3
- package/dist/index18.vue.d.cts +3 -3
- package/dist/index18.vue.d.ts +2 -2
- package/dist/index19.vue.d.cts +1 -1
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +3 -3
- package/dist/index21.vue.d.ts +3 -3
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index22.vue.d.ts +2 -2
- package/dist/index24.vue.d.cts +2 -2
- package/dist/index24.vue.d.ts +2 -2
- package/dist/index26.vue.d.cts +4 -4
- package/dist/index26.vue.d.ts +4 -4
- package/dist/index27.vue.d.cts +2 -2
- package/dist/index27.vue.d.ts +2 -2
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index5.vue.d.cts +2 -2
- package/dist/index6.vue.d.ts +2 -2
- package/dist/index7.vue.d.cts +2 -2
- package/dist/index7.vue.d.ts +4 -4
- package/dist/index8.vue.d.cts +4 -4
- package/dist/index8.vue.d.ts +2 -2
- package/dist/index9.vue.d.cts +2 -2
- package/dist/index9.vue.d.ts +2 -2
- package/dist/useCollapsePanel.d.cts +2 -2
- package/dist/useCollapsePanel.d.ts +2 -2
- package/dist/useCropperCore.d.cts +7 -7
- package/dist/useCropperCore.d.ts +7 -7
- package/dist/useDraggableLayout.d.cts +6 -6
- package/dist/useDraggableLayout.d.ts +6 -6
- package/dist/useDynamicFormState.d.cts +75 -84
- package/dist/useDynamicFormState.d.ts +75 -84
- package/dist/useEdgeInteraction.d.cts +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSearchState.d.cts +10 -10
- package/dist/useSearchState.d.ts +10 -10
- package/dist/useSignatureHistory.d.cts +1 -1
- package/dist/useSignatureHistory.d.ts +1 -1
- package/dist/useSplitResize.d.cts +3 -3
- package/dist/useSplitResize.d.ts +3 -3
- package/dist/useTableQuery.d.cts +1 -1
- package/dist/useTableQuery.d.ts +1 -1
- package/dist/useTimeSelection.d.cts +3 -3
- package/dist/useTimeSelection.d.ts +3 -3
- package/dist/useTreeOperations.d.cts +3 -3
- package/dist/useTreeOperations.d.ts +3 -3
- package/dist/useWorkflowValidation.d.cts +5 -5
- package/dist/useWorkflowValidation.d.ts +5 -5
- package/package.json +1 -1
|
@@ -536,92 +536,83 @@ declare function useFormRenderer(opts: UseFormRendererOptions): {
|
|
|
536
536
|
};
|
|
537
537
|
//#endregion
|
|
538
538
|
//#region src/components/C_Form/index.vue.d.ts
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
"validate-success": (model: FormRecord) => any;
|
|
610
|
-
}, string, vue.PublicProps, Readonly<CFormProps> & Readonly<{
|
|
611
|
-
"onUpdate:modelValue"?: ((model: FormRecord) => any) | undefined;
|
|
612
|
-
onSubmit?: ((payload: SubmitEventPayload<FormRecord>) => any) | undefined;
|
|
613
|
-
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
614
|
-
"onValidate-success"?: ((model: FormRecord) => any) | undefined;
|
|
615
|
-
}>, {
|
|
616
|
-
config: FormConfig;
|
|
617
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
618
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
619
|
-
declare const _default: typeof __VLS_export;
|
|
620
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
621
|
-
new (): {
|
|
622
|
-
$slots: S;
|
|
539
|
+
declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
540
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<{
|
|
541
|
+
/** 字段配置数组 */options: FormOption<T>[]; /** 双向绑定表单数据 */
|
|
542
|
+
modelValue?: FormModel<T>; /** 统一配置对象(收拢原先 13 个分散 Props) */
|
|
543
|
+
config?: FormConfig<T>; /** 当前表单实例的自定义渲染器,不污染全局注册表 */
|
|
544
|
+
renderers?: Record<string, FormRenderer>;
|
|
545
|
+
} & {
|
|
546
|
+
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
547
|
+
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
548
|
+
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
549
|
+
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
550
|
+
}> & (typeof globalThis extends {
|
|
551
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
552
|
+
} ? P : {});
|
|
553
|
+
expose: (exposed: vue.ShallowUnwrapRef<{
|
|
554
|
+
validate: () => Promise<void>;
|
|
555
|
+
validateField: (field: string | string[]) => Promise<void>;
|
|
556
|
+
validateStep: (stepIndex: number) => Promise<boolean>;
|
|
557
|
+
validateTab: (tabKey: string) => Promise<boolean>;
|
|
558
|
+
validateDynamicFields: () => Promise<boolean>;
|
|
559
|
+
validateCustomGroup: (groupKey: string) => Promise<boolean>;
|
|
560
|
+
clearValidation: (field?: string | string[]) => void;
|
|
561
|
+
getModel: () => FormModel;
|
|
562
|
+
setFields: (fields: FormModel) => void;
|
|
563
|
+
resetFields: () => void;
|
|
564
|
+
setFieldValue: (field: string, value: unknown, shouldValidate?: boolean) => Promise<void>;
|
|
565
|
+
getFieldValue: (field: string) => unknown;
|
|
566
|
+
setFieldsValue: (fields: FormModel, shouldValidate?: boolean) => Promise<void>;
|
|
567
|
+
formRef: vue.Ref<{
|
|
568
|
+
validate: naive_ui_es_form_src_interface0.FormValidate;
|
|
569
|
+
restoreValidation: () => void;
|
|
570
|
+
invalidateLabelWidth: () => void;
|
|
571
|
+
} | null, FormInst | {
|
|
572
|
+
validate: naive_ui_es_form_src_interface0.FormValidate;
|
|
573
|
+
restoreValidation: () => void;
|
|
574
|
+
invalidateLabelWidth: () => void;
|
|
575
|
+
} | null>;
|
|
576
|
+
formModel: FormRecord;
|
|
577
|
+
initialize: () => void;
|
|
578
|
+
layoutType: ComputedRef<LayoutType>;
|
|
579
|
+
shouldShowDefaultActions: ComputedRef<boolean>;
|
|
580
|
+
isDirty: vue.Ref<boolean, boolean>;
|
|
581
|
+
getChangedFields: () => string[];
|
|
582
|
+
isFieldDirty: (field: string) => boolean;
|
|
583
|
+
markAsClean: () => void;
|
|
584
|
+
asyncLoadingMap: vue.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
585
|
+
asyncErrorMap: vue.Ref<Record<string, unknown>, Record<string, unknown>>;
|
|
586
|
+
reloadOptions: (field?: string) => Promise<void>;
|
|
587
|
+
isSubmitting: vue.Ref<boolean, boolean>;
|
|
588
|
+
submit: () => Promise<boolean>;
|
|
589
|
+
}>) => void;
|
|
590
|
+
attrs: any;
|
|
591
|
+
slots: {
|
|
592
|
+
action?: (props: {
|
|
593
|
+
form: {
|
|
594
|
+
validate: naive_ui_es_form_src_interface0.FormValidate;
|
|
595
|
+
restoreValidation: () => void;
|
|
596
|
+
invalidateLabelWidth: () => void;
|
|
597
|
+
} | null;
|
|
598
|
+
model: FormRecord;
|
|
599
|
+
validate: () => Promise<void>;
|
|
600
|
+
validateField: (field: string | string[]) => Promise<void>;
|
|
601
|
+
reset: () => void;
|
|
602
|
+
setFields: (fields: FormModel) => void;
|
|
603
|
+
getModel: () => FormModel;
|
|
604
|
+
clearValidation: (field?: string | string[]) => void;
|
|
605
|
+
submit: () => Promise<boolean>;
|
|
606
|
+
reloadOptions: (field?: string) => Promise<void>;
|
|
607
|
+
submitting: boolean;
|
|
608
|
+
}) => any;
|
|
623
609
|
};
|
|
610
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-error", errors: unknown) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void);
|
|
611
|
+
}>) => vue.VNode & {
|
|
612
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
624
613
|
};
|
|
614
|
+
declare const _default: typeof __VLS_export;
|
|
615
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
625
616
|
//#endregion
|
|
626
617
|
//#region src/components/C_Form/helpers.d.ts
|
|
627
618
|
/** Preserve business-model field inference without changing the component API. */
|
|
@@ -536,92 +536,83 @@ declare function useFormRenderer(opts: UseFormRendererOptions): {
|
|
|
536
536
|
};
|
|
537
537
|
//#endregion
|
|
538
538
|
//#region src/components/C_Form/index.vue.d.ts
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
"validate-success": (model: FormRecord) => any;
|
|
610
|
-
}, string, vue.PublicProps, Readonly<CFormProps> & Readonly<{
|
|
611
|
-
"onUpdate:modelValue"?: ((model: FormRecord) => any) | undefined;
|
|
612
|
-
onSubmit?: ((payload: SubmitEventPayload<FormRecord>) => any) | undefined;
|
|
613
|
-
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
614
|
-
"onValidate-success"?: ((model: FormRecord) => any) | undefined;
|
|
615
|
-
}>, {
|
|
616
|
-
config: FormConfig;
|
|
617
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
618
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
619
|
-
declare const _default: typeof __VLS_export;
|
|
620
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
621
|
-
new (): {
|
|
622
|
-
$slots: S;
|
|
539
|
+
declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
540
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<{
|
|
541
|
+
/** 字段配置数组 */options: FormOption<T>[]; /** 双向绑定表单数据 */
|
|
542
|
+
modelValue?: FormModel<T>; /** 统一配置对象(收拢原先 13 个分散 Props) */
|
|
543
|
+
config?: FormConfig<T>; /** 当前表单实例的自定义渲染器,不污染全局注册表 */
|
|
544
|
+
renderers?: Record<string, FormRenderer>;
|
|
545
|
+
} & {
|
|
546
|
+
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
547
|
+
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
548
|
+
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
549
|
+
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
550
|
+
}> & (typeof globalThis extends {
|
|
551
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
552
|
+
} ? P : {});
|
|
553
|
+
expose: (exposed: vue.ShallowUnwrapRef<{
|
|
554
|
+
validate: () => Promise<void>;
|
|
555
|
+
validateField: (field: string | string[]) => Promise<void>;
|
|
556
|
+
validateStep: (stepIndex: number) => Promise<boolean>;
|
|
557
|
+
validateTab: (tabKey: string) => Promise<boolean>;
|
|
558
|
+
validateDynamicFields: () => Promise<boolean>;
|
|
559
|
+
validateCustomGroup: (groupKey: string) => Promise<boolean>;
|
|
560
|
+
clearValidation: (field?: string | string[]) => void;
|
|
561
|
+
getModel: () => FormModel;
|
|
562
|
+
setFields: (fields: FormModel) => void;
|
|
563
|
+
resetFields: () => void;
|
|
564
|
+
setFieldValue: (field: string, value: unknown, shouldValidate?: boolean) => Promise<void>;
|
|
565
|
+
getFieldValue: (field: string) => unknown;
|
|
566
|
+
setFieldsValue: (fields: FormModel, shouldValidate?: boolean) => Promise<void>;
|
|
567
|
+
formRef: vue.Ref<{
|
|
568
|
+
validate: naive_ui_es_form_src_interface0.FormValidate;
|
|
569
|
+
restoreValidation: () => void;
|
|
570
|
+
invalidateLabelWidth: () => void;
|
|
571
|
+
} | null, FormInst | {
|
|
572
|
+
validate: naive_ui_es_form_src_interface0.FormValidate;
|
|
573
|
+
restoreValidation: () => void;
|
|
574
|
+
invalidateLabelWidth: () => void;
|
|
575
|
+
} | null>;
|
|
576
|
+
formModel: FormRecord;
|
|
577
|
+
initialize: () => void;
|
|
578
|
+
layoutType: ComputedRef<LayoutType>;
|
|
579
|
+
shouldShowDefaultActions: ComputedRef<boolean>;
|
|
580
|
+
isDirty: vue.Ref<boolean, boolean>;
|
|
581
|
+
getChangedFields: () => string[];
|
|
582
|
+
isFieldDirty: (field: string) => boolean;
|
|
583
|
+
markAsClean: () => void;
|
|
584
|
+
asyncLoadingMap: vue.Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
585
|
+
asyncErrorMap: vue.Ref<Record<string, unknown>, Record<string, unknown>>;
|
|
586
|
+
reloadOptions: (field?: string) => Promise<void>;
|
|
587
|
+
isSubmitting: vue.Ref<boolean, boolean>;
|
|
588
|
+
submit: () => Promise<boolean>;
|
|
589
|
+
}>) => void;
|
|
590
|
+
attrs: any;
|
|
591
|
+
slots: {
|
|
592
|
+
action?: (props: {
|
|
593
|
+
form: {
|
|
594
|
+
validate: naive_ui_es_form_src_interface0.FormValidate;
|
|
595
|
+
restoreValidation: () => void;
|
|
596
|
+
invalidateLabelWidth: () => void;
|
|
597
|
+
} | null;
|
|
598
|
+
model: FormRecord;
|
|
599
|
+
validate: () => Promise<void>;
|
|
600
|
+
validateField: (field: string | string[]) => Promise<void>;
|
|
601
|
+
reset: () => void;
|
|
602
|
+
setFields: (fields: FormModel) => void;
|
|
603
|
+
getModel: () => FormModel;
|
|
604
|
+
clearValidation: (field?: string | string[]) => void;
|
|
605
|
+
submit: () => Promise<boolean>;
|
|
606
|
+
reloadOptions: (field?: string) => Promise<void>;
|
|
607
|
+
submitting: boolean;
|
|
608
|
+
}) => any;
|
|
623
609
|
};
|
|
610
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-error", errors: unknown) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void);
|
|
611
|
+
}>) => vue.VNode & {
|
|
612
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
624
613
|
};
|
|
614
|
+
declare const _default: typeof __VLS_export;
|
|
615
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
625
616
|
//#endregion
|
|
626
617
|
//#region src/components/C_Form/helpers.d.ts
|
|
627
618
|
/** Preserve business-model field inference without changing the component API. */
|
|
@@ -262,8 +262,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
262
262
|
theme: "light" | "dark";
|
|
263
263
|
width: string | number;
|
|
264
264
|
height: string | number;
|
|
265
|
-
showToolbar: boolean;
|
|
266
265
|
readonly: boolean;
|
|
266
|
+
showToolbar: boolean;
|
|
267
267
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
268
268
|
declare const _default: typeof __VLS_export;
|
|
269
269
|
//#endregion
|
|
@@ -262,8 +262,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
262
262
|
theme: "light" | "dark";
|
|
263
263
|
width: string | number;
|
|
264
264
|
height: string | number;
|
|
265
|
-
showToolbar: boolean;
|
|
266
265
|
readonly: boolean;
|
|
266
|
+
showToolbar: boolean;
|
|
267
267
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
268
268
|
declare const _default: typeof __VLS_export;
|
|
269
269
|
//#endregion
|
package/dist/useFullscreen.d.cts
CHANGED
|
@@ -9,11 +9,11 @@ type __VLS_Props = {
|
|
|
9
9
|
autoPreview?: boolean;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
12
|
-
preview: (file: string | File) => any;
|
|
13
12
|
download: (file: string | File) => any;
|
|
13
|
+
preview: (file: string | File) => any;
|
|
14
14
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onPreview?: ((file: string | File) => any) | undefined;
|
|
16
15
|
onDownload?: ((file: string | File) => any) | undefined;
|
|
16
|
+
onPreview?: ((file: string | File) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
fileName: string;
|
|
19
19
|
autoPreview: boolean;
|
package/dist/useFullscreen.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ type __VLS_Props = {
|
|
|
9
9
|
autoPreview?: boolean;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
12
|
-
preview: (file: string | File) => any;
|
|
13
12
|
download: (file: string | File) => any;
|
|
13
|
+
preview: (file: string | File) => any;
|
|
14
14
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onPreview?: ((file: string | File) => any) | undefined;
|
|
16
15
|
onDownload?: ((file: string | File) => any) | undefined;
|
|
16
|
+
onPreview?: ((file: string | File) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
fileName: string;
|
|
19
19
|
autoPreview: boolean;
|
package/dist/useQRCode.d.cts
CHANGED
|
@@ -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
53
|
label: string;
|
|
54
|
+
size: number;
|
|
55
|
+
color: string;
|
|
56
56
|
showBorder: boolean;
|
|
57
57
|
showLabel: boolean;
|
|
58
58
|
mode: RenderMode;
|
|
59
|
+
margin: number;
|
|
59
60
|
bgColor: string;
|
|
60
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
61
|
-
margin: number;
|
|
62
62
|
logo: LogoOptions;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -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
53
|
label: string;
|
|
54
|
+
size: number;
|
|
55
|
+
color: string;
|
|
56
56
|
showBorder: boolean;
|
|
57
57
|
showLabel: boolean;
|
|
58
58
|
mode: RenderMode;
|
|
59
|
+
margin: number;
|
|
59
60
|
bgColor: string;
|
|
60
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
61
|
-
margin: number;
|
|
62
62
|
logo: LogoOptions;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
@@ -93,9 +93,9 @@ declare const __VLS_export: vue.DefineComponent<FormSearchProps, {
|
|
|
93
93
|
onReset?: (() => any) | undefined;
|
|
94
94
|
"onChange-params"?: ((params: SearchFormParams) => any) | undefined;
|
|
95
95
|
}>, {
|
|
96
|
-
loading: boolean;
|
|
97
96
|
size: "small" | "medium" | "large";
|
|
98
97
|
bordered: boolean;
|
|
98
|
+
loading: boolean;
|
|
99
99
|
formItemList: SearchFormItem[];
|
|
100
100
|
formParams: SearchFormParams;
|
|
101
101
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -163,7 +163,6 @@ declare function useSearchState(emits: {
|
|
|
163
163
|
attrs?: Record<string, unknown> | undefined;
|
|
164
164
|
rules?: {
|
|
165
165
|
type?: async_validator0.RuleType | undefined;
|
|
166
|
-
required?: boolean | undefined;
|
|
167
166
|
options?: {
|
|
168
167
|
suppressWarning?: boolean | undefined;
|
|
169
168
|
suppressValidatorError?: boolean | undefined;
|
|
@@ -220,8 +219,10 @@ declare function useSearchState(emits: {
|
|
|
220
219
|
error?: ((rule: async_validator0.InternalRuleItem, message: string) => async_validator0.ValidateError) | undefined;
|
|
221
220
|
} | undefined;
|
|
222
221
|
pattern?: (RegExp | string) | undefined;
|
|
223
|
-
|
|
222
|
+
required?: boolean | undefined;
|
|
223
|
+
message?: string | ((a?: string) => string) | undefined;
|
|
224
224
|
min?: number | undefined;
|
|
225
|
+
max?: number | undefined;
|
|
225
226
|
len?: number | undefined;
|
|
226
227
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
227
228
|
whitespace?: boolean | undefined;
|
|
@@ -368,7 +369,6 @@ declare function useSearchState(emits: {
|
|
|
368
369
|
validator?: ((rule: async_validator0.InternalRuleItem, value: async_validator0.Value, callback: (error?: string | Error) => void, source: async_validator0.Values, options: async_validator0.ValidateOption) => async_validator0.SyncValidateResult | void) | undefined;
|
|
369
370
|
}[] | undefined;
|
|
370
371
|
transform?: ((value: async_validator0.Value) => async_validator0.Value) | undefined;
|
|
371
|
-
message?: string | ((a?: string) => string) | undefined;
|
|
372
372
|
key?: string | undefined;
|
|
373
373
|
trigger?: (naive_ui_es_form_src_interface0.ValidationTrigger | string | Array<naive_ui_es_form_src_interface0.ValidationTrigger | string>) | undefined;
|
|
374
374
|
validator?: naive_ui_es_form_src_interface0.FormItemRuleValidator | undefined;
|
|
@@ -394,7 +394,6 @@ declare function useSearchState(emits: {
|
|
|
394
394
|
attrs?: Record<string, unknown> | undefined;
|
|
395
395
|
rules?: {
|
|
396
396
|
type?: async_validator0.RuleType | undefined;
|
|
397
|
-
required?: boolean | undefined;
|
|
398
397
|
options?: {
|
|
399
398
|
suppressWarning?: boolean | undefined;
|
|
400
399
|
suppressValidatorError?: boolean | undefined;
|
|
@@ -451,8 +450,10 @@ declare function useSearchState(emits: {
|
|
|
451
450
|
error?: ((rule: async_validator0.InternalRuleItem, message: string) => async_validator0.ValidateError) | undefined;
|
|
452
451
|
} | undefined;
|
|
453
452
|
pattern?: (RegExp | string) | undefined;
|
|
454
|
-
|
|
453
|
+
required?: boolean | undefined;
|
|
454
|
+
message?: string | ((a?: string) => string) | undefined;
|
|
455
455
|
min?: number | undefined;
|
|
456
|
+
max?: number | undefined;
|
|
456
457
|
len?: number | undefined;
|
|
457
458
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
458
459
|
whitespace?: boolean | undefined;
|
|
@@ -599,7 +600,6 @@ declare function useSearchState(emits: {
|
|
|
599
600
|
validator?: ((rule: async_validator0.InternalRuleItem, value: async_validator0.Value, callback: (error?: string | Error) => void, source: async_validator0.Values, options: async_validator0.ValidateOption) => async_validator0.SyncValidateResult | void) | undefined;
|
|
600
601
|
}[] | undefined;
|
|
601
602
|
transform?: ((value: async_validator0.Value) => async_validator0.Value) | undefined;
|
|
602
|
-
message?: string | ((a?: string) => string) | undefined;
|
|
603
603
|
key?: string | undefined;
|
|
604
604
|
trigger?: (naive_ui_es_form_src_interface0.ValidationTrigger | string | Array<naive_ui_es_form_src_interface0.ValidationTrigger | string>) | undefined;
|
|
605
605
|
validator?: naive_ui_es_form_src_interface0.FormItemRuleValidator | undefined;
|
|
@@ -637,7 +637,6 @@ declare function useSearchState(emits: {
|
|
|
637
637
|
attrs?: Record<string, unknown> | undefined;
|
|
638
638
|
rules?: {
|
|
639
639
|
type?: async_validator0.RuleType | undefined;
|
|
640
|
-
required?: boolean | undefined;
|
|
641
640
|
options?: {
|
|
642
641
|
suppressWarning?: boolean | undefined;
|
|
643
642
|
suppressValidatorError?: boolean | undefined;
|
|
@@ -694,8 +693,10 @@ declare function useSearchState(emits: {
|
|
|
694
693
|
error?: ((rule: async_validator0.InternalRuleItem, message: string) => async_validator0.ValidateError) | undefined;
|
|
695
694
|
} | undefined;
|
|
696
695
|
pattern?: (RegExp | string) | undefined;
|
|
697
|
-
|
|
696
|
+
required?: boolean | undefined;
|
|
697
|
+
message?: string | ((a?: string) => string) | undefined;
|
|
698
698
|
min?: number | undefined;
|
|
699
|
+
max?: number | undefined;
|
|
699
700
|
len?: number | undefined;
|
|
700
701
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
701
702
|
whitespace?: boolean | undefined;
|
|
@@ -842,7 +843,6 @@ declare function useSearchState(emits: {
|
|
|
842
843
|
validator?: ((rule: async_validator0.InternalRuleItem, value: async_validator0.Value, callback: (error?: string | Error) => void, source: async_validator0.Values, options: async_validator0.ValidateOption) => async_validator0.SyncValidateResult | void) | undefined;
|
|
843
844
|
}[] | undefined;
|
|
844
845
|
transform?: ((value: async_validator0.Value) => async_validator0.Value) | undefined;
|
|
845
|
-
message?: string | ((a?: string) => string) | undefined;
|
|
846
846
|
key?: string | undefined;
|
|
847
847
|
trigger?: (naive_ui_es_form_src_interface0.ValidationTrigger | string | Array<naive_ui_es_form_src_interface0.ValidationTrigger | string>) | undefined;
|
|
848
848
|
validator?: naive_ui_es_form_src_interface0.FormItemRuleValidator | undefined;
|
package/dist/useSearchState.d.ts
CHANGED
|
@@ -92,9 +92,9 @@ declare const __VLS_export: vue.DefineComponent<FormSearchProps, {
|
|
|
92
92
|
onReset?: (() => any) | undefined;
|
|
93
93
|
"onChange-params"?: ((params: SearchFormParams) => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
|
-
loading: boolean;
|
|
96
95
|
size: "small" | "medium" | "large";
|
|
97
96
|
bordered: boolean;
|
|
97
|
+
loading: boolean;
|
|
98
98
|
formItemList: SearchFormItem[];
|
|
99
99
|
formParams: SearchFormParams;
|
|
100
100
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -272,7 +272,6 @@ declare function useSearchState(emits: {
|
|
|
272
272
|
attrs?: Record<string, unknown> | undefined;
|
|
273
273
|
rules?: {
|
|
274
274
|
type?: RuleType | undefined;
|
|
275
|
-
required?: boolean | undefined;
|
|
276
275
|
options?: {
|
|
277
276
|
suppressWarning?: boolean | undefined;
|
|
278
277
|
suppressValidatorError?: boolean | undefined;
|
|
@@ -329,8 +328,10 @@ declare function useSearchState(emits: {
|
|
|
329
328
|
error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
|
|
330
329
|
} | undefined;
|
|
331
330
|
pattern?: (RegExp | string) | undefined;
|
|
332
|
-
|
|
331
|
+
required?: boolean | undefined;
|
|
332
|
+
message?: string | ((a?: string) => string) | undefined;
|
|
333
333
|
min?: number | undefined;
|
|
334
|
+
max?: number | undefined;
|
|
334
335
|
len?: number | undefined;
|
|
335
336
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
336
337
|
whitespace?: boolean | undefined;
|
|
@@ -477,7 +478,6 @@ declare function useSearchState(emits: {
|
|
|
477
478
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
478
479
|
}[] | undefined;
|
|
479
480
|
transform?: ((value: Value) => Value) | undefined;
|
|
480
|
-
message?: string | ((a?: string) => string) | undefined;
|
|
481
481
|
key?: string | undefined;
|
|
482
482
|
trigger?: (naive_ui_es_form_src_interface0.ValidationTrigger | string | Array<naive_ui_es_form_src_interface0.ValidationTrigger | string>) | undefined;
|
|
483
483
|
validator?: naive_ui_es_form_src_interface0.FormItemRuleValidator | undefined;
|
|
@@ -503,7 +503,6 @@ declare function useSearchState(emits: {
|
|
|
503
503
|
attrs?: Record<string, unknown> | undefined;
|
|
504
504
|
rules?: {
|
|
505
505
|
type?: RuleType | undefined;
|
|
506
|
-
required?: boolean | undefined;
|
|
507
506
|
options?: {
|
|
508
507
|
suppressWarning?: boolean | undefined;
|
|
509
508
|
suppressValidatorError?: boolean | undefined;
|
|
@@ -560,8 +559,10 @@ declare function useSearchState(emits: {
|
|
|
560
559
|
error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
|
|
561
560
|
} | undefined;
|
|
562
561
|
pattern?: (RegExp | string) | undefined;
|
|
563
|
-
|
|
562
|
+
required?: boolean | undefined;
|
|
563
|
+
message?: string | ((a?: string) => string) | undefined;
|
|
564
564
|
min?: number | undefined;
|
|
565
|
+
max?: number | undefined;
|
|
565
566
|
len?: number | undefined;
|
|
566
567
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
567
568
|
whitespace?: boolean | undefined;
|
|
@@ -708,7 +709,6 @@ declare function useSearchState(emits: {
|
|
|
708
709
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
709
710
|
}[] | undefined;
|
|
710
711
|
transform?: ((value: Value) => Value) | undefined;
|
|
711
|
-
message?: string | ((a?: string) => string) | undefined;
|
|
712
712
|
key?: string | undefined;
|
|
713
713
|
trigger?: (naive_ui_es_form_src_interface0.ValidationTrigger | string | Array<naive_ui_es_form_src_interface0.ValidationTrigger | string>) | undefined;
|
|
714
714
|
validator?: naive_ui_es_form_src_interface0.FormItemRuleValidator | undefined;
|
|
@@ -746,7 +746,6 @@ declare function useSearchState(emits: {
|
|
|
746
746
|
attrs?: Record<string, unknown> | undefined;
|
|
747
747
|
rules?: {
|
|
748
748
|
type?: RuleType | undefined;
|
|
749
|
-
required?: boolean | undefined;
|
|
750
749
|
options?: {
|
|
751
750
|
suppressWarning?: boolean | undefined;
|
|
752
751
|
suppressValidatorError?: boolean | undefined;
|
|
@@ -803,8 +802,10 @@ declare function useSearchState(emits: {
|
|
|
803
802
|
error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
|
|
804
803
|
} | undefined;
|
|
805
804
|
pattern?: (RegExp | string) | undefined;
|
|
806
|
-
|
|
805
|
+
required?: boolean | undefined;
|
|
806
|
+
message?: string | ((a?: string) => string) | undefined;
|
|
807
807
|
min?: number | undefined;
|
|
808
|
+
max?: number | undefined;
|
|
808
809
|
len?: number | undefined;
|
|
809
810
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
810
811
|
whitespace?: boolean | undefined;
|
|
@@ -951,7 +952,6 @@ declare function useSearchState(emits: {
|
|
|
951
952
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
952
953
|
}[] | undefined;
|
|
953
954
|
transform?: ((value: Value) => Value) | undefined;
|
|
954
|
-
message?: string | ((a?: string) => string) | undefined;
|
|
955
955
|
key?: string | undefined;
|
|
956
956
|
trigger?: (naive_ui_es_form_src_interface0.ValidationTrigger | string | Array<naive_ui_es_form_src_interface0.ValidationTrigger | string>) | undefined;
|
|
957
957
|
validator?: naive_ui_es_form_src_interface0.FormItemRuleValidator | undefined;
|
|
@@ -110,8 +110,8 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
110
110
|
disabled: boolean;
|
|
111
111
|
width: number | string;
|
|
112
112
|
height: number | string;
|
|
113
|
-
showToolbar: boolean;
|
|
114
113
|
readonly: boolean;
|
|
114
|
+
showToolbar: boolean;
|
|
115
115
|
maxHistory: number;
|
|
116
116
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
117
117
|
declare const _default: typeof __VLS_export;
|