@robot-admin/naive-ui-components 0.11.3 → 0.11.5
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/README.md +35 -0
- package/README_EN.md +34 -0
- package/SECURITY.md +1 -0
- package/dist/C_Form.d.cts +2 -2
- package/dist/C_Form.d.ts +2 -2
- package/dist/C_Form2.cjs +1 -1
- package/dist/C_Form2.js +1 -1
- package/dist/C_Map.cjs +1 -1
- package/dist/C_Map.css +8 -8
- package/dist/C_Map.d.cts +2 -2
- package/dist/C_Map.d.ts +2 -2
- package/dist/C_Map.js +1 -1
- package/dist/C_Map2.cjs +1 -1
- package/dist/C_Map2.js +1 -1
- package/dist/C_Table.d.ts +1 -0
- package/dist/constants3.d.cts +1 -1
- package/dist/constants3.d.ts +1 -1
- package/dist/constants4.d.cts +1 -1
- package/dist/constants4.d.ts +1 -1
- package/dist/images/layers-2x.png +0 -0
- package/dist/images/layers.png +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/dist/index13.vue.d.ts +2 -2
- package/dist/index14.vue.d.cts +2 -2
- package/dist/index14.vue.d.ts +1 -1
- package/dist/index15.vue.d.cts +1 -1
- package/dist/index17.vue.d.ts +1 -1
- package/dist/index18.vue.d.cts +1 -1
- package/dist/index18.vue.d.ts +1 -1
- package/dist/index19.vue.d.cts +1 -1
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index2.vue.d.cts +1 -1
- package/dist/index2.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +1 -1
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index22.vue.d.ts +2 -2
- package/dist/index24.vue.d.cts +1 -1
- package/dist/index24.vue.d.ts +1 -1
- package/dist/index25.vue.d.cts +1 -1
- package/dist/index25.vue.d.ts +1 -1
- package/dist/index26.vue.d.cts +3 -3
- package/dist/index26.vue.d.ts +3 -3
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index5.vue.d.cts +1 -1
- package/dist/index7.vue.d.ts +1 -1
- package/dist/index8.vue.d.cts +1 -1
- package/dist/mapUtils.d.cts +135 -0
- package/dist/mapUtils.d.ts +135 -0
- package/dist/style.css +8 -8
- package/dist/useCollapsePanel.d.cts +3 -3
- package/dist/useCollapsePanel.d.ts +3 -3
- package/dist/useCropperCore.d.cts +6 -6
- package/dist/useCropperCore.d.ts +6 -6
- package/dist/useDraggableLayout.d.cts +5 -5
- package/dist/useDraggableLayout.d.ts +5 -5
- package/dist/useDynamicFormState.d.cts +41 -22
- package/dist/useDynamicFormState.d.ts +41 -22
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +1 -1
- package/dist/useQRCode.d.ts +1 -1
- package/dist/useSearchState.d.cts +6 -6
- package/dist/useSearchState.d.ts +6 -6
- package/dist/useSplitResize.d.cts +6 -6
- package/dist/useSplitResize.d.ts +6 -6
- package/dist/useTableQuery.d.cts +1 -1
- package/dist/useTableQuery.d.ts +1 -1
- package/dist/useTimeSelection.d.cts +2 -2
- package/dist/useTimeSelection.d.ts +2 -2
- package/dist/useTreeOperations.d.cts +3 -3
- package/dist/useTreeOperations.d.ts +3 -3
- package/dist/useWorkflowValidation.d.cts +3 -3
- package/dist/useWorkflowValidation.d.ts +3 -3
- package/package.json +2 -1
- package/dist/data.d.cts +0 -67
- package/dist/data.d.ts +0 -67
|
@@ -322,6 +322,43 @@ interface FormInstance<T extends object = FormRecord> {
|
|
|
322
322
|
/** 验证并提交,成功返回 true */
|
|
323
323
|
submit(): Promise<boolean>;
|
|
324
324
|
}
|
|
325
|
+
/** C_Form 默认操作区插槽参数。 */
|
|
326
|
+
interface FormActionSlotProps<T extends object = FormRecord> {
|
|
327
|
+
form: FormInst | null;
|
|
328
|
+
model: FormModel<T>;
|
|
329
|
+
validate: FormInstance<T>['validate'];
|
|
330
|
+
validateField: FormInstance<T>['validateField'];
|
|
331
|
+
reset: FormInstance<T>['resetFields'];
|
|
332
|
+
setFields: FormInstance<T>['setFields'];
|
|
333
|
+
getModel: FormInstance<T>['getModel'];
|
|
334
|
+
clearValidation: FormInstance<T>['clearValidation'];
|
|
335
|
+
submit: FormInstance<T>['submit'];
|
|
336
|
+
reloadOptions: FormInstance<T>['reloadOptions'];
|
|
337
|
+
submitting: boolean;
|
|
338
|
+
}
|
|
339
|
+
/** Tabs 布局操作区插槽参数。 */
|
|
340
|
+
interface FormTabActionsSlotProps {
|
|
341
|
+
currentTab: string;
|
|
342
|
+
totalTabs: number;
|
|
343
|
+
validateTab: () => Promise<boolean>;
|
|
344
|
+
switchToTab: (targetTab: string) => Promise<boolean>;
|
|
345
|
+
}
|
|
346
|
+
/** Steps 布局操作区插槽参数。 */
|
|
347
|
+
interface FormStepActionsSlotProps {
|
|
348
|
+
currentStep: number;
|
|
349
|
+
totalSteps: number;
|
|
350
|
+
isFirstStep: boolean;
|
|
351
|
+
isLastStep: boolean;
|
|
352
|
+
nextStep: () => Promise<void>;
|
|
353
|
+
previousStep: () => void;
|
|
354
|
+
goToStep: (stepIndex: number) => Promise<void>;
|
|
355
|
+
}
|
|
356
|
+
/** C_Form 对外公开的具名插槽。 */
|
|
357
|
+
interface FormSlots<T extends object = FormRecord> {
|
|
358
|
+
action?: (props: FormActionSlotProps<T>) => unknown;
|
|
359
|
+
'tab-actions'?: (props: FormTabActionsSlotProps) => unknown;
|
|
360
|
+
'step-actions'?: (props: FormStepActionsSlotProps) => unknown;
|
|
361
|
+
}
|
|
325
362
|
/**
|
|
326
363
|
* 表单数据模型类型(泛型)
|
|
327
364
|
*/
|
|
@@ -544,8 +581,8 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
544
581
|
renderers?: Record<string, FormRenderer>;
|
|
545
582
|
} & {
|
|
546
583
|
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
547
|
-
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
548
584
|
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
585
|
+
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
549
586
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
550
587
|
}> & (typeof globalThis extends {
|
|
551
588
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -588,26 +625,8 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
588
625
|
submit: () => Promise<boolean>;
|
|
589
626
|
}>) => void;
|
|
590
627
|
attrs: any;
|
|
591
|
-
slots:
|
|
592
|
-
|
|
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;
|
|
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);
|
|
628
|
+
slots: FormSlots<T>;
|
|
629
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-error", errors: unknown) => void) & ((evt: "validate-success", model: T) => void);
|
|
611
630
|
}>) => vue.VNode & {
|
|
612
631
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
613
632
|
};
|
|
@@ -737,4 +756,4 @@ type DynamicFormStateType = DynamicFormController;
|
|
|
737
756
|
*/
|
|
738
757
|
declare const DYNAMIC_FORM_STATE_KEY: unique symbol;
|
|
739
758
|
//#endregion
|
|
740
|
-
export {
|
|
759
|
+
export { LabelPlacement as $, useFormGlobalConfig as A, FieldPathValue as B, FormConfig as C, mergeFormConfig as D, ResolvedFormConfig as E, DynamicFieldConfig as F, FormModel as G, FormErrorContext as H, DynamicFormConfig as I, FormSlots as J, FormOption as K, DynamicFormController as L, CardLayoutConfig as M, ComponentType as N, resolveFormConfig as O, CustomLayoutConfig as P, InlineLayoutConfig as Q, DynamicFormState as R, FORM_GLOBAL_CONFIG_KEY as S, LayoutCallbacks as T, FormInstance as U, FormActionSlotProps as V, FormMode as W, FormTabActionsSlotProps as X, FormStepActionsSlotProps as Y, GridLayoutConfig as Z, UseFormRendererOptions as _, UseFormDirtyReturn as a, SubmitEventPayload as at, useFormRenderer as b, UseCFormOptions as c, useCForm as d, LayoutConfig as et, _default as f, RendererProps as g, FormRendererContext as h, useDynamicFormState as i, StepsLayoutConfig as it, AsyncOptionsContext as j, shouldShowActions as k, defineFormConfig as l, FormRenderer as m, DynamicFormStateType as n, MaybePromise as nt, useFormDirty as o, TabsLayoutConfig as ot, ComponentMap as p, FormRecord as q, FIELD_TYPE_OPTIONS as r, OptionItem as rt, useFormState as s, DYNAMIC_FORM_STATE_KEY as t, LayoutType as tt, defineFormOptions as u, registerRenderer as v, LAYOUTS_WITH_OWN_CONTROLS as w, FORM_DEFAULTS as x, unregisterRenderer as y, FieldPath as z };
|
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
|
-
download: (file: string | File) => any;
|
|
13
12
|
preview: (file: string | File) => any;
|
|
13
|
+
download: (file: string | File) => any;
|
|
14
14
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onDownload?: ((file: string | File) => any) | undefined;
|
|
16
15
|
onPreview?: ((file: string | File) => any) | undefined;
|
|
16
|
+
onDownload?: ((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
|
-
download: (file: string | File) => any;
|
|
13
12
|
preview: (file: string | File) => any;
|
|
13
|
+
download: (file: string | File) => any;
|
|
14
14
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onDownload?: ((file: string | File) => any) | undefined;
|
|
16
15
|
onPreview?: ((file: string | File) => any) | undefined;
|
|
16
|
+
onDownload?: ((file: string | File) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
fileName: string;
|
|
19
19
|
autoPreview: boolean;
|
|
@@ -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
|
-
"item-click": (item: WaterFallItem, index: number) => any;
|
|
83
82
|
"load-more": () => any;
|
|
83
|
+
"item-click": (item: WaterFallItem, index: number) => any;
|
|
84
84
|
"image-loaded": (item: WaterFallItem) => any;
|
|
85
85
|
"image-error": (item: WaterFallItem) => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
|
|
87
|
-
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
88
87
|
"onLoad-more"?: (() => any) | undefined;
|
|
88
|
+
"onItem-click"?: ((item: WaterFallItem, index: number) => 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
|
-
"item-click": (item: WaterFallItem, index: number) => any;
|
|
83
82
|
"load-more": () => any;
|
|
83
|
+
"item-click": (item: WaterFallItem, index: number) => any;
|
|
84
84
|
"image-loaded": (item: WaterFallItem) => any;
|
|
85
85
|
"image-error": (item: WaterFallItem) => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
|
|
87
|
-
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
88
87
|
"onLoad-more"?: (() => any) | undefined;
|
|
88
|
+
"onItem-click"?: ((item: WaterFallItem, index: number) => 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
|
@@ -53,9 +53,9 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
53
53
|
label: string;
|
|
54
54
|
size: number;
|
|
55
55
|
color: string;
|
|
56
|
+
mode: RenderMode;
|
|
56
57
|
showBorder: boolean;
|
|
57
58
|
showLabel: boolean;
|
|
58
|
-
mode: RenderMode;
|
|
59
59
|
margin: number;
|
|
60
60
|
bgColor: string;
|
|
61
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -53,9 +53,9 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
53
53
|
label: string;
|
|
54
54
|
size: number;
|
|
55
55
|
color: string;
|
|
56
|
+
mode: RenderMode;
|
|
56
57
|
showBorder: boolean;
|
|
57
58
|
showLabel: boolean;
|
|
58
|
-
mode: RenderMode;
|
|
59
59
|
margin: number;
|
|
60
60
|
bgColor: string;
|
|
61
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
@@ -220,9 +220,8 @@ declare function useSearchState(emits: {
|
|
|
220
220
|
} | undefined;
|
|
221
221
|
pattern?: (RegExp | string) | undefined;
|
|
222
222
|
required?: boolean | undefined;
|
|
223
|
-
message?: string | ((a?: string) => string) | undefined;
|
|
224
|
-
min?: number | undefined;
|
|
225
223
|
max?: number | undefined;
|
|
224
|
+
min?: number | undefined;
|
|
226
225
|
len?: number | undefined;
|
|
227
226
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
228
227
|
whitespace?: boolean | undefined;
|
|
@@ -369,6 +368,7 @@ declare function useSearchState(emits: {
|
|
|
369
368
|
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;
|
|
370
369
|
}[] | undefined;
|
|
371
370
|
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;
|
|
@@ -451,9 +451,8 @@ declare function useSearchState(emits: {
|
|
|
451
451
|
} | undefined;
|
|
452
452
|
pattern?: (RegExp | string) | undefined;
|
|
453
453
|
required?: boolean | undefined;
|
|
454
|
-
message?: string | ((a?: string) => string) | undefined;
|
|
455
|
-
min?: number | undefined;
|
|
456
454
|
max?: number | undefined;
|
|
455
|
+
min?: number | undefined;
|
|
457
456
|
len?: number | undefined;
|
|
458
457
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
459
458
|
whitespace?: boolean | undefined;
|
|
@@ -600,6 +599,7 @@ declare function useSearchState(emits: {
|
|
|
600
599
|
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;
|
|
601
600
|
}[] | undefined;
|
|
602
601
|
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;
|
|
@@ -694,9 +694,8 @@ declare function useSearchState(emits: {
|
|
|
694
694
|
} | undefined;
|
|
695
695
|
pattern?: (RegExp | string) | undefined;
|
|
696
696
|
required?: boolean | undefined;
|
|
697
|
-
message?: string | ((a?: string) => string) | undefined;
|
|
698
|
-
min?: number | undefined;
|
|
699
697
|
max?: number | undefined;
|
|
698
|
+
min?: number | undefined;
|
|
700
699
|
len?: number | undefined;
|
|
701
700
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
702
701
|
whitespace?: boolean | undefined;
|
|
@@ -843,6 +842,7 @@ declare function useSearchState(emits: {
|
|
|
843
842
|
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;
|
|
844
843
|
}[] | undefined;
|
|
845
844
|
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
|
@@ -329,9 +329,8 @@ declare function useSearchState(emits: {
|
|
|
329
329
|
} | undefined;
|
|
330
330
|
pattern?: (RegExp | string) | undefined;
|
|
331
331
|
required?: boolean | undefined;
|
|
332
|
-
message?: string | ((a?: string) => string) | undefined;
|
|
333
|
-
min?: number | undefined;
|
|
334
332
|
max?: number | undefined;
|
|
333
|
+
min?: number | undefined;
|
|
335
334
|
len?: number | undefined;
|
|
336
335
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
337
336
|
whitespace?: boolean | undefined;
|
|
@@ -478,6 +477,7 @@ declare function useSearchState(emits: {
|
|
|
478
477
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
479
478
|
}[] | undefined;
|
|
480
479
|
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;
|
|
@@ -560,9 +560,8 @@ declare function useSearchState(emits: {
|
|
|
560
560
|
} | undefined;
|
|
561
561
|
pattern?: (RegExp | string) | undefined;
|
|
562
562
|
required?: boolean | undefined;
|
|
563
|
-
message?: string | ((a?: string) => string) | undefined;
|
|
564
|
-
min?: number | undefined;
|
|
565
563
|
max?: number | undefined;
|
|
564
|
+
min?: number | undefined;
|
|
566
565
|
len?: number | undefined;
|
|
567
566
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
568
567
|
whitespace?: boolean | undefined;
|
|
@@ -709,6 +708,7 @@ declare function useSearchState(emits: {
|
|
|
709
708
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
710
709
|
}[] | undefined;
|
|
711
710
|
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;
|
|
@@ -803,9 +803,8 @@ declare function useSearchState(emits: {
|
|
|
803
803
|
} | undefined;
|
|
804
804
|
pattern?: (RegExp | string) | undefined;
|
|
805
805
|
required?: boolean | undefined;
|
|
806
|
-
message?: string | ((a?: string) => string) | undefined;
|
|
807
|
-
min?: number | undefined;
|
|
808
806
|
max?: number | undefined;
|
|
807
|
+
min?: number | undefined;
|
|
809
808
|
len?: number | undefined;
|
|
810
809
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
811
810
|
whitespace?: boolean | undefined;
|
|
@@ -952,6 +951,7 @@ declare function useSearchState(emits: {
|
|
|
952
951
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
953
952
|
}[] | undefined;
|
|
954
953
|
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;
|
|
@@ -66,17 +66,17 @@ type __VLS_Slots = {} & {
|
|
|
66
66
|
second?: (props: typeof __VLS_13) => any;
|
|
67
67
|
};
|
|
68
68
|
declare const __VLS_base: vue.DefineComponent<Props, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
69
|
-
expand: (target: CollapseTarget) => any;
|
|
70
|
-
collapse: (target: CollapseTarget) => any;
|
|
71
|
-
resize: (firstSize: number, secondSize: number) => any;
|
|
72
69
|
"drag-start": (size: number) => any;
|
|
73
70
|
"drag-end": (size: number) => any;
|
|
71
|
+
resize: (firstSize: number, secondSize: number) => any;
|
|
72
|
+
expand: (target: CollapseTarget) => any;
|
|
73
|
+
collapse: (target: CollapseTarget) => any;
|
|
74
74
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
75
|
-
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
76
|
-
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
77
|
-
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
78
75
|
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
79
76
|
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
77
|
+
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
78
|
+
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
79
|
+
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
80
80
|
}>, {
|
|
81
81
|
disabled: boolean;
|
|
82
82
|
direction: SplitDirection;
|
package/dist/useSplitResize.d.ts
CHANGED
|
@@ -66,17 +66,17 @@ type __VLS_Slots = {} & {
|
|
|
66
66
|
second?: (props: typeof __VLS_13) => any;
|
|
67
67
|
};
|
|
68
68
|
declare const __VLS_base: vue.DefineComponent<Props, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
69
|
-
expand: (target: CollapseTarget) => any;
|
|
70
|
-
collapse: (target: CollapseTarget) => any;
|
|
71
|
-
resize: (firstSize: number, secondSize: number) => any;
|
|
72
69
|
"drag-start": (size: number) => any;
|
|
73
70
|
"drag-end": (size: number) => any;
|
|
71
|
+
resize: (firstSize: number, secondSize: number) => any;
|
|
72
|
+
expand: (target: CollapseTarget) => any;
|
|
73
|
+
collapse: (target: CollapseTarget) => any;
|
|
74
74
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
75
|
-
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
76
|
-
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
77
|
-
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
78
75
|
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
79
76
|
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
77
|
+
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
78
|
+
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
79
|
+
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
80
80
|
}>, {
|
|
81
81
|
disabled: boolean;
|
|
82
82
|
direction: SplitDirection;
|
package/dist/useTableQuery.d.cts
CHANGED
|
@@ -1095,7 +1095,7 @@ declare const __VLS_export: <T extends object = DataRecord>(__VLS_props: NonNull
|
|
|
1095
1095
|
error: ErrorConfig;
|
|
1096
1096
|
}) => any;
|
|
1097
1097
|
};
|
|
1098
|
-
emit: ((evt: "save", rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "pagination-change", ...args: [page: number, pageSize: number] & [page: number, pageSize: number]) => void) & ((evt: "row-delete", ...args: [deletedRow: DataRecord, index: number] & [deletedRow: DataRecord, index: number]) => void) & ((evt: "batch-action-error", error: unknown, actionKey: string) => void) & ((evt: "row-key-error", issues: TableRowKeyIssue<DataRecord>[]) => void) & ((evt: "expand-change", expandedKeys: DataTableRowKey[], row?: DataRecord | undefined, expanded?: boolean | undefined) => void) & ((evt: "selection-change", checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]> | undefined) => void) & ((evt: "child-selection-change", parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: DataRecord[]) => void) & ((evt: "parent-child-link-change", parentKey: DataTableRowKey, shouldSelect: boolean) => void) & ((evt: "update:data", data: DataRecord[]) => void) & ((evt: "
|
|
1098
|
+
emit: ((evt: "save", rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "cancel", rowData: DataRecord, rowIndex: number) => void) & ((evt: "pagination-change", ...args: [page: number, pageSize: number] & [page: number, pageSize: number]) => void) & ((evt: "row-delete", ...args: [deletedRow: DataRecord, index: number] & [deletedRow: DataRecord, index: number]) => void) & ((evt: "batch-action-error", error: unknown, actionKey: string) => void) & ((evt: "row-key-error", issues: TableRowKeyIssue<DataRecord>[]) => void) & ((evt: "expand-change", expandedKeys: DataTableRowKey[], row?: DataRecord | undefined, expanded?: boolean | undefined) => void) & ((evt: "selection-change", checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]> | undefined) => void) & ((evt: "child-selection-change", parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: DataRecord[]) => void) & ((evt: "parent-child-link-change", parentKey: DataTableRowKey, shouldSelect: boolean) => void) & ((evt: "update:data", data: DataRecord[]) => void) & ((evt: "edit-error", error: unknown) => void) & ((evt: "row-add", newRow: DataRecord) => void) & ((evt: "row-copy", originalRow: DataRecord, newRow: DataRecord) => void) & ((evt: "row-move", row: DataRecord, fromIndex: number, toIndex: number) => void) & ((evt: "row-selection-change", selectedKey: DataTableRowKey | null, selectedRow: DataRecord | null) => void) & ((evt: "view-detail", data: DataRecord) => void) & ((evt: "column-change", columns: TableColumn[]) => void);
|
|
1099
1099
|
}>) => vue.VNode & {
|
|
1100
1100
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
1101
1101
|
};
|
package/dist/useTableQuery.d.ts
CHANGED
|
@@ -1095,7 +1095,7 @@ declare const __VLS_export: <T extends object = DataRecord>(__VLS_props: NonNull
|
|
|
1095
1095
|
error: ErrorConfig;
|
|
1096
1096
|
}) => any;
|
|
1097
1097
|
};
|
|
1098
|
-
emit: ((evt: "save", rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "pagination-change", ...args: [page: number, pageSize: number] & [page: number, pageSize: number]) => void) & ((evt: "row-delete", ...args: [deletedRow: DataRecord, index: number] & [deletedRow: DataRecord, index: number]) => void) & ((evt: "batch-action-error", error: unknown, actionKey: string) => void) & ((evt: "row-key-error", issues: TableRowKeyIssue<DataRecord>[]) => void) & ((evt: "expand-change", expandedKeys: DataTableRowKey[], row?: DataRecord | undefined, expanded?: boolean | undefined) => void) & ((evt: "selection-change", checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]> | undefined) => void) & ((evt: "child-selection-change", parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: DataRecord[]) => void) & ((evt: "parent-child-link-change", parentKey: DataTableRowKey, shouldSelect: boolean) => void) & ((evt: "update:data", data: DataRecord[]) => void) & ((evt: "
|
|
1098
|
+
emit: ((evt: "save", rowData: DataRecord, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "cancel", rowData: DataRecord, rowIndex: number) => void) & ((evt: "pagination-change", ...args: [page: number, pageSize: number] & [page: number, pageSize: number]) => void) & ((evt: "row-delete", ...args: [deletedRow: DataRecord, index: number] & [deletedRow: DataRecord, index: number]) => void) & ((evt: "batch-action-error", error: unknown, actionKey: string) => void) & ((evt: "row-key-error", issues: TableRowKeyIssue<DataRecord>[]) => void) & ((evt: "expand-change", expandedKeys: DataTableRowKey[], row?: DataRecord | undefined, expanded?: boolean | undefined) => void) & ((evt: "selection-change", checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]> | undefined) => void) & ((evt: "child-selection-change", parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: DataRecord[]) => void) & ((evt: "parent-child-link-change", parentKey: DataTableRowKey, shouldSelect: boolean) => void) & ((evt: "update:data", data: DataRecord[]) => void) & ((evt: "edit-error", error: unknown) => void) & ((evt: "row-add", newRow: DataRecord) => void) & ((evt: "row-copy", originalRow: DataRecord, newRow: DataRecord) => void) & ((evt: "row-move", row: DataRecord, fromIndex: number, toIndex: number) => void) & ((evt: "row-selection-change", selectedKey: DataTableRowKey | null, selectedRow: DataRecord | null) => void) & ((evt: "view-detail", data: DataRecord) => void) & ((evt: "column-change", columns: TableColumn[]) => void);
|
|
1099
1099
|
}>) => vue.VNode & {
|
|
1100
1100
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
1101
1101
|
};
|
|
@@ -59,11 +59,10 @@ declare const __VLS_export: vue.DefineComponent<TimeProps, TimeExpose, {}, {}, {
|
|
|
59
59
|
"onChange-end"?: ((time: number | null) => any) | undefined;
|
|
60
60
|
}>, {
|
|
61
61
|
placeholder: string;
|
|
62
|
-
format: string;
|
|
63
62
|
mode: TimeMode;
|
|
64
|
-
attrs: Record<string, any>;
|
|
65
63
|
startPlaceholder: string;
|
|
66
64
|
endPlaceholder: string;
|
|
65
|
+
format: string;
|
|
67
66
|
useHours: boolean;
|
|
68
67
|
useMinutes: boolean;
|
|
69
68
|
useSeconds: boolean;
|
|
@@ -72,6 +71,7 @@ declare const __VLS_export: vue.DefineComponent<TimeProps, TimeExpose, {}, {}, {
|
|
|
72
71
|
secondStep: number;
|
|
73
72
|
startTimeProps: Record<string, any>;
|
|
74
73
|
endTimeProps: Record<string, any>;
|
|
74
|
+
attrs: Record<string, any>;
|
|
75
75
|
defaultStartTime: number | null;
|
|
76
76
|
defaultEndTime: number | null;
|
|
77
77
|
defaultSingleTime: number | null;
|
|
@@ -59,11 +59,10 @@ declare const __VLS_export: vue.DefineComponent<TimeProps, TimeExpose, {}, {}, {
|
|
|
59
59
|
"onChange-end"?: ((time: number | null) => any) | undefined;
|
|
60
60
|
}>, {
|
|
61
61
|
placeholder: string;
|
|
62
|
-
format: string;
|
|
63
62
|
mode: TimeMode;
|
|
64
|
-
attrs: Record<string, any>;
|
|
65
63
|
startPlaceholder: string;
|
|
66
64
|
endPlaceholder: string;
|
|
65
|
+
format: string;
|
|
67
66
|
useHours: boolean;
|
|
68
67
|
useMinutes: boolean;
|
|
69
68
|
useSeconds: boolean;
|
|
@@ -72,6 +71,7 @@ declare const __VLS_export: vue.DefineComponent<TimeProps, TimeExpose, {}, {}, {
|
|
|
72
71
|
secondStep: number;
|
|
73
72
|
startTimeProps: Record<string, any>;
|
|
74
73
|
endTimeProps: Record<string, any>;
|
|
74
|
+
attrs: Record<string, any>;
|
|
75
75
|
defaultStartTime: number | null;
|
|
76
76
|
defaultEndTime: number | null;
|
|
77
77
|
defaultSingleTime: number | null;
|
|
@@ -102,13 +102,11 @@ declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {},
|
|
|
102
102
|
"onNode-drop"?: ((info: DropInfo) => any) | undefined;
|
|
103
103
|
onRefresh?: (() => any) | undefined;
|
|
104
104
|
}>, {
|
|
105
|
-
actions: ActionConfig[];
|
|
106
105
|
labelField: string;
|
|
107
106
|
childrenField: string;
|
|
108
107
|
mode: TreeMode;
|
|
109
|
-
showToolbar: boolean;
|
|
110
|
-
defaultExpandAll: boolean;
|
|
111
108
|
draggable: boolean;
|
|
109
|
+
showToolbar: boolean;
|
|
112
110
|
keyField: string;
|
|
113
111
|
searchPattern: string;
|
|
114
112
|
searchable: boolean;
|
|
@@ -120,6 +118,8 @@ declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {},
|
|
|
120
118
|
iconField: string;
|
|
121
119
|
iconConfig: IconConfig;
|
|
122
120
|
statusConfigs: StatusConfig[];
|
|
121
|
+
actions: ActionConfig[];
|
|
122
|
+
defaultExpandAll: boolean;
|
|
123
123
|
defaultExpandedKeys: (string | number)[];
|
|
124
124
|
defaultSelectedKeys: (string | number)[];
|
|
125
125
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -102,13 +102,11 @@ declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {},
|
|
|
102
102
|
"onNode-drop"?: ((info: DropInfo) => any) | undefined;
|
|
103
103
|
onRefresh?: (() => any) | undefined;
|
|
104
104
|
}>, {
|
|
105
|
-
actions: ActionConfig[];
|
|
106
105
|
labelField: string;
|
|
107
106
|
childrenField: string;
|
|
108
107
|
mode: TreeMode;
|
|
109
|
-
showToolbar: boolean;
|
|
110
|
-
defaultExpandAll: boolean;
|
|
111
108
|
draggable: boolean;
|
|
109
|
+
showToolbar: boolean;
|
|
112
110
|
keyField: string;
|
|
113
111
|
searchPattern: string;
|
|
114
112
|
searchable: boolean;
|
|
@@ -120,6 +118,8 @@ declare const __VLS_base: vue.DefineComponent<TreeProps, TreeExpose, {}, {}, {},
|
|
|
120
118
|
iconField: string;
|
|
121
119
|
iconConfig: IconConfig;
|
|
122
120
|
statusConfigs: StatusConfig[];
|
|
121
|
+
actions: ActionConfig[];
|
|
122
|
+
defaultExpandAll: boolean;
|
|
123
123
|
defaultExpandedKeys: (string | number)[];
|
|
124
124
|
defaultSelectedKeys: (string | number)[];
|
|
125
125
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -239,23 +239,23 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
|
|
|
239
239
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
240
240
|
"update:modelValue": (value: WorkflowData) => any;
|
|
241
241
|
change: (value: WorkflowData) => any;
|
|
242
|
+
save: (data: WorkflowData) => any;
|
|
242
243
|
"node-click": (node: WorkflowNode) => any;
|
|
243
244
|
"edge-click": (edge: WorkflowEdge) => any;
|
|
244
|
-
save: (data: WorkflowData) => any;
|
|
245
245
|
"validate-error": (errors: ValidationError[]) => any;
|
|
246
246
|
}, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
|
|
247
247
|
"onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
|
|
248
248
|
onChange?: ((value: WorkflowData) => any) | undefined;
|
|
249
|
+
onSave?: ((data: WorkflowData) => any) | undefined;
|
|
249
250
|
"onNode-click"?: ((node: WorkflowNode) => any) | undefined;
|
|
250
251
|
"onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
|
|
251
|
-
onSave?: ((data: WorkflowData) => any) | undefined;
|
|
252
252
|
"onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
|
|
253
253
|
}>, {
|
|
254
254
|
theme: "light" | "dark";
|
|
255
|
+
readonly: boolean;
|
|
255
256
|
users: User[];
|
|
256
257
|
roles: Role[];
|
|
257
258
|
departments: Department[];
|
|
258
|
-
readonly: boolean;
|
|
259
259
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
260
260
|
declare const _default: typeof __VLS_export;
|
|
261
261
|
//#endregion
|
|
@@ -239,23 +239,23 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
|
|
|
239
239
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
240
240
|
"update:modelValue": (value: WorkflowData) => any;
|
|
241
241
|
change: (value: WorkflowData) => any;
|
|
242
|
+
save: (data: WorkflowData) => any;
|
|
242
243
|
"node-click": (node: WorkflowNode) => any;
|
|
243
244
|
"edge-click": (edge: WorkflowEdge) => any;
|
|
244
|
-
save: (data: WorkflowData) => any;
|
|
245
245
|
"validate-error": (errors: ValidationError[]) => any;
|
|
246
246
|
}, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
|
|
247
247
|
"onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
|
|
248
248
|
onChange?: ((value: WorkflowData) => any) | undefined;
|
|
249
|
+
onSave?: ((data: WorkflowData) => any) | undefined;
|
|
249
250
|
"onNode-click"?: ((node: WorkflowNode) => any) | undefined;
|
|
250
251
|
"onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
|
|
251
|
-
onSave?: ((data: WorkflowData) => any) | undefined;
|
|
252
252
|
"onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
|
|
253
253
|
}>, {
|
|
254
254
|
theme: "light" | "dark";
|
|
255
|
+
readonly: boolean;
|
|
255
256
|
users: User[];
|
|
256
257
|
roles: Role[];
|
|
257
258
|
departments: Department[];
|
|
258
|
-
readonly: boolean;
|
|
259
259
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
260
260
|
declare const _default: typeof __VLS_export;
|
|
261
261
|
//#endregion
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.11.
|
|
6
|
+
"version": "0.11.5",
|
|
7
7
|
"description": "基于 Naive UI 的 Vue 3 组件库",
|
|
8
8
|
"packageManager": "bun@1.3.14",
|
|
9
9
|
"engines": {
|
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
"@fullcalendar/list": "^6.1.21",
|
|
120
120
|
"@fullcalendar/vue3": "^6.1.21",
|
|
121
121
|
"@iconify/vue": "^5.0.1",
|
|
122
|
+
"@types/leaflet": "^1.9.22",
|
|
122
123
|
"@visactor/vtable": "^1.26.7",
|
|
123
124
|
"@visactor/vtable-gantt": "^1.26.7",
|
|
124
125
|
"@vue-flow/core": "^1.48.2",
|
package/dist/data.d.cts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as vue from "vue";
|
|
2
|
-
|
|
3
|
-
//#region src/components/C_Map/index.vue.d.ts
|
|
4
|
-
interface MapMarker$1 {
|
|
5
|
-
lat: number;
|
|
6
|
-
lng: number;
|
|
7
|
-
popup?: string;
|
|
8
|
-
}
|
|
9
|
-
type __VLS_Props = {
|
|
10
|
-
height?: string;
|
|
11
|
-
center?: [number, number];
|
|
12
|
-
zoom?: number;
|
|
13
|
-
markers?: MapMarker$1[];
|
|
14
|
-
mapType?: 'osm' | 'amap';
|
|
15
|
-
amapKey?: string;
|
|
16
|
-
};
|
|
17
|
-
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
18
|
-
error: (error: Error) => any;
|
|
19
|
-
ready: (map: unknown) => any;
|
|
20
|
-
markerClick: (marker: MapMarker$1, event: unknown) => any;
|
|
21
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
-
onError?: ((error: Error) => any) | undefined;
|
|
23
|
-
onReady?: ((map: unknown) => any) | undefined;
|
|
24
|
-
onMarkerClick?: ((marker: MapMarker$1, event: unknown) => any) | undefined;
|
|
25
|
-
}>, {
|
|
26
|
-
height: string;
|
|
27
|
-
markers: MapMarker$1[];
|
|
28
|
-
amapKey: string;
|
|
29
|
-
center: [number, number];
|
|
30
|
-
zoom: number;
|
|
31
|
-
mapType: "osm" | "amap";
|
|
32
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
33
|
-
declare const _default: typeof __VLS_export;
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region src/components/C_Map/data.d.ts
|
|
36
|
-
declare const MAP_TYPES: readonly [{
|
|
37
|
-
readonly label: "OpenStreetMap";
|
|
38
|
-
readonly value: "osm";
|
|
39
|
-
}, {
|
|
40
|
-
readonly label: "高德地图";
|
|
41
|
-
readonly value: "amap";
|
|
42
|
-
}];
|
|
43
|
-
type MapType = (typeof MAP_TYPES)[number]['value'];
|
|
44
|
-
interface MapMarker {
|
|
45
|
-
lat: number;
|
|
46
|
-
lng: number;
|
|
47
|
-
popup?: string;
|
|
48
|
-
}
|
|
49
|
-
interface MapConfig {
|
|
50
|
-
height?: string;
|
|
51
|
-
center?: [number, number];
|
|
52
|
-
zoom?: number;
|
|
53
|
-
markers?: MapMarker[];
|
|
54
|
-
mapType?: MapType;
|
|
55
|
-
amapKey?: string;
|
|
56
|
-
}
|
|
57
|
-
declare const DEFAULT_MAP_CONFIG: Required<Omit<MapConfig, 'markers' | 'amapKey'>>;
|
|
58
|
-
declare const OSM_TILE_CONFIG: {
|
|
59
|
-
readonly url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
|
|
60
|
-
readonly attribution: "© OpenStreetMap contributors";
|
|
61
|
-
readonly maxZoom: 19;
|
|
62
|
-
readonly minZoom: 1;
|
|
63
|
-
readonly tileSize: 256;
|
|
64
|
-
readonly detectRetina: true;
|
|
65
|
-
};
|
|
66
|
-
//#endregion
|
|
67
|
-
export { MapType as a, MapMarker as i, MAP_TYPES as n, OSM_TILE_CONFIG as o, MapConfig as r, _default as s, DEFAULT_MAP_CONFIG as t };
|