@openli1115/lowcode-edit-pro-table 1.0.100 → 1.0.103
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/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/umi.997428ae.js +1 -0
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/meta.design.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/BizComps.js +1 -1
- package/dist/BizComps.js.map +1 -1
- package/es/components/ProSearch/index.js +38 -12
- package/lib/components/ProSearch/index.js +38 -12
- package/lowcode/pro-search/meta.ts +4 -1
- package/lowcode_es/meta.js +1 -1
- package/lowcode_es/pro-search/meta.d.ts +1 -1
- package/lowcode_es/pro-search/meta.js +3 -1
- package/lowcode_lib/meta.js +1 -1
- package/lowcode_lib/pro-search/meta.d.ts +1 -1
- package/lowcode_lib/pro-search/meta.js +3 -1
- package/package.json +3 -3
- package/build/docs/umi.46422fef.js +0 -1
|
@@ -378,6 +378,33 @@ var ProSearch = function ProSearch(_ref2) {
|
|
|
378
378
|
rows.push((_rows$push2 = {}, _rows$push2[si + "-sign"] = 'I', _rows$push2[si + "-option"] = 'EQ', _rows$push2[si + "-low"] = fv.low, _rows$push2[si + "-high"] = fv.high, _rows$push2));
|
|
379
379
|
}
|
|
380
380
|
if (rows.length) data[si] = rows;
|
|
381
|
+
|
|
382
|
+
// 将查询条件写入 window.screenStructures,供 executeLogicEngine 调用 generateStructureForm 时读取
|
|
383
|
+
var win = window;
|
|
384
|
+
if (!win.screenStructures) win.screenStructures = {};
|
|
385
|
+
if (!win.customTypeMap) win.customTypeMap = {};
|
|
386
|
+
var screenRows = [];
|
|
387
|
+
if (fv.conditions.length) {
|
|
388
|
+
fv.conditions.forEach(function (c) {
|
|
389
|
+
if (c.low || c.high || c.option) {
|
|
390
|
+
screenRows.push({
|
|
391
|
+
sign: c.sign,
|
|
392
|
+
option: c.option || 'EQ',
|
|
393
|
+
low: c.low || '',
|
|
394
|
+
high: c.high || ''
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
} else if (fv.low || fv.high) {
|
|
399
|
+
screenRows.push({
|
|
400
|
+
sign: 'I',
|
|
401
|
+
option: fv.high ? 'BT' : 'EQ',
|
|
402
|
+
low: fv.low || '',
|
|
403
|
+
high: fv.high || ''
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
win.screenStructures[si] = screenRows;
|
|
407
|
+
win.customTypeMap[si] = '4';
|
|
381
408
|
});
|
|
382
409
|
onSearch && onSearch(data);
|
|
383
410
|
};
|
|
@@ -511,16 +538,20 @@ var ProSearch = function ProSearch(_ref2) {
|
|
|
511
538
|
style: _extends({
|
|
512
539
|
display: 'flex',
|
|
513
540
|
padding: '4px 8px',
|
|
514
|
-
|
|
541
|
+
gap: 6,
|
|
542
|
+
borderBottom: '1px solid #e8e8e8',
|
|
543
|
+
background: '#fafafa'
|
|
515
544
|
}, headerSize)
|
|
516
545
|
}, showDescription && /*#__PURE__*/React.createElement("div", {
|
|
517
546
|
style: {
|
|
518
547
|
flex: 2,
|
|
519
|
-
textAlign: descriptionAlign
|
|
548
|
+
textAlign: descriptionAlign,
|
|
549
|
+
paddingRight: 4
|
|
520
550
|
}
|
|
521
551
|
}, "\u5B57\u6BB5\u63CF\u8FF0"), /*#__PURE__*/React.createElement("div", {
|
|
522
552
|
style: {
|
|
523
|
-
flex: 3
|
|
553
|
+
flex: 3,
|
|
554
|
+
textAlign: 'center'
|
|
524
555
|
}
|
|
525
556
|
}, "\u8D77\u59CB\u503C"), showHighValue && /*#__PURE__*/React.createElement("div", {
|
|
526
557
|
style: {
|
|
@@ -529,7 +560,8 @@ var ProSearch = function ProSearch(_ref2) {
|
|
|
529
560
|
}
|
|
530
561
|
}, "\u5230"), showHighValue && /*#__PURE__*/React.createElement("div", {
|
|
531
562
|
style: {
|
|
532
|
-
flex: 3
|
|
563
|
+
flex: 3,
|
|
564
|
+
textAlign: 'center'
|
|
533
565
|
}
|
|
534
566
|
}, "\u5230\u503C"), multiValue && /*#__PURE__*/React.createElement("div", {
|
|
535
567
|
style: {
|
|
@@ -539,7 +571,7 @@ var ProSearch = function ProSearch(_ref2) {
|
|
|
539
571
|
}, "\u591A\u503C"), showTechName && /*#__PURE__*/React.createElement("div", {
|
|
540
572
|
style: {
|
|
541
573
|
flex: 3,
|
|
542
|
-
textAlign:
|
|
574
|
+
textAlign: 'center'
|
|
543
575
|
}
|
|
544
576
|
}, "\u6280\u672F\u540D\u79F0")), fields.length === 0 && /*#__PURE__*/React.createElement("div", {
|
|
545
577
|
style: {
|
|
@@ -634,13 +666,7 @@ var ProSearch = function ProSearch(_ref2) {
|
|
|
634
666
|
destroyOnClose: true,
|
|
635
667
|
zIndex: 9999999,
|
|
636
668
|
getContainer: function getContainer() {
|
|
637
|
-
|
|
638
|
-
try {
|
|
639
|
-
var topDoc = window.top && window.top.document || document;
|
|
640
|
-
return topDoc.body;
|
|
641
|
-
} catch (e) {
|
|
642
|
-
return document.body;
|
|
643
|
-
}
|
|
669
|
+
return document.body;
|
|
644
670
|
}
|
|
645
671
|
}, /*#__PURE__*/React.createElement("div", {
|
|
646
672
|
style: {
|
|
@@ -384,6 +384,33 @@ var ProSearch = function ProSearch(_ref2) {
|
|
|
384
384
|
rows.push((_rows$push2 = {}, _rows$push2[si + "-sign"] = 'I', _rows$push2[si + "-option"] = 'EQ', _rows$push2[si + "-low"] = fv.low, _rows$push2[si + "-high"] = fv.high, _rows$push2));
|
|
385
385
|
}
|
|
386
386
|
if (rows.length) data[si] = rows;
|
|
387
|
+
|
|
388
|
+
// 将查询条件写入 window.screenStructures,供 executeLogicEngine 调用 generateStructureForm 时读取
|
|
389
|
+
var win = window;
|
|
390
|
+
if (!win.screenStructures) win.screenStructures = {};
|
|
391
|
+
if (!win.customTypeMap) win.customTypeMap = {};
|
|
392
|
+
var screenRows = [];
|
|
393
|
+
if (fv.conditions.length) {
|
|
394
|
+
fv.conditions.forEach(function (c) {
|
|
395
|
+
if (c.low || c.high || c.option) {
|
|
396
|
+
screenRows.push({
|
|
397
|
+
sign: c.sign,
|
|
398
|
+
option: c.option || 'EQ',
|
|
399
|
+
low: c.low || '',
|
|
400
|
+
high: c.high || ''
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
} else if (fv.low || fv.high) {
|
|
405
|
+
screenRows.push({
|
|
406
|
+
sign: 'I',
|
|
407
|
+
option: fv.high ? 'BT' : 'EQ',
|
|
408
|
+
low: fv.low || '',
|
|
409
|
+
high: fv.high || ''
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
win.screenStructures[si] = screenRows;
|
|
413
|
+
win.customTypeMap[si] = '4';
|
|
387
414
|
});
|
|
388
415
|
onSearch && onSearch(data);
|
|
389
416
|
};
|
|
@@ -517,16 +544,20 @@ var ProSearch = function ProSearch(_ref2) {
|
|
|
517
544
|
style: (0, _extends6["default"])({
|
|
518
545
|
display: 'flex',
|
|
519
546
|
padding: '4px 8px',
|
|
520
|
-
|
|
547
|
+
gap: 6,
|
|
548
|
+
borderBottom: '1px solid #e8e8e8',
|
|
549
|
+
background: '#fafafa'
|
|
521
550
|
}, headerSize)
|
|
522
551
|
}, showDescription && /*#__PURE__*/React.createElement("div", {
|
|
523
552
|
style: {
|
|
524
553
|
flex: 2,
|
|
525
|
-
textAlign: descriptionAlign
|
|
554
|
+
textAlign: descriptionAlign,
|
|
555
|
+
paddingRight: 4
|
|
526
556
|
}
|
|
527
557
|
}, "\u5B57\u6BB5\u63CF\u8FF0"), /*#__PURE__*/React.createElement("div", {
|
|
528
558
|
style: {
|
|
529
|
-
flex: 3
|
|
559
|
+
flex: 3,
|
|
560
|
+
textAlign: 'center'
|
|
530
561
|
}
|
|
531
562
|
}, "\u8D77\u59CB\u503C"), showHighValue && /*#__PURE__*/React.createElement("div", {
|
|
532
563
|
style: {
|
|
@@ -535,7 +566,8 @@ var ProSearch = function ProSearch(_ref2) {
|
|
|
535
566
|
}
|
|
536
567
|
}, "\u5230"), showHighValue && /*#__PURE__*/React.createElement("div", {
|
|
537
568
|
style: {
|
|
538
|
-
flex: 3
|
|
569
|
+
flex: 3,
|
|
570
|
+
textAlign: 'center'
|
|
539
571
|
}
|
|
540
572
|
}, "\u5230\u503C"), multiValue && /*#__PURE__*/React.createElement("div", {
|
|
541
573
|
style: {
|
|
@@ -545,7 +577,7 @@ var ProSearch = function ProSearch(_ref2) {
|
|
|
545
577
|
}, "\u591A\u503C"), showTechName && /*#__PURE__*/React.createElement("div", {
|
|
546
578
|
style: {
|
|
547
579
|
flex: 3,
|
|
548
|
-
textAlign:
|
|
580
|
+
textAlign: 'center'
|
|
549
581
|
}
|
|
550
582
|
}, "\u6280\u672F\u540D\u79F0")), fields.length === 0 && /*#__PURE__*/React.createElement("div", {
|
|
551
583
|
style: {
|
|
@@ -640,13 +672,7 @@ var ProSearch = function ProSearch(_ref2) {
|
|
|
640
672
|
destroyOnClose: true,
|
|
641
673
|
zIndex: 9999999,
|
|
642
674
|
getContainer: function getContainer() {
|
|
643
|
-
|
|
644
|
-
try {
|
|
645
|
-
var topDoc = window.top && window.top.document || document;
|
|
646
|
-
return topDoc.body;
|
|
647
|
-
} catch (e) {
|
|
648
|
-
return document.body;
|
|
649
|
-
}
|
|
675
|
+
return document.body;
|
|
650
676
|
}
|
|
651
677
|
}, /*#__PURE__*/React.createElement("div", {
|
|
652
678
|
style: {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
2
2
|
|
|
3
|
+
const SEARCH_ICON = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiLz48bGluZSB4MT0iMjEiIHkxPSIyMSIgeDI9IjE2LjY1IiB5Mj0iMTYuNjUiLz48L3N2Zz4=';
|
|
4
|
+
|
|
3
5
|
const ProSearchMeta: IPublicTypeComponentMetadata = {
|
|
4
6
|
componentName: 'ProSearch',
|
|
5
7
|
title: '查询条件',
|
|
@@ -166,7 +168,7 @@ const ProSearchMeta: IPublicTypeComponentMetadata = {
|
|
|
166
168
|
const snippets: IPublicTypeSnippet[] = [
|
|
167
169
|
{
|
|
168
170
|
title: '查询条件',
|
|
169
|
-
screenshot:
|
|
171
|
+
screenshot: SEARCH_ICON,
|
|
170
172
|
schema: {
|
|
171
173
|
componentName: 'ProSearch',
|
|
172
174
|
props: {
|
|
@@ -182,5 +184,6 @@ const snippets: IPublicTypeSnippet[] = [
|
|
|
182
184
|
|
|
183
185
|
export default {
|
|
184
186
|
...ProSearchMeta,
|
|
187
|
+
icon: SEARCH_ICON,
|
|
185
188
|
snippets,
|
|
186
189
|
};
|
package/lowcode_es/meta.js
CHANGED
|
@@ -102,7 +102,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
102
102
|
packageName = '@openli1115/lowcode-edit-pro-table';
|
|
103
103
|
}
|
|
104
104
|
if (version === void 0) {
|
|
105
|
-
version = '1.0.
|
|
105
|
+
version = '1.0.103';
|
|
106
106
|
}
|
|
107
107
|
if (basicLibraryVersion === void 0) {
|
|
108
108
|
basicLibraryVersion = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
2
2
|
declare const _default: {
|
|
3
|
+
icon: string;
|
|
3
4
|
snippets: IPublicTypeSnippet[];
|
|
4
5
|
componentName: string;
|
|
5
6
|
uri?: string;
|
|
6
7
|
title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
|
|
7
|
-
icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
|
|
8
8
|
tags?: string[];
|
|
9
9
|
description?: string;
|
|
10
10
|
docUrl?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
var SEARCH_ICON = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiLz48bGluZSB4MT0iMjEiIHkxPSIyMSIgeDI9IjE2LjY1IiB5Mj0iMTYuNjUiLz48L3N2Zz4=';
|
|
2
3
|
var ProSearchMeta = {
|
|
3
4
|
componentName: 'ProSearch',
|
|
4
5
|
title: '查询条件',
|
|
@@ -215,7 +216,7 @@ var ProSearchMeta = {
|
|
|
215
216
|
};
|
|
216
217
|
var snippets = [{
|
|
217
218
|
title: '查询条件',
|
|
218
|
-
screenshot:
|
|
219
|
+
screenshot: SEARCH_ICON,
|
|
219
220
|
schema: {
|
|
220
221
|
componentName: 'ProSearch',
|
|
221
222
|
props: {
|
|
@@ -228,5 +229,6 @@ var snippets = [{
|
|
|
228
229
|
}
|
|
229
230
|
}];
|
|
230
231
|
export default _extends({}, ProSearchMeta, {
|
|
232
|
+
icon: SEARCH_ICON,
|
|
231
233
|
snippets: snippets
|
|
232
234
|
});
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -107,7 +107,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
107
107
|
packageName = '@openli1115/lowcode-edit-pro-table';
|
|
108
108
|
}
|
|
109
109
|
if (version === void 0) {
|
|
110
|
-
version = '1.0.
|
|
110
|
+
version = '1.0.103';
|
|
111
111
|
}
|
|
112
112
|
if (basicLibraryVersion === void 0) {
|
|
113
113
|
basicLibraryVersion = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
2
2
|
declare const _default: {
|
|
3
|
+
icon: string;
|
|
3
4
|
snippets: IPublicTypeSnippet[];
|
|
4
5
|
componentName: string;
|
|
5
6
|
uri?: string;
|
|
6
7
|
title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
|
|
7
|
-
icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
|
|
8
8
|
tags?: string[];
|
|
9
9
|
description?: string;
|
|
10
10
|
docUrl?: string;
|
|
@@ -4,6 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
+
var SEARCH_ICON = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiLz48bGluZSB4MT0iMjEiIHkxPSIyMSIgeDI9IjE2LjY1IiB5Mj0iMTYuNjUiLz48L3N2Zz4=';
|
|
7
8
|
var ProSearchMeta = {
|
|
8
9
|
componentName: 'ProSearch',
|
|
9
10
|
title: '查询条件',
|
|
@@ -220,7 +221,7 @@ var ProSearchMeta = {
|
|
|
220
221
|
};
|
|
221
222
|
var snippets = [{
|
|
222
223
|
title: '查询条件',
|
|
223
|
-
screenshot:
|
|
224
|
+
screenshot: SEARCH_ICON,
|
|
224
225
|
schema: {
|
|
225
226
|
componentName: 'ProSearch',
|
|
226
227
|
props: {
|
|
@@ -233,5 +234,6 @@ var snippets = [{
|
|
|
233
234
|
}
|
|
234
235
|
}];
|
|
235
236
|
var _default = exports["default"] = (0, _extends2["default"])({}, ProSearchMeta, {
|
|
237
|
+
icon: SEARCH_ICON,
|
|
236
238
|
snippets: snippets
|
|
237
239
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openli1115/lowcode-edit-pro-table",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.103",
|
|
4
4
|
"description": "@openli1115/lowcode-edit-pro-table",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
},
|
|
102
102
|
"componentConfig": {
|
|
103
103
|
"isComponentLibrary": true,
|
|
104
|
-
"materialSchema": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.
|
|
104
|
+
"materialSchema": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.103/build/lowcode/assets-prod.json"
|
|
105
105
|
},
|
|
106
106
|
"lcMeta": {
|
|
107
107
|
"type": "component"
|
|
108
108
|
},
|
|
109
|
-
"homepage": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.
|
|
109
|
+
"homepage": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.103/build/index.html"
|
|
110
110
|
}
|