@a2simcode/ui 0.0.39 → 0.0.41
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/dist/components/comp/src/interface.d.ts +20 -4
- package/dist/components/form/src/interface.d.ts +5 -1
- package/dist/components/page/src/interface.d.ts +4 -0
- package/dist/components/table/src/interface.d.ts +4 -0
- package/dist/simcode-ui.es.js +2 -2
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export interface BaseSchemaConfig {
|
|
2
|
-
/**
|
|
3
|
-
* @zh id
|
|
4
|
-
*/
|
|
5
|
-
id: string;
|
|
6
2
|
/**
|
|
7
3
|
* @zh 插槽名称
|
|
8
4
|
*/
|
|
@@ -35,6 +31,10 @@ export interface BaseCompConfig {
|
|
|
35
31
|
[propName: string]: any;
|
|
36
32
|
}
|
|
37
33
|
export interface TabsSchemaConfig extends BaseSchemaConfig {
|
|
34
|
+
/**
|
|
35
|
+
* @zh id
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
38
|
/**
|
|
39
39
|
* @zh 组件类型
|
|
40
40
|
*/
|
|
@@ -45,6 +45,10 @@ export interface TabsSchemaConfig extends BaseSchemaConfig {
|
|
|
45
45
|
children?: TabPaneSchemaConfig[];
|
|
46
46
|
}
|
|
47
47
|
export interface TabPaneSchemaConfig extends BaseSchemaConfig {
|
|
48
|
+
/**
|
|
49
|
+
* @zh id
|
|
50
|
+
*/
|
|
51
|
+
id: string;
|
|
48
52
|
/**
|
|
49
53
|
* @zh 组件类型
|
|
50
54
|
*/
|
|
@@ -62,6 +66,10 @@ export interface TabPaneSchemaConfig extends BaseSchemaConfig {
|
|
|
62
66
|
children?: SchemaConfig[];
|
|
63
67
|
}
|
|
64
68
|
export interface GeneralSchemaConfig extends BaseSchemaConfig {
|
|
69
|
+
/**
|
|
70
|
+
* @zh id
|
|
71
|
+
*/
|
|
72
|
+
id: string;
|
|
65
73
|
/**
|
|
66
74
|
* @zh 组件类型
|
|
67
75
|
*/
|
|
@@ -72,6 +80,10 @@ export interface GeneralSchemaConfig extends BaseSchemaConfig {
|
|
|
72
80
|
children?: SchemaConfig[];
|
|
73
81
|
}
|
|
74
82
|
export interface CollapseSchemaConfig extends BaseSchemaConfig {
|
|
83
|
+
/**
|
|
84
|
+
* @zh id
|
|
85
|
+
*/
|
|
86
|
+
id: string;
|
|
75
87
|
/**
|
|
76
88
|
* @zh 组件类型
|
|
77
89
|
*/
|
|
@@ -82,6 +94,10 @@ export interface CollapseSchemaConfig extends BaseSchemaConfig {
|
|
|
82
94
|
children?: CollapseItemSchemaConfig[];
|
|
83
95
|
}
|
|
84
96
|
export interface CollapseItemSchemaConfig extends BaseSchemaConfig {
|
|
97
|
+
/**
|
|
98
|
+
* @zh id
|
|
99
|
+
*/
|
|
100
|
+
id: string;
|
|
85
101
|
/**
|
|
86
102
|
* @zh 组件类型
|
|
87
103
|
*/
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { BaseSchemaConfig, BaseCompConfig } from '../../comp/src/interface';
|
|
2
2
|
export interface FormSchemaConfig extends BaseSchemaConfig {
|
|
3
|
+
/**
|
|
4
|
+
* @zh id
|
|
5
|
+
*/
|
|
6
|
+
id?: string;
|
|
3
7
|
/**
|
|
4
8
|
* @zh 组件类型
|
|
5
9
|
*/
|
|
6
|
-
type
|
|
10
|
+
type?: string;
|
|
7
11
|
/**
|
|
8
12
|
* @zh 配置信息
|
|
9
13
|
*/
|
package/dist/simcode-ui.es.js
CHANGED
|
@@ -6300,7 +6300,7 @@ const xg = ln, pl = {
|
|
|
6300
6300
|
row: v,
|
|
6301
6301
|
getTableData: d
|
|
6302
6302
|
})
|
|
6303
|
-
), y = j(() => n.isTableCell && (g.value === "j-radio" || g.value === "j-checkbox") ? "j-select" : g.value === "j-textarea" ? "j-input" : g.value), x = j(() => {
|
|
6303
|
+
), y = j(() => n.isTableCell && (g.value === "j-radio" || g.value === "j-checkbox") ? "j-select" : g.value === "j-textarea" ? "j-input" : ((g.value == null || g.value === "") && console.warn("组件类型不能为空"), g.value)), x = j(() => {
|
|
6304
6304
|
const k = { ...m.value };
|
|
6305
6305
|
return y.value === "j-layer-form" && (k.schema = n.children), y.value === "el-collapse-item" && k.label && (k.title = k.label, delete k.label), n.isTableCell && (g.value === "j-checkbox" && (k.multiple = !0), g.value === "j-select" && k.multiple && (k.collapseTags = !0, k.collapseTagsTooltip = !0), g.value === "j-switch" && (k.size = "small"), g.value === "j-textarea" && (k.type = "textarea")), k;
|
|
6306
6306
|
}), E = j(() => {
|
|
@@ -13243,7 +13243,7 @@ const Ib = /* @__PURE__ */ ne({
|
|
|
13243
13243
|
const me = {
|
|
13244
13244
|
id: oe.id,
|
|
13245
13245
|
slot: oe.slot,
|
|
13246
|
-
type: oe.type,
|
|
13246
|
+
type: oe.type || "",
|
|
13247
13247
|
getCompType: oe.getCompType,
|
|
13248
13248
|
getCompConfig: oe.getCompConfig,
|
|
13249
13249
|
config: {},
|