@a2simcode/ui 0.0.73 → 0.0.75
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.
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { LayerParamType } from '../../dynamic-layer/src/interface';
|
|
2
2
|
import { ButtonProps } from '../../button/src/button.vue';
|
|
3
|
+
export interface ButtonClickScope {
|
|
4
|
+
data?: Record<string, any>;
|
|
5
|
+
openLayer: (options: LayerParamType) => void;
|
|
6
|
+
}
|
|
3
7
|
export interface ButtonCompActionType {
|
|
4
8
|
/**
|
|
5
9
|
* @zh 按钮配置
|
|
@@ -8,10 +12,7 @@ export interface ButtonCompActionType {
|
|
|
8
12
|
/**
|
|
9
13
|
* @zh 按钮点击方法
|
|
10
14
|
*/
|
|
11
|
-
click?: (scope:
|
|
12
|
-
data?: Record<string, any>;
|
|
13
|
-
openLayer: (options: LayerParamType) => void;
|
|
14
|
-
}) => void;
|
|
15
|
+
click?: (scope: ButtonClickScope) => void;
|
|
15
16
|
}
|
|
16
17
|
export interface ButtonCompType extends ButtonCompActionType {
|
|
17
18
|
/**
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { BaseSchemaConfig, BaseCompConfig } from '../../comp/src/interface';
|
|
2
|
-
export interface
|
|
3
|
-
/**
|
|
4
|
-
* @zh id
|
|
5
|
-
*/
|
|
6
|
-
id?: string;
|
|
7
|
-
/**
|
|
8
|
-
* @zh 组件类型
|
|
9
|
-
*/
|
|
10
|
-
type?: string;
|
|
2
|
+
export interface FormSchemaCompConfig extends BaseSchemaConfig {
|
|
11
3
|
/**
|
|
12
4
|
* @zh 配置信息
|
|
13
5
|
*/
|
|
@@ -24,59 +16,21 @@ export interface FormSchemaConfig extends BaseSchemaConfig {
|
|
|
24
16
|
* @zh 父级表格ID
|
|
25
17
|
*/
|
|
26
18
|
parentTableId?: string;
|
|
27
|
-
/**
|
|
28
|
-
* @zh 数据类型
|
|
29
|
-
*/
|
|
30
|
-
dataType?: string;
|
|
31
|
-
/**
|
|
32
|
-
* @zh 数据编码
|
|
33
|
-
*/
|
|
34
|
-
dataCode?: string;
|
|
35
|
-
/**
|
|
36
|
-
* @zh 数据
|
|
37
|
-
*/
|
|
38
|
-
options?: Record<string, any>;
|
|
39
|
-
/**
|
|
40
|
-
* @zh 过滤数据id
|
|
41
|
-
*/
|
|
42
|
-
dataFilterIds?: string[];
|
|
43
|
-
/**
|
|
44
|
-
* @zh 值键值
|
|
45
|
-
*/
|
|
46
|
-
valueKey?: string;
|
|
47
|
-
/**
|
|
48
|
-
* @zh 显示键值
|
|
49
|
-
*/
|
|
50
|
-
labelKey?: string;
|
|
51
|
-
/**
|
|
52
|
-
* @zh id键值
|
|
53
|
-
*/
|
|
54
|
-
idKey?: string;
|
|
55
|
-
/**
|
|
56
|
-
* @zh 父级键值
|
|
57
|
-
*/
|
|
58
|
-
pidKey?: string;
|
|
59
|
-
/**
|
|
60
|
-
* @zh 上级参数别名
|
|
61
|
-
*/
|
|
62
|
-
upKeys?: string;
|
|
63
|
-
/**
|
|
64
|
-
* @zh 数据源参数
|
|
65
|
-
*/
|
|
66
|
-
params?: Record<string, any>;
|
|
67
|
-
/**
|
|
68
|
-
* @zh 默认数据
|
|
69
|
-
*/
|
|
70
|
-
defaultValue?: any;
|
|
71
|
-
/**
|
|
72
|
-
* @zh 赋值字段名,实现不同组件使用同一个字段的值
|
|
73
|
-
*/
|
|
74
|
-
inputValueKey?: string;
|
|
75
19
|
/**
|
|
76
20
|
* @zh 校验规则
|
|
77
21
|
*/
|
|
78
22
|
rule?: RuleType[];
|
|
79
23
|
} & BaseCompConfig;
|
|
24
|
+
}
|
|
25
|
+
export interface FormSchemaConfig extends FormSchemaCompConfig {
|
|
26
|
+
/**
|
|
27
|
+
* @zh id
|
|
28
|
+
*/
|
|
29
|
+
id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @zh 组件类型
|
|
32
|
+
*/
|
|
33
|
+
type?: string;
|
|
80
34
|
/**
|
|
81
35
|
* @zh 子集
|
|
82
36
|
*/
|
|
@@ -88,10 +88,10 @@ export type { WorkflowViewerProps } from './workflow-viewer/src/workflow-viewer.
|
|
|
88
88
|
export type { WorkflowProps } from './workflow-viewer/src/workflow.vue';
|
|
89
89
|
export type { PanelProps } from './panel/src/panel.vue';
|
|
90
90
|
export type { TreeSelectProps } from './tree-select/src/tree-select.vue';
|
|
91
|
-
export type { ButtonCompActionType, ButtonCompType } from './buttons/src/interface';
|
|
91
|
+
export type { ButtonCompActionType, ButtonCompType, ButtonClickScope, } from './buttons/src/interface';
|
|
92
92
|
export type { LayerParamType } from './dynamic-layer/src/interface';
|
|
93
93
|
export type { SchemaConfig } from './comp/src/interface';
|
|
94
|
-
export type { FormSchemaConfig, RuleType } from './form/src/interface';
|
|
94
|
+
export type { FormSchemaCompConfig, FormSchemaConfig, RuleType } from './form/src/interface';
|
|
95
95
|
export type { PageSchemaConfig } from './page/src/interface';
|
|
96
96
|
export type { ColumnSchemaConfig } from './table/src/interface';
|
|
97
97
|
export type { TableColumnCompConfig } from './table/src/interface';
|
package/dist/simcode-ui.es.js
CHANGED
|
@@ -4649,7 +4649,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
4649
4649
|
const { Group: W, Text: J } = Ae.CustomLayout, X = i.actionsMaxCount, oe = L.length > X, Q = oe ? L.slice(0, X - 1) : L, se = oe ? L.slice(X - 1) : [];
|
|
4650
4650
|
let Pe = 0;
|
|
4651
4651
|
if (Q.forEach((Re, me) => {
|
|
4652
|
-
const We = on(Re.config?.label || Re.label) || 0;
|
|
4652
|
+
const We = on(Re.config?.label || Re.label || "") || 0;
|
|
4653
4653
|
Pe += We + (me === 0 ? 24 : 12);
|
|
4654
4654
|
}), oe) {
|
|
4655
4655
|
const Re = (on("更多") || 0) + 12;
|