@web-utils/component 2.70.0 → 3.0.1
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 +16 -14
- package/awesome-button/index.mjs +30 -29
- package/card/index.mjs +42 -40
- package/carousel/index.mjs +27 -25
- package/chat/index.mjs +70 -59
- package/chunk-file-uploader/index.mjs +594 -35
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/CountUp.f1a19f35.mjs +124 -0
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
- package/chunks/ElementDialog.d8f3105c.mjs +211 -0
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
- package/chunks/EmptyView.e2430422.mjs +51 -0
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
- package/chunks/FormItem.2920ac0c.mjs +45 -0
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
- package/chunks/FormItemGroup.41daddb6.mjs +64 -0
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
- package/chunks/FyCurd.8acd2983.mjs +548 -0
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
- package/chunks/FyForm.0294e494.mjs +439 -0
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
- package/chunks/IconTemp.42c48e1f.mjs +32 -0
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
- package/chunks/Page.81f4b8d9.mjs +32 -0
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
- package/chunks/PageableTable.333cbdc1.mjs +335 -0
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
- package/chunks/ResizeObserver.60f728f0.mjs +54 -0
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
- package/chunks/TableColumn.8503272e.mjs +106 -0
- package/chunks/Toolbar.5c539dbb.mjs +24 -0
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
- package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
- package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
- package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
- package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
- package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
- package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
- package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
- package/color-picker/index.mjs +200 -32
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/count-up/index.mjs +14 -17
- package/data-box/index.mjs +36 -33
- package/data-card/index.mjs +35 -33
- package/data-cardtext/index.mjs +29 -27
- package/data-display/index.mjs +37 -34
- package/data-icons/index.mjs +32 -29
- package/data-imgtext/index.mjs +30 -27
- package/data-operatext/index.mjs +41 -39
- package/data-panel/index.mjs +39 -36
- package/data-pay/index.mjs +26 -22
- package/data-price/index.mjs +34 -32
- package/data-progress/index.mjs +32 -28
- package/data-rotate/index.mjs +38 -35
- package/data-table-picker/index.mjs +25 -22
- package/data-tabs/index.mjs +35 -32
- package/dialog-form/index.mjs +41 -32
- package/dynamic-table/index.mjs +47 -42
- package/easy-popup/index.mjs +29 -56
- package/editable-progress/index.mjs +16 -14
- package/editable-tree/index.mjs +129 -476
- package/egd-collapse-item/index.mjs +1 -2
- package/element-dialog/index.mjs +37 -126
- package/empty-view/index.mjs +13 -31
- 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 +105 -40
- package/flow-designer/index.mjs +1190 -1114
- package/flow-node/index.mjs +15 -47
- package/flow-viewer/index.mjs +167 -78
- package/form-block/index.mjs +24 -22
- package/form-cascader/index.mjs +29 -29
- package/form-checkbox-group/index.mjs +76 -31
- package/form-date-picker/index.mjs +21 -20
- package/form-holder/index.mjs +16 -15
- package/form-input/index.mjs +30 -88
- package/form-input-email/index.mjs +28 -28
- package/form-input-id-card/index.mjs +37 -37
- package/form-input-number/index.mjs +219 -59
- package/form-input-phone-number/index.mjs +25 -25
- package/form-input-tag/index.mjs +160 -38
- package/form-input-time/index.mjs +23 -23
- package/form-item/index.mjs +15 -144
- package/form-item-group/index.mjs +15 -163
- package/form-radio-group/index.mjs +39 -38
- package/form-select/index.mjs +33 -32
- package/form-switch/index.mjs +26 -26
- package/form-textarea/index.mjs +26 -26
- package/form-view/index.mjs +46 -42
- package/fy-array/index.mjs +65 -61
- package/fy-cascader/index.mjs +14 -13
- package/fy-checkbox/index.mjs +37 -32
- package/fy-code/index.mjs +11 -14
- package/fy-curd/index.mjs +206 -2795
- package/fy-date/index.mjs +16 -57
- package/fy-draggable/index.mjs +21 -20
- package/fy-dynamic/index.mjs +64 -207
- package/fy-empty/index.mjs +12 -29
- package/fy-form/index.mjs +178 -732
- package/fy-form-design/index.mjs +1738 -1179
- package/fy-input/index.mjs +15 -101
- package/fy-input-color/index.mjs +17 -66
- package/fy-input-icon/index.mjs +21 -116
- package/fy-input-map/index.mjs +27 -24
- package/fy-input-number/index.mjs +23 -22
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +32 -28
- package/fy-progress/index.mjs +24 -23
- package/fy-radio/index.mjs +23 -18
- package/fy-rate/index.mjs +16 -49
- package/fy-select/index.mjs +29 -122
- package/fy-slider/index.mjs +18 -17
- package/fy-switch/index.mjs +21 -20
- package/fy-tabs/index.mjs +14 -48
- package/fy-time/index.mjs +20 -14
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +26 -20
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +24 -22
- package/highlight-j-s/index.mjs +19 -29
- package/icon-temp/index.mjs +12 -30
- package/iframe-window/index.mjs +19 -18
- package/image-cropper/index.mjs +53 -51
- package/image-preview/index.mjs +27 -25
- package/input-number/index.mjs +63 -172
- package/input-number-range/index.mjs +24 -23
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +15 -33
- package/login/index.mjs +40 -35
- package/nav-bar/index.mjs +15 -30
- package/notice/index.mjs +19 -18
- package/package.json +1 -1
- package/page/index.mjs +12 -20
- package/page-header/index.mjs +13 -34
- package/page-index/index.mjs +34 -33
- package/page-index-top/index.mjs +100 -51
- package/page-skeleton/index.mjs +18 -35
- package/page-skeleton-new/index.mjs +16 -15
- package/pageable-table/index.mjs +85 -223
- package/pageable-view/index.mjs +34 -33
- package/present-view/index.mjs +75 -71
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +21 -29
- package/search/index.mjs +29 -27
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +40 -45
- package/static-pageable-table/index.mjs +20 -18
- package/swiper/index.mjs +27 -25
- package/table-view/index.mjs +627 -89
- package/tag-render/index.mjs +21 -19
- package/text-ellipsis/index.mjs +13 -12
- package/tinymce-editor/index.mjs +73 -72
- package/toolbar/index.mjs +15 -208
- package/toolbar-button/index.mjs +32 -57
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +112 -104
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +51 -117
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- package/chunks/confirmable-mixin.817b542f.mjs +0 -116
- package/chunks/form-input-mixin.4632ad36.mjs +0 -24
- package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
- package/chunks/input-number-mixin.41a066be.mjs +0 -60
package/chat/index.mjs
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import { formatDate as
|
|
2
|
-
import { s as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { formatDate as f } from "@web-utils/integrations/dayjs";
|
|
2
|
+
import { s as r } from "../chunks/util.7844e2c2.mjs";
|
|
3
|
+
import { _ as c } from "../chunks/ElementDialog.d8f3105c.mjs";
|
|
4
|
+
import d from "element-ui/lib/input";
|
|
5
|
+
import p from "element-ui/lib/form-item";
|
|
6
|
+
import _ from "element-ui/lib/form";
|
|
7
|
+
import l from "element-ui/lib/button";
|
|
8
|
+
import h from "element-ui/lib/tooltip";
|
|
9
|
+
import u from "element-ui/lib/dropdown-item";
|
|
10
|
+
import g from "element-ui/lib/scrollbar";
|
|
11
|
+
import y from "element-ui/lib/popover";
|
|
12
|
+
import v from "element-ui/lib/dropdown-menu";
|
|
13
|
+
import b from "element-ui/lib/dropdown";
|
|
14
|
+
import { n as w } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
15
|
+
var x = function() {
|
|
5
16
|
var t = this, o = t.$createElement, e = t._self._c || o;
|
|
6
17
|
return e("div", {
|
|
7
18
|
staticClass: "avue-chat",
|
|
@@ -49,9 +60,9 @@ var u = function() {
|
|
|
49
60
|
}, [e("div", {
|
|
50
61
|
ref: "main",
|
|
51
62
|
staticClass: "web__main"
|
|
52
|
-
}, t._l(t.list, function(i,
|
|
63
|
+
}, t._l(t.list, function(i, n) {
|
|
53
64
|
return e("div", {
|
|
54
|
-
key:
|
|
65
|
+
key: n,
|
|
55
66
|
staticClass: "web__main-item",
|
|
56
67
|
class: {
|
|
57
68
|
"web__main-item--mine": i.mine
|
|
@@ -75,11 +86,11 @@ var u = function() {
|
|
|
75
86
|
}
|
|
76
87
|
}), i.text.list ? t._e() : e("ul", {
|
|
77
88
|
staticClass: "web__main-list"
|
|
78
|
-
}, t._l(i.text.list, function(s,
|
|
89
|
+
}, t._l(i.text.list, function(s, a) {
|
|
79
90
|
return e("li", {
|
|
80
|
-
key:
|
|
91
|
+
key: a,
|
|
81
92
|
on: {
|
|
82
|
-
click: function(
|
|
93
|
+
click: function(N) {
|
|
83
94
|
return t.handleItemMsg(s);
|
|
84
95
|
}
|
|
85
96
|
}
|
|
@@ -135,7 +146,7 @@ var u = function() {
|
|
|
135
146
|
}
|
|
136
147
|
}), e("div", {
|
|
137
148
|
staticClass: "web__msg-menu"
|
|
138
|
-
}, [e(
|
|
149
|
+
}, [e(b, {
|
|
139
150
|
staticClass: "web__msg-submit",
|
|
140
151
|
attrs: {
|
|
141
152
|
"split-button": "",
|
|
@@ -149,7 +160,7 @@ var u = function() {
|
|
|
149
160
|
scopedSlots: t._u([{
|
|
150
161
|
key: "dropdown",
|
|
151
162
|
fn: function() {
|
|
152
|
-
return [e(
|
|
163
|
+
return [e(v, [e(u, [e(y, {
|
|
153
164
|
attrs: {
|
|
154
165
|
placement: "top",
|
|
155
166
|
width: "160"
|
|
@@ -157,7 +168,7 @@ var u = function() {
|
|
|
157
168
|
scopedSlots: t._u([{
|
|
158
169
|
key: "reference",
|
|
159
170
|
fn: function() {
|
|
160
|
-
return [e(
|
|
171
|
+
return [e(l, {
|
|
161
172
|
attrs: {
|
|
162
173
|
type: "text",
|
|
163
174
|
icon: "el-icon-plus"
|
|
@@ -173,7 +184,7 @@ var u = function() {
|
|
|
173
184
|
},
|
|
174
185
|
expression: "visible"
|
|
175
186
|
}
|
|
176
|
-
}, [e(
|
|
187
|
+
}, [e(d, {
|
|
177
188
|
staticStyle: {
|
|
178
189
|
"margin-bottom": "10px"
|
|
179
190
|
},
|
|
@@ -197,7 +208,7 @@ var u = function() {
|
|
|
197
208
|
margin: "0",
|
|
198
209
|
"text-align": "right"
|
|
199
210
|
}
|
|
200
|
-
}, [e(
|
|
211
|
+
}, [e(l, {
|
|
201
212
|
attrs: {
|
|
202
213
|
size: "mini",
|
|
203
214
|
type: "text"
|
|
@@ -207,7 +218,7 @@ var u = function() {
|
|
|
207
218
|
t.visible = !1;
|
|
208
219
|
}
|
|
209
220
|
}
|
|
210
|
-
}, [t._v(" 取消 ")]), e(
|
|
221
|
+
}, [t._v(" 取消 ")]), e(l, {
|
|
211
222
|
attrs: {
|
|
212
223
|
type: "primary",
|
|
213
224
|
size: "mini"
|
|
@@ -215,19 +226,19 @@ var u = function() {
|
|
|
215
226
|
on: {
|
|
216
227
|
click: t.addKey
|
|
217
228
|
}
|
|
218
|
-
}, [t._v(" 确定 ")])], 1)], 1)], 1), e(
|
|
229
|
+
}, [t._v(" 确定 ")])], 1)], 1)], 1), e(g, {
|
|
219
230
|
staticStyle: {
|
|
220
231
|
height: "100px"
|
|
221
232
|
}
|
|
222
|
-
}, t._l(t.keylist, function(i,
|
|
223
|
-
return e(
|
|
224
|
-
key:
|
|
233
|
+
}, t._l(t.keylist, function(i, n) {
|
|
234
|
+
return e(u, {
|
|
235
|
+
key: n,
|
|
225
236
|
nativeOn: {
|
|
226
237
|
click: function(s) {
|
|
227
238
|
return t.sendKey(i);
|
|
228
239
|
}
|
|
229
240
|
}
|
|
230
|
-
}, [e(
|
|
241
|
+
}, [e(h, {
|
|
231
242
|
attrs: {
|
|
232
243
|
effect: "dark",
|
|
233
244
|
content: i,
|
|
@@ -238,7 +249,7 @@ var u = function() {
|
|
|
238
249
|
},
|
|
239
250
|
proxy: !0
|
|
240
251
|
}])
|
|
241
|
-
}, [t._v(" 发送 ")])], 1)])])]), t._t("default")], 2), t.upload.box ? e("div", [e(
|
|
252
|
+
}, [t._v(" 发送 ")])], 1)])])]), t._t("default")], 2), t.upload.box ? e("div", [e(c, {
|
|
242
253
|
attrs: {
|
|
243
254
|
title: t.upload.title,
|
|
244
255
|
"body-padding": !1,
|
|
@@ -253,7 +264,7 @@ var u = function() {
|
|
|
253
264
|
scopedSlots: t._u([{
|
|
254
265
|
key: "footer",
|
|
255
266
|
fn: function() {
|
|
256
|
-
return [e(
|
|
267
|
+
return [e(l, {
|
|
257
268
|
attrs: {
|
|
258
269
|
size: "small"
|
|
259
270
|
},
|
|
@@ -262,7 +273,7 @@ var u = function() {
|
|
|
262
273
|
t.upload.box = !1;
|
|
263
274
|
}
|
|
264
275
|
}
|
|
265
|
-
}, [t._v("取 消")]), e(
|
|
276
|
+
}, [t._v("取 消")]), e(l, {
|
|
266
277
|
attrs: {
|
|
267
278
|
type: "primary",
|
|
268
279
|
size: "small"
|
|
@@ -274,12 +285,12 @@ var u = function() {
|
|
|
274
285
|
},
|
|
275
286
|
proxy: !0
|
|
276
287
|
}], null, !1, 99567638)
|
|
277
|
-
}, [e(
|
|
288
|
+
}, [e(_, {
|
|
278
289
|
ref: "form",
|
|
279
290
|
attrs: {
|
|
280
291
|
model: t.upload
|
|
281
292
|
}
|
|
282
|
-
}, [e(
|
|
293
|
+
}, [e(p, {
|
|
283
294
|
attrs: {
|
|
284
295
|
prop: "src",
|
|
285
296
|
rules: [{
|
|
@@ -287,7 +298,7 @@ var u = function() {
|
|
|
287
298
|
message: "地址不能为空"
|
|
288
299
|
}]
|
|
289
300
|
}
|
|
290
|
-
}, [e(
|
|
301
|
+
}, [e(d, {
|
|
291
302
|
staticStyle: {
|
|
292
303
|
"margin-bottom": "10px"
|
|
293
304
|
},
|
|
@@ -306,7 +317,7 @@ var u = function() {
|
|
|
306
317
|
},
|
|
307
318
|
expression: "upload.src"
|
|
308
319
|
}
|
|
309
|
-
})], 1)], 1)], 1)], 1) : t._e(), t.show ? e("div", [e(
|
|
320
|
+
})], 1)], 1)], 1)], 1) : t._e(), t.show ? e("div", [e(c, {
|
|
310
321
|
staticClass: "web__dialog",
|
|
311
322
|
attrs: {
|
|
312
323
|
visible: t.show,
|
|
@@ -347,8 +358,8 @@ var u = function() {
|
|
|
347
358
|
controls: "controls"
|
|
348
359
|
}
|
|
349
360
|
}) : t._e()])], 1) : t._e()]);
|
|
350
|
-
},
|
|
351
|
-
const
|
|
361
|
+
}, S = [];
|
|
362
|
+
const k = {
|
|
352
363
|
name: "Chat",
|
|
353
364
|
props: {
|
|
354
365
|
beforeOpen: Function,
|
|
@@ -427,12 +438,12 @@ const m = {
|
|
|
427
438
|
},
|
|
428
439
|
heightStyleName() {
|
|
429
440
|
return {
|
|
430
|
-
height:
|
|
441
|
+
height: r(this.height)
|
|
431
442
|
};
|
|
432
443
|
},
|
|
433
444
|
widthStyleName() {
|
|
434
445
|
return {
|
|
435
|
-
width:
|
|
446
|
+
width: r(this.width)
|
|
436
447
|
};
|
|
437
448
|
},
|
|
438
449
|
msgActive() {
|
|
@@ -463,32 +474,32 @@ const m = {
|
|
|
463
474
|
getNotification(t) {
|
|
464
475
|
const o = this, e = Notification || window.Notification;
|
|
465
476
|
if (e) {
|
|
466
|
-
let
|
|
467
|
-
e.requestPermission(function(
|
|
468
|
-
|
|
477
|
+
let n = function() {
|
|
478
|
+
e.requestPermission(function(a) {
|
|
479
|
+
a === "granted" ? s() : console.log("用户无情残忍的拒绝了你!!!");
|
|
469
480
|
});
|
|
470
481
|
}, s = function() {
|
|
471
|
-
const
|
|
482
|
+
const a = new Notification(o.config.name, {
|
|
472
483
|
body: t,
|
|
473
484
|
icon: o.config.img
|
|
474
485
|
});
|
|
475
|
-
|
|
486
|
+
a.onshow = function() {
|
|
476
487
|
o.getAudio(), setTimeout(() => {
|
|
477
|
-
|
|
488
|
+
a.close();
|
|
478
489
|
}, 2500);
|
|
479
|
-
},
|
|
480
|
-
|
|
490
|
+
}, a.onclick = function() {
|
|
491
|
+
a.close();
|
|
481
492
|
};
|
|
482
493
|
};
|
|
483
494
|
const i = e.permission;
|
|
484
|
-
i === "granted" ? s() : i === "denied" ? console.log("用户拒绝了你!!!") :
|
|
495
|
+
i === "granted" ? s() : i === "denied" ? console.log("用户拒绝了你!!!") : n();
|
|
485
496
|
}
|
|
486
497
|
},
|
|
487
498
|
// mine为'我'的对话
|
|
488
499
|
// text为内容
|
|
489
500
|
pushMsg(t = {}) {
|
|
490
|
-
const o = t.mine === !0, e = t.text || {},
|
|
491
|
-
date: t.date ||
|
|
501
|
+
const o = t.mine === !0, e = t.text || {}, n = {
|
|
502
|
+
date: t.date || f(Date.now(), "YYYY-MM-DD HH:mm:ss"),
|
|
492
503
|
text: (() => typeof e != "object" ? {
|
|
493
504
|
text: e
|
|
494
505
|
} : e)(),
|
|
@@ -496,7 +507,7 @@ const m = {
|
|
|
496
507
|
img: o ? this.config.myImg : this.config.img,
|
|
497
508
|
name: o ? this.config.myName : this.config.name
|
|
498
509
|
};
|
|
499
|
-
this.list.push(
|
|
510
|
+
this.list.push(n), setTimeout(() => {
|
|
500
511
|
this.setScroll();
|
|
501
512
|
}, 50);
|
|
502
513
|
},
|
|
@@ -518,8 +529,8 @@ const m = {
|
|
|
518
529
|
const o = t;
|
|
519
530
|
return setTimeout(() => {
|
|
520
531
|
(this.$refs.content || []).forEach((i) => {
|
|
521
|
-
for (let
|
|
522
|
-
const s = i.children[
|
|
532
|
+
for (let n = 0; n < i.children.length; n++) {
|
|
533
|
+
const s = i.children[n];
|
|
523
534
|
s.getAttribute("data-flag") !== "0" && (s.setAttribute("data-flag", 0), s.onclick = () => {
|
|
524
535
|
this.handleEvent(s.dataset);
|
|
525
536
|
}, s.tagName === "IMG" ? (s.className = "web__msg--img", s.src = s.getAttribute("data-src")) : s.tagName === "VIDEO" ? (s.className = "web__msg--video", s.src = s.getAttribute("data-src")) : s.tagName === "AUDIO" ? (s.className = "web__msg--audio", s.controls = "controls", s.src = s.getAttribute("data-src")) : s.tagName === "FILE" ? (s.className = "web__msg--file", s.innerHTML = `<h2>File</h2><span>${s.getAttribute("data-name")}</span>`) : s.tagName === "MAP" && (s.className = "web__msg--file web__msg--map", s.innerHTML = `<h2>Map</h2><span>${s.getAttribute("data-longitude")} , ${s.getAttribute(
|
|
@@ -530,7 +541,7 @@ const m = {
|
|
|
530
541
|
}, 0), o;
|
|
531
542
|
},
|
|
532
543
|
getDetail(t = {}) {
|
|
533
|
-
const { type: o, src: e, name: i, longitude:
|
|
544
|
+
const { type: o, src: e, name: i, longitude: n, latitude: s, address: a } = t;
|
|
534
545
|
if (o === "img")
|
|
535
546
|
return `<img data-type="IMG" data-src="${e}" alt=""/>`;
|
|
536
547
|
if (o === "video")
|
|
@@ -540,7 +551,7 @@ const m = {
|
|
|
540
551
|
if (o === "file")
|
|
541
552
|
return `<file data-type="FILE" data-name="${i}" data-src="${e}"></file>`;
|
|
542
553
|
if (o === "map")
|
|
543
|
-
return `<map data-type="MAP" data-src="${e}" data-address="${
|
|
554
|
+
return `<map data-type="MAP" data-src="${e}" data-address="${a} " data-latitude="${s}" data-longitude="${n}"></map>`;
|
|
544
555
|
},
|
|
545
556
|
// 处理事件
|
|
546
557
|
handleEvent(t) {
|
|
@@ -555,24 +566,24 @@ const m = {
|
|
|
555
566
|
}), this.notice && this.getNotification(t.text || t);
|
|
556
567
|
}
|
|
557
568
|
}
|
|
558
|
-
},
|
|
559
|
-
var
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
569
|
+
}, m = {};
|
|
570
|
+
var $ = /* @__PURE__ */ w(
|
|
571
|
+
k,
|
|
572
|
+
x,
|
|
573
|
+
S,
|
|
563
574
|
!1,
|
|
564
|
-
|
|
575
|
+
C,
|
|
565
576
|
null,
|
|
566
577
|
null,
|
|
567
578
|
null
|
|
568
579
|
);
|
|
569
|
-
function
|
|
570
|
-
for (let o in
|
|
571
|
-
this[o] =
|
|
580
|
+
function C(t) {
|
|
581
|
+
for (let o in m)
|
|
582
|
+
this[o] = m[o];
|
|
572
583
|
}
|
|
573
|
-
const
|
|
574
|
-
return
|
|
584
|
+
const K = /* @__PURE__ */ function() {
|
|
585
|
+
return $.exports;
|
|
575
586
|
}();
|
|
576
587
|
export {
|
|
577
|
-
|
|
588
|
+
K as default
|
|
578
589
|
};
|