@luck-design-biz/luckda 1.0.1-7 → 1.0.1-8

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.
@@ -88,6 +88,7 @@ var LdFormList = function LdFormList(_ref) {
88
88
  resources = _ref3.resources,
89
89
  rest = _objectWithoutProperties(_ref3, _excluded2);
90
90
  var formListRef = useRef(null);
91
+ alert(1234);
91
92
  useImperativeHandle(apiRef, function () {
92
93
  return _objectSpread(_objectSpread({}, formListRef.current), {}, {
93
94
  getCValue: function getCValue() {
@@ -134,7 +135,17 @@ var LdFormList = function LdFormList(_ref) {
134
135
  bizData: bizData,
135
136
  suppressDept: false,
136
137
  showHistory: luckTheme === 'base' ? 'sider' : 'drawer',
137
- placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight'
138
+ placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight',
139
+ onStartProcess: function onStartProcess(res) {
140
+ if ((res === null || res === void 0 ? void 0 : res.code) === 1) {
141
+ formListRef.current.doQuery();
142
+ }
143
+ },
144
+ onOperateComplete: function onOperateComplete(code, type, res) {
145
+ if (code === 1) {
146
+ formListRef.current.doQuery();
147
+ }
148
+ }
138
149
  }, bpmButtonProps)));
139
150
  };
140
151
  useAsyncEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
@@ -95,6 +95,7 @@ var LdFormList = function LdFormList(_ref) {
95
95
  resources = _ref3.resources,
96
96
  rest = (0, _objectWithoutProperties2.default)(_ref3, _excluded2);
97
97
  var formListRef = (0, _react.useRef)(null);
98
+ alert(1234);
98
99
  (0, _react.useImperativeHandle)(apiRef, function () {
99
100
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, formListRef.current), {}, {
100
101
  getCValue: function getCValue() {
@@ -141,7 +142,17 @@ var LdFormList = function LdFormList(_ref) {
141
142
  bizData: bizData,
142
143
  suppressDept: false,
143
144
  showHistory: luckTheme === 'base' ? 'sider' : 'drawer',
144
- placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight'
145
+ placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight',
146
+ onStartProcess: function onStartProcess(res) {
147
+ if ((res === null || res === void 0 ? void 0 : res.code) === 1) {
148
+ formListRef.current.doQuery();
149
+ }
150
+ },
151
+ onOperateComplete: function onOperateComplete(code, type, res) {
152
+ if (code === 1) {
153
+ formListRef.current.doQuery();
154
+ }
155
+ }
145
156
  }, bpmButtonProps)));
146
157
  };
147
158
  (0, _ahooks.useAsyncEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luck-design-biz/luckda",
3
- "version": "1.0.1-7",
3
+ "version": "1.0.1-8",
4
4
  "description": "前端配置管理中心业务组件库",
5
5
  "scripts": {
6
6
  "start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",
@@ -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
- }