@a2simcode/ui 0.0.3 → 0.0.4

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 (90) hide show
  1. package/LICENSE +53 -53
  2. package/README.md +130 -129
  3. package/dist/components/autocomplete/index.d.ts +118 -0
  4. package/dist/components/autocomplete/src/autocomplete.vue.d.ts +109 -0
  5. package/dist/components/barcode/index.d.ts +114 -0
  6. package/dist/components/barcode/src/barcode.vue.d.ts +101 -0
  7. package/dist/components/button/index.d.ts +278 -0
  8. package/dist/components/button/src/button.vue.d.ts +268 -0
  9. package/dist/components/buttons/index.d.ts +81 -0
  10. package/dist/components/buttons/src/index.vue.d.ts +76 -0
  11. package/dist/components/buttons/src/interface.d.ts +128 -0
  12. package/dist/components/buttons/src/useButtons.d.ts +4 -0
  13. package/dist/components/cascader-select/index.d.ts +142 -0
  14. package/dist/components/cascader-select/src/cascader-select.vue.d.ts +128 -0
  15. package/dist/components/checkbox/index.d.ts +73 -0
  16. package/dist/components/checkbox/src/checkbox.vue.d.ts +55 -0
  17. package/dist/components/code-mirror/index.d.ts +74 -0
  18. package/dist/components/code-mirror/src/code-mirror.vue.d.ts +45 -0
  19. package/dist/components/comp/index.d.ts +157 -0
  20. package/dist/components/comp/src/comp.vue.d.ts +164 -0
  21. package/dist/components/dialog/index.d.ts +416 -0
  22. package/dist/components/dialog/src/index.vue.d.ts +404 -0
  23. package/dist/components/dialog-full/index.d.ts +311 -0
  24. package/dist/components/dialog-full/src/index.vue.d.ts +287 -0
  25. package/dist/components/drawer/index.d.ts +335 -0
  26. package/dist/components/drawer/src/drawer.vue.d.ts +337 -0
  27. package/dist/components/dynamic-layer/index.d.ts +25 -0
  28. package/dist/components/dynamic-layer/src/dynamic-layer.vue.d.ts +8 -0
  29. package/dist/components/dynamic-layer/src/interface.d.ts +66 -0
  30. package/dist/components/echarts/index.d.ts +177 -0
  31. package/dist/components/echarts/src/echarts.vue.d.ts +118 -0
  32. package/dist/components/form/index.d.ts +194 -0
  33. package/dist/components/form/src/form.vue.d.ts +106 -0
  34. package/dist/components/form/src/interface.d.ts +138 -0
  35. package/dist/components/form/src/useForm/index.d.ts +9 -0
  36. package/dist/components/form/src/useForm/interface.d.ts +170 -0
  37. package/dist/components/form/src/useForm/validateUtil.d.ts +5 -0
  38. package/dist/components/form-item/index.d.ts +112 -0
  39. package/dist/components/form-item/src/form-item.vue.d.ts +97 -0
  40. package/dist/components/icon/index.d.ts +31 -0
  41. package/dist/components/icon/src/icon.vue.d.ts +33 -0
  42. package/dist/components/index.d.ts +35 -0
  43. package/dist/components/input/index.d.ts +111 -0
  44. package/dist/components/input/src/input.vue.d.ts +110 -0
  45. package/dist/components/input-tag/index.d.ts +75 -0
  46. package/dist/components/input-tag/src/input-tag.vue.d.ts +40 -0
  47. package/dist/components/layer/index.d.ts +284 -0
  48. package/dist/components/layer/src/layer.vue.d.ts +263 -0
  49. package/dist/components/layout/__tests__/layout.test.d.ts +1 -0
  50. package/dist/components/layout/index.d.ts +173 -0
  51. package/dist/components/layout/src/layout.vue.d.ts +187 -0
  52. package/dist/components/number/index.d.ts +85 -0
  53. package/dist/components/number/src/number.vue.d.ts +78 -0
  54. package/dist/components/page/index.d.ts +67 -0
  55. package/dist/components/page/src/interface.d.ts +22 -0
  56. package/dist/components/page/src/page.vue.d.ts +52 -0
  57. package/dist/components/radio/index.d.ts +152 -0
  58. package/dist/components/radio/src/radio.vue.d.ts +123 -0
  59. package/dist/components/rate/index.d.ts +71 -0
  60. package/dist/components/rate/src/rate.vue.d.ts +42 -0
  61. package/dist/components/select/index.d.ts +88 -0
  62. package/dist/components/select/src/select.vue.d.ts +75 -0
  63. package/dist/components/slider/index.d.ts +89 -0
  64. package/dist/components/slider/src/slider.vue.d.ts +76 -0
  65. package/dist/components/table/index.d.ts +160 -0
  66. package/dist/components/table/src/table.vue.d.ts +143 -0
  67. package/dist/components/upload/index.d.ts +405 -0
  68. package/dist/components/upload/src/list.vue.d.ts +103 -0
  69. package/dist/components/upload/src/upload.vue.d.ts +367 -0
  70. package/dist/components/upload/src/utils.d.ts +2 -0
  71. package/dist/{utils → components/utils}/index.d.ts +1 -1
  72. package/dist/core/index.d.ts +1 -0
  73. package/dist/core/utils/cipher.d.ts +21 -0
  74. package/dist/core/utils/common.d.ts +41 -0
  75. package/dist/core/utils/comp.d.ts +9 -0
  76. package/dist/core/utils/date.d.ts +3 -0
  77. package/dist/core/utils/dom.d.ts +4 -0
  78. package/dist/core/utils/index.d.ts +6 -0
  79. package/dist/core/utils/is.d.ts +2 -0
  80. package/dist/index.d.ts +6 -8
  81. package/dist/simcode-ui.es.js +5027 -87
  82. package/dist/simcode-ui.umd.js +1 -1
  83. package/dist/stats.html +4949 -0
  84. package/dist/ui.css +1 -0
  85. package/package.json +49 -35
  86. package/dist/button/index.d.ts +0 -192
  87. package/dist/button/src/button.vue.d.ts +0 -76
  88. package/dist/input/index.d.ts +0 -167
  89. package/dist/input/src/input.vue.d.ts +0 -64
  90. package/dist/style.css +0 -1
