@haluo/biz 1.0.3 → 1.0.5

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
@@ -767,7 +767,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
767
767
  ]),
768
768
  _: 1
769
769
  }),
770
- !$data.showToolsArticle ? (openBlock(), createBlock(_component_el_tooltip, {
770
+ $data.showToolsArticle ? (openBlock(), createBlock(_component_el_tooltip, {
771
771
  key: 0,
772
772
  class: "item",
773
773
  effect: "dark",
@@ -805,7 +805,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
805
805
  ])
806
806
  ])) : createCommentVNode("", true);
807
807
  }
808
- const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$4], ["__scopeId", "data-v-3c4bc6f8"]]);
808
+ const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$4], ["__scopeId", "data-v-aad1f7ce"]]);
809
809
  var script$2 = defineComponent({
810
810
  name: "CircleCloseFilled"
811
811
  });
@@ -1105,13 +1105,7 @@ const _hoisted_4$2 = {
1105
1105
  key: 0,
1106
1106
  class: "nodata"
1107
1107
  };
1108
- const _hoisted_5$2 = {
1109
- key: 1,
1110
- "infinite-scroll-immediate-check": "false",
1111
- class: "insert-article_list",
1112
- "infinite-scroll-disabled": "disable",
1113
- "infinite-scroll-distance": "10"
1114
- };
1108
+ const _hoisted_5$2 = ["infinite-scroll-disabled"];
1115
1109
  const _hoisted_6$1 = { style: { "display": "inline-flex", "flex-direction": "column" } };
1116
1110
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1117
1111
  __name: "index",
@@ -1145,7 +1139,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1145
1139
  data: [],
1146
1140
  busy: true
1147
1141
  });
1148
- computed(() => {
1142
+ const disable = computed(() => {
1149
1143
  return data.finished || data.busy;
1150
1144
  });
1151
1145
  watch(() => data.params.radio, (_) => {
@@ -1244,7 +1238,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1244
1238
  _: 1
1245
1239
  }, 8, ["modelValue"])
1246
1240
  ]),
1247
- data.data.length === 0 && !data.busy ? (openBlock(), createElementBlock("div", _hoisted_4$2, "\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6587\u7AE0\u54E6\uFF0C\u4F60\u53EF\u4EE5\u8BD5\u8BD5\u641C\u7D22\u5176\u4ED6\u6587\u7AE0\uFF5E")) : withDirectives((openBlock(), createElementBlock("div", _hoisted_5$2, [
1241
+ data.data.length === 0 && !data.busy ? (openBlock(), createElementBlock("div", _hoisted_4$2, "\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6587\u7AE0\u54E6\uFF0C\u4F60\u53EF\u4EE5\u8BD5\u8BD5\u641C\u7D22\u5176\u4ED6\u6587\u7AE0\uFF5E")) : withDirectives((openBlock(), createElementBlock("div", {
1242
+ key: 1,
1243
+ "infinite-scroll-immediate": false,
1244
+ class: "insert-article_list",
1245
+ "infinite-scroll-disabled": unref(disable)
1246
+ }, [
1248
1247
  (openBlock(true), createElementBlock(Fragment, null, renderList(data.data, (item, index) => {
1249
1248
  return openBlock(), createElementBlock("div", {
1250
1249
  key: index,
@@ -1266,7 +1265,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1266
1265
  }, 1032, ["modelValue", "label", "onChange"])
1267
1266
  ]);
1268
1267
  }), 128))
1269
- ])), [
1268
+ ], 8, _hoisted_5$2)), [
1270
1269
  [_directive_infinite_scroll, getArticleList]
1271
1270
  ])
1272
1271
  ])
@@ -771,7 +771,7 @@
771
771
  ]),
772
772
  _: 1
773
773
  }),
774
- !$data.showToolsArticle ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
774
+ $data.showToolsArticle ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
775
775
  key: 0,
776
776
  class: "item",
777
777
  effect: "dark",
@@ -809,7 +809,7 @@
809
809
  ])
810
810
  ])) : vue.createCommentVNode("", true);
811
811
  }
812
- const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$4], ["__scopeId", "data-v-3c4bc6f8"]]);
812
+ const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$4], ["__scopeId", "data-v-aad1f7ce"]]);
813
813
  var script$2 = vue.defineComponent({
814
814
  name: "CircleCloseFilled"
815
815
  });
@@ -1109,13 +1109,7 @@
1109
1109
  key: 0,
1110
1110
  class: "nodata"
1111
1111
  };
1112
- const _hoisted_5$2 = {
1113
- key: 1,
1114
- "infinite-scroll-immediate-check": "false",
1115
- class: "insert-article_list",
1116
- "infinite-scroll-disabled": "disable",
1117
- "infinite-scroll-distance": "10"
1118
- };
1112
+ const _hoisted_5$2 = ["infinite-scroll-disabled"];
1119
1113
  const _hoisted_6$1 = { style: { "display": "inline-flex", "flex-direction": "column" } };
