@robot-admin/naive-ui-components 0.41.1 → 0.42.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 +18 -0
- package/README.md +46 -5
- package/README_EN.md +54 -13
- package/dist/ActionOverflow.cjs +1 -1
- package/dist/ActionOverflow.js +1 -1
- package/dist/C_ActionBar.cjs +1 -1
- package/dist/C_ActionBar.css +54 -54
- package/dist/C_ActionBar.js +1 -1
- 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_ApprovalViewer.css +15 -15
- package/dist/C_ApprovalViewer2.cjs +1 -1
- package/dist/C_ApprovalViewer2.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_Density2.cjs +1 -1
- package/dist/C_Density2.js +1 -1
- package/dist/C_Draggable.css +66 -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 +242 -242
- package/dist/C_Form.css +242 -242
- 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 +75 -75
- 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_Language.css +2 -2
- package/dist/C_Language2.cjs +1 -1
- package/dist/C_Language2.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_Progress2.cjs +1 -1
- package/dist/C_Progress2.js +1 -1
- 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_ResourceSchedule2.cjs +1 -1
- package/dist/C_ResourceSchedule2.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_Select.css +1 -1
- package/dist/C_Select2.cjs +1 -1
- package/dist/C_Select2.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_SplitPane2.cjs +1 -1
- package/dist/C_SplitPane2.js +1 -1
- package/dist/C_Table.base.css +429 -429
- 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_Transfer.css +25 -25
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.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/OptionStatus.cjs +1 -1
- package/dist/OptionStatus.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/actionIcon.cjs +1 -1
- package/dist/actionIcon.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 +6 -6
- package/dist/constants.d.ts +6 -6
- package/dist/constants2.d.cts +10 -3
- package/dist/constants2.d.ts +10 -3
- package/dist/constants3.d.cts +5 -5
- package/dist/constants3.d.ts +5 -5
- package/dist/constants4.d.cts +10 -9
- package/dist/constants4.d.ts +10 -9
- package/dist/context.d.cts +1 -1
- package/dist/data2.d.cts +10 -10
- package/dist/data2.d.ts +10 -10
- package/dist/editors.d.cts +17 -15
- package/dist/editors.d.ts +17 -15
- 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 +7 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/index10.vue.d.cts +2 -2
- package/dist/index11.vue.d.ts +3 -3
- package/dist/index12.vue.d.cts +3 -3
- package/dist/index12.vue.d.ts +2 -2
- package/dist/index13.vue.d.cts +2 -2
- package/dist/index13.vue.d.ts +2 -2
- package/dist/index14.vue.d.cts +2 -2
- package/dist/index14.vue.d.ts +3 -3
- package/dist/index15.vue.d.cts +3 -3
- package/dist/index17.vue.d.ts +17 -10
- package/dist/index18.vue.d.cts +17 -10
- package/dist/index19.vue.d.ts +3 -3
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.cts +3 -3
- package/dist/index20.vue.d.ts +3 -3
- package/dist/index21.vue.d.cts +3 -3
- package/dist/index21.vue.d.ts +7 -7
- package/dist/index22.vue.d.cts +7 -7
- package/dist/index24.vue.d.ts +2 -2
- package/dist/index25.vue.d.cts +2 -2
- package/dist/index26.vue.d.ts +1 -1
- package/dist/index27.vue.d.cts +1 -1
- package/dist/index27.vue.d.ts +3 -3
- package/dist/index28.vue.d.cts +3 -3
- package/dist/index3.vue.d.cts +17 -19
- package/dist/index3.vue.d.ts +17 -19
- package/dist/index31.vue.d.cts +1 -1
- package/dist/index31.vue.d.ts +1 -1
- 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/index38.vue.d.cts +2 -2
- package/dist/index38.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/index42.vue.d.cts +3 -3
- package/dist/index42.vue.d.ts +3 -3
- package/dist/index43.vue.d.cts +2 -2
- package/dist/index43.vue.d.ts +2 -2
- package/dist/index5.vue.d.cts +4 -16
- package/dist/index5.vue.d.ts +4 -16
- package/dist/index6.vue.d.cts +5 -5
- package/dist/index6.vue.d.ts +5 -5
- package/dist/index7.vue.d.cts +18 -12
- package/dist/index7.vue.d.ts +18 -12
- package/dist/index9.vue.d.ts +2 -2
- 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/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 +1390 -1377
- package/dist/types.d.cts +5 -1
- package/dist/types.d.ts +5 -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 +4 -16
- package/dist/useCalendarEvents.d.ts +4 -16
- package/dist/useCollapsePanel.d.cts +1 -0
- package/dist/useCollapsePanel.d.ts +1 -0
- package/dist/useCropperCore.d.cts +6 -17
- package/dist/useCropperCore.d.ts +6 -17
- 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/useQRCode.d.cts +5 -18
- package/dist/useQRCode.d.ts +5 -18
- package/dist/useSignatureHistory.d.cts +4 -3
- package/dist/useSignatureHistory.d.ts +4 -3
- package/dist/useSplitResize.d.cts +2 -2
- package/dist/useSplitResize.d.ts +2 -2
- package/dist/useTimeSelection.d.cts +4 -3
- package/dist/useTimeSelection.d.ts +4 -3
- package/dist/useWorkflowValidation.d.cts +43 -37
- package/dist/useWorkflowValidation.d.ts +43 -37
- package/dist/verification.d.cts +8 -8
- package/dist/verification.d.ts +8 -8
- 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/resource-schedule.md +1 -0
- package/docs/guides/runtime-performance.md +2 -0
- package/docs/guides/scene-components.md +1 -1
- package/docs/guides/usage.en.md +15 -4
- package/docs/guides/usage.md +13 -4
- package/package.json +1 -1
package/dist/constants2.d.cts
CHANGED
|
@@ -125,12 +125,12 @@ interface FormulaEditorExpose {
|
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region src/components/C_FormulaEditor/index.vue.d.ts
|
|
127
127
|
declare const __VLS_export: vue.DefineComponent<FormulaEditorProps, FormulaEditorExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
128
|
-
change: (value: string) => any;
|
|
129
128
|
"update:modelValue": (value: string) => any;
|
|
129
|
+
change: (value: string) => any;
|
|
130
130
|
"validation-change": (result: FormulaValidation) => any;
|
|
131
131
|
}, string, vue.PublicProps, Readonly<FormulaEditorProps> & Readonly<{
|
|
132
|
-
onChange?: ((value: string) => any) | undefined;
|
|
133
132
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
133
|
+
onChange?: ((value: string) => any) | undefined;
|
|
134
134
|
"onValidation-change"?: ((result: FormulaValidation) => any) | undefined;
|
|
135
135
|
}>, {
|
|
136
136
|
disabled: boolean;
|
|
@@ -186,6 +186,13 @@ declare function useFormulaEvaluator(variables: Ref<FormulaVariable[]>): {
|
|
|
186
186
|
};
|
|
187
187
|
//#endregion
|
|
188
188
|
//#region src/components/C_FormulaEditor/constants.d.ts
|
|
189
|
+
declare const FORMULA_EDITOR_DEFAULTS: {
|
|
190
|
+
disabled: boolean;
|
|
191
|
+
showPreview: boolean;
|
|
192
|
+
showKeyboard: boolean;
|
|
193
|
+
showVariablePanel: boolean;
|
|
194
|
+
editableSampleData: boolean;
|
|
195
|
+
};
|
|
189
196
|
/** 运算符区(5 列 × 3 行) */
|
|
190
197
|
declare const OPERATOR_KEYS: FormulaKeyboardKey[];
|
|
191
198
|
/** 数字区(5 列 × 3 行) */
|
|
@@ -199,4 +206,4 @@ declare const OPERATORS: Set<string>;
|
|
|
199
206
|
/** 需要在两侧加空格的运算符 */
|
|
200
207
|
declare const SPACED_OPERATORS: Set<string>;
|
|
201
208
|
//#endregion
|
|
202
|
-
export { FormulaVariableType as S,
|
|
209
|
+
export { FormulaVariableType as C, FormulaVariable as S, FormulaKeyboardKey as _, OPERATORS as a, FormulaTokenType as b, useFormulaEvaluator as c, FormulaEditorConfig as d, FormulaEditorEmits as f, FormulaKeyType as g, FormulaFunction as h, NUMBER_KEYS as i, useFormulaParser as l, FormulaEditorProps as m, DEFAULT_FUNCTIONS as n, OPERATOR_KEYS as o, FormulaEditorExpose as p, FORMULA_EDITOR_DEFAULTS as r, SPACED_OPERATORS as s, ACTION_KEYS as t, _default as u, FormulaTemplate as v, FormulaValidation as x, FormulaToken as y };
|
package/dist/constants2.d.ts
CHANGED
|
@@ -125,12 +125,12 @@ interface FormulaEditorExpose {
|
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region src/components/C_FormulaEditor/index.vue.d.ts
|
|
127
127
|
declare const __VLS_export: vue.DefineComponent<FormulaEditorProps, FormulaEditorExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
128
|
-
change: (value: string) => any;
|
|
129
128
|
"update:modelValue": (value: string) => any;
|
|
129
|
+
change: (value: string) => any;
|
|
130
130
|
"validation-change": (result: FormulaValidation) => any;
|
|
131
131
|
}, string, vue.PublicProps, Readonly<FormulaEditorProps> & Readonly<{
|
|
132
|
-
onChange?: ((value: string) => any) | undefined;
|
|
133
132
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
133
|
+
onChange?: ((value: string) => any) | undefined;
|
|
134
134
|
"onValidation-change"?: ((result: FormulaValidation) => any) | undefined;
|
|
135
135
|
}>, {
|
|
136
136
|
disabled: boolean;
|
|
@@ -186,6 +186,13 @@ declare function useFormulaEvaluator(variables: Ref<FormulaVariable[]>): {
|
|
|
186
186
|
};
|
|
187
187
|
//#endregion
|
|
188
188
|
//#region src/components/C_FormulaEditor/constants.d.ts
|
|
189
|
+
declare const FORMULA_EDITOR_DEFAULTS: {
|
|
190
|
+
disabled: boolean;
|
|
191
|
+
showPreview: boolean;
|
|
192
|
+
showKeyboard: boolean;
|
|
193
|
+
showVariablePanel: boolean;
|
|
194
|
+
editableSampleData: boolean;
|
|
195
|
+
};
|
|
189
196
|
/** 运算符区(5 列 × 3 行) */
|
|
190
197
|
declare const OPERATOR_KEYS: FormulaKeyboardKey[];
|
|
191
198
|
/** 数字区(5 列 × 3 行) */
|
|
@@ -199,4 +206,4 @@ declare const OPERATORS: Set<string>;
|
|
|
199
206
|
/** 需要在两侧加空格的运算符 */
|
|
200
207
|
declare const SPACED_OPERATORS: Set<string>;
|
|
201
208
|
//#endregion
|
|
202
|
-
export { FormulaVariableType as S,
|
|
209
|
+
export { FormulaVariableType as C, FormulaVariable as S, FormulaKeyboardKey as _, OPERATORS as a, FormulaTokenType as b, useFormulaEvaluator as c, FormulaEditorConfig as d, FormulaEditorEmits as f, FormulaKeyType as g, FormulaFunction as h, NUMBER_KEYS as i, useFormulaParser as l, FormulaEditorProps as m, DEFAULT_FUNCTIONS as n, OPERATOR_KEYS as o, FormulaEditorExpose as p, FORMULA_EDITOR_DEFAULTS as r, SPACED_OPERATORS as s, ACTION_KEYS as t, _default as u, FormulaTemplate as v, FormulaValidation as x, FormulaToken as y };
|
package/dist/constants3.d.cts
CHANGED
|
@@ -5,31 +5,31 @@ import * as vue from "vue";
|
|
|
5
5
|
type __VLS_Slots = NotificationCenterSlots;
|
|
6
6
|
declare const __VLS_base: vue.DefineComponent<NotificationCenterProps, NotificationCenterExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
7
7
|
delete: (ids: string[]) => any;
|
|
8
|
-
itemClick: (message: NotificationMessage) => any;
|
|
9
8
|
read: (ids: string[]) => any;
|
|
9
|
+
viewAll: () => any;
|
|
10
|
+
itemClick: (message: NotificationMessage) => any;
|
|
10
11
|
allRead: (category?: NotificationCategory | undefined) => any;
|
|
11
12
|
unreadChange: (count: number) => any;
|
|
12
13
|
wsStatusChange: (status: WSConnectionStatus) => any;
|
|
13
14
|
newMessage: (message: NotificationMessage) => any;
|
|
14
15
|
navigate: (url: string) => any;
|
|
15
|
-
viewAll: () => any;
|
|
16
16
|
}, string, vue.PublicProps, Readonly<NotificationCenterProps> & Readonly<{
|
|
17
17
|
onDelete?: ((ids: string[]) => any) | undefined;
|
|
18
|
-
onItemClick?: ((message: NotificationMessage) => any) | undefined;
|
|
19
18
|
onRead?: ((ids: string[]) => any) | undefined;
|
|
19
|
+
onViewAll?: (() => any) | undefined;
|
|
20
|
+
onItemClick?: ((message: NotificationMessage) => any) | undefined;
|
|
20
21
|
onAllRead?: ((category?: NotificationCategory | undefined) => any) | undefined;
|
|
21
22
|
onUnreadChange?: ((count: number) => any) | undefined;
|
|
22
23
|
onWsStatusChange?: ((status: WSConnectionStatus) => any) | undefined;
|
|
23
24
|
onNewMessage?: ((message: NotificationMessage) => any) | undefined;
|
|
24
25
|
onNavigate?: ((url: string) => any) | undefined;
|
|
25
|
-
onViewAll?: (() => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
pageSize: number;
|
|
28
|
+
storageKey: string;
|
|
28
29
|
autoStart: boolean;
|
|
29
30
|
desktopNotification: boolean;
|
|
30
31
|
maxBadgeCount: number;
|
|
31
32
|
pollingInterval: number;
|
|
32
|
-
storageKey: string;
|
|
33
33
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
35
|
declare const _default: typeof __VLS_export;
|
package/dist/constants3.d.ts
CHANGED
|
@@ -5,31 +5,31 @@ import * as vue from "vue";
|
|
|
5
5
|
type __VLS_Slots = NotificationCenterSlots;
|
|
6
6
|
declare const __VLS_base: vue.DefineComponent<NotificationCenterProps, NotificationCenterExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
7
7
|
delete: (ids: string[]) => any;
|
|
8
|
-
itemClick: (message: NotificationMessage) => any;
|
|
9
8
|
read: (ids: string[]) => any;
|
|
9
|
+
viewAll: () => any;
|
|
10
|
+
itemClick: (message: NotificationMessage) => any;
|
|
10
11
|
allRead: (category?: NotificationCategory | undefined) => any;
|
|
11
12
|
unreadChange: (count: number) => any;
|
|
12
13
|
wsStatusChange: (status: WSConnectionStatus) => any;
|
|
13
14
|
newMessage: (message: NotificationMessage) => any;
|
|
14
15
|
navigate: (url: string) => any;
|
|
15
|
-
viewAll: () => any;
|
|
16
16
|
}, string, vue.PublicProps, Readonly<NotificationCenterProps> & Readonly<{
|
|
17
17
|
onDelete?: ((ids: string[]) => any) | undefined;
|
|
18
|
-
onItemClick?: ((message: NotificationMessage) => any) | undefined;
|
|
19
18
|
onRead?: ((ids: string[]) => any) | undefined;
|
|
19
|
+
onViewAll?: (() => any) | undefined;
|
|
20
|
+
onItemClick?: ((message: NotificationMessage) => any) | undefined;
|
|
20
21
|
onAllRead?: ((category?: NotificationCategory | undefined) => any) | undefined;
|
|
21
22
|
onUnreadChange?: ((count: number) => any) | undefined;
|
|
22
23
|
onWsStatusChange?: ((status: WSConnectionStatus) => any) | undefined;
|
|
23
24
|
onNewMessage?: ((message: NotificationMessage) => any) | undefined;
|
|
24
25
|
onNavigate?: ((url: string) => any) | undefined;
|
|
25
|
-
onViewAll?: (() => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
pageSize: number;
|
|
28
|
+
storageKey: string;
|
|
28
29
|
autoStart: boolean;
|
|
29
30
|
desktopNotification: boolean;
|
|
30
31
|
maxBadgeCount: number;
|
|
31
32
|
pollingInterval: number;
|
|
32
|
-
storageKey: string;
|
|
33
33
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
35
|
declare const _default: typeof __VLS_export;
|
package/dist/constants4.d.cts
CHANGED
|
@@ -8,32 +8,32 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
area?: (props: typeof __VLS_11) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
11
|
-
success: (file: UploadFileItem, response: unknown) => any;
|
|
12
|
-
change: (fileList: UploadFileItem[]) => any;
|
|
13
11
|
error: (file: UploadFileItem, error: Error) => any;
|
|
12
|
+
change: (fileList: UploadFileItem[]) => any;
|
|
14
13
|
progress: (file: UploadFileItem, percent: number) => any;
|
|
14
|
+
success: (file: UploadFileItem, response: unknown) => any;
|
|
15
15
|
remove: (file: UploadFileItem) => any;
|
|
16
16
|
finish: (fileList: UploadFileItem[]) => any;
|
|
17
17
|
exceed: (files: File[], fileList: UploadFileItem[]) => any;
|
|
18
18
|
}, string, vue.PublicProps, Readonly<UploadProps> & Readonly<{
|
|
19
|
-
onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
|
|
20
|
-
onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
21
19
|
onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
|
|
20
|
+
onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
22
21
|
onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
|
|
22
|
+
onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
|
|
23
23
|
onRemove?: ((file: UploadFileItem) => any) | undefined;
|
|
24
24
|
onFinish?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
25
25
|
onExceed?: ((files: File[], fileList: UploadFileItem[]) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
data: Record<string, unknown>;
|
|
28
28
|
disabled: boolean;
|
|
29
|
-
draggable: boolean;
|
|
30
|
-
action: string;
|
|
31
29
|
multiple: boolean;
|
|
32
|
-
|
|
30
|
+
action: string;
|
|
33
31
|
headers: Record<string, string>;
|
|
34
32
|
directory: boolean;
|
|
33
|
+
accept: string;
|
|
35
34
|
maxSize: number;
|
|
36
35
|
maxCount: number;
|
|
36
|
+
draggable: boolean;
|
|
37
37
|
pasteable: boolean;
|
|
38
38
|
chunked: boolean;
|
|
39
39
|
chunkSize: number;
|
|
@@ -132,7 +132,7 @@ declare function useUploadCore(props: UploadProps): {
|
|
|
132
132
|
pauseAll: () => void; /** 恢复所有 */
|
|
133
133
|
resumeAll: () => void; /** 重试 */
|
|
134
134
|
retryFile: (uid: string) => void; /** 处理单文件 */
|
|
135
|
-
processFile: (
|
|
135
|
+
processFile: (file: UploadFileItem) => Promise<void>; /** 获取成功列表 */
|
|
136
136
|
getSuccessList: () => UploadFileItem[];
|
|
137
137
|
};
|
|
138
138
|
//#endregion
|
|
@@ -198,11 +198,12 @@ interface UseChunkUploadOptions {
|
|
|
198
198
|
* 处理大文件分片切割、并发上传、断点续传、分片合并。
|
|
199
199
|
*/
|
|
200
200
|
declare function useChunkUpload(options: UseChunkUploadOptions): {
|
|
201
|
-
createChunks: (file: File) => UploadChunk[];
|
|
201
|
+
createChunks: (file: File, partSize?: number) => UploadChunk[];
|
|
202
202
|
uploadChunks: (params: {
|
|
203
203
|
uid: string;
|
|
204
204
|
file: File;
|
|
205
205
|
hash: string;
|
|
206
|
+
partSize?: number;
|
|
206
207
|
onProgress: (progress: ChunkProgress) => void;
|
|
207
208
|
onSuccess: (response: unknown) => void;
|
|
208
209
|
onError: (error: Error) => void;
|
package/dist/constants4.d.ts
CHANGED
|
@@ -9,32 +9,32 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
area?: (props: typeof __VLS_11) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
12
|
-
success: (file: UploadFileItem, response: unknown) => any;
|
|
13
|
-
change: (fileList: UploadFileItem[]) => any;
|
|
14
12
|
error: (file: UploadFileItem, error: Error) => any;
|
|
13
|
+
change: (fileList: UploadFileItem[]) => any;
|
|
15
14
|
progress: (file: UploadFileItem, percent: number) => any;
|
|
15
|
+
success: (file: UploadFileItem, response: unknown) => any;
|
|
16
16
|
remove: (file: UploadFileItem) => any;
|
|
17
17
|
finish: (fileList: UploadFileItem[]) => any;
|
|
18
18
|
exceed: (files: File[], fileList: UploadFileItem[]) => any;
|
|
19
19
|
}, string, vue.PublicProps, Readonly<UploadProps> & Readonly<{
|
|
20
|
-
onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
|
|
21
|
-
onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
22
20
|
onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
|
|
21
|
+
onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
23
22
|
onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
|
|
23
|
+
onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
|
|
24
24
|
onRemove?: ((file: UploadFileItem) => any) | undefined;
|
|
25
25
|
onFinish?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
26
26
|
onExceed?: ((files: File[], fileList: UploadFileItem[]) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
data: Record<string, unknown>;
|
|
29
29
|
disabled: boolean;
|
|
30
|
-
draggable: boolean;
|
|
31
|
-
action: string;
|
|
32
30
|
multiple: boolean;
|
|
33
|
-
|
|
31
|
+
action: string;
|
|
34
32
|
headers: Record<string, string>;
|
|
35
33
|
directory: boolean;
|
|
34
|
+
accept: string;
|
|
36
35
|
maxSize: number;
|
|
37
36
|
maxCount: number;
|
|
37
|
+
draggable: boolean;
|
|
38
38
|
pasteable: boolean;
|
|
39
39
|
chunked: boolean;
|
|
40
40
|
chunkSize: number;
|
|
@@ -133,7 +133,7 @@ declare function useUploadCore(props: UploadProps): {
|
|
|
133
133
|
pauseAll: () => void; /** 恢复所有 */
|
|
134
134
|
resumeAll: () => void; /** 重试 */
|
|
135
135
|
retryFile: (uid: string) => void; /** 处理单文件 */
|
|
136
|
-
processFile: (
|
|
136
|
+
processFile: (file: UploadFileItem) => Promise<void>; /** 获取成功列表 */
|
|
137
137
|
getSuccessList: () => UploadFileItem[];
|
|
138
138
|
};
|
|
139
139
|
//#endregion
|
|
@@ -199,11 +199,12 @@ interface UseChunkUploadOptions {
|
|
|
199
199
|
* 处理大文件分片切割、并发上传、断点续传、分片合并。
|
|
200
200
|
*/
|
|
201
201
|
declare function useChunkUpload(options: UseChunkUploadOptions): {
|
|
202
|
-
createChunks: (file: File) => UploadChunk[];
|
|
202
|
+
createChunks: (file: File, partSize?: number) => UploadChunk[];
|
|
203
203
|
uploadChunks: (params: {
|
|
204
204
|
uid: string;
|
|
205
205
|
file: File;
|
|
206
206
|
hash: string;
|
|
207
|
+
partSize?: number;
|
|
207
208
|
onProgress: (progress: ChunkProgress) => void;
|
|
208
209
|
onSuccess: (response: unknown) => void;
|
|
209
210
|
onError: (error: Error) => void;
|
package/dist/context.d.cts
CHANGED
|
@@ -1744,4 +1744,4 @@ declare const FORM_GLOBAL_CONFIG_KEY: InjectionKey<FormConfig>;
|
|
|
1744
1744
|
/** 表格默认配置与独立入口共享同一协议,不加载表格渲染代码。 */
|
|
1745
1745
|
declare const TABLE_GLOBAL_CONFIG_KEY: InjectionKey<TableGlobalConfig>;
|
|
1746
1746
|
//#endregion
|
|
1747
|
-
export {
|
|
1747
|
+
export { InlineTableAction as $, FormRecord as $t, RowDragConfig as A, LAYOUTS_WITH_OWN_CONTROLS as At, WatermarkConfig as B, CustomLayoutConfig as Bt, ToolbarConfig as C, CrossPageSelectionConfig as Ct, resolveConfig as D, ColumnStatus as Dt, createEditModeChecker as E, useCrossPageSelection as Et, DynamicRowsReturn as F, shouldShowActions as Ft, ChildSelectionState as G, FieldPath as Gt, usePrintWatermark as H, DynamicFormConfig as Ht, useDynamicRows as I, useFormGlobalConfig as It, DataRecord as J, FormErrorContext as Jt, ColumnWithKey as K, FieldPathValue as Kt, CaptureConfig as L, AsyncOptionsContext as Lt, UseRowDragReturn as M, ResolvedFormConfig as Mt, useRowDrag as N, mergeFormConfig as Nt, ExportConfig as O, FORM_DEFAULTS as Ot, DynamicRowsOptions as P, resolveFormConfig as Pt, GroupTableColumn as Q, FormOption as Qt, PrintConfig as R, CardLayoutConfig as Rt, TableConfig as S, TableMatchingExportContext as St, VirtualScrollConfig as T, UseCrossPageSelectionReturn as Tt, ApiFunction as U, DynamicFormController as Ut, printPresets as V, DynamicFieldConfig as Vt, BuiltInTableColumn as W, DynamicFormState as Wt, EditProps as X, FormMode as Xt, EditMode as Y, FormInstance as Yt, ExpandConfig$1 as Z, FormModel as Zt, ErrorConfig as _, RuleSpec$1 as _n, UseTableActionsOptions as _t, ColumnFormatter as a, InlineLayoutConfig as an, RowAction as at, SelectionConfig as b, UseTableExpandReturn as bt, TableGlobalConfig as c, LayoutType as cn, StrictTableColumn as ct, useTableGlobalConfig as d, StepsLayoutConfig as dn, TableInstance as dt, FormSlots as en, MaybeRefLike as et, BatchActionsConfig as f, SubmitEventPayload as fn, TableManagerApi as ft, EditConfig as g, PRESET_RULES as gn, TableRuntimeProps as gt, DisplayConfig as h, NAIVE_COMBOS as hn, TableRowKeyIssue as ht, TABLE_GLOBAL_CONFIG_KEY as i, GridLayoutConfig as in, RenderFunction as it, UseRowDragOptions as j, LayoutCallbacks as jt, exportTableData as k, FormConfig as kt, applyFormatter as l, MaybePromise as ln, TableColumn as lt, CrudBinding as m, FormValidationRule as mn, TableRowKey as mt, COMPONENT_LOCALE_KEY as n, FormSubmitContext as nn, PaginationConfig as nt, FormatterConfig as o, LabelPlacement as on, SelectOption as ot, ColumnDragConfig as p, TabsLayoutConfig as pn, TableProps as pt, CustomAction as q, FormActionSlotProps as qt, FORM_GLOBAL_CONFIG_KEY as r, FormTabActionsSlotProps as rn, ParentChildLinkMode as rt, FormatterType as s, LayoutConfig as sn, SimpleTableActions as st, COMPONENT_FEEDBACK_KEY as t, FormStepActionsSlotProps as tn, NormalTableColumn as tt, mergeGlobalConfig as u, OptionItem as un, TableEmits as ut, ExpandConfig as v, SPEC_RULES as vn, UseTableActionsReturn as vt, TreeConfig as w, UseCrossPageSelectionOptions as wt, SummaryConfig as x, TableExportScope as xt, ResolvedConfig as y, UseTableExpandOptions as yt, PrintWatermarkOptions as z, ComponentType as zt };
|
package/dist/data2.d.cts
CHANGED
|
@@ -65,28 +65,28 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_37>]?: (props: typeof _
|
|
|
65
65
|
declare const __VLS_base: vue.DefineComponent<CTabsProps, {
|
|
66
66
|
activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
|
|
67
67
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
68
|
-
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
69
|
-
add: () => any;
|
|
70
68
|
"update:modelValue": (value: TabsValue) => any;
|
|
71
69
|
close: (value: TabsValue) => any;
|
|
70
|
+
add: () => any;
|
|
71
|
+
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
72
72
|
}, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
|
|
73
|
-
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
74
|
-
onAdd?: (() => any) | undefined;
|
|
75
73
|
"onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
|
|
76
74
|
onClose?: ((value: TabsValue) => any) | undefined;
|
|
75
|
+
onAdd?: (() => any) | undefined;
|
|
76
|
+
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
77
77
|
}>, {
|
|
78
|
-
type: TabsType;
|
|
79
|
-
size: TabsSize;
|
|
80
78
|
modelValue: TabsValue | null;
|
|
81
|
-
items: readonly TabsItem[];
|
|
82
|
-
animated: boolean;
|
|
83
79
|
defaultValue: TabsValue | null;
|
|
80
|
+
items: readonly TabsItem[];
|
|
81
|
+
type: TabsType;
|
|
82
|
+
size: TabsSize;
|
|
84
83
|
placement: TabsPlacement;
|
|
84
|
+
justifyContent: TabsJustifyContent;
|
|
85
|
+
animated: boolean;
|
|
85
86
|
closable: boolean;
|
|
86
|
-
displayDirective: TabsDisplayDirective;
|
|
87
87
|
addable: boolean;
|
|
88
|
-
justifyContent: TabsJustifyContent;
|
|
89
88
|
tabsOnly: boolean;
|
|
89
|
+
displayDirective: TabsDisplayDirective;
|
|
90
90
|
paneClass: string;
|
|
91
91
|
paneStyle: string | vue.CSSProperties;
|
|
92
92
|
beforeChange: (target: TabsValue, current: TabsValue | null) => boolean | Promise<boolean>;
|
package/dist/data2.d.ts
CHANGED
|
@@ -65,28 +65,28 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_37>]?: (props: typeof _
|
|
|
65
65
|
declare const __VLS_base: vue.DefineComponent<CTabsProps, {
|
|
66
66
|
activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
|
|
67
67
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
68
|
-
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
69
|
-
add: () => any;
|
|
70
68
|
"update:modelValue": (value: TabsValue) => any;
|
|
71
69
|
close: (value: TabsValue) => any;
|
|
70
|
+
add: () => any;
|
|
71
|
+
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
72
72
|
}, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
|
|
73
|
-
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
74
|
-
onAdd?: (() => any) | undefined;
|
|
75
73
|
"onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
|
|
76
74
|
onClose?: ((value: TabsValue) => any) | undefined;
|
|
75
|
+
onAdd?: (() => any) | undefined;
|
|
76
|
+
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
77
77
|
}>, {
|
|
78
|
-
type: TabsType;
|
|
79
|
-
size: TabsSize;
|
|
80
78
|
modelValue: TabsValue | null;
|
|
81
|
-
items: readonly TabsItem[];
|
|
82
|
-
animated: boolean;
|
|
83
79
|
defaultValue: TabsValue | null;
|
|
80
|
+
items: readonly TabsItem[];
|
|
81
|
+
type: TabsType;
|
|
82
|
+
size: TabsSize;
|
|
84
83
|
placement: TabsPlacement;
|
|
84
|
+
justifyContent: TabsJustifyContent;
|
|
85
|
+
animated: boolean;
|
|
85
86
|
closable: boolean;
|
|
86
|
-
displayDirective: TabsDisplayDirective;
|
|
87
87
|
addable: boolean;
|
|
88
|
-
justifyContent: TabsJustifyContent;
|
|
89
88
|
tabsOnly: boolean;
|
|
89
|
+
displayDirective: TabsDisplayDirective;
|
|
90
90
|
paneClass: string;
|
|
91
91
|
paneStyle: string | vue.CSSProperties;
|
|
92
92
|
beforeChange: (target: TabsValue, current: TabsValue | null) => boolean | Promise<boolean>;
|
package/dist/editors.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.cjs";
|
|
|
2
2
|
import { n as ResolvedComponentDensity, t as ComponentDensity } from "./density.cjs";
|
|
3
3
|
import { i as OptionValue, r as OptionSource } from "./optionSource.cjs";
|
|
4
4
|
import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types4.cjs";
|
|
5
|
-
import { A as RowDragConfig, C as ToolbarConfig, F as DynamicRowsReturn, J as DataRecord, O as ExportConfig, P as DynamicRowsOptions, S as TableConfig,
|
|
5
|
+
import { A as RowDragConfig, C as ToolbarConfig, Ct as CrossPageSelectionConfig, F as DynamicRowsReturn, J as DataRecord, O as ExportConfig, P as DynamicRowsOptions, S as TableConfig, T as VirtualScrollConfig, Y as EditMode, Z as ExpandConfig, _ as ErrorConfig, _t as UseTableActionsOptions, b as SelectionConfig, bt as UseTableExpandReturn, ct as StrictTableColumn, dt as TableInstance, f as BatchActionsConfig, g as EditConfig, gt as TableRuntimeProps, h as DisplayConfig, ht as TableRowKeyIssue, lt as TableColumn, mt as TableRowKey, nt as PaginationConfig, o as FormatterConfig, p as ColumnDragConfig, rt as ParentChildLinkMode, st as SimpleTableActions, ut as TableEmits, v as ExpandConfig$1, vt as UseTableActionsReturn, w as TreeConfig, x as SummaryConfig, y as ResolvedConfig, yt as UseTableExpandOptions } from "./context.cjs";
|
|
6
6
|
import { a as SelectProps$1, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types9.cjs";
|
|
7
7
|
import { E as TreeRenderContext, O as TreeSlots, T as TreeProps$1, _ as TreeExpose, f as DropInfo, g as TreeEmits, k as TreeUpdateMeta, p as IconConfig, u as ActionConfig, v as TreeKey, x as TreeNodeData, y as TreeMode } from "./types11.cjs";
|
|
8
8
|
import * as vue from "vue";
|
|
@@ -23,8 +23,8 @@ declare function useComponentFeedback(local?: MaybeRefOrGetter<ComponentFeedback
|
|
|
23
23
|
//#region src/components/C_Table/index.vue.d.ts
|
|
24
24
|
declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
25
25
|
props: vue.PublicProps & __VLS_PrettifyLocal$1<TableRuntimeProps<T, C> & {
|
|
26
|
-
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
27
26
|
onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
|
|
27
|
+
onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
|
|
28
28
|
"onPagination-change"?: ((page: number, pageSize: number) => any) | undefined;
|
|
29
29
|
"onRow-delete"?: ((deletedRow: T, index: number) => any) | undefined;
|
|
30
30
|
"onBatch-action-error"?: ((error: unknown, actionKey: string) => any) | undefined;
|
|
@@ -59,7 +59,7 @@ declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS
|
|
|
59
59
|
} & {
|
|
60
60
|
empty?: (props: {}) => any;
|
|
61
61
|
};
|
|
62
|
-
emit: ((evt: "
|
|
62
|
+
emit: ((evt: "cancel", rowData: T, rowIndex: number) => void) & ((evt: "save", rowData: T, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "pagination-change", page: number, pageSize: number) => void) & ((evt: "row-delete", deletedRow: T, index: number) => void) & ((evt: "batch-action-error", error: unknown, actionKey: string) => void) & ((evt: "row-key-error", issues: TableRowKeyIssue<T>[]) => void) & ((evt: "row-add", newRow: T) => void) & ((evt: "row-copy", originalRow: T, newRow: T) => void) & ((evt: "row-move", row: T, fromIndex: number, toIndex: number) => void) & ((evt: "row-selection-change", selectedKey: DataTableRowKey | null, selectedRow: T | null) => void) & ((evt: "view-detail", data: T) => void) & ((evt: "column-change", columns: TableColumn<T>[]) => void) & ((evt: "expand-change", expandedKeys: DataTableRowKey[], row?: T | undefined, expanded?: boolean | undefined) => void) & ((evt: "selection-change", checkedKeys: DataTableRowKey[], checkedRows: T[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]> | undefined) => void) & ((evt: "child-selection-change", parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: C[]) => void) & ((evt: "parent-child-link-change", parentKey: DataTableRowKey, shouldSelect: boolean) => void) & ((evt: "update:data", data: T[]) => void) & ((evt: "edit-error", error: unknown) => void);
|
|
63
63
|
}>) => vue.VNode & {
|
|
64
64
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
65
65
|
};
|
|
@@ -229,9 +229,9 @@ interface TableManagerConfig {
|
|
|
229
229
|
onEditError?: (error: unknown) => void;
|
|
230
230
|
expandable: boolean;
|
|
231
231
|
defaultExpandedKeys?: DataTableRowKey[];
|
|
232
|
-
onLoadExpandData?:
|
|
232
|
+
onLoadExpandData?: ExpandConfig<DataRecord, unknown>['onLoadData'];
|
|
233
233
|
onExpandError?: (error: unknown, row: DataRecord) => void;
|
|
234
|
-
renderExpandContent?:
|
|
234
|
+
renderExpandContent?: ExpandConfig['renderContent'];
|
|
235
235
|
rowExpandable?: (row: DataRecord) => boolean;
|
|
236
236
|
enableSelection: boolean;
|
|
237
237
|
defaultCheckedKeys?: DataTableRowKey[];
|
|
@@ -248,11 +248,13 @@ interface TableManagerConfig {
|
|
|
248
248
|
/**
|
|
249
249
|
* 表格管理器参数接口
|
|
250
250
|
*/
|
|
251
|
+
/** 状态管理器和 CRUD 桥接复用公开的事件载荷,业务泛型由组件出口负责。 */
|
|
252
|
+
type InternalTableEvent = { [K in keyof TableEmits]: [event: K, ...args: TableEmits[K]] }[keyof TableEmits];
|
|
251
253
|
interface TableManagerParams {
|
|
252
254
|
config: MaybeRefOrGetter<TableManagerConfig>;
|
|
253
255
|
data: () => DataRecord[];
|
|
254
256
|
rowKey: (row: DataRecord) => DataTableRowKey;
|
|
255
|
-
emit: (...
|
|
257
|
+
emit: (...event: InternalTableEvent) => unknown;
|
|
256
258
|
/** 列配置(用于编辑校验) */
|
|
257
259
|
columns?: () => TableColumn[];
|
|
258
260
|
/** UI 壳提供加载内容,状态引擎保持可独立调用。 */
|
|
@@ -267,7 +269,7 @@ interface EventHandlers {
|
|
|
267
269
|
onSave: (rowData: DataRecord, rowIndex: number, columnKey?: string, originalKey?: DataTableRowKey) => Promise<void>;
|
|
268
270
|
onCancel: (rowData: DataRecord, rowIndex: number) => Promise<void>;
|
|
269
271
|
onExpandChange: (keys: DataTableRowKey[], row?: DataRecord, expanded?: boolean) => void;
|
|
270
|
-
onSelectionChange: (checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections
|
|
272
|
+
onSelectionChange: (checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]>) => void;
|
|
271
273
|
onChildSelectionChange: (parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: DataRecord[]) => void;
|
|
272
274
|
onRowChange: (data: DataRecord[]) => void;
|
|
273
275
|
onRowSelectionChange: (selectedKey: DataTableRowKey | null, selectedRow: DataRecord | null) => void;
|
|
@@ -557,20 +559,20 @@ declare function setupHighlight(app: App, options?: HighlightPluginOptions): Hig
|
|
|
557
559
|
declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
558
560
|
props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
|
|
559
561
|
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
560
|
-
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
561
562
|
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
562
|
-
|
|
563
|
+
onRefresh?: (() => any) | undefined;
|
|
563
564
|
"onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
|
|
564
565
|
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
565
566
|
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
566
567
|
"onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
|
|
567
568
|
"onNode-action"?: ((action: string, node: T) => any) | undefined;
|
|
568
569
|
"onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
|
|
569
|
-
|
|
570
|
+
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
571
|
+
"onSearch-error"?: ((error: unknown) => any) | undefined;
|
|
570
572
|
}> & (typeof globalThis extends {
|
|
571
573
|
__VLS_PROPS_FALLBACK: infer P;
|
|
572
574
|
} ? P : {});
|
|
573
|
-
expose: (exposed: vue.ShallowUnwrapRef<Omit<TreeExpose<T>, "expandedKeys" | "
|
|
575
|
+
expose: (exposed: vue.ShallowUnwrapRef<Omit<TreeExpose<T>, "expandedKeys" | "selectedKeys" | "checkedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
|
|
574
576
|
expandedKeys: vue.Ref<TreeKey[]>;
|
|
575
577
|
selectedKeys: vue.Ref<TreeKey[]>;
|
|
576
578
|
checkedKeys: vue.Ref<TreeKey[]>;
|
|
@@ -581,7 +583,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
|
|
|
581
583
|
}>) => void;
|
|
582
584
|
attrs: any;
|
|
583
585
|
slots: TreeSlots<T>;
|
|
584
|
-
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "
|
|
586
|
+
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "search-error", error: unknown) => void);
|
|
585
587
|
}>) => vue.VNode & {
|
|
586
588
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
587
589
|
};
|
|
@@ -645,7 +647,7 @@ declare function useTreeOperations<T extends object = TreeNodeData>(props: TreeP
|
|
|
645
647
|
handleDrop: (info: DropInfo<T>) => void;
|
|
646
648
|
handleAdd: () => void;
|
|
647
649
|
handleRefresh: () => void;
|
|
648
|
-
expose: Omit<TreeExpose<T>, "expandedKeys" | "
|
|
650
|
+
expose: Omit<TreeExpose<T>, "expandedKeys" | "selectedKeys" | "checkedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
|
|
649
651
|
expandedKeys: Ref<TreeKey[]>;
|
|
650
652
|
selectedKeys: Ref<TreeKey[]>;
|
|
651
653
|
checkedKeys: Ref<TreeKey[]>;
|
|
@@ -728,7 +730,7 @@ declare function useTableQuery<T extends object, Q extends object = Record<strin
|
|
|
728
730
|
validateRowKeys?: boolean;
|
|
729
731
|
edit?: boolean | EditMode | EditConfig<T> | undefined;
|
|
730
732
|
actions?: SimpleTableActions<T> | undefined;
|
|
731
|
-
expand?: boolean | ExpandConfig<T, unknown> | undefined;
|
|
733
|
+
expand?: boolean | ExpandConfig$1<T, unknown> | undefined;
|
|
732
734
|
selection?: boolean | SelectionConfig<T, unknown> | undefined;
|
|
733
735
|
dynamicRows?: DynamicRowsOptions<T> | (string extends keyof T ? boolean : false) | undefined;
|
|
734
736
|
toolbar?: ToolbarConfig;
|
|
@@ -776,7 +778,7 @@ declare function useTableQuery<T extends object, Q extends object = Record<strin
|
|
|
776
778
|
validateRowKeys?: boolean;
|
|
777
779
|
edit?: boolean | EditMode | EditConfig<T> | undefined;
|
|
778
780
|
actions?: SimpleTableActions<T> | undefined;
|
|
779
|
-
expand?: boolean | ExpandConfig<T, unknown> | undefined;
|
|
781
|
+
expand?: boolean | ExpandConfig$1<T, unknown> | undefined;
|
|
780
782
|
selection?: boolean | SelectionConfig<T, unknown> | undefined;
|
|
781
783
|
dynamicRows?: DynamicRowsOptions<T> | (string extends keyof T ? boolean : false) | undefined;
|
|
782
784
|
toolbar?: ToolbarConfig;
|