pixuireactcomponents 1.3.56 → 1.3.58
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/package.json
CHANGED
|
@@ -14,7 +14,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
16
|
import { h } from 'preact';
|
|
17
|
-
import styles from './ScrollBar.module.less';
|
|
18
17
|
import { useState, useEffect } from 'preact/hooks';
|
|
19
18
|
var sWindow; // 滚动窗口
|
|
20
19
|
var sBlock; // 滚动条
|
|
@@ -119,8 +118,8 @@ export function ScrollBar(props) {
|
|
|
119
118
|
sWindow.scrollTop = content_scrollTop;
|
|
120
119
|
}
|
|
121
120
|
};
|
|
122
|
-
return (h("div", { id: "sframe",
|
|
123
|
-
h("div", { id: "sblock",
|
|
121
|
+
return (h("div", { id: "sframe", style: sFrameStyle },
|
|
122
|
+
h("div", { id: "sblock", style: sBlockStyle, draggable: true, onDragStart: function (event) {
|
|
124
123
|
sBlock.style.backgroundImage = "url(".concat(props.sBlockImgClick, ")");
|
|
125
124
|
sFrame.style.backgroundImage = "url(".concat(props.sFrameImgClick, ")");
|
|
126
125
|
//@ts-ignore
|