Authored by 毕凯

优化

... ... @@ -7,7 +7,7 @@ module.exports = {
* @param {*} prefix
*/
processStyle($, prefix) {
let css = ['/* inlineStyle start */'];
let css = [];
$('*').each(function(index) {
let $this = $(this);
... ... @@ -28,7 +28,7 @@ module.exports = {
* @param {*} $
*/
processTag($) {
let css = ['/* styleTag start */'];
let css = [];
// mip-anim
$('img[src*=".gif"]').each(function() {
... ... @@ -73,7 +73,7 @@ module.exports = {
// mip-link
$('a').each(function() {
let $this = $(this);
let mipLink = `<mip-link href="${$this.attr('href')}" title="${$this.attr('title') || ''}">${$this.html()}</mip-link>`; // eslint-disable-line
let mipLink = `<mip-link href="${$this.attr('href')}" class="${$this.attr('class') || ''}" title="${$this.attr('title') || ''}">${$this.html()}</mip-link>`; // eslint-disable-line
$this.replaceWith(mipLink);
});
... ...