@zat-design/sisyphus-react 3.4.2-beta.28 → 3.4.2-beta.29

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.
@@ -176,7 +176,8 @@ var RenderFields = function RenderFields(props) {
176
176
  form: form,
177
177
  type: _type,
178
178
  hiddenNames: column.hiddenNames,
179
- colProps: _colProps
179
+ colProps: _colProps,
180
+ mode: componentProps.mode
180
181
  };
181
182
  if (outerClearNotShow !== false && show === false && (column === null || column === void 0 ? void 0 : column.name) && form.getFieldValue(column === null || column === void 0 ? void 0 : column.name)) {
182
183
  setTimeout(function () {
@@ -39,6 +39,7 @@ export interface ProFormOtherProps {
39
39
  disabled: boolean;
40
40
  show?: boolean | (() => boolean);
41
41
  required?: boolean | (() => boolean);
42
+ mode?: string;
42
43
  }
43
44
  export interface ProFormProps<Values = any> extends FormProps<Values> {
44
45
  disabled?: boolean;
@@ -1,28 +1,33 @@
1
1
  declare const _default: {
2
2
  /** 年月日 */
3
- date: ({ type, toISOString }: {
3
+ date: ({ type, toISOString, mode }: {
4
4
  type: any;
5
5
  toISOString: any;
6
+ mode: any;
6
7
  }) => {};
7
8
  /** 年月日 时分秒 */
8
- dateTime: ({ type, toISOString }: {
9
+ dateTime: ({ type, toISOString, mode }: {
9
10
  type: any;
10
11
  toISOString: any;
12
+ mode: any;
11
13
  }) => {};
12
14
  /** 年月日 00:00:00 */
13
- dateStartTime: ({ type, toISOString }: {
15
+ dateStartTime: ({ type, toISOString, mode }: {
14
16
  type: any;
15
17
  toISOString: any;
18
+ mode: any;
16
19
  }) => {};
17
20
  /** 年月日 23:59:59 */
18
- dateEndTime: ({ type, toISOString }: {
21
+ dateEndTime: ({ type, toISOString, mode }: {
19
22
  type: any;
20
23
  toISOString: any;
24
+ mode: any;
21
25
  }) => {};
22
26
  /** 年月日 00:00:00 ~ 年月日 23:59:59 */
23
- dateStartEndTime: ({ type, toISOString }: {
27
+ dateStartEndTime: ({ type, toISOString, mode }: {
24
28
  type: any;
25
29
  toISOString: any;
30
+ mode: any;
26
31
  }) => {};
27
32
  /** 百分比 */
28
33
  percentage: ({ type, valueType }: {
@@ -153,51 +153,61 @@ export default {
153
153
  /** 年月日 */
154
154
  date: function date(_ref3) {
155
155
  var type = _ref3.type,
156
- toISOString = _ref3.toISOString;
156
+ toISOString = _ref3.toISOString,
157
+ mode = _ref3.mode;
157
158
  return dateTransform({
158
159
  type: type,
159
160
  _valueType: 'date',
160
- toISOString: toISOString
161
+ toISOString: toISOString,
162
+ mode: mode
161
163
  });
162
164
  },
163
165
  /** 年月日 时分秒 */
164
166
  dateTime: function dateTime(_ref4) {
165
167
  var type = _ref4.type,
166
- toISOString = _ref4.toISOString;
168
+ toISOString = _ref4.toISOString,
169
+ mode = _ref4.mode;
167
170
  return dateTransform({
168
171
  type: type,
169
172
  _valueType: 'dateTime',
170
- toISOString: toISOString
173
+ toISOString: toISOString,
174
+ mode: mode
171
175
  });
172
176
  },
173
177
  /** 年月日 00:00:00 */
174
178
  dateStartTime: function dateStartTime(_ref5) {
175
179
  var type = _ref5.type,
176
- toISOString = _ref5.toISOString;
180
+ toISOString = _ref5.toISOString,
181
+ mode = _ref5.mode;
177
182
  return dateTransform({
178
183
  type: type,
179
184
  _valueType: 'dateStartTime',
180
- toISOString: toISOString
185
+ toISOString: toISOString,
186
+ mode: mode
181
187
  });
182
188
  },
183
189
  /** 年月日 23:59:59 */
184
190
  dateEndTime: function dateEndTime(_ref6) {
185
191
  var type = _ref6.type,
186
- toISOString = _ref6.toISOString;
192
+ toISOString = _ref6.toISOString,
193
+ mode = _ref6.mode;
187
194
  return dateTransform({
188
195
  type: type,
189
196
  _valueType: 'dateEndTime',
190
- toISOString: toISOString
197
+ toISOString: toISOString,
198
+ mode: mode
191
199
  });
192
200
  },
193
201
  /** 年月日 00:00:00 ~ 年月日 23:59:59 */
194
202
  dateStartEndTime: function dateStartEndTime(_ref7) {
195
203
  var type = _ref7.type,
196
- toISOString = _ref7.toISOString;
204
+ toISOString = _ref7.toISOString,
205
+ mode = _ref7.mode;
197
206
  return dateTransform({
198
207
  type: type,
199
208
  _valueType: 'dateStartEndTime',
200
- toISOString: toISOString
209
+ toISOString: toISOString,
210
+ mode: mode
201
211
  });
202
212
  },
203
213
  /** 百分比 */
@@ -184,7 +184,8 @@ var RenderFields = function RenderFields(props) {
184
184
  form: form,
185
185
  type: _type,
186
186
  hiddenNames: column.hiddenNames,
187
- colProps: _colProps
187
+ colProps: _colProps,
188
+ mode: componentProps.mode
188
189
  };
189
190
  if (outerClearNotShow !== false && show === false && (column === null || column === void 0 ? void 0 : column.name) && form.getFieldValue(column === null || column === void 0 ? void 0 : column.name)) {
190
191
  setTimeout(function () {
@@ -39,6 +39,7 @@ export interface ProFormOtherProps {
39
39
  disabled: boolean;
40
40
  show?: boolean | (() => boolean);
41
41
  required?: boolean | (() => boolean);
42
+ mode?: string;
42
43
  }
43
44
  export interface ProFormProps<Values = any> extends FormProps<Values> {
44
45
  disabled?: boolean;
@@ -1,28 +1,33 @@
1
1
  declare const _default: {
2
2
  /** 年月日 */
3
- date: ({ type, toISOString }: {
3
+ date: ({ type, toISOString, mode }: {
4
4
  type: any;
5
5
  toISOString: any;
6
+ mode: any;
6
7
  }) => {};
7
8
  /** 年月日 时分秒 */
8
- dateTime: ({ type, toISOString }: {
9
+ dateTime: ({ type, toISOString, mode }: {
9
10
  type: any;
10
11
  toISOString: any;
12
+ mode: any;
11
13
  }) => {};
12
14
  /** 年月日 00:00:00 */
13
- dateStartTime: ({ type, toISOString }: {
15
+ dateStartTime: ({ type, toISOString, mode }: {
14
16
  type: any;
15
17
  toISOString: any;
18
+ mode: any;
16
19
  }) => {};
17
20
  /** 年月日 23:59:59 */
18
- dateEndTime: ({ type, toISOString }: {
21
+ dateEndTime: ({ type, toISOString, mode }: {
19
22
  type: any;
20
23
  toISOString: any;
24
+ mode: any;
21
25
  }) => {};
22
26
  /** 年月日 00:00:00 ~ 年月日 23:59:59 */
23
- dateStartEndTime: ({ type, toISOString }: {
27
+ dateStartEndTime: ({ type, toISOString, mode }: {
24
28
  type: any;
25
29
  toISOString: any;
30
+ mode: any;
26
31
  }) => {};
27
32
  /** 百分比 */
28
33
  percentage: ({ type, valueType }: {
@@ -160,51 +160,61 @@ var _default = exports.default = {
160
160
  /** 年月日 */
161
161
  date: function date(_ref3) {
162
162
  var type = _ref3.type,
163
- toISOString = _ref3.toISOString;
163
+ toISOString = _ref3.toISOString,
164
+ mode = _ref3.mode;
164
165
  return dateTransform({
165
166
  type: type,
166
167
  _valueType: 'date',
167
- toISOString: toISOString
168
+ toISOString: toISOString,
169
+ mode: mode
168
170
  });
169
171
  },
170
172
  /** 年月日 时分秒 */
171
173
  dateTime: function dateTime(_ref4) {
172
174
  var type = _ref4.type,
173
- toISOString = _ref4.toISOString;
175
+ toISOString = _ref4.toISOString,
176
+ mode = _ref4.mode;
174
177
  return dateTransform({
175
178
  type: type,
176
179
  _valueType: 'dateTime',
177
- toISOString: toISOString
180
+ toISOString: toISOString,
181
+ mode: mode
178
182
  });
179
183
  },
180
184
  /** 年月日 00:00:00 */
181
185
  dateStartTime: function dateStartTime(_ref5) {
182
186
  var type = _ref5.type,
183
- toISOString = _ref5.toISOString;
187
+ toISOString = _ref5.toISOString,
188
+ mode = _ref5.mode;
184
189
  return dateTransform({
185
190
  type: type,
186
191
  _valueType: 'dateStartTime',
187
- toISOString: toISOString
192
+ toISOString: toISOString,
193
+ mode: mode
188
194
  });
189
195
  },
190
196
  /** 年月日 23:59:59 */
191
197
  dateEndTime: function dateEndTime(_ref6) {
192
198
  var type = _ref6.type,
193
- toISOString = _ref6.toISOString;
199
+ toISOString = _ref6.toISOString,
200
+ mode = _ref6.mode;
194
201
  return dateTransform({
195
202
  type: type,
196
203
  _valueType: 'dateEndTime',
197
- toISOString: toISOString
204
+ toISOString: toISOString,
205
+ mode: mode
198
206
  });
199
207
  },
200
208
  /** 年月日 00:00:00 ~ 年月日 23:59:59 */
201
209
  dateStartEndTime: function dateStartEndTime(_ref7) {
202
210
  var type = _ref7.type,
203
- toISOString = _ref7.toISOString;
211
+ toISOString = _ref7.toISOString,
212
+ mode = _ref7.mode;
204
213
  return dateTransform({
205
214
  type: type,
206
215
  _valueType: 'dateStartEndTime',
207
- toISOString: toISOString
216
+ toISOString: toISOString,
217
+ mode: mode
208
218
  });
209
219
  },
210
220
  /** 百分比 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.4.2-beta.28",
3
+ "version": "3.4.2-beta.29",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",