@haluo/biz 2.0.13 → 2.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/dist/haluo-biz.js CHANGED
@@ -300,6 +300,15 @@ O.install = function(e, t) {
300
300
  e.component(O.name, O);
301
301
  };
302
302
  console.log("name", O.name);
303
+ const Se = [
304
+ O
305
+ ], Fe = function(e) {
306
+ Se.map((t) => e.component(t.name, t));
307
+ }, De = {
308
+ install: Fe,
309
+ colorPicker: O
310
+ };
311
+ const style = "";
303
312
  const ToolBar_vue_vue_type_style_index_0_scoped_true_lang = "";
304
313
  const ToolBar_vue_vue_type_style_index_1_lang = "";
305
314
  const _export_sfc = (sfc, props) => {
@@ -313,7 +322,8 @@ const _sfc_main$7 = {
313
322
  components: {
314
323
  ElTooltip,
315
324
  ElDivider,
316
- ElPopover
325
+ ElPopover,
326
+ colorPicker: De.colorPicker
317
327
  },
318
328
  props: ["editor", "isOss", "hiddenTools"],
319
329
  data() {
@@ -1095,7 +1105,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
1095
1105
  ])
1096
1106
  ])) : createCommentVNode("", true);
1097
1107
  }
1098
- const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-dd9e6bac"]]);
1108
+ const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-719229ac"]]);
1099
1109
  const __vite_glob_0_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAmCAYAAAClI5npAAAA0UlEQVR42uWYwQnDMAxFfckAXkFDmGzgS1foDpnFS3gTb+IFtIDyA4UeBKUtNR8qwTvlkAdyfmSletySmRUwgIIJOijXs9VcLxegwNVDRFYLdHtdCg6wrRKY9l4NUFYIqH1WDeTfCXxXE9w5Ar4tQhBwh7SBjSDg2lJJAj47SAI+OwgC7pDuJAGfHQQBnx0kAZ8dBAF3SOtTgCchybjV2QLKFpihW6BAQn6GA0i4KG4g037H4QaSDiTWUMocyweQcFezBjLrer5TFxR/uaKhL6lOdeUQ8G6X1pQAAAAASUVORK5CYII=";
1100
1110
  const index_vue_vue_type_style_index_0_lang$4 = "";
1101
1111
  const _hoisted_1$6 = { class: "basic-dialog_title" };
@@ -302,6 +302,15 @@
302
302
  e.component(O.name, O);
303
303
  };
304
304
  console.log("name", O.name);
305
+ const Se = [
306
+ O
307
+ ], Fe = function(e) {
308
+ Se.map((t) => e.component(t.name, t));
309
+ }, De = {
310
+ install: Fe,
311
+ colorPicker: O
312
+ };
313
+ const style = "";
305
314
  const ToolBar_vue_vue_type_style_index_0_scoped_true_lang = "";
306
315
  const ToolBar_vue_vue_type_style_index_1_lang = "";
307
316
  const _export_sfc = (sfc, props) => {
@@ -315,7 +324,8 @@
315
324
  components: {
316
325
  ElTooltip: elementPlus.ElTooltip,
317
326
  ElDivider: elementPlus.ElDivider,
318
- ElPopover: elementPlus.ElPopover
327
+ ElPopover: elementPlus.ElPopover,
328
+ colorPicker: De.colorPicker
319
329
  },
320
330
  props: ["editor", "isOss", "hiddenTools"],
321
331
  data() {
@@ -1097,7 +1107,7 @@
1097
1107
  ])
1098
1108
  ])) : vue.createCommentVNode("", true);
1099
1109
  }
1100
- const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-dd9e6bac"]]);
1110
+ const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-719229ac"]]);
1101
1111
  const __vite_glob_0_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAmCAYAAAClI5npAAAA0UlEQVR42uWYwQnDMAxFfckAXkFDmGzgS1foDpnFS3gTb+IFtIDyA4UeBKUtNR8qwTvlkAdyfmSletySmRUwgIIJOijXs9VcLxegwNVDRFYLdHtdCg6wrRKY9l4NUFYIqH1WDeTfCXxXE9w5Ar4tQhBwh7SBjSDg2lJJAj47SAI+OwgC7pDuJAGfHQQBnx0kAZ8dBAF3SOtTgCchybjV2QLKFpihW6BAQn6GA0i4KG4g037H4QaSDiTWUMocyweQcFezBjLrer5TFxR/uaKhL6lOdeUQ8G6X1pQAAAAASUVORK5CYII=";
1102
1112
  const index_vue_vue_type_style_index_0_lang$4 = "";
1103
1113
  const _hoisted_1$6 = { class: "basic-dialog_title" };
@@ -4860,12 +4870,12 @@
4860
4870
  };
4861
4871
  };
