@cloudbase/weda-ui 3.7.5 → 3.7.6
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/configs/components/wd-form-arr.d.ts +1 -1
- package/dist/configs/components/wd-form-arr.js +1 -1
- package/dist/configs/components/wd-select-multiple.js +2 -0
- package/dist/configs/index.d.ts +2 -2
- package/dist/configs/type-utils/type-form.js +5 -4
- package/dist/style/index.scss +1 -1
- package/dist/web/components/wd-textarea/wd-textarea.js +10 -5
- package/dist/web/components/wedaVideo/index.js +5 -0
- package/package.json +1 -1
|
@@ -38,11 +38,16 @@ export const WdTextarea = forwardRef(function WdTextarea(props, ref) {
|
|
|
38
38
|
const countCls = `${textareaWrap}__label ${root}-${classRoot}__count-text`;
|
|
39
39
|
const displayValue = (_a = (zhRef.current ? zhValue : value)) !== null && _a !== void 0 ? _a : '';
|
|
40
40
|
// 输入自动滚动
|
|
41
|
-
const autoScroll = function () {
|
|
42
|
-
if (!
|
|
41
|
+
const autoScroll = function (isManual) {
|
|
42
|
+
if (!textareaRef.current)
|
|
43
43
|
return;
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
if (!autoHeight) {
|
|
45
|
+
!isManual && (textareaRef.current.style.height = null);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
const height = getHeight(inputId);
|
|
49
|
+
textareaRef.current.style.height = height + 'px';
|
|
50
|
+
}
|
|
46
51
|
};
|
|
47
52
|
useEffect(() => {
|
|
48
53
|
autoScroll();
|
|
@@ -58,7 +63,7 @@ export const WdTextarea = forwardRef(function WdTextarea(props, ref) {
|
|
|
58
63
|
else {
|
|
59
64
|
onChangeForm(text);
|
|
60
65
|
(_a = events.change) === null || _a === void 0 ? void 0 : _a.call(events, { value: text }, { originEvent: e });
|
|
61
|
-
autoScroll();
|
|
66
|
+
autoScroll(true);
|
|
62
67
|
}
|
|
63
68
|
};
|
|
64
69
|
const onFocus = function (e) {
|
|
@@ -244,5 +244,10 @@ function processVideoJSEvents(player, events) {
|
|
|
244
244
|
duration,
|
|
245
245
|
}, { originEvent: e });
|
|
246
246
|
});
|
|
247
|
+
// ✅ 视频跳转到指定位置完成时触发
|
|
248
|
+
player.on('seeked', (e) => {
|
|
249
|
+
var _a;
|
|
250
|
+
(_a = events === null || events === void 0 ? void 0 : events.seekcomplete) === null || _a === void 0 ? void 0 : _a.call(events, { position: player.currentTime() }, { originEvent: e });
|
|
251
|
+
});
|
|
247
252
|
}
|
|
248
253
|
export default WedaVideo;
|