@@ -0,0 +1,128 @@
1
+ export interface CascaderSelectOption {
2
+ label: string;
3
+ value: string;
4
+ disabled?: boolean;
5
+ leaf?: boolean;
6
+ children?: CascaderSelectOption[];
7
+ }
8
+ export interface CascaderSelectProps {
9
+ /** 绑定值 */
10
+ modelValue?: string;
11
+ /** 级联数据源 */
12
+ options?: CascaderSelectOption[];
13
+ /** 输入框占位文本 */
14
+ placeholder?: string;
15
+ /** 是否禁用 */
16
+ disabled?: boolean;
17
+ /** 是否只读 */
18
+ readonly?: boolean;
19
+ /** 输入框尺寸 */
20
+ size?: 'large' | 'default' | 'small';
21
+ /** 分隔符 */
22
+ separator?: string;
23
+ /** 输入框中是否显示选中值的完整路径 */
24
+ showAllLevels?: boolean;
25
+ /** 在选择任意一级菜单时就发出变化事件 */
26
+ checkStrictly?: boolean;
27
+ /** 次级菜单的展开方式 */
28
+ expandTrigger?: 'click' | 'hover';
29
+ /** 是否支持清除 */
30
+ clearable?: boolean;
31
+ /** 多选模式下是否折叠Tag */
32
+ collapseTags?: boolean;
33
+ /** 需要显示的 Tag 的最大数量 */
34
+ maxCollapseTags?: number;
35
+ /** 当鼠标悬停于折叠标签的文本时,是否显示所有选中的标签。 要使用此属性,collapse-tags属性必须设定为 true */
36
+ collapseTagsTooltip?: boolean;
37
+ /** 是否可搜索 */
38
+ filterable?: boolean | object;
39
+ /** 是否多选 */
40
+ multiple?: boolean;
41
+ /** 是否为户籍的选守父子点不互相关联 */
42
+ emitPath?: boolean;
43
+ /** 是否启动加载子节点,需与 lazyLoad 方法结合使用 */
44
+ lazy?: boolean;
45
+ /** 加载动态数据的方法,仅在 lazy 为 true 时有效 reject 参数在 */
46
+ lazyLoad?: (node: any, resolve: any) => void;
47
+ /** hover 时最开始菜单的灵敏度阈值 */
48
+ hoverThreshold?: number;
49
+ /** 点击节点的是否选中或取消选择该节点 */
50
+ checkOnClickNode?: boolean;
51
+ /** 点击叶子节点(最后一级子节点)时,是否选中或取消选择中该节点 */
52
+ checkOnClickLeaf?: boolean;
53
+ /** 是否显示年是性或复选性的前缀(图标) */
54
+ showPrefix?: boolean;
55
+ }
56
+ declare function __VLS_template(): {
57
+ attrs: Partial<{}>;
58
+ slots: {
59
+ default?(_: {
60
+ node: any;
61
+ data: any;
62
+ }): any;
63
+ prefix?(_: {}): any;
64
+ 'suggestion-item'?(_: {
65
+ item: any;
66
+ }): any;
67
+ tag?(_: {
68
+ option: any;
69
+ handleClose: any;
70
+ disabled: any;
71
+ }): any;
72
+ header?(_: {}): any;
73
+ footer?(_: {}): any;
74
+ empty?(_: {}): any;
75
+ };
76
+ refs: {
77
+ cascaderRef: unknown;
78
+ };
79
+ rootEl: any;
80
+ };
81
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
82
+ declare const __VLS_component: import('vue').DefineComponent<CascaderSelectProps, {
83
+ getCheckedNodes: (leafOnly?: boolean) => any;
84
+ clearCheckedNodes: () => void;
85
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
86
+ "update:modelValue": (value: string | undefined) => any;
87
+ change: (value: {
88
+ value: string;
89
+ data: any;
90
+ }) => any;
91
+ }, string, import('vue').PublicProps, Readonly<CascaderSelectProps> & Readonly<{
92
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
93
+ onChange?: ((value: {
94
+ value: string;
95
+ data: any;
96
+ }) => any) | undefined;
97
+ }>, {
98
+ size: "large" | "default" | "small";
99
+ disabled: boolean;
100
+ readonly: boolean;
101
+ placeholder: string;
102
+ clearable: boolean;
103
+ options: CascaderSelectOption[];
104
+ multiple: boolean;
105
+ collapseTags: boolean;
106
+ filterable: boolean | object;
107
+ separator: string;
108
+ showAllLevels: boolean;
109
+ checkStrictly: boolean;
110
+ expandTrigger: "click" | "hover";
111
+ maxCollapseTags: number;
112
+ emitPath: boolean;
113
+ lazy: boolean;
114
+ lazyLoad: (node: any, resolve: any) => void;
115
+ hoverThreshold: number;
116
+ checkOnClickNode: boolean;
117
+ checkOnClickLeaf: boolean;
118
+ showPrefix: boolean;
119
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
120
+ cascaderRef: unknown;
121
+ }, any>;
122
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
123
+ export default _default;
124
+ type __VLS_WithTemplateSlots<T, S> = T & {
125
+ new (): {
126
+ $slots: S;
127
+ };
128
+ };
@@ -0,0 +1,73 @@
1
+ declare const JCheckbox: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./src/checkbox.vue').CheckboxProps> & Readonly<{
3
+ "onUpdate:modelValue"?: ((value: string[] | undefined) => any) | undefined;
4
+ onChange?: ((value: string[]) => any) | undefined;
5
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ "update:modelValue": (value: string[] | undefined) => any;
7
+ change: (value: string[]) => any;
8
+ }, import('vue').PublicProps, {
9
+ size: "large" | "default" | "small";
10
+ fill: string;
11
+ type: "checkbox" | "button";
12
+ label: string;
13
+ disabled: boolean;
14
+ readonly: boolean;
15
+ modelValue: string[];
16
+ max: number;
17
+ min: number;
18
+ validateEvent: boolean;
19
+ options: import('./src/checkbox.vue').CheckboxOption[];
20
+ tag: string;
21
+ textColor: string;
22
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
23
+ P: {};
24
+ B: {};
25
+ D: {};
26
+ C: {};
27
+ M: {};
28
+ Defaults: {};
29
+ }, Readonly<import('./src/checkbox.vue').CheckboxProps> & Readonly<{
30
+ "onUpdate:modelValue"?: ((value: string[] | undefined) => any) | undefined;
31
+ onChange?: ((value: string[]) => any) | undefined;
32
+ }>, {}, {}, {}, {}, {
33
+ size: "large" | "default" | "small";
34
+ fill: string;
35
+ type: "checkbox" | "button";
36
+ label: string;
37
+ disabled: boolean;
38
+ readonly: boolean;
39
+ modelValue: string[];
40
+ max: number;
41
+ min: number;
42
+ validateEvent: boolean;
43
+ options: import('./src/checkbox.vue').CheckboxOption[];
44
+ tag: string;
45
+ textColor: string;
46
+ }>;
47
+ __isFragment?: never;
48
+ __isTeleport?: never;
49
+ __isSuspense?: never;
50
+ } & import('vue').ComponentOptionsBase<Readonly<import('./src/checkbox.vue').CheckboxProps> & Readonly<{
51
+ "onUpdate:modelValue"?: ((value: string[] | undefined) => any) | undefined;
52
+ onChange?: ((value: string[]) => any) | undefined;
53
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
54
+ "update:modelValue": (value: string[] | undefined) => any;
55
+ change: (value: string[]) => any;
56
+ }, string, {
57
+ size: "large" | "default" | "small";
58
+ fill: string;
59
+ type: "checkbox" | "button";
60
+ label: string;
61
+ disabled: boolean;
62
+ readonly: boolean;
63
+ modelValue: string[];
64
+ max: number;
65
+ min: number;
66
+ validateEvent: boolean;
67
+ options: import('./src/checkbox.vue').CheckboxOption[];
68
+ tag: string;
69
+ textColor: string;
70
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
71
+ install: (app: import('vue').App) => void;
72
+ };
73
+ export default JCheckbox;
@@ -0,0 +1,55 @@
1
+ export interface CheckboxOption {
2
+ label: string;
3
+ value: string;
4
+ disabled?: boolean;
5
+ }
6
+ export interface CheckboxProps {
7
+ /** 绑定值 */
8
+ modelValue?: string[];
9
+ /** 选项列表 */
10
+ options?: CheckboxOption[];
11
+ /** 尺寸 */
12
+ size?: 'large' | 'default' | 'small';
13
+ /** 是否禁用 */
14
+ disabled?: boolean;
15
+ /** 是否只读 */
16
+ readonly?: boolean;
17
+ /** 可被勾选的 checkbox 的最小数量 */
18
+ min?: number;
19
+ /** 可被勾选的 checkbox 的最大数量 */
20
+ max?: number;
21
+ /** 当按钮为活跃状态时的字体颜色 */
22
+ textColor?: string;
23
+ /** 当按钮为活跃状态时的边框和背景颜色 */
24
+ fill?: string;
25
+ /** 复选框组元素标签 */
26
+ tag?: string;
27
+ /** 是否触发表单验证 */
28
+ validateEvent?: boolean;
29
+ /** 原生 aria-label 属性 */
30
+ label?: string;
31
+ /** 用于渲染选项的组件类型 */
32
+ type?: 'checkbox' | 'button';
33
+ }
34
+ declare const _default: import('vue').DefineComponent<CheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
+ "update:modelValue": (value: string[] | undefined) => any;
36
+ change: (value: string[]) => any;
37
+ }, string, import('vue').PublicProps, Readonly<CheckboxProps> & Readonly<{
38
+ "onUpdate:modelValue"?: ((value: string[] | undefined) => any) | undefined;
39
+ onChange?: ((value: string[]) => any) | undefined;
40
+ }>, {
41
+ size: "large" | "default" | "small";
42
+ fill: string;
43
+ type: "checkbox" | "button";
44
+ label: string;
45
+ disabled: boolean;
46
+ readonly: boolean;
47
+ modelValue: string[];
48
+ max: number;
49
+ min: number;
50
+ validateEvent: boolean;
51
+ options: CheckboxOption[];
52
+ tag: string;
53
+ textColor: string;
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
55
+ export default _default;
@@ -0,0 +1,74 @@
1
+ declare const JCodeMirror: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./src/code-mirror.vue').CodeMirrorProps> & Readonly<{
3
+ onChange?: ((data: {
4
+ value: string;
5
+ }) => any) | undefined;
6
+ "onUpdate:value"?: ((value: string) => any) | undefined;
7
+ }>, {
8
+ sqlFormatter: () => void;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ change: (data: {
11
+ value: string;
12
+ }) => any;
13
+ "update:value": (value: string) => any;
14
+ }, import('vue').PublicProps, {
15
+ height: number;
16
+ mode: string;
17
+ readonly: boolean;
18
+ value: string;
19
+ isHint: boolean;
20
+ handleHint: (str: string) => any[];
21
+ isScrollToBottom: boolean;
22
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
23
+ codeWraperRef: HTMLDivElement;
24
+ codeRef: HTMLTextAreaElement;
25
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
26
+ P: {};
27
+ B: {};
28
+ D: {};
29
+ C: {};
30
+ M: {};
31
+ Defaults: {};
32
+ }, Readonly<import('./src/code-mirror.vue').CodeMirrorProps> & Readonly<{
33
+ onChange?: ((data: {
34
+ value: string;
35
+ }) => any) | undefined;
36
+ "onUpdate:value"?: ((value: string) => any) | undefined;
37
+ }>, {
38
+ sqlFormatter: () => void;
39
+ }, {}, {}, {}, {
40
+ height: number;
41
+ mode: string;
42
+ readonly: boolean;
43
+ value: string;
44
+ isHint: boolean;
45
+ handleHint: (str: string) => any[];
46
+ isScrollToBottom: boolean;
47
+ }>;
48
+ __isFragment?: never;
49
+ __isTeleport?: never;
50
+ __isSuspense?: never;
51
+ } & import('vue').ComponentOptionsBase<Readonly<import('./src/code-mirror.vue').CodeMirrorProps> & Readonly<{
52
+ onChange?: ((data: {
53
+ value: string;
54
+ }) => any) | undefined;
55
+ "onUpdate:value"?: ((value: string) => any) | undefined;
56
+ }>, {
57
+ sqlFormatter: () => void;
58
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
59
+ change: (data: {
60
+ value: string;
61
+ }) => any;
62
+ "update:value": (value: string) => any;
63
+ }, string, {
64
+ height: number;
65
+ mode: string;
66
+ readonly: boolean;
67
+ value: string;
68
+ isHint: boolean;
69
+ handleHint: (str: string) => any[];
70
+ isScrollToBottom: boolean;
71
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
72
+ install: (app: import('vue').App) => void;
73
+ };
74
+ export default JCodeMirror;
@@ -0,0 +1,45 @@
1
+ export interface CodeMirrorProps {
2
+ /** 值 */
3
+ value?: string;
4
+ /** 语言模式 */
5
+ mode?: string;
6
+ /** 只读 */
7
+ readonly?: boolean;
8
+ /** 高度设置 */
9
+ height?: number;
10
+ /** 是否开启自动补全 */
11
+ isHint?: boolean;
12
+ /** 自动补全方法 */
13
+ handleHint?: (str: string) => any[];
14
+ /** 是否滚动到最底部 */
15
+ isScrollToBottom?: boolean;
16
+ }
17
+ declare const _default: import('vue').DefineComponent<CodeMirrorProps, {
18
+ /**
19
+ * @zh sql格式化
20
+ * @public
21
+ */
22
+ sqlFormatter: () => void;
23
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ change: (data: {
25
+ value: string;
26
+ }) => any;
27
+ "update:value": (value: string) => any;
28
+ }, string, import('vue').PublicProps, Readonly<CodeMirrorProps> & Readonly<{
29
+ onChange?: ((data: {
30
+ value: string;
31
+ }) => any) | undefined;
32
+ "onUpdate:value"?: ((value: string) => any) | undefined;
33
+ }>, {
34
+ height: number;
35
+ mode: string;
36
+ readonly: boolean;
37
+ value: string;
38
+ isHint: boolean;
39
+ handleHint: (str: string) => any[];
40
+ isScrollToBottom: boolean;
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
42
+ codeWraperRef: HTMLDivElement;
43
+ codeRef: HTMLTextAreaElement;
44
+ }, HTMLDivElement>;
45
+ export default _default;
@@ -0,0 +1,157 @@
1
+ declare const JComp: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ modelValue: {
4
+ type: import('vue').PropType<string | number | boolean | any[] | Record<string, any>>;
5
+ default: undefined;
6
+ };
7
+ row: {
8
+ type: import('vue').PropType<Record<string, any>>;
9
+ default: () => void;
10
+ };
11
+ id: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ type: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ getCompType: {
20
+ type: FunctionConstructor;
21
+ default: undefined;
22
+ };
23
+ config: {
24
+ type: import('vue').PropType<Record<string, any>>;
25
+ default: () => void;
26
+ };
27
+ getCompConfig: {
28
+ type: FunctionConstructor;
29
+ default: undefined;
30
+ };
31
+ children: {
32
+ type: import('vue').PropType<import('./src/comp.vue').SchemaRuntimeConfig[]>;
33
+ default: () => never[];
34
+ };
35
+ }>> & Readonly<{
36
+ "onUpdate:modelValue"?: ((value: string | number | boolean | any[] | Record<string, any> | undefined) => any) | undefined;
37
+ onChange?: ((...args: unknown[] & []) => any) | undefined;
38
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
39
+ "update:modelValue": (value: string | number | boolean | any[] | Record<string, any> | undefined) => any;
40
+ change: ((...args: unknown[]) => any) | (() => any);
41
+ }, import('vue').PublicProps, {
42
+ type: string;
43
+ id: string;
44
+ modelValue: string | number | boolean | any[] | Record<string, any>;
45
+ children: import('./src/comp.vue').SchemaRuntimeConfig[];
46
+ row: Record<string, any>;
47
+ getCompType: Function;
48
+ config: Record<string, any>;
49
+ getCompConfig: Function;
50
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
51
+ P: {};
52
+ B: {};
53
+ D: {};
54
+ C: {};
55
+ M: {};
56
+ Defaults: {};
57
+ }, Readonly<import('vue').ExtractPropTypes<{
58
+ modelValue: {
59
+ type: import('vue').PropType<string | number | boolean | any[] | Record<string, any>>;
60
+ default: undefined;
61
+ };
62
+ row: {
63
+ type: import('vue').PropType<Record<string, any>>;
64
+ default: () => void;
65
+ };
66
+ id: {
67
+ type: StringConstructor;
68
+ default: string;
69
+ };
70
+ type: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ getCompType: {
75
+ type: FunctionConstructor;
76
+ default: undefined;
77
+ };
78
+ config: {
79
+ type: import('vue').PropType<Record<string, any>>;
80
+ default: () => void;
81
+ };
82
+ getCompConfig: {
83
+ type: FunctionConstructor;
84
+ default: undefined;
85
+ };
86
+ children: {
87
+ type: import('vue').PropType<import('./src/comp.vue').SchemaRuntimeConfig[]>;
88
+ default: () => never[];
89
+ };
90
+ }>> & Readonly<{
91
+ "onUpdate:modelValue"?: ((value: string | number | boolean | any[] | Record<string, any> | undefined) => any) | undefined;
92
+ onChange?: ((...args: unknown[] & []) => any) | undefined;
93
+ }>, {}, {}, {}, {}, {
94
+ type: string;
95
+ id: string;
96
+ modelValue: string | number | boolean | any[] | Record<string, any>;
97
+ children: import('./src/comp.vue').SchemaRuntimeConfig[];
98
+ row: Record<string, any>;
99
+ getCompType: Function;
100
+ config: Record<string, any>;
101
+ getCompConfig: Function;
102
+ }>;
103
+ __isFragment?: never;
104
+ __isTeleport?: never;
105
+ __isSuspense?: never;
106
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
107
+ modelValue: {
108
+ type: import('vue').PropType<string | number | boolean | any[] | Record<string, any>>;
109
+ default: undefined;
110
+ };
111
+ row: {
112
+ type: import('vue').PropType<Record<string, any>>;
113
+ default: () => void;
114
+ };
115
+ id: {
116
+ type: StringConstructor;
117
+ default: string;
118
+ };
119
+ type: {
120
+ type: StringConstructor;
121
+ default: string;
122
+ };
123
+ getCompType: {
124
+ type: FunctionConstructor;
125
+ default: undefined;
126
+ };
127
+ config: {
128
+ type: import('vue').PropType<Record<string, any>>;
129
+ default: () => void;
130
+ };
131
+ getCompConfig: {
132
+ type: FunctionConstructor;
133
+ default: undefined;
134
+ };
135
+ children: {
136
+ type: import('vue').PropType<import('./src/comp.vue').SchemaRuntimeConfig[]>;
137
+ default: () => never[];
138
+ };
139
+ }>> & Readonly<{
140
+ "onUpdate:modelValue"?: ((value: string | number | boolean | any[] | Record<string, any> | undefined) => any) | undefined;
141
+ onChange?: ((...args: unknown[] & []) => any) | undefined;
142
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
143
+ "update:modelValue": (value: string | number | boolean | any[] | Record<string, any> | undefined) => any;
144
+ change: ((...args: unknown[]) => any) | (() => any);
145
+ }, string, {
146
+ type: string;
147
+ id: string;
148
+ modelValue: string | number | boolean | any[] | Record<string, any>;
149
+ children: import('./src/comp.vue').SchemaRuntimeConfig[];
150
+ row: Record<string, any>;
151
+ getCompType: Function;
152
+ config: Record<string, any>;
153
+ getCompConfig: Function;
154
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
155
+ install: (app: import('vue').App) => void;
156
+ };
157
+ export default JComp;
@@ -0,0 +1,164 @@
1
+ import { PropType } from 'vue';
2
+ export interface SchemaRuntimeConfig {
3
+ /**
4
+ * @zh id
5
+ */
6
+ id: string;
7
+ /**
8
+ * @zh 插槽名称
9
+ */
10
+ slot?: string;
11
+ /**
12
+ * @zh 组件类型
13
+ */
14
+ type: string;
15
+ /**
16
+ * @zh 获取组件类型
17
+ */
18
+ getCompType?: any;
19
+ /**
20
+ * @zh 组件配置
21
+ */
22
+ config?: Record<string, any>;
23
+ /**
24
+ * @zh 获取组件配置
25
+ */
26
+ getCompConfig?: any;
27
+ /**
28
+ * @zh 子集
29
+ */
30
+ children?: SchemaRuntimeConfig[];
31
+ }
32
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
33
+ /**
34
+ * @zh 输入值
35
+ * @vModel
36
+ */
37
+ modelValue: {
38
+ type: PropType<string | number | boolean | any[] | Record<string, any>>;
39
+ default: undefined;
40
+ };
41
+ /**
42
+ * @zh 行数据
43
+ */
44
+ row: {
45
+ type: PropType<Record<string, any>>;
46
+ default: () => void;
47
+ };
48
+ /**
49
+ * @zh 组件 id
50
+ */
51
+ id: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ /**
56
+ * @zh 组件类型
57
+ */
58
+ type: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ /**
63
+ * @zh 获取组件类型
64
+ */
65
+ getCompType: {
66
+ type: FunctionConstructor;
67
+ default: undefined;
68
+ };
69
+ /**
70
+ * @zh 组件配置
71
+ */
72
+ config: {
73
+ type: PropType<Record<string, any>>;
74
+ default: () => void;
75
+ };
76
+ /**
77
+ * @zh 获取组件配置
78
+ */
79
+ getCompConfig: {
80
+ type: FunctionConstructor;
81
+ default: undefined;
82
+ };
83
+ /**
84
+ * @zh 子集
85
+ */
86
+ children: {
87
+ type: PropType<SchemaRuntimeConfig[]>;
88
+ default: () => never[];
89
+ };
90
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
91
+ "update:modelValue": (value: string | number | boolean | any[] | Record<string, any> | undefined) => any;
92
+ change: ((...args: unknown[]) => any) | (() => any);
93
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
94
+ /**
95
+ * @zh 输入值
96
+ * @vModel
97
+ */
98
+ modelValue: {
99
+ type: PropType<string | number | boolean | any[] | Record<string, any>>;
100
+ default: undefined;
101
+ };
102
+ /**
103
+ * @zh 行数据
104
+ */
105
+ row: {
106
+ type: PropType<Record<string, any>>;
107
+ default: () => void;
108
+ };
109
+ /**
110
+ * @zh 组件 id
111
+ */
112
+ id: {
113
+ type: StringConstructor;
114
+ default: string;
115
+ };
116
+ /**
117
+ * @zh 组件类型
118
+ */
119
+ type: {
120
+ type: StringConstructor;
121
+ default: string;
122
+ };
123
+ /**
124
+ * @zh 获取组件类型
125
+ */
126
+ getCompType: {
127
+ type: FunctionConstructor;
128
+ default: undefined;
129
+ };
130
+ /**
131
+ * @zh 组件配置
132
+ */
133
+ config: {
134
+ type: PropType<Record<string, any>>;
135
+ default: () => void;
136
+ };
137
+ /**
138
+ * @zh 获取组件配置
139
+ */
140
+ getCompConfig: {
141
+ type: FunctionConstructor;
142
+ default: undefined;
143
+ };
144
+ /**
145
+ * @zh 子集
146
+ */
147
+ children: {
148
+ type: PropType<SchemaRuntimeConfig[]>;
149
+ default: () => never[];
150
+ };
151
+ }>> & Readonly<{
152
+ "onUpdate:modelValue"?: ((value: string | number | boolean | any[] | Record<string, any> | undefined) => any) | undefined;
153
+ onChange?: ((...args: unknown[] & []) => any) | undefined;
154
+ }>, {
155
+ type: string;
156
+ id: string;
157
+ modelValue: string | number | boolean | any[] | Record<string, any>;
158
+ children: SchemaRuntimeConfig[];
159
+ row: Record<string, any>;
160
+ getCompType: Function;
161
+ config: Record<string, any>;
162
+ getCompConfig: Function;
163
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
164
+ export default _default;