zhytech-ui 1.2.20 → 1.3.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/README.md +7 -1
- package/dist/src/components/dynamicForm/components/layout/gridLayout/index.d.ts +88 -0
- package/dist/src/components/dynamicForm/components/layout/gridLayout/propsEditor.vue.d.ts +2 -0
- package/dist/src/components/dynamicForm/components/layout/gridLayout/renderer.vue.d.ts +80 -0
- package/dist/src/components/dynamicForm/components/layout/index.d.ts +2 -1
- package/dist/src/components/dynamicForm/formDesigner.vue.d.ts +10 -0
- package/dist/src/components/dynamicForm/formRenderer.vue.d.ts +9 -0
- package/dist/src/components/dynamicForm/types/componentAttribute/index.d.ts +2 -1
- package/dist/src/components/dynamicForm/types/componentAttribute/layout/gridLayoutAttribute.d.ts +50 -0
- package/dist/style.css +1 -1
- package/dist/zhytech-ui.es.js +7989 -7072
- package/dist/zhytech-ui.umd.js +15 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,9 +90,15 @@ npm install --legacy-peer-deps
|
|
|
90
90
|
|
|
91
91
|
> #### 版本更新清单:
|
|
92
92
|
|
|
93
|
+
**V 1.3.0**
|
|
94
|
+
```html
|
|
95
|
+
1.添加支持预览模式,在预览模式下,组件显示为只读状态,可输入组件只显示值,不显示输入框
|
|
96
|
+
2.新增网格布局组件(gridLayout),支持拖动调整网格高度和宽度,支持添加行/列,支持网格合并和拆分,支持预览模式高度自适应内容,支持设置背景色
|
|
97
|
+
```
|
|
98
|
+
|
|
93
99
|
**V 1.2.20**
|
|
94
100
|
```html
|
|
95
|
-
1
|
|
101
|
+
1.删除动态接口请求超时时间配置,永不超时
|
|
96
102
|
2.调整动态接口设置画面,新增baseUrlFromProps参数,用于从props中获取baseUrl
|
|
97
103
|
```
|
|
98
104
|
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { default as baseComponent } from '../../../types/baseComponent';
|
|
2
|
+
declare class component extends baseComponent {
|
|
3
|
+
constructor();
|
|
4
|
+
}
|
|
5
|
+
declare const _default: {
|
|
6
|
+
component: typeof component;
|
|
7
|
+
renderer: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
8
|
+
isDesigner: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
componentID: {
|
|
13
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
component: {
|
|
17
|
+
type: PropType<Record<string, any>>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
showDescription: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
currentShowIDArray: {
|
|
25
|
+
type: {
|
|
26
|
+
(arrayLength: number): String[][];
|
|
27
|
+
(...items: String[][]): String[][];
|
|
28
|
+
new (arrayLength: number): String[][];
|
|
29
|
+
new (...items: String[][]): String[][];
|
|
30
|
+
isArray(arg: any): arg is any[];
|
|
31
|
+
readonly prototype: any[];
|
|
32
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
33
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
34
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
35
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
36
|
+
of<T>(...items: T[]): T[];
|
|
37
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
38
|
+
};
|
|
39
|
+
default: never[];
|
|
40
|
+
};
|
|
41
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
+
change: (...args: any[]) => void;
|
|
43
|
+
deleteComponent: (...args: any[]) => void;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
45
|
+
isDesigner: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
componentID: {
|
|
50
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
component: {
|
|
54
|
+
type: PropType<Record<string, any>>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
showDescription: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
currentShowIDArray: {
|
|
62
|
+
type: {
|
|
63
|
+
(arrayLength: number): String[][];
|
|
64
|
+
(...items: String[][]): String[][];
|
|
65
|
+
new (arrayLength: number): String[][];
|
|
66
|
+
new (...items: String[][]): String[][];
|
|
67
|
+
isArray(arg: any): arg is any[];
|
|
68
|
+
readonly prototype: any[];
|
|
69
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
70
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
71
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
72
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
73
|
+
of<T>(...items: T[]): T[];
|
|
74
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
75
|
+
};
|
|
76
|
+
default: never[];
|
|
77
|
+
};
|
|
78
|
+
}>> & Readonly<{
|
|
79
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
onDeleteComponent?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
showDescription: boolean;
|
|
83
|
+
currentShowIDArray: String[][];
|
|
84
|
+
isDesigner: boolean;
|
|
85
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
86
|
+
propEditor: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
87
|
+
};
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
isDesigner: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
componentID: {
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
component: {
|
|
11
|
+
type: PropType<Record<string, any>>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
showDescription: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
currentShowIDArray: {
|
|
19
|
+
type: {
|
|
20
|
+
(arrayLength: number): String[][];
|
|
21
|
+
(...items: String[][]): String[][];
|
|
22
|
+
new (arrayLength: number): String[][];
|
|
23
|
+
new (...items: String[][]): String[][];
|
|
24
|
+
isArray(arg: any): arg is any[];
|
|
25
|
+
readonly prototype: any[];
|
|
26
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
27
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
28
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
29
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
30
|
+
of<T>(...items: T[]): T[];
|
|
31
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
32
|
+
};
|
|
33
|
+
default: never[];
|
|
34
|
+
};
|
|
35
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
+
change: (...args: any[]) => void;
|
|
37
|
+
deleteComponent: (...args: any[]) => void;
|
|
38
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
39
|
+
isDesigner: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
componentID: {
|
|
44
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
component: {
|
|
48
|
+
type: PropType<Record<string, any>>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
showDescription: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
currentShowIDArray: {
|
|
56
|
+
type: {
|
|
57
|
+
(arrayLength: number): String[][];
|
|
58
|
+
(...items: String[][]): String[][];
|
|
59
|
+
new (arrayLength: number): String[][];
|
|
60
|
+
new (...items: String[][]): String[][];
|
|
61
|
+
isArray(arg: any): arg is any[];
|
|
62
|
+
readonly prototype: any[];
|
|
63
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
64
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
65
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
66
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
67
|
+
of<T>(...items: T[]): T[];
|
|
68
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
69
|
+
};
|
|
70
|
+
default: never[];
|
|
71
|
+
};
|
|
72
|
+
}>> & Readonly<{
|
|
73
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
onDeleteComponent?: ((...args: any[]) => any) | undefined;
|
|
75
|
+
}>, {
|
|
76
|
+
showDescription: boolean;
|
|
77
|
+
currentShowIDArray: String[][];
|
|
78
|
+
isDesigner: boolean;
|
|
79
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
80
|
+
export default _default;
|
|
@@ -345,6 +345,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
|
|
|
345
345
|
type: StringConstructor;
|
|
346
346
|
default: string;
|
|
347
347
|
};
|
|
348
|
+
isPreview: {
|
|
349
|
+
type: BooleanConstructor;
|
|
350
|
+
default: boolean;
|
|
351
|
+
};
|
|
348
352
|
}>> & Readonly<{
|
|
349
353
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
350
354
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
@@ -366,6 +370,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
|
|
|
366
370
|
selectComponents: Record<string, any>[];
|
|
367
371
|
selectMode: boolean;
|
|
368
372
|
disabled: boolean;
|
|
373
|
+
isPreview: boolean;
|
|
369
374
|
uploadOptions: uploadOption;
|
|
370
375
|
httpBaseUrl: string;
|
|
371
376
|
realTimeDisplayAnswerMode: boolean;
|
|
@@ -448,6 +453,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
|
|
|
448
453
|
type: StringConstructor;
|
|
449
454
|
default: string;
|
|
450
455
|
};
|
|
456
|
+
isPreview: {
|
|
457
|
+
type: BooleanConstructor;
|
|
458
|
+
default: boolean;
|
|
459
|
+
};
|
|
451
460
|
}>> & Readonly<{
|
|
452
461
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
453
462
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
@@ -466,6 +475,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
|
|
|
466
475
|
selectComponents: Record<string, any>[];
|
|
467
476
|
selectMode: boolean;
|
|
468
477
|
disabled: boolean;
|
|
478
|
+
isPreview: boolean;
|
|
469
479
|
uploadOptions: uploadOption;
|
|
470
480
|
httpBaseUrl: string;
|
|
471
481
|
realTimeDisplayAnswerMode: boolean;
|
|
@@ -103,6 +103,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
103
103
|
type: StringConstructor;
|
|
104
104
|
default: string;
|
|
105
105
|
};
|
|
106
|
+
isPreview: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
106
110
|
}>, {
|
|
107
111
|
/**
|
|
108
112
|
* @description: 获取表单数据
|
|
@@ -245,6 +249,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
245
249
|
type: StringConstructor;
|
|
246
250
|
default: string;
|
|
247
251
|
};
|
|
252
|
+
isPreview: {
|
|
253
|
+
type: BooleanConstructor;
|
|
254
|
+
default: boolean;
|
|
255
|
+
};
|
|
248
256
|
}>> & Readonly<{
|
|
249
257
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
250
258
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
@@ -253,6 +261,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
253
261
|
selectComponents: Record<string, any>[];
|
|
254
262
|
selectMode: boolean;
|
|
255
263
|
disabled: boolean;
|
|
264
|
+
isPreview: boolean;
|
|
256
265
|
uploadOptions: uploadOption;
|
|
257
266
|
httpBaseUrl: string;
|
|
258
267
|
realTimeDisplayAnswerMode: boolean;
|
|
@@ -12,4 +12,5 @@ import { gradeAttribute } from './application/gradeAttribute';
|
|
|
12
12
|
import { departmentAttribute } from './application/departmentAttribute';
|
|
13
13
|
import { groupLayoutAttribute } from './layout/groupLayoutAttribute';
|
|
14
14
|
import { tabsLayoutAttribute } from './layout/tabsLayoutAttribute';
|
|
15
|
-
|
|
15
|
+
import { gridLayoutAttribute } from './layout/gridLayoutAttribute';
|
|
16
|
+
export type { baseAttribute, editAttribute, checkboxAttribute, inputAttribute, radioAttribute, datetimeAttribute, inputNumberAttribute, uploadAttribute, employeeAttribute, postAttribute, gradeAttribute, departmentAttribute, groupLayoutAttribute, tabsLayoutAttribute, gridLayoutAttribute };
|
package/dist/src/components/dynamicForm/types/componentAttribute/layout/gridLayoutAttribute.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 网格布局(gridLayout)组件属性
|
|
3
|
+
*/
|
|
4
|
+
export interface gridLayoutAttribute {
|
|
5
|
+
/**
|
|
6
|
+
* 行数
|
|
7
|
+
*/
|
|
8
|
+
rows: number;
|
|
9
|
+
/**
|
|
10
|
+
* 列数
|
|
11
|
+
*/
|
|
12
|
+
columns: number;
|
|
13
|
+
/**
|
|
14
|
+
* 是否显示网格线
|
|
15
|
+
*/
|
|
16
|
+
showGridLines: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 网格线颜色
|
|
19
|
+
*/
|
|
20
|
+
gridLineColor: string;
|
|
21
|
+
/**
|
|
22
|
+
* 单元格内边距
|
|
23
|
+
*/
|
|
24
|
+
cellPadding: number;
|
|
25
|
+
/**
|
|
26
|
+
* 行高配置
|
|
27
|
+
*/
|
|
28
|
+
rowHeights: number[];
|
|
29
|
+
/**
|
|
30
|
+
* 列宽配置
|
|
31
|
+
*/
|
|
32
|
+
columnWidths: number[];
|
|
33
|
+
/**
|
|
34
|
+
* 背景色
|
|
35
|
+
*/
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
/**
|
|
38
|
+
* 单元格布局方式
|
|
39
|
+
*/
|
|
40
|
+
layoutMode: "horizontal" | "vertical";
|
|
41
|
+
/**
|
|
42
|
+
* 合并单元格配置
|
|
43
|
+
*/
|
|
44
|
+
mergedCells: {
|
|
45
|
+
startRow: number;
|
|
46
|
+
startCol: number;
|
|
47
|
+
rowSpan: number;
|
|
48
|
+
colSpan: number;
|
|
49
|
+
}[];
|
|
50
|
+
}
|