pb-sxp-ui 1.0.67 → 1.0.68

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.
package/dist/index.js CHANGED
@@ -5,6 +5,7 @@ import React, { useContext, useMemo, createContext, memo, useState, useRef, useE
5
5
  import qs from 'qs';
6
6
  import EventEmitter from 'eventemitter3';
7
7
  import { css } from '@emotion/css';
8
+ import { BetaSchemaForm } from '@ant-design/pro-components';
8
9
  import * as ReactDOM from 'react-dom';
9
10
 
10
11
  /******************************************************************************
@@ -1159,7 +1160,7 @@ const AppointForm$1 = (_a) => {
1159
1160
  key: '4'
1160
1161
  }
1161
1162
  ], []);
1162
- useMemo(() => {
1163
+ const columnsData = useMemo(() => {
1163
1164
  if (layoutType === undefined) {
1164
1165
  const list = cloneDeep(columns) || defaultColumns;
1165
1166
  return list === null || list === void 0 ? void 0 : list.map((obj) => (Object.assign(Object.assign({}, obj), { title: undefined, fieldProps: { placeholder: obj === null || obj === void 0 ? void 0 : obj.title } })));
@@ -1202,7 +1203,8 @@ const AppointForm$1 = (_a) => {
1202
1203
  return (React.createElement("div", { className: 'pb-appoint-form' },
1203
1204
  React.createElement("div", { className: `pb-appoint-form-title ${css(Object.assign({}, textStyle))}` }, title),
1204
1205
  React.createElement("div", Object.assign({ className: css(Object.assign({}, style)) }, props),
1205
- React.createElement("div", { className: 'pb-appoint-form-container' })),
1206
+ React.createElement("div", { className: 'pb-appoint-form-container' },
1207
+ React.createElement(BetaSchemaForm, { columns: columnsData, submitter: false, layout: layoutType, autoFocusFirstInput: false, size: 'large', formRef: formRef, className: 'panel-reset' }))),
1206
1208
  React.createElement("div", { className: 'pb-appoint-form-btn-wrapper' },
1207
1209
  React.createElement("button", { onClick: handleSubmit, className: 'pb-appoint-form-btn', style: {
1208
1210
  color: submitColor,