1120
1114
  const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
1121
1115
  __name: "index",
@@ -1149,7 +1143,7 @@
1149
1143
  data: [],
1150
1144
  busy: true
1151
1145
  });
1152
- vue.computed(() => {
1146
+ const disable = vue.computed(() => {
1153
1147
  return data.finished || data.busy;
1154
1148
  });
1155
1149
  vue.watch(() => data.params.radio, (_) => {
@@ -1248,7 +1242,12 @@
1248
1242
  _: 1
1249
1243
  }, 8, ["modelValue"])
1250
1244
  ]),
1251
- data.data.length === 0 && !data.busy ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, "\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6587\u7AE0\u54E6\uFF0C\u4F60\u53EF\u4EE5\u8BD5\u8BD5\u641C\u7D22\u5176\u4ED6\u6587\u7AE0\uFF5E")) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_5$2, [
1245
+ data.data.length === 0 && !data.busy ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, "\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6587\u7AE0\u54E6\uFF0C\u4F60\u53EF\u4EE5\u8BD5\u8BD5\u641C\u7D22\u5176\u4ED6\u6587\u7AE0\uFF5E")) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
1246
+ key: 1,
1247
+ "infinite-scroll-immediate": false,
1248
+ class: "insert-article_list",
1249
+ "infinite-scroll-disabled": vue.unref(disable)
1250
+ }, [
1252
1251
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(data.data, (item, index) => {
1253
1252
  return vue.openBlock(), vue.createElementBlock("div", {
1254
1253
  key: index,
@@ -1270,7 +1269,7 @@
1270
1269
  }, 1032, ["modelValue", "label", "onChange"])
1271
1270
  ]);
1272
1271
  }), 128))
1273
- ])), [
1272
+ ], 8, _hoisted_5$2)), [
1274
1273
  [_directive_infinite_scroll, getArticleList]
1275
1274
  ])
1276
1275
  ])
package/dist/style.css CHANGED
@@ -1,24 +1,24 @@
1
- .m12[data-v-3c4bc6f8] {
1
+ .m12[data-v-aad1f7ce] {
2
2
  margin: 0 12px;
3
3
  }
4
- .ml16[data-v-3c4bc6f8] {
4
+ .ml16[data-v-aad1f7ce] {
5
5
  margin-left: 16px;
6
6
  }
7
- .mr12[data-v-3c4bc6f8] {
7
+ .mr12[data-v-aad1f7ce] {
8
8
  margin-right: 12px;
9
9
  }
10
- .ml12[data-v-3c4bc6f8] {
10
+ .ml12[data-v-aad1f7ce] {
11
11
  margin-left: 12px;
12
12
  }
13
- .mr18[data-v-3c4bc6f8] {
13
+ .mr18[data-v-aad1f7ce] {
14
14
  margin-right: 18px;
15
15
  }
16
- .tools[data-v-3c4bc6f8] {
16
+ .tools[data-v-aad1f7ce] {
17
17
  z-index: 2;
18
18
  position: relative;
19
19
  background: #FAFAFA;
20
20
  }
21
- .tools .tools-content[data-v-3c4bc6f8] {
21
+ .tools .tools-content[data-v-aad1f7ce] {
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-3c4bc6f8] {
29
+ .tools img[data-v-aad1f7ce] {
30
30
  cursor: pointer;
31
31
  }
32
- .tools .box[data-v-3c4bc6f8] {
32
+ .tools .box[data-v-aad1f7ce] {
33
33
  position: relative;
34
34
  }
35
- .tools .box .box-mask[data-v-3c4bc6f8] {
35
+ .tools .box .box-mask[data-v-aad1f7ce] {
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-3c4bc6f8] {
44
+ .tools .tools-title[data-v-aad1f7ce] {
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-3c4bc6f8] {
55
+ .tools .disable[data-v-aad1f7ce] {
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-3c4bc6f8] {
60
+ .tools .disable img[data-v-aad1f7ce] {
61
61
  cursor: not-allowed;
62
62
  }
63
- .tools .wrap[data-v-3c4bc6f8] {
63
+ .tools .wrap[data-v-aad1f7ce] {
64
64
  position: relative;
65
65
  }
66
- .tools[data-v-3c4bc6f8] .m-colorPicker {
66
+ .tools[data-v-aad1f7ce] .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-3c4bc6f8] .m-colorPicker .colorBtn {
73
+ .tools[data-v-aad1f7ce] .m-colorPicker .colorBtn {
74
74
  width: 100%;
75
75
  height: 100%;
76
76
  opacity: 0;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@haluo/biz",
3
3
  "description": "rich text",
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
5
5
  "type": "module",
6
6
  "module": "./dist/haluo-biz.js",
7
7
  "main": "./dist/haluo-biz.umd.cjs",