@robot-admin/naive-ui-components 0.11.1 → 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 +12 -0
- package/dist/C_Form2.cjs +1 -1
- package/dist/C_Form2.js +1 -1
- package/dist/constants.d.cts +4 -4
- package/dist/constants.d.ts +4 -4
- package/dist/constants2.d.cts +5 -5
- package/dist/constants2.d.ts +5 -5
- package/dist/constants3.d.cts +5 -5
- package/dist/constants3.d.ts +5 -5
- package/dist/constants4.d.cts +4 -4
- package/dist/constants4.d.ts +4 -4
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data.d.cts +1 -1
- package/dist/data.d.ts +1 -1
- package/dist/index10.vue.d.ts +1 -1
- package/dist/index11.vue.d.cts +1 -1
- package/dist/index11.vue.d.ts +4 -4
- package/dist/index12.vue.d.cts +4 -4
- package/dist/index12.vue.d.ts +5 -5
- package/dist/index13.vue.d.cts +5 -5
- package/dist/index13.vue.d.ts +3 -3
- package/dist/index14.vue.d.cts +3 -3
- package/dist/index14.vue.d.ts +6 -6
- package/dist/index15.vue.d.cts +6 -6
- package/dist/index15.vue.d.ts +2 -2
- package/dist/index16.vue.d.cts +2 -2
- package/dist/index16.vue.d.ts +1 -1
- package/dist/index17.vue.d.cts +1 -1
- package/dist/index17.vue.d.ts +5 -5
- package/dist/index18.vue.d.cts +5 -5
- package/dist/index18.vue.d.ts +3 -3
- package/dist/index19.vue.d.cts +2 -2
- package/dist/index19.vue.d.ts +2 -2
- package/dist/index2.vue.d.cts +5 -5
- package/dist/index2.vue.d.ts +5 -5
- package/dist/index20.vue.d.cts +2 -2
- package/dist/index20.vue.d.ts +2 -2
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +1 -1
- package/dist/index22.vue.d.cts +1 -1
- package/dist/index22.vue.d.ts +1 -1
- package/dist/index24.vue.d.cts +3 -3
- package/dist/index24.vue.d.ts +3 -3
- package/dist/index26.vue.d.cts +2 -2
- package/dist/index26.vue.d.ts +2 -2
- package/dist/index27.vue.d.cts +2 -2
- package/dist/index27.vue.d.ts +2 -2
- package/dist/index3.vue.d.cts +1 -1
- package/dist/index3.vue.d.ts +1 -1
- package/dist/index4.vue.d.cts +2 -2
- package/dist/index4.vue.d.ts +2 -2
- package/dist/index5.vue.d.cts +3 -3
- package/dist/index6.vue.d.ts +2 -2
- package/dist/index7.vue.d.cts +2 -2
- package/dist/index8.vue.d.ts +2 -2
- package/dist/index9.vue.d.cts +2 -2
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +1 -1
- package/dist/useCollapsePanel.d.ts +1 -1
- package/dist/useCropperCore.d.cts +7 -7
- package/dist/useCropperCore.d.ts +7 -7
- package/dist/useDraggableLayout.d.cts +5 -5
- package/dist/useDraggableLayout.d.ts +5 -5
- 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/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSearchState.d.cts +7 -7
- package/dist/useSearchState.d.ts +7 -7
- package/dist/useSignatureHistory.d.cts +3 -3
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.cts +1 -1
- package/dist/useSplitResize.d.ts +1 -1
- package/dist/useTableQuery.d.cts +5 -5
- package/dist/useTableQuery.d.ts +5 -5
- package/dist/useTimeSelection.d.cts +4 -4
- package/dist/useTimeSelection.d.ts +4 -4
- package/dist/useTreeOperations.d.cts +5 -5
- package/dist/useTreeOperations.d.ts +5 -5
- package/dist/useWorkflowValidation.d.cts +5 -5
- package/dist/useWorkflowValidation.d.ts +5 -5
- package/package.json +1 -1
|
@@ -117,14 +117,15 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
117
117
|
"onList-change"?: ((list: DraggableItem[]) => any) | undefined;
|
|
118
118
|
}>, {
|
|
119
119
|
sort: boolean;
|
|
120
|
-
disabled: boolean;
|
|
121
120
|
modelValue: DraggableItem[];
|
|
122
|
-
|
|
121
|
+
disabled: boolean;
|
|
123
122
|
delay: number;
|
|
124
|
-
|
|
123
|
+
direction: "vertical" | "horizontal";
|
|
125
124
|
itemClass: string;
|
|
126
|
-
|
|
125
|
+
emptyText: string;
|
|
127
126
|
animation: number;
|
|
127
|
+
layout: LayoutMode;
|
|
128
|
+
group: string | GroupOptions;
|
|
128
129
|
handle: string;
|
|
129
130
|
showHandle: boolean;
|
|
130
131
|
ghostClass: string;
|
|
@@ -133,7 +134,6 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
133
134
|
wrapperClass: string;
|
|
134
135
|
listClass: string;
|
|
135
136
|
showEmptyState: boolean;
|
|
136
|
-
emptyText: string;
|
|
137
137
|
swapThreshold: number;
|
|
138
138
|
invertSwap: boolean;
|
|
139
139
|
gridColumns: number;
|
|
@@ -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-error": (errors: unknown) => any;
|
|
610
|
-
}, string, vue.PublicProps, Readonly<CFormProps> & Readonly<{
|
|
611
|
-
"onUpdate:modelValue"?: ((model: FormRecord) => any) | undefined;
|
|
612
|
-
onSubmit?: ((payload: SubmitEventPayload<FormRecord>) => any) | undefined;
|
|
613
|
-
"onValidate-success"?: ((model: FormRecord) => any) | undefined;
|
|
614
|
-
"onValidate-error"?: ((errors: unknown) => 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-error": (errors: unknown) => any;
|
|
610
|
-
}, string, vue.PublicProps, Readonly<CFormProps> & Readonly<{
|
|
611
|
-
"onUpdate:modelValue"?: ((model: FormRecord) => any) | undefined;
|
|
612
|
-
onSubmit?: ((payload: SubmitEventPayload<FormRecord>) => any) | undefined;
|
|
613
|
-
"onValidate-success"?: ((model: FormRecord) => any) | undefined;
|
|
614
|
-
"onValidate-error"?: ((errors: unknown) => 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. */
|
|
@@ -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
|
+
theme: "light" | "dark";
|
|
262
263
|
width: string | number;
|
|
263
264
|
height: string | number;
|
|
264
265
|
readonly: boolean;
|
|
265
266
|
showToolbar: boolean;
|
|
266
|
-
theme: "light" | "dark";
|
|
267
267
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
268
268
|
declare const _default: typeof __VLS_export;
|
|
269
269
|
//#endregion
|
|
@@ -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
|
+
theme: "light" | "dark";
|
|
262
263
|
width: string | number;
|
|
263
264
|
height: string | number;
|
|
264
265
|
readonly: boolean;
|
|
265
266
|
showToolbar: boolean;
|
|
266
|
-
theme: "light" | "dark";
|
|
267
267
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
268
268
|
declare const _default: typeof __VLS_export;
|
|
269
269
|
//#endregion
|
|
@@ -79,13 +79,13 @@ type __VLS_Slots = {} & {
|
|
|
79
79
|
footer?: (props: typeof __VLS_5) => any;
|
|
80
80
|
};
|
|
81
81
|
declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
82
|
-
"load-more": () => any;
|
|
83
82
|
"item-click": (item: WaterFallItem, index: number) => any;
|
|
83
|
+
"load-more": () => any;
|
|
84
84
|
"image-loaded": (item: WaterFallItem) => any;
|
|
85
85
|
"image-error": (item: WaterFallItem) => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
|
|
87
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
88
87
|
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
88
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
89
89
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
90
90
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
91
91
|
}>, {
|
|
@@ -79,13 +79,13 @@ type __VLS_Slots = {} & {
|
|
|
79
79
|
footer?: (props: typeof __VLS_5) => any;
|
|
80
80
|
};
|
|
81
81
|
declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
82
|
-
"load-more": () => any;
|
|
83
82
|
"item-click": (item: WaterFallItem, index: number) => any;
|
|
83
|
+
"load-more": () => any;
|
|
84
84
|
"image-loaded": (item: WaterFallItem) => any;
|
|
85
85
|
"image-error": (item: WaterFallItem) => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
|
|
87
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
88
87
|
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
88
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
89
89
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
90
90
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
91
91
|
}>, {
|
package/dist/useQRCode.d.cts
CHANGED
|
@@ -50,12 +50,12 @@ 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
|
-
|
|
54
|
-
mode: RenderMode;
|
|
53
|
+
label: string;
|
|
55
54
|
size: number;
|
|
55
|
+
color: string;
|
|
56
56
|
showBorder: boolean;
|
|
57
|
-
label: string;
|
|
58
57
|
showLabel: boolean;
|
|
58
|
+
mode: RenderMode;
|
|
59
59
|
margin: number;
|
|
60
60
|
bgColor: string;
|
|
61
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -50,12 +50,12 @@ 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
|
-
|
|
54
|
-
mode: RenderMode;
|
|
53
|
+
label: string;
|
|
55
54
|
size: number;
|
|
55
|
+
color: string;
|
|
56
56
|
showBorder: boolean;
|
|
57
|
-
label: string;
|
|
58
57
|
showLabel: boolean;
|
|
58
|
+
mode: RenderMode;
|
|
59
59
|
margin: number;
|
|
60
60
|
bgColor: string;
|
|
61
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
@@ -94,8 +94,8 @@ declare const __VLS_export: vue.DefineComponent<FormSearchProps, {
|
|
|
94
94
|
"onChange-params"?: ((params: SearchFormParams) => any) | undefined;
|
|
95
95
|
}>, {
|
|
96
96
|
size: "small" | "medium" | "large";
|
|
97
|
-
loading: boolean;
|
|
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,6 +219,8 @@ 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;
|
|
222
|
+
required?: boolean | undefined;
|
|
223
|
+
message?: string | ((a?: string) => string) | undefined;
|
|
223
224
|
min?: number | undefined;
|
|
224
225
|
max?: number | undefined;
|
|
225
226
|
len?: number | 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,6 +450,8 @@ 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;
|
|
453
|
+
required?: boolean | undefined;
|
|
454
|
+
message?: string | ((a?: string) => string) | undefined;
|
|
454
455
|
min?: number | undefined;
|
|
455
456
|
max?: number | undefined;
|
|
456
457
|
len?: number | 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,6 +693,8 @@ 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;
|
|
696
|
+
required?: boolean | undefined;
|
|
697
|
+
message?: string | ((a?: string) => string) | undefined;
|
|
697
698
|
min?: number | undefined;
|
|
698
699
|
max?: number | undefined;
|
|
699
700
|
len?: number | 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
|
@@ -93,8 +93,8 @@ declare const __VLS_export: vue.DefineComponent<FormSearchProps, {
|
|
|
93
93
|
"onChange-params"?: ((params: SearchFormParams) => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
95
|
size: "small" | "medium" | "large";
|
|
96
|
-
loading: boolean;
|
|
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,6 +328,8 @@ declare function useSearchState(emits: {
|
|
|
329
328
|
error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
|
|
330
329
|
} | undefined;
|
|
331
330
|
pattern?: (RegExp | string) | undefined;
|
|
331
|
+
required?: boolean | undefined;
|
|
332
|
+
message?: string | ((a?: string) => string) | undefined;
|
|
332
333
|
min?: number | undefined;
|
|
333
334
|
max?: number | undefined;
|
|
334
335
|
len?: number | 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,6 +559,8 @@ declare function useSearchState(emits: {
|
|
|
560
559
|
error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
|
|
561
560
|
} | undefined;
|
|
562
561
|
pattern?: (RegExp | string) | undefined;
|
|
562
|
+
required?: boolean | undefined;
|
|
563
|
+
message?: string | ((a?: string) => string) | undefined;
|
|
563
564
|
min?: number | undefined;
|
|
564
565
|
max?: number | undefined;
|
|
565
566
|
len?: number | 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,6 +802,8 @@ declare function useSearchState(emits: {
|
|
|
803
802
|
error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
|
|
804
803
|
} | undefined;
|
|
805
804
|
pattern?: (RegExp | string) | undefined;
|
|
805
|
+
required?: boolean | undefined;
|
|
806
|
+
message?: string | ((a?: string) => string) | undefined;
|
|
806
807
|
min?: number | undefined;
|
|
807
808
|
max?: number | undefined;
|
|
808
809
|
len?: number | 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;
|