iapyang 6 years ago
parent
commit
c3766cbb52
  1. 4
      dist/base.js
  2. 4
      dist/bundle.js
  3. 2
      dist/bundle.min.js
  4. 4
      dist/fineui.js
  5. 4
      dist/fineui.min.js
  6. 4
      src/base/formula/formulaeditor.js

4
dist/base.js vendored

@ -14648,10 +14648,10 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
*/
insertField: function (fieldName, fieldId) {
var value = this.options.fieldTextValueMap[fieldName] || fieldId;
var fieldFormattedName = this.options.paramFormatter(fieldName);
var fieldFormattedName = this.options.paramFormatter(fieldName) || "undefined";
var from = this.editor.getCursor();
// 解决插入字段由括号或其他特殊字符包围时分裂的bug,在两端以不可见字符包裹一下
var showName = BI.isNull(fieldFormattedName) ? "undefined" : fieldFormattedName.replaceAll(/^<!.*!>$/, function (str) {
var showName = fieldFormattedName.replaceAll(/^<!.*!>$/, function (str) {
return str.substring(2, str.length - 2);
});
this.editor.replaceSelection("\u200b" + showName + "\u200b");

4
dist/bundle.js vendored

@ -50419,10 +50419,10 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
*/
insertField: function (fieldName, fieldId) {
var value = this.options.fieldTextValueMap[fieldName] || fieldId;
var fieldFormattedName = this.options.paramFormatter(fieldName);
var fieldFormattedName = this.options.paramFormatter(fieldName) || "undefined";
var from = this.editor.getCursor();
// 解决插入字段由括号或其他特殊字符包围时分裂的bug,在两端以不可见字符包裹一下
var showName = BI.isNull(fieldFormattedName) ? "undefined" : fieldFormattedName.replaceAll(/^<!.*!>$/, function (str) {
var showName = fieldFormattedName.replaceAll(/^<!.*!>$/, function (str) {
return str.substring(2, str.length - 2);
});
this.editor.replaceSelection("\u200b" + showName + "\u200b");

2
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.js vendored

@ -50668,10 +50668,10 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
*/
insertField: function (fieldName, fieldId) {
var value = this.options.fieldTextValueMap[fieldName] || fieldId;
var fieldFormattedName = this.options.paramFormatter(fieldName);
var fieldFormattedName = this.options.paramFormatter(fieldName) || "undefined";
var from = this.editor.getCursor();
// 解决插入字段由括号或其他特殊字符包围时分裂的bug,在两端以不可见字符包裹一下
var showName = BI.isNull(fieldFormattedName) ? "undefined" : fieldFormattedName.replaceAll(/^<!.*!>$/, function (str) {
var showName = fieldFormattedName.replaceAll(/^<!.*!>$/, function (str) {
return str.substring(2, str.length - 2);
});
this.editor.replaceSelection("\u200b" + showName + "\u200b");

4
dist/fineui.min.js vendored

@ -179,10 +179,10 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
*/
insertField: function (fieldName, fieldId) {
var value = this.options.fieldTextValueMap[fieldName] || fieldId;
var fieldFormattedName = this.options.paramFormatter(fieldName);
var fieldFormattedName = this.options.paramFormatter(fieldName) || "undefined";
var from = this.editor.getCursor();
// 解决插入字段由括号或其他特殊字符包围时分裂的bug,在两端以不可见字符包裹一下
var showName = BI.isNull(fieldFormattedName) ? "undefined" : fieldFormattedName.replaceAll(/^<!.*!>$/, function (str) {
var showName = fieldFormattedName.replaceAll(/^<!.*!>$/, function (str) {
return str.substring(2, str.length - 2);
});
this.editor.replaceSelection("\u200b" + showName + "\u200b");

4
src/base/formula/formulaeditor.js

@ -125,10 +125,10 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
*/
insertField: function (fieldName, fieldId) {
var value = this.options.fieldTextValueMap[fieldName] || fieldId;
var fieldFormattedName = this.options.paramFormatter(fieldName);
var fieldFormattedName = this.options.paramFormatter(fieldName) || "undefined";
var from = this.editor.getCursor();
// 解决插入字段由括号或其他特殊字符包围时分裂的bug,在两端以不可见字符包裹一下
var showName = BI.isNull(fieldFormattedName) ? "undefined" : fieldFormattedName.replaceAll(/^<!.*!>$/, function (str) {
var showName = fieldFormattedName.replaceAll(/^<!.*!>$/, function (str) {
return str.substring(2, str.length - 2);
});
this.editor.replaceSelection("\u200b" + showName + "\u200b");

Loading…
Cancel
Save