@luck-design-biz/luckda 1.0.0-1-alpha → 1.0.0-11-alpha
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/ComplexItem/index.js +65 -49
- package/es/components/LdAutoForm/index.js +4 -3
- package/es/components/LdGridForm/index.js +2 -1
- package/es/helper/form.js +1 -0
- package/es/helper/ldBuilder.js +8 -3
- package/es/locales/zh-CN.js +35 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +1 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +7 -0
- package/es/lowcode/engine/meta/form.props.json +3 -3
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +18 -0
- package/es/lowcode/engine/meta/page.props.json +6 -0
- package/es/lowcode/engine/provider/ContextProvider/index.js +28 -5
- package/es/lowcode/engine/provider/ContextProvider/router.js +1 -1
- package/es/lowcode/engine/{tools → provider/ContextProvider}/usePageDataStore.js +9 -7
- package/es/lowcode/engine/{tools → provider/ContextProvider}/useTodo.js +4 -6
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +1 -2
- package/es/lowcode/engine/tools/helper.js +7 -2
- package/es/lowcode/engine/tools/initDS.js +263 -0
- package/es/lowcode/engine/tools/useCombinedRefs.js +3 -2
- package/es/lowcode/painter/DesignOperator.js +2 -0
- package/es/lowcode/painter/components/TipIcon.js +16 -0
- package/es/lowcode/painter/components/VarEditor.js +456 -0
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +2 -2
- package/es/lowcode/painter/components/code-editor/JSEditor.js +3 -1
- package/es/lowcode/painter/components/code-editor/VisionEditor.js +81 -0
- package/es/lowcode/painter/components/field-setting/SettingUI.js +17 -3
- package/es/lowcode/painter/components/field-setting/index.js +1 -1
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +1 -0
- package/es/lowcode/painter/index.js +1 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +14 -9
- package/es/lowcode/painter/panel-section/ComplexPop.js +242 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +8 -0
- package/es/lowcode/painter/panel-section/FieldsSetting.js +9 -1
- package/es/lowcode/painter/panel-section/ImpExp.js +1 -27
- package/es/lowcode/painter/panel-section/PageVars.js +300 -0
- package/es/lowcode/painter/services/complexPop.js +21 -0
- package/es/lowcode/painter/style/design.less +1 -1
- package/es/lowcode/painter/style/page-vars.less +25 -0
- package/es/lowcode/preview/index.js +1 -0
- package/es/lowcode/view/Canvas.js +11 -34
- package/es/lowcode/view/Loading.js +5 -7
- package/es/lowcode/view/Page.js +37 -15
- package/es/lowcode/view/index.js +1 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +5 -6
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +7 -0
- package/es/lowcode/view/lc-components/Form/index.js +11 -4
- package/es/lowcode/view/lc-components/Form/meta.json +3 -3
- package/es/lowcode/view/lc-components/Page/meta.json +6 -0
- package/es/lowcode/view/lc-components/Table/index.js +17 -3
- package/es/lowcode/view/style/loading.less +14 -0
- package/es/utils/form.js +4 -4
- package/es/utils/grid.js +1 -1
- package/lib/components/ComplexItem/index.js +62 -47
- package/lib/components/LdAutoForm/index.js +3 -2
- package/lib/components/LdGridForm/index.js +2 -1
- package/lib/helper/form.js +1 -0
- package/lib/helper/ldBuilder.js +8 -3
- package/lib/locales/zh-CN.js +35 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +1 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +7 -0
- package/lib/lowcode/engine/meta/form.props.json +3 -3
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +18 -0
- package/lib/lowcode/engine/meta/page.props.json +6 -0
- package/lib/lowcode/engine/provider/ContextProvider/index.js +29 -12
- package/lib/lowcode/engine/provider/ContextProvider/router.js +1 -1
- package/lib/lowcode/engine/{tools → provider/ContextProvider}/usePageDataStore.js +9 -7
- package/lib/lowcode/engine/{tools → provider/ContextProvider}/useTodo.js +4 -6
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +2 -3
- package/lib/lowcode/engine/tools/helper.js +7 -2
- package/lib/lowcode/engine/tools/initDS.js +270 -0
- package/lib/lowcode/engine/tools/useCombinedRefs.js +2 -1
- package/lib/lowcode/painter/DesignOperator.js +2 -0
- package/lib/lowcode/painter/components/TipIcon.js +23 -0
- package/lib/lowcode/painter/components/VarEditor.js +463 -0
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +2 -2
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +3 -1
- package/lib/lowcode/painter/components/code-editor/VisionEditor.js +88 -0
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +17 -3
- package/lib/lowcode/painter/components/field-setting/index.js +1 -1
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +1 -0
- package/lib/lowcode/painter/index.js +1 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +13 -8
- package/lib/lowcode/painter/panel-section/ComplexPop.js +250 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +8 -0
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +9 -1
- package/lib/lowcode/painter/panel-section/ImpExp.js +0 -26
- package/lib/lowcode/painter/panel-section/PageVars.js +308 -0
- package/lib/lowcode/painter/services/complexPop.js +28 -0
- package/lib/lowcode/painter/style/design.less +1 -1
- package/lib/lowcode/painter/style/page-vars.less +25 -0
- package/lib/lowcode/preview/index.js +1 -0
- package/lib/lowcode/view/Canvas.js +12 -35
- package/lib/lowcode/view/Loading.js +5 -7
- package/lib/lowcode/view/Page.js +35 -13
- package/lib/lowcode/view/index.js +1 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +5 -6
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +7 -0
- package/lib/lowcode/view/lc-components/Form/index.js +11 -4
- package/lib/lowcode/view/lc-components/Form/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Page/meta.json +6 -0
- package/lib/lowcode/view/lc-components/Table/index.js +18 -4
- package/lib/lowcode/view/style/loading.less +14 -0
- package/lib/utils/form.js +3 -3
- package/lib/utils/grid.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = initialize;
|
|
8
|
+
var _toArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toArray"));
|
|
9
|
+
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
14
|
+
var _lodash = require("lodash");
|
|
15
|
+
var _utils = require("@luck-design-biz/base/utils");
|
|
16
|
+
var _usePageDataStore = _interopRequireDefault(require("../provider/ContextProvider/usePageDataStore"));
|
|
17
|
+
var _usePageVar = require("../provider/ContextProvider/usePageVar");
|
|
18
|
+
var _helper = require("./helper");
|
|
19
|
+
var parseVar = function parseVar(ctx, input) {
|
|
20
|
+
if ((0, _lodash.isNil)(input)) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
return (0, _helper.executeCode)(ctx, "function() {return ".concat(input, "}"));
|
|
25
|
+
} catch (err) {
|
|
26
|
+
return input;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var Task = /*#__PURE__*/function () {
|
|
30
|
+
function Task(ctx, props) {
|
|
31
|
+
(0, _classCallCheck2.default)(this, Task);
|
|
32
|
+
this.ctx = ctx;
|
|
33
|
+
this.name = props.name;
|
|
34
|
+
this.props = props;
|
|
35
|
+
}
|
|
36
|
+
(0, _createClass2.default)(Task, [{
|
|
37
|
+
key: "run",
|
|
38
|
+
value: function () {
|
|
39
|
+
var _run = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(_params, _data) {
|
|
40
|
+
var _this = this;
|
|
41
|
+
var _this$props, willFetch, didFetch, onError, _this$props$data, url, params, body, method, defaultValue, vars, config;
|
|
42
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
43
|
+
while (1) switch (_context.prev = _context.next) {
|
|
44
|
+
case 0:
|
|
45
|
+
_this$props = this.props, willFetch = _this$props.willFetch, didFetch = _this$props.didFetch, onError = _this$props.onError;
|
|
46
|
+
_this$props$data = this.props.data, url = _this$props$data.url, params = _this$props$data.params, body = _this$props$data.body, method = _this$props$data.method, defaultValue = _this$props$data.defaultValue;
|
|
47
|
+
vars = {
|
|
48
|
+
params: (0, _lodash.isNil)(params) || params === '' ? {} : parseVar(this.ctx, params),
|
|
49
|
+
data: (0, _lodash.isNil)(body) || body === '' ? {} : parseVar(this.ctx, body)
|
|
50
|
+
};
|
|
51
|
+
config = {
|
|
52
|
+
headers: {}
|
|
53
|
+
};
|
|
54
|
+
if (willFetch) {
|
|
55
|
+
(0, _helper.executeCode)(this.ctx, willFetch, ['vars', 'config'], vars, config);
|
|
56
|
+
}
|
|
57
|
+
return _context.abrupt("return", (0, _utils.request)(parseVar(this.ctx, url), (0, _objectSpread2.default)({
|
|
58
|
+
params: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, vars.params), _params),
|
|
59
|
+
data: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, vars.data), _data),
|
|
60
|
+
method: parseVar(this.ctx, method)
|
|
61
|
+
}, config)).then(function (res) {
|
|
62
|
+
if (res.code === 1) {
|
|
63
|
+
var list = res.list,
|
|
64
|
+
detail = res.detail;
|
|
65
|
+
var content;
|
|
66
|
+
if (list.length === 1) {
|
|
67
|
+
content = detail[list[0]];
|
|
68
|
+
} else {
|
|
69
|
+
content = list.map(function (_id) {
|
|
70
|
+
return detail[_id];
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
if (didFetch) {
|
|
74
|
+
return (0, _helper.executeCode)(_this.ctx, didFetch, ['content', 'origin'], content, res);
|
|
75
|
+
}
|
|
76
|
+
return content;
|
|
77
|
+
} else if (onError) {
|
|
78
|
+
(0, _helper.executeCode)(_this.ctx, onError, ['error'], res);
|
|
79
|
+
}
|
|
80
|
+
if (defaultValue) {
|
|
81
|
+
return parseVar(_this.ctx, defaultValue);
|
|
82
|
+
}
|
|
83
|
+
}));
|
|
84
|
+
case 6:
|
|
85
|
+
case "end":
|
|
86
|
+
return _context.stop();
|
|
87
|
+
}
|
|
88
|
+
}, _callee, this);
|
|
89
|
+
}));
|
|
90
|
+
function run(_x, _x2) {
|
|
91
|
+
return _run.apply(this, arguments);
|
|
92
|
+
}
|
|
93
|
+
return run;
|
|
94
|
+
}()
|
|
95
|
+
}, {
|
|
96
|
+
key: "load",
|
|
97
|
+
value: function () {
|
|
98
|
+
var _load = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(params, data) {
|
|
99
|
+
var _this2 = this;
|
|
100
|
+
var content;
|
|
101
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
102
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
103
|
+
case 0:
|
|
104
|
+
_context2.next = 2;
|
|
105
|
+
return this.run(params, data);
|
|
106
|
+
case 2:
|
|
107
|
+
content = _context2.sent;
|
|
108
|
+
_usePageVar.useStateStore.setState(function (store) {
|
|
109
|
+
store.state[_this2.name] = content;
|
|
110
|
+
});
|
|
111
|
+
return _context2.abrupt("return", content);
|
|
112
|
+
case 5:
|
|
113
|
+
case "end":
|
|
114
|
+
return _context2.stop();
|
|
115
|
+
}
|
|
116
|
+
}, _callee2, this);
|
|
117
|
+
}));
|
|
118
|
+
function load(_x3, _x4) {
|
|
119
|
+
return _load.apply(this, arguments);
|
|
120
|
+
}
|
|
121
|
+
return load;
|
|
122
|
+
}()
|
|
123
|
+
}]);
|
|
124
|
+
return Task;
|
|
125
|
+
}();
|
|
126
|
+
var wrapPromise = function wrapPromise(promise) {
|
|
127
|
+
var cache = {
|
|
128
|
+
status: 'pending',
|
|
129
|
+
data: null
|
|
130
|
+
};
|
|
131
|
+
var suspender = promise.then(function (r) {
|
|
132
|
+
cache.status = 'fulfilled';
|
|
133
|
+
cache.data = r;
|
|
134
|
+
}, function (e) {
|
|
135
|
+
cache.status = 'rejected';
|
|
136
|
+
cache.data = e;
|
|
137
|
+
});
|
|
138
|
+
return {
|
|
139
|
+
read: function read() {
|
|
140
|
+
if (cache.status === 'pending') {
|
|
141
|
+
throw suspender;
|
|
142
|
+
} else if (cache.status === 'rejected') {
|
|
143
|
+
throw cache.data;
|
|
144
|
+
} else if (cache.status === 'fulfilled') {
|
|
145
|
+
return cache.data;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
function initialize(ctx) {
|
|
151
|
+
var pageVars = _usePageDataStore.default.getState().pageData.props.vars;
|
|
152
|
+
if ((0, _lodash.isNil)(pageVars)) return null;
|
|
153
|
+
var remoteApis = new Map();
|
|
154
|
+
var _reduce = (0, _lodash.reduce)(pageVars, function (ret, val) {
|
|
155
|
+
if (val.type === 'var') {
|
|
156
|
+
ret[0][val.name] = parseVar(ctx, val.data);
|
|
157
|
+
} else if (val.type === 'api') {
|
|
158
|
+
var _val$data = val.data,
|
|
159
|
+
auto = _val$data.auto,
|
|
160
|
+
taskType = _val$data.taskType;
|
|
161
|
+
var task = new Task(ctx, val);
|
|
162
|
+
remoteApis.set(val.name, task);
|
|
163
|
+
if (!auto) return ret;
|
|
164
|
+
if (taskType === 'serial') {
|
|
165
|
+
ret.push(task);
|
|
166
|
+
} else if (taskType === 'parallel') {
|
|
167
|
+
var lastIndex = ret.length - 1;
|
|
168
|
+
if (lastIndex > 0 && (0, _lodash.isArray)(ret[lastIndex])) {
|
|
169
|
+
ret[lastIndex].push(task);
|
|
170
|
+
} else {
|
|
171
|
+
ret.push([task]);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return ret;
|
|
176
|
+
}, [{}]),
|
|
177
|
+
_reduce2 = (0, _toArray2.default)(_reduce),
|
|
178
|
+
variables = _reduce2[0],
|
|
179
|
+
autoTasks = _reduce2.slice(1);
|
|
180
|
+
_usePageVar.useStateStore.getState().initialize(variables);
|
|
181
|
+
ctx._initRemoteApiMap(remoteApis);
|
|
182
|
+
function run() {
|
|
183
|
+
return _run2.apply(this, arguments);
|
|
184
|
+
}
|
|
185
|
+
function _run2() {
|
|
186
|
+
_run2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {
|
|
187
|
+
var result, _loop, i;
|
|
188
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context5) {
|
|
189
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
190
|
+
case 0:
|
|
191
|
+
result = {};
|
|
192
|
+
_loop = /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _loop(i) {
|
|
193
|
+
var contents, _loop2, j, content;
|
|
194
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _loop$(_context4) {
|
|
195
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
196
|
+
case 0:
|
|
197
|
+
if (!(0, _lodash.isArray)(autoTasks[i])) {
|
|
198
|
+
_context4.next = 13;
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
_context4.next = 3;
|
|
202
|
+
return Promise.all(autoTasks[i].map(function (t) {
|
|
203
|
+
return t.run();
|
|
204
|
+
}));
|
|
205
|
+
case 3:
|
|
206
|
+
contents = _context4.sent;
|
|
207
|
+
_loop2 = /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _loop2(j) {
|
|
208
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _loop2$(_context3) {
|
|
209
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
210
|
+
case 0:
|
|
211
|
+
_usePageVar.useStateStore.setState(function (store) {
|
|
212
|
+
store.state[autoTasks[i][j].name] = contents[j];
|
|
213
|
+
});
|
|
214
|
+
case 1:
|
|
215
|
+
case "end":
|
|
216
|
+
return _context3.stop();
|
|
217
|
+
}
|
|
218
|
+
}, _loop2);
|
|
219
|
+
});
|
|
220
|
+
_context4.t0 = (0, _regeneratorRuntime2.default)().keys(autoTasks[i]);
|
|
221
|
+
case 6:
|
|
222
|
+
if ((_context4.t1 = _context4.t0()).done) {
|
|
223
|
+
_context4.next = 11;
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
j = _context4.t1.value;
|
|
227
|
+
return _context4.delegateYield(_loop2(j), "t2", 9);
|
|
228
|
+
case 9:
|
|
229
|
+
_context4.next = 6;
|
|
230
|
+
break;
|
|
231
|
+
case 11:
|
|
232
|
+
_context4.next = 17;
|
|
233
|
+
break;
|
|
234
|
+
case 13:
|
|
235
|
+
_context4.next = 15;
|
|
236
|
+
return autoTasks[i].run();
|
|
237
|
+
case 15:
|
|
238
|
+
content = _context4.sent;
|
|
239
|
+
_usePageVar.useStateStore.setState(function (store) {
|
|
240
|
+
store.state[autoTasks[i].name] = content;
|
|
241
|
+
});
|
|
242
|
+
case 17:
|
|
243
|
+
case "end":
|
|
244
|
+
return _context4.stop();
|
|
245
|
+
}
|
|
246
|
+
}, _loop);
|
|
247
|
+
});
|
|
248
|
+
_context5.t0 = (0, _regeneratorRuntime2.default)().keys(autoTasks);
|
|
249
|
+
case 3:
|
|
250
|
+
if ((_context5.t1 = _context5.t0()).done) {
|
|
251
|
+
_context5.next = 8;
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
i = _context5.t1.value;
|
|
255
|
+
return _context5.delegateYield(_loop(i), "t2", 6);
|
|
256
|
+
case 6:
|
|
257
|
+
_context5.next = 3;
|
|
258
|
+
break;
|
|
259
|
+
case 8:
|
|
260
|
+
return _context5.abrupt("return", result);
|
|
261
|
+
case 9:
|
|
262
|
+
case "end":
|
|
263
|
+
return _context5.stop();
|
|
264
|
+
}
|
|
265
|
+
}, _callee3);
|
|
266
|
+
}));
|
|
267
|
+
return _run2.apply(this, arguments);
|
|
268
|
+
}
|
|
269
|
+
return wrapPromise(run());
|
|
270
|
+
}
|
|
@@ -5,9 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
+
var _ahooks = require("ahooks");
|
|
8
9
|
var useCombinedRefs = function useCombinedRefs(forwardedRef) {
|
|
9
10
|
var innerRef = (0, _react.useRef)(null);
|
|
10
|
-
(0,
|
|
11
|
+
(0, _ahooks.useCreation)(function () {
|
|
11
12
|
if (!forwardedRef) return;
|
|
12
13
|
if (typeof forwardedRef === 'function') {
|
|
13
14
|
forwardedRef(innerRef.current);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _antd = require("luck-design/antd");
|
|
12
|
+
var _excluded = ["title", "type"];
|
|
13
|
+
var TipIcon = function TipIcon(_ref) {
|
|
14
|
+
var title = _ref.title,
|
|
15
|
+
type = _ref.type,
|
|
16
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
17
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
18
|
+
title: title
|
|
19
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Icon, (0, _extends2.default)({
|
|
20
|
+
type: type
|
|
21
|
+
}, rest)));
|
|
22
|
+
};
|
|
23
|
+
var _default = exports.default = TipIcon;
|