@touchvue/plugin 1.0.0-beta.1 → 1.0.0-beta.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.
Files changed (32) hide show
  1. package/components/echarts-bar/index.d.ts +7 -0
  2. package/components/echarts-bar/src/echarts-bar.d.ts +160 -0
  3. package/components/echarts-bar/src/echarts-bar.vue.d.ts +226 -0
  4. package/components/echarts-bar/src/instance.d.ts +3 -0
  5. package/components/echarts-map/index.d.ts +7 -0
  6. package/components/echarts-map/src/echarts-map.d.ts +162 -0
  7. package/components/echarts-map/src/echarts-map.vue.d.ts +327 -0
  8. package/components/echarts-map/src/instance.d.ts +3 -0
  9. package/components/echarts-pie/index.d.ts +7 -0
  10. package/components/echarts-pie/src/echarts-pie.d.ts +89 -0
  11. package/components/echarts-pie/src/echarts-pie.vue.d.ts +157 -0
  12. package/components/echarts-pie/src/instance.d.ts +3 -0
  13. package/components/editor/index.d.ts +8 -0
  14. package/components/editor/src/editor.d.ts +99 -0
  15. package/components/editor/src/editor.vue.d.ts +163 -0
  16. package/components/editor/src/instance.d.ts +3 -0
  17. package/components/editor/src/plugins.d.ts +2 -0
  18. package/components/editor/src/toolbar.d.ts +2 -0
  19. package/components/step-tree/index.d.ts +8 -0
  20. package/components/step-tree/src/instance.d.ts +3 -0
  21. package/components/step-tree/src/step-tree-item.vue.d.ts +56 -0
  22. package/components/step-tree/src/step-tree.d.ts +78 -0
  23. package/components/step-tree/src/step-tree.vue.d.ts +38 -0
  24. package/components/watermark/index.d.ts +8 -0
  25. package/components/watermark/src/instance.d.ts +3 -0
  26. package/components/watermark/src/watermark.d.ts +34 -0
  27. package/components/watermark/src/watermark.vue.d.ts +69 -0
  28. package/index.cjs +10 -0
  29. package/index.d.ts +17 -0
  30. package/index.mjs +29575 -0
  31. package/package.json +7 -2
  32. package/style/style.css +1 -0
