Skip to content

Commit

Permalink
fix(build): 使用import方式引入,module字段对webpack的影响
Browse files Browse the repository at this point in the history
  • Loading branch information
liaoyinglong committed Nov 16, 2018
1 parent 8ca1b83 commit 7ea7806
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"pub": "npm run build && npm run changelog && npm run doc && npm publish"
},
"main": "dist/plateNumberInput.js",
"module": "src/index.js",
"license": "ISC",
"dependencies": {
"@types/core-js": "^0.9.46",
Expand Down
20 changes: 10 additions & 10 deletions src/config/layout.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require('core-js/fn/array/fill')
const input = new Array(8).fill(undefined).map((item, index) => `<span data-index='${index}'></span>`)
require('core-js/fn/array/fill');
const input = new Array(8).fill(undefined).map((item, index) => `<span data-index='${index}'></span>`);
const inputbox = `
<div>
<div id='inputboxWrapper' class="container-top">
<div class='container-info'>宝立方创意产业园(地库)</div>
<div class='container-info'>请输入您的车牌</div>
<div class="container-input">
${input.join('')}
</div>
Expand All @@ -16,26 +16,26 @@ const inputbox = `
</div>
<span class='bar_bindcarnum'></span>
</div>
`
`;

const keyboard = [
[
['确定'],
['粤', '川', '津', '沪', '渝', '蒙', '新', '藏', '宁', '桂'],
['陕', '浙', '晋', '冀', '青', '鲁', '豫', '苏', '皖', '辽'],
['贵', '闽', '赣', '湘', '鄂', '京', '琼', '甘', '云', '黑'],
['吉', '', '', '', '', '', '', '', '', 'delete'],
['吉', '', '', '', '', '', '', '', '', 'delete']
],
[
['确定'],
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'P', '港', '澳'],
['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', '学'],
['', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '', 'delete'],
],
]
['', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '', 'delete']
]
];

export default {
keyboard,
inputbox,
}
inputbox
};
2 changes: 1 addition & 1 deletion src/stylus/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ inputSpanBorderColor = rgb(175, 175, 175)
background-image url('../img/airportdelete.png')
background-position center center
background-repeat no-repeat
background-size 20px 13px
background-size 20px 13px

0 comments on commit 7ea7806

Please sign in to comment.