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/pb-ui.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('uuid'), require('pako'), require('react'), require('qs'), require('eventemitter3'), require('@emotion/css'), require('react-dom')) :
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'lodash', 'uuid', 'pako', 'react', 'qs', 'eventemitter3', '@emotion/css', 'react-dom'], factory) :
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.PUI = {}, global.lodash, global.uuid$1, global.pako, global.React, global.qs, global.EventEmitter, global.css, global.ReactDOM));
|
5
|
-
})(this, (function (exports, lodash, uuid$1, pako, React, qs, EventEmitter, css, ReactDOM) { 'use strict';
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('uuid'), require('pako'), require('react'), require('qs'), require('eventemitter3'), require('@emotion/css'), require('@ant-design/pro-components'), require('react-dom')) :
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'lodash', 'uuid', 'pako', 'react', 'qs', 'eventemitter3', '@emotion/css', '@ant-design/pro-components', 'react-dom'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.PUI = {}, global.lodash, global.uuid$1, global.pako, global.React, global.qs, global.EventEmitter, global.css, global.proComponents, global.ReactDOM));
|
5
|
+
})(this, (function (exports, lodash, uuid$1, pako, React, qs, EventEmitter, css, proComponents, ReactDOM) { 'use strict';
|
6
6
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
8
8
|
var n = Object.create(null);
|
@@ -1175,7 +1175,7 @@
|
|
1175
1175
|
key: '4'
|
1176
1176
|
}
|
1177
1177
|
], []);
|
1178
|
-
React.useMemo(() => {
|
1178
|
+
const columnsData = React.useMemo(() => {
|
1179
1179
|
if (layoutType === undefined) {
|
1180
1180
|
const list = lodash.cloneDeep(columns) || defaultColumns;
|
1181
1181
|
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 } })));
|
@@ -1218,7 +1218,8 @@
|
|
1218
1218
|
return (React.createElement("div", { className: 'pb-appoint-form' },
|
1219
1219
|
React.createElement("div", { className: `pb-appoint-form-title ${css.css(Object.assign({}, textStyle))}` }, title),
|
1220
1220
|
React.createElement("div", Object.assign({ className: css.css(Object.assign({}, style)) }, props),
|
1221
|
-
React.createElement("div", { className: 'pb-appoint-form-container' }
|
1221
|
+
React.createElement("div", { className: 'pb-appoint-form-container' },
|
1222
|
+
React.createElement(proComponents.BetaSchemaForm, { columns: columnsData, submitter: false, layout: layoutType, autoFocusFirstInput: false, size: 'large', formRef: formRef, className: 'panel-reset' }))),
|
1222
1223
|
React.createElement("div", { className: 'pb-appoint-form-btn-wrapper' },
|
1223
1224
|
React.createElement("button", { onClick: handleSubmit, className: 'pb-appoint-form-btn', style: {
|
1224
1225
|
color: submitColor,
|
@@ -12791,7 +12792,7 @@ Made in Italy` })));
|
|
12791
12792
|
* @Author: binruan@chatlabs.com
|
12792
12793
|
* @Date: 2024-01-15 19:03:09
|
12793
12794
|
* @LastEditors: binruan@chatlabs.com
|
12794
|
-
* @LastEditTime: 2024-05-20
|
12795
|
+
* @LastEditTime: 2024-05-20 19:26:50
|
12795
12796
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12796
12797
|
*
|
12797
12798
|
*/
|
@@ -12851,23 +12852,29 @@ Made in Italy` })));
|
|
12851
12852
|
};
|
12852
12853
|
const firstRef = React.useRef();
|
12853
12854
|
React.useEffect(() => {
|
12854
|
-
|
12855
|
+
var _a, _b, _c;
|
12856
|
+
if (!firstRef.current && !videoRef && (playerRef === null || playerRef === void 0 ? void 0 : playerRef.current) && (data === null || data === void 0 ? void 0 : data.length) > 0) {
|
12855
12857
|
firstRef.current = true;
|
12856
12858
|
const player = TCPlayer('player-container-id', {
|
12857
12859
|
licenseUrl, // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl
|
12858
12860
|
controls: false,
|
12859
|
-
autoplay: false,
|
12860
12861
|
loop: false,
|
12862
|
+
autoplay: true,
|
12861
12863
|
muted: true,
|
12862
12864
|
preload: 'auto',
|
12863
12865
|
posterImage: false,
|
12864
|
-
bigPlayButton: true
|
12866
|
+
bigPlayButton: true,
|
12867
|
+
sources: [
|
12868
|
+
{
|
12869
|
+
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 : ''
|
12870
|
+
}
|
12871
|
+
]
|
12865
12872
|
});
|
12866
12873
|
player === null || player === void 0 ? void 0 : player.ready(() => {
|
12867
12874
|
setVideoRef(player);
|
12868
12875
|
});
|
12869
12876
|
}
|
12870
|
-
}, [videoRef, licenseUrl]);
|
12877
|
+
}, [videoRef, licenseUrl, data]);
|
12871
12878
|
React.useEffect(() => {
|
12872
12879
|
if (!isInit)
|
12873
12880
|
handleH5EnterLink();
|