@web-utils/component 4.0.13 → 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.
- package/address-input/index.mjs +15 -13
- package/card/index.mjs +20 -18
- package/carousel/index.mjs +12 -10
- package/chat/index.mjs +56 -45
- package/chunk-file-uploader/index.mjs +378 -36
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
- package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
- package/chunks/FyForm.DriwCJ7b.mjs +765 -0
- package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
- package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
- package/chunks/TableColumn.BzivvXMF.mjs +337 -0
- package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
- package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
- package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
- package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
- package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
- package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
- package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
- package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
- package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
- package/color-picker/index.mjs +101 -22
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +15 -12
- package/data-card/index.mjs +12 -10
- package/data-card-text/index.mjs +12 -10
- package/data-display/index.mjs +17 -15
- package/data-icons/index.mjs +16 -13
- package/data-imgtext/index.mjs +18 -15
- package/data-operatext/index.mjs +16 -14
- package/data-panel/index.mjs +16 -13
- package/data-pay/index.mjs +20 -16
- package/data-price/index.mjs +16 -14
- package/data-progress/index.mjs +17 -13
- package/data-rotate/index.mjs +15 -12
- package/data-table-picker/index.mjs +18 -15
- package/data-tabs/index.mjs +15 -12
- package/dialog-form/index.mjs +18 -16
- package/dynamic-table/index.mjs +30 -25
- package/editable-progress/index.mjs +11 -9
- package/editable-tree/index.mjs +56 -52
- package/egd-collapse-item/index.mjs +9 -9
- package/element-dialog/index.mjs +23 -22
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +11 -10
- package/flow-designer/index.mjs +1973 -699
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +9 -9
- package/form-block/index.mjs +34 -32
- package/form-cascader/index.mjs +24 -23
- package/form-checkbox/index.mjs +17 -16
- package/form-checkbox-group/index.mjs +23 -20
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.mjs +20 -18
- package/form-holder/index.mjs +14 -13
- package/form-input/index.mjs +15 -14
- package/form-input-cron-expression/index.mjs +22 -19
- package/form-input-email/index.mjs +16 -15
- package/form-input-id-card/index.mjs +13 -12
- package/form-input-number/index.mjs +17 -16
- package/form-input-phone-number/index.mjs +22 -21
- package/form-input-tag/index.mjs +15 -14
- package/form-input-time/index.mjs +15 -14
- package/form-item/index.mjs +3 -140
- package/form-item-group/index.mjs +31 -28
- package/form-radio-group/index.mjs +28 -27
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +23 -21
- package/form-switch/index.mjs +17 -16
- package/form-table/index.mjs +17 -16
- package/form-table-plus/index.mjs +22 -21
- package/form-textarea/index.mjs +16 -15
- package/form-tree-select/index.mjs +15 -14
- package/form-tree-select-multiple/index.mjs +15 -14
- package/form-view/index.mjs +39 -35
- package/fy-array/index.mjs +37 -33
- package/fy-cascader/index.mjs +17 -16
- package/fy-checkbox/index.mjs +13 -11
- package/fy-code/index.mjs +10 -10
- package/fy-curd/index.mjs +1147 -1123
- package/fy-date/index.mjs +11 -10
- package/fy-draggable/index.mjs +10 -9
- package/fy-dynamic/index.mjs +25 -22
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +15 -638
- package/fy-form-design/index.mjs +1165 -1127
- package/fy-input/index.mjs +14 -12
- package/fy-input-color/index.mjs +15 -13
- package/fy-input-icon/index.mjs +23 -20
- package/fy-input-map/index.mjs +31 -28
- package/fy-input-number/index.mjs +10 -9
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +37 -33
- package/fy-progress/index.mjs +10 -9
- package/fy-radio/index.mjs +16 -15
- package/fy-rate/index.mjs +11 -10
- package/fy-select/index.mjs +29 -25
- package/fy-slider/index.mjs +12 -11
- package/fy-switch/index.mjs +10 -9
- package/fy-tabs/index.mjs +17 -15
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +24 -18
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +13 -11
- package/iframe-window/index.mjs +10 -9
- package/image-cropper/index.mjs +30 -28
- package/image-preview/index.mjs +14 -12
- package/index.mjs +72 -72
- package/input-number/index.mjs +14 -13
- package/input-number-range/index.mjs +12 -11
- package/license/index.mjs +1 -1
- package/login/index.mjs +26 -21
- package/nav-bar/index.mjs +10 -9
- package/notice/index.mjs +10 -9
- package/package.json +1 -1
- package/page-index/index.mjs +13 -12
- package/page-index-top/index.mjs +28 -23
- package/page-skeleton/index.mjs +14 -14
- package/page-skeleton-new/index.mjs +9 -8
- package/pageable-table/index.mjs +182 -172
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +16 -15
- package/picker-table-view/index.mjs +58 -49
- package/present-view/index.mjs +39 -35
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +22 -20
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/skeleton-panel/index.mjs +10 -9
- package/split-pane/index.mjs +37 -36
- package/static-pageable-table/index.mjs +13 -11
- package/sub-table/index.mjs +49 -36
- package/sub-table-plus/index.mjs +18 -229
- package/swiper/index.mjs +12 -11
- package/table-column/index.mjs +3 -223
- package/table-view/index.mjs +60 -52
- package/tabs-view/index.mjs +19 -17
- package/tag-render/index.mjs +18 -16
- package/text-ellipsis/index.mjs +10 -9
- package/toolbar/index.mjs +14 -13
- package/toolbar-button/index.mjs +14 -13
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +267 -259
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +24 -21
- package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
- package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
- package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
- package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
- package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
- package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
- package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
- package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
- package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
- package/chunks/core.0Exl13Mz.mjs +0 -54
- package/chunks/dictionary.DGt59Ir7.mjs +0 -68
- package/chunks/form-item.LWjePsPa.mjs +0 -233
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
- package/chunks/utilSelf.Csq1766E.mjs +0 -48
- package/chunks/utils.DRcxC1Fb.mjs +0 -60
- package/element-listeners/style.css +0 -1
- package/element-multi-instance/style.css +0 -1
package/address-input/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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
|
|
57
|
-
var e = this,
|
|
58
|
-
return
|
|
59
|
-
e.$set(e.internalVal, "address",
|
|
60
|
-
}, expression: "internalVal.address" } })], 1),
|
|
61
|
-
e.$set(e.internalVal, "detailAddress",
|
|
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
|
-
},
|
|
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
|
|
73
|
+
const _ = p.exports;
|
|
72
74
|
export {
|
|
73
|
-
|
|
75
|
+
_ as default
|
|
74
76
|
};
|
package/card/index.mjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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
|
-
},
|
|
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:
|
|
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(
|
|
45
|
-
this.$emit("row-click",
|
|
46
|
+
rowClick(i, t) {
|
|
47
|
+
this.$emit("row-click", i, t);
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
50
|
};
|
|
49
|
-
var
|
|
51
|
+
var _ = function() {
|
|
50
52
|
var t = this, a = t._self._c;
|
|
51
|
-
return a("div", { staticClass: "avue-card" }, [a(
|
|
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(
|
|
54
|
-
return a(
|
|
55
|
-
return t.rowClick(
|
|
56
|
-
} } }, [a("div", { staticClass: "avue-card__body" }, [a("div", { staticClass: "avue-card__avatar" }, [a("img", { attrs: { src:
|
|
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
|
-
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
}, p = [], l = /* @__PURE__ */ o(
|
|
61
|
+
u,
|
|
62
|
+
_,
|
|
63
|
+
p,
|
|
62
64
|
!1,
|
|
63
65
|
null,
|
|
64
66
|
null
|
|
65
67
|
);
|
|
66
|
-
const
|
|
68
|
+
const C = l.exports;
|
|
67
69
|
export {
|
|
68
|
-
|
|
70
|
+
C as default
|
|
69
71
|
};
|
package/carousel/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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,
|
|
19
|
-
return
|
|
20
|
-
return
|
|
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
|
-
},
|
|
23
|
-
|
|
24
|
+
}, u = [], _ = /* @__PURE__ */ s(
|
|
25
|
+
i,
|
|
24
26
|
l,
|
|
25
|
-
|
|
27
|
+
u,
|
|
26
28
|
!1,
|
|
27
29
|
null,
|
|
28
30
|
null
|
|
29
31
|
);
|
|
30
|
-
const
|
|
32
|
+
const f = _.exports;
|
|
31
33
|
export {
|
|
32
|
-
|
|
34
|
+
f as default
|
|
33
35
|
};
|
package/chat/index.mjs
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
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:
|
|
94
|
+
height: u(this.height)
|
|
84
95
|
};
|
|
85
96
|
},
|
|
86
97
|
widthStyleName() {
|
|
87
98
|
return {
|
|
88
|
-
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
|
|
120
|
-
e.requestPermission((
|
|
121
|
-
|
|
130
|
+
let n = function() {
|
|
131
|
+
e.requestPermission((a) => {
|
|
132
|
+
a === "granted" ? o() : console.log("用户无情残忍的拒绝了你!!!");
|
|
122
133
|
});
|
|
123
134
|
}, o = function() {
|
|
124
|
-
const
|
|
135
|
+
const a = new Notification(t.config.name, {
|
|
125
136
|
body: s,
|
|
126
137
|
icon: t.config.img
|
|
127
138
|
});
|
|
128
|
-
|
|
139
|
+
a.onshow = function() {
|
|
129
140
|
t.getAudio(), setTimeout(() => {
|
|
130
|
-
|
|
141
|
+
a.close();
|
|
131
142
|
}, 2500);
|
|
132
|
-
},
|
|
133
|
-
|
|
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("用户拒绝了你!!!") :
|
|
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 || {},
|
|
144
|
-
date: s.date ||
|
|
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(
|
|
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
|
|
175
|
-
const o = i.children[
|
|
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:
|
|
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="${
|
|
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
|
|
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,
|
|
217
|
-
return e("div", { key:
|
|
218
|
-
return e("li", { key:
|
|
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(
|
|
231
|
-
return [e(
|
|
232
|
-
return [e(
|
|
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(
|
|
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(
|
|
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(
|
|
240
|
-
return e(
|
|
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(
|
|
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(
|
|
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(
|
|
258
|
+
return [e(l, { attrs: { size: "small" }, on: { click: function(i) {
|
|
248
259
|
t.upload.box = !1;
|
|
249
|
-
} } }, [t._v("取 消")]), e(
|
|
250
|
-
}, proxy: !0 }], null, !1, 99567638) }, [e(
|
|
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(
|
|
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
|
-
},
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
266
|
+
}, S = [], k = /* @__PURE__ */ v(
|
|
267
|
+
w,
|
|
268
|
+
x,
|
|
269
|
+
S,
|
|
259
270
|
!1,
|
|
260
271
|
null,
|
|
261
272
|
null
|
|
262
273
|
);
|
|
263
|
-
const
|
|
274
|
+
const H = k.exports;
|
|
264
275
|
export {
|
|
265
|
-
|
|
276
|
+
H as default
|
|
266
277
|
};
|