@web-utils/component 4.0.7 → 4.0.9

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 (94) hide show
  1. package/chat/index.mjs +3 -2
  2. package/chunks/FormTemp.Bu2VCxUh.mjs +2 -2
  3. package/chunks/{configComponents.Bkix1pFY.mjs → configComponents.CpKi15WN.mjs} +16 -13
  4. package/chunks/{dictionary.Dq1KRI7k.mjs → dictionary.3O-Io7Vh.mjs} +1 -1
  5. package/chunks/index.BmYCjxZQ.mjs +47 -0
  6. package/confirm-button/index.mjs +14 -9
  7. package/confirmable/index.mjs +13 -8
  8. package/data-display/index.mjs +1 -1
  9. package/data-table-picker/index.mjs +10 -8
  10. package/editable-tree/index.mjs +3 -2
  11. package/element-dialog/index.mjs +3 -2
  12. package/flex-column/index.mjs +6 -5
  13. package/flex-item/index.mjs +6 -5
  14. package/flex-row/index.mjs +3 -2
  15. package/flow/index.mjs +3 -2
  16. package/flow-designer/index.mjs +2 -2
  17. package/flow-node/index.mjs +4 -3
  18. package/flow-viewer/index.mjs +2 -2
  19. package/form-button/index.mjs +1 -1
  20. package/form-cascader/index.mjs +17 -13
  21. package/form-checkbox/index.mjs +12 -7
  22. package/form-checkbox-group/index.mjs +14 -9
  23. package/form-date-picker/index.mjs +10 -5
  24. package/form-holder/index.mjs +5 -4
  25. package/form-input/index.mjs +11 -6
  26. package/form-input-cron-expression/index.mjs +13 -8
  27. package/form-input-email/index.mjs +17 -12
  28. package/form-input-id-card/index.mjs +19 -15
  29. package/form-input-number/index.mjs +23 -16
  30. package/form-input-phone-number/index.mjs +12 -8
  31. package/form-input-tag/index.mjs +12 -7
  32. package/form-input-time/index.mjs +7 -2
  33. package/form-item/index.mjs +6 -2
  34. package/form-radio-group/index.mjs +12 -7
  35. package/form-select/index.mjs +6 -2
  36. package/form-switch/index.mjs +12 -7
  37. package/form-table/index.mjs +28 -22
  38. package/form-table-plus/index.mjs +14 -10
  39. package/form-textarea/index.mjs +11 -6
  40. package/form-tree-select/index.mjs +17 -9
  41. package/form-tree-select-multiple/index.mjs +19 -11
  42. package/form-view/index.mjs +2 -2
  43. package/fy-array/index.mjs +5 -2
  44. package/fy-cascader/index.mjs +17 -13
  45. package/fy-checkbox/index.mjs +23 -19
  46. package/fy-code/index.mjs +10 -9
  47. package/fy-curd/index.mjs +6 -4
  48. package/fy-date/index.mjs +9 -5
  49. package/fy-draggable/index.mjs +3 -2
  50. package/fy-dynamic/index.mjs +14 -11
  51. package/fy-empty/index.mjs +4 -3
  52. package/fy-form/index.mjs +5 -2
  53. package/fy-form-design/index.mjs +4 -4
  54. package/fy-input/index.mjs +14 -10
  55. package/fy-input-color/index.mjs +15 -11
  56. package/fy-input-icon/index.mjs +10 -6
  57. package/fy-input-map/index.mjs +8 -5
  58. package/fy-input-number/index.mjs +16 -12
  59. package/fy-input-table/index.mjs +5 -2
  60. package/fy-input-tree/index.mjs +5 -2
  61. package/fy-radio/index.mjs +13 -9
  62. package/fy-rate/index.mjs +11 -7
  63. package/fy-select/index.mjs +4 -2
  64. package/fy-slider/index.mjs +10 -7
  65. package/fy-switch/index.mjs +9 -5
  66. package/fy-time/index.mjs +6 -3
  67. package/fy-title/index.mjs +16 -12
  68. package/fy-u-editor/index.mjs +3 -2
  69. package/fy-upload/index.mjs +4 -2
  70. package/image-cropper/index.mjs +3 -2
  71. package/index.mjs +555 -617
  72. package/license/index.mjs +3 -2
  73. package/package.json +1 -1
  74. package/page-skeleton/index.mjs +6 -6
  75. package/pageable-table/index.mjs +6 -3
  76. package/pageable-view/index.mjs +7 -6
  77. package/photo-swipe/index.mjs +15 -56
  78. package/picker-table-view/index.mjs +24 -23
  79. package/present-view/index.mjs +2 -2
  80. package/record-video/index.mjs +11 -10
  81. package/resize-observer/index.mjs +3 -2
  82. package/search/index.mjs +4 -2
  83. package/sign/index.mjs +3 -2
  84. package/split-pane/index.mjs +2 -2
  85. package/swiper/index.mjs +2 -2
  86. package/table-column/index.mjs +6 -3
  87. package/table-view/index.mjs +4 -3
  88. package/tabs-view/index.mjs +1 -1
  89. package/text-ellipsis/index.mjs +3 -2
  90. package/toolbar/index.mjs +4 -3
  91. package/toolbar-button/index.mjs +4 -3
  92. package/verify/index.mjs +8 -7
  93. package/watermark/index.mjs +15 -14
  94. package/web-types.json +1 -1
