@zyui/components 0.0.32 → 0.0.34

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.
@@ -21,6 +21,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
21
21
  type: StringConstructor;
22
22
  default: string;
23
23
  };
24
+ size: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ label: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
24
32
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
33
  modelValue: import('vue').PropType<any[]>;
26
34
  /**
@@ -44,7 +52,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
44
52
  type: StringConstructor;
45
53
  default: string;
46
54
  };
55
+ size: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ label: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
47
63
  }>> & Readonly<{}>, {
64
+ size: string;
65
+ label: string;
48
66
  id: string;
49
67
  mode: string;
50
68
  editorId: string;
@@ -0,0 +1,26 @@
1
+ export declare const pageSizeMap: {
2
+ A3: {
3
+ width: number;
4
+ height: number;
5
+ };
6
+ A4: {
7
+ width: number;
8
+ height: number;
9
+ };
10
+ A5: {
11
+ width: number;
12
+ height: number;
13
+ };
14
+ B3: {
15
+ width: number;
16
+ height: number;
17
+ };
18
+ B4: {
19
+ width: number;
20
+ height: number;
21
+ };
22
+ B5: {
23
+ width: number;
24
+ height: number;
25
+ };
26
+ };
@@ -0,0 +1,23 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ pagesize: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ pagesize: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }>> & Readonly<{}>, {
15
+ pagesize: string;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- import { NodeItem, WrappedNode } from './type';
2
+ import { NodeItem, NodesGroups, WrappedNode } from './type';
3
3
 
4
4
  export type NodesUIContext = {
5
5
  /**shadow-host */
@@ -27,7 +27,9 @@ export type NodesUIContext = {
27
27
  /**当前渲染节点 */
28
28
  currentRenderNodes: Ref<NodeItem[]>;
29
29
  renderNodes: Ref<WrappedNode[]>;
30
+ /** html是否已经渲染 */
30
31
  uiReady: Ref<boolean>;
32
+ nodesGroups?: NodesGroups[];
31
33
  };
32
34
  export declare const nodesUIKey: unique symbol;
33
35
  export declare const useNodesUIContext: () => NodesUIContext;
@@ -1,4 +1,4 @@
1
- import { NodeItem, WrappedNode } from './type';
1
+ import { NodeItem, NodesGroups, WrappedNode } from './type';
2
2
 
3
3
  /**
4
4
  * 获取元素的nodePath路径
@@ -34,12 +34,7 @@ export declare const getTextNodeIndex: (node: Node) => number;
34
34
  export declare const getNodeInfoByElement: (element: HTMLElement) => NodeItem | null;
35
35
  export declare const onlyHasNode: (element: HTMLElement) => boolean;
36
36
  export declare const getNodeByElement: (element: HTMLElement) => NodeItem[];
37
- export declare const nodesGroups2Nodes: (nodesGroups: {
38
- id: string;
39
- color: string;
40
- activated?: Boolean;
41
- nodes: NodeItem[];
42
- }[]) => (NodeItem & {
37
+ export declare const nodesGroups2Nodes: (nodesGroups: NodesGroups[]) => (NodeItem & {
43
38
  color: string;
44
39
  dataGroupKey: string;
45
40
  })[];
@@ -91,10 +91,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
91
91
  id: string;
92
92
  nodes: unknown[];
93
93
  formData: Record<string, any>;
94
+ nodesGroups: unknown[];
94
95
  renderType: RenderType;
95
96
  inputTypes: unknown[];
96
97
  pagesize: string;
97
- nodesGroups: unknown[];
98
98
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
99
99
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
100
100
  export default _default;
@@ -13,6 +13,12 @@ export type FormItemOptions = {
13
13
  [key: string]: any;
14
14
  };
15
15
  export type InputType = string;
16
+ export type NodesGroups = {
17
+ id: string;
18
+ color: string;
19
+ activated?: Boolean;
20
+ nodes: NodeItem[];
21
+ };
16
22
  export type NodeItem = {
17
23
  nodeType?: string;
18
24
  id?: string;