ydb-components-material 0.1.185 → 0.1.187
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.37b0db65.js +1 -0
- package/build/docs/{umi.caa81e44.css → umi.3eff16b8.css} +1 -1
- 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 +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +1 -1
- package/dist/BizComps.js.map +1 -1
- package/es/components/file-list/item.js +2 -1
- package/es/components/file-list/item.scss +57 -1
- package/es/components/scene-tree/index.js +2 -1
- package/lib/components/file-list/item.js +2 -1
- package/lib/components/file-list/item.scss +57 -1
- package/lib/components/scene-tree/index.js +2 -1
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
- package/build/docs/umi.de809743.js +0 -1
|
@@ -174,6 +174,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
174
174
|
var _useState9 = useState(false),
|
|
175
175
|
isShowMaterialPreview = _useState9[0],
|
|
176
176
|
setIsShowMaterialPreview = _useState9[1];
|
|
177
|
+
// 测试数据:materialLib(联调/预览用,上线前请移除)
|
|
177
178
|
var _useState0 = useState([]),
|
|
178
179
|
materialLib = _useState0[0],
|
|
179
180
|
setMaterialLib = _useState0[1];
|
|
@@ -1165,7 +1166,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
1165
1166
|
}), "\u4E0B\u8F7D")), isShowMaterialLib && /*#__PURE__*/React.createElement("div", {
|
|
1166
1167
|
className: "material_lib"
|
|
1167
1168
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1168
|
-
className: "material_lib_content"
|
|
1169
|
+
className: "material_lib_content" + (isPC ? '_pc' : '')
|
|
1169
1170
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1170
1171
|
className: "material_lib_title"
|
|
1171
1172
|
}, "\u9009\u62E9\u6750\u6599"), /*#__PURE__*/React.createElement("div", {
|
|
@@ -263,7 +263,8 @@
|
|
|
263
263
|
z-index: 88;
|
|
264
264
|
background-color: rgba(0, 0, 0, 0.5);
|
|
265
265
|
|
|
266
|
-
.material_lib_content
|
|
266
|
+
.material_lib_content,
|
|
267
|
+
.material_lib_content_pc {
|
|
267
268
|
width: 100%;
|
|
268
269
|
position: absolute;
|
|
269
270
|
bottom: 0;
|
|
@@ -373,6 +374,61 @@
|
|
|
373
374
|
}
|
|
374
375
|
}
|
|
375
376
|
|
|
377
|
+
// PC 端:材料库弹窗居中显示
|
|
378
|
+
.material_lib_content_pc {
|
|
379
|
+
width: 600px;
|
|
380
|
+
height: 500px;
|
|
381
|
+
max-width: 80vw;
|
|
382
|
+
position: absolute;
|
|
383
|
+
top: 50%;
|
|
384
|
+
left: 50% !important;
|
|
385
|
+
transform: translate(-50%, -50%);
|
|
386
|
+
border-radius: 8px !important;
|
|
387
|
+
overflow: hidden;
|
|
388
|
+
background-color: #FFFFFF !important;
|
|
389
|
+
padding: 24px;
|
|
390
|
+
// overflow-y: auto;
|
|
391
|
+
|
|
392
|
+
.material_lib_title {
|
|
393
|
+
text-align: left !important;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.list {
|
|
397
|
+
max-height: 300px !important;
|
|
398
|
+
overflow-y: auto;
|
|
399
|
+
background-color: #FFFFFF !important;
|
|
400
|
+
padding: 0 !important;
|
|
401
|
+
margin-bottom: 100px !important;
|
|
402
|
+
|
|
403
|
+
.item {
|
|
404
|
+
padding: 24px 0 !important;
|
|
405
|
+
border-bottom: 1px dashed #E5E5E5
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.more {
|
|
410
|
+
margin-bottom: 0;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.bottom_btn {
|
|
414
|
+
position: static;
|
|
415
|
+
border-radius: 0 0 16px 16px;
|
|
416
|
+
justify-content: flex-end !important;
|
|
417
|
+
padding-right: 8px;
|
|
418
|
+
|
|
419
|
+
.btn {
|
|
420
|
+
margin-right: 16px;
|
|
421
|
+
width: 100px !important;
|
|
422
|
+
height: 40px !important;
|
|
423
|
+
border-radius: 4px !important;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.ok {
|
|
427
|
+
background: #1678FF !important;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
376
432
|
.preview {
|
|
377
433
|
width: 100%;
|
|
378
434
|
height: 100%;
|
|
@@ -129,8 +129,9 @@ var SceneTree = function SceneTree(_ref) {
|
|
|
129
129
|
var curOption = repeatQuestion.options.find(function (r) {
|
|
130
130
|
return o.groupId ? r.groupId === o.groupId : r.id === o.id;
|
|
131
131
|
});
|
|
132
|
+
console.log('curOption--', o, curOption);
|
|
132
133
|
if (curOption) {
|
|
133
|
-
curOption.children.forEach(function (child) {
|
|
134
|
+
(curOption.children || []).forEach(function (child) {
|
|
134
135
|
if (!o.children.find(function (c) {
|
|
135
136
|
return child.groupId ? c.groupId === child.groupId : c.id === child.id;
|
|
136
137
|
})) {
|
|
@@ -180,6 +180,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
180
180
|
var _useState9 = (0, _react.useState)(false),
|
|
181
181
|
isShowMaterialPreview = _useState9[0],
|
|
182
182
|
setIsShowMaterialPreview = _useState9[1];
|
|
183
|
+
// 测试数据:materialLib(联调/预览用,上线前请移除)
|
|
183
184
|
var _useState0 = (0, _react.useState)([]),
|
|
184
185
|
materialLib = _useState0[0],
|
|
185
186
|
setMaterialLib = _useState0[1];
|
|
@@ -1171,7 +1172,7 @@ var FileItem = function FileItem(_ref) {
|
|
|
1171
1172
|
}), "\u4E0B\u8F7D")), isShowMaterialLib && /*#__PURE__*/_react["default"].createElement("div", {
|
|
1172
1173
|
className: "material_lib"
|
|
1173
1174
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
1174
|
-
className: "material_lib_content"
|
|
1175
|
+
className: "material_lib_content" + (isPC ? '_pc' : '')
|
|
1175
1176
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
1176
1177
|
className: "material_lib_title"
|
|
1177
1178
|
}, "\u9009\u62E9\u6750\u6599"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -263,7 +263,8 @@
|
|
|
263
263
|
z-index: 88;
|
|
264
264
|
background-color: rgba(0, 0, 0, 0.5);
|
|
265
265
|
|
|
266
|
-
.material_lib_content
|
|
266
|
+
.material_lib_content,
|
|
267
|
+
.material_lib_content_pc {
|
|
267
268
|
width: 100%;
|
|
268
269
|
position: absolute;
|
|
269
270
|
bottom: 0;
|
|
@@ -373,6 +374,61 @@
|
|
|
373
374
|
}
|
|
374
375
|
}
|
|
375
376
|
|
|
377
|
+
// PC 端:材料库弹窗居中显示
|
|
378
|
+
.material_lib_content_pc {
|
|
379
|
+
width: 600px;
|
|
380
|
+
height: 500px;
|
|
381
|
+
max-width: 80vw;
|
|
382
|
+
position: absolute;
|
|
383
|
+
top: 50%;
|
|
384
|
+
left: 50% !important;
|
|
385
|
+
transform: translate(-50%, -50%);
|
|
386
|
+
border-radius: 8px !important;
|
|
387
|
+
overflow: hidden;
|
|
388
|
+
background-color: #FFFFFF !important;
|
|
389
|
+
padding: 24px;
|
|
390
|
+
// overflow-y: auto;
|
|
391
|
+
|
|
392
|
+
.material_lib_title {
|
|
393
|
+
text-align: left !important;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.list {
|
|
397
|
+
max-height: 300px !important;
|
|
398
|
+
overflow-y: auto;
|
|
399
|
+
background-color: #FFFFFF !important;
|
|
400
|
+
padding: 0 !important;
|
|
401
|
+
margin-bottom: 100px !important;
|
|
402
|
+
|
|
403
|
+
.item {
|
|
404
|
+
padding: 24px 0 !important;
|
|
405
|
+
border-bottom: 1px dashed #E5E5E5
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.more {
|
|
410
|
+
margin-bottom: 0;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.bottom_btn {
|
|
414
|
+
position: static;
|
|
415
|
+
border-radius: 0 0 16px 16px;
|
|
416
|
+
justify-content: flex-end !important;
|
|
417
|
+
padding-right: 8px;
|
|
418
|
+
|
|
419
|
+
.btn {
|
|
420
|
+
margin-right: 16px;
|
|
421
|
+
width: 100px !important;
|
|
422
|
+
height: 40px !important;
|
|
423
|
+
border-radius: 4px !important;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.ok {
|
|
427
|
+
background: #1678FF !important;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
376
432
|
.preview {
|
|
377
433
|
width: 100%;
|
|
378
434
|
height: 100%;
|
|
@@ -135,8 +135,9 @@ var SceneTree = function SceneTree(_ref) {
|
|
|
135
135
|
var curOption = repeatQuestion.options.find(function (r) {
|
|
136
136
|
return o.groupId ? r.groupId === o.groupId : r.id === o.id;
|
|
137
137
|
});
|
|
138
|
+
console.log('curOption--', o, curOption);
|
|
138
139
|
if (curOption) {
|
|
139
|
-
curOption.children.forEach(function (child) {
|
|
140
|
+
(curOption.children || []).forEach(function (child) {
|
|
140
141
|
if (!o.children.find(function (c) {
|
|
141
142
|
return child.groupId ? c.groupId === child.groupId : c.id === child.id;
|
|
142
143
|
})) {
|
package/lowcode_es/meta.js
CHANGED
|
@@ -98,7 +98,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
98
98
|
packageName = 'ydb-components-material';
|
|
99
99
|
}
|
|
100
100
|
if (version === void 0) {
|
|
101
|
-
version = '0.1.
|
|
101
|
+
version = '0.1.187';
|
|
102
102
|
}
|
|
103
103
|
if (basicLibraryVersion === void 0) {
|
|
104
104
|
basicLibraryVersion = {
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -103,7 +103,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
103
103
|
packageName = 'ydb-components-material';
|
|
104
104
|
}
|
|
105
105
|
if (version === void 0) {
|
|
106
|
-
version = '0.1.
|
|
106
|
+
version = '0.1.187';
|
|
107
107
|
}
|
|
108
108
|
if (basicLibraryVersion === void 0) {
|
|
109
109
|
basicLibraryVersion = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ydb-components-material",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.187",
|
|
4
4
|
"description": "ydb-components-material",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -102,10 +102,10 @@
|
|
|
102
102
|
},
|
|
103
103
|
"componentConfig": {
|
|
104
104
|
"isComponentLibrary": true,
|
|
105
|
-
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.
|
|
105
|
+
"materialSchema": "https://unpkg.com/ydb-components-material@0.1.187/build/lowcode/assets-prod.json"
|
|
106
106
|
},
|
|
107
107
|
"lcMeta": {
|
|
108
108
|
"type": "component"
|
|
109
109
|
},
|
|
110
|
-
"homepage": "https://unpkg.com/ydb-components-material@0.1.
|
|
110
|
+
"homepage": "https://unpkg.com/ydb-components-material@0.1.187/build/index.html"
|
|
111
111
|
}
|