package/license/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { C as r } from "../chunks/util.DqFv_pWg.mjs";
2
2
  import { n as g } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ import "@web-utils/core";
3
4
  const l = {
4
5
  name: "License",
5
6
  props: {
@@ -109,7 +110,7 @@ var m = function() {
109
110
  null,
110
111
  null
111
112
  );
112
- const u = w.exports;
113
+ const x = w.exports;
113
114
  export {
114
- u as default
115
+ x as default
115
116
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "4.0.7",
4
+ "version": "4.0.9",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -1,9 +1,9 @@
1
- import o from "../page/index.mjs";
2
- import "../page/style.css";
3
- import n from "../nav-bar/index.mjs";
4
- import "../nav-bar/style.css";
5
- import r from "../page-header/index.mjs";
6
- import "../page-header/style.css";
1
+ import o from "./page/index.mjs";
2
+ import "./page/style.css";
3
+ import n from "./nav-bar/index.mjs";
4
+ import "./nav-bar/style.css";
5
+ import r from "./page-header/index.mjs";
6
+ import "./page-header/style.css";
7
7
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
8
  const l = {
9
9
  name: "PageSkeleton",
@@ -2,11 +2,14 @@ import { copy as v, hasOwn as P } from "@web-utils/core";
2
2
  import S from "element-ui/lib/message";
3
3
  import { g as _, f as C, i as B, j as A } from "../chunks/index.B2TRddqf.mjs";
4
4
  import { merge as f } from "@web-utils/integrations/lodash";
5
- import { g as K } from "../chunks/dictionary.Dq1KRI7k.mjs";
5
+ import { g as K } from "../chunks/dictionary.3O-Io7Vh.mjs";
6
6
  import { _ as T } from "../chunks/helper.BiMLcEEk.mjs";
7
7
  import "vue";
8
8
  import { n as b } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
9
9
  import { isEqual as L } from "lodash-es";
10
+ import "async-validator";
11
+ import "../chunks/core.DJEgjQW6.mjs";
12
+ import "../chunks/configComponents.CpKi15WN.mjs";
10
13
  function F(t) {
11
14
  v(
12
15
  t,
@@ -506,7 +509,7 @@ var X = function() {
506
509
  null,
507
510
  null
508
511
  );
509
- const ne = Y.exports;
512
+ const de = Y.exports;
510
513
  export {
511
- ne as default
514
+ de as default
512
515
  };
@@ -1,7 +1,8 @@
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";
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";
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";
5
6
  function S(e) {
6
7
  let t = "";
7
8
  for (const s in e)
@@ -118,7 +119,7 @@ const i = {
118
119
  return e.length > 3 ? 50 + (e.length - 3) * 10 : 50;
119
120
  },
120
121
  mergeAttrs() {
121
- return g({}, this.$attrs, { height: this.autoHeight ? null : "auto" });
122
+ return p({}, this.$attrs, { height: this.autoHeight ? null : "auto" });
122
123
  },
123
124
  headers() {
124
125
  var e;
@@ -215,7 +216,7 @@ const i = {
215
216
  },
216
217
  async getPage() {
217
218
  var o;
218
- if (p(this.$attrs, "data")) {
219
+ if (g(this.$attrs, "data")) {
219
220
  this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
220
221
  return;
221
222
  }
@@ -269,7 +270,7 @@ var v = function() {
269
270
  null,
270
271
  null
271
272
  );
272
- const x = T.exports;
273
+ const O = T.exports;
273
274
  export {
274
- x as default
275
+ O as default
275
276
  };
@@ -1,49 +1,8 @@
1
- import u from "photoswipe";
1
+ import { p as o } from "../chunks/index.BmYCjxZQ.mjs";
2
+ import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ import "photoswipe";
2
4
  import "photoswipe/dist/photoswipe.css";
3
- import { n as g } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
- function d(t) {
5
- new u(t).init();
6
- }
7
- async function l(t, r, n = { selector: "chat-image" }) {
8
- const c = t.target;
9
- if (!(!c || c.classList.contains(n.selector) || c.tagName === "IMG"))
10
- return;
11
- const e = r.querySelectorAll(n.selector === "img" ? n.selector : `.${n.selector}`), a = [...e].findIndex((s) => s === c);
12
- a >= 0 && (n.index = a);
13
- const i = await w(e);
14
- await d({ dataSource: i, index: a });
15
- }
16
- async function w(t) {
17
- const r = [];
18
- for (let n = 0, c = t.length; n < c; n++) {
19
- const e = t[n], a = e.getAttribute("data-src") || e.getAttribute("src"), i = {
20
- src: a,
21
- msrc: a,
22
- alt: e.getAttribute("data-title") || e.getAttribute("alt"),
23
- element: e
24
- }, s = e.getAttribute("data-height"), h = e.getAttribute("data-width");
25
- let o = { width: h, height: s };
26
- !s && !h && (o = await f(e), e.setAttribute("data-height", o.height), e.setAttribute("data-width", o.width)), i.w = o.width, i.width = o.width, i.h = o.height, i.height = o.height, r.push(i);
27
- }
28
- return r;
29
- }
30
- function f(t) {
31
- const r = t.getAttribute("data-src") || t.getAttribute("src"), n = t.getAttribute("data-height"), c = t.getAttribute("data-width");
32
- return n && c ? { width: c, height: n } : t.complete ? {
33
- width: t.naturalWidth,
34
- height: t.naturalHeight
35
- } : new Promise((e) => {
36
- const a = new Image();
37
- a.src = r;
38
- const i = {};
39
- a.complete ? (i.width = a.width, i.height = a.height, e(i)) : (a.onload = () => {
40
- i.width = a.width, i.height = a.height, e(i);
41
- }, a.onerror = () => {
42
- i.width = 0, i.height = 0, e(i);
43
- });
44
- });
45
- }
46
- const m = {
5
+ const i = {
47
6
  name: "PhotoSwipe",
48
7
  props: {
49
8
  urls: Array,
@@ -53,27 +12,27 @@ const m = {
53
12
  }
54
13
  },
55
14
  methods: {
56
- async preview(t) {
57
- await l(t, this.$refs.wrapper, { selector: this.selector });
15
+ async preview(e) {
16
+ await o(e, this.$refs.wrapper, { selector: this.selector });
58
17
  }
59
18
  }
60
19
  };
61
20
  var p = function() {
62
- var r = this, n = r._self._c;
63
- return n("div", { ref: "wrapper" }, [r._t("default", function() {
64
- return r._l(r.urls, function(c) {
65
- return n("img", { key: c.src, staticStyle: { cursor: "pointer" }, attrs: { width: "100", src: c.src, alt: "" }, on: { click: r.preview } });
21
+ var r = this, t = r._self._c;
22
+ return t("div", { ref: "wrapper" }, [r._t("default", function() {
23
+ return r._l(r.urls, function(s) {
24
+ return t("img", { key: s.src, staticStyle: { cursor: "pointer" }, attrs: { width: "100", src: s.src, alt: "" }, on: { click: r.preview } });
66
25
  });
67
26
  }, { urls: r.urls, preview: r.preview })], 2);
68
- }, _ = [], b = /* @__PURE__ */ g(
69
- m,
27
+ }, a = [], c = /* @__PURE__ */ n(
28
+ i,
70
29
  p,
71
- _,
30
+ a,
72
31
  !1,
73
32
  null,
74
33
  null
75
34
  );
76
- const v = b.exports;
35
+ const m = c.exports;
77
36
  export {
78
- v as default
37
+ m as default
79
38
  };
@@ -4,6 +4,7 @@ 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";
7
8
  const E = {
8
9
  name: "PickerTableView"
9
10
  }, R = /* @__PURE__ */ Object.assign(E, {
@@ -52,11 +53,11 @@ const E = {
52
53
  }
53
54
  },
54
55
  emits: ["cancel", "confirm", "update:visible"],
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;
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;
60
61
  }, d = () => {
61
62
  g.value.reload();
62
63
  }, k = () => {
@@ -64,20 +65,20 @@ const E = {
64
65
  }, u = () => {
65
66
  v.value.hide();
66
67
  }, w = () => {
67
- n("cancel"), u();
68
+ o("cancel"), u();
68
69
  }, C = () => {
69
70
  var p;
70
- let o;
71
- if (t.multiple ? (p = a.value) != null && p.length && (o = a.value) : s.value && (o = [s.value]), !o.length) {
71
+ let n;
72
+ if (t.multiple ? (p = a.value) != null && p.length && (n = a.value) : s.value && (n = [s.value]), !n.length) {
72
73
  B(N).warning("请选择!");
73
74
  return;
74
75
  }
75
- n("confirm", o), u();
76
- }, F = (o) => {
77
- n("update:visible", o);
76
+ o("confirm", n), u();
77
+ }, F = (n) => {
78
+ o("update:visible", n);
78
79
  };
79
80
  return S(async () => {
80
- var o;
81
+ var n;
81
82
  if (t.useTree) {
82
83
  const c = (await t.treeApi()).data.data;
83
84
  if (y(t.customRootNode)) {
@@ -88,22 +89,22 @@ const E = {
88
89
  r[t.treeProps.children || "children"] = c, i.value = y(r) ? [r] : r;
89
90
  } else
90
91
  i.value = c;
91
- t.expandFirstNode && (m.value = [(o = i.value[0]) == null ? void 0 : o.id]);
92
+ t.expandFirstNode && (m.value = [(n = i.value[0]) == null ? void 0 : n.id]);
92
93
  }
93
94
  }), e({
94
95
  search: d
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 };
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 };
96
97
  }
97
98
  });
98
99
  var D = function() {
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) {
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) {
105
106
  return a.preventDefault(), t.search.apply(null, arguments);
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);
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);
107
108
  }, K = [], j = /* @__PURE__ */ O(
108
109
  R,
109
110
  D,
@@ -112,7 +113,7 @@ var D = function() {
112
113
  null,
113
114
  null
114
115
  );
115
- const q = j.exports;
116
+ const G = j.exports;
116
117
  export {
117
- q as default
118
+ G as default
118
119
  };
@@ -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,5 +1,6 @@
1
- import { s } from "../chunks/util.DqFv_pWg.mjs";
1
+ import { s as r } from "../chunks/util.DqFv_pWg.mjs";
2
2
  import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ import "@web-utils/core";
3
4
  let o = class {
4
5
  /**
5
6
  * 构造函数
@@ -75,19 +76,19 @@ const n = {
75
76
  computed: {
76
77
  styleName() {
77
78
  return {
78
- width: s(this.width)
79
+ width: r(this.width)
79
80
  };
80
81
  },
81
82
  imgStyleName() {
82
83
  return {
83
- width: s(this.width / 2)
84
+ width: r(this.width / 2)
84
85
  };
85
86
  },
86
87
  borderStyleName() {
87
88
  return {
88
- width: s(this.width / 15),
89
- height: s(this.width / 15),
90
- borderWidth: s(5)
89
+ width: r(this.width / 15),
90
+ height: r(this.width / 15),
91
+ borderWidth: r(5)
91
92
  };
92
93
  }
93
94
  },
@@ -107,10 +108,10 @@ const n = {
107
108
  this.videoObj.stopRecord();
108
109
  },
109
110
  getData() {
110
- const r = new Blob(this.videoObj.chunks, {
111
+ const s = new Blob(this.videoObj.chunks, {
111
112
  type: "video/mp4"
112
113
  }), e = new FileReader();
113
- e.readAsDataURL(r), e.addEventListener("loadend", () => {
114
+ e.readAsDataURL(s), e.addEventListener("loadend", () => {
114
115
  const t = e.result;
115
116
  this.$emit("data-change", t);
116
117
  });
@@ -128,7 +129,7 @@ var c = function() {
128
129
  null,
129
130
  null
130
131
  );
131
- const p = m.exports;
132
+ const b = m.exports;
132
133
  export {
133
- p as default
134
+ b as default
134
135
  };
@@ -1,5 +1,6 @@
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";
3
4
  let t;
4
5
  function i() {
5
6
  i.init || (i.init = !0, t = r() !== -1);
@@ -42,7 +43,7 @@ var a = function() {
42
43
  null,
43
44
  null
44
45
  );
45
- const _ = l.exports;
46
+ const m = l.exports;
46
47
  export {
47
- _ as default
48
+ m as default
48
49
  };
package/search/index.mjs CHANGED
@@ -2,6 +2,8 @@ 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";
5
7
  const l = {
6
8
  name: "Search",
7
9
  mixins: [i],
@@ -101,7 +103,7 @@ var h = function() {
101
103
  null,
102
104
  null
103
105
  );
104
- const O = u.exports;
106
+ const y = u.exports;
105
107
  export {
106
- O as default
108
+ y as default
107
109
  };
package/sign/index.mjs CHANGED
@@ -1,5 +1,6 @@
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";
3
4
  function p(e, s, n, r, t, o) {
4
5
  e.save(), e.fillStyle = t, e.translate(s, n), e.rotate(Math.PI + o), e.beginPath();
5
6
  let a = Math.sin(0), d = Math.cos(0);
@@ -105,7 +106,7 @@ var y = function() {
105
106
  null,
106
107
  null
107
108
  );
108
- const P = w.exports;
109
+ const k = w.exports;
109
110
  export {
110
- P as default
111
+ k as default
111
112
  };
@@ -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",
@@ -1,8 +1,11 @@
1
1
  import { _ as T } from "../chunks/helper.BiMLcEEk.mjs";
2
2
  import { h as d } from "vue";
3
- import { g as C } from "../chunks/dictionary.Dq1KRI7k.mjs";
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";
6
9
  const D = {
7
10
  name: "DictRender",
8
11
  inheritAttrs: !1,
@@ -219,7 +222,7 @@ var E = /* @__PURE__ */ B(
219
222
  null,
220
223
  null
221
224
  );
222
- const X = E.exports;
225
+ const Q = E.exports;
223
226
  export {
224
- X as default
227
+ Q as default
225
228
  };
@@ -2,10 +2,11 @@ import { isFunction as p, toStringArray as f, isString as o, isArray as c, trace
2
2
  import { merge as i } from "@web-utils/integrations/lodash";
3
3
  import { g as m, h as w } from "../chunks/index.B2TRddqf.mjs";
4
4
  import g from "../form-item-config-provider/index.mjs";
5
- import { a as v, p as _ } from "../chunks/configComponents.Bkix1pFY.mjs";
5
+ 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";
9
10
  const T = [
10
11
  "back",
11
12
  "create",
@@ -320,7 +321,7 @@ var C = function() {
320
321
  null,
321
322
  null
322
323
  );
323
- const V = k.exports;
324
+ const O = k.exports;
324
325
  export {
325
- V as default
326
+ O as default
326
327
  };
@@ -1,6 +1,6 @@
1
1
  import { toStringArray as a } from "@web-utils/core";
2
2
  import { merge as n } from "@web-utils/integrations/lodash";
3
- import { p as l } from "../chunks/configComponents.Bkix1pFY.mjs";
3
+ import { p as l } from "../chunks/configComponents.CpKi15WN.mjs";
4
4
  import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
5
  const u = [
6
6
  "back",
@@ -1,5 +1,6 @@
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";
3
4
  const h = {
4
5
  name: "TextEllipsis",
5
6
  props: {
@@ -72,7 +73,7 @@ var r = function() {
72
73
  null,
73
74
  null
74
75
  );
75
- const d = f.exports;
76
+ const x = f.exports;
76
77
  export {
77
- d as default
78
+ x as default
78
79
  };
package/toolbar/index.mjs CHANGED
@@ -1,7 +1,8 @@
1
1
  import { h as p } from "vue";
2
2
  import { copy as m, NOOP as d } from "@web-utils/core";
3
- import { h as y, b as g } from "../chunks/configComponents.Bkix1pFY.mjs";
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";
5
6
  const u = {
6
7
  back: {
7
8
  label: "返回",
@@ -248,7 +249,7 @@ var v = /* @__PURE__ */ B(
248
249
  null,
249
250
  null
250
251
  );
251
- const O = v.exports;
252
+ const A = v.exports;
252
253
  export {
253
- O as default
254
+ A as default
254
255
  };
@@ -1,6 +1,7 @@
1
1
  import { isFunction as n, isArray as r } from "@web-utils/core";
2
- import { h as a } from "../chunks/configComponents.Bkix1pFY.mjs";
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";
4
5
  const s = {
5
6
  name: "ToolbarButton",
6
7
  inject: {
@@ -115,7 +116,7 @@ var c = function() {
115
116
  null,
116
117
  null
117
118
  );
118
- const g = f.exports;
119
+ const m = f.exports;
119
120
  export {
120
- g as default
121
+ m as default
121
122
  };
package/verify/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { s } from "../chunks/util.DqFv_pWg.mjs";
2
- import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ import "@web-utils/core";
3
4
  const o = {
4
5
  name: "Verify",
5
6
  props: {
@@ -46,11 +47,11 @@ const o = {
46
47
  }
47
48
  };
48
49
  var l = function() {
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) + " ")]);
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) + " ")]);
52
53
  }), 0);
53
- }, m = [], u = /* @__PURE__ */ i(
54
+ }, m = [], u = /* @__PURE__ */ a(
54
55
  o,
55
56
  l,
56
57
  m,
@@ -58,7 +59,7 @@ var l = function() {
58
59
  null,
59
60
  null
60
61
  );
61
- const _ = u.exports;
62
+ const f = u.exports;
62
63
  export {
63
- _ as default
64
+ f as default
64
65
  };
@@ -1,6 +1,7 @@
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 = {
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 = {
4
5
  name: "Watermark",
5
6
  functional: !0,
6
7
  props: {
@@ -47,29 +48,29 @@ const p = {
47
48
  default: "rgba(0,0,0,0)"
48
49
  }
49
50
  },
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 || ""}`),
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 || ""}`),
56
57
  style: {
57
58
  ...e.style || {},
58
59
  ...e.staticStyle || {},
59
- background: `url(${a.toDataURL("image/png")}) left top repeat`
60
+ background: `url(${r.toDataURL("image/png")}) left top repeat`
60
61
  }
61
62
  });
62
63
  }
63
64
  }, m = null, d = null;
64
- var g = /* @__PURE__ */ i(
65
- p,
65
+ var g = /* @__PURE__ */ u(
66
+ f,
66
67
  m,
67
68
  d,
68
69
  !1,
69
70
  null,
70
71
  null
71
72
  );
72
- const x = g.exports;
73
+ const b = g.exports;
73
74
  export {
74
- x as default
75
+ b as default
75
76
  };
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.7",
5
+ "version": "4.0.9",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",