@teamias/rex-design 0.0.31 → 0.0.33
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.
|
@@ -21,7 +21,8 @@ export var BaseDescriptions = function BaseDescriptions(_ref) {
|
|
|
21
21
|
}, otherProps), {}, {
|
|
22
22
|
items: items === null || items === void 0 ? void 0 : items.map(function (item, index) {
|
|
23
23
|
try {
|
|
24
|
-
var children
|
|
24
|
+
var _item$children;
|
|
25
|
+
var children = useDataCellRender ? ((_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.map(function (topItem, topIndex) {
|
|
25
26
|
return /*#__PURE__*/_jsx(DataCell, {
|
|
26
27
|
items: topItem,
|
|
27
28
|
onClick: function onClick(cellItem, subItem) {
|
|
@@ -34,7 +35,7 @@ export var BaseDescriptions = function BaseDescriptions(_ref) {
|
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
37
|
}, topIndex);
|
|
37
|
-
}) : item.children || '';
|
|
38
|
+
})) || '-' : item.children || '-';
|
|
38
39
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
39
40
|
key: "".concat(index),
|
|
40
41
|
children: children
|
|
@@ -215,7 +215,26 @@ export default (function () {
|
|
|
215
215
|
valueType: 'datePicker',
|
|
216
216
|
field: 'datePicker',
|
|
217
217
|
label: 'datePicker',
|
|
218
|
+
defaultValue: '2025-05-05',
|
|
219
|
+
dependenciesV2: [{
|
|
220
|
+
field: 'switch',
|
|
221
|
+
action: 'show',
|
|
222
|
+
op: 'eq',
|
|
223
|
+
target: true
|
|
224
|
+
}]
|
|
225
|
+
}, {
|
|
226
|
+
valueType: 'datePicker',
|
|
227
|
+
field: 'datePicker2',
|
|
228
|
+
label: 'datePicker2',
|
|
218
229
|
defaultValue: '2025-05-05'
|
|
230
|
+
// dependenciesV2: [
|
|
231
|
+
// {
|
|
232
|
+
// field: 'switch',
|
|
233
|
+
// action: 'show',
|
|
234
|
+
// op: 'eq',
|
|
235
|
+
// target: true,
|
|
236
|
+
// }
|
|
237
|
+
// ],
|
|
219
238
|
}];
|
|
220
239
|
var initialValues = getFieldsDefaultValues(fields);
|
|
221
240
|
// console.log(initialValues);
|
|
@@ -8,4 +8,4 @@ export var BaseFormStyle = createGlobalStyle([".base-form-field-group{display:fl
|
|
|
8
8
|
export var DescriptionsStyle = styled.div.withConfig({
|
|
9
9
|
displayName: "DescriptionsStyle",
|
|
10
10
|
componentId: "rex-design-aaf4__sc-1e1tacy-0"
|
|
11
|
-
})([".ant-descriptions-view{overflow:auto;}.ant-form-item-additional{position:absolute;}"]);
|
|
11
|
+
})([".ant-descriptions-view{overflow:auto;}.ant-form-item-additional{position:absolute;}.ant-descriptions-row{th.ant-descriptions-item-label:has( + td.ant-descriptions-item-content > span:empty ){display:none;}td.ant-descriptions-item-content:has(> span:empty){display:none;}}"]);
|