@@ -0,0 +1,163 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { EditorDefaultStyle } from 'index';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ desc: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ imgUploadUrl: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ fontFamilies: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ fontSizes: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ required: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ id: {
25
+ type: StringConstructor;
26
+ default: () => string;
27
+ };
28
+ modelValue: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ default: {
33
+ type: PropType<EditorDefaultStyle>;
34
+ default: () => {};
35
+ };
36
+ toolbar: {
37
+ type: PropType<string[]>;
38
+ default: () => any[];
39
+ };
40
+ imgUpload: {
41
+ type: FunctionConstructor;
42
+ default: any;
43
+ };
44
+ mediaUpload: {
45
+ type: FunctionConstructor;
46
+ default: any;
47
+ };
48
+ menubar: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ height: {
53
+ type: (NumberConstructor | StringConstructor)[];
54
+ default: number;
55
+ };
56
+ width: {
57
+ type: (NumberConstructor | StringConstructor)[];
58
+ default: string;
59
+ };
60
+ language: {
61
+ type: PropType<"en" | "zh">;
62
+ default: string;
63
+ validator: (val: string) => boolean;
64
+ };
65
+ maxLength: {
66
+ type: (NumberConstructor | StringConstructor)[];
67
+ default: number;
68
+ };
69
+ }>, {
70
+ setContent: (val: string) => void;
71
+ getContent: () => any;
72
+ imageSuccessCBK: (arr: any[]) => void;
73
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
74
+ change: (value: string) => void;
75
+ "update:modelValue": (value: string) => void;
76
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
77
+ desc: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ imgUploadUrl: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
85
+ fontFamilies: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ fontSizes: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ required: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ id: {
98
+ type: StringConstructor;
99
+ default: () => string;
100
+ };
101
+ modelValue: {
102
+ type: StringConstructor;
103
+ default: string;
104
+ };
105
+ default: {
106
+ type: PropType<EditorDefaultStyle>;
107
+ default: () => {};
108
+ };
109
+ toolbar: {
110
+ type: PropType<string[]>;
111
+ default: () => any[];
112
+ };
113
+ imgUpload: {
114
+ type: FunctionConstructor;
115
+ default: any;
116
+ };
117
+ mediaUpload: {
118
+ type: FunctionConstructor;
119
+ default: any;
120
+ };
121
+ menubar: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ height: {
126
+ type: (NumberConstructor | StringConstructor)[];
127
+ default: number;
128
+ };
129
+ width: {
130
+ type: (NumberConstructor | StringConstructor)[];
131
+ default: string;
132
+ };
133
+ language: {
134
+ type: PropType<"en" | "zh">;
135
+ default: string;
136
+ validator: (val: string) => boolean;
137
+ };
138
+ maxLength: {
139
+ type: (NumberConstructor | StringConstructor)[];
140
+ default: number;
141
+ };
142
+ }>> & Readonly<{
143
+ onChange?: (value: string) => any;
144
+ "onUpdate:modelValue"?: (value: string) => any;
145
+ }>, {
146
+ width: string | number;
147
+ desc: string;
148
+ default: EditorDefaultStyle;
149
+ required: boolean;
150
+ height: string | number;
151
+ id: string;
152
+ modelValue: string;
153
+ maxLength: string | number;
154
+ imgUploadUrl: string;
155
+ fontFamilies: string;
156
+ fontSizes: string;
157
+ toolbar: string[];
158
+ imgUpload: Function;
159
+ mediaUpload: Function;
160
+ menubar: string;
161
+ language: "en" | "zh";
162
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
163
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as Editor } from './editor.vue';
2
+
3
+ export type EditorInstance = InstanceType<typeof Editor>;
@@ -0,0 +1,2 @@
1
+ declare const plugins: string[];
2
+ export default plugins;
@@ -0,0 +1,2 @@
1
+ declare const toolbar: string[];
2
+ export default toolbar;
@@ -0,0 +1,8 @@
1
+ import { default as StepTree } from './src/step-tree.vue';
2
+ import { SFCWithInstall } from '../../../utils/index.ts';
3
+
4
+ export declare const ToStepTree: SFCWithInstall<typeof StepTree>;
5
+ export default ToStepTree;
6
+ export * from './src/instance';
7
+ export * from './src/step-tree';
8
+ export type { StepTreeInstance } from './src/instance';
@@ -0,0 +1,3 @@
1
+ import { default as StepTree } from './step-tree.vue';
2
+
3
+ export type StepTreeInstance = InstanceType<typeof StepTree>;
@@ -0,0 +1,56 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { StepTreeData } from 'index';
3
+ declare function __VLS_template(): {
4
+ default?(_: {
5
+ item: any;
6
+ current: any;
7
+ index: any;
8
+ }): any;
9
+ arrow?(_: {
10
+ item: any;
11
+ }): any;
12
+ arrowTop?(_: {
13
+ item: any;
14
+ }): any;
15
+ arrowBottom?(_: {
16
+ item: any;
17
+ }): any;
18
+ };
19
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
20
+ current: {
21
+ type: NumberConstructor;
22
+ default: number;
23
+ };
24
+ index: {
25
+ type: NumberConstructor;
26
+ default: number;
27
+ };
28
+ data: {
29
+ type: PropType<StepTreeData>;
30
+ default: () => {};
31
+ };
32
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
33
+ current: {
34
+ type: NumberConstructor;
35
+ default: number;
36
+ };
37
+ index: {
38
+ type: NumberConstructor;
39
+ default: number;
40
+ };
41
+ data: {
42
+ type: PropType<StepTreeData>;
43
+ default: () => {};
44
+ };
45
+ }>> & Readonly<{}>, {
46
+ data: StepTreeData;
47
+ index: number;
48
+ current: number;
49
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
50
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
51
+ export default _default;
52
+ type __VLS_WithTemplateSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };
@@ -0,0 +1,78 @@
1
+ import { PropType } from 'vue';
2
+
3
+ /**
4
+ * 步骤树数据项接口
5
+ */
6
+ export interface StepTreeData {
7
+ /** 标签文本 */
8
+ label?: string;
9
+ /** 状态:current-当前步骤, finished-已完成 */
10
+ state?: 'current' | 'finished' | string;
11
+ /** 子节点 */
12
+ children?: StepTreeData[];
13
+ /** 当前步骤索引(内部使用) */
14
+ current?: number;
15
+ /** 层级(内部使用) */
16
+ level?: number;
17
+ /** 相对行索引(内部使用) */
18
+ rowIndex?: number;
19
+ /** 其他自定义属性 */
20
+ [key: string]: any;
21
+ }
22
+ /**
23
+ * 步骤树根数据接口
24
+ */
25
+ export interface StepTreeRootData {
26
+ /** 子节点 */
27
+ children?: StepTreeData[];
28
+ /** 当前步骤索引 */
29
+ current?: number;
30
+ }
31
+ /**
32
+ * 步骤树组件属性
33
+ */
34
+ export interface StepTreeProps {
35
+ /** 步骤树数据 */
36
+ data?: StepTreeRootData;
37
+ }
38
+ /**
39
+ * 步骤树组件 Props 定义
40
+ */
41
+ export declare const stepTreeProps: {
42
+ /** 步骤树数据 */
43
+ data: {
44
+ type: PropType<StepTreeRootData>;
45
+ default: () => {};
46
+ };
47
+ };
48
+ /**
49
+ * 步骤树项组件属性
50
+ */
51
+ export interface StepTreeItemProps {
52
+ /** 当前步骤索引 */
53
+ current?: number;
54
+ /** 节点索引 */
55
+ index?: number;
56
+ /** 节点数据 */
57
+ data?: StepTreeData;
58
+ }
59
+ /**
60
+ * 步骤树项组件 Props 定义
61
+ */
62
+ export declare const stepTreeItemProps: {
63
+ /** 当前步骤索引 */
64
+ current: {
65
+ type: NumberConstructor;
66
+ default: number;
67
+ };
68
+ /** 节点索引 */
69
+ index: {
70
+ type: NumberConstructor;
71
+ default: number;
72
+ };
73
+ /** 节点数据 */
74
+ data: {
75
+ type: PropType<StepTreeData>;
76
+ default: () => {};
77
+ };
78
+ };
@@ -0,0 +1,38 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { StepTreeRootData } from 'index';
3
+ declare function __VLS_template(): {
4
+ default?(_: {
5
+ item: any;
6
+ current: any;
7
+ index: any;
8
+ }): any;
9
+ arrow?(_: {
10
+ item: any;
11
+ }): any;
12
+ arrowTop?(_: {
13
+ item: any;
14
+ }): any;
15
+ arrowBottom?(_: {
16
+ item: any;
17
+ }): any;
18
+ };
19
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
20
+ data: {
21
+ type: PropType<StepTreeRootData>;
22
+ default: () => {};
23
+ };
24
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
25
+ data: {
26
+ type: PropType<StepTreeRootData>;
27
+ default: () => {};
28
+ };
29
+ }>> & Readonly<{}>, {
30
+ data: StepTreeRootData;
31
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
33
+ export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,8 @@
1
+ import { default as Watermark } from './src/watermark.vue';
2
+ import { SFCWithInstall } from '../../../utils/index.ts';
3
+
4
+ export declare const ToWatermark: SFCWithInstall<typeof Watermark>;
5
+ export default ToWatermark;
6
+ export * from './src/instance';
7
+ export * from './src/watermark';
8
+ export type { WatermarkInstance } from './src/instance';
@@ -0,0 +1,3 @@
1
+ import { default as Watermark } from './watermark.vue';
2
+
3
+ export type WatermarkInstance = InstanceType<typeof Watermark>;
@@ -0,0 +1,34 @@
1
+ export interface WatermarkProps {
2
+ space?: string | number;
3
+ col?: string | number;
4
+ row?: string | number;
5
+ rotate?: string | number;
6
+ zIndex?: string | number;
7
+ opacity?: string | number;
8
+ }
9
+ export declare const watermarkProps: {
10
+ space: {
11
+ type: (NumberConstructor | StringConstructor)[];
12
+ default: number;
13
+ };
14
+ col: {
15
+ type: (NumberConstructor | StringConstructor)[];
16
+ default: number;
17
+ };
18
+ row: {
19
+ type: (NumberConstructor | StringConstructor)[];
20
+ default: number;
21
+ };
22
+ rotate: {
23
+ type: (NumberConstructor | StringConstructor)[];
24
+ default: number;
25
+ };
26
+ zIndex: {
27
+ type: (NumberConstructor | StringConstructor)[];
28
+ default: number;
29
+ };
30
+ opacity: {
31
+ type: (NumberConstructor | StringConstructor)[];
32
+ default: number;
33
+ };
34
+ };
@@ -0,0 +1,69 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare function __VLS_template(): {
3
+ default?(_: {}): any;
4
+ };
5
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
6
+ space: {
7
+ type: (NumberConstructor | StringConstructor)[];
8
+ default: number;
9
+ };
10
+ col: {
11
+ type: (NumberConstructor | StringConstructor)[];
12
+ default: number;
13
+ };
14
+ row: {
15
+ type: (NumberConstructor | StringConstructor)[];
16
+ default: number;
17
+ };
18
+ rotate: {
19
+ type: (NumberConstructor | StringConstructor)[];
20
+ default: number;
21
+ };
22
+ zIndex: {
23
+ type: (NumberConstructor | StringConstructor)[];
24
+ default: number;
25
+ };
26
+ opacity: {
27
+ type: (NumberConstructor | StringConstructor)[];
28
+ default: number;
29
+ };
30
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
31
+ space: {
32
+ type: (NumberConstructor | StringConstructor)[];
33
+ default: number;
34
+ };
35
+ col: {
36
+ type: (NumberConstructor | StringConstructor)[];
37
+ default: number;
38
+ };
39
+ row: {
40
+ type: (NumberConstructor | StringConstructor)[];
41
+ default: number;
42
+ };
43
+ rotate: {
44
+ type: (NumberConstructor | StringConstructor)[];
45
+ default: number;
46
+ };
47
+ zIndex: {
48
+ type: (NumberConstructor | StringConstructor)[];
49
+ default: number;
50
+ };
51
+ opacity: {
52
+ type: (NumberConstructor | StringConstructor)[];
53
+ default: number;
54
+ };
55
+ }>> & Readonly<{}>, {
56
+ col: string | number;
57
+ zIndex: string | number;
58
+ space: string | number;
59
+ row: string | number;
60
+ opacity: string | number;
61
+ rotate: string | number;
62
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
63
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
64
+ export default _default;
65
+ type __VLS_WithTemplateSlots<T, S> = T & {
66
+ new (): {
67
+ $slots: S;
68
+ };
69
+ };