4862
4872
  var replaceStyles = function(node, parent) {
4863
- var style = node.style;
4873
+ var style2 = node.style;
4864
4874
  var doc2 = node.ownerDocument;
4865
4875
  var attr, converter, css, newTreeBottom, newTreeTop, el;
4866
4876
  for (attr in styleToSemantic) {
4867
4877
  converter = styleToSemantic[attr];
4868
- css = style[attr];
4878
+ css = style2[attr];
4869
4879
  if (css && converter.regexp.test(css)) {
4870
4880
  el = converter.replace(doc2, css);
4871
4881
  if (!newTreeTop) {
@@ -6027,7 +6037,7 @@
6027
6037
  size: undefined$1
6028
6038
  };
6029
6039
  var seenAttributes = 0;
6030
- var element, style, attr;
6040
+ var element, style2, attr;
6031
6041
  if (!range && !(range = this.getSelection())) {
6032
6042
  return fontInfo;
6033
6043
  }
@@ -6037,20 +6047,20 @@
6037
6047
  element = element.parentNode;
6038
6048
  }
6039
6049
  while (seenAttributes < 4 && element) {
6040
- if (style = element.style) {
6041
- if (!fontInfo.color && (attr = style.color)) {
6050
+ if (style2 = element.style) {
6051
+ if (!fontInfo.color && (attr = style2.color)) {
6042
6052
  fontInfo.color = attr;
6043
6053
  seenAttributes += 1;
6044
6054
  }
6045
- if (!fontInfo.backgroundColor && (attr = style.backgroundColor)) {
6055
+ if (!fontInfo.backgroundColor && (attr = style2.backgroundColor)) {
6046
6056
  fontInfo.backgroundColor = attr;
6047
6057
  seenAttributes += 1;
6048
6058
  }
6049
- if (!fontInfo.family && (attr = style.fontFamily)) {
6059
+ if (!fontInfo.family && (attr = style2.fontFamily)) {
6050
6060
  fontInfo.family = attr;
6051
6061
  seenAttributes += 1;
6052
6062
  }
6053
- if (!fontInfo.size && (attr = style.fontSize)) {
6063
+ if (!fontInfo.size && (attr = style2.fontSize)) {
6054
6064
  fontInfo.size = attr;
6055
6065
  seenAttributes += 1;
6056
6066
  }
@@ -6805,11 +6815,11 @@
6805
6815
  };
6806
6816
  proto.addStyles = function(styles) {
6807
6817
  if (styles) {
6808
- var head = this._doc.documentElement.firstChild, style = this.createElement("STYLE", {
6818
+ var head = this._doc.documentElement.firstChild, style2 = this.createElement("STYLE", {
6809
6819
  type: "text/css"
6810
6820
  });
6811
- style.appendChild(this._doc.createTextNode(styles));
6812
- head.appendChild(style);
6821
+ style2.appendChild(this._doc.createTextNode(styles));
6822
+ head.appendChild(style2);
6813
6823
  }
6814
6824
  return this;
6815
6825
  };
package/dist/style.css CHANGED
@@ -1,24 +1,25 @@
1
- .m12[data-v-dd9e6bac] {
1
+ .m-colorPicker[data-v-b46fc003]{position:relative;text-align:left;font-size:14px;display:inline-block;outline:none}.m-colorPicker ul[data-v-b46fc003],.m-colorPicker li[data-v-b46fc003],.m-colorPicker ol[data-v-b46fc003]{list-style:none;margin:0;padding:0}.m-colorPicker .colorBtn[data-v-b46fc003]{width:15px;height:15px}.m-colorPicker .colorBtn.disabled[data-v-b46fc003]{cursor:no-drop}.m-colorPicker .box[data-v-b46fc003]{position:absolute;width:190px;background:#fff;border:1px solid #ddd;visibility:hidden;border-radius:2px;margin-top:2px;padding:10px 10px 5px;-webkit-box-shadow:0 0 5px #00000026;box-shadow:0 0 5px #00000026;opacity:0;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease;-webkit-box-sizing:content-box;box-sizing:content-box}.m-colorPicker .box h3[data-v-b46fc003]{margin:10px 0 5px;font-size:14px;font-weight:400;line-height:1;color:#333}.m-colorPicker .box input[data-v-b46fc003]{visibility:hidden;position:absolute;left:0;bottom:0}.m-colorPicker .box.open[data-v-b46fc003]{visibility:visible;opacity:1;z-index:1}.m-colorPicker .hd[data-v-b46fc003]{overflow:hidden;line-height:29px}.m-colorPicker .hd .colorView[data-v-b46fc003]{width:100px;height:30px;float:left;-webkit-transition:background-color .3s ease;-o-transition:background-color .3s ease;transition:background-color .3s ease}.m-colorPicker .hd .defaultColor[data-v-b46fc003]{width:80px;float:right;text-align:center;border:1px solid #ddd;cursor:pointer;color:#333}.m-colorPicker .tColor li[data-v-b46fc003]{width:15px;height:15px;display:inline-block;margin:0 2px;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}.m-colorPicker .tColor li[data-v-b46fc003]:hover{-webkit-box-shadow:0 0 5px #0006;box-shadow:0 0 5px #0006;-webkit-transform:scale(1.3);-ms-transform:scale(1.3);transform:scale(1.3)}.m-colorPicker .bColor li[data-v-b46fc003]{width:15px;display:inline-block;margin:0 2px}.m-colorPicker .bColor li li[data-v-b46fc003]{display:block;width:15px;height:15px;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease;margin:0}.m-colorPicker .bColor li li[data-v-b46fc003]:hover{-webkit-box-shadow:0 0 5px #0006;box-shadow:0 0 5px #0006;-webkit-transform:scale(1.3);-ms-transform:scale(1.3);transform:scale(1.3)}
2
+ .m12[data-v-719229ac] {
2
3
  margin: 0 12px;
3
4
  }
4
- .ml16[data-v-dd9e6bac] {
5
+ .ml16[data-v-719229ac] {
5
6
  margin-left: 16px;
6
7
  }
7
- .mr12[data-v-dd9e6bac] {
8
+ .mr12[data-v-719229ac] {
8
9
  margin-right: 12px;
9
10
  }
10
- .ml12[data-v-dd9e6bac] {
11
+ .ml12[data-v-719229ac] {
11
12
  margin-left: 12px;
12
13
  }
13
- .mr18[data-v-dd9e6bac] {
14
+ .mr18[data-v-719229ac] {
14
15
  margin-right: 18px;
15
16
  }
16
- .tools[data-v-dd9e6bac] {
17
+ .tools[data-v-719229ac] {
17
18
  z-index: 2;
18
19
  position: relative;
19
20
  background: #FAFAFA;
20
21
  }
21
- .tools .tools-content[data-v-dd9e6bac] {
22
+ .tools .tools-content[data-v-719229ac] {
22
23
  display: -webkit-box;
23
24
  display: -ms-flexbox;
24
25
  display: flex;
@@ -26,13 +27,13 @@
26
27
  -ms-flex-align: center;
27
28
  align-items: center;
28
29
  }
29
- .tools img[data-v-dd9e6bac] {
30
+ .tools img[data-v-719229ac] {
30
31
  cursor: pointer;
31
32
  }
32
- .tools .box[data-v-dd9e6bac] {
33
+ .tools .box[data-v-719229ac] {
33
34
  position: relative;
34
35
  }
35
- .tools .box .box-mask[data-v-dd9e6bac] {
36
+ .tools .box .box-mask[data-v-719229ac] {
36
37
  width: 40px;
37
38
  height: 40px;
38
39
  background: black;
@@ -41,7 +42,7 @@
41
42
  position: absolute;
42
43
  pointer-events: none;
43
44
  }
44
- .tools .tools-title[data-v-dd9e6bac] {
45
+ .tools .tools-title[data-v-719229ac] {
45
46
  color: #333333;
46
47
  font-size: 18px;
47
48
  display: -webkit-box;
@@ -52,25 +53,25 @@
52
53
  align-items: center;
53
54
  cursor: pointer;
54
55
  }
55
- .tools .disable[data-v-dd9e6bac] {
56
+ .tools .disable[data-v-719229ac] {
56
57
  cursor: not-allowed;
57
58
  -webkit-filter: blur(0.6px);
58
59
  filter: blur(0.6px);
59
60
  }
60
- .tools .disable img[data-v-dd9e6bac] {
61
+ .tools .disable img[data-v-719229ac] {
61
62
  cursor: not-allowed;
62
63
  }
63
- .tools .wrap[data-v-dd9e6bac] {
64
+ .tools .wrap[data-v-719229ac] {
64
65
  position: relative;
65
66
  }
66
- .tools[data-v-dd9e6bac] .m-colorPicker {
67
+ .tools[data-v-719229ac] .m-colorPicker {
67
68
  position: absolute;
68
69
  width: 100%;
69
70
  left: 0;
70
71
  z-index: -1;
71
72
  height: 100%;
72
73
  }
73
- .tools[data-v-dd9e6bac] .m-colorPicker .colorBtn {
74
+ .tools[data-v-719229ac] .m-colorPicker .colorBtn {
74
75
  width: 100%;
75
76
  height: 100%;
76
77
  opacity: 0;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@haluo/biz",
3
3
  "description": "rich text",
4
- "version": "2.0.13",
4
+ "version": "2.0.14",
5
5
  "type": "module",
6
6
  "module": "./dist/haluo-biz.js",
7
7
  "main": "./dist/haluo-biz.umd.cjs",