@web-utils/component 4.0.9 → 4.0.11

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.
Files changed (89) hide show
  1. package/chat/index.mjs +2 -3
  2. package/chunks/FormTemp.Bu2VCxUh.mjs +2 -2
  3. package/confirm-button/index.mjs +9 -14
  4. package/confirmable/index.mjs +8 -13
  5. package/data-display/index.mjs +1 -1
  6. package/data-table-picker/index.mjs +8 -10
  7. package/editable-tree/index.mjs +2 -3
  8. package/element-dialog/index.mjs +2 -3
  9. package/flex-column/index.mjs +5 -6
  10. package/flex-item/index.mjs +5 -6
  11. package/flex-row/index.mjs +2 -3
  12. package/flow/index.mjs +2 -3
  13. package/flow-designer/index.mjs +2 -2
  14. package/flow-node/index.mjs +3 -4
  15. package/flow-viewer/index.mjs +2 -2
  16. package/form-button/index.mjs +1 -1
  17. package/form-cascader/index.mjs +13 -17
  18. package/form-checkbox/index.mjs +7 -12
  19. package/form-checkbox-group/index.mjs +9 -14
  20. package/form-date-picker/index.mjs +5 -10
  21. package/form-holder/index.mjs +4 -5
  22. package/form-input/index.mjs +6 -11
  23. package/form-input-cron-expression/index.mjs +8 -13
  24. package/form-input-email/index.mjs +12 -17
  25. package/form-input-id-card/index.mjs +15 -19
  26. package/form-input-number/index.mjs +16 -23
  27. package/form-input-phone-number/index.mjs +8 -12
  28. package/form-input-tag/index.mjs +7 -12
  29. package/form-input-time/index.mjs +2 -7
  30. package/form-item/index.mjs +2 -6
  31. package/form-radio-group/index.mjs +7 -12
  32. package/form-select/index.mjs +2 -6
  33. package/form-switch/index.mjs +7 -12
  34. package/form-table/index.mjs +22 -28
  35. package/form-table-plus/index.mjs +10 -14
  36. package/form-textarea/index.mjs +6 -11
  37. package/form-tree-select/index.mjs +9 -17
  38. package/form-tree-select-multiple/index.mjs +11 -19
  39. package/form-view/index.mjs +2 -2
  40. package/fy-array/index.mjs +2 -5
  41. package/fy-cascader/index.mjs +13 -17
  42. package/fy-checkbox/index.mjs +19 -23
  43. package/fy-code/index.mjs +9 -10
  44. package/fy-curd/index.mjs +4 -6
  45. package/fy-date/index.mjs +5 -9
  46. package/fy-draggable/index.mjs +2 -3
  47. package/fy-dynamic/index.mjs +11 -14
  48. package/fy-empty/index.mjs +3 -4
  49. package/fy-form/index.mjs +2 -5
  50. package/fy-form-design/index.mjs +4 -4
  51. package/fy-input/index.mjs +10 -14
  52. package/fy-input-color/index.mjs +11 -15
  53. package/fy-input-icon/index.mjs +6 -10
  54. package/fy-input-map/index.mjs +5 -8
  55. package/fy-input-number/index.mjs +12 -16
  56. package/fy-input-table/index.mjs +2 -5
  57. package/fy-input-tree/index.mjs +2 -5
  58. package/fy-radio/index.mjs +9 -13
  59. package/fy-rate/index.mjs +7 -11
  60. package/fy-select/index.mjs +2 -4
  61. package/fy-slider/index.mjs +7 -10
  62. package/fy-switch/index.mjs +5 -9
  63. package/fy-time/index.mjs +3 -6
  64. package/fy-title/index.mjs +12 -16
  65. package/fy-u-editor/index.mjs +2 -3
  66. package/fy-upload/index.mjs +2 -4
  67. package/image-cropper/index.mjs +2 -3
  68. package/license/index.mjs +2 -3
  69. package/package.json +1 -1
  70. package/page-skeleton/index.mjs +6 -6
  71. package/pageable-table/index.mjs +2 -5
  72. package/pageable-view/index.mjs +6 -7
  73. package/photo-swipe/index.mjs +5 -7
  74. package/picker-table-view/index.mjs +23 -24
  75. package/present-view/index.mjs +2 -2
  76. package/record-video/index.mjs +10 -11
  77. package/resize-observer/index.mjs +2 -3
  78. package/search/index.mjs +2 -4
  79. package/sign/index.mjs +2 -3
  80. package/split-pane/index.mjs +2 -2
  81. package/swiper/index.mjs +2 -2
  82. package/table-column/index.mjs +2 -5
  83. package/table-view/index.mjs +2 -3
  84. package/text-ellipsis/index.mjs +2 -3
  85. package/toolbar/index.mjs +2 -3
  86. package/toolbar-button/index.mjs +2 -3
  87. package/verify/index.mjs +7 -8
  88. package/watermark/index.mjs +14 -15
  89. package/web-types.json +1 -1
