@web-utils/component 4.0.15 → 4.0.16

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 (169) hide show
  1. package/address-input/index.mjs +13 -15
  2. package/card/index.mjs +18 -20
  3. package/carousel/index.mjs +10 -12
  4. package/chat/index.mjs +45 -56
  5. package/chunk-file-uploader/index.mjs +36 -378
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/ElementBaseInfo.ZADwixb5.mjs +125 -0
  8. package/chunks/ElementForm.CQ3PN5qj.mjs +223 -0
  9. package/chunks/ElementListeners.De_PRuIm.mjs +215 -0
  10. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +181 -0
  11. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +60 -0
  12. package/chunks/ElementProperties.CosfDrlW.mjs +112 -0
  13. package/chunks/{ElementTaskConfig.AvBOzAni.mjs → ElementTaskConfig.Bko0kgTp.mjs} +55 -63
  14. package/chunks/FlowCondition.Y6qEYi1T.mjs +102 -0
  15. package/chunks/FormTemp.BQxO5IQq.mjs +123 -0
  16. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +85 -0
  17. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +169 -0
  18. package/chunks/{confirmable-mixin.BFZb6pcK.mjs → confirmable-mixin.B2TtLAdk.mjs} +1 -1
  19. package/chunks/core.0Exl13Mz.mjs +54 -0
  20. package/chunks/{dataformat.DJoNBlmI.mjs → dataformat.CpqOeGBl.mjs} +6 -6
  21. package/chunks/{dic.BinnDitI.mjs → dic.Dkl-leRW.mjs} +9 -9
  22. package/chunks/dictionary.DGt59Ir7.mjs +68 -0
  23. package/chunks/{event.DSlcqYHL.mjs → event.9aDS6jcw.mjs} +2 -2
  24. package/chunks/{form-input.BtS_J5a2.mjs → form-input.CvFdwlEV.mjs} +2 -2
  25. package/chunks/form-item.LWjePsPa.mjs +233 -0
  26. package/chunks/{index.CIfe3UB3.mjs → index.9OxHjTIE.mjs} +2 -2
  27. package/chunks/{index.Cn7aq-Et.mjs → index.B2TRddqf.mjs} +8 -8
  28. package/chunks/{init.xOlFpTyZ.mjs → init.DAsXSoLW.mjs} +2 -2
  29. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  30. package/chunks/{util.DI42t5GU.mjs → util.DqFv_pWg.mjs} +22 -22
  31. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  32. package/chunks/utils.DRcxC1Fb.mjs +60 -0
  33. package/color-picker/index.mjs +22 -101
  34. package/confirm-button/index.mjs +1 -1
  35. package/confirmable/index.mjs +1 -1
  36. package/data-box/index.mjs +12 -15
  37. package/data-card/index.mjs +10 -12
  38. package/data-card-text/index.mjs +10 -12
  39. package/data-display/index.mjs +15 -17
  40. package/data-icons/index.mjs +13 -16
  41. package/data-imgtext/index.mjs +15 -18
  42. package/data-operatext/index.mjs +14 -16
  43. package/data-panel/index.mjs +13 -16
  44. package/data-pay/index.mjs +16 -20
  45. package/data-price/index.mjs +14 -16
  46. package/data-progress/index.mjs +13 -17
  47. package/data-rotate/index.mjs +12 -15
  48. package/data-table-picker/index.mjs +15 -18
  49. package/data-tabs/index.mjs +12 -15
  50. package/dialog-form/index.mjs +16 -18
  51. package/dynamic-table/index.mjs +25 -30
  52. package/editable-progress/index.mjs +9 -11
  53. package/editable-tree/index.mjs +52 -56
  54. package/egd-collapse-item/index.mjs +9 -9
  55. package/element-dialog/index.mjs +22 -23
  56. package/element-listeners/style.css +1 -0
  57. package/element-multi-instance/style.css +1 -0
  58. package/flex-column/index.mjs +1 -1
  59. package/flex-item/index.mjs +1 -1
  60. package/flex-row/index.mjs +1 -1
  61. package/flow/index.mjs +10 -11
  62. package/flow-designer/index.mjs +699 -1973
  63. package/flow-designer/style.css +1 -1
  64. package/flow-node/index.mjs +1 -1
  65. package/flow-viewer/index.mjs +9 -9
  66. package/form-block/index.mjs +32 -34
  67. package/form-cascader/index.mjs +23 -24
  68. package/form-checkbox/index.mjs +16 -17
  69. package/form-checkbox-group/index.mjs +20 -23
  70. package/form-date-picker/index.mjs +18 -20
  71. package/form-holder/index.mjs +13 -14
  72. package/form-input/index.mjs +14 -15
  73. package/form-input-cron-expression/index.mjs +19 -22
  74. package/form-input-email/index.mjs +15 -16
  75. package/form-input-id-card/index.mjs +12 -13
  76. package/form-input-number/index.mjs +16 -17
  77. package/form-input-phone-number/index.mjs +21 -22
  78. package/form-input-tag/index.mjs +14 -15
  79. package/form-input-time/index.mjs +14 -15
  80. package/form-item/index.mjs +140 -3
  81. package/form-item-group/index.mjs +28 -31
  82. package/form-radio-group/index.mjs +27 -28
  83. package/form-select/index.mjs +21 -23
  84. package/form-switch/index.mjs +16 -17
  85. package/form-table/index.mjs +16 -17
  86. package/form-table-plus/index.mjs +21 -22
  87. package/form-textarea/index.mjs +15 -16
  88. package/form-tree-select/index.mjs +14 -15
  89. package/form-tree-select-multiple/index.mjs +14 -15
  90. package/form-view/index.mjs +35 -39
  91. package/fy-array/index.mjs +33 -37
  92. package/fy-cascader/index.mjs +16 -17
  93. package/fy-checkbox/index.mjs +11 -13
  94. package/fy-code/index.mjs +10 -10
  95. package/fy-curd/index.mjs +1128 -1152
  96. package/fy-date/index.mjs +10 -11
  97. package/fy-draggable/index.mjs +9 -10
  98. package/fy-dynamic/index.mjs +22 -25
  99. package/fy-empty/index.mjs +1 -1
  100. package/fy-form/index.mjs +638 -15
  101. package/fy-form-design/index.mjs +1307 -1345
  102. package/fy-from/crud/zh.d.ts +6 -6
  103. package/fy-input/index.mjs +12 -14
  104. package/fy-input-color/index.mjs +13 -15
  105. package/fy-input-icon/index.mjs +20 -23
  106. package/fy-input-map/index.mjs +28 -31
  107. package/fy-input-number/index.mjs +9 -10
  108. package/fy-input-table/index.mjs +18 -22
  109. package/fy-input-tree/index.mjs +33 -37
  110. package/fy-progress/index.mjs +9 -10
  111. package/fy-radio/index.mjs +15 -16
  112. package/fy-rate/index.mjs +10 -11
  113. package/fy-select/index.mjs +25 -29
  114. package/fy-slider/index.mjs +11 -12
  115. package/fy-switch/index.mjs +9 -10
  116. package/fy-tabs/index.mjs +15 -17
  117. package/fy-time/index.mjs +1 -1
  118. package/fy-title/index.mjs +1 -1
  119. package/fy-tree/index.mjs +18 -24
  120. package/fy-u-editor/index.mjs +1 -1
  121. package/fy-upload/index.mjs +74 -76
  122. package/guide-steps/index.mjs +11 -13
  123. package/iframe-window/index.mjs +9 -10
  124. package/image-cropper/index.mjs +28 -30
  125. package/image-preview/index.mjs +12 -14
  126. package/index.mjs +72 -72
  127. package/input-number/index.mjs +13 -14
  128. package/input-number-range/index.mjs +11 -12
  129. package/license/index.mjs +1 -1
  130. package/login/index.mjs +21 -26
  131. package/nav-bar/index.mjs +9 -10
  132. package/notice/index.mjs +9 -10
  133. package/package.json +1 -1
  134. package/page-index/index.mjs +12 -13
  135. package/page-index-top/index.mjs +23 -28
  136. package/page-skeleton/index.mjs +14 -14
  137. package/page-skeleton-new/index.mjs +8 -9
  138. package/pageable-table/index.mjs +172 -182
  139. package/pageable-view/index.mjs +15 -16
  140. package/picker-table-view/index.mjs +49 -58
  141. package/present-view/index.mjs +35 -39
  142. package/record-video/index.mjs +1 -1
  143. package/resize-observer/index.mjs +1 -1
  144. package/search/index.mjs +20 -22
  145. package/search-popover/index.mjs +1 -1
  146. package/sign/index.mjs +1 -1
  147. package/skeleton-panel/index.mjs +9 -10
  148. package/split-pane/index.mjs +36 -37
  149. package/static-pageable-table/index.mjs +11 -13
  150. package/sub-table/index.mjs +36 -49
  151. package/sub-table-plus/index.mjs +229 -18
  152. package/swiper/index.mjs +11 -12
  153. package/table-column/index.mjs +223 -3
  154. package/table-view/index.mjs +52 -60
  155. package/tabs-view/index.mjs +17 -19
  156. package/tag-render/index.mjs +16 -18
  157. package/text-ellipsis/index.mjs +9 -10
  158. package/toolbar/index.mjs +13 -14
  159. package/toolbar-button/index.mjs +13 -14
  160. package/verify/index.mjs +1 -1
  161. package/vue-cron/index.mjs +259 -267
  162. package/watermark/index.mjs +1 -1
  163. package/web-types.json +1 -1
  164. package/x-input-tag/index.mjs +21 -24
  165. package/chunks/FormItem.Bhsy_O2B.mjs +0 -372
  166. package/chunks/FyForm.DriwCJ7b.mjs +0 -765
  167. package/chunks/SignalAndMessage.BpjOoKhK.mjs +0 -92
  168. package/chunks/SubTablePlus.BH0IIv3X.mjs +0 -270
  169. package/chunks/TableColumn.BzivvXMF.mjs +0 -337
