tencent.jquery.pix.component 1.0.6-6.beta1
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/components/banner/banner.js +461 -0
- package/components/banner/banner.scss +46 -0
- package/components/config.js +23 -0
- package/components/list/list.js +217 -0
- package/components/tips/tipv2.js +557 -0
- package/components/utils/env.js +7 -0
- package/components/utils/utils.js +65 -0
- package/components/video/resources/images/control-bg.png +0 -0
- package/components/video/resources/images/exit-full-screen.png +0 -0
- package/components/video/resources/images/full-screen.png +0 -0
- package/components/video/resources/images/mute.png +0 -0
- package/components/video/resources/images/origin-play.png +0 -0
- package/components/video/resources/images/pause.png +0 -0
- package/components/video/resources/images/play.png +0 -0
- package/components/video/resources/images/replay.png +0 -0
- package/components/video/resources/images/volume.png +0 -0
- package/components/video/videocss.scss +497 -0
- package/components/video/videohtml.js +85 -0
- package/components/video/videoplayer.js +425 -0
- package/components/waterfall/waterfall.js +819 -0
- package/components/waterfall/waterfall.scss +17 -0
- package/index.js +10 -0
- package/package.json +16 -0
- package/readme.md +15 -0
- package/utils/utils.js +16 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.waterfall-list-scroll {
|
|
2
|
+
height: 100%;
|
|
3
|
+
.waterfall-loading {
|
|
4
|
+
position: absolute;
|
|
5
|
+
width: 100%;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
}
|
|
9
|
+
.waterfall-item {
|
|
10
|
+
flex: 1;
|
|
11
|
+
flex-shrink: 1;
|
|
12
|
+
flex-grow: 1;
|
|
13
|
+
flex-basis: 0;
|
|
14
|
+
width: 100%;
|
|
15
|
+
position: absolute;
|
|
16
|
+
}
|
|
17
|
+
}
|
package/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { VideoPlayer } from './components/video/videoplayer';
|
|
2
|
+
export { tips, showTips } from './components/tips/tipv2';
|
|
3
|
+
export { Banner } from './components/banner/banner';
|
|
4
|
+
export { List } from './components/list/list';
|
|
5
|
+
export { Waterfall } from './components/waterfall/waterfall';
|
|
6
|
+
export { getEnv, setEnv } from './components/config';
|
|
7
|
+
export { getFontSize, remToPx } from './utils/utils';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tencent.jquery.pix.component",
|
|
3
|
+
"version": "1.0.66.beta1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"components",
|
|
8
|
+
"utils"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
12
|
+
},
|
|
13
|
+
"author": "winkchen, jackyjhe",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"dependencies": {}
|
|
16
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# jquery.pix.component
|
|
2
|
+
|
|
3
|
+
基于jquery.pix开发的pixui通用组件库。
|
|
4
|
+
|
|
5
|
+
- 用于web浏览器基于正常的jquery版本(1.9系列)
|
|
6
|
+
|
|
7
|
+
- 用于pix小应用基于@tencent/jquery.pix
|
|
8
|
+
|
|
9
|
+
git 地址
|
|
10
|
+
|
|
11
|
+
https://git.woa.com/linksee-web/pix/jquery.pix.component
|
|
12
|
+
|
|
13
|
+
在线文档
|
|
14
|
+
|
|
15
|
+
https://static-exp.native.qq.com/webfront/pixcomponent/QNgV5k6r/dist/#/
|
package/utils/utils.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { $ } from "../components/config";
|
|
2
|
+
|
|
3
|
+
let fontSize = -1;
|
|
4
|
+
|
|
5
|
+
// 获取字体大小
|
|
6
|
+
export const getFontSize = () => {
|
|
7
|
+
if (fontSize === -1) {
|
|
8
|
+
fontSize = parseFloat($(document.body).css("font-size").replace('px', ''));
|
|
9
|
+
}
|
|
10
|
+
return fontSize;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// rem 转 px
|
|
14
|
+
export const remToPx = (rem) => {
|
|
15
|
+
return getFontSize() * parseFloat(rem.toString().replace('rem', ''));
|
|
16
|
+
}
|