pb-sxp-ui 1.0.67 → 1.0.69

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.cjs CHANGED
@@ -9,6 +9,7 @@ var React = require('react');
9
9
  var qs = require('qs');
10
10
  var EventEmitter = require('eventemitter3');
11
11
  var css = require('@emotion/css');
12
+ var proComponents = require('@ant-design/pro-components');
12
13
  var ReactDOM = require('react-dom');
13
14
 
14
15
  function _interopNamespaceDefault(e) {
@@ -1182,7 +1183,7 @@ const AppointForm$1 = (_a) => {
1182
1183
  key: '4'
1183
1184
  }
1184
1185
  ], []);
1185
- React.useMemo(() => {
1186
+ const columnsData = React.useMemo(() => {
1186
1187
  if (layoutType === undefined) {
1187
1188
  const list = lodash.cloneDeep(columns) || defaultColumns;
1188
1189
  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 } })));
@@ -1225,7 +1226,8 @@ const AppointForm$1 = (_a) => {
1225
1226
  return (React.createElement("div", { className: 'pb-appoint-form' },
1226
1227
  React.createElement("div", { className: `pb-appoint-form-title ${css.css(Object.assign({}, textStyle))}` }, title),
1227
1228
  React.createElement("div", Object.assign({ className: css.css(Object.assign({}, style)) }, props),
1228
- React.createElement("div", { className: 'pb-appoint-form-container' })),
1229
+ React.createElement("div", { className: 'pb-appoint-form-container' },
1230
+ React.createElement(proComponents.BetaSchemaForm, { columns: columnsData, submitter: false, layout: layoutType, autoFocusFirstInput: false, size: 'large', formRef: formRef, className: 'panel-reset' }))),
1229
1231
  React.createElement("div", { className: 'pb-appoint-form-btn-wrapper' },
1230
1232
  React.createElement("button", { onClick: handleSubmit, className: 'pb-appoint-form-btn', style: {
1231
1233
  color: submitColor,
@@ -12798,7 +12800,7 @@ var Tagbar$1 = React.memo(Tagbar);
12798
12800
  * @Author: binruan@chatlabs.com
12799
12801
  * @Date: 2024-01-15 19:03:09
12800
12802
  * @LastEditors: binruan@chatlabs.com
12801
- * @LastEditTime: 2024-05-20 10:04:39
12803
+ * @LastEditTime: 2024-05-20 19:26:50
12802
12804
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12803
12805
  *
12804
12806
  */
@@ -12858,23 +12860,29 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12858
12860
  };
12859
12861
  const firstRef = React.useRef();
12860
12862
  React.useEffect(() => {
12861
- if (!firstRef.current && !videoRef && (playerRef === null || playerRef === void 0 ? void 0 : playerRef.current)) {
12863
+ var _a, _b, _c;
12864
+ if (!firstRef.current && !videoRef && (playerRef === null || playerRef === void 0 ? void 0 : playerRef.current) && (data === null || data === void 0 ? void 0 : data.length) > 0) {
12862
12865
  firstRef.current = true;
12863
12866
  const player = TCPlayer('player-container-id', {
12864
12867
  licenseUrl, // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl
12865
12868
  controls: false,
12866
- autoplay: false,
12867
12869
  loop: false,
12870
+ autoplay: true,
12868
12871
  muted: true,
12869
12872
  preload: 'auto',
12870
12873
  posterImage: false,
12871
- bigPlayButton: true
12874
+ bigPlayButton: true,
12875
+ sources: [
12876
+ {
12877
+ src: (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data[0]) === null || _a === void 0 ? void 0 : _a.video) === null || _b === void 0 ? void 0 : _b.url) !== null && _c !== void 0 ? _c : ''
12878
+ }
12879
+ ]
12872
12880
  });
12873
12881
  player === null || player === void 0 ? void 0 : player.ready(() => {
12874
12882
  setVideoRef(player);
12875
12883
  });
12876
12884
  }
12877
- }, [videoRef, licenseUrl]);
12885
+ }, [videoRef, licenseUrl, data]);
12878
12886
  React.useEffect(() => {
12879
12887
  if (!isInit)
12880
12888
  handleH5EnterLink();