@haluo/biz 0.1.21 → 0.1.23

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/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # `haluo-biz`
2
-
3
- > TODO: description
4
-
5
- ## Usage
6
-
7
- ```
8
- const haluoBiz = require('haluo-biz');
9
-
10
- // TODO: DEMONSTRATE API
11
- ```
1
+ # `haluo-biz`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const haluoBiz = require('haluo-biz');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
package/dist/haluo-biz.js CHANGED
@@ -19,7 +19,7 @@ const __$_require_3a85757a__ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD
19
19
  const __$_require_563b6e32__ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAAfpJREFUaEPtmLuKAjEUhv8RRQsvlYqNTKGgoIUIamEhXoopxVIQC8VHsLb1McSHELS2FOzFNxD7sdglwwoLuutkjZeTPYHpJvF8/3cmhhi2bX/gHw2DgTW3zYY1Fww2zIY1S4BbWjOhFzhsmA1rlgC3tGZCedPiluaW1iwBpS293W4hnkeMXq+nZFmlwLPZDOJ5xFitVkqWfQiwquIE4TlEVWsy8D19o9oGG77Hxtfcp7b0er1GsViE3+93XbrqrnkqcLvdRqlUwmAwQDQadQVNGrjZbDqQwWAQ/X4ftVoNkUgEhmH8CE8eOB6PIxwOY7/fI5fLwbIsVKtVBAKBq9DkgcvlMkajETabDebzOWzbRiaTwXA4RCqVurBNHrhSqWA8HiMUCmG322E6nTq2hXUBLYx/H9oAH49HLBYLLJdLnE4n1Ot1BzadTusFXCgUkM1mIY6Kh8MB+Xze2bVN07z6HZM3LPR5PB4kEgl0Oh3Hqs/n03eXjsViaDQaaLVaSCaTN/+LSRueTCbodrtO+3q93puwfJZ2FdHvLz31aPmXekm3NAO7SICEYVUXbiKP88XgW1/xuBAn/cpbAktTvGCC0l36BfVL/yQDS0dGbAIbJiZMulw2LB0ZsQlsmJgw6XLZsHRkxCawYWLCpMtlw9KREZvAhokJky73E0tRNecG1FNmAAAAAElFTkSuQmCC";
20
20
  const __$_require_c2f7a0a6__ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAATVJREFUaEPtmMENhDAMBE0HlEAHdEIJVMaLOmgi7eRzpzxyQtx9kngl27eR8szKu2NMYMo5v+SP1kTDwWmTcHDAQsIkHCwBtnQwoF92SJiEgyXAlg4GlEOLLc2WDpaAakunlKRsxNr3XUVW1fB5nlI2Yl3XpSILMaxVXHFYQ9TSpOGRvtGm4Ypwy/O8LIscx/Eza+0QYS3dMrHneZZt23wbHnk07mfdEKbhzgRIuDO4egw2tFqm9NNDuUbWq6Qbwi1T+ml4XVcp29V7eLDzPsfdEKbhzgRIuDM4U1Oad+kbRba01ZYerMvXa0nrh1txXS8wpn/xaNG965g0jDCqran68aBdHEKPhhGpWtIkYUs0ELWQMCJVS5okbIkGohYSRqRqSZOELdFA1ELCiFQtaZKwJRqIWt7UgxHngaem0wAAAABJRU5ErkJggg==";
21
21
  const __$_require_2399f75e__ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAA3dJREFUaEPtmE0orFEYx//jeyMpkSg1K6KokbIyNKWxkO+PCA02bKcUNrOwsWCUKSUp5WOKFIpkZyFFIrERZSUWvr8mGT1P3du97mVm7pw57/Tec+ptpumcec7v+f/POc97DB6Px4v/qBkUsM7VVgrrXGAohZXCOsuAsrTOBP0DRymsFNZZBpSldSao2rSUpZWldZYBoZbe398HPf622NhY5OTkIDs7298hQfcTCjw1NQV6/G0RERFISEhAXV0dKisrERUV5e/Qf+4XEuCNjQ2fE7JYLCguLsbt7S2Oj49hNpvR3NyMlJQUn2OD6aApcEtLC6qqqrC8vIylpSUkJyejvr4eBQUFIVNbc2CCfnt7w+HhIUZGRnB3d8f2rq2tBa1x0U1TYLJwU1PTT6b7+3sMDw9jd3eXoTs7O0Xzir3T+rFp+bOGCSgtLQ2ZmZm/Qb28vGB7exvPz89YWVnRD/Da2hrm5+cZ7HN7fHzEw8MD/ElcoBnRzNLfTTQQpyhgHxlQCgdqkV/7i7Kix+PB5eUlUlNTERkZGcyUQvs+LAKYYKkQoQ2NipCysjLExMQIgw47Sy8uLmJycpKLDoJvbW1FeXm5sMorbIBfX19Z2fHxcZSUlHDRMTQ0xBVYV1cX/ybi5SIsgAl2YWEBs7OzKCoqQltbG5KSknB9fc2V197eHjo6Olhpg8EQlL3DAnh6ehpzc3MoLS1FYmIiTCYTV2BXV1dwOBw4Ozvjz/z8/KBgabAmwF6vFycnJ7i4uAB9HxgYQF5eHmw2G/r7+3l37unpwcTEBI6OjmC324XAagL8/v6Ora0tjI2NwWg0oru7G263m+vn3t5ezMzM8K0JQaanp+Pm5oaTIep4kqowqbm5uQmXy4X4+HhWMyMjA1Q7k5Krq6vY2dlBdXU1GhoaEBcXF7SFP/+BVGAKfnBwwLsvHTl9fX3IysrC09MTH0Xr6+uwWq28Q0dHRwuHDZml6aX+q5abmwu6yxodHeUu7e3tbHFSvqKigpUVcfx8FT8kCn8nDSWDntPTUwwODvJOTGo3NjaipqZGaFX1t3kIBQ7Ug7RunU4nCgsLOQmiNqbv5qEpME3s/Pycbz5kwApfw4EqrEV/zRWWDa2AZWdcdjylsOyMy46nFJadcdnxlMKyMy47nlJYdsZlx1MKy8647HhKYdkZlx3vA4UyjOeIJjqAAAAAAElFTkSuQmCC";
22
- const ToolBar_vue_vue_type_style_index_0_scoped_9c3f86fa_lang = "";
22
+ const ToolBar_vue_vue_type_style_index_0_scoped_b986a130_lang = "";
23
23
  const ToolBar_vue_vue_type_style_index_1_lang = "";
24
24
  function normalizeComponent(scriptExports, render9, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
25
25
  var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
@@ -154,11 +154,7 @@ const _sfc_main$7 = {
154
154
  },
155
155
  mounted() {
156
156
  if (!this.isOss) {
157
- const user = JSON.parse(window.localStorage.getItem("user") || "{}");
158
- const certifyList = user.certifyList.map((item) => {
159
- return item.type;
160
- }) || [];
161
- this.showToolsArticle = certifyList.includes("11");
157
+ JSON.parse(window.localStorage.getItem("user") || "{}");
162
158
  }
163
159
  },
164
160
  methods: {
@@ -315,7 +311,7 @@ var _sfc_render$7 = function render() {
315
311
  return _vm.insertImg("normal");
316
312
  } } }, [_vm._v(_vm._s("\u4E0A\u4F20\u56FE\u7247"))]), _c("li", { class: [_vm.activeImgType === "seamless" ? "active" : ""], on: { "click": function($event) {
317
313
  return _vm.insertImg("seamless");
318
- } } }, [_vm._v(_vm._s("\u4E0A\u4F20\u65E0\u7F1D\u62FC\u63A5\u56FE\u7247"))])])]), _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u63D2\u5165\u89C6\u9891", "placement": "top" } }, [_c("img", { attrs: { "src": __$_require_563b6e32__, "width": "40", "height": "40", "alt": "" }, on: { "click": _vm.insertVideo } })]), _vm.showToolsArticle ? _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u63D2\u5165\u6587\u7AE0", "placement": "top" } }, [_c("img", { attrs: { "src": __$_require_c2f7a0a6__, "width": "40", "height": "40", "alt": "" }, on: { "click": _vm.insertArticle } })]) : _vm._e(), _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u91C7\u96C6\u6587\u7AE0", "placement": "top" } }, [_c("img", { attrs: { "src": __$_require_2399f75e__, "width": "40", "height": "40", "alt": "" }, on: { "click": _vm.collectArticle } })])], 1)]) : _vm._e();
314
+ } } }, [_vm._v(_vm._s("\u4E0A\u4F20\u65E0\u7F1D\u62FC\u63A5\u56FE\u7247"))])])]), _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u63D2\u5165\u89C6\u9891", "placement": "top" } }, [_c("img", { attrs: { "src": __$_require_563b6e32__, "width": "40", "height": "40", "alt": "" }, on: { "click": _vm.insertVideo } })]), _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u63D2\u5165\u6587\u7AE0", "placement": "top" } }, [_c("img", { attrs: { "src": __$_require_c2f7a0a6__, "width": "40", "height": "40", "alt": "" }, on: { "click": _vm.insertArticle } })]), _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u91C7\u96C6\u6587\u7AE0", "placement": "top" } }, [_c("img", { attrs: { "src": __$_require_2399f75e__, "width": "40", "height": "40", "alt": "" }, on: { "click": _vm.collectArticle } })])], 1)]) : _vm._e();
319
315
  };
320
316
  var _sfc_staticRenderFns$7 = [];
321
317
  var __component__$7 = /* @__PURE__ */ normalizeComponent(
@@ -324,7 +320,7 @@ var __component__$7 = /* @__PURE__ */ normalizeComponent(
324
320
  _sfc_staticRenderFns$7,
325
321
  false,
326
322
  null,
327
- "9c3f86fa",
323
+ "b986a130",
328
324
  null,
329
325
  null
330
326
  );
@@ -862,7 +858,7 @@ var __component__$2 = /* @__PURE__ */ normalizeComponent(
862
858
  null
863
859
  );
864
860
  const CollectArticle = __component__$2.exports;
865
- const index_vue_vue_type_style_index_0_scoped_20833f90_lang = "";
861
+ const index_vue_vue_type_style_index_0_scoped_6cfff18d_lang = "";
866
862
  const _sfc_main$1 = {
867
863
  props: {
868
864
  article: {
@@ -897,7 +893,7 @@ var __component__$1 = /* @__PURE__ */ normalizeComponent(
897
893
  _sfc_staticRenderFns$1,
898
894
  false,
899
895
  null,
900
- "20833f90",
896
+ "6cfff18d",
901
897
  null,
902
898
  null
903
899
  );
@@ -992,6 +988,9 @@ const car_ciose = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLBAMAAAD
992
988
  break;
993
989
  }
994
990
  node = current.nextSibling;
991
+ if (node && node.tagName === "DIV") {
992
+ node = node.nextSibling;
993
+ }
995
994
  if (!node) {
996
995
  current = current.parentNode;
997
996
  }
@@ -4877,7 +4876,7 @@ const _sfc_main = {
4877
4876
  const children = [...node.childNodes];
4878
4877
  const img = node.querySelector(".halo-picture-area");
4879
4878
  const isGif = img.src.indexOf(".gif!nowater") > -1;
4880
- if (isGif) {
4879
+ if (isGif && type === "preview") {
4881
4880
  img.src = img.src.replace(".gif!nowater", ".gif");
4882
4881
  }
4883
4882
  if (type === "preview") {
@@ -5433,7 +5432,7 @@ const _sfc_main = {
5433
5432
  removeDefault(next, key) {
5434
5433
  const me = this;
5435
5434
  const cur = next[key];
5436
- if (!cur)
5435
+ if (!cur || cur.innerText !== "\n")
5437
5436
  return;
5438
5437
  const blockDefault = cur.classList.contains("halo-paragraph") || false;
5439
5438
  const isLasterBlock = next.classList.contains("halo-paragraph") || false;
@@ -24,7 +24,7 @@
24
24
  const __$_require_563b6e32__ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAAfpJREFUaEPtmLuKAjEUhv8RRQsvlYqNTKGgoIUIamEhXoopxVIQC8VHsLb1McSHELS2FOzFNxD7sdglwwoLuutkjZeTPYHpJvF8/3cmhhi2bX/gHw2DgTW3zYY1Fww2zIY1S4BbWjOhFzhsmA1rlgC3tGZCedPiluaW1iwBpS293W4hnkeMXq+nZFmlwLPZDOJ5xFitVkqWfQiwquIE4TlEVWsy8D19o9oGG77Hxtfcp7b0er1GsViE3+93XbrqrnkqcLvdRqlUwmAwQDQadQVNGrjZbDqQwWAQ/X4ftVoNkUgEhmH8CE8eOB6PIxwOY7/fI5fLwbIsVKtVBAKBq9DkgcvlMkajETabDebzOWzbRiaTwXA4RCqVurBNHrhSqWA8HiMUCmG322E6nTq2hXUBLYx/H9oAH49HLBYLLJdLnE4n1Ot1BzadTusFXCgUkM1mIY6Kh8MB+Xze2bVN07z6HZM3LPR5PB4kEgl0Oh3Hqs/n03eXjsViaDQaaLVaSCaTN/+LSRueTCbodrtO+3q93puwfJZ2FdHvLz31aPmXekm3NAO7SICEYVUXbiKP88XgW1/xuBAn/cpbAktTvGCC0l36BfVL/yQDS0dGbAIbJiZMulw2LB0ZsQlsmJgw6XLZsHRkxCawYWLCpMtlw9KREZvAhokJky73E0tRNecG1FNmAAAAAElFTkSuQmCC";
25
25
  const __$_require_c2f7a0a6__ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAATVJREFUaEPtmMENhDAMBE0HlEAHdEIJVMaLOmgi7eRzpzxyQtx9kngl27eR8szKu2NMYMo5v+SP1kTDwWmTcHDAQsIkHCwBtnQwoF92SJiEgyXAlg4GlEOLLc2WDpaAakunlKRsxNr3XUVW1fB5nlI2Yl3XpSILMaxVXHFYQ9TSpOGRvtGm4Ypwy/O8LIscx/Eza+0QYS3dMrHneZZt23wbHnk07mfdEKbhzgRIuDO4egw2tFqm9NNDuUbWq6Qbwi1T+ml4XVcp29V7eLDzPsfdEKbhzgRIuDM4U1Oad+kbRba01ZYerMvXa0nrh1txXS8wpn/xaNG965g0jDCqran68aBdHEKPhhGpWtIkYUs0ELWQMCJVS5okbIkGohYSRqRqSZOELdFA1ELCiFQtaZKwJRqIWt7UgxHngaem0wAAAABJRU5ErkJggg==";
26
26
  const __$_require_2399f75e__ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAA3dJREFUaEPtmE0orFEYx//jeyMpkSg1K6KokbIyNKWxkO+PCA02bKcUNrOwsWCUKSUp5WOKFIpkZyFFIrERZSUWvr8mGT1P3du97mVm7pw57/Tec+ptpumcec7v+f/POc97DB6Px4v/qBkUsM7VVgrrXGAohZXCOsuAsrTOBP0DRymsFNZZBpSldSao2rSUpZWldZYBoZbe398HPf622NhY5OTkIDs7298hQfcTCjw1NQV6/G0RERFISEhAXV0dKisrERUV5e/Qf+4XEuCNjQ2fE7JYLCguLsbt7S2Oj49hNpvR3NyMlJQUn2OD6aApcEtLC6qqqrC8vIylpSUkJyejvr4eBQUFIVNbc2CCfnt7w+HhIUZGRnB3d8f2rq2tBa1x0U1TYLJwU1PTT6b7+3sMDw9jd3eXoTs7O0Xzir3T+rFp+bOGCSgtLQ2ZmZm/Qb28vGB7exvPz89YWVnRD/Da2hrm5+cZ7HN7fHzEw8MD/ElcoBnRzNLfTTQQpyhgHxlQCgdqkV/7i7Kix+PB5eUlUlNTERkZGcyUQvs+LAKYYKkQoQ2NipCysjLExMQIgw47Sy8uLmJycpKLDoJvbW1FeXm5sMorbIBfX19Z2fHxcZSUlHDRMTQ0xBVYV1cX/ybi5SIsgAl2YWEBs7OzKCoqQltbG5KSknB9fc2V197eHjo6Olhpg8EQlL3DAnh6ehpzc3MoLS1FYmIiTCYTV2BXV1dwOBw4Ozvjz/z8/KBgabAmwF6vFycnJ7i4uAB9HxgYQF5eHmw2G/r7+3l37unpwcTEBI6OjmC324XAagL8/v6Ora0tjI2NwWg0oru7G263m+vn3t5ezMzM8K0JQaanp+Pm5oaTIep4kqowqbm5uQmXy4X4+HhWMyMjA1Q7k5Krq6vY2dlBdXU1GhoaEBcXF7SFP/+BVGAKfnBwwLsvHTl9fX3IysrC09MTH0Xr6+uwWq28Q0dHRwuHDZml6aX+q5abmwu6yxodHeUu7e3tbHFSvqKigpUVcfx8FT8kCn8nDSWDntPTUwwODvJOTGo3NjaipqZGaFX1t3kIBQ7Ug7RunU4nCgsLOQmiNqbv5qEpME3s/Pycbz5kwApfw4EqrEV/zRWWDa2AZWdcdjylsOyMy46nFJadcdnxlMKyMy47nlJYdsZlx1MKy8647HhKYdkZlx3vA4UyjOeIJjqAAAAAAElFTkSuQmCC";
27
- const ToolBar_vue_vue_type_style_index_0_scoped_9c3f86fa_lang = "";
27
+ const ToolBar_vue_vue_type_style_index_0_scoped_b986a130_lang = "";
28
28
  const ToolBar_vue_vue_type_style_index_1_lang = "";
29
29
  function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
30
30
  var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
@@ -159,11 +159,7 @@
159
159
  },
160
160
  mounted() {
161
161
  if (!this.isOss) {
162
- const user = JSON.parse(window.localStorage.getItem("user") || "{}");
163
- const certifyList = user.certifyList.map((item) => {
164
- return item.type;
165
- }) || [];
166
- this.showToolsArticle = certifyList.includes("11");
162
+ JSON.parse(window.localStorage.getItem("user") || "{}");
167
163
  }
168
164
  },
169
165
  methods: {
@@ -320,7 +316,7 @@
320
316
  return _vm.insertImg("normal");
321
317
  } } }, [_vm._v(_vm._s("\u4E0A\u4F20\u56FE\u7247"))]), _c("li", { class: [_vm.activeImgType === "seamless" ? "active" : ""], on: { "click": function($event) {
322
318
  return _vm.insertImg("seamless");
323
- } } }, [_vm._v(_vm._s("\u4E0A\u4F20\u65E0\u7F1D\u62FC\u63A5\u56FE\u7247"))])])]), _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u63D2\u5165\u89C6\u9891", "placement": "top" } }, [_c("img", { attrs: { "src": __$_require_563b6e32__, "width": "40", "height": "40", "alt": "" }, on: { "click": _vm.insertVideo } })]), _vm.showToolsArticle ? _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u63D2\u5165\u6587\u7AE0", "placement": "top" } }, [_c("img", { attrs: { "src": __$_require_c2f7a0a6__, "width": "40", "height": "40", "alt": "" }, on: { "click": _vm.insertArticle } })]) : _vm._e(), _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u91C7\u96C6\u6587\u7AE0", "placement": "top" } }, [_c("img", { attrs: { "src": __$_require_2399f75e__, "width": "40", "height": "40", "alt": "" }, on: { "click": _vm.collectArticle } })])], 1)]) : _vm._e();
319
+ } } }, [_vm._v(_vm._s("\u4E0A\u4F20\u65E0\u7F1D\u62FC\u63A5\u56FE\u7247"))])])]), _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u63D2\u5165\u89C6\u9891", "placement": "top" } }, [_c("img", { attrs: { "src": __$_require_563b6e32__, "width": "40", "height": "40", "alt": "" }, on: { "click": _vm.insertVideo } })]), _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u63D2\u5165\u6587\u7AE0", "placement": "top" } }, [_c("img", { attrs: { "src": __$_require_c2f7a0a6__, "width": "40", "height": "40", "alt": "" }, on: { "click": _vm.insertArticle } })]), _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u91C7\u96C6\u6587\u7AE0", "placement": "top" } }, [_c("img", { attrs: { "src": __$_require_2399f75e__, "width": "40", "height": "40", "alt": "" }, on: { "click": _vm.collectArticle } })])], 1)]) : _vm._e();
324
320
  };
325
321
  var _sfc_staticRenderFns$7 = [];
326
322
  var __component__$7 = /* @__PURE__ */ normalizeComponent(
@@ -329,7 +325,7 @@
329
325
  _sfc_staticRenderFns$7,
330
326
  false,
331
327
  null,
332
- "9c3f86fa",
328
+ "b986a130",
333
329
  null,
334
330
  null
335
331
  );
@@ -867,7 +863,7 @@
867
863
  null
868
864
  );
869
865
  const CollectArticle = __component__$2.exports;
870
- const index_vue_vue_type_style_index_0_scoped_20833f90_lang = "";
866
+ const index_vue_vue_type_style_index_0_scoped_6cfff18d_lang = "";
871
867
  const _sfc_main$1 = {
872
868
  props: {
873
869
  article: {
@@ -902,7 +898,7 @@
902
898
  _sfc_staticRenderFns$1,
903
899
  false,
904
900
  null,
905
- "20833f90",
901
+ "6cfff18d",
906
902
  null,
907
903
  null
908
904
  );
@@ -997,6 +993,9 @@
997
993
  break;
998
994
  }
999
995
  node = current.nextSibling;
996
+ if (node && node.tagName === "DIV") {
997
+ node = node.nextSibling;
998
+ }
1000
999
  if (!node) {
1001
1000
  current = current.parentNode;
1002
1001
  }
@@ -4882,7 +4881,7 @@
4882
4881
  const children = [...node.childNodes];
4883
4882
  const img = node.querySelector(".halo-picture-area");
4884
4883
  const isGif = img.src.indexOf(".gif!nowater") > -1;
4885
- if (isGif) {
4884
+ if (isGif && type === "preview") {
4886
4885
  img.src = img.src.replace(".gif!nowater", ".gif");
4887
4886
  }
4888
4887
  if (type === "preview") {
@@ -5438,7 +5437,7 @@
5438
5437
  removeDefault(next, key) {
5439
5438
  const me = this;
5440
5439
  const cur = next[key];
5441
- if (!cur)
5440
+ if (!cur || cur.innerText !== "\n")
5442
5441
  return;
5443
5442
  const blockDefault = cur.classList.contains("halo-paragraph") || false;
5444
5443
  const isLasterBlock = next.classList.contains("halo-paragraph") || false;
package/dist/style.css CHANGED
@@ -1,24 +1,24 @@
1
- .m12[data-v-9c3f86fa] {
1
+ .m12[data-v-b986a130] {
2
2
  margin: 0 12px;
3
3
  }
4
- .ml16[data-v-9c3f86fa] {
4
+ .ml16[data-v-b986a130] {
5
5
  margin-left: 16px;
6
6
  }
7
- .mr12[data-v-9c3f86fa] {
7
+ .mr12[data-v-b986a130] {
8
8
  margin-right: 12px;
9
9
  }
10
- .ml12[data-v-9c3f86fa] {
10
+ .ml12[data-v-b986a130] {
11
11
  margin-left: 12px;
12
12
  }
13
- .mr18[data-v-9c3f86fa] {
13
+ .mr18[data-v-b986a130] {
14
14
  margin-right: 18px;
15
15
  }
16
- .tools[data-v-9c3f86fa] {
16
+ .tools[data-v-b986a130] {
17
17
  z-index: 2;
18
18
  position: relative;
19
19
  background: #FAFAFA;
20
20
  }
21
- .tools .tools-content[data-v-9c3f86fa] {
21
+ .tools .tools-content[data-v-b986a130] {
22
22
  display: -webkit-box;
23
23
  display: -ms-flexbox;
24
24
  display: flex;
@@ -26,13 +26,13 @@
26
26
  -ms-flex-align: center;
27
27
  align-items: center;
28
28
  }
29
- .tools img[data-v-9c3f86fa] {
29
+ .tools img[data-v-b986a130] {
30
30
  cursor: pointer;
31
31
  }
32
- .tools .box[data-v-9c3f86fa] {
32
+ .tools .box[data-v-b986a130] {
33
33
  position: relative;
34
34
  }
35
- .tools .box .box-mask[data-v-9c3f86fa] {
35
+ .tools .box .box-mask[data-v-b986a130] {
36
36
  width: 40px;
37
37
  height: 40px;
38
38
  background: black;
@@ -41,7 +41,7 @@
41
41
  position: absolute;
42
42
  pointer-events: none;
43
43
  }
44
- .tools .tools-title[data-v-9c3f86fa] {
44
+ .tools .tools-title[data-v-b986a130] {
45
45
  color: #333333;
46
46
  font-size: 18px;
47
47
  display: -webkit-box;
@@ -52,25 +52,25 @@
52
52
  align-items: center;
53
53
  cursor: pointer;
54
54
  }
55
- .tools .disable[data-v-9c3f86fa] {
55
+ .tools .disable[data-v-b986a130] {
56
56
  cursor: not-allowed;
57
57
  -webkit-filter: blur(0.6px);
58
58
  filter: blur(0.6px);
59
59
  }
60
- .tools .disable img[data-v-9c3f86fa] {
60
+ .tools .disable img[data-v-b986a130] {
61
61
  cursor: not-allowed;
62
62
  }
63
- .tools .wrap[data-v-9c3f86fa] {
63
+ .tools .wrap[data-v-b986a130] {
64
64
  position: relative;
65
65
  }
66
- .tools[data-v-9c3f86fa] .m-colorPicker {
66
+ .tools[data-v-b986a130] .m-colorPicker {
67
67
  position: absolute;
68
68
  width: 100%;
69
69
  left: 0;
70
70
  z-index: -1;
71
71
  height: 100%;
72
72
  }
73
- .tools[data-v-9c3f86fa] .m-colorPicker .colorBtn {
73
+ .tools[data-v-b986a130] .m-colorPicker .colorBtn {
74
74
  width: 100%;
75
75
  height: 100%;
76
76
  opacity: 0;
@@ -353,7 +353,7 @@
353
353
  color: #999999;
354
354
  margin-bottom: 5px;
355
355
  }
356
- .article-item[data-v-20833f90] {
356
+ .article-item[data-v-6cfff18d] {
357
357
  -webkit-user-select: none;
358
358
  -moz-user-select: none;
359
359
  -ms-user-select: none;
@@ -368,7 +368,7 @@
368
368
  width: 440px;
369
369
  position: relative;
370
370
  }
371
- .article-item .icon[data-v-20833f90] {
371
+ .article-item .icon[data-v-6cfff18d] {
372
372
  -webkit-user-select: none;
373
373
  -moz-user-select: none;
374
374
  -ms-user-select: none;
@@ -381,7 +381,7 @@
381
381
  -ms-transform: translate(50%, -50%);
382
382
  transform: translate(50%, -50%);
383
383
  }
384
- .article-item img[data-v-20833f90] {
384
+ .article-item img[data-v-6cfff18d] {
385
385
  width: 80px;
386
386
  height: 80px;
387
387
  -o-object-fit: cover;
@@ -390,7 +390,7 @@
390
390
  -ms-flex-negative: 0;
391
391
  flex-shrink: 0;
392
392
  }
393
- .article-item .article-item_right[data-v-20833f90] {
393
+ .article-item .article-item_right[data-v-6cfff18d] {
394
394
  display: -webkit-box;
395
395
  display: -ms-flexbox;
396
396
  display: flex;
@@ -402,7 +402,7 @@
402
402
  -ms-flex-pack: justify;
403
403
  justify-content: space-between;
404
404
  }
405
- .article-item .article-item_right .name[data-v-20833f90] {
405
+ .article-item .article-item_right .name[data-v-6cfff18d] {
406
406
  font-size: 16px;
407
407
  margin-top: 5px;
408
408
  line-height: 22px;
@@ -413,7 +413,7 @@
413
413
  -o-text-overflow: ellipsis;
414
414
  text-overflow: ellipsis;
415
415
  }
416
- .article-item .article-item_right .score[data-v-20833f90] {
416
+ .article-item .article-item_right .score[data-v-6cfff18d] {
417
417
  color: #999999;
418
418
  line-height: 17px;
419
419
  font-size: 12px;
@@ -425,18 +425,18 @@
425
425
  align-items: center;
426
426
  margin-bottom: 6px;
427
427
  }
428
- .article-item .article-item_right .score span[data-v-20833f90]:nth-child(2) {
428
+ .article-item .article-item_right .score span[data-v-6cfff18d]:nth-child(2) {
429
429
  margin-left: 10px;
430
430
  }
431
- .article-item .article-item_right .score span[data-v-20833f90]:nth-child(3) {
431
+ .article-item .article-item_right .score span[data-v-6cfff18d]:nth-child(3) {
432
432
  margin-left: 10px;
433
433
  }
434
- .article-item .article-item_right .price[data-v-20833f90] {
434
+ .article-item .article-item_right .price[data-v-6cfff18d] {
435
435
  color: #ff5a25;
436
436
  font-size: 16px;
437
437
  margin-top: 6px;
438
438
  }
439
- .article-item .article-bg[data-v-20833f90] {
439
+ .article-item .article-bg[data-v-6cfff18d] {
440
440
  position: absolute;
441
441
  width: 440px;
442
442
  height: 60px;
@@ -451,7 +451,7 @@
451
451
  -webkit-backdrop-filter: blur(3px);
452
452
  backdrop-filter: blur(3px);
453
453
  }
454
- .article-item .article-bg-height[data-v-20833f90] {
454
+ .article-item .article-bg-height[data-v-6cfff18d] {
455
455
  height: 80px;
456
456
  line-height: 80px;
457
457
  }
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "@haluo/biz",
3
- "description": "rich text",
4
- "version": "0.1.21",
5
- "type": "module",
6
- "module": "./dist/haluo-biz.js",
7
- "main": "./dist/haluo-biz.umd.cjs",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/haluo-biz.js",
11
- "require": "./dist/haluo-biz.umd.cjs"
12
- }
13
- },
14
- "files": [
15
- "dist"
16
- ],
17
- "scripts": {
18
- "dev": "vite",
19
- "build": "vue-tsc --noEmit && vite build",
20
- "build:watch": "vue-tsc --noEmit && vite build --watch",
21
- "preview": "vite preview"
22
- },
23
- "dependencies": {
24
- "vue": "2.7",
25
- "vuedraggable": "^2.24.3"
26
- },
27
- "devDependencies": {
28
- "@haluo/util": "^1.0.24",
29
- "@types/node": "^18.7.18",
30
- "@vitejs/plugin-vue2": "^2.1.0",
31
- "autoprefixer": "^10.4.11",
32
- "less": "^4.1.3",
33
- "typescript": "^4.6.4",
34
- "vite": "^3.1.0",
35
- "vite-plugin-dts": "^1.5.0",
36
- "vite-plugin-vue2": "2.0.2",
37
- "vue-tsc": "^0.40.4"
38
- },
39
- "peerDependencies": {
40
- "vue": "^2.x"
41
- }
42
- }
1
+ {
2
+ "name": "@haluo/biz",
3
+ "description": "rich text",
4
+ "version": "0.1.23",
5
+ "type": "module",
6
+ "module": "./dist/haluo-biz.js",
7
+ "main": "./dist/haluo-biz.umd.cjs",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/haluo-biz.js",
11
+ "require": "./dist/haluo-biz.umd.cjs"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "scripts": {
18
+ "dev": "vite",
19
+ "build": "vue-tsc --noEmit && vite build",
20
+ "build:watch": "vue-tsc --noEmit && vite build --watch",
21
+ "preview": "vite preview"
22
+ },
23
+ "dependencies": {
24
+ "vue": "2.7",
25
+ "vuedraggable": "^2.24.3"
26
+ },
27
+ "devDependencies": {
28
+ "@haluo/util": "^1.0.24",
29
+ "@types/node": "^18.7.18",
30
+ "@vitejs/plugin-vue2": "^2.1.0",
31
+ "autoprefixer": "^10.4.11",
32
+ "less": "^4.1.3",
33
+ "typescript": "^4.6.4",
34
+ "vite": "^3.1.0",
35
+ "vite-plugin-dts": "^1.5.0",
36
+ "vite-plugin-vue2": "2.0.2",
37
+ "vue-tsc": "^0.40.4"
38
+ },
39
+ "peerDependencies": {
40
+ "vue": "^2.x"
41
+ }
42
+ }