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

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

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