Skip to content

Commit 2247276

Browse files
author
杨伟贤
committed
style 恢复格式化改动
1 parent c0fdbbd commit 2247276

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "miniprogram-recycle-view",
3-
"version": "0.1.6",
3+
"version": "0.1.5",
44
"description": "miniprogram custom component",
55
"main": "miniprogram_dist/index.js",
66
"scripts": {
@@ -59,4 +59,4 @@
5959
"src"
6060
]
6161
}
62-
}
62+
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* recycle-view组件的api使用
33
* 提供wx.createRecycleContext进行管理功能
44
*/
5-
const RecycleContext = require('./utils/recycle-context')
5+
const RecycleContext = require('./utils/recycle-context.js')
66

77
/**
88
* @params options参数是object对象,展开的结构如下

src/recycle-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const DEFAULT_SHOW_SCREENS = 4
44
const RECT_SIZE = 200
55
const systemInfo = wx.getSystemInfoSync()
66
const DEBUG = false
7-
const transformRpx = require('./utils/transformRpx').transformRpx
7+
const transformRpx = require('./utils/transformRpx.js').transformRpx
88

99
Component({
1010
options: {

src/recycle-view.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- components/recycle-view/recycle-view.wxml -->
1+
<!--components/recycle-view/recycle-view.wxml-->
22
<view bindtouchstart='_beginToScroll' style="height:{{useInPage ? totalHeight + (hasBeforeSlotHeight ? beforeSlotHeight : 0) + (hasAfterSlotHeight ? afterSlotHeight : 0) : height}}px;width:{{width}}px;transform:translateZ(0);-webkit-transform:translateZ(0);" id="content" class="wrap">
33
<scroll-view bindscroll="_scrollViewDidScroll" class="content" style='height:100%;position: relative;' scroll-y="{{useInPage ? false : scrollY}}" scroll-x="{{false}}" upper-threshold="{{upperThreshold}}" lower-threshold="{{lowerThreshold}}" scroll-top="{{innerScrollTop}}" scroll-into-view="{{innerScrollIntoView}}" scroll-with-animation="{{scrollWithAnimation}}" bindscrolltoupper="_scrollToUpper" bindscrolltolower="_scrollToLower" scroll-anchoring enable-back-to-top="{{enableBackToTop}}" throttle="{{throttle}}">
44
<view style="position: absolute;z-index:1;width:100%;left: 0;top: 0;opacity: 0;visibility: hidden;">

src/utils/recycle-context.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint complexity: ["error", {"max": 50}] */
2-
const recycleData = require('./recycle-data')
2+
const recycleData = require('./recycle-data.js')
33
const recycleViewportChangeFunc = require('./viewport-change-func')
4-
const transformRpx = require('./transformRpx')
4+
const transformRpx = require('./transformRpx.js')
55

66
const RECT_SIZE = 200
77

src/utils/viewport-change-func.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint complexity: ["error", {"max": 50}] */
2-
const recycleData = require('./recycle-data')
2+
const recycleData = require('./recycle-data.js')
33

44
module.exports = function (e, cb) {
55
const detail = e.detail

0 commit comments

Comments
 (0)