Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
cube-ui
提交
824f4cc6
C
cube-ui
项目概览
DiDi
/
cube-ui
10 个月 前同步成功
通知
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 搜索 >>
提交
824f4cc6
编写于
11月 09, 2017
作者:
D
dolymood
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
publish build
上级
c7018599
变更
15
展开全部
隐藏空白更改
内联
并排
Showing
15 changed file
with
29 addition
and
20 deletion
+29
-20
lib/checkbox-group/checkbox-group.min.js
lib/checkbox-group/checkbox-group.min.js
+1
-1
lib/checkbox-group/index.js
lib/checkbox-group/index.js
+1
-1
lib/checkbox/checkbox.min.js
lib/checkbox/checkbox.min.js
+1
-1
lib/checkbox/index.js
lib/checkbox/index.js
+1
-1
lib/cube.min.css
lib/cube.min.css
+1
-1
lib/cube.min.js
lib/cube.min.js
+1
-1
lib/index-list/index-list.min.css
lib/index-list/index-list.min.css
+1
-1
lib/index-list/index-list.min.js
lib/index-list/index-list.min.js
+1
-1
lib/index-list/index.js
lib/index-list/index.js
+5
-2
lib/index-list/style.css
lib/index-list/style.css
+1
-1
lib/index.js
lib/index.js
+7
-4
lib/scroll/index.js
lib/scroll/index.js
+5
-2
lib/scroll/scroll.min.js
lib/scroll/scroll.min.js
+1
-1
lib/style.css
lib/style.css
+1
-1
package.json
package.json
+1
-1
未找到文件。
lib/checkbox-group/checkbox-group.min.js
浏览文件 @
824f4cc6
module
.
exports
=
function
(
e
){
function
t
(
o
){
if
(
n
[
o
])
return
n
[
o
].
exports
;
var
r
=
n
[
o
]
=
{
i
:
o
,
l
:
!
1
,
exports
:{}};
return
e
[
o
].
call
(
r
.
exports
,
r
,
r
.
exports
,
t
),
r
.
l
=!
0
,
r
.
exports
}
var
n
=
{};
return
t
.
m
=
e
,
t
.
c
=
n
,
t
.
d
=
function
(
e
,
n
,
o
){
t
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
o
})},
t
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
t
.
d
(
n
,
"
a
"
,
n
),
n
},
t
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
t
.
p
=
"
./
"
,
t
(
t
.
s
=
129
)}({
129
:
function
(
e
,
t
,
n
){
var
o
,
r
,
a
;
!
function
(
c
,
i
){
r
=
[
e
,
t
,
n
(
80
),
n
(
130
)],
o
=
i
,
void
0
!==
(
a
=
"
function
"
==
typeof
o
?
o
.
apply
(
t
,
r
):
o
)
&&
(
e
.
exports
=
a
)}(
0
,
function
(
e
,
t
,
n
,
o
){
"
use strict
"
;
function
r
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
var
a
=
r
(
n
),
c
=
r
(
o
);
c
.
default
.
install
=
function
(
e
){
e
.
component
(
a
.
default
.
name
,
a
.
default
),
e
.
component
(
c
.
default
.
name
,
c
.
default
)},
c
.
default
.
Checkbox
=
a
.
default
,
t
.
default
=
c
.
default
,
e
.
exports
=
t
.
default
})},
130
:
function
(
e
,
t
,
n
){
function
o
(
e
){
n
(
131
)}
var
r
=
n
(
4
)(
n
(
132
),
n
(
133
),
o
,
null
,
null
);
e
.
exports
=
r
.
exports
},
131
:
function
(
e
,
t
){},
132
:
function
(
e
,
t
,
n
){
var
o
,
r
,
a
;
!
function
(
n
,
c
){
r
=
[
e
,
t
],
o
=
c
,
void
0
!==
(
a
=
"
function
"
==
typeof
o
?
o
.
apply
(
t
,
r
):
o
)
&&
(
e
.
exports
=
a
)}(
0
,
function
(
e
,
t
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
t
.
default
=
{
name
:
"
cube-checkbox-group
"
,
props
:{
value
:{
type
:
Array
,
require
:
!
0
},
horizontal
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
_value
:[],
_checkboxGroup
:
!
0
}},
computed
:{
groupClass
:
function
(){
if
(
!
this
.
horizontal
)
return
"
border-top-1px border-bottom-1px
"
}},
watch
:{
value
:{
immediate
:
!
0
,
handler
:
function
(
e
,
t
){
this
.
_value
=
this
.
value
.
concat
()}}},
mounted
:
function
(){
this
.
$on
(
"
checked
"
,
function
(
e
){
this
.
_value
.
push
(
e
),
this
.
$emit
(
"
input
"
,
this
.
_value
)}),
this
.
$on
(
"
cancel-checked
"
,
function
(
e
){
var
t
=
this
.
_value
.
indexOf
(
e
);
this
.
_value
.
splice
(
t
,
1
),
this
.
$emit
(
"
input
"
,
this
.
_value
)})}},
e
.
exports
=
t
.
default
})},
133
:
function
(
e
,
t
){
e
.
exports
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
;
return
(
e
.
_self
.
_c
||
t
)(
"
div
"
,{
ref
:
"
group
"
,
staticClass
:
"
cube-checkbox-group
"
,
class
:
e
.
groupClass
,
attrs
:{
"
data-horz
"
:
e
.
horizontal
}},[
e
.
_t
(
"
default
"
)],
2
)},
staticRenderFns
:[]}},
4
:
function
(
e
,
t
){
e
.
exports
=
function
(
e
,
t
,
n
,
o
,
r
){
var
a
,
c
=
e
=
e
||
{},
i
=
typeof
e
.
default
;
"
object
"
!==
i
&&
"
function
"
!==
i
||
(
a
=
e
,
c
=
e
.
default
);
var
u
=
"
function
"
==
typeof
c
?
c
.
options
:
c
;
t
&&
(
u
.
render
=
t
.
render
,
u
.
staticRenderFns
=
t
.
staticRenderFns
),
o
&&
(
u
.
_scopeId
=
o
);
var
s
;
if
(
r
?(
s
=
function
(
e
){
e
=
e
||
this
.
$vnode
&&
this
.
$vnode
.
ssrContext
||
this
.
parent
&&
this
.
parent
.
$vnode
&&
this
.
parent
.
$vnode
.
ssrContext
,
e
||
"
undefined
"
==
typeof
__VUE_SSR_CONTEXT__
||
(
e
=
__VUE_SSR_CONTEXT__
),
n
&&
n
.
call
(
this
,
e
),
e
&&
e
.
_registeredComponents
&&
e
.
_registeredComponents
.
add
(
r
)},
u
.
_ssrRegister
=
s
):
n
&&
(
s
=
n
),
s
){
var
l
=
u
.
functional
,
p
=
l
?
u
.
render
:
u
.
beforeCreate
;
l
?
u
.
render
=
function
(
e
,
t
){
return
s
.
call
(
t
),
p
(
e
,
t
)}:
u
.
beforeCreate
=
p
?[].
concat
(
p
,
s
):[
s
]}
return
{
esModule
:
a
,
exports
:
c
,
options
:
u
}}},
80
:
function
(
e
,
t
,
n
){
function
o
(
e
){
n
(
81
)}
var
r
=
n
(
4
)(
n
(
82
),
n
(
83
),
o
,
null
,
null
);
e
.
exports
=
r
.
exports
},
81
:
function
(
e
,
t
){},
82
:
function
(
e
,
t
,
n
){
var
o
,
r
,
a
;
!
function
(
n
,
c
){
r
=
[
e
,
t
],
o
=
c
,
void
0
!==
(
a
=
"
function
"
==
typeof
o
?
o
.
apply
(
t
,
r
):
o
)
&&
(
e
.
exports
=
a
)}(
0
,
function
(
e
,
t
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
t
.
default
=
{
name
:
"
cube-checkbox
"
,
props
:{
value
:{
type
:[
Boolean
,
String
],
require
:
!
0
},
label
:{
type
:[
Boolean
,
String
]},
disabled
:{
type
:
Boolean
,
default
:
!
1
},
position
:{
type
:
String
,
default
:
"
left
"
}},
data
:
function
(){
var
e
=
this
.
$parent
,
t
=
e
.
$data
.
_checkboxGroup
;
return
{
isInGroup
:
t
,
isInHorizontalGroup
:
t
&&
e
.
$props
.
horizontal
}},
computed
:{
checkValue
:{
get
:
function
(){
return
this
.
isInGroup
?
this
.
$parent
.
value
.
indexOf
(
this
.
label
)
>-
1
:
Boolean
(
this
.
value
)},
set
:
function
(
e
){
var
t
=
this
.
label
&&
e
?
this
.
label
:
e
,
n
=
e
?
"
checked
"
:
"
cancel-checked
"
;
this
.
$emit
(
"
input
"
,
t
),
this
.
isInGroup
&&
this
.
$parent
.
$emit
(
n
,
this
.
label
||
e
,
this
)}},
_containerClass
:
function
(){
if
(
this
.
isInHorizontalGroup
)
return
"
border-right-1px
"
},
_wrapClass
:
function
(){
var
e
=
this
.
isInHorizontalGroup
;
return
{
"
cube-checkbox_checked
"
:
this
.
checkValue
,
"
cube-checkbox_disabled
"
:
this
.
disabled
,
"
border-bottom-1px
"
:
this
.
isInGroup
&&!
e
}}}},
e
.
exports
=
t
.
default
})},
83
:
function
(
e
,
t
){
e
.
exports
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,{
staticClass
:
"
cube-checkbox
"
,
class
:
e
.
_containerClass
,
attrs
:{
"
data-pos
"
:
e
.
position
}},[
n
(
"
label
"
,{
staticClass
:
"
cube-checkbox-wrap
"
,
class
:
e
.
_wrapClass
},[
n
(
"
input
"
,{
directives
:[{
name
:
"
model
"
,
rawName
:
"
v-model
"
,
value
:
e
.
checkValue
,
expression
:
"
checkValue
"
}],
staticClass
:
"
cube-checkbox-input
"
,
attrs
:{
type
:
"
checkbox
"
,
disabled
:
e
.
disabled
},
domProps
:{
checked
:
Array
.
isArray
(
e
.
checkValue
)?
e
.
_i
(
e
.
checkValue
,
null
)
>-
1
:
e
.
checkValue
},
on
:{
change
:
function
(
t
){
var
n
=
e
.
checkValue
,
o
=
t
.
target
,
r
=!!
o
.
checked
;
if
(
Array
.
isArray
(
n
)){
var
a
=
e
.
_i
(
n
,
null
);
o
.
checked
?
a
<
0
&&
(
e
.
checkValue
=
n
.
concat
([
null
])):
a
>-
1
&&
(
e
.
checkValue
=
n
.
slice
(
0
,
a
).
concat
(
n
.
slice
(
a
+
1
)))}
else
e
.
checkValue
=
r
}}}),
e
.
_v
(
"
"
),
e
.
_m
(
0
),
e
.
_v
(
"
"
),
n
(
"
span
"
,{
staticClass
:
"
cube-checkbox-label
"
},[
e
.
_t
(
"
default
"
,[
e
.
_v
(
e
.
_s
(
e
.
label
))])],
2
)])])},
staticRenderFns
:[
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
span
"
,{
staticClass
:
"
cube-checkbox-ui cubeic-round-border-new
"
},[
n
(
"
i
"
,{
staticClass
:
"
cubeic-right
"
})])}]}}});
\ No newline at end of file
module
.
exports
=
function
(
e
){
function
t
(
o
){
if
(
n
[
o
])
return
n
[
o
].
exports
;
var
r
=
n
[
o
]
=
{
i
:
o
,
l
:
!
1
,
exports
:{}};
return
e
[
o
].
call
(
r
.
exports
,
r
,
r
.
exports
,
t
),
r
.
l
=!
0
,
r
.
exports
}
var
n
=
{};
return
t
.
m
=
e
,
t
.
c
=
n
,
t
.
d
=
function
(
e
,
n
,
o
){
t
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
o
})},
t
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
t
.
d
(
n
,
"
a
"
,
n
),
n
},
t
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
t
.
p
=
"
./
"
,
t
(
t
.
s
=
129
)}({
129
:
function
(
e
,
t
,
n
){
var
o
,
r
,
a
;
!
function
(
c
,
i
){
r
=
[
e
,
t
,
n
(
80
),
n
(
130
)],
o
=
i
,
void
0
!==
(
a
=
"
function
"
==
typeof
o
?
o
.
apply
(
t
,
r
):
o
)
&&
(
e
.
exports
=
a
)}(
0
,
function
(
e
,
t
,
n
,
o
){
"
use strict
"
;
function
r
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
var
a
=
r
(
n
),
c
=
r
(
o
);
c
.
default
.
install
=
function
(
e
){
e
.
component
(
a
.
default
.
name
,
a
.
default
),
e
.
component
(
c
.
default
.
name
,
c
.
default
)},
c
.
default
.
Checkbox
=
a
.
default
,
t
.
default
=
c
.
default
,
e
.
exports
=
t
.
default
})},
130
:
function
(
e
,
t
,
n
){
function
o
(
e
){
n
(
131
)}
var
r
=
n
(
4
)(
n
(
132
),
n
(
133
),
o
,
null
,
null
);
e
.
exports
=
r
.
exports
},
131
:
function
(
e
,
t
){},
132
:
function
(
e
,
t
,
n
){
var
o
,
r
,
a
;
!
function
(
n
,
c
){
r
=
[
e
,
t
],
o
=
c
,
void
0
!==
(
a
=
"
function
"
==
typeof
o
?
o
.
apply
(
t
,
r
):
o
)
&&
(
e
.
exports
=
a
)}(
0
,
function
(
e
,
t
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
t
.
default
=
{
name
:
"
cube-checkbox-group
"
,
props
:{
value
:{
type
:
Array
,
require
:
!
0
},
horizontal
:{
type
:
Boolean
,
default
:
!
1
}},
data
:
function
(){
return
{
_value
:[],
_checkboxGroup
:
!
0
}},
computed
:{
groupClass
:
function
(){
if
(
!
this
.
horizontal
)
return
"
border-top-1px border-bottom-1px
"
}},
watch
:{
value
:{
immediate
:
!
0
,
handler
:
function
(
e
,
t
){
this
.
_value
=
this
.
value
.
concat
()}}},
mounted
:
function
(){
this
.
$on
(
"
checked
"
,
function
(
e
){
this
.
_value
.
push
(
e
),
this
.
$emit
(
"
input
"
,
this
.
_value
)}),
this
.
$on
(
"
cancel-checked
"
,
function
(
e
){
var
t
=
this
.
_value
.
indexOf
(
e
);
this
.
_value
.
splice
(
t
,
1
),
this
.
$emit
(
"
input
"
,
this
.
_value
)})}},
e
.
exports
=
t
.
default
})},
133
:
function
(
e
,
t
){
e
.
exports
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
;
return
(
e
.
_self
.
_c
||
t
)(
"
div
"
,{
ref
:
"
group
"
,
staticClass
:
"
cube-checkbox-group
"
,
class
:
e
.
groupClass
,
attrs
:{
"
data-horz
"
:
e
.
horizontal
}},[
e
.
_t
(
"
default
"
)],
2
)},
staticRenderFns
:[]}},
4
:
function
(
e
,
t
){
e
.
exports
=
function
(
e
,
t
,
n
,
o
,
r
){
var
a
,
c
=
e
=
e
||
{},
i
=
typeof
e
.
default
;
"
object
"
!==
i
&&
"
function
"
!==
i
||
(
a
=
e
,
c
=
e
.
default
);
var
u
=
"
function
"
==
typeof
c
?
c
.
options
:
c
;
t
&&
(
u
.
render
=
t
.
render
,
u
.
staticRenderFns
=
t
.
staticRenderFns
),
o
&&
(
u
.
_scopeId
=
o
);
var
s
;
if
(
r
?(
s
=
function
(
e
){
e
=
e
||
this
.
$vnode
&&
this
.
$vnode
.
ssrContext
||
this
.
parent
&&
this
.
parent
.
$vnode
&&
this
.
parent
.
$vnode
.
ssrContext
,
e
||
"
undefined
"
==
typeof
__VUE_SSR_CONTEXT__
||
(
e
=
__VUE_SSR_CONTEXT__
),
n
&&
n
.
call
(
this
,
e
),
e
&&
e
.
_registeredComponents
&&
e
.
_registeredComponents
.
add
(
r
)},
u
.
_ssrRegister
=
s
):
n
&&
(
s
=
n
),
s
){
var
l
=
u
.
functional
,
p
=
l
?
u
.
render
:
u
.
beforeCreate
;
l
?
u
.
render
=
function
(
e
,
t
){
return
s
.
call
(
t
),
p
(
e
,
t
)}:
u
.
beforeCreate
=
p
?[].
concat
(
p
,
s
):[
s
]}
return
{
esModule
:
a
,
exports
:
c
,
options
:
u
}}},
80
:
function
(
e
,
t
,
n
){
function
o
(
e
){
n
(
81
)}
var
r
=
n
(
4
)(
n
(
82
),
n
(
83
),
o
,
null
,
null
);
e
.
exports
=
r
.
exports
},
81
:
function
(
e
,
t
){},
82
:
function
(
e
,
t
,
n
){
var
o
,
r
,
a
;
!
function
(
n
,
c
){
r
=
[
e
,
t
],
o
=
c
,
void
0
!==
(
a
=
"
function
"
==
typeof
o
?
o
.
apply
(
t
,
r
):
o
)
&&
(
e
.
exports
=
a
)}(
0
,
function
(
e
,
t
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
t
.
default
=
{
name
:
"
cube-checkbox
"
,
props
:{
value
:{
type
:[
Boolean
,
String
],
require
:
!
0
},
label
:{
type
:[
Boolean
,
String
]},
disabled
:{
type
:
Boolean
,
default
:
!
1
},
position
:{
type
:
String
,
default
:
"
left
"
}},
data
:
function
(){
var
e
=
this
.
$parent
,
t
=
e
.
$data
.
_checkboxGroup
;
return
{
isInGroup
:
t
,
isInHorizontalGroup
:
t
&&
e
.
$props
.
horizontal
}},
computed
:{
checkValue
:{
get
:
function
(){
return
this
.
isInGroup
?
this
.
$parent
.
value
.
indexOf
(
this
.
label
)
>-
1
:
Boolean
(
this
.
value
)},
set
:
function
(
e
){
var
t
=
this
.
label
&&
e
?
this
.
label
:
e
,
n
=
e
?
"
checked
"
:
"
cancel-checked
"
;
this
.
$emit
(
"
input
"
,
t
),
this
.
isInGroup
&&
this
.
$parent
.
$emit
(
n
,
this
.
label
||
e
,
this
)}},
_containerClass
:
function
(){
if
(
this
.
isInHorizontalGroup
)
return
"
border-right-1px
"
},
_wrapClass
:
function
(){
var
e
=
this
.
isInHorizontalGroup
;
return
{
"
cube-checkbox_checked
"
:
this
.
checkValue
,
"
cube-checkbox_disabled
"
:
this
.
disabled
,
"
border-bottom-1px
"
:
this
.
isInGroup
&&!
e
}}}},
e
.
exports
=
t
.
default
})},
83
:
function
(
e
,
t
){
e
.
exports
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,{
staticClass
:
"
cube-checkbox
"
,
class
:
e
.
_containerClass
,
attrs
:{
"
data-pos
"
:
e
.
position
}},[
n
(
"
label
"
,{
staticClass
:
"
cube-checkbox-wrap
"
,
class
:
e
.
_wrapClass
},[
n
(
"
input
"
,{
directives
:[{
name
:
"
model
"
,
rawName
:
"
v-model
"
,
value
:
e
.
checkValue
,
expression
:
"
checkValue
"
}],
staticClass
:
"
cube-checkbox-input
"
,
attrs
:{
type
:
"
checkbox
"
,
disabled
:
e
.
disabled
},
domProps
:{
checked
:
Array
.
isArray
(
e
.
checkValue
)?
e
.
_i
(
e
.
checkValue
,
null
)
>-
1
:
e
.
checkValue
},
on
:{
change
:
function
(
t
){
var
n
=
e
.
checkValue
,
o
=
t
.
target
,
r
=!!
o
.
checked
;
if
(
Array
.
isArray
(
n
)){
var
a
=
e
.
_i
(
n
,
null
);
o
.
checked
?
a
<
0
&&
(
e
.
checkValue
=
n
.
concat
([
null
])):
a
>-
1
&&
(
e
.
checkValue
=
n
.
slice
(
0
,
a
).
concat
(
n
.
slice
(
a
+
1
)))}
else
e
.
checkValue
=
r
}}}),
e
.
_v
(
"
"
),
e
.
_m
(
0
),
e
.
_v
(
"
"
),
n
(
"
span
"
,{
staticClass
:
"
cube-checkbox-label
"
},[
e
.
_t
(
"
default
"
,[
e
.
_v
(
e
.
_s
(
e
.
label
))])],
2
)])])},
staticRenderFns
:[
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
span
"
,{
staticClass
:
"
cube-checkbox-ui cubeic-round-border
"
},[
n
(
"
i
"
,{
staticClass
:
"
cubeic-right
"
})])}]}}});
\ No newline at end of file
lib/checkbox-group/index.js
浏览文件 @
824f4cc6
...
...
@@ -523,7 +523,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
},
[
_vm
.
_t
(
"
default
"
,
[
_vm
.
_v
(
_vm
.
_s
(
_vm
.
label
))])],
2
)])])
},
staticRenderFns
:
[
function
(){
var
_vm
=
this
;
var
_h
=
_vm
.
$createElement
;
var
_c
=
_vm
.
_self
.
_c
||
_h
;
return
_c
(
'
span
'
,
{
staticClass
:
"
cube-checkbox-ui cubeic-round-border
-new
"
staticClass
:
"
cube-checkbox-ui cubeic-round-border
"
},
[
_c
(
'
i
'
,
{
staticClass
:
"
cubeic-right
"
})])
...
...
lib/checkbox/checkbox.min.js
浏览文件 @
824f4cc6
module
.
exports
=
function
(
e
){
function
t
(
r
){
if
(
n
[
r
])
return
n
[
r
].
exports
;
var
o
=
n
[
r
]
=
{
i
:
r
,
l
:
!
1
,
exports
:{}};
return
e
[
r
].
call
(
o
.
exports
,
o
,
o
.
exports
,
t
),
o
.
l
=!
0
,
o
.
exports
}
var
n
=
{};
return
t
.
m
=
e
,
t
.
c
=
n
,
t
.
d
=
function
(
e
,
n
,
r
){
t
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
t
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
t
.
d
(
n
,
"
a
"
,
n
),
n
},
t
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
t
.
p
=
"
./
"
,
t
(
t
.
s
=
128
)}({
128
:
function
(
e
,
t
,
n
){
var
r
,
o
,
c
;
!
function
(
a
,
i
){
o
=
[
e
,
t
,
n
(
80
)],
r
=
i
,
void
0
!==
(
c
=
"
function
"
==
typeof
r
?
r
.
apply
(
t
,
o
):
r
)
&&
(
e
.
exports
=
c
)}(
0
,
function
(
e
,
t
,
n
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
var
r
=
function
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}(
n
);
r
.
default
.
install
=
function
(
e
){
e
.
component
(
r
.
default
.
name
,
r
.
default
)},
t
.
default
=
r
.
default
,
e
.
exports
=
t
.
default
})},
4
:
function
(
e
,
t
){
e
.
exports
=
function
(
e
,
t
,
n
,
r
,
o
){
var
c
,
a
=
e
=
e
||
{},
i
=
typeof
e
.
default
;
"
object
"
!==
i
&&
"
function
"
!==
i
||
(
c
=
e
,
a
=
e
.
default
);
var
s
=
"
function
"
==
typeof
a
?
a
.
options
:
a
;
t
&&
(
s
.
render
=
t
.
render
,
s
.
staticRenderFns
=
t
.
staticRenderFns
),
r
&&
(
s
.
_scopeId
=
r
);
var
u
;
if
(
o
?(
u
=
function
(
e
){
e
=
e
||
this
.
$vnode
&&
this
.
$vnode
.
ssrContext
||
this
.
parent
&&
this
.
parent
.
$vnode
&&
this
.
parent
.
$vnode
.
ssrContext
,
e
||
"
undefined
"
==
typeof
__VUE_SSR_CONTEXT__
||
(
e
=
__VUE_SSR_CONTEXT__
),
n
&&
n
.
call
(
this
,
e
),
e
&&
e
.
_registeredComponents
&&
e
.
_registeredComponents
.
add
(
o
)},
s
.
_ssrRegister
=
u
):
n
&&
(
u
=
n
),
u
){
var
l
=
s
.
functional
,
d
=
l
?
s
.
render
:
s
.
beforeCreate
;
l
?
s
.
render
=
function
(
e
,
t
){
return
u
.
call
(
t
),
d
(
e
,
t
)}:
s
.
beforeCreate
=
d
?[].
concat
(
d
,
u
):[
u
]}
return
{
esModule
:
c
,
exports
:
a
,
options
:
s
}}},
80
:
function
(
e
,
t
,
n
){
function
r
(
e
){
n
(
81
)}
var
o
=
n
(
4
)(
n
(
82
),
n
(
83
),
r
,
null
,
null
);
e
.
exports
=
o
.
exports
},
81
:
function
(
e
,
t
){},
82
:
function
(
e
,
t
,
n
){
var
r
,
o
,
c
;
!
function
(
n
,
a
){
o
=
[
e
,
t
],
r
=
a
,
void
0
!==
(
c
=
"
function
"
==
typeof
r
?
r
.
apply
(
t
,
o
):
r
)
&&
(
e
.
exports
=
c
)}(
0
,
function
(
e
,
t
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
t
.
default
=
{
name
:
"
cube-checkbox
"
,
props
:{
value
:{
type
:[
Boolean
,
String
],
require
:
!
0
},
label
:{
type
:[
Boolean
,
String
]},
disabled
:{
type
:
Boolean
,
default
:
!
1
},
position
:{
type
:
String
,
default
:
"
left
"
}},
data
:
function
(){
var
e
=
this
.
$parent
,
t
=
e
.
$data
.
_checkboxGroup
;
return
{
isInGroup
:
t
,
isInHorizontalGroup
:
t
&&
e
.
$props
.
horizontal
}},
computed
:{
checkValue
:{
get
:
function
(){
return
this
.
isInGroup
?
this
.
$parent
.
value
.
indexOf
(
this
.
label
)
>-
1
:
Boolean
(
this
.
value
)},
set
:
function
(
e
){
var
t
=
this
.
label
&&
e
?
this
.
label
:
e
,
n
=
e
?
"
checked
"
:
"
cancel-checked
"
;
this
.
$emit
(
"
input
"
,
t
),
this
.
isInGroup
&&
this
.
$parent
.
$emit
(
n
,
this
.
label
||
e
,
this
)}},
_containerClass
:
function
(){
if
(
this
.
isInHorizontalGroup
)
return
"
border-right-1px
"
},
_wrapClass
:
function
(){
var
e
=
this
.
isInHorizontalGroup
;
return
{
"
cube-checkbox_checked
"
:
this
.
checkValue
,
"
cube-checkbox_disabled
"
:
this
.
disabled
,
"
border-bottom-1px
"
:
this
.
isInGroup
&&!
e
}}}},
e
.
exports
=
t
.
default
})},
83
:
function
(
e
,
t
){
e
.
exports
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,{
staticClass
:
"
cube-checkbox
"
,
class
:
e
.
_containerClass
,
attrs
:{
"
data-pos
"
:
e
.
position
}},[
n
(
"
label
"
,{
staticClass
:
"
cube-checkbox-wrap
"
,
class
:
e
.
_wrapClass
},[
n
(
"
input
"
,{
directives
:[{
name
:
"
model
"
,
rawName
:
"
v-model
"
,
value
:
e
.
checkValue
,
expression
:
"
checkValue
"
}],
staticClass
:
"
cube-checkbox-input
"
,
attrs
:{
type
:
"
checkbox
"
,
disabled
:
e
.
disabled
},
domProps
:{
checked
:
Array
.
isArray
(
e
.
checkValue
)?
e
.
_i
(
e
.
checkValue
,
null
)
>-
1
:
e
.
checkValue
},
on
:{
change
:
function
(
t
){
var
n
=
e
.
checkValue
,
r
=
t
.
target
,
o
=!!
r
.
checked
;
if
(
Array
.
isArray
(
n
)){
var
c
=
e
.
_i
(
n
,
null
);
r
.
checked
?
c
<
0
&&
(
e
.
checkValue
=
n
.
concat
([
null
])):
c
>-
1
&&
(
e
.
checkValue
=
n
.
slice
(
0
,
c
).
concat
(
n
.
slice
(
c
+
1
)))}
else
e
.
checkValue
=
o
}}}),
e
.
_v
(
"
"
),
e
.
_m
(
0
),
e
.
_v
(
"
"
),
n
(
"
span
"
,{
staticClass
:
"
cube-checkbox-label
"
},[
e
.
_t
(
"
default
"
,[
e
.
_v
(
e
.
_s
(
e
.
label
))])],
2
)])])},
staticRenderFns
:[
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
span
"
,{
staticClass
:
"
cube-checkbox-ui cubeic-round-border-new
"
},[
n
(
"
i
"
,{
staticClass
:
"
cubeic-right
"
})])}]}}});
\ No newline at end of file
module
.
exports
=
function
(
e
){
function
t
(
r
){
if
(
n
[
r
])
return
n
[
r
].
exports
;
var
o
=
n
[
r
]
=
{
i
:
r
,
l
:
!
1
,
exports
:{}};
return
e
[
r
].
call
(
o
.
exports
,
o
,
o
.
exports
,
t
),
o
.
l
=!
0
,
o
.
exports
}
var
n
=
{};
return
t
.
m
=
e
,
t
.
c
=
n
,
t
.
d
=
function
(
e
,
n
,
r
){
t
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
r
})},
t
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
t
.
d
(
n
,
"
a
"
,
n
),
n
},
t
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
t
.
p
=
"
./
"
,
t
(
t
.
s
=
128
)}({
128
:
function
(
e
,
t
,
n
){
var
r
,
o
,
c
;
!
function
(
a
,
i
){
o
=
[
e
,
t
,
n
(
80
)],
r
=
i
,
void
0
!==
(
c
=
"
function
"
==
typeof
r
?
r
.
apply
(
t
,
o
):
r
)
&&
(
e
.
exports
=
c
)}(
0
,
function
(
e
,
t
,
n
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
var
r
=
function
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}(
n
);
r
.
default
.
install
=
function
(
e
){
e
.
component
(
r
.
default
.
name
,
r
.
default
)},
t
.
default
=
r
.
default
,
e
.
exports
=
t
.
default
})},
4
:
function
(
e
,
t
){
e
.
exports
=
function
(
e
,
t
,
n
,
r
,
o
){
var
c
,
a
=
e
=
e
||
{},
i
=
typeof
e
.
default
;
"
object
"
!==
i
&&
"
function
"
!==
i
||
(
c
=
e
,
a
=
e
.
default
);
var
s
=
"
function
"
==
typeof
a
?
a
.
options
:
a
;
t
&&
(
s
.
render
=
t
.
render
,
s
.
staticRenderFns
=
t
.
staticRenderFns
),
r
&&
(
s
.
_scopeId
=
r
);
var
u
;
if
(
o
?(
u
=
function
(
e
){
e
=
e
||
this
.
$vnode
&&
this
.
$vnode
.
ssrContext
||
this
.
parent
&&
this
.
parent
.
$vnode
&&
this
.
parent
.
$vnode
.
ssrContext
,
e
||
"
undefined
"
==
typeof
__VUE_SSR_CONTEXT__
||
(
e
=
__VUE_SSR_CONTEXT__
),
n
&&
n
.
call
(
this
,
e
),
e
&&
e
.
_registeredComponents
&&
e
.
_registeredComponents
.
add
(
o
)},
s
.
_ssrRegister
=
u
):
n
&&
(
u
=
n
),
u
){
var
l
=
s
.
functional
,
d
=
l
?
s
.
render
:
s
.
beforeCreate
;
l
?
s
.
render
=
function
(
e
,
t
){
return
u
.
call
(
t
),
d
(
e
,
t
)}:
s
.
beforeCreate
=
d
?[].
concat
(
d
,
u
):[
u
]}
return
{
esModule
:
c
,
exports
:
a
,
options
:
s
}}},
80
:
function
(
e
,
t
,
n
){
function
r
(
e
){
n
(
81
)}
var
o
=
n
(
4
)(
n
(
82
),
n
(
83
),
r
,
null
,
null
);
e
.
exports
=
o
.
exports
},
81
:
function
(
e
,
t
){},
82
:
function
(
e
,
t
,
n
){
var
r
,
o
,
c
;
!
function
(
n
,
a
){
o
=
[
e
,
t
],
r
=
a
,
void
0
!==
(
c
=
"
function
"
==
typeof
r
?
r
.
apply
(
t
,
o
):
r
)
&&
(
e
.
exports
=
c
)}(
0
,
function
(
e
,
t
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
t
.
default
=
{
name
:
"
cube-checkbox
"
,
props
:{
value
:{
type
:[
Boolean
,
String
],
require
:
!
0
},
label
:{
type
:[
Boolean
,
String
]},
disabled
:{
type
:
Boolean
,
default
:
!
1
},
position
:{
type
:
String
,
default
:
"
left
"
}},
data
:
function
(){
var
e
=
this
.
$parent
,
t
=
e
.
$data
.
_checkboxGroup
;
return
{
isInGroup
:
t
,
isInHorizontalGroup
:
t
&&
e
.
$props
.
horizontal
}},
computed
:{
checkValue
:{
get
:
function
(){
return
this
.
isInGroup
?
this
.
$parent
.
value
.
indexOf
(
this
.
label
)
>-
1
:
Boolean
(
this
.
value
)},
set
:
function
(
e
){
var
t
=
this
.
label
&&
e
?
this
.
label
:
e
,
n
=
e
?
"
checked
"
:
"
cancel-checked
"
;
this
.
$emit
(
"
input
"
,
t
),
this
.
isInGroup
&&
this
.
$parent
.
$emit
(
n
,
this
.
label
||
e
,
this
)}},
_containerClass
:
function
(){
if
(
this
.
isInHorizontalGroup
)
return
"
border-right-1px
"
},
_wrapClass
:
function
(){
var
e
=
this
.
isInHorizontalGroup
;
return
{
"
cube-checkbox_checked
"
:
this
.
checkValue
,
"
cube-checkbox_disabled
"
:
this
.
disabled
,
"
border-bottom-1px
"
:
this
.
isInGroup
&&!
e
}}}},
e
.
exports
=
t
.
default
})},
83
:
function
(
e
,
t
){
e
.
exports
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
div
"
,{
staticClass
:
"
cube-checkbox
"
,
class
:
e
.
_containerClass
,
attrs
:{
"
data-pos
"
:
e
.
position
}},[
n
(
"
label
"
,{
staticClass
:
"
cube-checkbox-wrap
"
,
class
:
e
.
_wrapClass
},[
n
(
"
input
"
,{
directives
:[{
name
:
"
model
"
,
rawName
:
"
v-model
"
,
value
:
e
.
checkValue
,
expression
:
"
checkValue
"
}],
staticClass
:
"
cube-checkbox-input
"
,
attrs
:{
type
:
"
checkbox
"
,
disabled
:
e
.
disabled
},
domProps
:{
checked
:
Array
.
isArray
(
e
.
checkValue
)?
e
.
_i
(
e
.
checkValue
,
null
)
>-
1
:
e
.
checkValue
},
on
:{
change
:
function
(
t
){
var
n
=
e
.
checkValue
,
r
=
t
.
target
,
o
=!!
r
.
checked
;
if
(
Array
.
isArray
(
n
)){
var
c
=
e
.
_i
(
n
,
null
);
r
.
checked
?
c
<
0
&&
(
e
.
checkValue
=
n
.
concat
([
null
])):
c
>-
1
&&
(
e
.
checkValue
=
n
.
slice
(
0
,
c
).
concat
(
n
.
slice
(
c
+
1
)))}
else
e
.
checkValue
=
o
}}}),
e
.
_v
(
"
"
),
e
.
_m
(
0
),
e
.
_v
(
"
"
),
n
(
"
span
"
,{
staticClass
:
"
cube-checkbox-label
"
},[
e
.
_t
(
"
default
"
,[
e
.
_v
(
e
.
_s
(
e
.
label
))])],
2
)])])},
staticRenderFns
:[
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
span
"
,{
staticClass
:
"
cube-checkbox-ui cubeic-round-border
"
},[
n
(
"
i
"
,{
staticClass
:
"
cubeic-right
"
})])}]}}});
\ No newline at end of file
lib/checkbox/index.js
浏览文件 @
824f4cc6
...
...
@@ -388,7 +388,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
},
[
_vm
.
_t
(
"
default
"
,
[
_vm
.
_v
(
_vm
.
_s
(
_vm
.
label
))])],
2
)])])
},
staticRenderFns
:
[
function
(){
var
_vm
=
this
;
var
_h
=
_vm
.
$createElement
;
var
_c
=
_vm
.
_self
.
_c
||
_h
;
return
_c
(
'
span
'
,
{
staticClass
:
"
cube-checkbox-ui cubeic-round-border
-new
"
staticClass
:
"
cube-checkbox-ui cubeic-round-border
"
},
[
_c
(
'
i
'
,
{
staticClass
:
"
cubeic-right
"
})])
...
...
lib/cube.min.css
浏览文件 @
824f4cc6
此差异已折叠。
点击以展开。
lib/cube.min.js
浏览文件 @
824f4cc6
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
lib/index-list/index-list.min.css
浏览文件 @
824f4cc6
body
,
html
{
line-height
:
1
;
font-family
:
PingFang
SC
,
STHeitiSC-Light
,
Helvetica-Light
,
arial
,
sans-serif
;
-webkit-user-select
:
none
;
user-select
:
none
;
-webkit-tap-highlight-color
:
transparent
}
.clear-fix
:after
{
content
:
""
;
display
:
table
;
clear
:
both
}
.border-bottom-1px
,
.border-left-1px
,
.border-right-1px
,
.border-top-1px
{
position
:
relative
}
.border-bottom-1px
:after
,
.border-bottom-1px
:before
,
.border-left-1px
:after
,
.border-left-1px
:before
,
.border-right-1px
:after
,
.border-right-1px
:before
,
.border-top-1px
:after
,
.border-top-1px
:before
{
content
:
""
;
display
:
block
;
position
:
absolute
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
}
.border-top-1px
:before
{
border-top
:
1px
solid
#ebebeb
;
left
:
0
;
top
:
0
;
width
:
100%
;
-webkit-transform-origin
:
0
top
;
transform-origin
:
0
top
}
.border-right-1px
:after
{
border-right
:
1px
solid
#f5f5f5
;
top
:
0
;
right
:
0
;
height
:
100%
;
-webkit-transform-origin
:
right
0
;
transform-origin
:
right
0
}
.border-bottom-1px
:after
{
border-bottom
:
1px
solid
#ebebeb
;
left
:
0
;
bottom
:
0
;
width
:
100%
;
-webkit-transform-origin
:
0
bottom
;
transform-origin
:
0
bottom
}
.border-left-1px
:before
{
border-left
:
1px
solid
#f5f5f5
;
top
:
0
;
left
:
0
;
height
:
100%
;
-webkit-transform-origin
:
left
0
;
transform-origin
:
left
0
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.border-top-1px
:before
{
width
:
200%
}
.border-right-1px
:after
,
.border-top-1px
:before
{
-webkit-transform
:
scale
(
.5
)
translateZ
(
0
);
transform
:
scale
(
.5
)
translateZ
(
0
)}
.border-right-1px
:after
{
height
:
200%
}
.border-bottom-1px
:after
{
width
:
200%
}
.border-bottom-1px
:after
,
.border-left-1px
:before
{
-webkit-transform
:
scale
(
.5
)
translateZ
(
0
);
transform
:
scale
(
.5
)
translateZ
(
0
)}
.border-left-1px
:before
{
height
:
200%
}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.border-top-1px
:before
{
width
:
300%
}
.border-right-1px
:after
,
.border-top-1px
:before
{
-webkit-transform
:
scale
(
.333
)
translateZ
(
0
);
transform
:
scale
(
.333
)
translateZ
(
0
)}
.border-right-1px
:after
{
height
:
300%
}
.border-bottom-1px
:after
{
width
:
300%
}
.border-bottom-1px
:after
,
.border-left-1px
:before
{
-webkit-transform
:
scale
(
.333
)
translateZ
(
0
);
transform
:
scale
(
.333
)
translateZ
(
0
)}
.border-left-1px
:before
{
height
:
300%
}}
.cube-index-list
{
position
:
relative
;
width
:
100%
;
height
:
100%
}
.cube-index-list
.cube-scroll-wrapper
{
position
:
absolute
;
left
:
0
;
top
:
0
;
right
:
0
;
bottom
:
0
;
overflow
:
hidden
}
.cube-index-list-content
{
background
:
#fff
;
box-shadow
:
0
3px
6px
#eee
;
border-radius
:
2px
}
.cube-index-list-title
{
padding
:
14px
16px
;
font-size
:
14px
;
line-height
:
1.6
;
color
:
#333
}
.cube-index-list-anchor
,
.cube-index-list-fixed
{
padding
:
16px
16px
10px
;
line-height
:
1
;
font-size
:
14px
;
color
:
#999
;
background
:
#f7f7f7
}
.cube-index-list-item
{
position
:
relative
;
height
:
50px
;
line-height
:
50px
;
padding
:
0
16px
;
font-size
:
14px
;
color
:
#333
}
.cube-index-list-item
:last-child:after
,
.cube-index-list-item
:last-child:before
{
display
:
none
}
.cube-index-list-item_active
{
background
:
rgba
(
0
,
0
,
0
,
.04
)}
.cube-index-list-fixed
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
box-sizing
:
border-box
}
.cube-index-list-nav
{
position
:
absolute
;
z-index
:
30
;
right
:
0
;
top
:
50%
;
-webkit-transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
font-family
:
Helvetica
}
.cube-index-list-nav
>
ul
{
padding
:
0
;
margin
:
0
}
.cube-index-list-nav
>
ul
>
li
{
padding
:
6px
16px
0
;
line-height
:
1
;
text-align
:
center
;
font-size
:
12px
;
color
:
#666
}
.cube-index-list-nav
>
ul
>
li
.active
{
color
:
#fc9153
}
@media
(
max-height
:
480px
){
.cube-index-list-nav
>
ul
>
li
{
padding-top
:
3px
}}
.cube-pulldown-wrapper
{
position
:
absolute
;
width
:
100%
;
left
:
0
;
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-pack
:
center
;
justify-content
:
center
;
-webkit-box-align
:
center
;
align-items
:
center
;
-webkit-transition
:
all
;
transition
:
all
}
.cube-pulldown-wrapper
.after-trigger
{
margin-top
:
10px
}
.cube-pullup-wrapper
{
width
:
100%
;
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-pack
:
center
;
justify-content
:
center
;
-webkit-box-align
:
center
;
align-items
:
center
;
padding
:
16px
0
}
.cube-scroll-content
{
position
:
relative
;
z-index
:
1
}
.cube-loading
img
{
display
:
block
}
\ No newline at end of file
body
,
html
{
line-height
:
1
;
font-family
:
PingFang
SC
,
STHeitiSC-Light
,
Helvetica-Light
,
arial
,
sans-serif
;
-webkit-user-select
:
none
;
user-select
:
none
;
-webkit-tap-highlight-color
:
transparent
}
.clear-fix
:after
{
content
:
""
;
display
:
table
;
clear
:
both
}
.border-bottom-1px
,
.border-left-1px
,
.border-right-1px
,
.border-top-1px
{
position
:
relative
}
.border-bottom-1px
:after
,
.border-bottom-1px
:before
,
.border-left-1px
:after
,
.border-left-1px
:before
,
.border-right-1px
:after
,
.border-right-1px
:before
,
.border-top-1px
:after
,
.border-top-1px
:before
{
content
:
""
;
display
:
block
;
position
:
absolute
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
}
.border-top-1px
:before
{
border-top
:
1px
solid
#ebebeb
;
left
:
0
;
top
:
0
;
width
:
100%
;
-webkit-transform-origin
:
0
top
;
transform-origin
:
0
top
}
.border-right-1px
:after
{
border-right
:
1px
solid
#f5f5f5
;
top
:
0
;
right
:
0
;
height
:
100%
;
-webkit-transform-origin
:
right
0
;
transform-origin
:
right
0
}
.border-bottom-1px
:after
{
border-bottom
:
1px
solid
#ebebeb
;
left
:
0
;
bottom
:
0
;
width
:
100%
;
-webkit-transform-origin
:
0
bottom
;
transform-origin
:
0
bottom
}
.border-left-1px
:before
{
border-left
:
1px
solid
#f5f5f5
;
top
:
0
;
left
:
0
;
height
:
100%
;
-webkit-transform-origin
:
left
0
;
transform-origin
:
left
0
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.border-top-1px
:before
{
width
:
200%
}
.border-right-1px
:after
,
.border-top-1px
:before
{
-webkit-transform
:
scale
(
.5
)
translateZ
(
0
);
transform
:
scale
(
.5
)
translateZ
(
0
)}
.border-right-1px
:after
{
height
:
200%
}
.border-bottom-1px
:after
{
width
:
200%
}
.border-bottom-1px
:after
,
.border-left-1px
:before
{
-webkit-transform
:
scale
(
.5
)
translateZ
(
0
);
transform
:
scale
(
.5
)
translateZ
(
0
)}
.border-left-1px
:before
{
height
:
200%
}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.border-top-1px
:before
{
width
:
300%
}
.border-right-1px
:after
,
.border-top-1px
:before
{
-webkit-transform
:
scale
(
.333
)
translateZ
(
0
);
transform
:
scale
(
.333
)
translateZ
(
0
)}
.border-right-1px
:after
{
height
:
300%
}
.border-bottom-1px
:after
{
width
:
300%
}
.border-bottom-1px
:after
,
.border-left-1px
:before
{
-webkit-transform
:
scale
(
.333
)
translateZ
(
0
);
transform
:
scale
(
.333
)
translateZ
(
0
)}
.border-left-1px
:before
{
height
:
300%
}}
.cube-index-list
{
position
:
relative
;
width
:
100%
;
height
:
100%
}
.cube-index-list
.cube-scroll-wrapper
{
position
:
absolute
;
left
:
0
;
top
:
0
;
right
:
0
;
bottom
:
0
;
overflow
:
hidden
}
.cube-index-list-content
{
background
:
#fff
;
box-shadow
:
0
3px
6px
#eee
;
border-radius
:
2px
}
.cube-index-list-title
{
padding
:
14px
16px
;
font-size
:
14px
;
line-height
:
1.6
;
color
:
#333
}
.cube-index-list-anchor
,
.cube-index-list-fixed
{
padding
:
16px
16px
10px
;
line-height
:
1
;
font-size
:
14px
;
color
:
#999
;
background
:
#f7f7f7
}
.cube-index-list-item
{
position
:
relative
;
height
:
50px
;
line-height
:
50px
;
padding
:
0
16px
;
font-size
:
14px
;
color
:
#333
}
.cube-index-list-item
:last-child:after
,
.cube-index-list-item
:last-child:before
{
display
:
none
}
.cube-index-list-item_active
{
background
:
rgba
(
0
,
0
,
0
,
.04
)}
.cube-index-list-fixed
{
z-index
:
1
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
box-sizing
:
border-box
}
.cube-index-list-nav
{
position
:
absolute
;
z-index
:
30
;
right
:
0
;
top
:
50%
;
-webkit-transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
font-family
:
Helvetica
}
.cube-index-list-nav
>
ul
{
padding
:
0
;
margin
:
0
}
.cube-index-list-nav
>
ul
>
li
{
padding
:
6px
16px
0
;
line-height
:
1
;
text-align
:
center
;
font-size
:
12px
;
color
:
#666
}
.cube-index-list-nav
>
ul
>
li
.active
{
color
:
#fc9153
}
@media
(
max-height
:
480px
){
.cube-index-list-nav
>
ul
>
li
{
padding-top
:
3px
}}
.cube-pulldown-wrapper
{
position
:
absolute
;
width
:
100%
;
left
:
0
;
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-pack
:
center
;
justify-content
:
center
;
-webkit-box-align
:
center
;
align-items
:
center
;
-webkit-transition
:
all
;
transition
:
all
}
.cube-pulldown-wrapper
.after-trigger
{
margin-top
:
10px
}
.cube-pullup-wrapper
{
width
:
100%
;
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-pack
:
center
;
justify-content
:
center
;
-webkit-box-align
:
center
;
align-items
:
center
;
padding
:
16px
0
}
.cube-scroll-content
{
position
:
relative
;
z-index
:
1
}
.cube-loading
img
{
display
:
block
}
\ No newline at end of file
lib/index-list/index-list.min.js
浏览文件 @
824f4cc6
此差异已折叠。
点击以展开。
lib/index-list/index.js
浏览文件 @
824f4cc6
...
...
@@ -3424,12 +3424,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
var
_this
=
this
;
setTimeout
(
function
()
{
_this
.
_
initScroll
();
_this
.
initScroll
();
},
20
);
},
methods
:
{
_initScroll
:
function
_
initScroll
()
{
initScroll
:
function
initScroll
()
{
var
_this2
=
this
;
if
(
!
this
.
$refs
.
wrapper
)
{
...
...
@@ -3480,6 +3480,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
refresh
:
function
refresh
()
{
this
.
scroll
&&
this
.
scroll
.
refresh
();
},
destroy
:
function
destroy
()
{
this
.
scroll
.
destroy
();
},
scrollTo
:
function
scrollTo
()
{
this
.
scroll
&&
this
.
scroll
.
scrollTo
.
apply
(
this
.
scroll
,
arguments
);
},
...
...
lib/index-list/style.css
浏览文件 @
824f4cc6
body
,
html
{
line-height
:
1
;
font-family
:
PingFang
SC
,
STHeitiSC-Light
,
Helvetica-Light
,
arial
,
sans-serif
;
-webkit-user-select
:
none
;
user-select
:
none
;
-webkit-tap-highlight-color
:
transparent
}
.clear-fix
:after
{
content
:
""
;
display
:
table
;
clear
:
both
}
.border-bottom-1px
,
.border-left-1px
,
.border-right-1px
,
.border-top-1px
{
position
:
relative
}
.border-bottom-1px
:after
,
.border-bottom-1px
:before
,
.border-left-1px
:after
,
.border-left-1px
:before
,
.border-right-1px
:after
,
.border-right-1px
:before
,
.border-top-1px
:after
,
.border-top-1px
:before
{
content
:
""
;
display
:
block
;
position
:
absolute
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
}
.border-top-1px
:before
{
border-top
:
1px
solid
#ebebeb
;
left
:
0
;
top
:
0
;
width
:
100%
;
-webkit-transform-origin
:
0
top
;
transform-origin
:
0
top
}
.border-right-1px
:after
{
border-right
:
1px
solid
#f5f5f5
;
top
:
0
;
right
:
0
;
height
:
100%
;
-webkit-transform-origin
:
right
0
;
transform-origin
:
right
0
}
.border-bottom-1px
:after
{
border-bottom
:
1px
solid
#ebebeb
;
left
:
0
;
bottom
:
0
;
width
:
100%
;
-webkit-transform-origin
:
0
bottom
;
transform-origin
:
0
bottom
}
.border-left-1px
:before
{
border-left
:
1px
solid
#f5f5f5
;
top
:
0
;
left
:
0
;
height
:
100%
;
-webkit-transform-origin
:
left
0
;
transform-origin
:
left
0
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.border-top-1px
:before
{
width
:
200%
}
.border-right-1px
:after
,
.border-top-1px
:before
{
-webkit-transform
:
scale
(
.5
)
translateZ
(
0
);
transform
:
scale
(
.5
)
translateZ
(
0
)}
.border-right-1px
:after
{
height
:
200%
}
.border-bottom-1px
:after
{
width
:
200%
}
.border-bottom-1px
:after
,
.border-left-1px
:before
{
-webkit-transform
:
scale
(
.5
)
translateZ
(
0
);
transform
:
scale
(
.5
)
translateZ
(
0
)}
.border-left-1px
:before
{
height
:
200%
}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.border-top-1px
:before
{
width
:
300%
}
.border-right-1px
:after
,
.border-top-1px
:before
{
-webkit-transform
:
scale
(
.333
)
translateZ
(
0
);
transform
:
scale
(
.333
)
translateZ
(
0
)}
.border-right-1px
:after
{
height
:
300%
}
.border-bottom-1px
:after
{
width
:
300%
}
.border-bottom-1px
:after
,
.border-left-1px
:before
{
-webkit-transform
:
scale
(
.333
)
translateZ
(
0
);
transform
:
scale
(
.333
)
translateZ
(
0
)}
.border-left-1px
:before
{
height
:
300%
}}
.cube-index-list
{
position
:
relative
;
width
:
100%
;
height
:
100%
}
.cube-index-list
.cube-scroll-wrapper
{
position
:
absolute
;
left
:
0
;
top
:
0
;
right
:
0
;
bottom
:
0
;
overflow
:
hidden
}
.cube-index-list-content
{
background
:
#fff
;
-webkit-box-shadow
:
0
3px
6px
#eee
;
box-shadow
:
0
3px
6px
#eee
;
border-radius
:
2px
}
.cube-index-list-title
{
padding
:
14px
16px
;
font-size
:
14px
;
line-height
:
1.6
;
color
:
#333
}
.cube-index-list-anchor
,
.cube-index-list-fixed
{
padding
:
16px
16px
10px
;
line-height
:
1
;
font-size
:
14px
;
color
:
#999
;
background
:
#f7f7f7
}
.cube-index-list-item
{
position
:
relative
;
height
:
50px
;
line-height
:
50px
;
padding
:
0
16px
;
font-size
:
14px
;
color
:
#333
}
.cube-index-list-item
:last-child:after
,
.cube-index-list-item
:last-child:before
{
display
:
none
}
.cube-index-list-item_active
{
background
:
rgba
(
0
,
0
,
0
,
.04
)}
.cube-index-list-fixed
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
}
.cube-index-list-nav
{
position
:
absolute
;
z-index
:
30
;
right
:
0
;
top
:
50%
;
-webkit-transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
font-family
:
Helvetica
}
.cube-index-list-nav
>
ul
{
padding
:
0
;
margin
:
0
}
.cube-index-list-nav
>
ul
>
li
{
padding
:
6px
16px
0
;
line-height
:
1
;
text-align
:
center
;
font-size
:
12px
;
color
:
#666
}
.cube-index-list-nav
>
ul
>
li
.active
{
color
:
#fc9153
}
@media
(
max-height
:
480px
){
.cube-index-list-nav
>
ul
>
li
{
padding-top
:
3px
}}
.cube-pulldown-wrapper
{
position
:
absolute
;
width
:
100%
;
left
:
0
;
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-pack
:
center
;
justify-content
:
center
;
-webkit-box-align
:
center
;
align-items
:
center
;
-webkit-transition
:
all
;
transition
:
all
}
.cube-pulldown-wrapper
.after-trigger
{
margin-top
:
10px
}
.cube-pullup-wrapper
{
width
:
100%
;
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-pack
:
center
;
justify-content
:
center
;
-webkit-box-align
:
center
;
align-items
:
center
;
padding
:
16px
0
}
.cube-scroll-content
{
position
:
relative
;
z-index
:
1
}
.cube-loading
img
{
display
:
block
}
\ No newline at end of file
body
,
html
{
line-height
:
1
;
font-family
:
PingFang
SC
,
STHeitiSC-Light
,
Helvetica-Light
,
arial
,
sans-serif
;
-webkit-user-select
:
none
;
user-select
:
none
;
-webkit-tap-highlight-color
:
transparent
}
.clear-fix
:after
{
content
:
""
;
display
:
table
;
clear
:
both
}
.border-bottom-1px
,
.border-left-1px
,
.border-right-1px
,
.border-top-1px
{
position
:
relative
}
.border-bottom-1px
:after
,
.border-bottom-1px
:before
,
.border-left-1px
:after
,
.border-left-1px
:before
,
.border-right-1px
:after
,
.border-right-1px
:before
,
.border-top-1px
:after
,
.border-top-1px
:before
{
content
:
""
;
display
:
block
;
position
:
absolute
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
}
.border-top-1px
:before
{
border-top
:
1px
solid
#ebebeb
;
left
:
0
;
top
:
0
;
width
:
100%
;
-webkit-transform-origin
:
0
top
;
transform-origin
:
0
top
}
.border-right-1px
:after
{
border-right
:
1px
solid
#f5f5f5
;
top
:
0
;
right
:
0
;
height
:
100%
;
-webkit-transform-origin
:
right
0
;
transform-origin
:
right
0
}
.border-bottom-1px
:after
{
border-bottom
:
1px
solid
#ebebeb
;
left
:
0
;
bottom
:
0
;
width
:
100%
;
-webkit-transform-origin
:
0
bottom
;
transform-origin
:
0
bottom
}
.border-left-1px
:before
{
border-left
:
1px
solid
#f5f5f5
;
top
:
0
;
left
:
0
;
height
:
100%
;
-webkit-transform-origin
:
left
0
;
transform-origin
:
left
0
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.border-top-1px
:before
{
width
:
200%
}
.border-right-1px
:after
,
.border-top-1px
:before
{
-webkit-transform
:
scale
(
.5
)
translateZ
(
0
);
transform
:
scale
(
.5
)
translateZ
(
0
)}
.border-right-1px
:after
{
height
:
200%
}
.border-bottom-1px
:after
{
width
:
200%
}
.border-bottom-1px
:after
,
.border-left-1px
:before
{
-webkit-transform
:
scale
(
.5
)
translateZ
(
0
);
transform
:
scale
(
.5
)
translateZ
(
0
)}
.border-left-1px
:before
{
height
:
200%
}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.border-top-1px
:before
{
width
:
300%
}
.border-right-1px
:after
,
.border-top-1px
:before
{
-webkit-transform
:
scale
(
.333
)
translateZ
(
0
);
transform
:
scale
(
.333
)
translateZ
(
0
)}
.border-right-1px
:after
{
height
:
300%
}
.border-bottom-1px
:after
{
width
:
300%
}
.border-bottom-1px
:after
,
.border-left-1px
:before
{
-webkit-transform
:
scale
(
.333
)
translateZ
(
0
);
transform
:
scale
(
.333
)
translateZ
(
0
)}
.border-left-1px
:before
{
height
:
300%
}}
.cube-index-list
{
position
:
relative
;
width
:
100%
;
height
:
100%
}
.cube-index-list
.cube-scroll-wrapper
{
position
:
absolute
;
left
:
0
;
top
:
0
;
right
:
0
;
bottom
:
0
;
overflow
:
hidden
}
.cube-index-list-content
{
background
:
#fff
;
-webkit-box-shadow
:
0
3px
6px
#eee
;
box-shadow
:
0
3px
6px
#eee
;
border-radius
:
2px
}
.cube-index-list-title
{
padding
:
14px
16px
;
font-size
:
14px
;
line-height
:
1.6
;
color
:
#333
}
.cube-index-list-anchor
,
.cube-index-list-fixed
{
padding
:
16px
16px
10px
;
line-height
:
1
;
font-size
:
14px
;
color
:
#999
;
background
:
#f7f7f7
}
.cube-index-list-item
{
position
:
relative
;
height
:
50px
;
line-height
:
50px
;
padding
:
0
16px
;
font-size
:
14px
;
color
:
#333
}
.cube-index-list-item
:last-child:after
,
.cube-index-list-item
:last-child:before
{
display
:
none
}
.cube-index-list-item_active
{
background
:
rgba
(
0
,
0
,
0
,
.04
)}
.cube-index-list-fixed
{
z-index
:
1
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
}
.cube-index-list-nav
{
position
:
absolute
;
z-index
:
30
;
right
:
0
;
top
:
50%
;
-webkit-transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
font-family
:
Helvetica
}
.cube-index-list-nav
>
ul
{
padding
:
0
;
margin
:
0
}
.cube-index-list-nav
>
ul
>
li
{
padding
:
6px
16px
0
;
line-height
:
1
;
text-align
:
center
;
font-size
:
12px
;
color
:
#666
}
.cube-index-list-nav
>
ul
>
li
.active
{
color
:
#fc9153
}
@media
(
max-height
:
480px
){
.cube-index-list-nav
>
ul
>
li
{
padding-top
:
3px
}}
.cube-pulldown-wrapper
{
position
:
absolute
;
width
:
100%
;
left
:
0
;
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-pack
:
center
;
justify-content
:
center
;
-webkit-box-align
:
center
;
align-items
:
center
;
-webkit-transition
:
all
;
transition
:
all
}
.cube-pulldown-wrapper
.after-trigger
{
margin-top
:
10px
}
.cube-pullup-wrapper
{
width
:
100%
;
display
:
-webkit-box
;
display
:
flex
;
-webkit-box-pack
:
center
;
justify-content
:
center
;
-webkit-box-align
:
center
;
align-items
:
center
;
padding
:
16px
0
}
.cube-scroll-content
{
position
:
relative
;
z-index
:
1
}
.cube-loading
img
{
display
:
block
}
\ No newline at end of file
lib/index.js
浏览文件 @
824f4cc6
...
...
@@ -3220,7 +3220,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
}
var
cube
=
{
version
:
"
1.0.
0
"
,
version
:
"
1.0.
1
"
,
install
:
install
,
BScroll
:
_module
.
BScroll
,
createAPI
:
_module
.
createAPI
...
...
@@ -3764,7 +3764,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
},
[
_vm
.
_t
(
"
default
"
,
[
_vm
.
_v
(
_vm
.
_s
(
_vm
.
label
))])],
2
)])])
},
staticRenderFns
:
[
function
(){
var
_vm
=
this
;
var
_h
=
_vm
.
$createElement
;
var
_c
=
_vm
.
_self
.
_c
||
_h
;
return
_c
(
'
span
'
,
{
staticClass
:
"
cube-checkbox-ui cubeic-round-border
-new
"
staticClass
:
"
cube-checkbox-ui cubeic-round-border
"
},
[
_c
(
'
i
'
,
{
staticClass
:
"
cubeic-right
"
})])
...
...
@@ -6230,12 +6230,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
var
_this
=
this
;
setTimeout
(
function
()
{
_this
.
_
initScroll
();
_this
.
initScroll
();
},
20
);
},
methods
:
{
_initScroll
:
function
_
initScroll
()
{
initScroll
:
function
initScroll
()
{
var
_this2
=
this
;
if
(
!
this
.
$refs
.
wrapper
)
{
...
...
@@ -6286,6 +6286,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
refresh
:
function
refresh
()
{
this
.
scroll
&&
this
.
scroll
.
refresh
();
},
destroy
:
function
destroy
()
{
this
.
scroll
.
destroy
();
},
scrollTo
:
function
scrollTo
()
{
this
.
scroll
&&
this
.
scroll
.
scrollTo
.
apply
(
this
.
scroll
,
arguments
);
},
...
...
lib/scroll/index.js
浏览文件 @
824f4cc6
...
...
@@ -3424,12 +3424,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
var
_this
=
this
;
setTimeout
(
function
()
{
_this
.
_
initScroll
();
_this
.
initScroll
();
},
20
);
},
methods
:
{
_initScroll
:
function
_
initScroll
()
{
initScroll
:
function
initScroll
()
{
var
_this2
=
this
;
if
(
!
this
.
$refs
.
wrapper
)
{
...
...
@@ -3480,6 +3480,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
refresh
:
function
refresh
()
{
this
.
scroll
&&
this
.
scroll
.
refresh
();
},
destroy
:
function
destroy
()
{
this
.
scroll
.
destroy
();
},
scrollTo
:
function
scrollTo
()
{
this
.
scroll
&&
this
.
scroll
.
scrollTo
.
apply
(
this
.
scroll
,
arguments
);
},
...
...
lib/scroll/scroll.min.js
浏览文件 @
824f4cc6
此差异已折叠。
点击以展开。
lib/style.css
浏览文件 @
824f4cc6
此差异已折叠。
点击以展开。
package.json
浏览文件 @
824f4cc6
{
"name"
:
"cube-ui"
,
"version"
:
"1.0.
0
"
,
"version"
:
"1.0.
1
"
,
"description"
:
"A fantastic mobile ui lib implement by Vue"
,
"main"
:
"lib/index.js"
,
"module"
:
"src/index.js"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录