@haluo/biz 1.0.13 → 1.0.14

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,8 +1,8 @@
1
- # 发布
2
- ```
3
- npm publish --tag=next
4
- ```
5
- # 安装
6
- ```
7
- pnpm add @haluo/biz@next
1
+ # 发布
2
+ ```
3
+ npm publish --tag=next
4
+ ```
5
+ # 安装
6
+ ```
7
+ pnpm add @haluo/biz@next
8
8
  ```
package/dist/haluo-biz.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ElTooltip, ElDivider, ElPopover, ElDialog, ElButton, ElRadio, ElInput, ElInfiniteScroll, ElMessage, ElIcon, ElFormItem, ElForm, ElMessageBox } from "element-plus";
2
- import { resolveComponent, resolveDirective, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, normalizeStyle, createCommentVNode, normalizeClass, toDisplayString, withDirectives, Fragment, renderList, createBlock, defineComponent, inject, computed, unref, isRef, renderSlot, createTextVNode, provide, toRefs, reactive, watch, onMounted, withKeys, ref, h, render, vShow } from "vue";
2
+ import { resolveComponent, resolveDirective, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, normalizeStyle, createCommentVNode, normalizeClass, toDisplayString, withDirectives, Fragment, renderList, defineComponent, inject, computed, createBlock, unref, isRef, renderSlot, createTextVNode, provide, toRefs, reactive, watch, onMounted, withKeys, ref, h, render, vShow } from "vue";
3
3
  import { Picture, CircleCloseFilled, Plus } from "@element-plus/icons-vue";
4
4
  import util from "@haluo/util";
5
5
  import draggable from "vuedraggable";
@@ -116,11 +116,7 @@ const _sfc_main$7 = {
116
116
  },
117
117
  mounted() {
118
118
  if (!this.isOss) {
119
- const user = JSON.parse(window.localStorage.getItem("user") || "{}");
120
- const certifyList = user.certifyList.map((item) => {
121
- return item.type;
122
- }) || [];
123
- this.showToolsArticle = certifyList.includes("11");
119
+ JSON.parse(window.localStorage.getItem("user") || "{}");
124
120
  }
125
121
  },
126
122
  methods: {
@@ -774,8 +770,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
774
770
  ]),
775
771
  _: 1
776
772
  }),
777
- $data.showToolsArticle ? (openBlock(), createBlock(_component_el_tooltip, {
778
- key: 0,
773
+ createVNode(_component_el_tooltip, {
779
774
  class: "item",
780
775
  effect: "dark",
781
776
  content: "\u63D2\u5165\u6587\u7AE0",
@@ -791,7 +786,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
791
786
  }, null, 8, _hoisted_44)
792
787
  ]),
793
788
  _: 1
794
- })) : createCommentVNode("", true),
789
+ }),
795
790
  createVNode(_component_el_tooltip, {
796
791
  class: "item",
797
792
  effect: "dark",
@@ -812,7 +807,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
812
807
  ])
813
808
  ])) : createCommentVNode("", true);
814
809
  }
815
- const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-21b6d0ed"]]);
810
+ const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-5840d957"]]);
816
811
  const index_vue_vue_type_style_index_0_lang$4 = "";
817
812
  const _hoisted_1$6 = { class: "basic-dialog_title" };
818
813
  const _hoisted_2$6 = /* @__PURE__ */ createElementVNode("span", { class: "basic-dialog_divider" }, null, -1);
@@ -1606,7 +1601,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1606
1601
  }, " \u5E73\u53F0\u4EC5\u652F\u6301\u5C55\u793A18\u4E2A\u6708\u7684\u63A8\u8350\u5185\u5BB9 ", 2)) : createCommentVNode("", true)
1607
1602
  ]);
1608
1603
  }
1609
- const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-45d58d86"]]);
1604
+ const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-1c406a11"]]);
1610
1605
  const mountArticleDom = (props, del) => {
1611
1606
  const className = "article-wrap";
1612
1607
  const article = props.article;
@@ -1767,7 +1762,7 @@ const _sfc_main = {
1767
1762
  me.editorDom = document.getElementById("editor-content");
1768
1763
  me.editorDom.addEventListener("blur", this.canSetAlign);
1769
1764
  if (!window.Squire) {
1770
- import("./squire-raw.b8e23325.js").then(function() {
1765
+ import("./squire-raw.430ec4e5.js").then(function() {
1771
1766
  me.initSquire();
1772
1767
  });
1773
1768
  } else {
@@ -118,11 +118,7 @@
118
118
  },
119
119
  mounted() {
120
120
  if (!this.isOss) {
121
- const user = JSON.parse(window.localStorage.getItem("user") || "{}");
122
- const certifyList = user.certifyList.map((item) => {
123
- return item.type;
124
- }) || [];
125
- this.showToolsArticle = certifyList.includes("11");
121
+ JSON.parse(window.localStorage.getItem("user") || "{}");
126
122
  }
127
123
  },
128
124
  methods: {
@@ -776,8 +772,7 @@
776
772
  ]),
777
773
  _: 1
778
774
  }),
779
- $data.showToolsArticle ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
780
- key: 0,
775
+ vue.createVNode(_component_el_tooltip, {
781
776
  class: "item",
782
777
  effect: "dark",
783
778
  content: "\u63D2\u5165\u6587\u7AE0",
@@ -793,7 +788,7 @@
793
788
  }, null, 8, _hoisted_44)
794
789
  ]),
795
790
  _: 1
796
- })) : vue.createCommentVNode("", true),
791
+ }),
797
792
  vue.createVNode(_component_el_tooltip, {
798
793
  class: "item",
799
794
  effect: "dark",
@@ -814,7 +809,7 @@
814
809
  ])
815
810
  ])) : vue.createCommentVNode("", true);
816
811
  }
817
- const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-21b6d0ed"]]);
812
+ const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-5840d957"]]);
818
813
  const index_vue_vue_type_style_index_0_lang$4 = "";
819
814
  const _hoisted_1$6 = { class: "basic-dialog_title" };
820
815
  const _hoisted_2$6 = /* @__PURE__ */ vue.createElementVNode("span", { class: "basic-dialog_divider" }, null, -1);
@@ -1608,7 +1603,7 @@
1608
1603
  }, " \u5E73\u53F0\u4EC5\u652F\u6301\u5C55\u793A18\u4E2A\u6708\u7684\u63A8\u8350\u5185\u5BB9 ", 2)) : vue.createCommentVNode("", true)
1609
1604
  ]);
1610
1605
  }
1611
- const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-45d58d86"]]);
1606
+ const Item = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-1c406a11"]]);
1612
1607
  const mountArticleDom = (props, del) => {
1613
1608
  const className = "article-wrap";
1614
1609
  const article = props.article;
package/dist/style.css CHANGED
@@ -1,24 +1,24 @@
1
- .m12[data-v-21b6d0ed] {
1
+ .m12[data-v-5840d957] {
2
2
  margin: 0 12px;
3
3
  }
4
- .ml16[data-v-21b6d0ed] {
4
+ .ml16[data-v-5840d957] {
5
5
  margin-left: 16px;
6
6
  }
7
- .mr12[data-v-21b6d0ed] {
7
+ .mr12[data-v-5840d957] {
8
8
  margin-right: 12px;
9
9
  }
10
- .ml12[data-v-21b6d0ed] {
10
+ .ml12[data-v-5840d957] {
11
11
  margin-left: 12px;
12
12
  }
13
- .mr18[data-v-21b6d0ed] {
13
+ .mr18[data-v-5840d957] {
14
14
  margin-right: 18px;
15
15
  }
16
- .tools[data-v-21b6d0ed] {
16
+ .tools[data-v-5840d957] {
17
17
  z-index: 2;
18
18
  position: relative;
19
19
  background: #FAFAFA;
20
20
  }
21
- .tools .tools-content[data-v-21b6d0ed] {
21
+ .tools .tools-content[data-v-5840d957] {
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-21b6d0ed] {
29
+ .tools img[data-v-5840d957] {
30
30
  cursor: pointer;
31
31
  }
32
- .tools .box[data-v-21b6d0ed] {
32
+ .tools .box[data-v-5840d957] {
33
33
  position: relative;
34
34
  }
35
- .tools .box .box-mask[data-v-21b6d0ed] {
35
+ .tools .box .box-mask[data-v-5840d957] {
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-21b6d0ed] {
44
+ .tools .tools-title[data-v-5840d957] {
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-21b6d0ed] {
55
+ .tools .disable[data-v-5840d957] {
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-21b6d0ed] {
60
+ .tools .disable img[data-v-5840d957] {
61
61
  cursor: not-allowed;
62
62
  }
63
- .tools .wrap[data-v-21b6d0ed] {
63
+ .tools .wrap[data-v-5840d957] {
64
64
  position: relative;
65
65
  }
66
- .tools[data-v-21b6d0ed] .m-colorPicker {
66
+ .tools[data-v-5840d957] .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-21b6d0ed] .m-colorPicker .colorBtn {
73
+ .tools[data-v-5840d957] .m-colorPicker .colorBtn {
74
74
  width: 100%;
75
75
  height: 100%;
76
76
  opacity: 0;
@@ -351,7 +351,7 @@
351
351
  color: #999999;
352
352
  margin-bottom: 5px;
353
353
  }
354
- .article-item[data-v-45d58d86] {
354
+ .article-item[data-v-1c406a11] {
355
355
  -webkit-user-select: none;
356
356
  -moz-user-select: none;
357
357
  -ms-user-select: none;
@@ -366,7 +366,7 @@
366
366
  width: 440px;
367
367
  position: relative;
368
368
  }
369
- .article-item .icon[data-v-45d58d86] {
369
+ .article-item .icon[data-v-1c406a11] {
370
370
  width: 14px;
371
371
  -webkit-user-select: none;
372
372
  -moz-user-select: none;
@@ -380,7 +380,7 @@
380
380
  -ms-transform: translate(50%, -50%);
381
381
  transform: translate(50%, -50%);
382
382
  }
383
- .article-item img[data-v-45d58d86] {
383
+ .article-item img[data-v-1c406a11] {
384
384
  width: 80px;
385
385
  height: 80px;
386
386
  -o-object-fit: cover;
@@ -389,7 +389,7 @@
389
389
  -ms-flex-negative: 0;
390
390
  flex-shrink: 0;
391
391
  }
392
- .article-item .article-item_right[data-v-45d58d86] {
392
+ .article-item .article-item_right[data-v-1c406a11] {
393
393
  display: -webkit-box;
394
394
  display: -ms-flexbox;
395
395
  display: flex;
@@ -401,7 +401,7 @@
401
401
  -ms-flex-pack: justify;
402
402
  justify-content: space-between;
403
403
  }
404
- .article-item .article-item_right .name[data-v-45d58d86] {
404
+ .article-item .article-item_right .name[data-v-1c406a11] {
405
405
  font-size: 16px;
406
406
  margin-top: 5px;
407
407
  line-height: 22px;
@@ -412,7 +412,7 @@
412
412
  -o-text-overflow: ellipsis;
413
413
  text-overflow: ellipsis;
414
414
  }
415
- .article-item .article-item_right .score[data-v-45d58d86] {
415
+ .article-item .article-item_right .score[data-v-1c406a11] {
416
416
  color: #999999;
417
417
  line-height: 17px;
418
418
  font-size: 12px;
@@ -424,18 +424,18 @@
424
424
  align-items: center;
425
425
  margin-bottom: 6px;
426
426
  }
427
- .article-item .article-item_right .score span[data-v-45d58d86]:nth-child(2) {
427
+ .article-item .article-item_right .score span[data-v-1c406a11]:nth-child(2) {
428
428
  margin-left: 10px;
429
429
  }
430
- .article-item .article-item_right .score span[data-v-45d58d86]:nth-child(3) {
430
+ .article-item .article-item_right .score span[data-v-1c406a11]:nth-child(3) {
431
431
  margin-left: 10px;
432
432
  }
433
- .article-item .article-item_right .price[data-v-45d58d86] {
433
+ .article-item .article-item_right .price[data-v-1c406a11] {
434
434
  color: #ff5a25;
435
435
  font-size: 16px;
436
436
  margin-top: 6px;
437
437
  }
438
- .article-item .article-bg[data-v-45d58d86] {
438
+ .article-item .article-bg[data-v-1c406a11] {
439
439
  position: absolute;
440
440
  width: 440px;
441
441
  height: 60px;
@@ -450,7 +450,7 @@
450
450
  -webkit-backdrop-filter: blur(3px);
451
451
  backdrop-filter: blur(3px);
452
452
  }
453
- .article-item .article-bg-height[data-v-45d58d86] {
453
+ .article-item .article-bg-height[data-v-1c406a11] {
454
454
  height: 80px;
455
455
  line-height: 80px;
456
456
  }
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "@haluo/biz",
3
- "description": "rich text",
4
- "version": "1.0.13",
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
- "./dist/style.css": "./dist/style.css"
14
- },
15
- "files": [
16
- "dist"
17
- ],
18
- "scripts": {
19
- "dev": "vite",
20
- "build": "vue-tsc --noEmit && vite build",
21
- "build:watch": "vue-tsc --noEmit && vite build --watch",
22
- "preview": "vite preview"
23
- },
24
- "dependencies": {
25
- "element-plus": "^2.2.28",
26
- "uuid": "^9.0.0",
27
- "vue": "^3.2.36",
28
- "vuedraggable": "^4.1.0"
29
- },
30
- "devDependencies": {
31
- "@element-plus/icons-vue": "^2.0.10",
32
- "@haluo/util": "^1.0.24",
33
- "@types/node": "^18.7.18",
34
- "@types/uuid": "^9.0.0",
35
- "@vitejs/plugin-vue": "^2.1.0",
36
- "autoprefixer": "^10.4.11",
37
- "less": "^4.1.3",
38
- "typescript": "^4.6.4",
39
- "vite": "^3.1.0",
40
- "vite-plugin-dts": "^1.5.0",
41
- "vue-tsc": "^0.40.4"
42
- },
43
- "peerDependencies": {
44
- "vue": "^3.x"
45
- }
46
- }
1
+ {
2
+ "name": "@haluo/biz",
3
+ "description": "rich text",
4
+ "version": "1.0.14",
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
+ "./dist/style.css": "./dist/style.css"
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "dev": "vite",
20
+ "build": "vue-tsc --noEmit && vite build",
21
+ "build:watch": "vue-tsc --noEmit && vite build --watch",
22
+ "preview": "vite preview"
23
+ },
24
+ "dependencies": {
25
+ "element-plus": "^2.2.28",
26
+ "uuid": "^9.0.0",
27
+ "vue": "^3.2.36",
28
+ "vuedraggable": "^4.1.0"
29
+ },
30
+ "devDependencies": {
31
+ "@element-plus/icons-vue": "^2.0.10",
32
+ "@haluo/util": "^1.0.24",
33
+ "@types/node": "^18.7.18",
34
+ "@types/uuid": "^9.0.0",
35
+ "@vitejs/plugin-vue": "^2.1.0",
36
+ "autoprefixer": "^10.4.11",
37
+ "less": "^4.1.3",
38
+ "typescript": "^4.6.4",
39
+ "vite": "^3.1.0",
40
+ "vite-plugin-dts": "^1.5.0",
41
+ "vue-tsc": "^0.40.4"
42
+ },
43
+ "peerDependencies": {
44
+ "vue": "^3.x"
45
+ }
46
+ }