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