Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
cube-ui
提交
29620a63
C
cube-ui
项目概览
DiDi
/
cube-ui
9 个月 前同步成功
通知
34
Star
9078
Fork
1508
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
cube-ui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
29620a63
编写于
1月 22, 2019
作者:
D
dolymood
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build: package
上级
aabbb436
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
32 addition
and
11 deletion
+32
-11
lib/cube.min.js
lib/cube.min.js
+2
-2
lib/image-preview/image-preview.min.js
lib/image-preview/image-preview.min.js
+1
-1
lib/image-preview/index.js
lib/image-preview/index.js
+9
-2
lib/index.js
lib/index.js
+10
-3
lib/slide/index.js
lib/slide/index.js
+9
-2
lib/slide/slide.min.js
lib/slide/slide.min.js
+1
-1
未找到文件。
lib/cube.min.js
浏览文件 @
29620a63
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
lib/image-preview/image-preview.min.js
浏览文件 @
29620a63
此差异已折叠。
点击以展开。
lib/image-preview/index.js
浏览文件 @
29620a63
...
...
@@ -7145,7 +7145,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
watch
:
{
initialIndex
:
function
initialIndex
(
newIndex
)
{
if
(
newIndex
!==
this
.
currentPageIndex
)
{
this
.
slide
&&
this
.
slide
.
goToPage
(
newIndex
);
this
.
_
goToPage
(
newIndex
);
}
}
},
...
...
@@ -7224,7 +7224,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
this
.
slide
.
on
(
'
scrollEnd
'
,
this
.
_onScrollEnd
);
this
.
slide
.
goToPage
(
this
.
currentPageIndex
,
0
,
0
);
this
.
_goToPage
(
this
.
currentPageIndex
,
0
);
if
(
this
.
options
.
listenScroll
&&
this
.
options
.
probeType
===
3
)
{
this
.
slide
.
on
(
'
scroll
'
,
this
.
_onScroll
);
...
...
@@ -7301,6 +7301,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
}
_this4
.
_refresh
();
},
60
);
},
_goToPage
:
function
_goToPage
(
index
,
time
)
{
if
(
this
.
direction
===
DIRECTION_H
)
{
this
.
slide
&&
this
.
slide
.
goToPage
(
index
,
0
,
time
);
}
else
if
(
this
.
direction
===
DIRECTION_V
)
{
this
.
slide
&&
this
.
slide
.
goToPage
(
0
,
index
,
time
);
}
}
},
mounted
:
function
mounted
()
{
...
...
lib/index.js
浏览文件 @
29620a63
...
...
@@ -6869,7 +6869,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
}
var Cube = {
version: "1.12.
8
",
version: "1.12.
9
",
install: install,
BScroll: _module.BetterScroll,
createAPI: _module.createAPI
...
...
@@ -19944,7 +19944,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
watch: {
initialIndex: function initialIndex(newIndex) {
if (newIndex !== this.currentPageIndex) {
this.
slide && this.slide.
goToPage(newIndex);
this.
_
goToPage(newIndex);
}
}
},
...
...
@@ -20023,7 +20023,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
this.slide.on('scrollEnd', this._onScrollEnd);
this.
slide.goToPage(this.currentPageIndex, 0
, 0);
this.
_goToPage(this.currentPageIndex
, 0);
if (this.options.listenScroll && this.options.probeType === 3) {
this.slide.on('scroll', this._onScroll);
...
...
@@ -20100,6 +20100,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
}
_this4._refresh();
}, 60);
},
_goToPage: function _goToPage(index, time) {
if (this.direction === DIRECTION_H) {
this.slide && this.slide.goToPage(index, 0, time);
} else if (this.direction === DIRECTION_V) {
this.slide && this.slide.goToPage(0, index, time);
}
}
},
mounted: function mounted() {
...
...
lib/slide/index.js
浏览文件 @
29620a63
...
...
@@ -813,7 +813,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
watch
:
{
initialIndex
:
function
initialIndex
(
newIndex
)
{
if
(
newIndex
!==
this
.
currentPageIndex
)
{
this
.
slide
&&
this
.
slide
.
goToPage
(
newIndex
);
this
.
_
goToPage
(
newIndex
);
}
}
},
...
...
@@ -892,7 +892,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
this
.
slide
.
on
(
'
scrollEnd
'
,
this
.
_onScrollEnd
);
this
.
slide
.
goToPage
(
this
.
currentPageIndex
,
0
,
0
);
this
.
_goToPage
(
this
.
currentPageIndex
,
0
);
if
(
this
.
options
.
listenScroll
&&
this
.
options
.
probeType
===
3
)
{
this
.
slide
.
on
(
'
scroll
'
,
this
.
_onScroll
);
...
...
@@ -969,6 +969,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
}
_this4
.
_refresh
();
},
60
);
},
_goToPage
:
function
_goToPage
(
index
,
time
)
{
if
(
this
.
direction
===
DIRECTION_H
)
{
this
.
slide
&&
this
.
slide
.
goToPage
(
index
,
0
,
time
);
}
else
if
(
this
.
direction
===
DIRECTION_V
)
{
this
.
slide
&&
this
.
slide
.
goToPage
(
0
,
index
,
time
);
}
}
},
mounted
:
function
mounted
()
{
...
...
lib/slide/slide.min.js
浏览文件 @
29620a63
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录