@yilianjituan/yilian_dgerm 1.0.5-alpha.4 → 1.0.5-alpha.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.
@@ -1,6 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { MethodEnum } from '../../commonType/globalEnum';
3
3
  export interface IPageTemPropsData {
4
+ initialValues?: any;
5
+ formProps?: any;
4
6
  http: any;
5
7
  ref?: any;
6
8
  rowKey?: string;
@@ -56,7 +56,11 @@ var PageTemplate = function PageTemplate(props, ref) {
56
56
  exportApi = props.exportApi,
57
57
  _props$isScroll = props.isScroll,
58
58
  isScroll = _props$isScroll === void 0 ? true : _props$isScroll,
59
- buttonTheme = props.buttonTheme;
59
+ buttonTheme = props.buttonTheme,
60
+ _props$initialValues = props.initialValues,
61
+ initialValues = _props$initialValues === void 0 ? {} : _props$initialValues,
62
+ _props$formProps = props.formProps,
63
+ formProps = _props$formProps === void 0 ? {} : _props$formProps;
60
64
  var _useState = useState([]),
61
65
  _useState2 = _slicedToArray(_useState, 2),
62
66
  dataSource = _useState2[0],
@@ -383,12 +387,13 @@ var PageTemplate = function PageTemplate(props, ref) {
383
387
  return 'actions';
384
388
  }
385
389
  };
386
- return /*#__PURE__*/React.createElement(Form, {
390
+ return /*#__PURE__*/React.createElement(Form, _extends({
387
391
  layout: "inline",
388
392
  form: form,
389
393
  onFinish: beforeSearch,
390
- autoComplete: "off"
391
- }, /*#__PURE__*/React.createElement("div", {
394
+ autoComplete: "off",
395
+ initialValues: initialValues
396
+ }, formProps), /*#__PURE__*/React.createElement("div", {
392
397
  className: "filter-container"
393
398
  }, /*#__PURE__*/React.createElement("div", {
394
399
  className: "filter-box filter-box-base"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yilianjituan/yilian_dgerm",
3
- "version": "1.0.5-alpha.4",
3
+ "version": "1.0.5-alpha.5",
4
4
  "description": "A react library developed with dumi",
5
5
  "keywords": [
6
6
  "React",