@robot-admin/naive-ui-components 0.41.1 → 0.41.2
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 +9 -0
- package/README.md +44 -5
- package/README_EN.md +44 -5
- package/dist/C_ActionBar.css +54 -54
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV.css +10 -10
- package/dist/C_AntV2.cjs +1 -1
- package/dist/C_AntV2.js +1 -1
- package/dist/C_AudioPlayer.css +53 -53
- package/dist/C_AudioPlayer2.cjs +1 -1
- package/dist/C_AudioPlayer2.js +1 -1
- package/dist/C_AutoComplete.css +2 -2
- package/dist/C_AutoComplete2.cjs +1 -1
- package/dist/C_AutoComplete2.js +1 -1
- package/dist/C_AvatarGroup.css +29 -29
- package/dist/C_AvatarGroup2.cjs +1 -1
- package/dist/C_AvatarGroup2.js +1 -1
- package/dist/C_BatchResult.css +10 -10
- package/dist/C_BatchResult2.cjs +1 -1
- package/dist/C_BatchResult2.js +1 -1
- package/dist/C_Breadcrumb.css +40 -40
- package/dist/C_Breadcrumb2.cjs +1 -1
- package/dist/C_Breadcrumb2.js +1 -1
- package/dist/C_Captcha.d.cts +2 -2
- package/dist/C_Captcha.d.ts +2 -2
- package/dist/C_Captcha2.cjs +1 -1
- package/dist/C_Captcha2.js +1 -1
- package/dist/C_Cascade.css +4 -4
- package/dist/C_Cascade2.cjs +1 -1
- package/dist/C_Cascade2.js +1 -1
- package/dist/C_Chat2.cjs +1 -1
- package/dist/C_Chat2.js +1 -1
- package/dist/C_City.css +35 -35
- package/dist/C_City2.cjs +1 -1
- package/dist/C_City2.js +1 -1
- package/dist/C_Code.css +27 -27
- package/dist/C_Code2.cjs +1 -1
- package/dist/C_Code2.js +2 -2
- package/dist/C_CollapsePanel2.cjs +1 -1
- package/dist/C_CollapsePanel2.js +1 -1
- package/dist/C_ContextMenu.css +3 -3
- package/dist/C_ContextMenu2.cjs +1 -1
- package/dist/C_ContextMenu2.js +1 -1
- package/dist/C_Cron.css +18 -18
- package/dist/C_Cron2.cjs +1 -1
- package/dist/C_Cron2.js +1 -1
- package/dist/C_DataPicker.css +52 -52
- package/dist/C_DataPicker2.cjs +1 -1
- package/dist/C_DataPicker2.js +1 -1
- package/dist/C_Date.css +5 -5
- package/dist/C_Date2.cjs +1 -1
- package/dist/C_Date2.js +1 -1
- package/dist/C_Draggable.css +53 -53
- package/dist/C_Draggable2.cjs +1 -1
- package/dist/C_Draggable2.js +1 -1
- package/dist/C_Editor.css +13 -13
- package/dist/C_Editor.d.cts +2 -2
- package/dist/C_Editor.d.ts +2 -2
- package/dist/C_Editor2.cjs +1 -1
- package/dist/C_Editor2.js +1 -1
- package/dist/C_FilePreview.css +49 -49
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +241 -241
- package/dist/C_Form.css +241 -241
- package/dist/C_Form.d.cts +1 -1
- package/dist/C_Form.d.ts +1 -1
- package/dist/C_FormModal.css +55 -55
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +74 -74
- package/dist/C_FormSearch.d.ts +1 -1
- package/dist/C_FormulaEditor.cjs +1 -1
- package/dist/C_FormulaEditor.css +41 -41
- package/dist/C_FormulaEditor.d.cts +2 -2
- package/dist/C_FormulaEditor.d.ts +2 -2
- package/dist/C_FormulaEditor.js +1 -1
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.css +13 -13
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_ImageCropper.css +27 -27
- package/dist/C_ImageCropper2.cjs +1 -1
- package/dist/C_ImageCropper2.js +1 -1
- package/dist/C_ImportWizard.css +8 -8
- package/dist/C_ImportWizard2.cjs +1 -1
- package/dist/C_ImportWizard2.js +1 -1
- package/dist/C_Loading.css +18 -18
- package/dist/C_Loading2.cjs +1 -1
- package/dist/C_Loading2.js +1 -1
- package/dist/C_Login.css +94 -94
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_Markdown.css +37 -37
- package/dist/C_Markdown2.cjs +1 -1
- package/dist/C_Markdown2.js +1 -1
- package/dist/C_NotificationCenter.css +24 -24
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_OrgChart.d.cts +2 -8
- package/dist/C_OrgChart.d.ts +2 -8
- package/dist/C_QRCode.css +9 -9
- package/dist/C_QRCode2.cjs +1 -1
- package/dist/C_QRCode2.js +1 -1
- package/dist/C_RecurrenceEditor.cjs +1 -1
- package/dist/C_RecurrenceEditor.d.cts +2 -2
- package/dist/C_RecurrenceEditor.d.ts +2 -2
- package/dist/C_RecurrenceEditor.js +1 -1
- package/dist/C_RecurrenceEditor2.cjs +1 -1
- package/dist/C_RecurrenceEditor2.js +1 -1
- package/dist/C_ScanInput2.cjs +1 -1
- package/dist/C_ScanInput2.js +1 -1
- package/dist/C_SectionNav.css +8 -8
- package/dist/C_SectionNav2.cjs +1 -1
- package/dist/C_SectionNav2.js +1 -1
- package/dist/C_Signature.css +15 -15
- package/dist/C_Signature2.cjs +1 -1
- package/dist/C_Signature2.js +1 -1
- package/dist/C_Table.base.css +428 -428
- package/dist/C_Table.css +187 -187
- package/dist/C_Table.d.cts +1 -1
- package/dist/C_Table.d.ts +1 -1
- package/dist/C_Table2.cjs +4 -4
- package/dist/C_Table2.js +4 -4
- package/dist/C_Timeline.css +50 -50
- package/dist/C_Timeline2.cjs +1 -1
- package/dist/C_Timeline2.js +1 -1
- package/dist/C_Tree.css +30 -30
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/C_Upload.css +5 -5
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/C_UserPicker.css +1 -1
- package/dist/C_VideoPlayer2.cjs +1 -1
- package/dist/C_VideoPlayer2.js +1 -1
- package/dist/C_VtableGantt.css +34 -34
- package/dist/C_WorkFlow.css +93 -93
- 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/ColumnSettingsDrawer.cjs +1 -0
- package/dist/ColumnSettingsDrawer.js +1 -0
- package/dist/Custom.cjs +1 -1
- package/dist/Custom.js +1 -1
- package/dist/Dynamic.cjs +1 -1
- package/dist/Dynamic.js +1 -1
- package/dist/Steps.cjs +1 -1
- package/dist/Steps.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/component-config.d.ts +1 -1
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants2.d.cts +8 -1
- package/dist/constants2.d.ts +8 -1
- package/dist/constants3.d.cts +7 -7
- package/dist/constants3.d.ts +7 -7
- package/dist/constants4.d.cts +4 -4
- package/dist/constants4.d.ts +4 -4
- package/dist/context.d.cts +1 -1
- package/dist/data2.d.cts +7 -7
- package/dist/data2.d.ts +7 -7
- package/dist/editors.d.cts +19 -17
- package/dist/editors.d.ts +19 -17
- package/dist/fieldNode.cjs +1 -0
- package/dist/fieldNode.js +1 -0
- package/dist/fieldRenderers.cjs +1 -1
- package/dist/fieldRenderers.js +1 -1
- package/dist/graphics.cjs +1 -1
- package/dist/graphics.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/index11.vue.d.ts +1 -1
- package/dist/index12.vue.d.cts +1 -1
- package/dist/index13.vue.d.ts +3 -3
- package/dist/index14.vue.d.cts +3 -3
- package/dist/index14.vue.d.ts +2 -2
- package/dist/index15.vue.d.cts +2 -2
- package/dist/index17.vue.d.ts +17 -10
- package/dist/index18.vue.d.cts +17 -10
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +2 -2
- package/dist/index21.vue.d.cts +2 -2
- package/dist/index21.vue.d.ts +7 -7
- package/dist/index22.vue.d.cts +7 -7
- package/dist/index26.vue.d.ts +1 -1
- package/dist/index27.vue.d.cts +1 -1
- package/dist/index27.vue.d.ts +1 -1
- package/dist/index28.vue.d.cts +1 -1
- package/dist/index29.vue.d.cts +2 -2
- package/dist/index29.vue.d.ts +2 -2
- package/dist/index3.vue.d.cts +17 -19
- package/dist/index3.vue.d.ts +17 -19
- package/dist/index34.vue.d.cts +2 -0
- package/dist/index34.vue.d.ts +2 -0
- package/dist/index35.vue.d.cts +4 -4
- package/dist/index35.vue.d.ts +4 -4
- package/dist/index36.vue.d.cts +20 -11
- package/dist/index36.vue.d.ts +20 -11
- package/dist/index37.vue.d.cts +2 -2
- package/dist/index37.vue.d.ts +2 -2
- package/dist/index39.vue.d.cts +1 -1
- package/dist/index39.vue.d.ts +1 -1
- package/dist/index4.vue.d.cts +7 -4
- package/dist/index4.vue.d.ts +7 -4
- package/dist/index41.vue.d.cts +1 -1
- package/dist/index41.vue.d.ts +1 -1
- package/dist/index42.vue.d.cts +2 -2
- package/dist/index42.vue.d.ts +2 -2
- package/dist/index43.vue.d.cts +2 -2
- package/dist/index43.vue.d.ts +2 -2
- package/dist/index5.vue.d.cts +5 -17
- package/dist/index5.vue.d.ts +5 -17
- package/dist/index6.vue.d.cts +2 -2
- package/dist/index6.vue.d.ts +2 -2
- package/dist/index7.vue.d.cts +18 -12
- package/dist/index7.vue.d.ts +18 -12
- package/dist/localSource.d.cts +8 -8
- package/dist/localSource.d.ts +8 -8
- package/dist/locale.cjs +1 -1
- package/dist/locale.js +1 -1
- package/dist/mapUtils.d.cts +1 -1
- package/dist/mapUtils.d.ts +1 -1
- package/dist/persistence.cjs +1 -0
- package/dist/persistence.js +1 -0
- package/dist/presets.d.cts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/rule.d.cts +4 -1
- package/dist/rule.d.ts +4 -1
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/source.cjs +1 -1
- package/dist/source.js +1 -1
- package/dist/style.css +1334 -1334
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types10.d.cts +2 -0
- package/dist/types10.d.ts +1 -1
- package/dist/types11.d.cts +1 -1
- package/dist/types3.d.cts +14 -5
- package/dist/types3.d.ts +14 -5
- package/dist/types5.d.ts +12 -10
- package/dist/types6.d.cts +12 -10
- package/dist/types6.d.ts +1 -1
- package/dist/types9.d.ts +2 -0
- package/dist/useCalendarEvents.d.cts +3 -15
- package/dist/useCalendarEvents.d.ts +3 -15
- package/dist/useCollapsePanel.d.cts +4 -3
- package/dist/useCollapsePanel.d.ts +4 -3
- package/dist/useCropperCore.d.cts +8 -19
- package/dist/useCropperCore.d.ts +8 -19
- package/dist/useDynamicFormState.d.cts +3 -3
- package/dist/useDynamicFormState.d.ts +3 -3
- package/dist/useEdgeInteraction.d.cts +3 -12
- package/dist/useEdgeInteraction.d.ts +3 -12
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useFormulaEvaluator.cjs +2 -2
- package/dist/useFormulaEvaluator.js +2 -2
- package/dist/useFullscreen.d.cts +23 -5
- package/dist/useFullscreen.d.ts +23 -5
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +5 -18
- package/dist/useQRCode.d.ts +5 -18
- package/dist/useSignatureHistory.d.cts +3 -3
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.cts +4 -4
- package/dist/useSplitResize.d.ts +4 -4
- package/dist/useTimeSelection.d.cts +4 -3
- package/dist/useTimeSelection.d.ts +4 -3
- package/dist/useWorkflowValidation.d.cts +11 -5
- package/dist/useWorkflowValidation.d.ts +11 -5
- package/dist/verification.d.cts +1 -1
- package/dist/verification.d.ts +1 -1
- package/docs/engineering.en.md +1 -0
- package/docs/engineering.md +1 -0
- package/docs/guides/batch-results.md +3 -3
- package/docs/guides/data-picker.md +2 -0
- package/docs/guides/runtime-performance.md +2 -0
- package/docs/guides/scene-components.md +1 -1
- package/package.json +1 -1
package/dist/types.d.cts
CHANGED
|
@@ -37,7 +37,7 @@ interface ActionItem {
|
|
|
37
37
|
onClick?: () => unknown;
|
|
38
38
|
/** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
|
|
39
39
|
buttonProps?: Partial<ButtonProps>;
|
|
40
|
-
directives?:
|
|
40
|
+
directives?: [directive: Directive, value?: unknown, argument?: string, modifiers?: Record<string, boolean>][];
|
|
41
41
|
}
|
|
42
42
|
interface ActionBarConfig {
|
|
43
43
|
align?: ActionGroupAlign;
|
package/dist/types.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ interface ActionItem {
|
|
|
37
37
|
onClick?: () => unknown;
|
|
38
38
|
/** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
|
|
39
39
|
buttonProps?: Partial<ButtonProps>;
|
|
40
|
-
directives?:
|
|
40
|
+
directives?: [directive: Directive, value?: unknown, argument?: string, modifiers?: Record<string, boolean>][];
|
|
41
41
|
}
|
|
42
42
|
interface ActionBarConfig {
|
|
43
43
|
align?: ActionGroupAlign;
|
package/dist/types10.d.cts
CHANGED
|
@@ -205,6 +205,8 @@ interface NotificationCenterEmits {
|
|
|
205
205
|
wsStatusChange: [status: WSConnectionStatus];
|
|
206
206
|
/** 收到新消息 */
|
|
207
207
|
newMessage: [message: NotificationMessage];
|
|
208
|
+
/** 已通过导航地址校验的消息链接,由宿主决定如何打开。 */
|
|
209
|
+
navigate: [url: string];
|
|
208
210
|
}
|
|
209
211
|
/** 组件 Expose */
|
|
210
212
|
interface NotificationCenterExpose {
|
package/dist/types10.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ComponentDensity } from "./density.js";
|
|
2
|
-
import {
|
|
2
|
+
import { dt as TableColumn } from "./component-config.js";
|
|
3
3
|
import { c as DataPickerProps, d as DataPickerSelectionContext, m as DataPickerValue, p as DataPickerSourceInput, r as DataPickerExpose } from "./types5.js";
|
|
4
4
|
import { VNodeChild } from "vue";
|
|
5
5
|
import { TreeInst, TreeOption, TreeProps } from "naive-ui";
|
package/dist/types11.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ComponentDensity } from "./density.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { lt as TableColumn } from "./context.cjs";
|
|
3
3
|
import { c as DataPickerProps, d as DataPickerSelectionContext, m as DataPickerValue, p as DataPickerSourceInput, r as DataPickerExpose } from "./types6.cjs";
|
|
4
4
|
import { VNodeChild } from "vue";
|
|
5
5
|
import { TreeInst, TreeOption, TreeProps } from "naive-ui";
|
package/dist/types3.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import { StyleValue } from "vue";
|
|
2
|
+
|
|
1
3
|
//#region src/components/C_FilePreview/types.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* C_FilePreview 文件预览组件类型定义
|
|
4
|
-
*/
|
|
5
4
|
/** 支持的文件类型 */
|
|
6
5
|
type FilePreviewType = 'pdf' | 'word' | 'excel' | 'unknown';
|
|
7
6
|
/** 文件类型配置 */
|
|
@@ -27,7 +26,7 @@ interface ExcelCell {
|
|
|
27
26
|
colspan?: number;
|
|
28
27
|
merged?: boolean;
|
|
29
28
|
hidden?: boolean;
|
|
30
|
-
style?:
|
|
29
|
+
style?: StyleValue;
|
|
31
30
|
}
|
|
32
31
|
/** Excel 行数据 */
|
|
33
32
|
interface ExcelRow {
|
|
@@ -43,7 +42,17 @@ interface ExcelColumn {
|
|
|
43
42
|
interface ExcelSheet {
|
|
44
43
|
name: string;
|
|
45
44
|
data: ExcelRow[];
|
|
46
|
-
|
|
45
|
+
/** 工作簿的零基合并范围,保留起止坐标供分页使用。 */
|
|
46
|
+
merges: Array<{
|
|
47
|
+
s: {
|
|
48
|
+
r: number;
|
|
49
|
+
c: number;
|
|
50
|
+
};
|
|
51
|
+
e: {
|
|
52
|
+
r: number;
|
|
53
|
+
c: number;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
47
56
|
columns: ExcelColumn[];
|
|
48
57
|
/** 按需展开工作表,避免首次预览创建整个工作簿的单元格对象。 */
|
|
49
58
|
load?: () => {
|
package/dist/types3.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import { StyleValue } from "vue";
|
|
2
|
+
|
|
1
3
|
//#region src/components/C_FilePreview/types.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* C_FilePreview 文件预览组件类型定义
|
|
4
|
-
*/
|
|
5
4
|
/** 支持的文件类型 */
|
|
6
5
|
type FilePreviewType = 'pdf' | 'word' | 'excel' | 'unknown';
|
|
7
6
|
/** 文件类型配置 */
|
|
@@ -27,7 +26,7 @@ interface ExcelCell {
|
|
|
27
26
|
colspan?: number;
|
|
28
27
|
merged?: boolean;
|
|
29
28
|
hidden?: boolean;
|
|
30
|
-
style?:
|
|
29
|
+
style?: StyleValue;
|
|
31
30
|
}
|
|
32
31
|
/** Excel 行数据 */
|
|
33
32
|
interface ExcelRow {
|
|
@@ -43,7 +42,17 @@ interface ExcelColumn {
|
|
|
43
42
|
interface ExcelSheet {
|
|
44
43
|
name: string;
|
|
45
44
|
data: ExcelRow[];
|
|
46
|
-
|
|
45
|
+
/** 工作簿的零基合并范围,保留起止坐标供分页使用。 */
|
|
46
|
+
merges: Array<{
|
|
47
|
+
s: {
|
|
48
|
+
r: number;
|
|
49
|
+
c: number;
|
|
50
|
+
};
|
|
51
|
+
e: {
|
|
52
|
+
r: number;
|
|
53
|
+
c: number;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
47
56
|
columns: ExcelColumn[];
|
|
48
57
|
/** 按需展开工作表,避免首次预览创建整个工作簿的单元格对象。 */
|
|
49
58
|
load?: () => {
|
package/dist/types5.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as ComponentLocale } from "./contracts.js";
|
|
2
2
|
import { t as ComponentDensity } from "./density.js";
|
|
3
3
|
import { n as OptionRequest, t as OptionPage } from "./optionSource.js";
|
|
4
|
-
import {
|
|
4
|
+
import { dt as TableColumn, gt as TableRowKey } from "./component-config.js";
|
|
5
5
|
import { VNodeChild } from "vue";
|
|
6
6
|
import { PopoverProps } from "naive-ui";
|
|
7
7
|
|
|
@@ -11,13 +11,13 @@ type DataPickerRequest<TFilters extends object = Record<string, unknown>> = Opti
|
|
|
11
11
|
scope?: string | number;
|
|
12
12
|
};
|
|
13
13
|
/** 接口、鉴权与实体映射只在应用中注册一次,组件不探测后端返回结构。 */
|
|
14
|
-
interface DataPickerSourceInput<T extends object, TFilters extends object = Record<string, unknown
|
|
14
|
+
interface DataPickerSourceInput<T extends object, TFilters extends object = Record<string, unknown>, V extends DataPickerValue = DataPickerValue> {
|
|
15
15
|
rowKey: TableRowKey<T>;
|
|
16
16
|
/** 提交值不同于行键时才需要指定。 */
|
|
17
|
-
value?(row: T):
|
|
17
|
+
value?(row: T): V;
|
|
18
18
|
label(row: T): string;
|
|
19
19
|
request(query: DataPickerRequest<TFilters>): Promise<OptionPage<T>>;
|
|
20
|
-
resolve?(values: readonly
|
|
20
|
+
resolve?(values: readonly V[], signal: AbortSignal, context?: {
|
|
21
21
|
scope?: string | number;
|
|
22
22
|
}): Promise<readonly T[]>;
|
|
23
23
|
/** Encoded text lookup when pasted codes differ from the submitted business values. */
|
|
@@ -82,11 +82,13 @@ interface DataPickerBatchPasteOptions {
|
|
|
82
82
|
interface DataPickerSource<T extends object, TFilters extends object = Record<string, unknown>> extends DataPickerSourceInput<T, TFilters> {
|
|
83
83
|
value: (row: T) => DataPickerValue;
|
|
84
84
|
}
|
|
85
|
-
interface DataPickerProps<T extends object, TFilters extends object = Record<string, unknown
|
|
86
|
-
source: DataPickerSourceInput<T, TFilters>;
|
|
85
|
+
interface DataPickerProps<T extends object, TFilters extends object = Record<string, unknown>, M extends boolean = boolean, V extends DataPickerValue = DataPickerValue> {
|
|
86
|
+
source: DataPickerSourceInput<T, TFilters, V>;
|
|
87
87
|
columns: TableColumn<T>[];
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
/** 可以读取已有单值或数组,确认事件按 multiple 输出当前模式的形状。 */
|
|
89
|
+
modelValue?: NoInfer<V | readonly V[]> | null;
|
|
90
|
+
/** 保留 Boolean 运行时声明,Vue 会将模板中的裸属性转换为 true。 */
|
|
91
|
+
multiple?: M & boolean;
|
|
90
92
|
disabled?: boolean;
|
|
91
93
|
readonly?: boolean;
|
|
92
94
|
clearable?: boolean;
|
|
@@ -129,8 +131,8 @@ interface DataPickerProps<T extends object, TFilters extends object = Record<str
|
|
|
129
131
|
/** Requires source.resolve. Only values and labels are persisted. */
|
|
130
132
|
history?: DataPickerHistoryOptions;
|
|
131
133
|
}
|
|
132
|
-
interface DataPickerEmits<T extends object> {
|
|
133
|
-
'update:modelValue': [value:
|
|
134
|
+
interface DataPickerEmits<T extends object, M extends boolean = boolean, V extends DataPickerValue = DataPickerValue> {
|
|
135
|
+
'update:modelValue': [value: M extends true ? V[] : V | null];
|
|
134
136
|
/** 仅包含确认时已解析的行,尚未解析的选中值仍保留在 modelValue。 */
|
|
135
137
|
select: [rows: T[]];
|
|
136
138
|
cancel: [];
|
package/dist/types6.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as ComponentLocale } from "./contracts.cjs";
|
|
2
2
|
import { t as ComponentDensity } from "./density.cjs";
|
|
3
3
|
import { n as OptionRequest, t as OptionPage } from "./optionSource.cjs";
|
|
4
|
-
import {
|
|
4
|
+
import { lt as TableColumn, mt as TableRowKey } from "./context.cjs";
|
|
5
5
|
import { VNodeChild } from "vue";
|
|
6
6
|
import { PopoverProps } from "naive-ui";
|
|
7
7
|
|
|
@@ -11,13 +11,13 @@ type DataPickerRequest<TFilters extends object = Record<string, unknown>> = Opti
|
|
|
11
11
|
scope?: string | number;
|
|
12
12
|
};
|
|
13
13
|
/** 接口、鉴权与实体映射只在应用中注册一次,组件不探测后端返回结构。 */
|
|
14
|
-
interface DataPickerSourceInput<T extends object, TFilters extends object = Record<string, unknown
|
|
14
|
+
interface DataPickerSourceInput<T extends object, TFilters extends object = Record<string, unknown>, V extends DataPickerValue = DataPickerValue> {
|
|
15
15
|
rowKey: TableRowKey<T>;
|
|
16
16
|
/** 提交值不同于行键时才需要指定。 */
|
|
17
|
-
value?(row: T):
|
|
17
|
+
value?(row: T): V;
|
|
18
18
|
label(row: T): string;
|
|
19
19
|
request(query: DataPickerRequest<TFilters>): Promise<OptionPage<T>>;
|
|
20
|
-
resolve?(values: readonly
|
|
20
|
+
resolve?(values: readonly V[], signal: AbortSignal, context?: {
|
|
21
21
|
scope?: string | number;
|
|
22
22
|
}): Promise<readonly T[]>;
|
|
23
23
|
/** Encoded text lookup when pasted codes differ from the submitted business values. */
|
|
@@ -82,11 +82,13 @@ interface DataPickerBatchPasteOptions {
|
|
|
82
82
|
interface DataPickerSource<T extends object, TFilters extends object = Record<string, unknown>> extends DataPickerSourceInput<T, TFilters> {
|
|
83
83
|
value: (row: T) => DataPickerValue;
|
|
84
84
|
}
|
|
85
|
-
interface DataPickerProps<T extends object, TFilters extends object = Record<string, unknown
|
|
86
|
-
source: DataPickerSourceInput<T, TFilters>;
|
|
85
|
+
interface DataPickerProps<T extends object, TFilters extends object = Record<string, unknown>, M extends boolean = boolean, V extends DataPickerValue = DataPickerValue> {
|
|
86
|
+
source: DataPickerSourceInput<T, TFilters, V>;
|
|
87
87
|
columns: TableColumn<T>[];
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
/** 可以读取已有单值或数组,确认事件按 multiple 输出当前模式的形状。 */
|
|
89
|
+
modelValue?: NoInfer<V | readonly V[]> | null;
|
|
90
|
+
/** 保留 Boolean 运行时声明,Vue 会将模板中的裸属性转换为 true。 */
|
|
91
|
+
multiple?: M & boolean;
|
|
90
92
|
disabled?: boolean;
|
|
91
93
|
readonly?: boolean;
|
|
92
94
|
clearable?: boolean;
|
|
@@ -129,8 +131,8 @@ interface DataPickerProps<T extends object, TFilters extends object = Record<str
|
|
|
129
131
|
/** Requires source.resolve. Only values and labels are persisted. */
|
|
130
132
|
history?: DataPickerHistoryOptions;
|
|
131
133
|
}
|
|
132
|
-
interface DataPickerEmits<T extends object> {
|
|
133
|
-
'update:modelValue': [value:
|
|
134
|
+
interface DataPickerEmits<T extends object, M extends boolean = boolean, V extends DataPickerValue = DataPickerValue> {
|
|
135
|
+
'update:modelValue': [value: M extends true ? V[] : V | null];
|
|
134
136
|
/** 仅包含确认时已解析的行,尚未解析的选中值仍保留在 modelValue。 */
|
|
135
137
|
select: [rows: T[]];
|
|
136
138
|
cancel: [];
|
package/dist/types6.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.js";
|
|
2
2
|
import { t as ComponentDensity } from "./density.js";
|
|
3
3
|
import { i as OptionValue, r as OptionSource } from "./optionSource.js";
|
|
4
|
-
import {
|
|
4
|
+
import { xn as OptionsState } from "./component-config.js";
|
|
5
5
|
import { VNodeChild } from "vue";
|
|
6
6
|
import { FormInst, FormItemRule } from "naive-ui";
|
|
7
7
|
|
package/dist/types9.d.ts
CHANGED
|
@@ -205,6 +205,8 @@ interface NotificationCenterEmits {
|
|
|
205
205
|
wsStatusChange: [status: WSConnectionStatus];
|
|
206
206
|
/** 收到新消息 */
|
|
207
207
|
newMessage: [message: NotificationMessage];
|
|
208
|
+
/** 已通过导航地址校验的消息链接,由宿主决定如何打开。 */
|
|
209
|
+
navigate: [url: string];
|
|
208
210
|
}
|
|
209
211
|
/** 组件 Expose */
|
|
210
212
|
interface NotificationCenterExpose {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
+
import { EmitFn } from "vue";
|
|
2
3
|
import { CalendarApi, CalendarOptions, EventApi } from "@fullcalendar/core";
|
|
3
4
|
|
|
4
5
|
//#region src/components/C_FullCalendar/types.d.ts
|
|
@@ -104,21 +105,8 @@ declare const BUTTON_TEXT: {
|
|
|
104
105
|
};
|
|
105
106
|
//#endregion
|
|
106
107
|
//#region src/components/C_FullCalendar/composables/useCalendarEvents.d.ts
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
(event: 'event-added', eventData: CalendarEvent): void;
|
|
110
|
-
(event: 'event-updated', eventData: Partial<CalendarEvent>): void;
|
|
111
|
-
(event: 'event-deleted', eventData: {
|
|
112
|
-
id: string;
|
|
113
|
-
title: string;
|
|
114
|
-
}): void;
|
|
115
|
-
(event: 'event-dropped', eventData: Partial<CalendarEvent>): void;
|
|
116
|
-
(event: 'event-resized', eventData: Partial<CalendarEvent>): void;
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
*/
|
|
121
|
-
declare function useCalendarEvents(props: CalendarProps, emit: EmitFn$1): {
|
|
108
|
+
/** 在组件与 FullCalendar 之间维护受控事件和编辑会话。 */
|
|
109
|
+
declare function useCalendarEvents(props: CalendarProps, emit: EmitFn<CalendarEmits>): {
|
|
122
110
|
calendarRef: vue.Ref<{
|
|
123
111
|
getApi: () => CalendarApi;
|
|
124
112
|
} | null, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
+
import { EmitFn } from "vue";
|
|
2
3
|
import { CalendarApi, CalendarOptions, EventApi } from "@fullcalendar/core";
|
|
3
4
|
|
|
4
5
|
//#region src/components/C_FullCalendar/types.d.ts
|
|
@@ -104,21 +105,8 @@ declare const BUTTON_TEXT: {
|
|
|
104
105
|
};
|
|
105
106
|
//#endregion
|
|
106
107
|
//#region src/components/C_FullCalendar/composables/useCalendarEvents.d.ts
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
(event: 'event-added', eventData: CalendarEvent): void;
|
|
110
|
-
(event: 'event-updated', eventData: Partial<CalendarEvent>): void;
|
|
111
|
-
(event: 'event-deleted', eventData: {
|
|
112
|
-
id: string;
|
|
113
|
-
title: string;
|
|
114
|
-
}): void;
|
|
115
|
-
(event: 'event-dropped', eventData: Partial<CalendarEvent>): void;
|
|
116
|
-
(event: 'event-resized', eventData: Partial<CalendarEvent>): void;
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
*/
|
|
121
|
-
declare function useCalendarEvents(props: CalendarProps, emit: EmitFn$1): {
|
|
108
|
+
/** 在组件与 FullCalendar 之间维护受控事件和编辑会话。 */
|
|
109
|
+
declare function useCalendarEvents(props: CalendarProps, emit: EmitFn<CalendarEmits>): {
|
|
122
110
|
calendarRef: vue.Ref<{
|
|
123
111
|
getApi: () => CalendarApi;
|
|
124
112
|
} | null, {
|
|
@@ -23,6 +23,7 @@ interface CollapsePanelProps {
|
|
|
23
23
|
variant?: CollapsePanelVariant;
|
|
24
24
|
expandIconPosition?: ExpandIconPosition;
|
|
25
25
|
bordered?: boolean;
|
|
26
|
+
/** 切换存储范围时重新初始化展开状态,受控的 activeKeys 始终优先。 */
|
|
26
27
|
persistKey?: string;
|
|
27
28
|
}
|
|
28
29
|
interface CollapsePanelExpose {
|
|
@@ -73,22 +74,22 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
73
74
|
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
75
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
76
|
change: (activeKeys: string[]) => any;
|
|
76
|
-
collapse: (key: string) => any;
|
|
77
77
|
expand: (key: string) => any;
|
|
78
|
+
collapse: (key: string) => any;
|
|
78
79
|
"update:activeKeys": (keys: string[]) => any;
|
|
79
80
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
80
81
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
81
|
-
onCollapse?: ((key: string) => any) | undefined;
|
|
82
82
|
onExpand?: ((key: string) => any) | undefined;
|
|
83
|
+
onCollapse?: ((key: string) => any) | undefined;
|
|
83
84
|
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
84
85
|
}>, {
|
|
85
86
|
bordered: boolean;
|
|
86
87
|
accordion: boolean;
|
|
88
|
+
persistKey: string;
|
|
87
89
|
activeKeys: string[];
|
|
88
90
|
defaultActiveKeys: string[];
|
|
89
91
|
variant: CollapsePanelVariant;
|
|
90
92
|
expandIconPosition: ExpandIconPosition;
|
|
91
|
-
persistKey: string;
|
|
92
93
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
93
94
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
94
95
|
declare const _default: typeof __VLS_export;
|
|
@@ -23,6 +23,7 @@ interface CollapsePanelProps {
|
|
|
23
23
|
variant?: CollapsePanelVariant;
|
|
24
24
|
expandIconPosition?: ExpandIconPosition;
|
|
25
25
|
bordered?: boolean;
|
|
26
|
+
/** 切换存储范围时重新初始化展开状态,受控的 activeKeys 始终优先。 */
|
|
26
27
|
persistKey?: string;
|
|
27
28
|
}
|
|
28
29
|
interface CollapsePanelExpose {
|
|
@@ -73,22 +74,22 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
73
74
|
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
75
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
76
|
change: (activeKeys: string[]) => any;
|
|
76
|
-
collapse: (key: string) => any;
|
|
77
77
|
expand: (key: string) => any;
|
|
78
|
+
collapse: (key: string) => any;
|
|
78
79
|
"update:activeKeys": (keys: string[]) => any;
|
|
79
80
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
80
81
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
81
|
-
onCollapse?: ((key: string) => any) | undefined;
|
|
82
82
|
onExpand?: ((key: string) => any) | undefined;
|
|
83
|
+
onCollapse?: ((key: string) => any) | undefined;
|
|
83
84
|
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
84
85
|
}>, {
|
|
85
86
|
bordered: boolean;
|
|
86
87
|
accordion: boolean;
|
|
88
|
+
persistKey: string;
|
|
87
89
|
activeKeys: string[];
|
|
88
90
|
defaultActiveKeys: string[];
|
|
89
91
|
variant: CollapsePanelVariant;
|
|
90
92
|
expandIconPosition: ExpandIconPosition;
|
|
91
|
-
persistKey: string;
|
|
92
93
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
93
94
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
94
95
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { Ref } from "vue";
|
|
2
|
+
import { CSSProperties, Ref } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_ImageCropper/types.d.ts
|
|
5
5
|
type CropOutputFormat = 'png' | 'jpeg' | 'webp';
|
|
@@ -52,30 +52,30 @@ interface ImageCropperEmits {
|
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
54
|
error: (error: Error) => any;
|
|
55
|
-
ready: () => any;
|
|
56
55
|
cancel: () => any;
|
|
57
56
|
confirm: (result: CropResult) => any;
|
|
57
|
+
ready: () => any;
|
|
58
58
|
crop: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
60
|
onError?: ((error: Error) => any) | undefined;
|
|
61
|
-
onReady?: (() => any) | undefined;
|
|
62
61
|
onCancel?: (() => any) | undefined;
|
|
63
62
|
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
63
|
+
onReady?: (() => any) | undefined;
|
|
64
64
|
onCrop?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
disabled: boolean;
|
|
67
|
+
modal: boolean;
|
|
67
68
|
height: string | number;
|
|
68
|
-
showPreview: boolean;
|
|
69
|
-
modalTitle: string;
|
|
70
69
|
showToolbar: boolean;
|
|
71
|
-
modal: boolean;
|
|
72
70
|
src: string;
|
|
73
71
|
aspectRatio: number;
|
|
74
72
|
outputFormat: CropOutputFormat;
|
|
75
73
|
outputQuality: number;
|
|
76
74
|
maxOutputWidth: number;
|
|
77
75
|
maxOutputHeight: number;
|
|
76
|
+
showPreview: boolean;
|
|
78
77
|
circular: boolean;
|
|
78
|
+
modalTitle: string;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
81
81
|
//#endregion
|
|
@@ -95,25 +95,14 @@ interface UseCropperCoreOptions {
|
|
|
95
95
|
}
|
|
96
96
|
/** Manage the vue-cropper instance and serialize a single crop snapshot. */
|
|
97
97
|
declare function useCropperCore(options?: UseCropperCoreOptions): {
|
|
98
|
-
cropperRef:
|
|
99
|
-
rotateLeft: () => void;
|
|
100
|
-
rotateRight: () => void;
|
|
101
|
-
changeScale: (step: number) => void;
|
|
102
|
-
refresh: () => void;
|
|
103
|
-
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
104
|
-
} | null, CropperInstance | {
|
|
105
|
-
rotateLeft: () => void;
|
|
106
|
-
rotateRight: () => void;
|
|
107
|
-
changeScale: (step: number) => void;
|
|
108
|
-
refresh: () => void;
|
|
109
|
-
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
110
|
-
} | null>;
|
|
98
|
+
cropperRef: vue.ShallowRef<CropperInstance | null, CropperInstance | null>;
|
|
111
99
|
rotate: (angle: number) => void;
|
|
112
100
|
rotateLeft: () => void;
|
|
113
101
|
rotateRight: () => void;
|
|
114
102
|
zoom: (scale: number) => void;
|
|
115
103
|
reset: () => void;
|
|
116
104
|
getCropResult: () => Promise<CropResult>;
|
|
105
|
+
cancelExports: (reason?: string) => void;
|
|
117
106
|
};
|
|
118
107
|
//#endregion
|
|
119
108
|
export { CropResult as a, ImageCropperProps as c, CropOutputFormat as i, _default as n, ImageCropperEmits as o, AspectRatioPreset as r, ImageCropperExpose as s, useCropperCore as t };
|
package/dist/useCropperCore.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { Ref } from "vue";
|
|
2
|
+
import { CSSProperties, Ref } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_ImageCropper/types.d.ts
|
|
5
5
|
type CropOutputFormat = 'png' | 'jpeg' | 'webp';
|
|
@@ -52,30 +52,30 @@ interface ImageCropperEmits {
|
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
54
|
error: (error: Error) => any;
|
|
55
|
-
ready: () => any;
|
|
56
55
|
cancel: () => any;
|
|
57
56
|
confirm: (result: CropResult) => any;
|
|
57
|
+
ready: () => any;
|
|
58
58
|
crop: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
60
|
onError?: ((error: Error) => any) | undefined;
|
|
61
|
-
onReady?: (() => any) | undefined;
|
|
62
61
|
onCancel?: (() => any) | undefined;
|
|
63
62
|
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
63
|
+
onReady?: (() => any) | undefined;
|
|
64
64
|
onCrop?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
disabled: boolean;
|
|
67
|
+
modal: boolean;
|
|
67
68
|
height: string | number;
|
|
68
|
-
showPreview: boolean;
|
|
69
|
-
modalTitle: string;
|
|
70
69
|
showToolbar: boolean;
|
|
71
|
-
modal: boolean;
|
|
72
70
|
src: string;
|
|
73
71
|
aspectRatio: number;
|
|
74
72
|
outputFormat: CropOutputFormat;
|
|
75
73
|
outputQuality: number;
|
|
76
74
|
maxOutputWidth: number;
|
|
77
75
|
maxOutputHeight: number;
|
|
76
|
+
showPreview: boolean;
|
|
78
77
|
circular: boolean;
|
|
78
|
+
modalTitle: string;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
81
81
|
//#endregion
|
|
@@ -95,25 +95,14 @@ interface UseCropperCoreOptions {
|
|
|
95
95
|
}
|
|
96
96
|
/** Manage the vue-cropper instance and serialize a single crop snapshot. */
|
|
97
97
|
declare function useCropperCore(options?: UseCropperCoreOptions): {
|
|
98
|
-
cropperRef:
|
|
99
|
-
rotateLeft: () => void;
|
|
100
|
-
rotateRight: () => void;
|
|
101
|
-
changeScale: (step: number) => void;
|
|
102
|
-
refresh: () => void;
|
|
103
|
-
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
104
|
-
} | null, CropperInstance | {
|
|
105
|
-
rotateLeft: () => void;
|
|
106
|
-
rotateRight: () => void;
|
|
107
|
-
changeScale: (step: number) => void;
|
|
108
|
-
refresh: () => void;
|
|
109
|
-
getCropChecked: (callback: (canvas: HTMLCanvasElement) => void) => void;
|
|
110
|
-
} | null>;
|
|
98
|
+
cropperRef: vue.ShallowRef<CropperInstance | null, CropperInstance | null>;
|
|
111
99
|
rotate: (angle: number) => void;
|
|
112
100
|
rotateLeft: () => void;
|
|
113
101
|
rotateRight: () => void;
|
|
114
102
|
zoom: (scale: number) => void;
|
|
115
103
|
reset: () => void;
|
|
116
104
|
getCropResult: () => Promise<CropResult>;
|
|
105
|
+
cancelExports: (reason?: string) => void;
|
|
117
106
|
};
|
|
118
107
|
//#endregion
|
|
119
108
|
export { CropResult as a, ImageCropperProps as c, CropOutputFormat as i, _default as n, ImageCropperEmits as o, AspectRatioPreset as r, ImageCropperExpose as s, useCropperCore as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types4.cjs";
|
|
2
|
-
import { $t as
|
|
2
|
+
import { $t as FormRecord, Mt as ResolvedFormConfig, Qt as FormOption, Ut as DynamicFormController, Yt as FormInstance, Zt as FormModel, cn as LayoutType, en as FormSlots, fn as SubmitEventPayload, kt as FormConfig, un as OptionItem, zt as ComponentType } 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 "./types9.cjs";
|
|
5
5
|
import * as vue from "vue";
|
|
@@ -16,9 +16,9 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
16
16
|
renderers?: Record<string, FormRenderer>;
|
|
17
17
|
} & {
|
|
18
18
|
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
19
|
-
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
20
19
|
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
21
20
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
21
|
+
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
22
22
|
}> & (typeof globalThis extends {
|
|
23
23
|
__VLS_PROPS_FALLBACK: infer P;
|
|
24
24
|
} ? P : {});
|
|
@@ -55,7 +55,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
55
55
|
}>) => void;
|
|
56
56
|
attrs: any;
|
|
57
57
|
slots: FormSlots<T>;
|
|
58
|
-
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "
|
|
58
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void) & ((evt: "validate-error", errors: unknown) => void);
|
|
59
59
|
}>) => vue.VNode & {
|
|
60
60
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
61
61
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types4.js";
|
|
2
|
-
import { $t as
|
|
2
|
+
import { $t as FormModel, Gt as DynamicFormController, Pt as ResolvedFormConfig, Vt as ComponentType, Zt as FormInstance, en as FormOption, fn as OptionItem, jt as FormConfig, mn as SubmitEventPayload, nn as FormSlots, tn as FormRecord, un 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 "./types8.js";
|
|
5
5
|
import * as vue from "vue";
|
|
@@ -16,9 +16,9 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
16
16
|
renderers?: Record<string, FormRenderer>;
|
|
17
17
|
} & {
|
|
18
18
|
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
19
|
-
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
20
19
|
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
21
20
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
21
|
+
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
22
22
|
}> & (typeof globalThis extends {
|
|
23
23
|
__VLS_PROPS_FALLBACK: infer P;
|
|
24
24
|
} ? P : {});
|
|
@@ -55,7 +55,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
55
55
|
}>) => void;
|
|
56
56
|
attrs: any;
|
|
57
57
|
slots: FormSlots<T>;
|
|
58
|
-
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "
|
|
58
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void) & ((evt: "validate-error", errors: unknown) => void);
|
|
59
59
|
}>) => vue.VNode & {
|
|
60
60
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
61
61
|
};
|
|
@@ -245,27 +245,18 @@ interface DiagramExpose {
|
|
|
245
245
|
}
|
|
246
246
|
//#endregion
|
|
247
247
|
//#region src/components/C_AntV/index.vue.d.ts
|
|
248
|
-
|
|
249
|
-
type: 'er' | 'bpmn' | 'uml';
|
|
250
|
-
data?: DiagramData;
|
|
251
|
-
width?: string | number;
|
|
252
|
-
height?: string | number;
|
|
253
|
-
readonly?: boolean;
|
|
254
|
-
showToolbar?: boolean;
|
|
255
|
-
theme?: 'light' | 'dark';
|
|
256
|
-
}
|
|
257
|
-
declare const __VLS_export: vue.DefineComponent<Props, {
|
|
248
|
+
declare const __VLS_export: vue.DefineComponent<DiagramConfig, {
|
|
258
249
|
getGraph: () => Graph | undefined;
|
|
259
250
|
getData: () => DiagramData | undefined;
|
|
260
251
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
261
252
|
ready: (graph: Graph) => any;
|
|
262
253
|
"data-change": (data: DiagramData) => any;
|
|
263
|
-
}, string, vue.PublicProps, Readonly<
|
|
254
|
+
}, string, vue.PublicProps, Readonly<DiagramConfig> & Readonly<{
|
|
264
255
|
onReady?: ((graph: Graph) => any) | undefined;
|
|
265
256
|
"onData-change"?: ((data: DiagramData) => any) | undefined;
|
|
266
257
|
}>, {
|
|
267
|
-
width: string | number;
|
|
268
258
|
readonly: boolean;
|
|
259
|
+
width: string | number;
|
|
269
260
|
height: string | number;
|
|
270
261
|
showToolbar: boolean;
|
|
271
262
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -245,27 +245,18 @@ interface DiagramExpose {
|
|
|
245
245
|
}
|
|
246
246
|
//#endregion
|
|
247
247
|
//#region src/components/C_AntV/index.vue.d.ts
|
|
248
|
-
|
|
249
|
-
type: 'er' | 'bpmn' | 'uml';
|
|
250
|
-
data?: DiagramData;
|
|
251
|
-
width?: string | number;
|
|
252
|
-
height?: string | number;
|
|
253
|
-
readonly?: boolean;
|
|
254
|
-
showToolbar?: boolean;
|
|
255
|
-
theme?: 'light' | 'dark';
|
|
256
|
-
}
|
|
257
|
-
declare const __VLS_export: vue.DefineComponent<Props, {
|
|
248
|
+
declare const __VLS_export: vue.DefineComponent<DiagramConfig, {
|
|
258
249
|
getGraph: () => Graph | undefined;
|
|
259
250
|
getData: () => DiagramData | undefined;
|
|
260
251
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
261
252
|
ready: (graph: Graph) => any;
|
|
262
253
|
"data-change": (data: DiagramData) => any;
|
|
263
|
-
}, string, vue.PublicProps, Readonly<
|
|
254
|
+
}, string, vue.PublicProps, Readonly<DiagramConfig> & Readonly<{
|
|
264
255
|
onReady?: ((graph: Graph) => any) | undefined;
|
|
265
256
|
"onData-change"?: ((data: DiagramData) => any) | undefined;
|
|
266
257
|
}>, {
|
|
267
|
-
width: string | number;
|
|
268
258
|
readonly: boolean;
|
|
259
|
+
width: string | number;
|
|
269
260
|
height: string | number;
|
|
270
261
|
showToolbar: boolean;
|
|
271
262
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|