Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
cube-ui
提交
07a1184d
C
cube-ui
项目概览
DiDi
/
cube-ui
8 个月 前同步成功
通知
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 搜索 >>
提交
07a1184d
编写于
7月 12, 2019
作者:
D
dolymood
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build: package
上级
ca81be18
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
51 addition
and
12 deletion
+51
-12
lib/cube.min.js
lib/cube.min.js
+2
-2
lib/index.js
lib/index.js
+17
-3
lib/scroll-nav-bar/index.js
lib/scroll-nav-bar/index.js
+13
-2
lib/scroll-nav-bar/scroll-nav-bar.min.js
lib/scroll-nav-bar/scroll-nav-bar.min.js
+2
-2
lib/scroll-nav/index.js
lib/scroll-nav/index.js
+16
-2
lib/scroll-nav/scroll-nav.min.js
lib/scroll-nav/scroll-nav.min.js
+1
-1
未找到文件。
lib/cube.min.js
浏览文件 @
07a1184d
此差异已折叠。
点击以展开。
lib/index.js
浏览文件 @
07a1184d
...
...
@@ -7171,7 +7171,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
}
var Cube = {
version: "1.12.2
6
",
version: "1.12.2
7
",
install: install,
BScroll: _module.BetterScroll,
createAPI: _module.createAPI
...
...
@@ -24026,6 +24026,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
methods: {
scrollTo: function scrollTo() {
this.$refs.scroll && this.$refs.scroll.scrollTo.apply(this.$refs.scroll, arguments);
},
refresh: function refresh() {
this.navBar && this.navBar.refresh();
this.$refs.sticky.refresh();
...
...
@@ -24184,6 +24187,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
txts: {
type: Array,
default: function _default() {
this._defaultTxts = true;
return this.labels;
}
},
...
...
@@ -24194,11 +24199,20 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
data: function data() {
return {
active: this.current
active: this.current,
usedTxts: this.txts
};
},
watch: {
labels: function labels(newLabels) {
if (this._defaultTxts) {
this.usedTxts = newLabels;
}
},
txts: function txts(newTxts) {
this.usedTxts = newTxts;
},
current: function current(newVal) {
this.active = newVal;
},
...
...
@@ -24286,7 +24300,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
}, [_c('div', {
ref: "items",
staticClass: "cube-scroll-nav-bar-items"
}, _vm._l((_vm.
t
xts), function(txt, index) {
}, _vm._l((_vm.
usedT
xts), function(txt, index) {
return _c('div', {
key: index,
staticClass: "cube-scroll-nav-bar-item",
...
...
lib/scroll-nav-bar/index.js
浏览文件 @
07a1184d
...
...
@@ -8003,6 +8003,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
txts
:
{
type
:
Array
,
default
:
function
_default
()
{
this
.
_defaultTxts
=
true
;
return
this
.
labels
;
}
},
...
...
@@ -8013,11 +8015,20 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
data
:
function
data
()
{
return
{
active
:
this
.
current
active
:
this
.
current
,
usedTxts
:
this
.
txts
};
},
watch
:
{
labels
:
function
labels
(
newLabels
)
{
if
(
this
.
_defaultTxts
)
{
this
.
usedTxts
=
newLabels
;
}
},
txts
:
function
txts
(
newTxts
)
{
this
.
usedTxts
=
newTxts
;
},
current
:
function
current
(
newVal
)
{
this
.
active
=
newVal
;
},
...
...
@@ -8105,7 +8116,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
},
[
_c
(
'
div
'
,
{
ref
:
"
items
"
,
staticClass
:
"
cube-scroll-nav-bar-items
"
},
_vm
.
_l
((
_vm
.
t
xts
),
function
(
txt
,
index
)
{
},
_vm
.
_l
((
_vm
.
usedT
xts
),
function
(
txt
,
index
)
{
return
_c
(
'
div
'
,
{
key
:
index
,
staticClass
:
"
cube-scroll-nav-bar-item
"
,
...
...
lib/scroll-nav-bar/scroll-nav-bar.min.js
浏览文件 @
07a1184d
此差异已折叠。
点击以展开。
lib/scroll-nav/index.js
浏览文件 @
07a1184d
...
...
@@ -8360,6 +8360,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
txts
:
{
type
:
Array
,
default
:
function
_default
()
{
this
.
_defaultTxts
=
true
;
return
this
.
labels
;
}
},
...
...
@@ -8370,11 +8372,20 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
data
:
function
data
()
{
return
{
active
:
this
.
current
active
:
this
.
current
,
usedTxts
:
this
.
txts
};
},
watch
:
{
labels
:
function
labels
(
newLabels
)
{
if
(
this
.
_defaultTxts
)
{
this
.
usedTxts
=
newLabels
;
}
},
txts
:
function
txts
(
newTxts
)
{
this
.
usedTxts
=
newTxts
;
},
current
:
function
current
(
newVal
)
{
this
.
active
=
newVal
;
},
...
...
@@ -8462,7 +8473,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
},
[
_c
(
'
div
'
,
{
ref
:
"
items
"
,
staticClass
:
"
cube-scroll-nav-bar-items
"
},
_vm
.
_l
((
_vm
.
t
xts
),
function
(
txt
,
index
)
{
},
_vm
.
_l
((
_vm
.
usedT
xts
),
function
(
txt
,
index
)
{
return
_c
(
'
div
'
,
{
key
:
index
,
staticClass
:
"
cube-scroll-nav-bar-item
"
,
...
...
@@ -8791,6 +8802,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
methods
:
{
scrollTo
:
function
scrollTo
()
{
this
.
$refs
.
scroll
&&
this
.
$refs
.
scroll
.
scrollTo
.
apply
(
this
.
$refs
.
scroll
,
arguments
);
},
refresh
:
function
refresh
()
{
this
.
navBar
&&
this
.
navBar
.
refresh
();
this
.
$refs
.
sticky
.
refresh
();
...
...
lib/scroll-nav/scroll-nav.min.js
浏览文件 @
07a1184d
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录