@zat-design/sisyphus-react 4.0.4 → 4.0.5

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.
@@ -36,8 +36,6 @@ export interface ProDrawerFormType {
36
36
  okLoading?: boolean;
37
37
  /** @name 确认按钮禁用状态 */
38
38
  okDisabled?: boolean;
39
- /** @name 显示方式 (废弃) */
40
- showType?: ShowType;
41
39
  /** @name 显示方式 */
42
40
  mode?: ShowType;
43
41
  /** @name 尺寸 */
@@ -75,54 +75,54 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
75
75
  confirm?: boolean | import("antd").ModalFuncProps | import("../../../render/propsType").FunctionArgs<any, boolean | import("antd").ModalFuncProps>;
76
76
  show?: boolean | ReactiveFunction<any, boolean>;
77
77
  component?: React.ReactNode | ReactiveFunction<any, React.ReactNode>;
78
+ className?: string;
78
79
  trim?: boolean;
79
80
  normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
80
81
  children?: React.ReactNode | ((form: FormInstance<any>) => React.ReactNode);
81
- vertical?: boolean;
82
- id?: string;
83
- className?: string;
84
- hidden?: boolean;
82
+ isView?: boolean;
85
83
  style?: React.CSSProperties;
86
- onReset?: () => void;
87
84
  prefixCls?: string;
88
85
  rootClassName?: string;
89
- status?: "" | "success" | "error" | "warning" | "validating";
86
+ id?: string;
87
+ vertical?: boolean;
88
+ status?: "" | "error" | "success" | "warning" | "validating";
89
+ hidden?: boolean;
90
+ onReset?: () => void;
91
+ htmlFor?: string;
92
+ valueType?: import("../../../render/propsType").ProFormValueType;
90
93
  trigger?: string;
91
- colon?: boolean;
92
- isView?: boolean;
94
+ viewRender?: (value: any, record: any, { form, index, namePath, }: {
95
+ [key: string]: any;
96
+ form: FormInstance<any>;
97
+ index?: number;
98
+ }) => string | React.ReactElement<any, any>;
93
99
  desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
94
- getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
95
- htmlFor?: string;
100
+ layout?: import("antd/es/form/Form").FormItemLayout;
101
+ help?: React.ReactNode;
102
+ preserve?: boolean;
103
+ viewType?: import("../../../render/propsType").ViewType;
104
+ validateTrigger?: string | false | string[];
105
+ colon?: boolean;
96
106
  labelAlign?: import("antd/es/form/interface").FormLabelAlign;
97
107
  labelCol?: import("antd").ColProps;
98
108
  getValueFromEvent?: (...args: import("@rc-component/form/lib/interface").EventArgs) => any;
99
109
  shouldUpdate?: import("@rc-component/form/lib/Field").ShouldUpdate<any>;
100
- validateTrigger?: string | false | string[];
101
110
  validateDebounce?: number;
102
111
  valuePropName?: string;
112
+ getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
103
113
  messageVariables?: Record<string, string>;
104
114
  initialValue?: any;
105
115
  onMetaChange?: (meta: import("@rc-component/form/lib/Field").MetaEvent) => void;
106
- preserve?: boolean;
107
116
  isListField?: boolean;
108
117
  isList?: boolean;
109
118
  noStyle?: boolean;
110
119
  hasFeedback?: boolean | {
111
120
  icons: import("antd/es/form/FormItem").FeedbackIcons;
112
121
  };
113
- validateStatus?: "" | "success" | "error" | "warning" | "validating";
114
- layout?: import("antd/es/form/Form").FormItemLayout;
122
+ validateStatus?: "" | "error" | "success" | "warning" | "validating";
115
123
  wrapperCol?: import("antd").ColProps;
116
- help?: React.ReactNode;
117
124
  fieldId?: string;
118
- valueType?: import("../../../render/propsType").ProFormValueType;
119
125
  switchValue?: [any, any];
120
- viewRender?: (value: any, record: any, { form, index, namePath, }: {
121
- [key: string]: any;
122
- form: FormInstance<any>;
123
- index?: number;
124
- }) => string | React.ReactElement<any, any>;
125
- viewType?: import("../../../render/propsType").ViewType;
126
126
  upperCase?: boolean;
127
127
  toISOString?: boolean;
128
128
  toCSTString?: boolean;
@@ -141,7 +141,7 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
141
141
  * 创建组件属性
142
142
  */
143
143
  export declare const createComponentProps: (column: FlexibleGroupColumnType, formItemProps: any) => {
144
- componentProps: import("lodash").Omit<any, "format" | "valueType" | "switchValue" | "dependNames" | "toISOString" | "toCSTString" | "clearNotShow" | "precision">;
144
+ componentProps: import("lodash").Omit<any, "format" | "valueType" | "precision" | "switchValue" | "dependNames" | "toISOString" | "toCSTString" | "clearNotShow">;
145
145
  formItemTransform: {
146
146
  getValueProps: any;
147
147
  normalize: any;
@@ -738,7 +738,7 @@ var ProTreeModal = props => {
738
738
  okDisabled: disabled,
739
739
  open: state.open,
740
740
  title: title,
741
- showType: "Modal",
741
+ mode: "Modal",
742
742
  className: "pro-tree-modal-container",
743
743
  extraLeft: allValue !== undefined ? /*#__PURE__*/_jsx(Checkbox, {
744
744
  checked: state.checkAll,
@@ -15,6 +15,10 @@
15
15
  color: #939499;
16
16
  }
17
17
 
18
+ .@{ant-prefix}-input-disabled {
19
+ border-radius: 0 !important;
20
+ }
21
+
18
22
  .@{ant-prefix}-input-group-wrapper:hover {
19
23
  .pro-tree-modal-view-svg {
20
24
  color: var(--zaui-brand);
@@ -39,7 +39,7 @@ export var Example = props => {
39
39
  title: exampleTitle,
40
40
  width: "600",
41
41
  open: visible,
42
- showType: "Modal",
42
+ mode: "Modal",
43
43
  onCancel: handleCancel,
44
44
  modalProps: _objectSpread({}, exampleModalProps),
45
45
  disabled: true,
@@ -36,8 +36,6 @@ export interface ProDrawerFormType {
36
36
  okLoading?: boolean;
37
37
  /** @name 确认按钮禁用状态 */
38
38
  okDisabled?: boolean;
39
- /** @name 显示方式 (废弃) */
40
- showType?: ShowType;
41
39
  /** @name 显示方式 */
42
40
  mode?: ShowType;
43
41
  /** @name 尺寸 */
@@ -75,54 +75,54 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
75
75
  confirm?: boolean | import("antd").ModalFuncProps | import("../../../render/propsType").FunctionArgs<any, boolean | import("antd").ModalFuncProps>;
76
76
  show?: boolean | ReactiveFunction<any, boolean>;
77
77
  component?: React.ReactNode | ReactiveFunction<any, React.ReactNode>;
78
+ className?: string;
78
79
  trim?: boolean;
79
80
  normalize?: (value: any, prevValue: any, allValues: import("@rc-component/form/lib/interface").Store) => any;
80
81
  children?: React.ReactNode | ((form: FormInstance<any>) => React.ReactNode);
81
- vertical?: boolean;
82
- id?: string;
83
- className?: string;
84
- hidden?: boolean;
82
+ isView?: boolean;
85
83
  style?: React.CSSProperties;
86
- onReset?: () => void;
87
84
  prefixCls?: string;
88
85
  rootClassName?: string;
89
- status?: "" | "success" | "error" | "warning" | "validating";
86
+ id?: string;
87
+ vertical?: boolean;
88
+ status?: "" | "error" | "success" | "warning" | "validating";
89
+ hidden?: boolean;
90
+ onReset?: () => void;
91
+ htmlFor?: string;
92
+ valueType?: import("../../../render/propsType").ProFormValueType;
90
93
  trigger?: string;
91
- colon?: boolean;
92
- isView?: boolean;
94
+ viewRender?: (value: any, record: any, { form, index, namePath, }: {
95
+ [key: string]: any;
96
+ form: FormInstance<any>;
97
+ index?: number;
98
+ }) => string | React.ReactElement<any, any>;
93
99
  desensitization?: [number, number] | ReactiveFunction<any, [number, number]>;
94
- getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
95
- htmlFor?: string;
100
+ layout?: import("antd/es/form/Form").FormItemLayout;
101
+ help?: React.ReactNode;
102
+ preserve?: boolean;
103
+ viewType?: import("../../../render/propsType").ViewType;
104
+ validateTrigger?: string | false | string[];
105
+ colon?: boolean;
96
106
  labelAlign?: import("antd/es/form/interface").FormLabelAlign;
97
107
  labelCol?: import("antd").ColProps;
98
108
  getValueFromEvent?: (...args: import("@rc-component/form/lib/interface").EventArgs) => any;
99
109
  shouldUpdate?: import("@rc-component/form/lib/Field").ShouldUpdate<any>;
100
- validateTrigger?: string | false | string[];
101
110
  validateDebounce?: number;
102
111
  valuePropName?: string;
112
+ getValueProps?: ((value: any) => Record<string, unknown>) & ((value: any) => Record<string, unknown>);
103
113
  messageVariables?: Record<string, string>;
104
114
  initialValue?: any;
105
115
  onMetaChange?: (meta: import("@rc-component/form/lib/Field").MetaEvent) => void;
106
- preserve?: boolean;
107
116
  isListField?: boolean;
108
117
  isList?: boolean;
109
118
  noStyle?: boolean;
110
119
  hasFeedback?: boolean | {
111
120
  icons: import("antd/es/form/FormItem").FeedbackIcons;
112
121
  };
113
- validateStatus?: "" | "success" | "error" | "warning" | "validating";
114
- layout?: import("antd/es/form/Form").FormItemLayout;
122
+ validateStatus?: "" | "error" | "success" | "warning" | "validating";
115
123
  wrapperCol?: import("antd").ColProps;
116
- help?: React.ReactNode;
117
124
  fieldId?: string;
118
- valueType?: import("../../../render/propsType").ProFormValueType;
119
125
  switchValue?: [any, any];
120
- viewRender?: (value: any, record: any, { form, index, namePath, }: {
121
- [key: string]: any;
122
- form: FormInstance<any>;
123
- index?: number;
124
- }) => string | React.ReactElement<any, any>;
125
- viewType?: import("../../../render/propsType").ViewType;
126
126
  upperCase?: boolean;
127
127
  toISOString?: boolean;
128
128
  toCSTString?: boolean;
@@ -141,7 +141,7 @@ export declare const useFormItemProps: (column: FlexibleGroupColumnType, context
141
141
  * 创建组件属性
142
142
  */
143
143
  export declare const createComponentProps: (column: FlexibleGroupColumnType, formItemProps: any) => {
144
- componentProps: import("lodash").Omit<any, "format" | "valueType" | "switchValue" | "dependNames" | "toISOString" | "toCSTString" | "clearNotShow" | "precision">;
144
+ componentProps: import("lodash").Omit<any, "format" | "valueType" | "precision" | "switchValue" | "dependNames" | "toISOString" | "toCSTString" | "clearNotShow">;
145
145
  formItemTransform: {
146
146
  getValueProps: any;
147
147
  normalize: any;
@@ -745,7 +745,7 @@ var ProTreeModal = props => {
745
745
  okDisabled: disabled,
746
746
  open: state.open,
747
747
  title: title,
748
- showType: "Modal",
748
+ mode: "Modal",
749
749
  className: "pro-tree-modal-container",
750
750
  extraLeft: allValue !== undefined ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Checkbox, {
751
751
  checked: state.checkAll,
@@ -15,6 +15,10 @@
15
15
  color: #939499;
16
16
  }
17
17
 
18
+ .@{ant-prefix}-input-disabled {
19
+ border-radius: 0 !important;
20
+ }
21
+
18
22
  .@{ant-prefix}-input-group-wrapper:hover {
19
23
  .pro-tree-modal-view-svg {
20
24
  color: var(--zaui-brand);
@@ -47,7 +47,7 @@ var Example = props => {
47
47
  title: exampleTitle,
48
48
  width: "600",
49
49
  open: visible,
50
- showType: "Modal",
50
+ mode: "Modal",
51
51
  onCancel: handleCancel,
52
52
  modalProps: _objectSpread({}, exampleModalProps),
53
53
  disabled: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",