@luck-design-biz/luckda 1.0.1-7 → 1.0.1-9
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/es/components/LdFormList/index.js +11 -1
- package/lib/components/LdFormList/index.js +11 -1
- package/package.json +1 -1
- package/es/lowcode/engine/meta/fielddatadic.props.default.json +0 -16
- package/es/lowcode/engine/meta/fielddatadic.props.json +0 -73
- package/lib/lowcode/engine/meta/fielddatadic.props.default.json +0 -16
- package/lib/lowcode/engine/meta/fielddatadic.props.json +0 -73
|
@@ -134,7 +134,17 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
134
134
|
bizData: bizData,
|
|
135
135
|
suppressDept: false,
|
|
136
136
|
showHistory: luckTheme === 'base' ? 'sider' : 'drawer',
|
|
137
|
-
placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight'
|
|
137
|
+
placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight',
|
|
138
|
+
onStartProcess: function onStartProcess(res) {
|
|
139
|
+
if ((res === null || res === void 0 ? void 0 : res.code) === 1) {
|
|
140
|
+
formListRef.current.doQuery();
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
onOperateComplete: function onOperateComplete(code, type, res) {
|
|
144
|
+
if (code === 1) {
|
|
145
|
+
formListRef.current.doQuery();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
138
148
|
}, bpmButtonProps)));
|
|
139
149
|
};
|
|
140
150
|
useAsyncEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
@@ -141,7 +141,17 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
141
141
|
bizData: bizData,
|
|
142
142
|
suppressDept: false,
|
|
143
143
|
showHistory: luckTheme === 'base' ? 'sider' : 'drawer',
|
|
144
|
-
placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight'
|
|
144
|
+
placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight',
|
|
145
|
+
onStartProcess: function onStartProcess(res) {
|
|
146
|
+
if ((res === null || res === void 0 ? void 0 : res.code) === 1) {
|
|
147
|
+
formListRef.current.doQuery();
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
onOperateComplete: function onOperateComplete(code, type, res) {
|
|
151
|
+
if (code === 1) {
|
|
152
|
+
formListRef.current.doQuery();
|
|
153
|
+
}
|
|
154
|
+
}
|
|
145
155
|
}, bpmButtonProps)));
|
|
146
156
|
};
|
|
147
157
|
(0, _ahooks.useAsyncEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": "FieldDatadic",
|
|
3
|
-
"name": "数据字典",
|
|
4
|
-
"group": "field",
|
|
5
|
-
"desc": "数据字典类型表单项",
|
|
6
|
-
"icon": "icon-fieldstring",
|
|
7
|
-
"groupName": "表单项",
|
|
8
|
-
"order": 1,
|
|
9
|
-
"display": "select",
|
|
10
|
-
"multiple": false,
|
|
11
|
-
"isTree": false,
|
|
12
|
-
"allowClear": false,
|
|
13
|
-
"advance": {
|
|
14
|
-
"events": {}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": "FieldDatadic",
|
|
3
|
-
"name": "数据字典",
|
|
4
|
-
"group": "field",
|
|
5
|
-
"desc": "数据字典类型表单项",
|
|
6
|
-
"icon": "icon-fieldstring",
|
|
7
|
-
"groupName": "表单项",
|
|
8
|
-
"order": 1,
|
|
9
|
-
"props": [
|
|
10
|
-
{
|
|
11
|
-
"key": "alias",
|
|
12
|
-
"name": "字典key",
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"key": "valueField",
|
|
17
|
-
"name": "实际值字段",
|
|
18
|
-
"type": "string"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"key": "labelField",
|
|
22
|
-
"name": "翻译值字段",
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"key": "display",
|
|
27
|
-
"name": "展现形式",
|
|
28
|
-
"type": "segmented",
|
|
29
|
-
"options": [
|
|
30
|
-
{
|
|
31
|
-
"label": "Select",
|
|
32
|
-
"value": "select"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"label": "Radio",
|
|
36
|
-
"value": "radio"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"default": "select"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"key": "multiple",
|
|
43
|
-
"name": "多选",
|
|
44
|
-
"desc": "仅在展现形式为Select时有效",
|
|
45
|
-
"type": "switch",
|
|
46
|
-
"default": false
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"key": "isTree",
|
|
50
|
-
"name": "树形结构",
|
|
51
|
-
"desc": "用于规定树形结构的数据字典,仅在展现形式为Select时有效",
|
|
52
|
-
"type": "switch",
|
|
53
|
-
"default": false
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"key": "allowClear",
|
|
57
|
-
"name": "允许清除",
|
|
58
|
-
"desc": "仅在展现形式为Select时有效",
|
|
59
|
-
"type": "switch",
|
|
60
|
-
"default": false
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
"advance": {
|
|
64
|
-
"events": [
|
|
65
|
-
{
|
|
66
|
-
"key": "onChange",
|
|
67
|
-
"name": "数据变化事件",
|
|
68
|
-
"desc": "在数据变化事件时,执行方法",
|
|
69
|
-
"func": "function onChange(data) {\n\t\n}"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": "FieldDatadic",
|
|
3
|
-
"name": "数据字典",
|
|
4
|
-
"group": "field",
|
|
5
|
-
"desc": "数据字典类型表单项",
|
|
6
|
-
"icon": "icon-fieldstring",
|
|
7
|
-
"groupName": "表单项",
|
|
8
|
-
"order": 1,
|
|
9
|
-
"display": "select",
|
|
10
|
-
"multiple": false,
|
|
11
|
-
"isTree": false,
|
|
12
|
-
"allowClear": false,
|
|
13
|
-
"advance": {
|
|
14
|
-
"events": {}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": "FieldDatadic",
|
|
3
|
-
"name": "数据字典",
|
|
4
|
-
"group": "field",
|
|
5
|
-
"desc": "数据字典类型表单项",
|
|
6
|
-
"icon": "icon-fieldstring",
|
|
7
|
-
"groupName": "表单项",
|
|
8
|
-
"order": 1,
|
|
9
|
-
"props": [
|
|
10
|
-
{
|
|
11
|
-
"key": "alias",
|
|
12
|
-
"name": "字典key",
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"key": "valueField",
|
|
17
|
-
"name": "实际值字段",
|
|
18
|
-
"type": "string"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"key": "labelField",
|
|
22
|
-
"name": "翻译值字段",
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"key": "display",
|
|
27
|
-
"name": "展现形式",
|
|
28
|
-
"type": "segmented",
|
|
29
|
-
"options": [
|
|
30
|
-
{
|
|
31
|
-
"label": "Select",
|
|
32
|
-
"value": "select"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"label": "Radio",
|
|
36
|
-
"value": "radio"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"default": "select"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"key": "multiple",
|
|
43
|
-
"name": "多选",
|
|
44
|
-
"desc": "仅在展现形式为Select时有效",
|
|
45
|
-
"type": "switch",
|
|
46
|
-
"default": false
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"key": "isTree",
|
|
50
|
-
"name": "树形结构",
|
|
51
|
-
"desc": "用于规定树形结构的数据字典,仅在展现形式为Select时有效",
|
|
52
|
-
"type": "switch",
|
|
53
|
-
"default": false
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"key": "allowClear",
|
|
57
|
-
"name": "允许清除",
|
|
58
|
-
"desc": "仅在展现形式为Select时有效",
|
|
59
|
-
"type": "switch",
|
|
60
|
-
"default": false
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
"advance": {
|
|
64
|
-
"events": [
|
|
65
|
-
{
|
|
66
|
-
"key": "onChange",
|
|
67
|
-
"name": "数据变化事件",
|
|
68
|
-
"desc": "在数据变化事件时,执行方法",
|
|
69
|
-
"func": "function onChange(data) {\n\t\n}"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
}
|