@@ -1,7 +1,5 @@
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 = {
1
+ import { n as d } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ const l = {
5
3
  name: "AddressInput",
6
4
  inject: {
7
5
  elForm: {
@@ -55,22 +53,22 @@ const i = {
55
53
  }
56
54
  }
57
55
  };
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);
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);
64
62
  }, expression: "internalVal.detailAddress" } })], 1)]);
65
- }, o = [], p = /* @__PURE__ */ l(
63
+ }, i = [], n = /* @__PURE__ */ d(
64
+ l,
65
+ r,
66
66
  i,
67
- n,
68
- o,
69
67
  !1,
70
68
  null,
71
69
  null
72
70
  );
73
- const _ = p.exports;
71
+ const p = n.exports;
74
72
  export {
75
- _ as default
73
+ p as default
76
74
  };
package/card/index.mjs CHANGED
@@ -1,11 +1,9 @@
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 = {
1
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ const n = {
5
3
  img: "img",
6
4
  title: "title",
7
5
  info: "info"
8
- }, u = {
6
+ }, o = {
9
7
  name: "Card",
10
8
  props: {
11
9
  option: {
@@ -19,7 +17,7 @@ const c = {
19
17
  },
20
18
  data() {
21
19
  return {
22
- propsDefault: c
20
+ propsDefault: n
23
21
  };
24
22
  },
25
23
  computed: {
@@ -43,29 +41,29 @@ const c = {
43
41
  rowAdd() {
44
42
  this.$emit("row-add");
45
43
  },
46
- rowClick(i, t) {
47
- this.$emit("row-click", i, t);
44
+ rowClick(e, t) {
45
+ this.$emit("row-click", e, t);
48
46
  }
49
47
  }
50
48
  };
51
- var _ = function() {
49
+ var l = function() {
52
50
  var t = this, a = t._self._c;
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) {
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) {
54
52
  return t.rowAdd();
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)])]);
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)])]);
59
57
  })], 2)], 1);
