@worm-vue3-print/canvas 1.0.1
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/README.md +54 -0
- package/dist/canvas.css +1 -0
- package/dist/components/CanvasArea.vue.d.ts +102 -0
- package/dist/components/CanvasPaper.vue.d.ts +50 -0
- package/dist/components/DesignerToolbar.vue.d.ts +59 -0
- package/dist/components/ExpressionEditor.vue.d.ts +16 -0
- package/dist/components/FieldTreePanel.vue.d.ts +11 -0
- package/dist/components/LayerPanel.vue.d.ts +14 -0
- package/dist/components/LeftPanel.vue.d.ts +24 -0
- package/dist/components/PresetColorPicker.vue.d.ts +10 -0
- package/dist/components/PrintDesigner.vue.d.ts +27 -0
- package/dist/components/PrintHtmlPreview.vue.d.ts +23 -0
- package/dist/components/PropertyPanel.vue.d.ts +23 -0
- package/dist/components/Ruler.vue.d.ts +12 -0
- package/dist/components/StatusBar.vue.d.ts +14 -0
- package/dist/components/WatermarkConfig.vue.d.ts +12 -0
- package/dist/components/elements/BarcodeElement.vue.d.ts +9 -0
- package/dist/components/elements/BaseElement.vue.d.ts +45 -0
- package/dist/components/elements/CellBarcode.vue.d.ts +10 -0
- package/dist/components/elements/HtmlElement.vue.d.ts +9 -0
- package/dist/components/elements/ImageElement.vue.d.ts +9 -0
- package/dist/components/elements/LineElement.vue.d.ts +7 -0
- package/dist/components/elements/LongTextElement.vue.d.ts +9 -0
- package/dist/components/elements/PageNumberElement.vue.d.ts +9 -0
- package/dist/components/elements/QrcodeElement.vue.d.ts +9 -0
- package/dist/components/elements/ShapeElement.vue.d.ts +7 -0
- package/dist/components/elements/TableContextMenu.vue.d.ts +19 -0
- package/dist/components/elements/TableElement.vue.d.ts +17 -0
- package/dist/components/elements/TextElement.vue.d.ts +9 -0
- package/dist/components/property/AdvancedGroup.vue.d.ts +13 -0
- package/dist/components/property/AppearanceGroup.vue.d.ts +10 -0
- package/dist/components/property/BindingControl.vue.d.ts +13 -0
- package/dist/components/property/BorderBgGroup.vue.d.ts +9 -0
- package/dist/components/property/CodeGroup.vue.d.ts +13 -0
- package/dist/components/property/ImageContentUpload.vue.d.ts +10 -0
- package/dist/components/property/PaginationGroup.vue.d.ts +9 -0
- package/dist/components/property/PositionSizeGroup.vue.d.ts +9 -0
- package/dist/components/property/PropertyGroup.vue.d.ts +19 -0
- package/dist/components/property/PropertySearch.vue.d.ts +7 -0
- package/dist/components/property/TableCellGroup.vue.d.ts +12 -0
- package/dist/components/property/TableRowGroup.vue.d.ts +8 -0
- package/dist/components/property/TableSettingsGroup.vue.d.ts +8 -0
- package/dist/composables/useAdsorb.d.ts +26 -0
- package/dist/composables/useAdsorbManager.d.ts +31 -0
- package/dist/composables/useAlign.d.ts +5 -0
- package/dist/composables/useBindingDisplay.d.ts +11 -0
- package/dist/composables/useClipboard.d.ts +251 -0
- package/dist/composables/useDesignerState.d.ts +1149 -0
- package/dist/composables/useDrag.d.ts +51 -0
- package/dist/composables/useGroup.d.ts +7 -0
- package/dist/composables/useGuides.d.ts +12 -0
- package/dist/composables/useHistory.d.ts +31 -0
- package/dist/composables/useHostAdapter.d.ts +4 -0
- package/dist/composables/useKeyboard.d.ts +22 -0
- package/dist/composables/useResize.d.ts +26 -0
- package/dist/composables/useSelection.d.ts +26 -0
- package/dist/composables/useStudioChrome.d.ts +8 -0
- package/dist/composables/useTableSelection.d.ts +10 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +6444 -0
- package/dist/index.js.map +1 -0
- package/dist/render/browser-code-renderer.d.ts +3 -0
- package/dist/render/browser-pagination.d.ts +17 -0
- package/dist/types.d.ts +282 -0
- package/dist/utils/binding-registry.d.ts +8 -0
- package/dist/utils/binding.d.ts +16 -0
- package/dist/utils/default-config.d.ts +13 -0
- package/dist/utils/demo-data.d.ts +2 -0
- package/dist/utils/element-factory.d.ts +4 -0
- package/dist/utils/engine.d.ts +2 -0
- package/dist/utils/expression-eval.d.ts +30 -0
- package/dist/utils/field-groups.d.ts +21 -0
- package/dist/utils/migrate.d.ts +2 -0
- package/dist/utils/preset-colors.d.ts +2 -0
- package/dist/utils/property-search.d.ts +18 -0
- package/dist/utils/ruler.d.ts +7 -0
- package/dist/utils/scale.d.ts +2 -0
- package/dist/utils/table-matrix.d.ts +61 -0
- package/dist/utils/units.d.ts +4 -0
- package/dist/utils/zone-layout.d.ts +27 -0
- package/package.json +55 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
data?: Record<string, any>[];
|
|
5
|
+
designMode?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
data?: Record<string, any>[];
|
|
5
|
+
designMode?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
data?: Record<string, any>[];
|
|
5
|
+
designMode?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
data?: Record<string, any>[];
|
|
5
|
+
designMode?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
data?: Record<string, any>[];
|
|
5
|
+
designMode?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TableRowType } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
canDeleteRow: boolean;
|
|
7
|
+
canDeleteCol: boolean;
|
|
8
|
+
mergeDisabledReason: string | null;
|
|
9
|
+
canSplit: boolean;
|
|
10
|
+
currentRowType: TableRowType | null;
|
|
11
|
+
rowTypeDisabledReason: (t: TableRowType) => string | null;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
action: (name: string, payload?: string | undefined) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onAction?: ((name: string, payload?: string | undefined) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
designMode?: boolean;
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
/** 设计态下无边框单元格是否显示虚拟虚线(默认 true) */
|
|
7
|
+
showTableGhostBorder?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"dblclick-element": (id: string) => any;
|
|
11
|
+
"dblclick-cell": (elementId: string, r: number, c: number) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
"onDblclick-element"?: ((id: string) => any) | undefined;
|
|
14
|
+
"onDblclick-cell"?: ((elementId: string, r: number, c: number) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
data?: Record<string, any>[];
|
|
5
|
+
designMode?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
matchedKeys?: Set<string>;
|
|
5
|
+
searching?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"delete-element": () => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onDelete-element"?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
isTextType: boolean;
|
|
5
|
+
matchedKeys?: Set<string>;
|
|
6
|
+
searching?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BindingDescriptor, PrintBusinessField } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
descriptor: BindingDescriptor;
|
|
4
|
+
modelValue: string;
|
|
5
|
+
fields?: PrintBusinessField[];
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
+
"update:modelValue": (value: string) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
matchedKeys?: Set<string>;
|
|
5
|
+
searching?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
matchedKeys?: Set<string>;
|
|
5
|
+
searching?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
change: () => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onChange?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
success: (url: string) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
+
onSuccess?: ((url: string) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
matchedKeys?: Set<string>;
|
|
5
|
+
searching?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
matchedKeys?: Set<string>;
|
|
5
|
+
searching?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
icon: string;
|
|
4
|
+
defaultExpanded?: boolean;
|
|
5
|
+
groupKey: string;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
search: (text: string) => any;
|
|
3
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onSearch?: ((text: string) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RuntimeElement, TableSelection, PrintBusinessField } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
selection: TableSelection;
|
|
5
|
+
fields: PrintBusinessField[];
|
|
6
|
+
};
|
|
7
|
+
declare function openFormatterEditor(): void;
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
9
|
+
openFormatterEditor: typeof openFormatterEditor;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RuntimeElement, TableSelection } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
selection: TableSelection;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RuntimeElement, PrintBusinessField } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: RuntimeElement;
|
|
4
|
+
fields: PrintBusinessField[];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { ElementRect, AlignLine, AdsorbResult } from '../types';
|
|
3
|
+
export interface AdsorbConfig {
|
|
4
|
+
adsorbMin?: number;
|
|
5
|
+
adsorbLineMin?: number;
|
|
6
|
+
showAdsorbLine?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function useAdsorb(config?: AdsorbConfig): {
|
|
9
|
+
check: (movingRect: ElementRect, others: ElementRect[], guideLines?: {
|
|
10
|
+
vertical: number[];
|
|
11
|
+
horizontal: number[];
|
|
12
|
+
}) => AdsorbResult;
|
|
13
|
+
renderLines: (lines: AlignLine[], paperW: number, paperH: number) => void;
|
|
14
|
+
clearLines: () => void;
|
|
15
|
+
guideLines: Ref<AlignLine[], AlignLine[]>;
|
|
16
|
+
paperSize: Ref<{
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
}, {
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
} | {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { RuntimeElement, ElementRect, AdsorbResult } from '../types';
|
|
2
|
+
import { type AdsorbConfig } from './useAdsorb';
|
|
3
|
+
export interface AdsorbManagerOptions {
|
|
4
|
+
getElements: () => RuntimeElement[];
|
|
5
|
+
/** 纸张尺寸(mm),用于引导线贯穿整页 */
|
|
6
|
+
getPaperSize: () => {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
/** 手动参考线位置(mm),参与吸附 */
|
|
11
|
+
getGuides?: () => {
|
|
12
|
+
vertical: number[];
|
|
13
|
+
horizontal: number[];
|
|
14
|
+
};
|
|
15
|
+
config?: AdsorbConfig;
|
|
16
|
+
}
|
|
17
|
+
export declare function useAdsorbManager(options: AdsorbManagerOptions): {
|
|
18
|
+
requestAdsorb: (movingRect: ElementRect) => AdsorbResult;
|
|
19
|
+
clearGuides: () => void;
|
|
20
|
+
guideLines: import("vue").Ref<import("..").AlignLine[], import("..").AlignLine[]>;
|
|
21
|
+
paperSize: import("vue").Ref<{
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
}, {
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
} | {
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
}>;
|
|
31
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RuntimeElement } from '../types';
|
|
2
|
+
export type AlignMode = 'left' | 'right' | 'top' | 'bottom' | 'vertical' | 'horizontal' | 'distributeHor' | 'distributeVer';
|
|
3
|
+
export declare function useAlign(): {
|
|
4
|
+
align: (elements: RuntimeElement[], mode: AlignMode) => void;
|
|
5
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface BindingDisplayState {
|
|
2
|
+
status: 'unbound' | 'bound' | 'warning' | 'error';
|
|
3
|
+
badge: string;
|
|
4
|
+
badgeColor: string;
|
|
5
|
+
demoPreview: string;
|
|
6
|
+
warning?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function useBindingDisplay(): {
|
|
9
|
+
getBindingDisplayState: (element: any) => BindingDisplayState;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import type { RuntimeElement, PrintElementData } from '../types';
|
|
2
|
+
export declare function useClipboard(): {
|
|
3
|
+
clipboard: import("vue").Ref<{
|
|
4
|
+
id?: string | undefined;
|
|
5
|
+
type?: import("..").ElementType | undefined;
|
|
6
|
+
options: {
|
|
7
|
+
left: number;
|
|
8
|
+
top: number;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
title?: string | undefined;
|
|
12
|
+
testData?: string | undefined;
|
|
13
|
+
fontSize?: number | undefined;
|
|
14
|
+
fontWeight?: string | undefined;
|
|
15
|
+
fontFamily?: string | undefined;
|
|
16
|
+
color?: string | undefined;
|
|
17
|
+
backgroundColor?: string | undefined;
|
|
18
|
+
textAlign?: import("..").TextAlign | undefined;
|
|
19
|
+
verticalAlign?: import("..").VerticalAlign | undefined;
|
|
20
|
+
lineHeight?: number | undefined;
|
|
21
|
+
letterSpacing?: number | undefined;
|
|
22
|
+
fixed?: boolean | undefined;
|
|
23
|
+
locked?: boolean | undefined;
|
|
24
|
+
visible?: boolean | undefined;
|
|
25
|
+
borderWidth?: number | undefined;
|
|
26
|
+
borderStyle?: string | undefined;
|
|
27
|
+
borderColor?: string | undefined;
|
|
28
|
+
contentPaddingLeft?: number | undefined;
|
|
29
|
+
contentPaddingTop?: number | undefined;
|
|
30
|
+
contentPaddingRight?: number | undefined;
|
|
31
|
+
contentPaddingBottom?: number | undefined;
|
|
32
|
+
textDecoration?: string | undefined;
|
|
33
|
+
textType?: "barcode" | "qrcode" | undefined;
|
|
34
|
+
barcodeType?: string | undefined;
|
|
35
|
+
barWidth?: number | undefined;
|
|
36
|
+
barAutoWidth?: string | undefined;
|
|
37
|
+
qrCodeLevel?: string | undefined;
|
|
38
|
+
src?: string | undefined;
|
|
39
|
+
fit?: string | undefined;
|
|
40
|
+
hideTitle?: boolean | undefined;
|
|
41
|
+
draggable?: boolean | undefined;
|
|
42
|
+
axis?: string | undefined;
|
|
43
|
+
transform?: number | undefined;
|
|
44
|
+
zIndex?: number | undefined;
|
|
45
|
+
groupId?: string | undefined;
|
|
46
|
+
pagination?: {
|
|
47
|
+
pageable: boolean;
|
|
48
|
+
keepWithNext: boolean;
|
|
49
|
+
} | undefined;
|
|
50
|
+
tablePagination?: {
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
} | undefined;
|
|
53
|
+
tableMode?: "dynamic" | "static" | undefined;
|
|
54
|
+
tableRows?: {
|
|
55
|
+
id: string;
|
|
56
|
+
type: import("..").TableRowType;
|
|
57
|
+
height: number;
|
|
58
|
+
repeatOnPage?: boolean | undefined;
|
|
59
|
+
cells: {
|
|
60
|
+
id: string;
|
|
61
|
+
formatter?: string | undefined;
|
|
62
|
+
cellType?: import("..").TableCellType | undefined;
|
|
63
|
+
barcodeType?: string | undefined;
|
|
64
|
+
qrCodeLevel?: string | undefined;
|
|
65
|
+
showBarcodeText?: boolean | undefined;
|
|
66
|
+
rowspan?: number | undefined;
|
|
67
|
+
colspan?: number | undefined;
|
|
68
|
+
merged?: boolean | undefined;
|
|
69
|
+
align?: import("..").TextAlign | undefined;
|
|
70
|
+
valign?: "top" | "middle" | "bottom" | undefined;
|
|
71
|
+
fontFamily?: string | undefined;
|
|
72
|
+
fontSize?: number | undefined;
|
|
73
|
+
fontWeight?: string | undefined;
|
|
74
|
+
color?: string | undefined;
|
|
75
|
+
backgroundColor?: string | undefined;
|
|
76
|
+
borders?: {
|
|
77
|
+
top?: {
|
|
78
|
+
width: number;
|
|
79
|
+
style: "solid" | "dashed" | "dotted" | "double" | "none";
|
|
80
|
+
color: string;
|
|
81
|
+
} | undefined;
|
|
82
|
+
right?: {
|
|
83
|
+
width: number;
|
|
84
|
+
style: "solid" | "dashed" | "dotted" | "double" | "none";
|
|
85
|
+
color: string;
|
|
86
|
+
} | undefined;
|
|
87
|
+
bottom?: {
|
|
88
|
+
width: number;
|
|
89
|
+
style: "solid" | "dashed" | "dotted" | "double" | "none";
|
|
90
|
+
color: string;
|
|
91
|
+
} | undefined;
|
|
92
|
+
left?: {
|
|
93
|
+
width: number;
|
|
94
|
+
style: "solid" | "dashed" | "dotted" | "double" | "none";
|
|
95
|
+
color: string;
|
|
96
|
+
} | undefined;
|
|
97
|
+
} | undefined;
|
|
98
|
+
padding?: number | undefined;
|
|
99
|
+
wordWrap?: boolean | undefined;
|
|
100
|
+
}[];
|
|
101
|
+
}[] | undefined;
|
|
102
|
+
tableColWidths?: number[] | undefined;
|
|
103
|
+
tableDefaultFontSize?: number | undefined;
|
|
104
|
+
tableDefaultColor?: string | undefined;
|
|
105
|
+
tableDefaultPadding?: number | undefined;
|
|
106
|
+
dataSource?: string | undefined;
|
|
107
|
+
fields?: {
|
|
108
|
+
text?: string | undefined;
|
|
109
|
+
dataSource?: string | undefined;
|
|
110
|
+
}[] | undefined;
|
|
111
|
+
formatter?: string | undefined;
|
|
112
|
+
styler?: string | undefined;
|
|
113
|
+
rowStyler?: string | undefined;
|
|
114
|
+
longTextIndent?: number | undefined;
|
|
115
|
+
leftSpaceRemoved?: boolean | undefined;
|
|
116
|
+
lHeight?: number | undefined;
|
|
117
|
+
};
|
|
118
|
+
printElementType: {
|
|
119
|
+
title?: string | undefined;
|
|
120
|
+
type: import("..").ElementType;
|
|
121
|
+
editable?: boolean | undefined;
|
|
122
|
+
formatter?: string | undefined;
|
|
123
|
+
styler?: string | undefined;
|
|
124
|
+
};
|
|
125
|
+
}[] | null, PrintElementData[] | {
|
|
126
|
+
id?: string | undefined;
|
|
127
|
+
type?: import("..").ElementType | undefined;
|
|
128
|
+
options: {
|
|
129
|
+
left: number;
|
|
130
|
+
top: number;
|
|
131
|
+
width: number;
|
|
132
|
+
height: number;
|
|
133
|
+
title?: string | undefined;
|
|
134
|
+
testData?: string | undefined;
|
|
135
|
+
fontSize?: number | undefined;
|
|
136
|
+
fontWeight?: string | undefined;
|
|
137
|
+
fontFamily?: string | undefined;
|
|
138
|
+
color?: string | undefined;
|
|
139
|
+
backgroundColor?: string | undefined;
|
|
140
|
+
textAlign?: import("..").TextAlign | undefined;
|
|
141
|
+
verticalAlign?: import("..").VerticalAlign | undefined;
|
|
142
|
+
lineHeight?: number | undefined;
|
|
143
|
+
letterSpacing?: number | undefined;
|
|
144
|
+
fixed?: boolean | undefined;
|
|
145
|
+
locked?: boolean | undefined;
|
|
146
|
+
visible?: boolean | undefined;
|
|
147
|
+
borderWidth?: number | undefined;
|
|
148
|
+
borderStyle?: string | undefined;
|
|
149
|
+
borderColor?: string | undefined;
|
|
150
|
+
contentPaddingLeft?: number | undefined;
|
|
151
|
+
contentPaddingTop?: number | undefined;
|
|
152
|
+
contentPaddingRight?: number | undefined;
|
|
153
|
+
contentPaddingBottom?: number | undefined;
|
|
154
|
+
textDecoration?: string | undefined;
|
|
155
|
+
textType?: "barcode" | "qrcode" | undefined;
|
|
156
|
+
barcodeType?: string | undefined;
|
|
157
|
+
barWidth?: number | undefined;
|
|
158
|
+
barAutoWidth?: string | undefined;
|
|
159
|
+
qrCodeLevel?: string | undefined;
|
|
160
|
+
src?: string | undefined;
|
|
161
|
+
fit?: string | undefined;
|
|
162
|
+
hideTitle?: boolean | undefined;
|
|
163
|
+
draggable?: boolean | undefined;
|
|
164
|
+
axis?: string | undefined;
|
|
165
|
+
transform?: number | undefined;
|
|
166
|
+
zIndex?: number | undefined;
|
|
167
|
+
groupId?: string | undefined;
|
|
168
|
+
pagination?: {
|
|
169
|
+
pageable: boolean;
|
|
170
|
+
keepWithNext: boolean;
|
|
171
|
+
} | undefined;
|
|
172
|
+
tablePagination?: {
|
|
173
|
+
enabled: boolean;
|
|
174
|
+
} | undefined;
|
|
175
|
+
tableMode?: "dynamic" | "static" | undefined;
|
|
176
|
+
tableRows?: {
|
|
177
|
+
id: string;
|
|
178
|
+
type: import("..").TableRowType;
|
|
179
|
+
height: number;
|
|
180
|
+
repeatOnPage?: boolean | undefined;
|
|
181
|
+
cells: {
|
|
182
|
+
id: string;
|
|
183
|
+
formatter?: string | undefined;
|
|
184
|
+
cellType?: import("..").TableCellType | undefined;
|
|
185
|
+
barcodeType?: string | undefined;
|
|
186
|
+
qrCodeLevel?: string | undefined;
|
|
187
|
+
showBarcodeText?: boolean | undefined;
|
|
188
|
+
rowspan?: number | undefined;
|
|
189
|
+
colspan?: number | undefined;
|
|
190
|
+
merged?: boolean | undefined;
|
|
191
|
+
align?: import("..").TextAlign | undefined;
|
|
192
|
+
valign?: "top" | "middle" | "bottom" | undefined;
|
|
193
|
+
fontFamily?: string | undefined;
|
|
194
|
+
fontSize?: number | undefined;
|
|
195
|
+
fontWeight?: string | undefined;
|
|
196
|
+
color?: string | undefined;
|
|
197
|
+
backgroundColor?: string | undefined;
|
|
198
|
+
borders?: {
|
|
199
|
+
top?: {
|
|
200
|
+
width: number;
|
|
201
|
+
style: "solid" | "dashed" | "dotted" | "double" | "none";
|
|
202
|
+
color: string;
|
|
203
|
+
} | undefined;
|
|
204
|
+
right?: {
|
|
205
|
+
width: number;
|
|
206
|
+
style: "solid" | "dashed" | "dotted" | "double" | "none";
|
|
207
|
+
color: string;
|
|
208
|
+
} | undefined;
|
|
209
|
+
bottom?: {
|
|
210
|
+
width: number;
|
|
211
|
+
style: "solid" | "dashed" | "dotted" | "double" | "none";
|
|
212
|
+
color: string;
|
|
213
|
+
} | undefined;
|
|
214
|
+
left?: {
|
|
215
|
+
width: number;
|
|
216
|
+
style: "solid" | "dashed" | "dotted" | "double" | "none";
|
|
217
|
+
color: string;
|
|
218
|
+
} | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
padding?: number | undefined;
|
|
221
|
+
wordWrap?: boolean | undefined;
|
|
222
|
+
}[];
|
|
223
|
+
}[] | undefined;
|
|
224
|
+
tableColWidths?: number[] | undefined;
|
|
225
|
+
tableDefaultFontSize?: number | undefined;
|
|
226
|
+
tableDefaultColor?: string | undefined;
|
|
227
|
+
tableDefaultPadding?: number | undefined;
|
|
228
|
+
dataSource?: string | undefined;
|
|
229
|
+
fields?: {
|
|
230
|
+
text?: string | undefined;
|
|
231
|
+
dataSource?: string | undefined;
|
|
232
|
+
}[] | undefined;
|
|
233
|
+
formatter?: string | undefined;
|
|
234
|
+
styler?: string | undefined;
|
|
235
|
+
rowStyler?: string | undefined;
|
|
236
|
+
longTextIndent?: number | undefined;
|
|
237
|
+
leftSpaceRemoved?: boolean | undefined;
|
|
238
|
+
lHeight?: number | undefined;
|
|
239
|
+
};
|
|
240
|
+
printElementType: {
|
|
241
|
+
title?: string | undefined;
|
|
242
|
+
type: import("..").ElementType;
|
|
243
|
+
editable?: boolean | undefined;
|
|
244
|
+
formatter?: string | undefined;
|
|
245
|
+
styler?: string | undefined;
|
|
246
|
+
};
|
|
247
|
+
}[] | null>;
|
|
248
|
+
copy: (elements: RuntimeElement[]) => void;
|
|
249
|
+
paste: (offset?: number) => RuntimeElement[] | null;
|
|
250
|
+
hasData: () => boolean;
|
|
251
|
+
};
|