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 +15 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +18 -11
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/index.js +10 -4
- package/es/materials/sxp/popup/AppointForm/index.js +3 -1
- package/lib/core/components/SxpPageRender/index.js +10 -4
- package/lib/materials/sxp/popup/AppointForm/index.js +3 -1
- package/package.json +3 -1
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,
|
@@ -12775,7 +12777,7 @@ var Tagbar$1 = memo(Tagbar);
|
|
12775
12777
|
* @Author: binruan@chatlabs.com
|
12776
12778
|
* @Date: 2024-01-15 19:03:09
|
12777
12779
|
* @LastEditors: binruan@chatlabs.com
|
12778
|
-
* @LastEditTime: 2024-05-20
|
12780
|
+
* @LastEditTime: 2024-05-20 19:26:50
|
12779
12781
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12780
12782
|
*
|
12781
12783
|
*/
|
@@ -12835,23 +12837,29 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12835
12837
|
};
|
12836
12838
|
const firstRef = useRef();
|
12837
12839
|
useEffect(() => {
|
12838
|
-
|
12840
|
+
var _a, _b, _c;
|
12841
|
+
if (!firstRef.current && !videoRef && (playerRef === null || playerRef === void 0 ? void 0 : playerRef.current) && (data === null || data === void 0 ? void 0 : data.length) > 0) {
|
12839
12842
|
firstRef.current = true;
|
12840
12843
|
const player = TCPlayer('player-container-id', {
|
12841
12844
|
licenseUrl, // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl
|
12842
12845
|
controls: false,
|
12843
|
-
autoplay: false,
|
12844
12846
|
loop: false,
|
12847
|
+
autoplay: true,
|
12845
12848
|
muted: true,
|
12846
12849
|
preload: 'auto',
|
12847
12850
|
posterImage: false,
|
12848
|
-
bigPlayButton: true
|
12851
|
+
bigPlayButton: true,
|
12852
|
+
sources: [
|
12853
|
+
{
|
12854
|
+
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 : ''
|
12855
|
+
}
|
12856
|
+
]
|
12849
12857
|
});
|
12850
12858
|
player === null || player === void 0 ? void 0 : player.ready(() => {
|
12851
12859
|
setVideoRef(player);
|
12852
12860
|
});
|
12853
12861
|
}
|
12854
|
-
}, [videoRef, licenseUrl]);
|
12862
|
+
}, [videoRef, licenseUrl, data]);
|
12855
12863
|
useEffect(() => {
|
12856
12864
|
if (!isInit)
|
12857
12865
|
handleH5EnterLink();
|