提交 99abbc4d 编写于 作者: fxy060608's avatar fxy060608

feat(cli): recycle-list

上级 57fe7ccc
module.exports = function(content) { module.exports = function(content) {
this.cacheable && this.cacheable() this.cacheable && this.cacheable()
if (content.indexOf('recycle-list') === -1) {
return `<scroll-view :scroll-y="true" :enableBackToTop="true" bubble="true" style="flex-direction:column">${content}</scroll-view>` return `<scroll-view :scroll-y="true" :enableBackToTop="true" bubble="true" style="flex-direction:column">${content}</scroll-view>`
}
return content
} }
...@@ -655,7 +655,7 @@ ...@@ -655,7 +655,7 @@
return cumulated return cumulated
}, {}) }, {})
};// fixed by xxxxxx };// fixed by xxxxxx
if (isSpecialTag(tag) && !isCustomBlock(currentBlock.attrs.lang || '')) { if (isSpecialTag(tag) && !isCustomBlock(String(currentBlock.attrs.lang || ''))) {
checkAttrs(currentBlock, attrs); checkAttrs(currentBlock, attrs);
if (tag === 'style') { if (tag === 'style') {
sfc.styles.push(currentBlock); sfc.styles.push(currentBlock);
...@@ -713,7 +713,7 @@ ...@@ -713,7 +713,7 @@
} else { } else {
var offset = content.slice(0, block.start).split(splitRE$1).length; var offset = content.slice(0, block.start).split(splitRE$1).length;
var lang = block.attrs && block.attrs.lang; // fixed by xxxxxx var lang = block.attrs && block.attrs.lang; // fixed by xxxxxx
var padChar = block.type === 'script' && !block.lang && !isCustomBlock(lang || '') var padChar = block.type === 'script' && !block.lang && !isCustomBlock(String(lang || ''))
? '//\n' ? '//\n'
: '\n'; : '\n';
return Array(offset).join(padChar) return Array(offset).join(padChar)
......
...@@ -613,7 +613,7 @@ function parseComponent ( ...@@ -613,7 +613,7 @@ function parseComponent (
return cumulated return cumulated
}, {}) }, {})
};// fixed by xxxxxx };// fixed by xxxxxx
if (isSpecialTag(tag) && !isCustomBlock(currentBlock.attrs.lang || '')) { if (isSpecialTag(tag) && !isCustomBlock(String(currentBlock.attrs.lang || ''))) {
checkAttrs(currentBlock, attrs); checkAttrs(currentBlock, attrs);
if (tag === 'style') { if (tag === 'style') {
sfc.styles.push(currentBlock); sfc.styles.push(currentBlock);
...@@ -671,7 +671,7 @@ function parseComponent ( ...@@ -671,7 +671,7 @@ function parseComponent (
} else { } else {
var offset = content.slice(0, block.start).split(splitRE).length; var offset = content.slice(0, block.start).split(splitRE).length;
var lang = block.attrs && block.attrs.lang; // fixed by xxxxxx var lang = block.attrs && block.attrs.lang; // fixed by xxxxxx
var padChar = block.type === 'script' && !block.lang && !isCustomBlock(lang || '') var padChar = block.type === 'script' && !block.lang && !isCustomBlock(String(lang || ''))
? '//\n' ? '//\n'
: '\n'; : '\n';
return Array(offset).join(padChar) return Array(offset).join(padChar)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册