@teamias/rex-design 0.0.17 → 0.0.18

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.
@@ -14,9 +14,14 @@ import { getFieldsDefaultValues } from "../modules/handlerData";
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
16
16
  export default (function () {
17
+ var t = 'hidden';
17
18
  var _useStateData = useStateData(function () {
18
19
  return {
19
20
  fields: [{
21
+ valueType: 'hidden',
22
+ field: 'www.hidden',
23
+ initialValue: 'I am hidden'
24
+ }, {
20
25
  valueType: 'multipleComponents',
21
26
  compact: false,
22
27
  label: '尺寸',
@@ -5,7 +5,7 @@ import { ReactNode } from 'react';
5
5
  /** 组件props */
6
6
  export interface IBaseFormProps {
7
7
  /** 字段配置 */
8
- fields?: Array<TInputProps | TDateRangeProps | TSelectProps | TSelectInputProps | TSelectDimProps | TCustomProps | TSelectDateRangeProps | TCascaderProps | TTreeSelectProps | TCheckboxProps | TCheckboxGroupProps | TRadioGroupProps | TInputNumberProps | TInputNumberRangeProps | TTextAreaProps | TSelectRadioProps | TMultipleComponentsProps | TSwitchProps | TDatePickerProps>;
8
+ fields?: Array<TInputProps | TDateRangeProps | TSelectProps | TSelectInputProps | TSelectDimProps | TCustomProps | TSelectDateRangeProps | TCascaderProps | TTreeSelectProps | TCheckboxProps | TCheckboxGroupProps | TRadioGroupProps | TInputNumberProps | TInputNumberRangeProps | TTextAreaProps | TSelectRadioProps | TMultipleComponentsProps | TSwitchProps | TDatePickerProps | THiddenProps>;
9
9
  /** 字段对应的本地代码配置 */
10
10
  fieldProps?: Record<string, Exclude<IBaseFormProps['fields'], undefined>[number]>;
11
11
  /**
@@ -40,6 +40,7 @@ export type TTextAreaProps = IBaseFormFieldItem<'textArea'> & Omit<GetProps<type
40
40
  export type TSelectRadioProps = IBaseFormFieldItem<'selectRadio'> & Omit<GetProps<typeof ProFormSelect>, TOmitComponentItemType>;
41
41
  export type TSwitchProps = IBaseFormFieldItem<'switch'> & Omit<GetProps<typeof ProFormSwitch>, TOmitComponentItemType>;
42
42
  export type TDatePickerProps = IBaseFormFieldItem<'datePicker'> & Omit<GetProps<typeof ProFormDatePicker>, TOmitComponentItemType>;
43
+ export type THiddenProps = IBaseFormFieldItem<'hidden'> & Omit<GetProps<typeof ProFormText>, TOmitComponentItemType>;
43
44
  export type TSelectInputProps = IBaseFormFieldItem<'selectInput'> & Omit<GetProps<typeof ProFormText>, TOmitComponentItemType>;
44
45
  export type TSelectDateRangeProps = IBaseFormFieldItem<'selectDateRange'> & Omit<GetProps<typeof ProFormDateRangePicker>, TOmitComponentItemType>;
45
46
  export type TMultipleComponentsProps = IBaseFormFieldItem<'multipleComponents'> & GetProps<typeof Form.Item> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamias/rex-design",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",