@teamias/rex-design 0.0.32 → 0.0.34

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.
@@ -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);
@@ -1,4 +1,4 @@
1
- var _excluded = ["valueType", "label", "defaultValue", "childWidths", "fieldProps", "formItemProps"],
1
+ var _excluded = ["valueType", "label", "defaultValue", "childWidths", "fieldProps", "formItemProps", "params", "defaultParams"],
2
2
  _excluded2 = ["formItemProps", "fieldProps"],
3
3
  _excluded3 = ["formItemProps", "fieldProps", "name"],
4
4
  _excluded4 = ["formItemProps", "fieldProps"],
@@ -77,6 +77,8 @@ export var renderComponentNode = function renderComponentNode(outConfig, values,
77
77
  childWidths = _outConfig$item$child === void 0 ? [] : _outConfig$item$child,
78
78
  rawFieldProps = _outConfig$item.fieldProps,
79
79
  rawFormItemProps = _outConfig$item.formItemProps,
80
+ params = _outConfig$item.params,
81
+ defaultParams = _outConfig$item.defaultParams,
80
82
  otherProps = _objectWithoutProperties(_outConfig$item, _excluded),
81
83
  requestOptions = outConfig.requestOptions,
82
84
  itemWidth = outConfig.itemWidth,
@@ -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;}}"]);
@@ -54,7 +54,7 @@ export interface IBaseFormFieldItem<T extends TValueType = TValueType> {
54
54
  /** 必填项 */
55
55
  required?: boolean;
56
56
  /** 文案 */
57
- label?: string;
57
+ label?: string | ReactNode;
58
58
  /**
59
59
  * 单一组件,组合组件
60
60
  * - valueType = multipleComponents 类型的时候不需要
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamias/rex-design",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",