Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
cube-ui
提交
a9eaf494
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 搜索 >>
提交
a9eaf494
编写于
5月 07, 2019
作者:
D
dolymood
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build: package
上级
4a85ccec
变更
13
展开全部
隐藏空白更改
内联
并排
Showing
13 changed file
with
2440 addition
and
2422 deletion
+2440
-2422
lib/checker/checker.min.css
lib/checker/checker.min.css
+1
-1
lib/checker/checker.min.js
lib/checker/checker.min.js
+1
-1
lib/checker/index.js
lib/checker/index.js
+7
-1
lib/checker/style.css
lib/checker/style.css
+1
-1
lib/cube.min.css
lib/cube.min.css
+1
-1
lib/cube.min.js
lib/cube.min.js
+3
-3
lib/form/form.min.css
lib/form/form.min.css
+1
-1
lib/form/form.min.js
lib/form/form.min.js
+1
-1
lib/form/index.js
lib/form/index.js
+7
-1
lib/form/style.css
lib/form/style.css
+1
-1
lib/index.js
lib/index.js
+8
-2
lib/style.css
lib/style.css
+1
-1
package-lock.json
package-lock.json
+2407
-2407
未找到文件。
lib/checker/checker.min.css
浏览文件 @
a9eaf494
.cube-checker-item
{
display
:
inline-block
;
vertical-align
:
top
;
text-align
:
center
;
padding
:
8px
10px
;
margin-right
:
10px
;
color
:
#666
;
background
:
#fff
;
border-radius
:
4px
;
position
:
relative
}
.cube-checker-item
:after
{
content
:
""
;
pointer-events
:
none
;
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
0
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
;
border
:
1px
solid
#fcfcfc
;
border-radius
:
4px
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.cube-checker-item
:after
{
width
:
200%
;
height
:
200%
;
border-radius
:
8px
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.cube-checker-item
:after
{
width
:
300%
;
height
:
300%
;
border-radius
:
12px
;
-webkit-transform
:
scale
(
.333
);
transform
:
scale
(
.333
)}}
.cube-checker-item_active
{
color
:
#fc9153
;
background
:
rgba
(
252
,
145
,
83
,
.04
);
position
:
relative
}
.cube-checker-item_active
:after
{
content
:
""
;
pointer-events
:
none
;
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
0
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
;
border
:
1px
solid
#fc9153
;
border-radius
:
4px
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.cube-checker-item_active
:after
{
width
:
200%
;
height
:
200%
;
border-radius
:
8px
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.cube-checker-item_active
:after
{
width
:
300%
;
height
:
300%
;
border-radius
:
12px
;
-webkit-transform
:
scale
(
.333
);
transform
:
scale
(
.333
)}}
\ No newline at end of file
.cube-checker-item
{
display
:
inline-block
;
vertical-align
:
top
;
text-align
:
center
;
padding
:
8px
10px
;
margin-right
:
10px
;
color
:
#666
;
background
:
#fff
;
border-radius
:
4px
;
position
:
relative
}
.cube-checker-item
:after
{
content
:
""
;
pointer-events
:
none
;
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
0
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
;
border
:
1px
solid
#fcfcfc
;
border-radius
:
4px
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.cube-checker-item
:after
{
width
:
200%
;
height
:
200%
;
border-radius
:
8px
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.cube-checker-item
:after
{
width
:
300%
;
height
:
300%
;
border-radius
:
12px
;
-webkit-transform
:
scale
(
.333
);
transform
:
scale
(
.333
)}}
.cube-checker-item_active
{
color
:
#fc9153
;
background
:
rgba
(
252
,
145
,
83
,
.04
);
position
:
relative
}
.cube-checker-item_active
:after
{
content
:
""
;
pointer-events
:
none
;
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
0
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
;
border
:
1px
solid
#fc9153
;
border-radius
:
4px
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.cube-checker-item_active
:after
{
width
:
200%
;
height
:
200%
;
border-radius
:
8px
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.cube-checker-item_active
:after
{
width
:
300%
;
height
:
300%
;
border-radius
:
12px
;
-webkit-transform
:
scale
(
.333
);
transform
:
scale
(
.333
)}}
.cube-checker-item_active.cube-checker-item_disabled
{
background
:
#eee
;
position
:
relative
}
.cube-checker-item_active.cube-checker-item_disabled
:after
{
content
:
""
;
pointer-events
:
none
;
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
0
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
;
border
:
1px
solid
#ccc
;
border-radius
:
4px
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.cube-checker-item_active.cube-checker-item_disabled
:after
{
width
:
200%
;
height
:
200%
;
border-radius
:
8px
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.cube-checker-item_active.cube-checker-item_disabled
:after
{
width
:
300%
;
height
:
300%
;
border-radius
:
12px
;
-webkit-transform
:
scale
(
.333
);
transform
:
scale
(
.333
)}}
.cube-checker-item_disabled
{
color
:
#ccc
}
\ No newline at end of file
lib/checker/checker.min.js
浏览文件 @
a9eaf494
!
function
(
e
,
t
){
"
object
"
==
typeof
exports
&&
"
object
"
==
typeof
module
?
module
.
exports
=
t
():
"
function
"
==
typeof
define
&&
define
.
amd
?
define
([],
t
):
"
object
"
==
typeof
exports
?
exports
.
checker
=
t
():(
e
.
cube
=
e
.
cube
||
{},
e
.
cube
.
checker
=
t
())}(
"
undefined
"
!=
typeof
self
?
self
:
this
,
function
(){
return
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
=
263
)}({
170
:
function
(
e
,
t
,
n
){
function
r
(
e
){
n
(
183
)}
var
o
=
n
(
6
)(
n
(
184
),
n
(
185
),
r
,
null
,
null
);
e
.
exports
=
o
.
exports
},
181
:
function
(
e
,
t
,
n
){
var
r
=
n
(
6
)(
n
(
182
),
n
(
186
),
null
,
null
,
null
);
e
.
exports
=
r
.
exports
},
182
:
function
(
e
,
t
,
n
){
var
r
,
o
,
u
;
!
function
(
c
,
i
){
o
=
[
e
,
t
,
n
(
170
)],
r
=
i
,
void
0
!==
(
u
=
"
function
"
==
typeof
r
?
r
.
apply
(
t
,
o
):
r
)
&&
(
e
.
exports
=
u
)}(
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
);
t
.
default
=
{
name
:
"
cube-checker
"
,
props
:{
value
:[
String
,
Number
,
Array
],
options
:{
type
:
Array
,
default
:
function
(){
return
[]}},
type
:{
type
:
String
,
default
:
"
checkbox
"
},
min
:{
type
:
Number
,
default
:
0
},
max
:{
type
:
Number
,
default
:
function
(){
return
this
.
options
.
length
}}},
data
:
function
(){
return
{
currentValue
:
this
.
value
}},
computed
:{
isRadio
:
function
(){
return
"
radio
"
===
this
.
type
}},
watch
:{
value
:
function
(
e
){
this
.
currentValue
=
e
},
currentValue
:
function
(
e
){
this
.
$emit
(
"
input
"
,
e
)}},
methods
:{
check
:
function
(
e
){
this
.
isRadio
?
this
.
checkRadio
(
e
):
this
.
checkCheckbox
(
e
)},
checkRadio
:
function
(
e
){
this
.
currentValue
=
e
.
value
},
checkCheckbox
:
function
(
e
){
var
t
=
e
.
value
,
n
=
this
.
currentValue
,
r
=
n
.
length
,
o
=
this
.
min
,
u
=
this
.
max
,
c
=
n
.
indexOf
(
t
);
c
>-
1
?
r
>
o
&&
n
.
splice
(
c
,
1
):
r
<
u
&&
n
.
push
(
t
)}},
components
:{
CubeCheckerItem
:
r
.
default
}},
e
.
exports
=
t
.
default
})},
183
:
function
(
e
,
t
){},
184
:
function
(
e
,
t
,
n
){
var
r
,
o
,
u
;
!
function
(
n
,
c
){
o
=
[
e
,
t
],
r
=
c
,
void
0
!==
(
u
=
"
function
"
==
typeof
r
?
r
.
apply
(
t
,
o
):
r
)
&&
(
e
.
exports
=
u
)}(
0
,
function
(
e
,
t
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
t
.
default
=
{
name
:
"
cube-checker-item
"
,
props
:{
option
:{
type
:
Object
,
default
:
function
(){
return
{}}}},
computed
:{
isActive
:
function
(){
var
e
=
this
.
$parent
.
isRadio
,
t
=
this
.
$parent
.
currentValue
,
n
=
this
.
option
.
value
;
return
e
?
t
===
n
:
t
.
indexOf
(
n
)
>=
0
}},
methods
:{
clickHandler
:
function
(){
this
.
$parent
.
check
(
this
.
option
)}}},
e
.
exports
=
t
.
default
})},
185
:
function
(
e
,
t
){
e
.
exports
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
li
"
,{
staticClass
:
"
cube-checker-item
"
,
class
:{
"
cube-checker-item_active
"
:
e
.
isActive
},
on
:{
click
:
e
.
clickHandler
}},[
e
.
_t
(
"
default
"
,[
n
(
"
span
"
,{
domProps
:{
innerHTML
:
e
.
_s
(
e
.
option
.
text
)}})])],
2
)},
staticRenderFns
:[]}},
186
:
function
(
e
,
t
){
e
.
exports
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
ul
"
,{
staticClass
:
"
cube-checker
"
},[
e
.
_t
(
"
default
"
,
e
.
_l
(
e
.
options
,
function
(
e
,
t
){
return
n
(
"
cube-checker-item
"
,{
key
:
t
,
attrs
:{
option
:
e
}})}))],
2
)},
staticRenderFns
:[]}},
263
:
function
(
e
,
t
,
n
){
var
r
,
o
,
u
;
!
function
(
c
,
i
){
o
=
[
e
,
t
,
n
(
181
),
n
(
170
)],
r
=
i
,
void
0
!==
(
u
=
"
function
"
==
typeof
r
?
r
.
apply
(
t
,
o
):
r
)
&&
(
e
.
exports
=
u
)}(
0
,
function
(
e
,
t
,
n
,
r
){
"
use strict
"
;
function
o
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
var
u
=
o
(
n
),
c
=
o
(
r
);
u
.
default
.
install
=
function
(
e
){
e
.
component
(
u
.
default
.
name
,
u
.
default
),
e
.
component
(
c
.
default
.
name
,
c
.
default
)},
u
.
default
.
Item
=
c
.
default
,
t
.
default
=
u
.
default
,
e
.
exports
=
t
.
default
})},
6
:
function
(
e
,
t
){
e
.
exports
=
function
(
e
,
t
,
n
,
r
,
o
){
var
u
,
c
=
e
=
e
||
{},
i
=
typeof
e
.
default
;
"
object
"
!==
i
&&
"
function
"
!==
i
||
(
u
=
e
,
c
=
e
.
default
);
var
s
=
"
function
"
==
typeof
c
?
c
.
options
:
c
;
t
&&
(
s
.
render
=
t
.
render
,
s
.
staticRenderFns
=
t
.
staticRenderFns
),
r
&&
(
s
.
_scopeId
=
r
);
var
a
;
if
(
o
?(
a
=
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
=
a
):
n
&&
(
a
=
n
),
a
){
var
f
=
s
.
functional
,
l
=
f
?
s
.
render
:
s
.
beforeCreate
;
f
?
s
.
render
=
function
(
e
,
t
){
return
a
.
call
(
t
),
l
(
e
,
t
)}:
s
.
beforeCreate
=
l
?[].
concat
(
l
,
a
):[
a
]}
return
{
esModule
:
u
,
exports
:
c
,
options
:
s
}}}})});
\ No newline at end of file
!
function
(
e
,
t
){
"
object
"
==
typeof
exports
&&
"
object
"
==
typeof
module
?
module
.
exports
=
t
():
"
function
"
==
typeof
define
&&
define
.
amd
?
define
([],
t
):
"
object
"
==
typeof
exports
?
exports
.
checker
=
t
():(
e
.
cube
=
e
.
cube
||
{},
e
.
cube
.
checker
=
t
())}(
"
undefined
"
!=
typeof
self
?
self
:
this
,
function
(){
return
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
=
263
)}({
170
:
function
(
e
,
t
,
n
){
function
r
(
e
){
n
(
183
)}
var
o
=
n
(
6
)(
n
(
184
),
n
(
185
),
r
,
null
,
null
);
e
.
exports
=
o
.
exports
},
181
:
function
(
e
,
t
,
n
){
var
r
=
n
(
6
)(
n
(
182
),
n
(
186
),
null
,
null
,
null
);
e
.
exports
=
r
.
exports
},
182
:
function
(
e
,
t
,
n
){
var
r
,
o
,
u
;
!
function
(
i
,
c
){
o
=
[
e
,
t
,
n
(
170
)],
r
=
c
,
void
0
!==
(
u
=
"
function
"
==
typeof
r
?
r
.
apply
(
t
,
o
):
r
)
&&
(
e
.
exports
=
u
)}(
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
);
t
.
default
=
{
name
:
"
cube-checker
"
,
props
:{
value
:[
String
,
Number
,
Array
],
options
:{
type
:
Array
,
default
:
function
(){
return
[]}},
type
:{
type
:
String
,
default
:
"
checkbox
"
},
min
:{
type
:
Number
,
default
:
0
},
max
:{
type
:
Number
,
default
:
function
(){
return
this
.
options
.
length
}}},
data
:
function
(){
return
{
currentValue
:
this
.
value
}},
computed
:{
isRadio
:
function
(){
return
"
radio
"
===
this
.
type
}},
watch
:{
value
:
function
(
e
){
this
.
currentValue
=
e
},
currentValue
:
function
(
e
){
this
.
$emit
(
"
input
"
,
e
)}},
methods
:{
check
:
function
(
e
){
this
.
isRadio
?
this
.
checkRadio
(
e
):
this
.
checkCheckbox
(
e
)},
checkRadio
:
function
(
e
){
this
.
currentValue
=
e
.
value
},
checkCheckbox
:
function
(
e
){
var
t
=
e
.
value
,
n
=
this
.
currentValue
,
r
=
n
.
length
,
o
=
this
.
min
,
u
=
this
.
max
,
i
=
n
.
indexOf
(
t
);
i
>-
1
?
r
>
o
&&
n
.
splice
(
i
,
1
):
r
<
u
&&
n
.
push
(
t
)}},
components
:{
CubeCheckerItem
:
r
.
default
}},
e
.
exports
=
t
.
default
})},
183
:
function
(
e
,
t
){},
184
:
function
(
e
,
t
,
n
){
var
r
,
o
,
u
;
!
function
(
n
,
i
){
o
=
[
e
,
t
],
r
=
i
,
void
0
!==
(
u
=
"
function
"
==
typeof
r
?
r
.
apply
(
t
,
o
):
r
)
&&
(
e
.
exports
=
u
)}(
0
,
function
(
e
,
t
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
t
.
default
=
{
name
:
"
cube-checker-item
"
,
props
:{
option
:{
type
:
Object
,
default
:
function
(){
return
{}}}},
computed
:{
isActive
:
function
(){
var
e
=
this
.
$parent
.
isRadio
,
t
=
this
.
$parent
.
currentValue
,
n
=
this
.
option
.
value
;
return
e
?
t
===
n
:
t
.
indexOf
(
n
)
>=
0
},
isDisabled
:
function
(){
return
this
.
option
.
disabled
}},
methods
:{
clickHandler
:
function
(){
this
.
isDisabled
||
this
.
$parent
.
check
(
this
.
option
)}}},
e
.
exports
=
t
.
default
})},
185
:
function
(
e
,
t
){
e
.
exports
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
li
"
,{
staticClass
:
"
cube-checker-item
"
,
class
:{
"
cube-checker-item_active
"
:
e
.
isActive
,
"
cube-checker-item_disabled
"
:
e
.
isDisabled
},
on
:{
click
:
e
.
clickHandler
}},[
e
.
_t
(
"
default
"
,[
n
(
"
span
"
,{
domProps
:{
innerHTML
:
e
.
_s
(
e
.
option
.
text
)}})])],
2
)},
staticRenderFns
:[]}},
186
:
function
(
e
,
t
){
e
.
exports
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
n
=
e
.
_self
.
_c
||
t
;
return
n
(
"
ul
"
,{
staticClass
:
"
cube-checker
"
},[
e
.
_t
(
"
default
"
,
e
.
_l
(
e
.
options
,
function
(
e
,
t
){
return
n
(
"
cube-checker-item
"
,{
key
:
t
,
attrs
:{
option
:
e
}})}))],
2
)},
staticRenderFns
:[]}},
263
:
function
(
e
,
t
,
n
){
var
r
,
o
,
u
;
!
function
(
i
,
c
){
o
=
[
e
,
t
,
n
(
181
),
n
(
170
)],
r
=
c
,
void
0
!==
(
u
=
"
function
"
==
typeof
r
?
r
.
apply
(
t
,
o
):
r
)
&&
(
e
.
exports
=
u
)}(
0
,
function
(
e
,
t
,
n
,
r
){
"
use strict
"
;
function
o
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
});
var
u
=
o
(
n
),
i
=
o
(
r
);
u
.
default
.
install
=
function
(
e
){
e
.
component
(
u
.
default
.
name
,
u
.
default
),
e
.
component
(
i
.
default
.
name
,
i
.
default
)},
u
.
default
.
Item
=
i
.
default
,
t
.
default
=
u
.
default
,
e
.
exports
=
t
.
default
})},
6
:
function
(
e
,
t
){
e
.
exports
=
function
(
e
,
t
,
n
,
r
,
o
){
var
u
,
i
=
e
=
e
||
{},
c
=
typeof
e
.
default
;
"
object
"
!==
c
&&
"
function
"
!==
c
||
(
u
=
e
,
i
=
e
.
default
);
var
s
=
"
function
"
==
typeof
i
?
i
.
options
:
i
;
t
&&
(
s
.
render
=
t
.
render
,
s
.
staticRenderFns
=
t
.
staticRenderFns
),
r
&&
(
s
.
_scopeId
=
r
);
var
a
;
if
(
o
?(
a
=
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
=
a
):
n
&&
(
a
=
n
),
a
){
var
f
=
s
.
functional
,
l
=
f
?
s
.
render
:
s
.
beforeCreate
;
f
?
s
.
render
=
function
(
e
,
t
){
return
a
.
call
(
t
),
l
(
e
,
t
)}:
s
.
beforeCreate
=
l
?[].
concat
(
l
,
a
):[
a
]}
return
{
esModule
:
u
,
exports
:
i
,
options
:
s
}}}})});
\ No newline at end of file
lib/checker/index.js
浏览文件 @
a9eaf494
...
...
@@ -287,10 +287,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
var
currentValue
=
this
.
$parent
.
currentValue
;
var
value
=
this
.
option
.
value
;
return
isRadio
?
currentValue
===
value
:
currentValue
.
indexOf
(
value
)
>=
0
;
},
isDisabled
:
function
isDisabled
()
{
return
this
.
option
.
disabled
;
}
},
methods
:
{
clickHandler
:
function
clickHandler
()
{
if
(
this
.
isDisabled
)
{
return
;
}
this
.
$parent
.
check
(
this
.
option
);
}
}
...
...
@@ -307,7 +313,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
return
_c
(
'
li
'
,
{
staticClass
:
"
cube-checker-item
"
,
class
:
{
'
cube-checker-item_active
'
:
_vm
.
isActive
'
cube-checker-item_active
'
:
_vm
.
isActive
,
'
cube-checker-item_disabled
'
:
_vm
.
isDisabled
},
on
:
{
"
click
"
:
_vm
.
clickHandler
...
...
lib/checker/style.css
浏览文件 @
a9eaf494
.cube-checker-item
{
display
:
inline-block
;
vertical-align
:
top
;
text-align
:
center
;
padding
:
8px
10px
;
margin-right
:
10px
;
color
:
#666
;
background
:
#fff
;
border-radius
:
4px
;
position
:
relative
}
.cube-checker-item
:after
{
content
:
""
;
pointer-events
:
none
;
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
0
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
;
border
:
1px
solid
#fcfcfc
;
border-radius
:
4px
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.cube-checker-item
:after
{
width
:
200%
;
height
:
200%
;
border-radius
:
8px
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.cube-checker-item
:after
{
width
:
300%
;
height
:
300%
;
border-radius
:
12px
;
-webkit-transform
:
scale
(
.333
);
transform
:
scale
(
.333
)}}
.cube-checker-item_active
{
color
:
#fc9153
;
background
:
rgba
(
252
,
145
,
83
,
.04
);
position
:
relative
}
.cube-checker-item_active
:after
{
content
:
""
;
pointer-events
:
none
;
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
0
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
;
border
:
1px
solid
#fc9153
;
border-radius
:
4px
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.cube-checker-item_active
:after
{
width
:
200%
;
height
:
200%
;
border-radius
:
8px
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.cube-checker-item_active
:after
{
width
:
300%
;
height
:
300%
;
border-radius
:
12px
;
-webkit-transform
:
scale
(
.333
);
transform
:
scale
(
.333
)}}
\ No newline at end of file
.cube-checker-item
{
display
:
inline-block
;
vertical-align
:
top
;
text-align
:
center
;
padding
:
8px
10px
;
margin-right
:
10px
;
color
:
#666
;
background
:
#fff
;
border-radius
:
4px
;
position
:
relative
}
.cube-checker-item
:after
{
content
:
""
;
pointer-events
:
none
;
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
0
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
;
border
:
1px
solid
#fcfcfc
;
border-radius
:
4px
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.cube-checker-item
:after
{
width
:
200%
;
height
:
200%
;
border-radius
:
8px
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.cube-checker-item
:after
{
width
:
300%
;
height
:
300%
;
border-radius
:
12px
;
-webkit-transform
:
scale
(
.333
);
transform
:
scale
(
.333
)}}
.cube-checker-item_active
{
color
:
#fc9153
;
background
:
rgba
(
252
,
145
,
83
,
.04
);
position
:
relative
}
.cube-checker-item_active
:after
{
content
:
""
;
pointer-events
:
none
;
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
0
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
;
border
:
1px
solid
#fc9153
;
border-radius
:
4px
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.cube-checker-item_active
:after
{
width
:
200%
;
height
:
200%
;
border-radius
:
8px
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.cube-checker-item_active
:after
{
width
:
300%
;
height
:
300%
;
border-radius
:
12px
;
-webkit-transform
:
scale
(
.333
);
transform
:
scale
(
.333
)}}
.cube-checker-item_active.cube-checker-item_disabled
{
background
:
#eee
;
position
:
relative
}
.cube-checker-item_active.cube-checker-item_disabled
:after
{
content
:
""
;
pointer-events
:
none
;
display
:
block
;
position
:
absolute
;
left
:
0
;
top
:
0
;
-webkit-transform-origin
:
0
0
;
transform-origin
:
0
0
;
border
:
1px
solid
#ccc
;
border-radius
:
4px
;
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
}
@media
(
-webkit-min-device-pixel-ratio
:
2
),(
min-resolution
:
2dppx
){
.cube-checker-item_active.cube-checker-item_disabled
:after
{
width
:
200%
;
height
:
200%
;
border-radius
:
8px
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}}
@media
(
-webkit-min-device-pixel-ratio
:
3
),(
min-resolution
:
3dppx
){
.cube-checker-item_active.cube-checker-item_disabled
:after
{
width
:
300%
;
height
:
300%
;
border-radius
:
12px
;
-webkit-transform
:
scale
(
.333
);
transform
:
scale
(
.333
)}}
.cube-checker-item_disabled
{
color
:
#ccc
}
\ No newline at end of file
lib/cube.min.css
浏览文件 @
a9eaf494
此差异已折叠。
点击以展开。
lib/cube.min.js
浏览文件 @
a9eaf494
此差异已折叠。
点击以展开。
lib/form/form.min.css
浏览文件 @
a9eaf494
此差异已折叠。
点击以展开。
lib/form/form.min.js
浏览文件 @
a9eaf494
此差异已折叠。
点击以展开。
lib/form/index.js
浏览文件 @
a9eaf494
...
...
@@ -4663,10 +4663,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
var
currentValue
=
this
.
$parent
.
currentValue
;
var
value
=
this
.
option
.
value
;
return
isRadio
?
currentValue
===
value
:
currentValue
.
indexOf
(
value
)
>=
0
;
},
isDisabled
:
function
isDisabled
()
{
return
this
.
option
.
disabled
;
}
},
methods
:
{
clickHandler
:
function
clickHandler
()
{
if
(
this
.
isDisabled
)
{
return
;
}
this
.
$parent
.
check
(
this
.
option
);
}
}
...
...
@@ -4682,7 +4688,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
return
_c
(
'
li
'
,
{
staticClass
:
"
cube-checker-item
"
,
class
:
{
'
cube-checker-item_active
'
:
_vm
.
isActive
'
cube-checker-item_active
'
:
_vm
.
isActive
,
'
cube-checker-item_disabled
'
:
_vm
.
isDisabled
},
on
:
{
"
click
"
:
_vm
.
clickHandler
...
...
lib/form/style.css
浏览文件 @
a9eaf494
此差异已折叠。
点击以展开。
lib/index.js
浏览文件 @
a9eaf494
...
...
@@ -6911,7 +6911,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
}
var Cube = {
version: "1.12.1
8
",
version: "1.12.1
9
",
install: install,
BScroll: _module.BetterScroll,
createAPI: _module.createAPI
...
...
@@ -10258,10 +10258,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
var currentValue = this.$parent.currentValue;
var value = this.option.value;
return isRadio ? currentValue === value : currentValue.indexOf(value) >= 0;
},
isDisabled: function isDisabled() {
return this.option.disabled;
}
},
methods: {
clickHandler: function clickHandler() {
if (this.isDisabled) {
return;
}
this.$parent.check(this.option);
}
}
...
...
@@ -10277,7 +10283,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
return _c('li', {
staticClass: "cube-checker-item",
class: {
'cube-checker-item_active': _vm.isActive
'cube-checker-item_active': _vm.isActive
, 'cube-checker-item_disabled': _vm.isDisabled
},
on: {
"click": _vm.clickHandler
...
...
lib/style.css
浏览文件 @
a9eaf494
此差异已折叠。
点击以展开。
package-lock.json
浏览文件 @
a9eaf494
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录