bi-components-library 1.0.42 → 1.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1310,7 +1310,7 @@ function Ft(t, d, i, s, u, E = {}, T) {
1310
1310
  const p = i[e.key] !== null && i[e.key] !== void 0, l = p ? i[e.key] : null, x = p ? i[e.key]?.name : e.text, A = p ? "" : "hidden", P = e.tooltip && !p ? "" : "hidden", k = p ? "has-file" : "", G = p && x ? ` data-file-name="${x.replace(/"/g, """)}"` : "";
1311
1311
  let R = "";
1312
1312
  p && l ? l.type?.startsWith("image/") ? R = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(l)}" alt="preview" />` : R = "<i class='iconfont icon-exlwenjian'></i>" : R = "<i class='iconfont icon-shangchuan1'></i>";
1313
- const D = (e.text || "").trim(), B = p && D.length >= 12 ? `<span ${c} contenteditable="false" class="exclusion-wrapper upload-hint">${D}</span>` : "", Z = `<span contenteditable="false" data-type="upload" data-key="${e.key}" class="upload-chip"><span class="upload-inner-wrapper ${k}"><span class="upload-icon">${R}</span><span class="upload-label"${G}>${x || e.text}</span>${e.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi upload-info-icon ${P}" data-upload-key="${e.key}" data-tooltip="${e.tooltip}" title="提示"></i>` : ""}<span class="file-remove-btn ${A}" title="移除文件">×</span></span></span>`;
1313
+ const D = (e.text || "").trim(), B = p && e.showHint === !0 && D.length >= 12 ? `<span ${c} contenteditable="false" class="exclusion-wrapper upload-hint">${D}</span>` : "", Z = `<span contenteditable="false" data-type="upload" data-key="${e.key}" class="upload-chip"><span class="upload-inner-wrapper ${k}"><span class="upload-icon">${R}</span><span class="upload-label"${G}>${x || e.text}</span>${e.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi upload-info-icon ${P}" data-upload-key="${e.key}" data-tooltip="${e.tooltip}" title="提示"></i>` : ""}<span class="file-remove-btn ${A}" title="移除文件">×</span></span></span>`;
1314
1314
  e.required ? a = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${Z}</span>${B}` : a = Z + B;
1315
1315
  }
1316
1316
  else if (e.type === "select" && e.key) {