Commit d6265daf authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

fix datepicker test, revert emitter-removing attempt

parent 0da3967d
......@@ -19,7 +19,12 @@ then
echo "Releasing theme-default $VERSION ..."
cd packages/theme-default
npm version $VERSION --message "[release] $VERSION"
npm publish --tag beta
if [[ $VERSION =~ "beta" ]]
then
npm publish --tag beta
else
npm publish
fi
cd ../..
# commit
......@@ -34,5 +39,10 @@ then
git rebase master
git push eleme dev
npm publish --tag beta
if [[ $VERSION =~ "beta" ]]
then
npm publish --tag beta
else
npm publish
fi
fi
......@@ -87,7 +87,7 @@
```html
<el-tag
v-for="tag in tags"
:key="item.name"
:key="tag.name"
:closable="true"
:type="tag.type"
>
......
......@@ -143,9 +143,9 @@
margin: -10px;
}
& .el-button,
& .el-select .el-input__inner,
& .el-select:hover .el-input__inner {
& button.el-button,
& div.el-select .el-input__inner,
& div.el-select:hover .el-input__inner {
border-color: transparent;
background-color: transparent;
color: inherit;
......
......@@ -78,7 +78,7 @@
@e checkbox-group {
padding: 10px;
.el-checkbox {
label.el-checkbox {
display: block;
margin-bottom: 8px;
margin-left: 5px;
......
......@@ -702,7 +702,6 @@ describe('DatePicker', () => {
const currentMonth = new Date(new Date().getTime());
currentMonth.setDate(1);
const FirstDayOfCurrentMonth = currentMonth.getDay();
const chineseWeek = ['', '', '', '', '', '', ''];
const testWeek = (i) => it('picker-options:firstDayOfWeek ' + i, done => {
......@@ -718,13 +717,8 @@ describe('DatePicker', () => {
input.focus();
setTimeout(_ => {
const prevMonthLen = vm.picker.$el.querySelectorAll('.prev-month').length;
const firstWeek = vm.picker.$el.querySelector('tr th');
const offset = i > 3 ? 7 - i : -i;
const day = FirstDayOfCurrentMonth === 0 ? 7 : FirstDayOfCurrentMonth;
expect(firstWeek.innerText).to.equal(chineseWeek[i - 1]);
expect(prevMonthLen - day).to.equal(offset);
done();
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment