@haluo/biz 2.0.42-next.4 → 2.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/README.md CHANGED
@@ -34,4 +34,7 @@ npm unlink @haluo/biz # 删除项目符号链接
34
34
  3、查看依赖包(非必需)
35
35
  npm list # 查看所有依赖包
36
36
  npm list -g --depth=0 # 查看全局依赖包
37
+
38
+ 4、如果热更失效,可以
39
+ rm -rf node_modules && npm i && npm link @haluo/biz && npm run dev
37
40
  ```
package/dist/haluo-biz.js CHANGED
@@ -6594,6 +6594,8 @@ const _sfc_main = {
6594
6594
  const prevParagraph = currentParagraph.previousElementSibling;
6595
6595
  if (prevParagraph && prevParagraph.classList.contains("halo-paragraph")) {
6596
6596
  const prevContent = prevParagraph.innerHTML.trim();
6597
+ if (!prevContent.toUpperCase().includes("MDD-TOPIC"))
6598
+ return;
6597
6599
  if (prevContent === "<br>" || prevContent === "") {
6598
6600
  prevParagraph.remove();
6599
6601
  event.preventDefault();
@@ -6593,6 +6593,8 @@
6593
6593
  const prevParagraph = currentParagraph.previousElementSibling;
6594
6594
  if (prevParagraph && prevParagraph.classList.contains("halo-paragraph")) {
6595
6595
  const prevContent = prevParagraph.innerHTML.trim();
6596
+ if (!prevContent.toUpperCase().includes("MDD-TOPIC"))
6597
+ return;
6596
6598
  if (prevContent === "<br>" || prevContent === "") {
6597
6599
  prevParagraph.remove();
6598
6600
  event.preventDefault();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@haluo/biz",
3
3
  "description": "rich text",
4
- "version": "2.0.42-next.4",
4
+ "version": "2.0.43",
5
5
  "type": "module",
6
6
  "module": "./dist/haluo-biz.js",
7
7
  "main": "./dist/haluo-biz.umd.cjs",
@@ -19,10 +19,9 @@
19
19
  "dev": "vite",
20
20
  "build": "vue-tsc --noEmit && vite build",
21
21
  "build:watch": "vue-tsc --noEmit && vite build --watch",
22
- "preview": "vite preview",
23
- "next": "npm version prerelease --preid=next",
24
22
  "pub": "npm publish",
25
- "pub:next": "npm publish --tag=next"
23
+ "pub:next": "npm publish --tag=next",
24
+ "v:next": "npm version prerelease --preid=next"
26
25
  },
27
26
  "dependencies": {
28
27
  "element-plus": "^2.2.28",