@web-utils/component 4.0.14 → 4.0.15

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 (168) hide show
  1. package/address-input/index.mjs +15 -13
  2. package/card/index.mjs +20 -18
  3. package/carousel/index.mjs +12 -10
  4. package/chat/index.mjs +56 -45
  5. package/chunk-file-uploader/index.mjs +378 -36
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
  8. package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
  9. package/chunks/FyForm.DriwCJ7b.mjs +765 -0
  10. package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
  11. package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
  12. package/chunks/TableColumn.BzivvXMF.mjs +337 -0
  13. package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
  14. package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
  15. package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
  16. package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
  17. package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
  18. package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
  19. package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
  20. package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
  21. package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
  22. package/color-picker/index.mjs +101 -22
  23. package/confirm-button/index.mjs +1 -1
  24. package/confirmable/index.mjs +1 -1
  25. package/data-box/index.mjs +15 -12
  26. package/data-card/index.mjs +12 -10
  27. package/data-card-text/index.mjs +12 -10
  28. package/data-display/index.mjs +17 -15
  29. package/data-icons/index.mjs +16 -13
  30. package/data-imgtext/index.mjs +18 -15
  31. package/data-operatext/index.mjs +16 -14
  32. package/data-panel/index.mjs +16 -13
  33. package/data-pay/index.mjs +20 -16
  34. package/data-price/index.mjs +16 -14
  35. package/data-progress/index.mjs +17 -13
  36. package/data-rotate/index.mjs +15 -12
  37. package/data-table-picker/index.mjs +18 -15
  38. package/data-tabs/index.mjs +15 -12
  39. package/dialog-form/index.mjs +18 -16
  40. package/dynamic-table/index.mjs +30 -25
  41. package/editable-progress/index.mjs +11 -9
  42. package/editable-tree/index.mjs +56 -52
  43. package/egd-collapse-item/index.mjs +9 -9
  44. package/element-dialog/index.mjs +23 -22
  45. package/flex-column/index.mjs +1 -1
  46. package/flex-item/index.mjs +1 -1
  47. package/flex-row/index.mjs +1 -1
  48. package/flow/index.mjs +11 -10
  49. package/flow-designer/index.mjs +1973 -699
  50. package/flow-designer/style.css +1 -1
  51. package/flow-node/index.mjs +1 -1
  52. package/flow-viewer/index.mjs +9 -9
  53. package/form-block/index.mjs +34 -32
  54. package/form-cascader/index.mjs +24 -23
  55. package/form-checkbox/index.mjs +17 -16
  56. package/form-checkbox-group/index.mjs +23 -20
  57. package/form-date-picker/index.mjs +20 -18
  58. package/form-holder/index.mjs +14 -13
  59. package/form-input/index.mjs +15 -14
  60. package/form-input-cron-expression/index.mjs +22 -19
  61. package/form-input-email/index.mjs +16 -15
  62. package/form-input-id-card/index.mjs +13 -12
  63. package/form-input-number/index.mjs +17 -16
  64. package/form-input-phone-number/index.mjs +22 -21
  65. package/form-input-tag/index.mjs +15 -14
  66. package/form-input-time/index.mjs +15 -14
  67. package/form-item/index.mjs +3 -140
  68. package/form-item-group/index.mjs +31 -28
  69. package/form-radio-group/index.mjs +28 -27
  70. package/form-select/index.mjs +23 -21
  71. package/form-switch/index.mjs +17 -16
  72. package/form-table/index.mjs +17 -16
  73. package/form-table-plus/index.mjs +22 -21
  74. package/form-textarea/index.mjs +16 -15
  75. package/form-tree-select/index.mjs +15 -14
  76. package/form-tree-select-multiple/index.mjs +15 -14
  77. package/form-view/index.mjs +39 -35
  78. package/fy-array/index.mjs +37 -33
  79. package/fy-cascader/index.mjs +17 -16
  80. package/fy-checkbox/index.mjs +13 -11
  81. package/fy-code/index.mjs +10 -10
  82. package/fy-curd/index.mjs +1147 -1123
  83. package/fy-date/index.mjs +11 -10
  84. package/fy-draggable/index.mjs +10 -9
  85. package/fy-dynamic/index.mjs +25 -22
  86. package/fy-empty/index.mjs +1 -1
  87. package/fy-form/index.mjs +15 -638
  88. package/fy-form-design/index.mjs +1165 -1127
  89. package/fy-input/index.mjs +14 -12
  90. package/fy-input-color/index.mjs +15 -13
  91. package/fy-input-icon/index.mjs +23 -20
  92. package/fy-input-map/index.mjs +31 -28
  93. package/fy-input-number/index.mjs +10 -9
  94. package/fy-input-table/index.mjs +22 -18
  95. package/fy-input-tree/index.mjs +37 -33
  96. package/fy-progress/index.mjs +10 -9
  97. package/fy-radio/index.mjs +16 -15
  98. package/fy-rate/index.mjs +11 -10
  99. package/fy-select/index.mjs +29 -25
  100. package/fy-slider/index.mjs +12 -11
  101. package/fy-switch/index.mjs +10 -9
  102. package/fy-tabs/index.mjs +17 -15
  103. package/fy-time/index.mjs +1 -1
  104. package/fy-title/index.mjs +1 -1
  105. package/fy-tree/index.mjs +24 -18
  106. package/fy-u-editor/index.mjs +1 -1
  107. package/fy-upload/index.mjs +76 -74
  108. package/guide-steps/index.mjs +13 -11
  109. package/iframe-window/index.mjs +10 -9
  110. package/image-cropper/index.mjs +30 -28
  111. package/image-preview/index.mjs +14 -12
  112. package/index.mjs +72 -72
  113. package/input-number/index.mjs +14 -13
  114. package/input-number-range/index.mjs +12 -11
  115. package/license/index.mjs +1 -1
  116. package/login/index.mjs +26 -21
  117. package/nav-bar/index.mjs +10 -9
  118. package/notice/index.mjs +10 -9
  119. package/package.json +1 -1
  120. package/page-index/index.mjs +13 -12
  121. package/page-index-top/index.mjs +28 -23
  122. package/page-skeleton/index.mjs +14 -14
  123. package/page-skeleton-new/index.mjs +9 -8
  124. package/pageable-table/index.mjs +182 -172
  125. package/pageable-view/index.mjs +16 -15
  126. package/picker-table-view/index.mjs +58 -49
  127. package/present-view/index.mjs +39 -35
  128. package/record-video/index.mjs +1 -1
  129. package/resize-observer/index.mjs +1 -1
  130. package/search/index.mjs +22 -20
  131. package/search-popover/index.mjs +1 -1
  132. package/sign/index.mjs +1 -1
  133. package/skeleton-panel/index.mjs +10 -9
  134. package/split-pane/index.mjs +37 -36
  135. package/static-pageable-table/index.mjs +13 -11
  136. package/sub-table/index.mjs +49 -36
  137. package/sub-table-plus/index.mjs +18 -229
  138. package/swiper/index.mjs +12 -11
  139. package/table-column/index.mjs +3 -223
  140. package/table-view/index.mjs +60 -52
  141. package/tabs-view/index.mjs +19 -17
  142. package/tag-render/index.mjs +18 -16
  143. package/text-ellipsis/index.mjs +10 -9
  144. package/toolbar/index.mjs +14 -13
  145. package/toolbar-button/index.mjs +14 -13
  146. package/verify/index.mjs +1 -1
  147. package/vue-cron/index.mjs +267 -259
  148. package/watermark/index.mjs +1 -1
  149. package/web-types.json +1 -1
  150. package/x-input-tag/index.mjs +24 -21
  151. package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
  152. package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
  153. package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
  154. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
  155. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
  156. package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
  157. package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
  158. package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
  159. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
  160. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
  161. package/chunks/core.0Exl13Mz.mjs +0 -54
  162. package/chunks/dictionary.DGt59Ir7.mjs +0 -68
  163. package/chunks/form-item.LWjePsPa.mjs +0 -233
  164. package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
  165. package/chunks/utilSelf.Csq1766E.mjs +0 -48
  166. package/chunks/utils.DRcxC1Fb.mjs +0 -60
  167. package/element-listeners/style.css +0 -1
  168. package/element-multi-instance/style.css +0 -1
