Skip to content

Commit

Permalink
fix: ie compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxiong10 committed Nov 11, 2019
1 parent 6060330 commit 99a4abd
Show file tree
Hide file tree
Showing 10 changed files with 612 additions and 60 deletions.
30 changes: 0 additions & 30 deletions .babelrc

This file was deleted.

16 changes: 8 additions & 8 deletions __test__/__snapshots__/time-panel.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`TimePanel render: correct 12hours in the fixed time list 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
class="mx-time-list"
Expand Down Expand Up @@ -200,7 +200,7 @@ exports[`TimePanel render: correct classes of the columns 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
data-index="0"
Expand Down Expand Up @@ -415,7 +415,7 @@ exports[`TimePanel render: correct classes of the columns 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
data-index="1"
Expand Down Expand Up @@ -918,7 +918,7 @@ exports[`TimePanel render: correct classes of the columns 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
data-index="2"
Expand Down Expand Up @@ -1435,7 +1435,7 @@ exports[`TimePanel render: correct classes of the fixed time list 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
class="mx-time-list"
Expand Down Expand Up @@ -1620,7 +1620,7 @@ exports[`TimePanel render: correct columns by format 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
data-index="0"
Expand Down Expand Up @@ -1675,7 +1675,7 @@ exports[`TimePanel render: correct columns by format 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
data-index="1"
Expand Down Expand Up @@ -1714,7 +1714,7 @@ exports[`TimePanel render: correct columns by format 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
data-index="2"
Expand Down
12 changes: 6 additions & 6 deletions __test__/__snapshots__/time-range.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports[`TimeRange render: correct classes of the columns 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
data-index="0"
Expand Down Expand Up @@ -92,7 +92,7 @@ exports[`TimeRange render: correct classes of the columns 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
data-index="1"
Expand Down Expand Up @@ -131,7 +131,7 @@ exports[`TimeRange render: correct classes of the columns 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
data-index="2"
Expand Down Expand Up @@ -184,7 +184,7 @@ exports[`TimeRange render: correct classes of the columns 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
data-index="0"
Expand Down Expand Up @@ -255,7 +255,7 @@ exports[`TimeRange render: correct classes of the columns 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
data-index="1"
Expand Down Expand Up @@ -294,7 +294,7 @@ exports[`TimeRange render: correct classes of the columns 1`] = `
>
<div
class="mx-scrollbar-wrap"
style="overflow: hidden scroll; height: 100%; margin-right: -0px;"
style="margin-right: -0px;"
>
<ul
data-index="2"
Expand Down
26 changes: 26 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
modules: false,
},
],
],
plugins: ['transform-vue-jsx', '@babel/plugin-transform-object-assign'],
env: {
test: {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
],
plugins: ['transform-vue-jsx'],
},
},
};
Loading

0 comments on commit 99a4abd

Please sign in to comment.