kmkf-work-order-service-component 0.4.0-alpha.4 → 0.4.0-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,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { FormProps } from 'antd';
2
3
  import 'moment/locale/zh-cn';
3
4
  import './index.less';
4
5
  interface Option {
@@ -17,6 +18,7 @@ declare type FormRenderProps = {
17
18
  buyerNick?: string;
18
19
  platform?: string;
19
20
  templateList?: Option[];
21
+ formProps: FormProps;
20
22
  onTemplateChange?: (p: string) => any;
21
23
  onFormSubmitSuccess?: <T>(p: T) => void;
22
24
  };
@@ -90,7 +90,9 @@ var FormRender = function FormRender(props, ref) {
90
90
  record = props.record,
91
91
  templateList = props.templateList,
92
92
  onFormSubmitSuccess = props.onFormSubmitSuccess,
93
- onTemplateChange = props.onTemplateChange;
93
+ onTemplateChange = props.onTemplateChange,
94
+ _props$formProps = props.formProps,
95
+ formProps = _props$formProps === void 0 ? {} : _props$formProps;
94
96
 
95
97
  var _useState = useState(false),
96
98
  _useState2 = _slicedToArray(_useState, 2),
@@ -678,7 +680,7 @@ var FormRender = function FormRender(props, ref) {
678
680
  children: ["\u63D0\u793A\uFF1A\u8BE5", COMPONENT_MAP_NAME[key], "\u9488\u5BF9\u6B64\u6A21\u677F\u5DF2\u521B\u5EFA\u8FC7", replaceValue[key], "\u6761\u5DE5\u5355\uFF01"]
679
681
  });
680
682
  })
681
- }), /*#__PURE__*/_jsxs(Form, {
683
+ }), /*#__PURE__*/_jsxs(Form, _objectSpread(_objectSpread({
682
684
  form: form,
683
685
  labelCol: {
684
686
  span: 6
@@ -686,7 +688,8 @@ var FormRender = function FormRender(props, ref) {
686
688
  wrapperCol: {
687
689
  span: 18
688
690
  },
689
- className: "customizeFormModalClassName",
691
+ className: "customizeFormModalClassName"
692
+ }, formProps), {}, {
690
693
  children: [!templateId && /*#__PURE__*/_jsx(Form.Item, {
691
694
  label: "\u6A21\u677F\u540D\u79F0",
692
695
  required: true,
@@ -705,7 +708,7 @@ var FormRender = function FormRender(props, ref) {
705
708
  look: look,
706
709
  handleChangeShopId: setShopId
707
710
  }), finalFormItems]
708
- })]
711
+ }))]
709
712
  })
710
713
  });
711
714
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kmkf-work-order-service-component",
3
- "version": "0.4.0-alpha.4",
3
+ "version": "0.4.0-alpha.5",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",