@web-utils/component 2.0.14 → 2.7.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/dist/chunks/config.46422d7f.js +73 -0
- package/dist/chunks/{3a79781b.js → confirmable-mixin.3a79781b.js} +0 -0
- package/dist/chunks/dataformat.fb35ee10.js +61 -0
- package/dist/chunks/detail.a3249549.js +28 -0
- package/dist/chunks/dic.5f7e3523.js +132 -0
- package/dist/chunks/event.50c365eb.js +235 -0
- package/dist/chunks/{76680a03.js → form-input-mixin.ff5b58f7.js} +2 -2
- package/dist/chunks/{b4acd3a6.js → form-item-mixin.79f6eaff.js} +3 -1
- package/dist/chunks/{61ad06b2.js → form-pick-mixin.61ad06b2.js} +0 -0
- package/dist/chunks/init.352281f5.js +121 -0
- package/dist/chunks/{41a066be.js → input-number-mixin.41a066be.js} +0 -0
- package/dist/chunks/{5a78e0db.js → mixins.5a78e0db.js} +0 -0
- package/dist/chunks/packages.5d7a86c4.js +114 -0
- package/dist/chunks/permission.ce5d2121.js +16 -0
- package/dist/chunks/slot.1b8d2b1b.js +27 -0
- package/dist/chunks/{8c0142e0.js → tab-mixin.8c0142e0.js} +0 -0
- package/dist/chunks/util.5053d54e.js +264 -0
- package/dist/chunks/{97652d86.js → utils.97652d86.js} +0 -0
- package/dist/chunks/{f71045fc.js → utils.fa73de78.js} +1 -0
- package/dist/chunks/{5d4282fb.js → vueComponentNormalizer.71e2aa87.js} +3 -1
- package/dist/components/address-input/index.js +1 -1
- package/dist/components/affix/index.js +102 -0
- package/dist/components/affix/style.css +1 -0
- package/dist/components/array/index.js +156 -0
- package/dist/components/array/style.css +1 -0
- package/dist/components/article/index.js +93 -0
- package/dist/components/article/style.css +1 -0
- package/dist/components/aside-menu/index.js +1 -1
- package/dist/components/avatar/index.js +106 -0
- package/dist/components/avatar/style.css +1 -0
- package/dist/components/awesome-button/index.js +1 -1
- package/dist/components/base.css +1 -1
- package/dist/components/capsule-tab/index.js +1 -1
- package/dist/components/card/index.js +130 -0
- package/dist/components/card/style.css +1 -0
- package/dist/components/carousel/index.js +70 -0
- package/dist/components/carousel/style.css +1 -0
- package/dist/components/chat/index.js +567 -0
- package/dist/components/chat/style.css +1 -0
- package/dist/components/chunk-file-uploader/index.js +2 -2
- package/dist/components/chunk-file-uploader-button/index.js +2 -2
- package/dist/components/chunk-file-uploader-drop/index.js +2 -2
- package/dist/components/chunk-file-uploader-file/index.js +2 -2
- package/dist/components/chunk-file-uploader-files/index.js +2 -2
- package/dist/components/chunk-file-uploader-list/index.js +2 -2
- package/dist/components/chunk-file-uploader-un-support/index.js +2 -2
- package/dist/components/code/index.js +66 -0
- package/dist/components/code-mirror-editor/index.js +4 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/column/index.js +114 -0
- package/dist/components/column-default/index.js +105 -0
- package/dist/components/column-dynamic/index.js +93 -0
- package/dist/components/column-menu/index.js +286 -0
- package/dist/components/column-slot/index.js +265 -0
- package/dist/components/comment/index.js +94 -0
- package/dist/components/comment/style.css +1 -0
- package/dist/components/confirm-button/index.js +2 -2
- package/dist/components/confirmable/index.js +2 -2
- package/dist/components/context-menu/index.js +11 -1
- package/dist/components/count-up/index.js +120 -0
- package/dist/components/custom-scrollbar/index.js +2 -2
- package/dist/components/data-box/index.js +97 -0
- package/dist/components/data-box/style.css +1 -0
- package/dist/components/data-card/index.js +98 -0
- package/dist/components/data-card/style.css +1 -0
- package/dist/components/data-cardtext/index.js +82 -0
- package/dist/components/data-cardtext/style.css +1 -0
- package/dist/components/data-display/index.js +93 -0
- package/dist/components/data-display/style.css +1 -0
- package/dist/components/data-icons/index.js +104 -0
- package/dist/components/data-icons/style.css +1 -0
- package/dist/components/data-imgtext/index.js +106 -0
- package/dist/components/data-imgtext/style.css +1 -0
- package/dist/components/data-operatext/index.js +99 -0
- package/dist/components/data-operatext/style.css +1 -0
- package/dist/components/data-panel/index.js +93 -0
- package/dist/components/data-panel/style.css +1 -0
- package/dist/components/data-pay/index.js +149 -0
- package/dist/components/data-pay/style.css +1 -0
- package/dist/components/data-price/index.js +84 -0
- package/dist/components/data-price/style.css +1 -0
- package/dist/components/data-progress/index.js +97 -0
- package/dist/components/data-progress/style.css +1 -0
- package/dist/components/data-rotate/index.js +96 -0
- package/dist/components/data-rotate/style.css +1 -0
- package/dist/components/data-table-picker/index.js +2 -2
- package/dist/components/data-tabs/index.js +94 -0
- package/dist/components/data-tabs/style.css +1 -0
- package/dist/components/dialog-column/index.js +138 -0
- package/dist/components/dialog-excel/index.js +214 -0
- package/dist/components/dialog-filter/index.js +245 -0
- package/dist/components/dialog-form/index.js +275 -0
- package/dist/components/draggable/index.js +384 -0
- package/dist/components/draggable/style.css +1 -0
- package/dist/components/dynamic-table/index.js +1 -1
- package/dist/components/e-charts/index.js +7 -1
- package/dist/components/editable-progress/index.js +1 -1
- package/dist/components/editable-tree/index.js +2 -2
- package/dist/components/egd-collapse/index.js +1 -1
- package/dist/components/egd-collapse-item/index.js +1 -1
- package/dist/components/element-dialog/index.js +1 -1
- package/dist/components/empty/index.js +59 -0
- package/dist/components/empty/style.css +1 -0
- package/dist/components/empty-view/index.js +1 -1
- package/dist/components/error-view/index.js +1 -1
- package/dist/components/flex-column/index.js +2 -2
- package/dist/components/flex-item/index.js +2 -2
- package/dist/components/flex-row/index.js +2 -2
- package/dist/components/flex-scroller/index.js +1 -1
- package/dist/components/flow/index.js +278 -0
- package/dist/components/flow/style.css +1 -0
- package/dist/components/flow-node/index.js +102 -0
- package/dist/components/form-button/index.js +2 -2
- package/dist/components/form-cascader/index.js +4 -4
- package/dist/components/form-checkbox-group/index.js +4 -4
- package/dist/components/form-date-picker/index.js +4 -4
- package/dist/components/form-group/index.js +122 -0
- package/dist/components/form-group/style.css +1 -0
- package/dist/components/form-holder/index.js +23 -2
- package/dist/components/form-input/index.js +3 -3
- package/dist/components/form-input-email/index.js +3 -3
- package/dist/components/form-input-id-card/index.js +3 -3
- package/dist/components/form-input-number/index.js +4 -4
- package/dist/components/form-input-phone-number/index.js +3 -3
- package/dist/components/form-input-time/index.js +3 -3
- package/dist/components/form-item/index.js +2 -2
- package/dist/components/form-item-config-provider/index.js +1 -1
- package/dist/components/form-item-group/index.js +1 -1
- package/dist/components/form-radio-group/index.js +4 -4
- package/dist/components/form-select/index.js +4 -4
- package/dist/components/form-switch/index.js +3 -3
- package/dist/components/form-temp/index.js +149 -0
- package/dist/components/form-textarea/index.js +3 -3
- package/dist/components/form-view/index.js +1 -1
- package/dist/components/fy-cascader/index.js +132 -0
- package/dist/components/fy-checkbox/index.js +116 -0
- package/dist/components/fy-checkbox/style.css +1 -0
- package/dist/components/fy-curd/index.js +846 -0
- package/dist/components/fy-curd/style.css +1 -0
- package/dist/components/fy-date/index.js +84 -0
- package/dist/components/fy-date/style.css +1 -0
- package/dist/components/fy-dialog-form/index.js +278 -0
- package/dist/components/fy-dialog-form/style.css +1 -0
- package/dist/components/fy-dynamic/index.js +335 -0
- package/dist/components/fy-dynamic/style.css +1 -0
- package/dist/components/fy-form/index.js +754 -0
- package/dist/components/fy-form/style.css +1 -0
- package/dist/components/fy-form-menu/index.js +95 -0
- package/dist/components/fy-input/index.js +162 -0
- package/dist/components/fy-input-color/index.js +96 -0
- package/dist/components/fy-input-icon/index.js +161 -0
- package/dist/components/fy-input-icon/style.css +1 -0
- package/dist/components/fy-input-map/index.js +275 -0
- package/dist/components/fy-input-map/style.css +1 -0
- package/dist/components/fy-input-number/index.js +87 -0
- package/dist/components/fy-input-table/index.js +172 -0
- package/dist/components/fy-input-table/style.css +1 -0
- package/dist/components/fy-input-tree/index.js +265 -0
- package/dist/components/fy-input-tree/style.css +1 -0
- package/dist/components/fy-radio/index.js +68 -0
- package/dist/components/fy-radio/style.css +1 -0
- package/dist/components/fy-rate/index.js +105 -0
- package/dist/components/fy-rate/style.css +1 -0
- package/dist/components/fy-select/index.js +223 -0
- package/dist/components/fy-select/style.css +1 -0
- package/dist/components/fy-slider/index.js +79 -0
- package/dist/components/fy-switch/index.js +73 -0
- package/dist/components/fy-tabs/index.js +90 -0
- package/dist/components/fy-tabs/style.css +0 -0
- package/dist/components/fy-time/index.js +95 -0
- package/dist/components/fy-title/index.js +40 -0
- package/dist/components/fy-title/style.css +1 -0
- package/dist/components/fy-tree/index.js +427 -0
- package/dist/components/fy-tree/style.css +1 -0
- package/dist/components/fy-upload/index.js +704 -0
- package/dist/components/fy-upload/style.css +1 -0
- package/dist/components/guide-steps/index.js +1 -1
- package/dist/components/header-menu/index.js +238 -0
- package/dist/components/header-search/index.js +246 -0
- package/dist/components/icon-card/index.js +1 -1
- package/dist/components/icon-temp/index.js +50 -0
- package/dist/components/icon-temp/style.css +1 -0
- package/dist/components/iframe-window/index.js +1 -1
- package/dist/components/image-viewer/index.js +1 -1
- package/dist/components/input-number/index.js +2 -2
- package/dist/components/input-number-range/index.js +1 -1
- package/dist/components/keep-view-alive/index.js +6 -2
- package/dist/components/keyboard/index.js +389 -0
- package/dist/components/keyboard/style.css +1 -0
- package/dist/components/license/index.js +134 -0
- package/dist/components/loading-view/index.js +1 -1
- package/dist/components/login/index.js +244 -0
- package/dist/components/login/style.css +1 -0
- package/dist/components/name-avatar/index.js +66 -0
- package/dist/components/name-avatar/style.css +1 -0
- package/dist/components/nav-bar/index.js +1 -1
- package/dist/components/not-implement/index.js +1 -1
- package/dist/components/notice/index.js +143 -0
- package/dist/components/notice/style.css +1 -0
- package/dist/components/page/index.js +1 -1
- package/dist/components/page-header/index.js +1 -1
- package/dist/components/page-index/index.js +1 -1
- package/dist/components/page-index-top/index.js +1 -1
- package/dist/components/page-skeleton/index.js +1 -1
- package/dist/components/page-skeleton-new/index.js +1 -1
- package/dist/components/pageable-table/index.js +6 -2
- package/dist/components/pageable-view/index.js +7 -2
- package/dist/components/photo-swipe/index.js +7 -1
- package/dist/components/progress/index.js +60 -0
- package/dist/components/queue/index.js +76 -0
- package/dist/components/record-video/index.js +173 -0
- package/dist/components/record-video/style.css +1 -0
- package/dist/components/resize-observer/index.js +2 -2
- package/dist/components/search/index.js +142 -0
- package/dist/components/search/style.css +1 -0
- package/dist/components/search-popover/index.js +1 -1
- package/dist/components/sign/index.js +128 -0
- package/dist/components/sign/style.css +1 -0
- package/dist/components/sign-panel/index.js +14 -1
- package/dist/components/skeleton/index.js +82 -0
- package/dist/components/skeleton/style.css +1 -0
- package/dist/components/split-pane/index.js +7 -1
- package/dist/components/stateful/index.js +1 -1
- package/dist/components/static-pageable-table/index.js +1 -1
- package/dist/components/swiper/index.js +1 -1
- package/dist/components/tab/index.js +4 -2
- package/dist/components/tab-item/index.js +2 -2
- package/dist/components/table-column/index.js +1 -1
- package/dist/components/table-page/index.js +129 -0
- package/dist/components/table-view/index.js +2 -2
- package/dist/components/tag-render/index.js +1 -1
- package/dist/components/text-ellipsis/index.js +107 -0
- package/dist/components/text-ellipsis/style.css +1 -0
- package/dist/components/tinymce-editor/index.js +1 -1
- package/dist/components/tinymce-wrapper/index.js +1 -1
- package/dist/components/toolbar/index.js +1 -1
- package/dist/components/toolbar-button/index.js +1 -1
- package/dist/components/trigger/index.js +1 -1
- package/dist/components/verify/index.js +80 -0
- package/dist/components/verify/style.css +1 -0
- package/dist/components/vue-tags-input/index.js +115 -1
- package/dist/components/watermark/index.js +20 -2
- package/dist/index.css +4138 -755
- package/dist/index.es.js +21037 -6467
- package/package.json +20 -4
- package/web-types.json +12735 -2746
- package/dist/components/x-dialog/index.js +0 -173
- package/dist/components/x-dialog/style.css +0 -1
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { c as d } from "../../chunks/config.46422d7f.js";
|
|
2
|
+
import { k as l, c as o, o as r, u, n as a } from "../../chunks/util.5053d54e.js";
|
|
3
|
+
import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
|
+
var p = function() {
|
|
5
|
+
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
6
|
+
return t.boxVisible ? i("div", [i(t.dialogType, t._b({
|
|
7
|
+
tag: "Component",
|
|
8
|
+
class: ["avue-dialog", "avue-crud__dialog", {
|
|
9
|
+
"avue-dialog--fullscreen": t.fullscreen
|
|
10
|
+
}],
|
|
11
|
+
attrs: {
|
|
12
|
+
"lock-scroll": "",
|
|
13
|
+
"show-full-screen": "",
|
|
14
|
+
"destroy-on-close": t.crud.tableOption.dialogDestroy,
|
|
15
|
+
"wrapper-closable": t.crud.tableOption.dialogClickModal,
|
|
16
|
+
direction: t.direction,
|
|
17
|
+
"custom-class": t.crud.tableOption.dialogCustomClass,
|
|
18
|
+
"modal-append-to-body": "",
|
|
19
|
+
"append-to-body": "",
|
|
20
|
+
top: t.dialogTop,
|
|
21
|
+
title: t.dialogTitle,
|
|
22
|
+
"close-on-press-escape": t.crud.tableOption.dialogEscape,
|
|
23
|
+
"close-on-click-modal": t.optVal(t.crud.tableOption.dialogClickModal, !1),
|
|
24
|
+
modal: t.crud.tableOption.dialogModal,
|
|
25
|
+
"show-close": t.crud.tableOption.dialogCloseBtn,
|
|
26
|
+
visible: t.boxVisible,
|
|
27
|
+
"before-close": t.hide
|
|
28
|
+
},
|
|
29
|
+
on: {
|
|
30
|
+
"update:visible": function(s) {
|
|
31
|
+
t.boxVisible = s;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}, "Component", t.params, !1), [i("FyForm", t._b({
|
|
35
|
+
ref: "tableForm",
|
|
36
|
+
attrs: {
|
|
37
|
+
status: t.disabled,
|
|
38
|
+
option: t.option
|
|
39
|
+
},
|
|
40
|
+
on: {
|
|
41
|
+
"update:status": function(s) {
|
|
42
|
+
t.disabled = s;
|
|
43
|
+
},
|
|
44
|
+
change: t.handleChange,
|
|
45
|
+
submit: t.handleSubmit,
|
|
46
|
+
"reset-change": t.hide,
|
|
47
|
+
"tab-click": t.handleTabClick,
|
|
48
|
+
error: t.handleError
|
|
49
|
+
},
|
|
50
|
+
scopedSlots: t._u([t._l(t.crud.formSlot, function(s) {
|
|
51
|
+
return {
|
|
52
|
+
key: t.getSlotName(s),
|
|
53
|
+
fn: function(c) {
|
|
54
|
+
return [t._t(s, null, null, Object.assign(c, {
|
|
55
|
+
type: t.boxType
|
|
56
|
+
}))];
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
})], null, !0),
|
|
60
|
+
model: {
|
|
61
|
+
value: t.crud.tableForm,
|
|
62
|
+
callback: function(s) {
|
|
63
|
+
t.$set(t.crud, "tableForm", s);
|
|
64
|
+
},
|
|
65
|
+
expression: "crud.tableForm"
|
|
66
|
+
}
|
|
67
|
+
}, "FyForm", t.uploadFun({}, t.crud), !1)), i("span", {
|
|
68
|
+
staticClass: "avue-dialog__footer",
|
|
69
|
+
class: `avue-dialog__footer--${t.dialogMenuPosition}`
|
|
70
|
+
}, [t.optVal(t.option.submitBtn, !0) && !t.isView ? i("ElButton", {
|
|
71
|
+
attrs: {
|
|
72
|
+
disabled: t.disabled,
|
|
73
|
+
size: t.crud.controlSize,
|
|
74
|
+
icon: t.option.submitIcon,
|
|
75
|
+
type: "primary"
|
|
76
|
+
},
|
|
77
|
+
on: {
|
|
78
|
+
click: t.submit
|
|
79
|
+
}
|
|
80
|
+
}, [t._v(t._s(t.option.submitText))]) : t._e(), t.optVal(t.option.emptyBtn, !0) && !t.isView ? i("ElButton", {
|
|
81
|
+
attrs: {
|
|
82
|
+
disabled: t.disabled,
|
|
83
|
+
size: t.crud.controlSize,
|
|
84
|
+
icon: t.option.emptyIcon
|
|
85
|
+
},
|
|
86
|
+
on: {
|
|
87
|
+
click: t.reset
|
|
88
|
+
}
|
|
89
|
+
}, [t._v(t._s(t.option.emptyText))]) : t._e(), t._t("menuForm", null, {
|
|
90
|
+
disabled: t.disabled,
|
|
91
|
+
size: t.crud.controlSize,
|
|
92
|
+
type: t.boxType
|
|
93
|
+
})], 2)], 1)], 1) : t._e();
|
|
94
|
+
}, b = [];
|
|
95
|
+
const m = {
|
|
96
|
+
name: "DialogForm",
|
|
97
|
+
inject: ["crud"],
|
|
98
|
+
props: {
|
|
99
|
+
value: {
|
|
100
|
+
type: Object,
|
|
101
|
+
default: () => ({})
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
data() {
|
|
105
|
+
return {
|
|
106
|
+
disabled: !1,
|
|
107
|
+
boxType: "",
|
|
108
|
+
fullscreen: !1,
|
|
109
|
+
size: null,
|
|
110
|
+
boxVisible: !1
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
computed: {
|
|
114
|
+
option() {
|
|
115
|
+
const t = l(this.crud.tableOption);
|
|
116
|
+
return t.boxType = this.boxType, t.column = l(this.crud.propOption), t.menuBtn = !1, this.isAdd ? (t.submitBtn = t.saveBtn, t.submitText = this.crud.menuIcon("saveBtn"), t.submitIcon = this.crud.getBtnIcon("saveBtn")) : this.isEdit ? (t.submitBtn = t.updateBtn, t.submitText = this.crud.menuIcon("updateBtn"), t.submitIcon = this.crud.getBtnIcon("updateBtn")) : this.isView && (t.detail = !0), t.emptyBtn = t.cancelBtn, t.emptyText = this.crud.menuIcon("cancelBtn"), t.emptyIcon = this.crud.getBtnIcon("cancelBtn"), this.crud.isGroup || (t.dicFlag = !1, t.dicData = this.crud.DIC), o(t.dicFlag) || t.column.forEach((e) => {
|
|
117
|
+
e.boxType = this.boxType, e.dicFlag = e.dicFlag || t.dicFlag;
|
|
118
|
+
}), t;
|
|
119
|
+
},
|
|
120
|
+
isView() {
|
|
121
|
+
return this.boxType === "view";
|
|
122
|
+
},
|
|
123
|
+
isAdd() {
|
|
124
|
+
return this.boxType === "add";
|
|
125
|
+
},
|
|
126
|
+
isEdit() {
|
|
127
|
+
return this.boxType === "edit";
|
|
128
|
+
},
|
|
129
|
+
direction() {
|
|
130
|
+
return this.crud.tableOption.dialogDirection;
|
|
131
|
+
},
|
|
132
|
+
width() {
|
|
133
|
+
return r(`${this.crud.tableOption.dialogWidth}`, this.crud.isMobile ? "100%" : `${d.dialogWidth}`);
|
|
134
|
+
},
|
|
135
|
+
dialogType() {
|
|
136
|
+
return this.isDrawer ? "ElDrawer" : "ElementDialog";
|
|
137
|
+
},
|
|
138
|
+
dialogTop() {
|
|
139
|
+
return !this.isDrawer && !this.fullscreen ? this.crud.tableOption.dialogTop : "0";
|
|
140
|
+
},
|
|
141
|
+
isDrawer() {
|
|
142
|
+
return this.crud.tableOption.dialogType === "drawer";
|
|
143
|
+
},
|
|
144
|
+
params() {
|
|
145
|
+
return this.isDrawer ? {
|
|
146
|
+
size: this.fullscreen ? "100%" : this.width,
|
|
147
|
+
direction: this.crud.tableOption.dialogDirection
|
|
148
|
+
} : {
|
|
149
|
+
width: this.width,
|
|
150
|
+
fullscreen: this.fullscreen
|
|
151
|
+
};
|
|
152
|
+
},
|
|
153
|
+
dialogTitle() {
|
|
154
|
+
const t = `${this.boxType}`;
|
|
155
|
+
if (!o(this.boxType)) {
|
|
156
|
+
const e = {
|
|
157
|
+
tipStartTitle: "当前表格已选择",
|
|
158
|
+
tipEndTitle: "项",
|
|
159
|
+
editTitle: "编 辑",
|
|
160
|
+
copyTitle: "复 制",
|
|
161
|
+
addTitle: "新 增",
|
|
162
|
+
viewTitle: "查 看",
|
|
163
|
+
filterTitle: "过滤条件",
|
|
164
|
+
showTitle: "列显隐"
|
|
165
|
+
};
|
|
166
|
+
return this.crud.tableOption[`${t}Title`] || e[`${t}Title`];
|
|
167
|
+
}
|
|
168
|
+
return "";
|
|
169
|
+
},
|
|
170
|
+
dialogMenuPosition() {
|
|
171
|
+
return this.crud.option.dialogMenuPosition || "right";
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
methods: {
|
|
175
|
+
isBlank: o,
|
|
176
|
+
optVal: r,
|
|
177
|
+
uploadFun: u,
|
|
178
|
+
submit() {
|
|
179
|
+
this.$refs.tableForm.submit();
|
|
180
|
+
},
|
|
181
|
+
reset() {
|
|
182
|
+
this.$refs.tableForm.resetForm(!1);
|
|
183
|
+
},
|
|
184
|
+
getSlotName(t) {
|
|
185
|
+
return t.replace("Form", "");
|
|
186
|
+
},
|
|
187
|
+
initFun() {
|
|
188
|
+
["clearValidate", "validate", "resetForm", "validateField"].forEach((t) => {
|
|
189
|
+
this.crud[t] = this.$refs.tableForm[t];
|
|
190
|
+
});
|
|
191
|
+
},
|
|
192
|
+
handleChange() {
|
|
193
|
+
this.crud.setVal();
|
|
194
|
+
},
|
|
195
|
+
handleTabClick(t, e) {
|
|
196
|
+
this.crud.$emit("tab-click", t, e);
|
|
197
|
+
},
|
|
198
|
+
handleFullScreen() {
|
|
199
|
+
this.isDrawer && (o(this.size) ? this.size = "100%" : this.size = ""), this.fullscreen = !this.fullscreen;
|
|
200
|
+
},
|
|
201
|
+
handleError(t) {
|
|
202
|
+
this.crud.$emit("error", t);
|
|
203
|
+
},
|
|
204
|
+
handleSubmit(t, e) {
|
|
205
|
+
this.isAdd ? this.rowSave(e) : this.isEdit && this.rowUpdate(e);
|
|
206
|
+
},
|
|
207
|
+
// 保存
|
|
208
|
+
rowSave(t) {
|
|
209
|
+
this.crud.$emit(
|
|
210
|
+
"row-save",
|
|
211
|
+
a(this.crud.tableForm),
|
|
212
|
+
this.closeDialog,
|
|
213
|
+
t
|
|
214
|
+
);
|
|
215
|
+
},
|
|
216
|
+
// 更新
|
|
217
|
+
rowUpdate(t) {
|
|
218
|
+
this.crud.$emit(
|
|
219
|
+
"row-update",
|
|
220
|
+
a(this.crud.tableForm),
|
|
221
|
+
this.crud.tableIndex,
|
|
222
|
+
this.closeDialog,
|
|
223
|
+
t
|
|
224
|
+
);
|
|
225
|
+
},
|
|
226
|
+
closeDialog(t) {
|
|
227
|
+
t = l(t), t && (() => {
|
|
228
|
+
if (this.isEdit) {
|
|
229
|
+
const { parentList: i, index: s } = this.crud.findData(t[this.crud.rowKey]);
|
|
230
|
+
i && i.splice(s, 1, t);
|
|
231
|
+
} else if (this.isAdd) {
|
|
232
|
+
const { item: i } = this.crud.findData(t[this.crud.rowParentKey]);
|
|
233
|
+
i ? (i[this.crud.childrenKey] || this.$set(i, this.crud.childrenKey, []), this.crud.tableOption.lazy && this.$set(i, this.crud.hasChildrenKey, !0), i[this.crud.childrenKey].push(t)) : this.crud.list.push(t);
|
|
234
|
+
}
|
|
235
|
+
})(), this.hide();
|
|
236
|
+
},
|
|
237
|
+
// 隐藏表单
|
|
238
|
+
hide(t) {
|
|
239
|
+
const e = () => {
|
|
240
|
+
t && t(), this.crud.tableIndex = -1, this.crud.tableForm = {}, this.crud.setVal(), this.boxVisible = !1;
|
|
241
|
+
};
|
|
242
|
+
typeof this.crud.beforeClose == "function" ? this.crud.beforeClose(e, this.boxType) : e();
|
|
243
|
+
},
|
|
244
|
+
// 显示表单
|
|
245
|
+
show(t) {
|
|
246
|
+
this.boxType = t;
|
|
247
|
+
const e = () => {
|
|
248
|
+
this.fullscreen = this.crud.tableOption.dialogFullscreen, this.boxVisible = !0, this.$nextTick(() => {
|
|
249
|
+
this.initFun();
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
typeof this.crud.beforeOpen == "function" ? this.crud.beforeOpen(e, this.boxType) : e();
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}, n = {};
|
|
256
|
+
var f = /* @__PURE__ */ h(
|
|
257
|
+
m,
|
|
258
|
+
p,
|
|
259
|
+
b,
|
|
260
|
+
!1,
|
|
261
|
+
g,
|
|
262
|
+
null,
|
|
263
|
+
null,
|
|
264
|
+
null
|
|
265
|
+
);
|
|
266
|
+
function g(t) {
|
|
267
|
+
for (let e in n)
|
|
268
|
+
this[e] = n[e];
|
|
269
|
+
}
|
|
270
|
+
const x = /* @__PURE__ */ function() {
|
|
271
|
+
return f.exports;
|
|
272
|
+
}();
|
|
273
|
+
export {
|
|
274
|
+
x as default
|
|
275
|
+
};
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
import { s as l, j as a } from "../../chunks/util.5053d54e.js";
|
|
2
|
+
import { n as v } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
var g = function() {
|
|
4
|
+
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
5
|
+
return s("div", {
|
|
6
|
+
class: {
|
|
7
|
+
"avue-draggable__active": (e.active || e.overActive) && !e.readonly,
|
|
8
|
+
"avue-draggable__move": e.moveActive,
|
|
9
|
+
"avue-draggable__click": e.disabled
|
|
10
|
+
},
|
|
11
|
+
style: e.styleName,
|
|
12
|
+
on: {
|
|
13
|
+
mousedown: function(i) {
|
|
14
|
+
return i.stopPropagation(), e.handleMove.apply(null, arguments);
|
|
15
|
+
},
|
|
16
|
+
mouseover: function(i) {
|
|
17
|
+
return i.stopPropagation(), e.handleOver.apply(null, arguments);
|
|
18
|
+
},
|
|
19
|
+
mouseout: function(i) {
|
|
20
|
+
return i.stopPropagation(), e.handleOut.apply(null, arguments);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}, [s("ElInput", {
|
|
24
|
+
ref: "input",
|
|
25
|
+
staticClass: "avue-draggable__focus",
|
|
26
|
+
model: {
|
|
27
|
+
value: e.value,
|
|
28
|
+
callback: function(i) {
|
|
29
|
+
e.value = i;
|
|
30
|
+
},
|
|
31
|
+
expression: "value"
|
|
32
|
+
}
|
|
33
|
+
}), s("div", {
|
|
34
|
+
ref: "wrapper",
|
|
35
|
+
staticClass: "avue-draggable__wrapper"
|
|
36
|
+
}, [(e.active || e.overActive || e.moveActive) && !e.readonly ? [s("div", {
|
|
37
|
+
staticClass: "avue-draggable__line['left'])",
|
|
38
|
+
style: e.styleLineName
|
|
39
|
+
}), s("div", {
|
|
40
|
+
staticClass: "avue-draggable__line['top'])",
|
|
41
|
+
style: e.styleLineName
|
|
42
|
+
}), s("div", {
|
|
43
|
+
staticClass: "avue-draggable__line['label'])",
|
|
44
|
+
style: e.styleLabelName
|
|
45
|
+
}, [e._v(" " + e._s(e.baseLeft) + "," + e._s(e.baseTop) + " ")])] : e._e(), e.readonly ? e._e() : [e._l(e.rangeList, function(i, h) {
|
|
46
|
+
return [e.active ? s("div", {
|
|
47
|
+
key: h,
|
|
48
|
+
staticClass: "avue-draggable__range[item.classname])",
|
|
49
|
+
style: [e.styleRangeName, e.getRangeStyle(i.classname)],
|
|
50
|
+
on: {
|
|
51
|
+
mousedown: function(n) {
|
|
52
|
+
return n.stopPropagation(), e.rangeMove(n, i.classname);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}) : e._e()];
|
|
56
|
+
})], s("div", {
|
|
57
|
+
directives: [{
|
|
58
|
+
name: "show",
|
|
59
|
+
rawName: "v-show",
|
|
60
|
+
value: e.active || e.overActive,
|
|
61
|
+
expression: "active || overActive"
|
|
62
|
+
}],
|
|
63
|
+
staticClass: "avue-draggable__menu",
|
|
64
|
+
style: e.styleMenuName
|
|
65
|
+
}, [e._t("menu", null, {
|
|
66
|
+
zIndex: e.zIndex,
|
|
67
|
+
index: e.index
|
|
68
|
+
})], 2), s("div", {
|
|
69
|
+
ref: "item",
|
|
70
|
+
staticClass: "avue-draggable__item"
|
|
71
|
+
}, [e._t("default")], 2), !e.disabled && e.mask ? s("div", {
|
|
72
|
+
staticClass: "avue-draggable__mask"
|
|
73
|
+
}) : e._e()], 2)], 1);
|
|
74
|
+
}, y = [];
|
|
75
|
+
const _ = {
|
|
76
|
+
name: "Draggable",
|
|
77
|
+
props: {
|
|
78
|
+
index: {
|
|
79
|
+
type: [String, Number]
|
|
80
|
+
},
|
|
81
|
+
mask: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: !0
|
|
84
|
+
},
|
|
85
|
+
scale: {
|
|
86
|
+
type: Number,
|
|
87
|
+
default: 1
|
|
88
|
+
},
|
|
89
|
+
readonly: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: !1
|
|
92
|
+
},
|
|
93
|
+
resize: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: !0
|
|
96
|
+
},
|
|
97
|
+
disabled: {
|
|
98
|
+
type: Boolean,
|
|
99
|
+
default: !1
|
|
100
|
+
},
|
|
101
|
+
lock: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: !1
|
|
104
|
+
},
|
|
105
|
+
step: {
|
|
106
|
+
type: Number,
|
|
107
|
+
default: 1
|
|
108
|
+
},
|
|
109
|
+
zIndex: {
|
|
110
|
+
type: [Number, String],
|
|
111
|
+
default: 1
|
|
112
|
+
},
|
|
113
|
+
left: {
|
|
114
|
+
type: Number,
|
|
115
|
+
default: 0
|
|
116
|
+
},
|
|
117
|
+
top: {
|
|
118
|
+
type: Number,
|
|
119
|
+
default: 0
|
|
120
|
+
},
|
|
121
|
+
width: {
|
|
122
|
+
type: Number
|
|
123
|
+
},
|
|
124
|
+
height: {
|
|
125
|
+
type: Number
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
data() {
|
|
129
|
+
return {
|
|
130
|
+
first: !0,
|
|
131
|
+
value: "",
|
|
132
|
+
baseWidth: 0,
|
|
133
|
+
baseHeight: 0,
|
|
134
|
+
baseLeft: 0,
|
|
135
|
+
baseTop: 0,
|
|
136
|
+
children: {},
|
|
137
|
+
moveActive: !1,
|
|
138
|
+
overActive: !1,
|
|
139
|
+
rangeActive: !1,
|
|
140
|
+
active: !1,
|
|
141
|
+
keyDown: null,
|
|
142
|
+
rangeList: [
|
|
143
|
+
{
|
|
144
|
+
classname: "left"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
classname: "right"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
classname: "top"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
classname: "bottom"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
classname: "top-left"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
classname: "top-right"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
classname: "bottom-left"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
classname: "bottom-right"
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
};
|
|
169
|
+
},
|
|
170
|
+
computed: {
|
|
171
|
+
scaleVal() {
|
|
172
|
+
return this.scale;
|
|
173
|
+
},
|
|
174
|
+
styleMenuName() {
|
|
175
|
+
return {
|
|
176
|
+
transformOrigin: "0 0",
|
|
177
|
+
transform: `scale(${this.scaleVal})`
|
|
178
|
+
};
|
|
179
|
+
},
|
|
180
|
+
styleLineName() {
|
|
181
|
+
return {
|
|
182
|
+
borderWidth: l(this.scaleVal)
|
|
183
|
+
};
|
|
184
|
+
},
|
|
185
|
+
styleRangeName() {
|
|
186
|
+
const e = 10 * this.scaleVal;
|
|
187
|
+
return {
|
|
188
|
+
width: l(e),
|
|
189
|
+
height: l(e)
|
|
190
|
+
};
|
|
191
|
+
},
|
|
192
|
+
styleLabelName() {
|
|
193
|
+
return {
|
|
194
|
+
fontSize: l(18 * this.scaleVal)
|
|
195
|
+
};
|
|
196
|
+
},
|
|
197
|
+
styleName() {
|
|
198
|
+
return Object.assign(
|
|
199
|
+
(() => this.active ? Object.assign(
|
|
200
|
+
{
|
|
201
|
+
zIndex: 9999
|
|
202
|
+
},
|
|
203
|
+
this.styleLineName
|
|
204
|
+
) : { zIndex: this.zIndex })(),
|
|
205
|
+
{
|
|
206
|
+
top: l(this.baseTop),
|
|
207
|
+
left: l(this.baseLeft),
|
|
208
|
+
width: l(this.baseWidth),
|
|
209
|
+
height: l(this.baseHeight)
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
watch: {
|
|
215
|
+
active(e) {
|
|
216
|
+
e ? this.handleKeydown() : document.onkeydown = this.keyDown;
|
|
217
|
+
},
|
|
218
|
+
width(e) {
|
|
219
|
+
this.baseWidth = a(e) || this.children.offsetWidth;
|
|
220
|
+
},
|
|
221
|
+
height(e) {
|
|
222
|
+
this.baseHeight = a(e) || this.children.offsetHeight;
|
|
223
|
+
},
|
|
224
|
+
left(e) {
|
|
225
|
+
this.baseLeft = a(e);
|
|
226
|
+
},
|
|
227
|
+
top(e) {
|
|
228
|
+
this.baseTop = a(e);
|
|
229
|
+
},
|
|
230
|
+
baseWidth(e) {
|
|
231
|
+
this.$refs.wrapper.style.width = l(e), this.resize && this.children.style && (this.children.style.width = l(e));
|
|
232
|
+
},
|
|
233
|
+
baseHeight(e) {
|
|
234
|
+
this.$refs.wrapper.style.height = l(e), this.resize && this.children.style && (this.children.style.height = l(e));
|
|
235
|
+
},
|
|
236
|
+
baseLeft(e, t) {
|
|
237
|
+
this.first || this.setMove(e - t, 0);
|
|
238
|
+
},
|
|
239
|
+
baseTop(e, t) {
|
|
240
|
+
this.first || this.setMove(0, e - t);
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
mounted() {
|
|
244
|
+
this.init();
|
|
245
|
+
},
|
|
246
|
+
methods: {
|
|
247
|
+
init() {
|
|
248
|
+
this.children = this.$refs.item.firstChild, this.baseWidth = a(this.width) || this.children.offsetWidth, this.baseHeight = a(this.height) || this.children.offsetHeight, this.baseLeft = a(this.left), this.baseTop = a(this.top), this.keyDown = document.onkeydown, this.$nextTick(() => {
|
|
249
|
+
this.first = !1;
|
|
250
|
+
});
|
|
251
|
+
},
|
|
252
|
+
setMove(e, t) {
|
|
253
|
+
this.$emit("move", {
|
|
254
|
+
index: this.index,
|
|
255
|
+
left: e,
|
|
256
|
+
top: t
|
|
257
|
+
});
|
|
258
|
+
},
|
|
259
|
+
setLeft(e) {
|
|
260
|
+
this.baseLeft = e;
|
|
261
|
+
},
|
|
262
|
+
setTop(e) {
|
|
263
|
+
this.baseTop = e;
|
|
264
|
+
},
|
|
265
|
+
getRangeStyle(e) {
|
|
266
|
+
const t = 10 * this.scaleVal / 2;
|
|
267
|
+
let s = {};
|
|
268
|
+
return e.split("-").forEach((h) => {
|
|
269
|
+
s[h] = l(-t);
|
|
270
|
+
}), s;
|
|
271
|
+
},
|
|
272
|
+
setOverActive(e) {
|
|
273
|
+
this.overActive = e;
|
|
274
|
+
},
|
|
275
|
+
setActive(e) {
|
|
276
|
+
this.active = e;
|
|
277
|
+
},
|
|
278
|
+
rangeMove(e, t) {
|
|
279
|
+
if (this.disabled || this.lock)
|
|
280
|
+
return;
|
|
281
|
+
let s, i, h, n, o, u;
|
|
282
|
+
this.rangeActive = !0, this.handleMouseDown();
|
|
283
|
+
let c = e.clientX, f = e.clientY;
|
|
284
|
+
document.onmousemove = (d) => {
|
|
285
|
+
this.moveActive = !0, t === "right" ? (s = !0, i = !1) : t === "left" ? (s = !0, h = !0, o = !0, i = !1) : t === "top" ? (s = !1, i = !0, n = !0, u = !0) : t === "bottom" ? (s = !1, i = !0) : t === "bottom-right" ? (s = !0, i = !0) : t === "bottom-left" ? (s = !0, i = !0, h = !0, o = !0) : t === "top-right" ? (s = !0, i = !0, n = !0, u = !0) : t === "top-left" && (s = !0, i = !0, h = !0, o = !0, n = !0, u = !0);
|
|
286
|
+
let m = d.clientX - c, p = d.clientY - f;
|
|
287
|
+
if (c = d.clientX, f = d.clientY, s) {
|
|
288
|
+
let r = m * this.step;
|
|
289
|
+
o && (r = -r), h && (this.baseLeft = a(this.baseLeft - r)), this.baseWidth = a(this.baseWidth + r);
|
|
290
|
+
}
|
|
291
|
+
if (i) {
|
|
292
|
+
let r = p * this.step;
|
|
293
|
+
u && (r = -r), n && (this.baseTop = a(this.baseTop - r)), this.baseHeight = a(this.baseHeight + r);
|
|
294
|
+
}
|
|
295
|
+
}, this.handleClear();
|
|
296
|
+
},
|
|
297
|
+
handleOut() {
|
|
298
|
+
this.overActive = !1, this.$emit("out", {
|
|
299
|
+
index: this.index,
|
|
300
|
+
width: this.baseWidth,
|
|
301
|
+
height: this.baseHeight,
|
|
302
|
+
left: this.baseLeft,
|
|
303
|
+
top: this.baseTop
|
|
304
|
+
});
|
|
305
|
+
},
|
|
306
|
+
handleOver() {
|
|
307
|
+
this.disabled || (this.overActive = !0, this.$emit("over", {
|
|
308
|
+
index: this.index,
|
|
309
|
+
width: this.baseWidth,
|
|
310
|
+
height: this.baseHeight,
|
|
311
|
+
left: this.baseLeft,
|
|
312
|
+
top: this.baseTop
|
|
313
|
+
}));
|
|
314
|
+
},
|
|
315
|
+
handleMove(e) {
|
|
316
|
+
if (this.disabled || this.lock)
|
|
317
|
+
return;
|
|
318
|
+
setTimeout(() => {
|
|
319
|
+
this.$refs.input.focus();
|
|
320
|
+
}), this.active = !0, this.handleMouseDown();
|
|
321
|
+
let t = e.clientX, s = e.clientY;
|
|
322
|
+
document.onmousemove = (i) => {
|
|
323
|
+
let h = i.clientX - t, n = i.clientY - s;
|
|
324
|
+
t = i.clientX, s = i.clientY, this.baseLeft = a(this.baseLeft + h * this.step), this.baseTop = a(this.baseTop + n * this.step);
|
|
325
|
+
}, this.handleClear();
|
|
326
|
+
},
|
|
327
|
+
handleClear() {
|
|
328
|
+
document.onmouseup = () => {
|
|
329
|
+
document.onmousemove = null, document.onmouseup = null, this.handleMouseUp();
|
|
330
|
+
};
|
|
331
|
+
},
|
|
332
|
+
handleKeydown() {
|
|
333
|
+
document.onkeydown = (e) => {
|
|
334
|
+
var t = e || window.event || arguments.callee.caller.arguments[0];
|
|
335
|
+
let s = 1 * this.step;
|
|
336
|
+
this.$refs.input.focused && (t && t.keyCode == 38 ? this.baseTop = a(this.baseTop - s) : t && t.keyCode == 37 ? this.baseLeft = a(this.baseLeft - s) : t && t.keyCode == 40 ? this.baseTop = a(this.baseTop + s) : t && t.keyCode == 39 && (this.baseLeft = a(this.baseLeft + s)), e.stopPropagation(), e.preventDefault(), this.$emit("blur", {
|
|
337
|
+
index: this.index,
|
|
338
|
+
width: this.baseWidth,
|
|
339
|
+
height: this.baseHeight,
|
|
340
|
+
left: this.baseLeft,
|
|
341
|
+
top: this.baseTop
|
|
342
|
+
}), this.keyDown && this.keyDown(e));
|
|
343
|
+
};
|
|
344
|
+
},
|
|
345
|
+
handleMouseDown(e) {
|
|
346
|
+
this.moveActive = !0, this.$emit("focus", {
|
|
347
|
+
index: this.index,
|
|
348
|
+
width: this.baseWidth,
|
|
349
|
+
height: this.baseHeight,
|
|
350
|
+
left: this.baseLeft,
|
|
351
|
+
top: this.baseTop
|
|
352
|
+
});
|
|
353
|
+
},
|
|
354
|
+
handleMouseUp() {
|
|
355
|
+
this.moveActive = !1, this.rangeActive = !1, this.$emit("blur", {
|
|
356
|
+
index: this.index,
|
|
357
|
+
width: this.baseWidth,
|
|
358
|
+
height: this.baseHeight,
|
|
359
|
+
left: this.baseLeft,
|
|
360
|
+
top: this.baseTop
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}, b = {};
|
|
365
|
+
var w = /* @__PURE__ */ v(
|
|
366
|
+
_,
|
|
367
|
+
g,
|
|
368
|
+
y,
|
|
369
|
+
!1,
|
|
370
|
+
x,
|
|
371
|
+
null,
|
|
372
|
+
null,
|
|
373
|
+
null
|
|
374
|
+
);
|
|
375
|
+
function x(e) {
|
|
376
|
+
for (let t in b)
|
|
377
|
+
this[t] = b[t];
|
|
378
|
+
}
|
|
379
|
+
const k = /* @__PURE__ */ function() {
|
|
380
|
+
return w.exports;
|
|
381
|
+
}();
|
|
382
|
+
export {
|
|
383
|
+
k as default
|
|
384
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.avue-draggable{padding:10px;position:absolute;cursor:move;-webkit-tap-highlight-color:transparent;user-select:none}.avue-draggable__focus{opacity:0;position:absolute!important;top:0;left:0;z-index:-1024}.avue-draggable__mask{width:100%;height:100%;border:0;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.avue-draggable--active{cursor:move;border:1px dashed #09f;background-color:#73aae580}.avue-draggable--move{opacity:.6;background-color:#73aae580}.avue-draggable--click{cursor:pointer}.avue-draggable__line--left{position:absolute;border-top:1px dashed #09f;width:10000px;height:0;top:0;transform:translate(-100%)}.avue-draggable__line--top{position:absolute;border-left:1px dashed #09f;width:0;height:10000px;left:0;transform:translateY(-100%)}.avue-draggable__line--label{top:-5px;left:-8px;position:absolute;padding:5px;transform:translate(-100%,-100%);color:#09f;font-size:18px;white-space:nowrap;cursor:move}.avue-draggable__menu{position:absolute;top:0px;left:0px;background-color:#409eff;font-size:25px;color:#fff;z-index:9999;cursor:pointer}.avue-draggable__range{position:absolute;width:10px;height:10px;border-radius:100%;z-index:9999;background-color:#09f}.avue-draggable__range--left,.avue-draggable__range--right{top:50%;transform:translateY(-50%)}.avue-draggable__range--left:hover,.avue-draggable__range--right:hover{cursor:ew-resize}.avue-draggable__range--left{left:-6px}.avue-draggable__range--right{right:-6px}.avue-draggable__range--top,.avue-draggable__range--bottom{left:50%;transform:translate(-50%)}.avue-draggable__range--top:hover,.avue-draggable__range--bottom:hover{cursor:ns-resize}.avue-draggable__range--top{top:-6px}.avue-draggable__range--bottom{bottom:-6px}.avue-draggable__range--bottom-right:hover,.avue-draggable__range--top-left:hover{cursor:nwse-resize}.avue-draggable__range--bottom-left:hover,.avue-draggable__range--top-right:hover{cursor:nesw-resize}.avue-draggable__range--top-right{top:-6px;right:-6px}.avue-draggable__range--top-left{top:-6px;left:-6px}.avue-draggable__range--bottom-right{bottom:-6px;right:-6px}.avue-draggable__range--bottom-left{bottom:-6px;left:-6px}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fastClone as u, validateNumber as d, validateIdCard as c, validatePhoneNum as m } from "@web-utils/core";
|
|
2
|
-
import { n as f } from "../../chunks/
|
|
2
|
+
import { n as f } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var h = function() {
|
|
4
4
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
5
5
|
return t("div", {
|
|
@@ -4,7 +4,7 @@ import { TitleComponent as u, TooltipComponent as f, GridComponent as m, LegendC
|
|
|
4
4
|
import { CanvasRenderer as w } from "echarts/renderers";
|
|
5
5
|
import { debounce as M, isString as R } from "@web-utils/core";
|
|
6
6
|
import { addListener as y, removeListener as z } from "resize-detector";
|
|
7
|
-
import { n as v } from "../../chunks/
|
|
7
|
+
import { n as v } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
8
8
|
var S = function() {
|
|
9
9
|
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
10
10
|
return i("div", {
|
|
@@ -94,9 +94,12 @@ const x = ["theme", "initOptions", "autoResize"], E = ["manualUpdate", "watchSha
|
|
|
94
94
|
this.chart && this.destroy();
|
|
95
95
|
},
|
|
96
96
|
methods: {
|
|
97
|
+
// provide an explicit merge option method
|
|
97
98
|
mergeOptions(t, e, i) {
|
|
98
99
|
this.manualUpdate && (this.manualOptions = t), this.chart ? this.delegateMethod("setOption", t, e, i) : this.init(t);
|
|
99
100
|
},
|
|
101
|
+
// just delegates ECharts methods to Vue component
|
|
102
|
+
// use explicit params to reduce transpiled size for now
|
|
100
103
|
appendData(t) {
|
|
101
104
|
this.delegateMethod("appendData", t);
|
|
102
105
|
},
|
|
@@ -156,6 +159,9 @@ const x = ["theme", "initOptions", "autoResize"], E = ["manualUpdate", "watchSha
|
|
|
156
159
|
100,
|
|
157
160
|
{ leading: !0 }
|
|
158
161
|
), y(this.$el, this.__resizeHandler)), Object.defineProperties(this, {
|
|
162
|
+
// Only recalculated when accessed from JavaScript.
|
|
163
|
+
// Won't update DOM on value change because getters
|
|
164
|
+
// don't depend on reactive values
|
|
159
165
|
width: {
|
|
160
166
|
configurable: !0,
|
|
161
167
|
get: () => this.delegateGet("getWidth")
|