@@ -1,5 +1,7 @@
1
- import { n as d } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
- const l = {
1
+ import d from "element-ui/lib/input";
2
+ import r from "element-ui/lib/cascader";
3
+ import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ const i = {
3
5
  name: "AddressInput",
4
6
  inject: {
5
7
  elForm: {
@@ -53,22 +55,22 @@ const l = {
53
55
  }
54
56
  }
55
57
  };
56
- var r = function() {
57
- var e = this, s = e._self._c;
58
- return s("div", { staticClass: "address-input-wrapper flex-row" }, [s("div", { staticClass: "address-input-item-wrapper" }, [s("ElCascader", { attrs: { options: e.options, disabled: e.inputDisabled, props: { label: "name", value: e.labelAsValue ? "name" : "id" } }, model: { value: e.internalVal.address, callback: function(t) {
59
- e.$set(e.internalVal, "address", t);
60
- }, expression: "internalVal.address" } })], 1), s("div", { staticClass: "address-input-item-wrapper flex-item" }, [s("ElInput", { attrs: { placeholder: "请输入详细地址!", disabled: e.inputDisabled }, model: { value: e.internalVal.detailAddress, callback: function(t) {
61
- e.$set(e.internalVal, "detailAddress", t);
58
+ var n = function() {
59
+ var e = this, t = e._self._c;
60
+ return t("div", { staticClass: "address-input-wrapper flex-row" }, [t("div", { staticClass: "address-input-item-wrapper" }, [t(r, { attrs: { options: e.options, disabled: e.inputDisabled, props: { label: "name", value: e.labelAsValue ? "name" : "id" } }, model: { value: e.internalVal.address, callback: function(s) {
61
+ e.$set(e.internalVal, "address", s);
62
+ }, expression: "internalVal.address" } })], 1), t("div", { staticClass: "address-input-item-wrapper flex-item" }, [t(d, { attrs: { placeholder: "请输入详细地址!", disabled: e.inputDisabled }, model: { value: e.internalVal.detailAddress, callback: function(s) {
63
+ e.$set(e.internalVal, "detailAddress", s);
62
64
  }, expression: "internalVal.detailAddress" } })], 1)]);
63
- }, i = [], n = /* @__PURE__ */ d(
64
- l,
65
- r,
65
+ }, o = [], p = /* @__PURE__ */ l(
66
66
  i,
67
+ n,
68
+ o,
67
69
  !1,
68
70
  null,
69
71
  null
70
72
  );
71
- const p = n.exports;
73
+ const _ = p.exports;
72
74
  export {
73
- p as default
75
+ _ as default
74
76
  };
package/card/index.mjs CHANGED
@@ -1,9 +1,11 @@
1
- import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
- const n = {
1
+ import e from "element-ui/lib/col";
2
+ import n from "element-ui/lib/row";
3
+ import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ const c = {
3
5
  img: "img",
4
6
  title: "title",
5
7
  info: "info"
6
- }, o = {
8
+ }, u = {
7
9
  name: "Card",
8
10
  props: {
9
11
  option: {
@@ -17,7 +19,7 @@ const n = {
17
19
  },
18
20
  data() {
19
21
  return {
20
- propsDefault: n
22
+ propsDefault: c
21
23
  };
22
24
  },
23
25
  computed: {
@@ -41,29 +43,29 @@ const n = {
41
43
  rowAdd() {
42
44
  this.$emit("row-add");
43
45
  },
44
- rowClick(e, t) {
45
- this.$emit("row-click", e, t);
46
+ rowClick(i, t) {
47
+ this.$emit("row-click", i, t);
46
48
  }
47
49
  }
48
50
  };
49
- var l = function() {
51
+ var _ = function() {
50
52
  var t = this, a = t._self._c;
51
- return a("div", { staticClass: "avue-card" }, [a("ElRow", { attrs: { span: 24, gutter: t.gutter } }, [t.option.addBtn ? a("ElCol", { attrs: { span: t.span } }, [a("div", { staticClass: "avue-card__item avue-card__item--add", on: { click: function(s) {
53
+ return a("div", { staticClass: "avue-card" }, [a(n, { attrs: { span: 24, gutter: t.gutter } }, [t.option.addBtn ? a(e, { attrs: { span: t.span } }, [a("div", { staticClass: "avue-card__item avue-card__item--add", on: { click: function(r) {
52
54
  return t.rowAdd();
53
- } } }, [a("i", { staticClass: "el-icon-plus" }), a("span", [t._v("添加")])])]) : t._e(), t._l(t.data, function(s, r) {
54
- return a("ElCol", { key: r, attrs: { span: t.span } }, [a("div", { staticClass: "avue-card__item", on: { click: function(d) {
55
- return t.rowClick(s, r);
56
- } } }, [a("div", { staticClass: "avue-card__body" }, [a("div", { staticClass: "avue-card__avatar" }, [a("img", { attrs: { src: s[t.imgKey], alt: "" } })]), a("div", { staticClass: "avue-card__detail" }, [a("div", { staticClass: "avue-card__title" }, [t._v(" " + t._s(s[t.titleKey]) + " ")]), a("div", { staticClass: "avue-card__info" }, [t._v(" " + t._s(s[t.infoKey]) + " ")])])]), a("div", { staticClass: "avue-card__menu" }, [t._t("menu", null, { index: r, row: s })], 2)])]);
55
+ } } }, [a("i", { staticClass: "el-icon-plus" }), a("span", [t._v("添加")])])]) : t._e(), t._l(t.data, function(r, s) {
56
+ return a(e, { key: s, attrs: { span: t.span } }, [a("div", { staticClass: "avue-card__item", on: { click: function(d) {
57
+ return t.rowClick(r, s);
58
+ } } }, [a("div", { staticClass: "avue-card__body" }, [a("div", { staticClass: "avue-card__avatar" }, [a("img", { attrs: { src: r[t.imgKey], alt: "" } })]), a("div", { staticClass: "avue-card__detail" }, [a("div", { staticClass: "avue-card__title" }, [t._v(" " + t._s(r[t.titleKey]) + " ")]), a("div", { staticClass: "avue-card__info" }, [t._v(" " + t._s(r[t.infoKey]) + " ")])])]), a("div", { staticClass: "avue-card__menu" }, [t._t("menu", null, { index: s, row: r })], 2)])]);
57
59
  })], 2)], 1);
58
- }, c = [], u = /* @__PURE__ */ i(
59
- o,
60
- l,
61
- c,
60
+ }, p = [], l = /* @__PURE__ */ o(
61
+ u,
62
+ _,
63
+ p,
62
64
  !1,
63
65
  null,
64
66
  null
65
67
  );
66
- const _ = u.exports;
68
+ const C = l.exports;
67
69
  export {
68
- _ as default
70
+ C as default
69
71
  };
@@ -1,5 +1,7 @@
1
- import { n as r } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
- const s = {
1
+ import r from "element-ui/lib/carousel-item";
2
+ import n from "element-ui/lib/carousel";
3
+ import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ const i = {
3
5
  name: "Carousel",
4
6
  props: {
5
7
  option: {
@@ -15,19 +17,19 @@ const s = {
15
17
  }
16
18
  };
17
19
  var l = function() {
18
- var t = this, a = t._self._c;
19
- return a("div", { class: ["avue-carousel", { "avue-carousel--fullscreen": t.option.fullscreen }] }, [a("ElCarousel", { attrs: { type: t.option.type, height: `${t.option.height}px`, autoplay: t.option.autoplay, interval: t.option.interval, "indicator-position": "outside" } }, t._l(t.data, function(e, o) {
20
- return a("ElCarouselItem", { key: o }, [a("div", { staticClass: "avue-carousel__item" }, [a("a", { attrs: { href: e.href ? e.href : "javascript:void(0);", target: e.target } }, [a("div", { staticClass: "avue-carousel__img", style: { backgroundImage: `url(${e.src})` } }), e.title ? a("div", { staticClass: "avue-carousel__title" }, [t._v(t._s(e.title))]) : t._e()])])]);
20
+ var t = this, e = t._self._c;
21
+ return e("div", { class: ["avue-carousel", { "avue-carousel--fullscreen": t.option.fullscreen }] }, [e(n, { attrs: { type: t.option.type, height: `${t.option.height}px`, autoplay: t.option.autoplay, interval: t.option.interval, "indicator-position": "outside" } }, t._l(t.data, function(a, o) {
22
+ return e(r, { key: o }, [e("div", { staticClass: "avue-carousel__item" }, [e("a", { attrs: { href: a.href ? a.href : "javascript:void(0);", target: a.target } }, [e("div", { staticClass: "avue-carousel__img", style: { backgroundImage: `url(${a.src})` } }), a.title ? e("div", { staticClass: "avue-carousel__title" }, [t._v(t._s(a.title))]) : t._e()])])]);
21
23
  }), 1)], 1);
22
- }, n = [], i = /* @__PURE__ */ r(
23
- s,
24
+ }, u = [], _ = /* @__PURE__ */ s(
25
+ i,
24
26
  l,
25
- n,
27
+ u,
26
28
  !1,
27
29
  null,
28
30
  null
29
31
  );
30
- const _ = i.exports;
32
+ const f = _.exports;
31
33
  export {
32
- _ as default
34
+ f as default
33
35
  };
package/chat/index.mjs CHANGED
@@ -1,7 +1,18 @@
1
- import { formatDate as r } from "@web-utils/integrations/dayjs";
2
- import { s as l } from "../chunks/util.DqFv_pWg.mjs";
3
- import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
- const d = {
1
+ import r from "../element-dialog/index.mjs";
2
+ import c from "element-ui/lib/input";
3
+ import m from "element-ui/lib/form-item";
4
+ import f from "element-ui/lib/form";
5
+ import l from "element-ui/lib/button";
6
+ import p from "element-ui/lib/tooltip";
7
+ import d from "element-ui/lib/dropdown-item";
8
+ import _ from "element-ui/lib/scrollbar";
9
+ import h from "element-ui/lib/popover";
10
+ import g from "element-ui/lib/dropdown-menu";
11
+ import y from "element-ui/lib/dropdown";
12
+ import { formatDate as b } from "@web-utils/integrations/dayjs";
13
+ import { s as u } from "../chunks/util.DI42t5GU.mjs";
14
+ import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
15
+ const w = {
5
16
  name: "Chat",
6
17
  props: {
7
18
  beforeOpen: Function,
@@ -80,12 +91,12 @@ const d = {
80
91
  },
81
92
  heightStyleName() {
82
93
  return {
83
- height: l(this.height)
94
+ height: u(this.height)
84
95
  };
85
96
  },
86
97
  widthStyleName() {
87
98
  return {
88
- width: l(this.width)
99
+ width: u(this.width)
89
100
  };
90
101
  },
91
102
  msgActive() {
@@ -116,32 +127,32 @@ const d = {
116
127
  getNotification(s) {
117
128
  const t = this, e = Notification || window.Notification;
118
129
  if (e) {
119
- let a = function() {
120
- e.requestPermission((n) => {
121
- n === "granted" ? o() : console.log("用户无情残忍的拒绝了你!!!");
130
+ let n = function() {
131
+ e.requestPermission((a) => {
132
+ a === "granted" ? o() : console.log("用户无情残忍的拒绝了你!!!");
122
133
  });
123
134
  }, o = function() {
124
- const n = new Notification(t.config.name, {
135
+ const a = new Notification(t.config.name, {
125
136
  body: s,
126
137
  icon: t.config.img
127
138
  });
128
- n.onshow = function() {
139
+ a.onshow = function() {
129
140
  t.getAudio(), setTimeout(() => {
130
- n.close();
141
+ a.close();
131
142
  }, 2500);
132
- }, n.onclick = function() {
133
- n.close();
143
+ }, a.onclick = function() {
144
+ a.close();
134
145
  };
135
146
  };
136
147
  const i = e.permission;
137
- i === "granted" ? o() : i === "denied" ? console.log("用户拒绝了你!!!") : a();
148
+ i === "granted" ? o() : i === "denied" ? console.log("用户拒绝了你!!!") : n();
138
149
  }
139
150
  },
140
151
  // mine为'我'的对话
141
152
  // text为内容
142
153
  pushMsg(s = {}) {
143
- const t = s.mine === !0, e = s.text || {}, a = {
144
- date: s.date || r(Date.now(), "YYYY-MM-DD HH:mm:ss"),
154
+ const t = s.mine === !0, e = s.text || {}, n = {
155
+ date: s.date || b(Date.now(), "YYYY-MM-DD HH:mm:ss"),
145
156
  text: typeof e != "object" ? {
146
157
  text: e
147
158
  } : e,
@@ -149,7 +160,7 @@ const d = {
149
160
  img: t ? this.config.myImg : this.config.img,
150
161
  name: t ? this.config.myName : this.config.name
151
162
  };
152
- this.list.push(a), setTimeout(() => {
163
+ this.list.push(n), setTimeout(() => {
153
164
  this.setScroll();
154
165
  }, 50);
155
166
  },
@@ -171,8 +182,8 @@ const d = {
171
182
  const t = s;
172
183
  return setTimeout(() => {
173
184
  (this.$refs.content || []).forEach((i) => {
174
- for (let a = 0; a < i.children.length; a++) {
175
- const o = i.children[a];
185
+ for (let n = 0; n < i.children.length; n++) {
186
+ const o = i.children[n];
176
187
  o.getAttribute("data-flag") !== "0" && (o.setAttribute("data-flag", 0), o.onclick = () => {
177
188
  this.handleEvent(o.dataset);
178
189
  }, o.tagName === "IMG" ? (o.className = "web__msg--img", o.src = o.getAttribute("data-src")) : o.tagName === "VIDEO" ? (o.className = "web__msg--video", o.src = o.getAttribute("data-src")) : o.tagName === "AUDIO" ? (o.className = "web__msg--audio", o.controls = "controls", o.src = o.getAttribute("data-src")) : o.tagName === "FILE" ? (o.className = "web__msg--file", o.innerHTML = `<h2>File</h2><span>${o.getAttribute("data-name")}</span>`) : o.tagName === "MAP" && (o.className = "web__msg--file web__msg--map", o.innerHTML = `<h2>Map</h2><span>${o.getAttribute("data-longitude")} , ${o.getAttribute(
@@ -183,7 +194,7 @@ const d = {
183
194
  }, 0), t;
184
195
  },
185
196
  getDetail(s = {}) {
186
- const { type: t, src: e, name: i, longitude: a, latitude: o, address: n } = s;
197
+ const { type: t, src: e, name: i, longitude: n, latitude: o, address: a } = s;
187
198
  if (t === "img")
188
199
  return `<img data-type="IMG" data-src="${e}" alt=""/>`;
189
200
  if (t === "video")
@@ -193,7 +204,7 @@ const d = {
193
204
  if (t === "file")
194
205
  return `<file data-type="FILE" data-name="${i}" data-src="${e}"></file>`;
195
206
  if (t === "map")
196
- return `<map data-type="MAP" data-src="${e}" data-address="${n} " data-latitude="${o}" data-longitude="${a}"></map>`;
207
+ return `<map data-type="MAP" data-src="${e}" data-address="${a} " data-latitude="${o}" data-longitude="${n}"></map>`;
197
208
  },
198
209
  // 处理事件
199
210
  handleEvent(s) {
@@ -209,13 +220,13 @@ const d = {
209
220
  }
210
221
  }
211
222
  };
212
- var u = function() {
223
+ var x = function() {
213
224
  var t = this, e = t._self._c;
214
225
  return e("div", { staticClass: "avue-chat", style: t.heightStyleName, on: { keyup: function(i) {
215
226
  return !i.type.indexOf("key") && t._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : t.handleSend.apply(null, arguments);
216
- } } }, [e("audio", { ref: "chatAudio" }, [e("source", { attrs: { src: t.audio[0], type: "audio/ogg" } }), e("source", { attrs: { src: t.audio[1], type: "audio/mpeg" } }), e("source", { attrs: { src: t.audio[2], type: "audio/wav" } })]), e("div", { staticClass: "web__logo" }, [e("img", { staticClass: "web__logo-img", attrs: { src: t.config.img, alt: "" } }), e("div", { staticClass: "web__logo-info" }, [e("p", { staticClass: "web__logo-name" }, [t._v(" " + t._s(t.config.name) + " ")]), e("p", { staticClass: "web__logo-dept" }, [t._v(" " + t._s(t.config.dept) + " ")])]), t._t("header")], 2), e("div", { staticClass: "web__content" }, [e("div", { style: t.widthStyleName }, [e("div", { ref: "main", staticClass: "web__main" }, t._l(t.list, function(i, a) {
217
- return e("div", { key: a, staticClass: "web__main-item", class: { "web__main-item--mine": i.mine } }, [e("div", { staticClass: "web__main-user" }, [e("img", { attrs: { src: i.img, alt: "" } }), e("cite", [t._v(" " + t._s(i.name) + " "), e("i", [t._v(t._s(i.date))])])]), e("div", { staticClass: "web__main-text" }, [e("div", { staticClass: "web__main-arrow" }), e("span", { ref: "content", refInFor: !0, domProps: { innerHTML: t._s(t.handleDetail(i.text.text)) } }), i.text.list ? t._e() : e("ul", { staticClass: "web__main-list" }, t._l(i.text.list, function(o, n) {
218
- return e("li", { key: n, on: { click: function(p) {
227
+ } } }, [e("audio", { ref: "chatAudio" }, [e("source", { attrs: { src: t.audio[0], type: "audio/ogg" } }), e("source", { attrs: { src: t.audio[1], type: "audio/mpeg" } }), e("source", { attrs: { src: t.audio[2], type: "audio/wav" } })]), e("div", { staticClass: "web__logo" }, [e("img", { staticClass: "web__logo-img", attrs: { src: t.config.img, alt: "" } }), e("div", { staticClass: "web__logo-info" }, [e("p", { staticClass: "web__logo-name" }, [t._v(" " + t._s(t.config.name) + " ")]), e("p", { staticClass: "web__logo-dept" }, [t._v(" " + t._s(t.config.dept) + " ")])]), t._t("header")], 2), e("div", { staticClass: "web__content" }, [e("div", { style: t.widthStyleName }, [e("div", { ref: "main", staticClass: "web__main" }, t._l(t.list, function(i, n) {
228
+ return e("div", { key: n, staticClass: "web__main-item", class: { "web__main-item--mine": i.mine } }, [e("div", { staticClass: "web__main-user" }, [e("img", { attrs: { src: i.img, alt: "" } }), e("cite", [t._v(" " + t._s(i.name) + " "), e("i", [t._v(t._s(i.date))])])]), e("div", { staticClass: "web__main-text" }, [e("div", { staticClass: "web__main-arrow" }), e("span", { ref: "content", refInFor: !0, domProps: { innerHTML: t._s(t.handleDetail(i.text.text)) } }), i.text.list ? t._e() : e("ul", { staticClass: "web__main-list" }, t._l(i.text.list, function(o, a) {
229
+ return e("li", { key: a, on: { click: function($) {
219
230
  return t.handleItemMsg(o);
220
231
  } } }, [t._v(" " + t._s(o.text) + " ")]);
221
232
  }), 0)])]);
@@ -227,40 +238,40 @@ var u = function() {
227
238
  return t.handleUpload("file");
228
239
  } } }) : t._e()]), e("div", { staticClass: "web__msg" }, [e("textarea", { directives: [{ name: "model", rawName: "v-model", value: t.msg, expression: "msg" }], staticClass: "web__msg-input", attrs: { rows: "2", placeholder: t.placeholder }, domProps: { value: t.msg }, on: { input: function(i) {
229
240
  i.target.composing || (t.msg = i.target.value);
230
- } } }), e("div", { staticClass: "web__msg-menu" }, [e("ElDropdown", { staticClass: "web__msg-submit", attrs: { "split-button": "", type: "primary", size: "mini", trigger: "click" }, on: { click: t.handleSend }, scopedSlots: t._u([{ key: "dropdown", fn: function() {
231
- return [e("ElDropdownMenu", [e("ElDropdownItem", [e("ElPopover", { attrs: { placement: "top", width: "160" }, scopedSlots: t._u([{ key: "reference", fn: function() {
232
- return [e("ElButton", { attrs: { type: "text", icon: "el-icon-plus" } })];
241
+ } } }), e("div", { staticClass: "web__msg-menu" }, [e(y, { staticClass: "web__msg-submit", attrs: { "split-button": "", type: "primary", size: "mini", trigger: "click" }, on: { click: t.handleSend }, scopedSlots: t._u([{ key: "dropdown", fn: function() {
242
+ return [e(g, [e(d, [e(h, { attrs: { placement: "top", width: "160" }, scopedSlots: t._u([{ key: "reference", fn: function() {
243
+ return [e(l, { attrs: { type: "text", icon: "el-icon-plus" } })];
233
244
  }, proxy: !0 }]), model: { value: t.visible, callback: function(i) {
234
245
  t.visible = i;
235
- }, expression: "visible" } }, [e("ElInput", { staticStyle: { "margin-bottom": "10px" }, attrs: { size: "mini", rows: 3, "show-word-limit": "", maxlength: "100", placeholder: "请输入快捷回复语", type: "textarea" }, model: { value: t.keys, callback: function(i) {
246
+ }, expression: "visible" } }, [e(c, { staticStyle: { "margin-bottom": "10px" }, attrs: { size: "mini", rows: 3, "show-word-limit": "", maxlength: "100", placeholder: "请输入快捷回复语", type: "textarea" }, model: { value: t.keys, callback: function(i) {
236
247
  t.keys = i;
237
- }, expression: "keys" } }), e("div", { staticStyle: { margin: "0", "text-align": "right" } }, [e("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(i) {
248
+ }, expression: "keys" } }), e("div", { staticStyle: { margin: "0", "text-align": "right" } }, [e(l, { attrs: { size: "mini", type: "text" }, on: { click: function(i) {
238
249
  t.visible = !1;
239
- } } }, [t._v(" 取消 ")]), e("ElButton", { attrs: { type: "primary", size: "mini" }, on: { click: t.addKey } }, [t._v(" 确定 ")])], 1)], 1)], 1), e("ElScrollbar", { staticStyle: { height: "100px" } }, t._l(t.keylist, function(i, a) {
240
- return e("ElDropdownItem", { key: a, nativeOn: { click: function(o) {
250
+ } } }, [t._v(" 取消 ")]), e(l, { attrs: { type: "primary", size: "mini" }, on: { click: t.addKey } }, [t._v(" 确定 ")])], 1)], 1)], 1), e(_, { staticStyle: { height: "100px" } }, t._l(t.keylist, function(i, n) {
251
+ return e(d, { key: n, nativeOn: { click: function(o) {
241
252
  return t.sendKey(i);
242
- } } }, [e("ElTooltip", { attrs: { effect: "dark", content: i, placement: "top" } }, [e("span", [t._v(" " + t._s(i.substr(0, 10)) + t._s(i.length > 10 ? "..." : ""))])])], 1);
253
+ } } }, [e(p, { attrs: { effect: "dark", content: i, placement: "top" } }, [e("span", [t._v(" " + t._s(i.substr(0, 10)) + t._s(i.length > 10 ? "..." : ""))])])], 1);
243
254
  }), 1)], 1)];
244
- }, proxy: !0 }]) }, [t._v(" 发送 ")])], 1)])])]), t._t("default")], 2), t.upload.box ? e("div", [e("ElementDialog", { attrs: { title: t.upload.title, "body-padding": !1, visible: t.upload.box, width: "30%" }, on: { "update:visible": function(i) {
255
+ }, proxy: !0 }]) }, [t._v(" 发送 ")])], 1)])])]), t._t("default")], 2), t.upload.box ? e("div", [e(r, { attrs: { title: t.upload.title, "body-padding": !1, visible: t.upload.box, width: "30%" }, on: { "update:visible": function(i) {
245
256
  return t.$set(t.upload, "box", i);
246
257
  } }, scopedSlots: t._u([{ key: "footer", fn: function() {
247
- return [e("ElButton", { attrs: { size: "small" }, on: { click: function(i) {
258
+ return [e(l, { attrs: { size: "small" }, on: { click: function(i) {
248
259
  t.upload.box = !1;
249
- } } }, [t._v("取 消")]), e("ElButton", { attrs: { type: "primary", size: "small" }, on: { click: t.uploadSubmit } }, [t._v("确 定")])];
250
- }, proxy: !0 }], null, !1, 99567638) }, [e("ElForm", { ref: "form", attrs: { model: t.upload } }, [e("ElFormItem", { attrs: { prop: "src", rules: [{ required: !0, message: "地址不能为空" }] } }, [e("ElInput", { staticStyle: { "margin-bottom": "10px" }, attrs: { size: "mini", rows: 4, "show-word-limit": "", maxlength: "100", placeholder: "请输入地址", type: "textarea" }, model: { value: t.upload.src, callback: function(i) {
260
+ } } }, [t._v("取 消")]), e(l, { attrs: { type: "primary", size: "small" }, on: { click: t.uploadSubmit } }, [t._v("确 定")])];
261
+ }, proxy: !0 }], null, !1, 99567638) }, [e(f, { ref: "form", attrs: { model: t.upload } }, [e(m, { attrs: { prop: "src", rules: [{ required: !0, message: "地址不能为空" }] } }, [e(c, { staticStyle: { "margin-bottom": "10px" }, attrs: { size: "mini", rows: 4, "show-word-limit": "", maxlength: "100", placeholder: "请输入地址", type: "textarea" }, model: { value: t.upload.src, callback: function(i) {
251
262
  t.$set(t.upload, "src", i);
252
- }, expression: "upload.src" } })], 1)], 1)], 1)], 1) : t._e(), t.show ? e("div", [e("ElementDialog", { staticClass: "web__dialog", attrs: { visible: t.show, "body-padding": !1, title: "预览", width: "40%", "before-close": t.handleClose }, on: { "update:visible": function(i) {
263
+ }, expression: "upload.src" } })], 1)], 1)], 1)], 1) : t._e(), t.show ? e("div", [e(r, { staticClass: "web__dialog", attrs: { visible: t.show, "body-padding": !1, title: "预览", width: "40%", "before-close": t.handleClose }, on: { "update:visible": function(i) {
253
264
  t.show = i;
254
265
  } } }, [t.imgSrc ? e("img", { staticStyle: { width: "100%", "object-fit": "cover" }, attrs: { src: t.imgSrc } }) : t._e(), t.videoSrc ? e("video", { staticStyle: { width: "100%", "object-fit": "cover" }, attrs: { src: t.videoSrc, controls: "controls" } }) : t._e(), t.audioSrc ? e("audio", { staticStyle: { width: "100%", "object-fit": "cover" }, attrs: { src: t.audioSrc, controls: "controls" } }) : t._e()])], 1) : t._e()]);
255
- }, f = [], m = /* @__PURE__ */ c(
256
- d,
257
- u,
258
- f,
266
+ }, S = [], k = /* @__PURE__ */ v(
267
+ w,
268
+ x,
269
+ S,
259
270
  !1,
260
271
  null,
261
272
  null
262
273
  );
263
- const y = m.exports;
274
+ const H = k.exports;
264
275
  export {
265
- y as default
276
+ H as default
266
277
  };