forked from ecomfe/moye
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ecomfe/moye into pr
- Loading branch information
Showing
16 changed files
with
1,249 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,14 @@ | |
"version": "2.0.1", | ||
"homepage": "https://github.com/ecomfe/moye", | ||
"authors": [ | ||
{ | ||
"name": "hushicai", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "jinzhubaofu", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "hushicai", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "kekee000", | ||
"email": "[email protected]" | ||
|
@@ -41,6 +41,6 @@ | |
"example" | ||
], | ||
"dependencies": { | ||
"est": "https://github.com/ecomfe/est.git#~1.3.0" | ||
"est": "https://github.com/ecomfe/est.git#~2.0.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% target: Button(master=base) %} | ||
|
||
{% content: style %} | ||
<link rel="stylesheet" href="../src/css/Mask.less"> | ||
|
||
{% content: content %} | ||
|
||
{% filter: markdown %} | ||
|
||
# mask | ||
|
||
{%/filter%} | ||
|
||
<button id="show">show mask</button> | ||
<select name="a" id="a"> | ||
<option value="1">aaa</option> | ||
<option value="2">aaa</option> | ||
<option value="3">aaa</option> | ||
<option value="4">aaa</option> | ||
<option value="5">aaa</option> | ||
<option value="6">aaa</option> | ||
</select> | ||
|
||
<script> | ||
require(['jquery', 'ui/Mask'], function ($, Mask) { | ||
$('#show').on('click', function () { | ||
Mask | ||
.create() | ||
.render() | ||
.show() | ||
.on('click', function () { | ||
this.hide(); | ||
}); | ||
}); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,9 @@ | |
{ | ||
"name": "City" | ||
}, | ||
{ | ||
"name": "Mask" | ||
}, | ||
{ | ||
"name": "Dialog" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
@import '../dep.less'; | ||
@import '../variable.less'; | ||
@import '../mixin.less'; | ||
@import '../icon.less'; | ||
@import (reference) '../Calendar.less'; | ||
|
||
.@{moye-prefix}-calendar-month-view { | ||
|
||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: 100%; | ||
width: 100%; | ||
|
||
&-nav { | ||
margin: 0; | ||
padding: 0; | ||
.moye-rem(line-height, @moye-small * 2); | ||
.moye-rem(height, @moye-small * 2); | ||
.moye-rem(font-size, @moye-small); | ||
color: @moye-calendar-title-color; | ||
background-color: @moye-calendar-title-background-color; | ||
|
||
} | ||
|
||
&-title { | ||
float: left; | ||
width: 100%; | ||
cursor: pointer; | ||
} | ||
|
||
&-pager-left, | ||
&-pager-right { | ||
float: left; | ||
width: 2em; | ||
.moye-rem(height, @moye-small * 2); | ||
text-align: center; | ||
cursor: pointer; | ||
|
||
.moye-icon { | ||
font-size: @moye-small; | ||
} | ||
|
||
} | ||
|
||
&-pager-left { | ||
margin-left: -100%; | ||
} | ||
|
||
&-pager-right { | ||
margin-left: -2em; | ||
} | ||
|
||
&-grid { | ||
width: 100%; | ||
background-color: #fff; | ||
table-layout: fixed; | ||
border-collapse: collapse; | ||
} | ||
|
||
&-cell { | ||
text-align: center; | ||
color: @moye-calendar-date-color; | ||
cursor: pointer; | ||
font-size: @moye-small; | ||
|
||
&:hover { | ||
background-color: #eee; | ||
} | ||
|
||
&-disabled { | ||
color: @moye-calendar-date-disabled-color; | ||
cursor: not-allowed; | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
.plugin-calendar-month-view .ui-calendar-month-title { | ||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
@import '../dep.less'; | ||
@import '../variable.less'; | ||
@import '../mixin.less'; | ||
@import '../icon.less'; | ||
@import (reference) '../Calendar.less'; | ||
|
||
.@{moye-prefix}-calendar-title-month, | ||
.@{moye-prefix}-calendar-title-year { | ||
.inline-block(); | ||
cursor: pointer; | ||
.moye-icon { | ||
.moye-rem(font-size, @moye-small); | ||
} | ||
} | ||
|
||
.@{moye-prefix}-calendar-title-month { | ||
margin-left: 5px; | ||
} | ||
|
||
.@{moye-prefix}-calendar-month-view, | ||
.@{moye-prefix}-calendar-year-view { | ||
|
||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: 100%; | ||
width: 100%; | ||
|
||
&-nav { | ||
margin: 0; | ||
padding: 0; | ||
.moye-rem(line-height, @moye-small * 2); | ||
.moye-rem(height, @moye-small * 2); | ||
.moye-rem(font-size, @moye-small); | ||
color: @moye-calendar-title-color; | ||
background-color: @moye-calendar-title-background-color; | ||
|
||
} | ||
|
||
&-title { | ||
float: left; | ||
width: 100%; | ||
cursor: pointer; | ||
} | ||
|
||
&-pager-left, | ||
&-pager-right { | ||
float: left; | ||
width: 2em; | ||
.moye-rem(height, @moye-small * 2); | ||
text-align: center; | ||
cursor: pointer; | ||
|
||
.moye-icon { | ||
font-size: @moye-small; | ||
} | ||
|
||
} | ||
|
||
&-pager-left { | ||
margin-left: -100%; | ||
} | ||
|
||
&-pager-right { | ||
margin-left: -2em; | ||
} | ||
|
||
&-grid { | ||
width: 100%; | ||
background-color: #fff; | ||
table-layout: fixed; | ||
border-collapse: collapse; | ||
} | ||
|
||
&-cell { | ||
text-align: center; | ||
color: @moye-calendar-date-color; | ||
cursor: pointer; | ||
font-size: @moye-small; | ||
|
||
&:hover { | ||
background-color: #eee; | ||
} | ||
|
||
&-disabled { | ||
color: @moye-calendar-date-disabled-color; | ||
cursor: not-allowed; | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
.plugin-calendar-month-view .ui-calendar-month-title { | ||
cursor: pointer; | ||
} |
Binary file not shown.
Oops, something went wrong.