@robot-admin/naive-ui-components 0.37.1 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +24 -3
- package/README_EN.md +23 -2
- package/dist/C_AntV.css +30 -30
- package/dist/C_AudioPlayer.css +4 -4
- package/dist/C_Captcha.css +31 -19
- package/dist/C_Captcha.d.ts +1 -1
- package/dist/C_DataPicker.d.ts +0 -1
- package/dist/C_Density2.cjs +1 -1
- package/dist/C_Density2.js +1 -1
- package/dist/C_FilePreview.css +1 -1
- package/dist/C_Form.base.css +61 -58
- package/dist/C_Form.css +61 -58
- package/dist/C_Form.d.cts +1 -1
- package/dist/C_Form.d.ts +2 -1
- package/dist/C_FormModal.d.ts +2 -1
- package/dist/C_FormSearch.d.ts +2 -2
- package/dist/C_GlobalSearch.css +12 -12
- package/dist/C_Guide.css +6 -6
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_Login.css +139 -112
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_NotificationCenter.css +91 -91
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_Table.base.css +231 -212
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +170 -154
- package/dist/C_Table.d.cts +2 -1
- package/dist/C_Table.d.ts +2 -3
- package/dist/C_Table.js +1 -1
- package/dist/C_Table2.cjs +4 -4
- package/dist/C_Table2.js +4 -4
- package/dist/C_Timeline.css +2 -2
- package/dist/C_Tree.d.cts +1 -0
- package/dist/C_Tree.d.ts +0 -1
- package/dist/C_UserPicker.d.ts +0 -1
- package/dist/C_VideoPlayer.css +26 -26
- package/dist/C_VideoPlayer2.cjs +1 -1
- package/dist/C_VideoPlayer2.js +1 -1
- package/dist/C_VtableGantt.css +34 -32
- package/dist/C_WorkFlow.css +35 -35
- package/dist/C_WorkFlow.d.ts +0 -1
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/Card.cjs +1 -1
- package/dist/Card.js +1 -1
- package/dist/UML.cjs +1 -1
- package/dist/UML.js +1 -1
- package/dist/component-config.d.ts +1723 -2
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +3 -3
- package/dist/config.d.ts +4 -3
- package/dist/config.js +1 -1
- package/dist/constants3.d.cts +5 -5
- package/dist/constants3.d.ts +5 -5
- package/dist/constants4.d.cts +5 -5
- package/dist/constants4.d.ts +5 -5
- package/dist/context.cjs +1 -1
- package/dist/context.d.cts +1118 -3
- package/dist/context.js +1 -1
- package/dist/data2.d.cts +3 -3
- package/dist/data2.d.ts +3 -3
- package/dist/dateRange.d.ts +1 -1
- package/dist/editors.d.cts +9 -7
- package/dist/editors.d.ts +9 -7
- package/dist/graphics.cjs +1 -1
- package/dist/graphics.d.cts +0 -45
- package/dist/graphics.d.ts +0 -45
- package/dist/graphics.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +4 -5
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +4 -4
- package/dist/index.vue.d.ts +4 -4
- package/dist/index10.vue.d.ts +5 -5
- package/dist/index11.vue.d.cts +5 -5
- package/dist/index11.vue.d.ts +4 -4
- package/dist/index12.vue.d.cts +4 -4
- package/dist/index13.vue.d.ts +2 -2
- package/dist/index14.vue.d.cts +2 -2
- package/dist/index15.vue.d.ts +1 -1
- package/dist/index16.vue.d.cts +1 -1
- package/dist/index16.vue.d.ts +3 -3
- package/dist/index17.vue.d.cts +3 -3
- package/dist/index17.vue.d.ts +6 -6
- package/dist/index18.vue.d.cts +6 -6
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +2 -2
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index27.vue.d.cts +2 -2
- package/dist/index27.vue.d.ts +2 -2
- package/dist/index28.vue.d.cts +2 -2
- package/dist/index28.vue.d.ts +2 -2
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index30.vue.d.cts +1 -1
- package/dist/index30.vue.d.ts +1 -1
- package/dist/index31.vue.d.cts +2 -2
- package/dist/index31.vue.d.ts +2 -2
- package/dist/index32.vue.d.cts +2 -2
- package/dist/index32.vue.d.ts +2 -2
- package/dist/index4.vue.d.cts +2 -2
- package/dist/index4.vue.d.ts +2 -2
- package/dist/index8.vue.d.ts +2 -2
- package/dist/index9.vue.d.cts +2 -2
- package/dist/presets.d.cts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/style.css +612 -564
- package/dist/theme.cjs +1 -1
- package/dist/theme.d.cts +27 -8
- package/dist/theme.d.ts +27 -8
- package/dist/theme.js +1 -1
- package/dist/theme2.cjs +1 -1
- package/dist/theme2.js +1 -1
- package/dist/types3.d.ts +5 -1119
- package/dist/types4.d.cts +5 -1119
- package/dist/types6.d.ts +2 -1
- package/dist/types7.d.cts +2 -1
- package/dist/useCalendarEvents.d.cts +2 -2
- package/dist/useCalendarEvents.d.ts +2 -2
- package/dist/useCollapsePanel.d.cts +7 -7
- package/dist/useCollapsePanel.d.ts +7 -7
- package/dist/useComponentTheme.cjs +1 -1
- package/dist/useComponentTheme.js +1 -1
- package/dist/useCropperCore.d.cts +8 -8
- package/dist/useCropperCore.d.ts +8 -8
- package/dist/useDynamicFormState.d.cts +1 -1
- package/dist/useDynamicFormState.d.ts +1 -1
- package/dist/useEdgeInteraction.d.cts +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useGlobalSearch.d.cts +1 -1
- package/dist/useGlobalSearch.d.ts +1 -1
- package/dist/useInfiniteScroll.d.cts +4 -4
- package/dist/useInfiniteScroll.d.ts +4 -4
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +3 -3
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.cts +3 -3
- package/dist/useSplitResize.d.ts +3 -3
- package/dist/verification.d.cts +7 -7
- package/dist/verification.d.ts +7 -7
- package/docs/guides/table-density.md +19 -2
- package/docs/guides/theme.md +44 -2
- package/package.json +2 -1
- package/dist/context.d.ts +0 -610
- package/dist/useTableGlobalConfig.cjs +0 -1
- package/dist/useTableGlobalConfig.js +0 -1
package/dist/types6.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { t as ComponentDensity } from "./density.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ut as TableColumn } from "./component-config.js";
|
|
3
|
+
import { f as DataPickerSourceInput, n as DataPickerExpose, p as DataPickerValue, s as DataPickerProps, u as DataPickerSelectionContext } from "./types3.js";
|
|
3
4
|
import { VNodeChild } from "vue";
|
|
4
5
|
import { TreeInst, TreeOption, TreeProps } from "naive-ui";
|
|
5
6
|
|
package/dist/types7.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { t as ComponentDensity } from "./density.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { ct as TableColumn } from "./context.cjs";
|
|
3
|
+
import { f as DataPickerSourceInput, n as DataPickerExpose, p as DataPickerValue, s as DataPickerProps, u as DataPickerSelectionContext } from "./types4.cjs";
|
|
3
4
|
import { VNodeChild } from "vue";
|
|
4
5
|
import { TreeInst, TreeOption, TreeProps } from "naive-ui";
|
|
5
6
|
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
79
79
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
80
80
|
"onEvent-resized"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
81
81
|
}>, {
|
|
82
|
-
events: CalendarEvent[];
|
|
83
|
-
initialView: CalendarViewType;
|
|
84
82
|
editable: boolean;
|
|
83
|
+
initialView: CalendarViewType;
|
|
84
|
+
events: CalendarEvent[];
|
|
85
85
|
showAddDialog: boolean;
|
|
86
86
|
showEditDialog: boolean;
|
|
87
87
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
79
79
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
80
80
|
"onEvent-resized"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
81
81
|
}>, {
|
|
82
|
-
events: CalendarEvent[];
|
|
83
|
-
initialView: CalendarViewType;
|
|
84
82
|
editable: boolean;
|
|
83
|
+
initialView: CalendarViewType;
|
|
84
|
+
events: CalendarEvent[];
|
|
85
85
|
showAddDialog: boolean;
|
|
86
86
|
showEditDialog: boolean;
|
|
87
87
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -72,23 +72,23 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
72
72
|
};
|
|
73
73
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
|
|
74
74
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
|
-
|
|
75
|
+
change: (activeKeys: string[]) => any;
|
|
76
76
|
expand: (key: string) => any;
|
|
77
77
|
collapse: (key: string) => any;
|
|
78
|
-
|
|
78
|
+
"update:activeKeys": (keys: string[]) => any;
|
|
79
79
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
80
|
-
|
|
80
|
+
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
81
81
|
onExpand?: ((key: string) => any) | undefined;
|
|
82
82
|
onCollapse?: ((key: string) => any) | undefined;
|
|
83
|
-
|
|
83
|
+
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
84
84
|
}>, {
|
|
85
|
+
bordered: boolean;
|
|
86
|
+
accordion: boolean;
|
|
87
|
+
persistKey: string;
|
|
85
88
|
activeKeys: string[];
|
|
86
89
|
defaultActiveKeys: string[];
|
|
87
|
-
accordion: boolean;
|
|
88
90
|
variant: CollapsePanelVariant;
|
|
89
91
|
expandIconPosition: ExpandIconPosition;
|
|
90
|
-
bordered: boolean;
|
|
91
|
-
persistKey: string;
|
|
92
92
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
93
93
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
94
94
|
declare const _default: typeof __VLS_export;
|
|
@@ -72,23 +72,23 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
72
72
|
};
|
|
73
73
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
|
|
74
74
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
|
-
|
|
75
|
+
change: (activeKeys: string[]) => any;
|
|
76
76
|
expand: (key: string) => any;
|
|
77
77
|
collapse: (key: string) => any;
|
|
78
|
-
|
|
78
|
+
"update:activeKeys": (keys: string[]) => any;
|
|
79
79
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
80
|
-
|
|
80
|
+
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
81
81
|
onExpand?: ((key: string) => any) | undefined;
|
|
82
82
|
onCollapse?: ((key: string) => any) | undefined;
|
|
83
|
-
|
|
83
|
+
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
84
84
|
}>, {
|
|
85
|
+
bordered: boolean;
|
|
86
|
+
accordion: boolean;
|
|
87
|
+
persistKey: string;
|
|
85
88
|
activeKeys: string[];
|
|
86
89
|
defaultActiveKeys: string[];
|
|
87
|
-
accordion: boolean;
|
|
88
90
|
variant: CollapsePanelVariant;
|
|
89
91
|
expandIconPosition: ExpandIconPosition;
|
|
90
|
-
bordered: boolean;
|
|
91
|
-
persistKey: string;
|
|
92
92
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
93
93
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
94
94
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk.cjs`);const e=require(`./theme.cjs`);let t=require(`vue`),n=require(`naive-ui`);const r={"bg-body":[`bgBody`,`bodyColor`],"bg-card":[`bgCard`,`cardColor`],"bg-surface":[`bgSurface`,`popoverColor`],"bg-muted":[`bgMuted`,`actionColor`],"bg-hover":[`bgHover`,`hoverColor`],"bg-active":[`bgActive`,`pressedColor`],"
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./theme.cjs`);let t=require(`vue`),n=require(`naive-ui`);const r={"bg-body":[`bgBody`,`bodyColor`],"bg-card":[`bgCard`,`cardColor`],"bg-surface":[`bgSurface`,`popoverColor`],"bg-muted":[`bgMuted`,`actionColor`],"bg-hover":[`bgHover`,`hoverColor`],"bg-active":[`bgActive`,`pressedColor`],"text-1":[`text1`,`textColor1`],"text-2":[`text2`,`textColor2`],"text-3":[`text3`,`textColor3`],"text-4":[`text4`,`textColorDisabled`],border:[`border`,`borderColor`]};function i(e,t){return{...Object.fromEntries(Object.entries(r).map(([n,[r,i]])=>[`--c-theme-${n}`,t?t[r]:e[i]])),"--c-theme-skeleton-bg":t?.skeletonBg??e.robotComponentSkeletonColor??e.actionColor}}function a(r){let a=(0,n.useThemeVars)(),o=(0,t.useAttrs)();return(0,t.computed)(()=>{let{value:n}=a,s=e.r(n.baseColor),c=r?.()??s,l=c===s?void 0:e.t[c],{borderRadius:u}=n,d={"--c-theme-primary":n.primaryColor,"--c-theme-primary-hover":n.primaryColorHover,"--c-theme-primary-pressed":n.primaryColorPressed,"--c-theme-success":n.successColor,"--c-theme-warning":n.warningColor,"--c-theme-error":n.errorColor,"--c-theme-info":n.infoColor,...i(n,l),"--c-theme-radius":u,"--c-theme-radius-sm":n.borderRadiusSmall,"--c-theme-radius-panel":`max(8px, calc(${u} + 4px))`,"--c-theme-radius-lg":`max(12px, calc(${u} + 8px))`,"--c-theme-focus-ring":`color-mix(in srgb, ${n.primaryColor} 30%, transparent)`,"--c-theme-shadow-sm":n.boxShadow1,"--c-theme-shadow-md":n.boxShadow2,"--c-theme-shadow-lg":n.boxShadow3,"--c-theme-control-height-tiny":n.heightTiny,"--c-theme-control-height-small":n.heightSmall,"--c-theme-control-height-medium":n.heightMedium,"--c-theme-control-height-large":n.heightLarge},f=(0,t.normalizeStyle)([o.style]);if(f&&typeof f==`object`)for(let[e,t]of Object.entries(f))e.startsWith(`--c-`)&&(d[e]=t);return d})}function o(r){let i=(0,n.useThemeVars)();return(0,t.computed)(()=>r?.()??e.r(i.value.baseColor))}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,t}from"./theme.js";import{computed as n,normalizeStyle as r,useAttrs as i}from"vue";import{useThemeVars as a}from"naive-ui";const o={"bg-body":[`bgBody`,`bodyColor`],"bg-card":[`bgCard`,`cardColor`],"bg-surface":[`bgSurface`,`popoverColor`],"bg-muted":[`bgMuted`,`actionColor`],"bg-hover":[`bgHover`,`hoverColor`],"bg-active":[`bgActive`,`pressedColor`],"
|
|
1
|
+
import{r as e,t}from"./theme.js";import{computed as n,normalizeStyle as r,useAttrs as i}from"vue";import{useThemeVars as a}from"naive-ui";const o={"bg-body":[`bgBody`,`bodyColor`],"bg-card":[`bgCard`,`cardColor`],"bg-surface":[`bgSurface`,`popoverColor`],"bg-muted":[`bgMuted`,`actionColor`],"bg-hover":[`bgHover`,`hoverColor`],"bg-active":[`bgActive`,`pressedColor`],"text-1":[`text1`,`textColor1`],"text-2":[`text2`,`textColor2`],"text-3":[`text3`,`textColor3`],"text-4":[`text4`,`textColorDisabled`],border:[`border`,`borderColor`]};function s(e,t){return{...Object.fromEntries(Object.entries(o).map(([n,[r,i]])=>[`--c-theme-${n}`,t?t[r]:e[i]])),"--c-theme-skeleton-bg":t?.skeletonBg??e.robotComponentSkeletonColor??e.actionColor}}function c(o){let c=a(),l=i();return n(()=>{let{value:n}=c,i=e(n.baseColor),a=o?.()??i,u=a===i?void 0:t[a],{borderRadius:d}=n,f={"--c-theme-primary":n.primaryColor,"--c-theme-primary-hover":n.primaryColorHover,"--c-theme-primary-pressed":n.primaryColorPressed,"--c-theme-success":n.successColor,"--c-theme-warning":n.warningColor,"--c-theme-error":n.errorColor,"--c-theme-info":n.infoColor,...s(n,u),"--c-theme-radius":d,"--c-theme-radius-sm":n.borderRadiusSmall,"--c-theme-radius-panel":`max(8px, calc(${d} + 4px))`,"--c-theme-radius-lg":`max(12px, calc(${d} + 8px))`,"--c-theme-focus-ring":`color-mix(in srgb, ${n.primaryColor} 30%, transparent)`,"--c-theme-shadow-sm":n.boxShadow1,"--c-theme-shadow-md":n.boxShadow2,"--c-theme-shadow-lg":n.boxShadow3,"--c-theme-control-height-tiny":n.heightTiny,"--c-theme-control-height-small":n.heightSmall,"--c-theme-control-height-medium":n.heightMedium,"--c-theme-control-height-large":n.heightLarge},p=r([l.style]);if(p&&typeof p==`object`)for(let[e,t]of Object.entries(p))e.startsWith(`--c-`)&&(f[e]=t);return f})}function l(t){let r=a();return n(()=>t?.()??e(r.value.baseColor))}export{c as n,l as t};
|
|
@@ -53,29 +53,29 @@ interface ImageCropperEmits {
|
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
54
|
ready: () => any;
|
|
55
55
|
error: (error: Error) => any;
|
|
56
|
-
crop: (result: CropResult) => any;
|
|
57
|
-
confirm: (result: CropResult) => any;
|
|
58
56
|
cancel: () => any;
|
|
57
|
+
confirm: (result: CropResult) => any;
|
|
58
|
+
crop: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
60
|
onReady?: (() => any) | undefined;
|
|
61
61
|
onError?: ((error: Error) => any) | undefined;
|
|
62
|
-
onCrop?: ((result: CropResult) => any) | undefined;
|
|
63
|
-
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
64
62
|
onCancel?: (() => any) | undefined;
|
|
63
|
+
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
64
|
+
onCrop?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
height: string | number;
|
|
67
67
|
src: string;
|
|
68
68
|
disabled: boolean;
|
|
69
|
+
modal: boolean;
|
|
70
|
+
showToolbar: boolean;
|
|
71
|
+
showPreview: boolean;
|
|
69
72
|
aspectRatio: number;
|
|
73
|
+
modalTitle: string;
|
|
70
74
|
outputFormat: CropOutputFormat;
|
|
71
75
|
outputQuality: number;
|
|
72
76
|
maxOutputWidth: number;
|
|
73
77
|
maxOutputHeight: number;
|
|
74
|
-
showPreview: boolean;
|
|
75
|
-
showToolbar: boolean;
|
|
76
78
|
circular: boolean;
|
|
77
|
-
modal: boolean;
|
|
78
|
-
modalTitle: string;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
81
81
|
//#endregion
|
package/dist/useCropperCore.d.ts
CHANGED
|
@@ -53,29 +53,29 @@ interface ImageCropperEmits {
|
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
54
|
ready: () => any;
|
|
55
55
|
error: (error: Error) => any;
|
|
56
|
-
crop: (result: CropResult) => any;
|
|
57
|
-
confirm: (result: CropResult) => any;
|
|
58
56
|
cancel: () => any;
|
|
57
|
+
confirm: (result: CropResult) => any;
|
|
58
|
+
crop: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
60
|
onReady?: (() => any) | undefined;
|
|
61
61
|
onError?: ((error: Error) => any) | undefined;
|
|
62
|
-
onCrop?: ((result: CropResult) => any) | undefined;
|
|
63
|
-
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
64
62
|
onCancel?: (() => any) | undefined;
|
|
63
|
+
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
64
|
+
onCrop?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
height: string | number;
|
|
67
67
|
src: string;
|
|
68
68
|
disabled: boolean;
|
|
69
|
+
modal: boolean;
|
|
70
|
+
showToolbar: boolean;
|
|
71
|
+
showPreview: boolean;
|
|
69
72
|
aspectRatio: number;
|
|
73
|
+
modalTitle: string;
|
|
70
74
|
outputFormat: CropOutputFormat;
|
|
71
75
|
outputQuality: number;
|
|
72
76
|
maxOutputWidth: number;
|
|
73
77
|
maxOutputHeight: number;
|
|
74
|
-
showPreview: boolean;
|
|
75
|
-
showToolbar: boolean;
|
|
76
78
|
circular: boolean;
|
|
77
|
-
modal: boolean;
|
|
78
|
-
modalTitle: string;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
81
81
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types2.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Bt as DynamicFormController, Et as FormConfig, It as ComponentType, Jt as FormModel, Kt as FormInstance, Xt as FormRecord, Yt as FormOption, Zt as FormSlots, an as LayoutType, kt as ResolvedFormConfig, ln as SubmitEventPayload, sn as OptionItem } from "./context.cjs";
|
|
3
3
|
import { r as FormRenderer } from "./useFormRenderer.cjs";
|
|
4
4
|
import { a as SelectProps$1, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types6.cjs";
|
|
5
5
|
import * as vue from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types2.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $t as FormSlots, Ht as DynamicFormController, Jt as FormInstance, Ot as FormConfig, Qt as FormRecord, Rt as ComponentType, Xt as FormModel, Zt as FormOption, dn as SubmitEventPayload, jt as ResolvedFormConfig, ln as OptionItem, sn as LayoutType } from "./component-config.js";
|
|
3
3
|
import { r as FormRenderer } from "./useFormRenderer.js";
|
|
4
4
|
import { a as SelectProps$1, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types5.js";
|
|
5
5
|
import * as vue from "vue";
|
|
@@ -266,8 +266,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
266
266
|
}>, {
|
|
267
267
|
width: string | number;
|
|
268
268
|
height: string | number;
|
|
269
|
-
showToolbar: boolean;
|
|
270
269
|
readonly: boolean;
|
|
270
|
+
showToolbar: boolean;
|
|
271
271
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
272
272
|
declare const _default: typeof __VLS_export;
|
|
273
273
|
//#endregion
|
|
@@ -266,8 +266,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
266
266
|
}>, {
|
|
267
267
|
width: string | number;
|
|
268
268
|
height: string | number;
|
|
269
|
-
showToolbar: boolean;
|
|
270
269
|
readonly: boolean;
|
|
270
|
+
showToolbar: boolean;
|
|
271
271
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
272
272
|
declare const _default: typeof __VLS_export;
|
|
273
273
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Jt as FormModel, Yt as FormOption, kt as ResolvedFormConfig, sn as OptionItem } from "./context.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { Component, ComputedRef, InjectionKey, Ref, Slots, VNode } from "vue";
|
|
4
4
|
import { FormItemInst } from "naive-ui";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Xt as FormModel, Zt as FormOption, jt as ResolvedFormConfig, ln as OptionItem } from "./component-config.js";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { Component, ComputedRef, InjectionKey, Ref, Slots, VNode } from "vue";
|
|
4
4
|
import { FormItemInst } from "naive-ui";
|
|
@@ -60,8 +60,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
60
60
|
openDialog: () => Promise<void>;
|
|
61
61
|
closeDialog: () => void;
|
|
62
62
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
63
|
-
emptyText: string;
|
|
64
63
|
placeholder: string;
|
|
64
|
+
emptyText: string;
|
|
65
65
|
resultGroupTitle: string;
|
|
66
66
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
67
67
|
declare const _default: typeof __VLS_export;
|
|
@@ -60,8 +60,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
60
60
|
openDialog: () => Promise<void>;
|
|
61
61
|
closeDialog: () => void;
|
|
62
62
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
63
|
-
emptyText: string;
|
|
64
63
|
placeholder: string;
|
|
64
|
+
emptyText: string;
|
|
65
65
|
resultGroupTitle: string;
|
|
66
66
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
67
67
|
declare const _default: typeof __VLS_export;
|
|
@@ -77,21 +77,21 @@ type __VLS_Slots = {} & {
|
|
|
77
77
|
footer?: (props: typeof __VLS_5) => any;
|
|
78
78
|
};
|
|
79
79
|
declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
80
|
-
"load-more": () => any;
|
|
81
80
|
"item-click": (item: WaterFallItem, index: number) => any;
|
|
81
|
+
"load-more": () => any;
|
|
82
82
|
"image-loaded": (item: WaterFallItem) => any;
|
|
83
83
|
"image-error": (item: WaterFallItem) => any;
|
|
84
84
|
}, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
|
|
85
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
86
85
|
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
86
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
87
87
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
88
88
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
90
|
loading: boolean;
|
|
91
|
+
columns: number;
|
|
92
|
+
virtualScroll: boolean;
|
|
91
93
|
gap: number;
|
|
92
94
|
infinite: boolean;
|
|
93
|
-
virtualScroll: boolean;
|
|
94
|
-
columns: number;
|
|
95
95
|
lazy: boolean;
|
|
96
96
|
skeleton: boolean;
|
|
97
97
|
skeletonCount: number;
|
|
@@ -77,21 +77,21 @@ type __VLS_Slots = {} & {
|
|
|
77
77
|
footer?: (props: typeof __VLS_5) => any;
|
|
78
78
|
};
|
|
79
79
|
declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
80
|
-
"load-more": () => any;
|
|
81
80
|
"item-click": (item: WaterFallItem, index: number) => any;
|
|
81
|
+
"load-more": () => any;
|
|
82
82
|
"image-loaded": (item: WaterFallItem) => any;
|
|
83
83
|
"image-error": (item: WaterFallItem) => any;
|
|
84
84
|
}, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
|
|
85
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
86
85
|
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
86
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
87
87
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
88
88
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
90
|
loading: boolean;
|
|
91
|
+
columns: number;
|
|
92
|
+
virtualScroll: boolean;
|
|
91
93
|
gap: number;
|
|
92
94
|
infinite: boolean;
|
|
93
|
-
virtualScroll: boolean;
|
|
94
|
-
columns: number;
|
|
95
95
|
lazy: boolean;
|
|
96
96
|
skeleton: boolean;
|
|
97
97
|
skeletonCount: number;
|
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
|
-
size: number;
|
|
54
53
|
label: string;
|
|
54
|
+
size: number;
|
|
55
55
|
color: string;
|
|
56
|
+
mode: RenderMode;
|
|
56
57
|
showBorder: boolean;
|
|
57
58
|
showLabel: boolean;
|
|
58
|
-
mode: RenderMode;
|
|
59
|
-
margin: number;
|
|
60
59
|
bgColor: string;
|
|
61
60
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
61
|
+
margin: number;
|
|
62
62
|
logo: LogoOptions;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
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
|
-
size: number;
|
|
54
53
|
label: string;
|
|
54
|
+
size: number;
|
|
55
55
|
color: string;
|
|
56
|
+
mode: RenderMode;
|
|
56
57
|
showBorder: boolean;
|
|
57
58
|
showLabel: boolean;
|
|
58
|
-
mode: RenderMode;
|
|
59
|
-
margin: number;
|
|
60
59
|
bgColor: string;
|
|
61
60
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
61
|
+
margin: number;
|
|
62
62
|
logo: LogoOptions;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
@@ -92,18 +92,18 @@ interface SignatureEmits {
|
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/components/C_Signature/index.vue.d.ts
|
|
94
94
|
declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
95
|
+
error: (error: Error) => any;
|
|
95
96
|
clear: () => any;
|
|
96
97
|
change: (data: SignatureStroke[]) => any;
|
|
97
|
-
error: (error: Error) => any;
|
|
98
98
|
"start-draw": () => any;
|
|
99
99
|
drawing: (point: SignaturePoint) => any;
|
|
100
100
|
"end-draw": (stroke: SignatureStroke) => any;
|
|
101
101
|
undo: () => any;
|
|
102
102
|
redo: () => any;
|
|
103
103
|
}, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
|
|
104
|
+
onError?: ((error: Error) => any) | undefined;
|
|
104
105
|
onClear?: (() => any) | undefined;
|
|
105
106
|
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
106
|
-
onError?: ((error: Error) => any) | undefined;
|
|
107
107
|
"onStart-draw"?: (() => any) | undefined;
|
|
108
108
|
onDrawing?: ((point: SignaturePoint) => any) | undefined;
|
|
109
109
|
"onEnd-draw"?: ((stroke: SignatureStroke) => any) | undefined;
|
|
@@ -113,8 +113,8 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
113
113
|
width: number | string;
|
|
114
114
|
height: number | string;
|
|
115
115
|
disabled: boolean;
|
|
116
|
-
showToolbar: boolean;
|
|
117
116
|
readonly: boolean;
|
|
117
|
+
showToolbar: boolean;
|
|
118
118
|
maxHistory: number;
|
|
119
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
120
120
|
declare const _default: typeof __VLS_export;
|
|
@@ -92,18 +92,18 @@ interface SignatureEmits {
|
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/components/C_Signature/index.vue.d.ts
|
|
94
94
|
declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
95
|
+
error: (error: Error) => any;
|
|
95
96
|
clear: () => any;
|
|
96
97
|
change: (data: SignatureStroke[]) => any;
|
|
97
|
-
error: (error: Error) => any;
|
|
98
98
|
"start-draw": () => any;
|
|
99
99
|
drawing: (point: SignaturePoint) => any;
|
|
100
100
|
"end-draw": (stroke: SignatureStroke) => any;
|
|
101
101
|
undo: () => any;
|
|
102
102
|
redo: () => any;
|
|
103
103
|
}, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
|
|
104
|
+
onError?: ((error: Error) => any) | undefined;
|
|
104
105
|
onClear?: (() => any) | undefined;
|
|
105
106
|
onChange?: ((data: SignatureStroke[]) => any) | undefined;
|
|
106
|
-
onError?: ((error: Error) => any) | undefined;
|
|
107
107
|
"onStart-draw"?: (() => any) | undefined;
|
|
108
108
|
onDrawing?: ((point: SignaturePoint) => any) | undefined;
|
|
109
109
|
"onEnd-draw"?: ((stroke: SignatureStroke) => any) | undefined;
|
|
@@ -113,8 +113,8 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
|
|
|
113
113
|
width: number | string;
|
|
114
114
|
height: number | string;
|
|
115
115
|
disabled: boolean;
|
|
116
|
-
showToolbar: boolean;
|
|
117
116
|
readonly: boolean;
|
|
117
|
+
showToolbar: boolean;
|
|
118
118
|
maxHistory: number;
|
|
119
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
120
120
|
declare const _default: typeof __VLS_export;
|
|
@@ -56,22 +56,23 @@ type __VLS_Slots = {
|
|
|
56
56
|
};
|
|
57
57
|
declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
58
58
|
expand: (target: CollapseTarget) => any;
|
|
59
|
-
collapse: (target: CollapseTarget) => any;
|
|
60
59
|
"update:size": (size: number) => any;
|
|
61
60
|
resize: (firstSize: number, secondSize: number) => any;
|
|
61
|
+
collapse: (target: CollapseTarget) => any;
|
|
62
62
|
"drag-start": (size: number) => any;
|
|
63
63
|
"drag-end": (size: number) => any;
|
|
64
64
|
}, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
|
|
65
65
|
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
66
|
-
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
67
66
|
"onUpdate:size"?: ((size: number) => any) | undefined;
|
|
68
67
|
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
68
|
+
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
69
69
|
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
70
70
|
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
72
|
direction: SplitDirection;
|
|
73
73
|
collapsible: boolean;
|
|
74
74
|
disabled: boolean;
|
|
75
|
+
step: number;
|
|
75
76
|
defaultSize: number;
|
|
76
77
|
minSize: number;
|
|
77
78
|
maxSize: number;
|
|
@@ -79,7 +80,6 @@ declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {
|
|
|
79
80
|
minSecondSize: number;
|
|
80
81
|
showCollapseButton: boolean;
|
|
81
82
|
gutterSize: number;
|
|
82
|
-
step: number;
|
|
83
83
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
84
84
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
85
85
|
declare const _default: typeof __VLS_export;
|
package/dist/useSplitResize.d.ts
CHANGED
|
@@ -56,22 +56,23 @@ type __VLS_Slots = {
|
|
|
56
56
|
};
|
|
57
57
|
declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
58
58
|
expand: (target: CollapseTarget) => any;
|
|
59
|
-
collapse: (target: CollapseTarget) => any;
|
|
60
59
|
"update:size": (size: number) => any;
|
|
61
60
|
resize: (firstSize: number, secondSize: number) => any;
|
|
61
|
+
collapse: (target: CollapseTarget) => any;
|
|
62
62
|
"drag-start": (size: number) => any;
|
|
63
63
|
"drag-end": (size: number) => any;
|
|
64
64
|
}, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
|
|
65
65
|
onExpand?: ((target: CollapseTarget) => any) | undefined;
|
|
66
|
-
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
67
66
|
"onUpdate:size"?: ((size: number) => any) | undefined;
|
|
68
67
|
onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
|
|
68
|
+
onCollapse?: ((target: CollapseTarget) => any) | undefined;
|
|
69
69
|
"onDrag-start"?: ((size: number) => any) | undefined;
|
|
70
70
|
"onDrag-end"?: ((size: number) => any) | undefined;
|
|
71
71
|
}>, {
|
|
72
72
|
direction: SplitDirection;
|
|
73
73
|
collapsible: boolean;
|
|
74
74
|
disabled: boolean;
|
|
75
|
+
step: number;
|
|
75
76
|
defaultSize: number;
|
|
76
77
|
minSize: number;
|
|
77
78
|
maxSize: number;
|
|
@@ -79,7 +80,6 @@ declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {
|
|
|
79
80
|
minSecondSize: number;
|
|
80
81
|
showCollapseButton: boolean;
|
|
81
82
|
gutterSize: number;
|
|
82
|
-
step: number;
|
|
83
83
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
84
84
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
85
85
|
declare const _default: typeof __VLS_export;
|
package/dist/verification.d.cts
CHANGED
|
@@ -76,25 +76,25 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
|
|
|
76
76
|
reset: () => void;
|
|
77
77
|
show: () => void;
|
|
78
78
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
79
|
-
change: (valid: boolean) => any;
|
|
80
|
-
reset: () => any;
|
|
81
79
|
success: (data: CaptchaSuccessPayload) => any;
|
|
82
|
-
"load-error": (error: unknown) => any;
|
|
83
80
|
fail: (error: string) => any;
|
|
84
81
|
"verify-error": (error: unknown) => any;
|
|
82
|
+
"load-error": (error: unknown) => any;
|
|
83
|
+
change: (valid: boolean) => any;
|
|
85
84
|
"visible-change": (visible: boolean) => any;
|
|
85
|
+
reset: () => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
|
|
87
|
-
onChange?: ((valid: boolean) => any) | undefined;
|
|
88
|
-
onReset?: (() => any) | undefined;
|
|
89
87
|
onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
|
|
90
|
-
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
91
88
|
onFail?: ((error: string) => any) | undefined;
|
|
92
89
|
"onVerify-error"?: ((error: unknown) => any) | undefined;
|
|
90
|
+
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
91
|
+
onChange?: ((valid: boolean) => any) | undefined;
|
|
93
92
|
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
93
|
+
onReset?: (() => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
|
-
disabled: boolean;
|
|
96
95
|
provider: CaptchaProvider;
|
|
97
96
|
images: string[];
|
|
97
|
+
disabled: boolean;
|
|
98
98
|
verificationTimeout: number;
|
|
99
99
|
requireServerVerification: boolean;
|
|
100
100
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/verification.d.ts
CHANGED
|
@@ -76,25 +76,25 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
|
|
|
76
76
|
reset: () => void;
|
|
77
77
|
show: () => void;
|
|
78
78
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
79
|
-
change: (valid: boolean) => any;
|
|
80
|
-
reset: () => any;
|
|
81
79
|
success: (data: CaptchaSuccessPayload) => any;
|
|
82
|
-
"load-error": (error: unknown) => any;
|
|
83
80
|
fail: (error: string) => any;
|
|
84
81
|
"verify-error": (error: unknown) => any;
|
|
82
|
+
"load-error": (error: unknown) => any;
|
|
83
|
+
change: (valid: boolean) => any;
|
|
85
84
|
"visible-change": (visible: boolean) => any;
|
|
85
|
+
reset: () => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
|
|
87
|
-
onChange?: ((valid: boolean) => any) | undefined;
|
|
88
|
-
onReset?: (() => any) | undefined;
|
|
89
87
|
onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
|
|
90
|
-
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
91
88
|
onFail?: ((error: string) => any) | undefined;
|
|
92
89
|
"onVerify-error"?: ((error: unknown) => any) | undefined;
|
|
90
|
+
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
91
|
+
onChange?: ((valid: boolean) => any) | undefined;
|
|
93
92
|
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
93
|
+
onReset?: (() => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
|
-
disabled: boolean;
|
|
96
95
|
provider: CaptchaProvider;
|
|
97
96
|
images: string[];
|
|
97
|
+
disabled: boolean;
|
|
98
98
|
verificationTimeout: number;
|
|
99
99
|
requireServerVerification: boolean;
|
|
100
100
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -82,7 +82,7 @@ const columns: TableColumn<Order>[] = [
|
|
|
82
82
|
|
|
83
83
|
不需要给每张表写辅助列 CSS。显式列 `width / minWidth / maxWidth / fixed / className / cellProps` 保持生效;`config.display.columnWidth`(包括全局配置中的显式 `180`)仍表示统一列宽,完整表头下限始终优先。显式宽度、已保存的手动宽度及 `autoWidth: false` 列不参与余量分配,固定业务列仍可参与自动测宽。
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
所有业务列都显式定宽时,保留这些宽度,不挑选某一列吸收余量。数值列宽决定业务列及横向滚动范围;有固定右区时,画布同时覆盖可用视口。需要 Naive UI 原生布局及 `scrollX` 最小宽度语义时,显式传 `table-layout="fixed"` / `table-layout="auto"`;可见的百分比等非数值宽度同样沿用原生布局。横向虚拟化默认使用包内计算出的数值列宽。
|
|
86
86
|
|
|
87
87
|
独立的列 `renderExpand` 直接转交原生表格;配置 `config.expand.onLoadData / renderContent` 后由组件的加载、失败重试和内容渲染器接管展开区。不要同时配置两套展开内容并依赖原生渲染器优先。自动横向滚动宽度按最终可见列计算,包含辅助列、动态选择列和操作列,不再额外追加固定留白。
|
|
88
88
|
|
|
@@ -123,6 +123,23 @@ const columns = [
|
|
|
123
123
|
|
|
124
124
|
状态列复用 Naive UI 标签和主题。支持 `success/warning/danger/info/neutral`,也支持 Naive 的 `error/default/primary` 和 CSS 颜色。未知代码保持中性;`0/false` 是有效值,空值保留空态。显式 render 优先;formatter/字典文字会用于默认颜色判断和测宽。状态配置只改变展示,不会改写数据、排序、筛选或导出。
|
|
125
125
|
|
|
126
|
-
测宽不额外挂载或执行 render;图标、进度条和复杂自定义内容请显式指定 width。数据与列配置更新会触发新的有界测量,视口变化只复用已有基准分配空间,不重新扫描行。配置和缓存只属于当前组件实例。拖动只改变目标列,150ms 偏好提交后仍保留其他列的实际宽度;真实容器宽度变化或重置列设置后,自动列重新参与分配。
|
|
126
|
+
测宽不额外挂载或执行 render;图标、进度条和复杂自定义内容请显式指定 width。数据与列配置更新会触发新的有界测量,视口变化只复用已有基准分配空间,不重新扫描行。配置和缓存只属于当前组件实例。拖动只改变目标列,150ms 偏好提交后仍保留其他列的实际宽度;真实容器宽度变化或重置列设置后,自动列重新参与分配。 操作列默认固定右侧;缩列余量由内部画布承接,固定右区不跟随表尾左移。自动列保存宽度后仍保留原来的省略、完整提示和默认最小宽度;原生链接或按钮同样支持尾部省略,主动多行可设置 `ellipsis: false`。
|
|
127
127
|
|
|
128
128
|
表头默认完整展示,不随单元格 ellipsis 配置省略。所有业务列的最小宽度计入完整标题及排序/筛选控件;初始布局、显式窄列宽、恢复列设置与拖拽缩列均受此下限保护。360px 仅限制数据内容测宽;标题更长时允许超过该值,并使用表格内部横向滚动。复杂自定义标题请配置 minWidth。
|
|
129
|
+
|
|
130
|
+
## 表格偏好与作用域
|
|
131
|
+
|
|
132
|
+
每张需要持久化的表格只声明一个稳定的逻辑 ID:
|
|
133
|
+
|
|
134
|
+
```ts
|
|
135
|
+
const config = { persistKey: 'shipping', density: 'compact' } as const
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
应用启动时,通过轻量入口 `@robot-admin/naive-ui-components/config` 的 `TABLE_GLOBAL_CONFIG_KEY` 提供全局 `persistPrefix` getter,示例见 [README](../../README.md#表格偏好按账号隔离)。值由项目已有响应式状态生成,可包含租户、公司、用户等项目需要的维度;组件不读取认证服务,也不要求特定身份字段。
|
|
139
|
+
|
|
140
|
+
- 启动时就声明 getter 或响应式字段;切换时更新值,不新增、删除配置字段。`C_Density` 实时转发该范围,区域密度不会锁定先前账号。
|
|
141
|
+
- 有效范围与表 ID 以独立元组编码;相同表 ID 在不同范围互不继承列显隐、顺序和宽度。A 尚未提交的拖宽会写回 A,随后加载 B;返回 A 可恢复 A 的已保存偏好。重置只删除当前范围、当前表的设置。
|
|
142
|
+
- 已声明范围但值为 `undefined`、空串或空白时禁用存储;不读取、迁移或回退到旧的未分范围缓存。未配置 `persistPrefix` 的旧项目保持原键兼容。
|
|
143
|
+
- 不传 `persistKey` 不会生成默认存储键;临时列设置在范围变化时清空。偏好始终属于表格实例及其范围,不写回原始业务列定义,也不修改相邻实例。
|
|
144
|
+
|
|
145
|
+
传入的范围字符串只判空,不规范化身份 ID。按需导入与全量安装使用相同的配置键;全量安装时也可把同一配置对象放在 `app.use` 的 `table` 选项中。
|