@@ -1,8 +1,7 @@
1
- import { cloneDeep as n, merge as p } from "@web-utils/integrations/lodash";
2
- import { hasOwn as g, copy as f } from "@web-utils/core";
1
+ import { cloneDeep as n, merge as g } from "@web-utils/integrations/lodash";
2
+ import { hasOwn as p, copy as f } from "@web-utils/core";
3
3
  import { f as h, i as u, j as m } from "../chunks/index.B2TRddqf.mjs";
4
4
  import { n as b } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- import "async-validator";
6
5
  function S(e) {
7
6
  let t = "";
8
7
  for (const s in e)
@@ -119,7 +118,7 @@ const i = {
119
118
  return e.length > 3 ? 50 + (e.length - 3) * 10 : 50;
120
119
  },
121
120
  mergeAttrs() {
122
- return p({}, this.$attrs, { height: this.autoHeight ? null : "auto" });
121
+ return g({}, this.$attrs, { height: this.autoHeight ? null : "auto" });
123
122
  },
124
123
  headers() {
125
124
  var e;
@@ -216,7 +215,7 @@ const i = {
216
215
  },
217
216
  async getPage() {
218
217
  var o;
219
- if (g(this.$attrs, "data")) {
218
+ if (p(this.$attrs, "data")) {
220
219
  this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
221
220
  return;
222
221
  }
@@ -270,7 +269,7 @@ var v = function() {
270
269
  null,
271
270
  null
272
271
  );
273
- const O = T.exports;
272
+ const x = T.exports;
274
273
  export {
275
- O as default
274
+ x as default
276
275
  };
@@ -1,7 +1,5 @@
1
1
  import { p as o } from "../chunks/index.BmYCjxZQ.mjs";
2
2
  import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- import "photoswipe";
4
- import "photoswipe/dist/photoswipe.css";
5
3
  const i = {
6
4
  name: "PhotoSwipe",
7
5
  props: {
@@ -17,22 +15,22 @@ const i = {
17
15
  }
18
16
  }
19
17
  };
20
- var p = function() {
18
+ var a = function() {
21
19
  var r = this, t = r._self._c;
22
20
  return t("div", { ref: "wrapper" }, [r._t("default", function() {
23
21
  return r._l(r.urls, function(s) {
24
22
  return t("img", { key: s.src, staticStyle: { cursor: "pointer" }, attrs: { width: "100", src: s.src, alt: "" }, on: { click: r.preview } });
25
23
  });
26
24
  }, { urls: r.urls, preview: r.preview })], 2);
27
- }, a = [], c = /* @__PURE__ */ n(
25
+ }, c = [], p = /* @__PURE__ */ n(
28
26
  i,
29
- p,
30
27
  a,
28
+ c,
31
29
  !1,
32
30
  null,
33
31
  null
34
32
  );
35
- const m = c.exports;
33
+ const _ = p.exports;
36
34
  export {
37
- m as default
35
+ _ as default
38
36
  };
@@ -4,7 +4,6 @@ import { isPlainObject as y, isFunction as P } from "@web-utils/core";
4
4
  import { cloneDeep as T } from "@web-utils/integrations/lodash";
5
5
  import { g as B } from "../chunks/index.B2TRddqf.mjs";
6
6
  import { n as O } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
7
- import "async-validator";
8
7
  const E = {
9
8
  name: "PickerTableView"
10
9
  }, R = /* @__PURE__ */ Object.assign(E, {
@@ -53,11 +52,11 @@ const E = {
53
52
  }
54
53
  },
55
54
  emits: ["cancel", "confirm", "update:visible"],
56
- setup(f, { expose: e, emit: o }) {
57
- const t = f, a = l([]), s = l(null), i = l([]), m = l([]), g = l(null), h = l(null), v = l(null), _ = l(null), b = (n) => {
58
- a.value = n;
59
- }, x = (n) => {
60
- s.value = n;
55
+ setup(f, { expose: e, emit: n }) {
56
+ const t = f, a = l([]), s = l(null), i = l([]), m = l([]), g = l(null), h = l(null), v = l(null), _ = l(null), b = (o) => {
57
+ a.value = o;
58
+ }, x = (o) => {
59
+ s.value = o;
61
60
  }, d = () => {
62
61
  g.value.reload();
63
62
  }, k = () => {
@@ -65,20 +64,20 @@ const E = {
65
64
  }, u = () => {
66
65
  v.value.hide();
67
66
  }, w = () => {
68
- o("cancel"), u();
67
+ n("cancel"), u();
69
68
  }, C = () => {
70
69
  var p;
71
- let n;
72
- if (t.multiple ? (p = a.value) != null && p.length && (n = a.value) : s.value && (n = [s.value]), !n.length) {
70
+ let o;
71
+ if (t.multiple ? (p = a.value) != null && p.length && (o = a.value) : s.value && (o = [s.value]), !o.length) {
73
72
  B(N).warning("请选择!");
74
73
  return;
75
74
  }
76
- o("confirm", n), u();
77
- }, F = (n) => {
78
- o("update:visible", n);
75
+ n("confirm", o), u();
76
+ }, F = (o) => {
77
+ n("update:visible", o);
79
78
  };
80
79
  return S(async () => {
81
- var n;
80
+ var o;
82
81
  if (t.useTree) {
83
82
  const c = (await t.treeApi()).data.data;
84
83
  if (y(t.customRootNode)) {
@@ -89,22 +88,22 @@ const E = {
89
88
  r[t.treeProps.children || "children"] = c, i.value = y(r) ? [r] : r;
90
89
  } else
91
90
  i.value = c;
92
- t.expandFirstNode && (m.value = [(n = i.value[0]) == null ? void 0 : n.id]);
91
+ t.expandFirstNode && (m.value = [(o = i.value[0]) == null ? void 0 : o.id]);
93
92
  }
94
93
  }), e({
95
94
  search: d
96
- }), { __sfc: !0, props: t, emits: o, rows: a, current: s, treeData: i, expandedKeys: m, table: g, form: h, dialog: v, tree: _, handleChange: b, handleCurrentChange: x, search: d, clear: k, closeDialog: u, onCancel: w, confirm: C, updateVisible: F };
95
+ }), { __sfc: !0, props: t, emits: n, rows: a, current: s, treeData: i, expandedKeys: m, table: g, form: h, dialog: v, tree: _, handleChange: b, handleCurrentChange: x, search: d, clear: k, closeDialog: u, onCancel: w, confirm: C, updateVisible: F };
97
96
  }
98
97
  });
99
98
  var D = function() {
100
- var e = this, o = e._self._c, t = e._self._setupProxy;
101
- return o("ElementDialog", { ref: "dialog", attrs: { visible: e.visible, height: e.height, width: e.width, "body-padding": !1, "show-full-screen": "", title: e.title }, on: { "update:visible": t.updateVisible }, scopedSlots: e._u([{ key: "footer", fn: function() {
102
- return [o("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: t.confirm } }, [e._v("确定")]), o("ElButton", { attrs: { size: "mini" }, on: { click: t.onCancel } }, [e._v("取消")])];
103
- }, proxy: !0 }]) }, [o("SkeletonPanel", { attrs: { "flex-column": "", "use-tab": !1, "hide-left": !e.useTree }, scopedSlots: e._u([e.useTree ? { key: "left", fn: function() {
104
- return [o("div", { staticStyle: { padding: "10px 0", "font-size": "16px", "border-bottom": "1px solid #eee" } }, [e._v(e._s(e.treeTitle))]), o("ElTree", { ref: "tree", attrs: { "node-key": e.nodeKey, data: t.treeData, "default-expanded-keys": t.expandedKeys, props: e.treeProps, "expand-on-click-node": e.expandOnClickNode }, on: { "node-click": e.onNodeClick } })];
105
- }, proxy: !0 } : null], null, !0) }, [o("FormHolder", { ref: "form", staticStyle: { padding: "10px" }, attrs: { model: e.model, "not-table-form": "" }, nativeOn: { submit: function(a) {
99
+ var e = this, n = e._self._c, t = e._self._setupProxy;
100
+ return n("ElementDialog", { ref: "dialog", attrs: { visible: e.visible, height: e.height, width: e.width, "body-padding": !1, "show-full-screen": "", title: e.title }, on: { "update:visible": t.updateVisible }, scopedSlots: e._u([{ key: "footer", fn: function() {
101
+ return [n("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: t.confirm } }, [e._v("确定")]), n("ElButton", { attrs: { size: "mini" }, on: { click: t.onCancel } }, [e._v("取消")])];
102
+ }, proxy: !0 }]) }, [n("SkeletonPanel", { attrs: { "flex-column": "", "use-tab": !1, "hide-left": !e.useTree }, scopedSlots: e._u([e.useTree ? { key: "left", fn: function() {
103
+ return [n("div", { staticStyle: { padding: "10px 0", "font-size": "16px", "border-bottom": "1px solid #eee" } }, [e._v(e._s(e.treeTitle))]), n("ElTree", { ref: "tree", attrs: { "node-key": e.nodeKey, data: t.treeData, "default-expanded-keys": t.expandedKeys, props: e.treeProps, "expand-on-click-node": e.expandOnClickNode }, on: { "node-click": e.onNodeClick } })];
104
+ }, proxy: !0 } : null], null, !0) }, [n("FormHolder", { ref: "form", staticStyle: { padding: "10px" }, attrs: { model: e.model, "not-table-form": "" }, nativeOn: { submit: function(a) {
106
105
  return a.preventDefault(), t.search.apply(null, arguments);
107
- } } }, [o("FormItemConfigProvider", { attrs: { reactive: "" } }, [o("ElRow", { attrs: { gutter: 0 } }, [e._t("search-form"), o("FormItem", { staticStyle: { "text-align": "right" }, attrs: { "hide-label": "", span: 24 } }, [o("ElButton", { attrs: { type: "primary", "native-type": "submit" } }, [e._v("搜索")]), o("ElButton", { on: { click: t.clear } }, [e._v("清空")])], 1)], 2)], 1)], 1), o("PageableTable", { ref: "table", attrs: { "highlight-current-row": "", "hide-on-single-page": "", "click-row-select": "", "row-key": e.rowKey, descs: e.descs, "payload-style": "body", api: e.tableApi, model: e.model, multiple: e.multiple }, on: { "current-change": t.handleCurrentChange, "selection-change": t.handleChange } }, [e._t("columns")], 2)], 1)], 1);
106
+ } } }, [n("FormItemConfigProvider", { attrs: { reactive: "" } }, [n("ElRow", { attrs: { gutter: 0 } }, [e._t("search-form"), n("FormItem", { staticStyle: { "text-align": "right" }, attrs: { "hide-label": "", span: 24 } }, [n("ElButton", { attrs: { type: "primary", "native-type": "submit" } }, [e._v("搜索")]), n("ElButton", { on: { click: t.clear } }, [e._v("清空")])], 1)], 2)], 1)], 1), n("PageableTable", { ref: "table", attrs: { "highlight-current-row": "", "hide-on-single-page": "", "click-row-select": "", "row-key": e.rowKey, descs: e.descs, "payload-style": "body", api: e.tableApi, model: e.model, multiple: e.multiple }, on: { "current-change": t.handleCurrentChange, "selection-change": t.handleChange } }, [e._t("columns")], 2)], 1)], 1);
108
107
  }, K = [], j = /* @__PURE__ */ O(
109
108
  R,
110
109
  D,
@@ -113,7 +112,7 @@ var D = function() {
113
112
  null,
114
113
  null
115
114
  );
116
- const G = j.exports;
115
+ const q = j.exports;
117
116
  export {
118
- G as default
117
+ q as default
119
118
  };
@@ -1,7 +1,7 @@
1
1
  import { isInContainer as u, delay as m, hasOwn as a, toStringArray as h } from "@web-utils/core";
2
2
  import { merge as b } from "@web-utils/integrations/lodash";
3
- import p from "./resize-observer/index.mjs";
4
- import "./resize-observer/style.css";
3
+ import p from "../resize-observer/index.mjs";
4
+ import "../resize-observer/style.css";
5
5
  import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
6
  const f = [
7
7
  "back",
@@ -1,6 +1,5 @@
1
- import { s as r } from "../chunks/util.DqFv_pWg.mjs";
1
+ import { s } from "../chunks/util.DqFv_pWg.mjs";
2
2
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- import "@web-utils/core";
4
3
  let o = class {
5
4
  /**
6
5
  * 构造函数
@@ -76,19 +75,19 @@ const n = {
76
75
  computed: {
77
76
  styleName() {
78
77
  return {
79
- width: r(this.width)
78
+ width: s(this.width)
80
79
  };
81
80
  },
82
81
  imgStyleName() {
83
82
  return {
84
- width: r(this.width / 2)
83
+ width: s(this.width / 2)
85
84
  };
86
85
  },
87
86
  borderStyleName() {
88
87
  return {
89
- width: r(this.width / 15),
90
- height: r(this.width / 15),
91
- borderWidth: r(5)
88
+ width: s(this.width / 15),
89
+ height: s(this.width / 15),
90
+ borderWidth: s(5)
92
91
  };
93
92
  }
94
93
  },
@@ -108,10 +107,10 @@ const n = {
108
107
  this.videoObj.stopRecord();
109
108
  },
110
109
  getData() {
111
- const s = new Blob(this.videoObj.chunks, {
110
+ const r = new Blob(this.videoObj.chunks, {
112
111
  type: "video/mp4"
113
112
  }), e = new FileReader();
114
- e.readAsDataURL(s), e.addEventListener("loadend", () => {
113
+ e.readAsDataURL(r), e.addEventListener("loadend", () => {
115
114
  const t = e.result;
116
115
  this.$emit("data-change", t);
117
116
  });
@@ -129,7 +128,7 @@ var c = function() {
129
128
  null,
130
129
  null
131
130
  );
132
- const b = m.exports;
131
+ const p = m.exports;
133
132
  export {
134
- b as default
133
+ p as default
135
134
  };
@@ -1,6 +1,5 @@
1
1
  import { a as r } from "../chunks/index.9OxHjTIE.mjs";
2
2
  import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- import "@web-utils/core";
4
3
  let t;
5
4
  function i() {
6
5
  i.init || (i.init = !0, t = r() !== -1);
@@ -43,7 +42,7 @@ var a = function() {
43
42
  null,
44
43
  null
45
44
  );
46
- const m = l.exports;
45
+ const _ = l.exports;
47
46
  export {
48
- m as default
47
+ _ as default
49
48
  };
package/search/index.mjs CHANGED
@@ -2,8 +2,6 @@ import { D as p } from "../chunks/util.DqFv_pWg.mjs";
2
2
  import { i } from "../chunks/init.DAsXSoLW.mjs";
3
3
  import { isBlank as o } from "@web-utils/core";
4
4
  import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- import "../chunks/dic.Dkl-leRW.mjs";
6
- import "../chunks/slot.DXIbhGat.mjs";
7
5
  const l = {
8
6
  name: "Search",
9
7
  mixins: [i],
@@ -103,7 +101,7 @@ var h = function() {
103
101
  null,
104
102
  null
105
103
  );
106
- const y = u.exports;
104
+ const O = u.exports;
107
105
  export {
108
- y as default
106
+ O as default
109
107
  };
package/sign/index.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { s as v } from "../chunks/util.DqFv_pWg.mjs";
2
2
  import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- import "@web-utils/core";
4
3
  function p(e, s, n, r, t, o) {
5
4
  e.save(), e.fillStyle = t, e.translate(s, n), e.rotate(Math.PI + o), e.beginPath();
6
5
  let a = Math.sin(0), d = Math.cos(0);
@@ -106,7 +105,7 @@ var y = function() {
106
105
  null,
107
106
  null
108
107
  );
109
- const k = w.exports;
108
+ const P = w.exports;
110
109
  export {
111
- k as default
110
+ P as default
112
111
  };
@@ -1,6 +1,6 @@
1
1
  import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
- import l from "./resize-observer/index.mjs";
3
- import "./resize-observer/style.css";
2
+ import l from "../resize-observer/index.mjs";
3
+ import "../resize-observer/style.css";
4
4
  function h(e, t) {
5
5
  for (let s = 0; s < t.length; s++)
6
6
  if (e === t[s])
package/swiper/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { getEleWidth as r } from "@web-utils/core";
2
- import a from "./resize-observer/index.mjs";
3
- import "./resize-observer/style.css";
2
+ import a from "../resize-observer/index.mjs";
3
+ import "../resize-observer/style.css";
4
4
  import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
5
  const h = {
6
6
  name: "Swiper",
@@ -3,9 +3,6 @@ import { h as d } from "vue";
3
3
  import { g as C } from "../chunks/dictionary.3O-Io7Vh.mjs";
4
4
  import { n as B } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
5
  import { f as V } from "../chunks/core.DJEgjQW6.mjs";
6
- import "../chunks/configComponents.CpKi15WN.mjs";
7
- import "@web-utils/core";
8
- import "@web-utils/integrations/lodash";
9
6
  const D = {
10
7
  name: "DictRender",
11
8
  inheritAttrs: !1,
@@ -222,7 +219,7 @@ var E = /* @__PURE__ */ B(
222
219
  null,
223
220
  null
224
221
  );
225
- const Q = E.exports;
222
+ const X = E.exports;
226
223
  export {
227
- Q as default
224
+ X as default
228
225
  };
@@ -6,7 +6,6 @@ import { a as v, p as _ } from "../chunks/configComponents.CpKi15WN.mjs";
6
6
  import { b as a } from "../chunks/core.DJEgjQW6.mjs";
7
7
  import y from "element-ui/lib/transitions/collapse-transition";
8
8
  import { n as S } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
9
- import "async-validator";
10
9
  const T = [
11
10
  "back",
12
11
  "create",
@@ -321,7 +320,7 @@ var C = function() {
321
320
  null,
322
321
  null
323
322
  );
324
- const O = k.exports;
323
+ const V = k.exports;
325
324
  export {
326
- O as default
325
+ V as default
327
326
  };
@@ -1,6 +1,5 @@
1
1
  import { s as l } from "../chunks/util.DqFv_pWg.mjs";
2
2
  import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- import "@web-utils/core";
4
3
  const h = {
5
4
  name: "TextEllipsis",
6
5
  props: {
@@ -73,7 +72,7 @@ var r = function() {
73
72
  null,
74
73
  null
75
74
  );
76
- const x = f.exports;
75
+ const d = f.exports;
77
76
  export {
78
- x as default
77
+ d as default
79
78
  };
package/toolbar/index.mjs CHANGED
@@ -2,7 +2,6 @@ import { h as p } from "vue";
2
2
  import { copy as m, NOOP as d } from "@web-utils/core";
3
3
  import { h as y, b as g } from "../chunks/configComponents.CpKi15WN.mjs";
4
4
  import { n as B } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
- import "@web-utils/integrations/lodash";
6
5
  const u = {
7
6
  back: {
8
7
  label: "返回",
@@ -249,7 +248,7 @@ var v = /* @__PURE__ */ B(
249
248
  null,
250
249
  null
251
250
  );
252
- const A = v.exports;
251
+ const O = v.exports;
253
252
  export {
254
- A as default
253
+ O as default
255
254
  };
@@ -1,7 +1,6 @@
1
1
  import { isFunction as n, isArray as r } from "@web-utils/core";
2
2
  import { h as a } from "../chunks/configComponents.CpKi15WN.mjs";
3
3
  import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
- import "@web-utils/integrations/lodash";
5
4
  const s = {
6
5
  name: "ToolbarButton",
7
6
  inject: {
@@ -116,7 +115,7 @@ var c = function() {
116
115
  null,
117
116
  null
118
117
  );
119
- const m = f.exports;
118
+ const g = f.exports;
120
119
  export {
121
- m as default
120
+ g as default
122
121
  };
package/verify/index.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { s } from "../chunks/util.DqFv_pWg.mjs";
2
- import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- import "@web-utils/core";
2
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
3
  const o = {
5
4
  name: "Verify",
6
5
  props: {
@@ -47,11 +46,11 @@ const o = {
47
46
  }
48
47
  };
49
48
  var l = function() {
50
- var t = this, r = t._self._c;
51
- return r("div", { staticClass: "avue-verify" }, t._l(t.list, function(n, i) {
52
- return r("span", { key: i, staticClass: "avue-verify__item", style: t.styleName }, [t._v(" " + t._s(n) + " ")]);
49
+ var t = this, n = t._self._c;
50
+ return n("div", { staticClass: "avue-verify" }, t._l(t.list, function(r, a) {
51
+ return n("span", { key: a, staticClass: "avue-verify__item", style: t.styleName }, [t._v(" " + t._s(r) + " ")]);
53
52
  }), 0);
54
- }, m = [], u = /* @__PURE__ */ a(
53
+ }, m = [], u = /* @__PURE__ */ i(
55
54
  o,
56
55
  l,
57
56
  m,
@@ -59,7 +58,7 @@ var l = function() {
59
58
  null,
60
59
  null
61
60
  );
62
- const f = u.exports;
61
+ const _ = u.exports;
63
62
  export {
64
- f as default
63
+ _ as default
65
64
  };
@@ -1,7 +1,6 @@
1
- import { g as p } from "../chunks/index.9OxHjTIE.mjs";
2
- import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- import "@web-utils/core";
4
- const f = {
1
+ import { g as f } from "../chunks/index.9OxHjTIE.mjs";
2
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ const p = {
5
4
  name: "Watermark",
6
5
  functional: !0,
7
6
  props: {
@@ -48,29 +47,29 @@ const f = {
48
47
  default: "rgba(0,0,0,0)"
49
48
  }
50
49
  },
51
- render(n, { props: { width: a, height: l, text: o, backgroundColor: s, rotate: c, color: i }, data: e }) {
52
- const r = document.createElement("canvas");
53
- r.width = a, r.height = l;
54
- const t = r.getContext("2d");
55
- return t.font = "15px Verdana", t.fillStyle = s, t.fillRect(0, 0, a, l), t.translate(a / 2, l / 2), t.rotate(c * Math.PI / 180), t.fillStyle = i, t.textAlign = "center", t.textBaseline = "middle", t.fillText(o, 0, 0), n("div", {
56
- class: p(e.class, `watermark ${e.staticClass || ""}`),
50
+ render(n, { props: { width: l, height: r, text: o, backgroundColor: s, rotate: c, color: u }, data: e }) {
51
+ const a = document.createElement("canvas");
52
+ a.width = l, a.height = r;
53
+ const t = a.getContext("2d");
54
+ return t.font = "15px Verdana", t.fillStyle = s, t.fillRect(0, 0, l, r), t.translate(l / 2, r / 2), t.rotate(c * Math.PI / 180), t.fillStyle = u, t.textAlign = "center", t.textBaseline = "middle", t.fillText(o, 0, 0), n("div", {
55
+ class: f(e.class, `watermark ${e.staticClass || ""}`),
57
56
  style: {
58
57
  ...e.style || {},
59
58
  ...e.staticStyle || {},
60
- background: `url(${r.toDataURL("image/png")}) left top repeat`
59
+ background: `url(${a.toDataURL("image/png")}) left top repeat`
61
60
  }
62
61
  });
63
62
  }
64
63
  }, m = null, d = null;
65
- var g = /* @__PURE__ */ u(
66
- f,
64
+ var g = /* @__PURE__ */ i(
65
+ p,
67
66
  m,
68
67
  d,
69
68
  !1,
70
69
  null,
71
70
  null
72
71
  );
73
- const b = g.exports;
72
+ const x = g.exports;
74
73
  export {
75
- b as default
74
+ x as default
76
75
  };
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "@web-utils/component",
5
- "version": "4.0.9",
5
+ "version": "4.0.11",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",