Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(table): 配置分割符,防止修改laytpl源码默认分隔符导致解析出错 #408

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/lay/modules/table.js
Expand Up @@ -222,6 +222,12 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
that.config = $.extend({}, that.config, table.config, options);
that.render();
};

// 配置分割符,防止修改源码默认分隔符导致解析出错
laytpl.config({
open: '{{',
close: '}}'
});

//默认配置
Class.prototype.config = {
Expand Down