提交 e79c7924 编写于 作者: VK1688's avatar VK1688

修复 u-parse 组件在微信小程序上的显示问题。

上级 a8f857f1
const cfg = require('./config.js'), import cfg from './config.js'
isLetter = c => (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); var isLetter = c => (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
function CssHandler(tagStyle) { function CssHandler(tagStyle) {
var styles = Object.assign(Object.create(null), cfg.userAgentStyles); var styles = Object.assign(Object.create(null), cfg.userAgentStyles);
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
* @author JinYufeng * @author JinYufeng
* @listens MIT * @listens MIT
*/ */
const cfg = require('./config.js'), import cfg from './config.js'
blankChar = cfg.blankChar, import CssHandler from './CssHandler.js'
CssHandler = require('./CssHandler.js'),
windowWidth = uni.getSystemInfoSync().windowWidth; var blankChar = cfg.blankChar
var windowWidth = uni.getSystemInfoSync().windowWidth;
var emoji; var emoji;
function MpHtmlParser(data, options = {}) { function MpHtmlParser(data, options = {}) {
......
...@@ -93,7 +93,8 @@ ...@@ -93,7 +93,8 @@
global.Parser = {}; global.Parser = {};
import trees from './trees' import trees from './trees'
const errorImg = require('../libs/config.js').errorImg; import cfg from '../libs/config.js'
const errorImg = cfg.errorImg;
export default { export default {
components: { components: {
trees trees
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册