60
- }, p = [], l = /* @__PURE__ */ o(
61
- u,
62
- _,
63
- p,
58
+ }, c = [], u = /* @__PURE__ */ i(
59
+ o,
60
+ l,
61
+ c,
64
62
  !1,
65
63
  null,
66
64
  null
67
65
  );
68
- const C = l.exports;
66
+ const _ = u.exports;
69
67
  export {
70
- C as default
68
+ _ as default
71
69
  };
@@ -1,7 +1,5 @@
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 = {
1
+ import { n as r } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ const s = {
5
3
  name: "Carousel",
6
4
  props: {
7
5
  option: {
@@ -17,19 +15,19 @@ const i = {
17
15
  }
18
16
  };
19
17
  var l = function() {
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()])])]);
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()])])]);
23
21
  }), 1)], 1);
24
- }, u = [], _ = /* @__PURE__ */ s(
25
- i,
22
+ }, n = [], i = /* @__PURE__ */ r(
23
+ s,
26
24
  l,
27
- u,
25
+ n,
28
26
  !1,
29
27
  null,
30
28
  null
31
29
  );
32
- const f = _.exports;
30
+ const _ = i.exports;
33
31
  export {
34
- f as default
32
+ _ as default
35
33
  };
package/chat/index.mjs CHANGED
@@ -1,18 +1,7 @@
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 = {
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 = {
16
5
  name: "Chat",
17
6
  props: {
18
7
  beforeOpen: Function,
@@ -91,12 +80,12 @@ const w = {
91
80
  },
92
81
  heightStyleName() {
93
82
  return {
94
- height: u(this.height)
83
+ height: l(this.height)
95
84
  };
96
85
  },
97
86
  widthStyleName() {
98
87
  return {
99
- width: u(this.width)
88
+ width: l(this.width)
100
89
  };
101
90
  },
102
91
  msgActive() {
@@ -127,32 +116,32 @@ const w = {
127
116
  getNotification(s) {
128
117
  const t = this, e = Notification || window.Notification;
129
118
  if (e) {
130
- let n = function() {
131
- e.requestPermission((a) => {
132
- a === "granted" ? o() : console.log("用户无情残忍的拒绝了你!!!");
119
+ let a = function() {
120
+ e.requestPermission((n) => {
121
+ n === "granted" ? o() : console.log("用户无情残忍的拒绝了你!!!");
133
122
  });
134
123
  }, o = function() {
135
- const a = new Notification(t.config.name, {
124
+ const n = new Notification(t.config.name, {
136
125
  body: s,
137
126
  icon: t.config.img
138
127
  });
139
- a.onshow = function() {
128
+ n.onshow = function() {
140
129
  t.getAudio(), setTimeout(() => {
141
- a.close();
130
+ n.close();
142
131
  }, 2500);
143
- }, a.onclick = function() {
144
- a.close();
132
+ }, n.onclick = function() {
133
+ n.close();
145
134
  };
146
135
  };
147
136
  const i = e.permission;
148
- i === "granted" ? o() : i === "denied" ? console.log("用户拒绝了你!!!") : n();
137
+ i === "granted" ? o() : i === "denied" ? console.log("用户拒绝了你!!!") : a();
149
138
  }
150
139
  },
151
140
  // mine为'我'的对话
152
141
  // text为内容
153
142
  pushMsg(s = {}) {
154
- const t = s.mine === !0, e = s.text || {}, n = {
155
- date: s.date || b(Date.now(), "YYYY-MM-DD HH:mm:ss"),
143
+ const t = s.mine === !0, e = s.text || {}, a = {
144
+ date: s.date || r(Date.now(), "YYYY-MM-DD HH:mm:ss"),
156
145
  text: typeof e != "object" ? {
157
146
  text: e
158
147
  } : e,
@@ -160,7 +149,7 @@ const w = {
160
149
  img: t ? this.config.myImg : this.config.img,
161
150
  name: t ? this.config.myName : this.config.name
162
151
  };
163
- this.list.push(n), setTimeout(() => {
152
+ this.list.push(a), setTimeout(() => {
164
153
  this.setScroll();
165
154
  }, 50);
166
155
  },
@@ -182,8 +171,8 @@ const w = {
182
171
  const t = s;
183
172
  return setTimeout(() => {
184
173
  (this.$refs.content || []).forEach((i) => {
185
- for (let n = 0; n < i.children.length; n++) {
186
- const o = i.children[n];
174
+ for (let a = 0; a < i.children.length; a++) {
175
+ const o = i.children[a];
187
176
  o.getAttribute("data-flag") !== "0" && (o.setAttribute("data-flag", 0), o.onclick = () => {
188
177
  this.handleEvent(o.dataset);
189
178
  }, 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(
@@ -194,7 +183,7 @@ const w = {
194
183
  }, 0), t;
195
184
  },
196
185
  getDetail(s = {}) {
197
- const { type: t, src: e, name: i, longitude: n, latitude: o, address: a } = s;
186
+ const { type: t, src: e, name: i, longitude: a, latitude: o, address: n } = s;
198
187
  if (t === "img")
199
188
  return `<img data-type="IMG" data-src="${e}" alt=""/>`;
200
189
  if (t === "video")
@@ -204,7 +193,7 @@ const w = {
204
193
  if (t === "file")
205
194
  return `<file data-type="FILE" data-name="${i}" data-src="${e}"></file>`;
206
195
  if (t === "map")
207
- return `<map data-type="MAP" data-src="${e}" data-address="${a} " data-latitude="${o}" data-longitude="${n}"></map>`;
196
+ return `<map data-type="MAP" data-src="${e}" data-address="${n} " data-latitude="${o}" data-longitude="${a}"></map>`;
208
197
  },
209
198
  // 处理事件
210
199
  handleEvent(s) {
@@ -220,13 +209,13 @@ const w = {
220
209
  }
221
210
  }
222
211
  };
223
- var x = function() {
212
+ var u = function() {
224
213
  var t = this, e = t._self._c;
225
214
  return e("div", { staticClass: "avue-chat", style: t.heightStyleName, on: { keyup: function(i) {
226
215
  return !i.type.indexOf("key") && t._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : t.handleSend.apply(null, arguments);
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($) {
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) {
230
219
  return t.handleItemMsg(o);
231
220
  } } }, [t._v(" " + t._s(o.text) + " ")]);
232
221
  }), 0)])]);
@@ -238,40 +227,40 @@ var x = function() {
238
227
  return t.handleUpload("file");
239
228
  } } }) : 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) {
240
229
  i.target.composing || (t.msg = i.target.value);
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" } })];
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" } })];
244
233
  }, proxy: !0 }]), model: { value: t.visible, callback: function(i) {
245
234
  t.visible = 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) {
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) {
247
236
  t.keys = i;
248
- }, expression: "keys" } }), e("div", { staticStyle: { margin: "0", "text-align": "right" } }, [e(l, { attrs: { size: "mini", type: "text" }, on: { click: function(i) {
237
+ }, expression: "keys" } }), e("div", { staticStyle: { margin: "0", "text-align": "right" } }, [e("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(i) {
249
238
  t.visible = !1;
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) {
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) {
252
241
  return t.sendKey(i);
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);
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);
254
243
  }), 1)], 1)];
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) {
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) {
256
245
  return t.$set(t.upload, "box", i);
257
246
  } }, scopedSlots: t._u([{ key: "footer", fn: function() {
258
- return [e(l, { attrs: { size: "small" }, on: { click: function(i) {
247
+ return [e("ElButton", { attrs: { size: "small" }, on: { click: function(i) {
259
248
  t.upload.box = !1;
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) {
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) {
262
251
  t.$set(t.upload, "src", 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) {
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) {
264
253
  t.show = i;
265
254
  } } }, [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()]);
266
- }, S = [], k = /* @__PURE__ */ v(
267
- w,
268
- x,
269
- S,
255
+ }, f = [], m = /* @__PURE__ */ c(
256
+ d,
257
+ u,
258
+ f,
270
259
  !1,
271
260
  null,
272
261
  null
273
262
  );
274
- const H = k.exports;
263
+ const y = m.exports;
275
264
  export {
276
- H as default
265
+ y as default
277
266
  };