@web-utils/component 3.0.2 → 3.0.3
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 +14 -14
- package/chat/index.mjs +39 -40
- package/chunk-file-uploader/index.mjs +35 -594
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/FormTemp.d079292b.mjs +139 -0
- package/chunks/{dataformat.816df805.mjs → dataformat.e655611c.mjs} +6 -6
- package/chunks/detail.d6f8e347.mjs +29 -0
- package/chunks/{dic.3b4ba802.mjs → dic.eaac0823.mjs} +40 -40
- package/chunks/{event.4377230d.mjs → event.10295951.mjs} +2 -2
- package/chunks/form-input-mixin.78a567bc.mjs +24 -0
- package/chunks/form-item-mixin.57cb2019.mjs +140 -0
- package/chunks/{index.d91bd77a.mjs → index.57f871af.mjs} +7 -7
- package/chunks/{init.f0a03127.mjs → init.47f219b4.mjs} +2 -2
- package/chunks/input-number-mixin.41a066be.mjs +60 -0
- package/chunks/{util.7844e2c2.mjs → util.ae730cde.mjs} +21 -21
- package/count-up/index.mjs +17 -14
- package/data-box/index.mjs +18 -19
- package/data-display/index.mjs +17 -18
- package/data-icons/index.mjs +16 -17
- package/data-panel/index.mjs +20 -21
- package/data-pay/index.mjs +15 -16
- package/data-progress/index.mjs +19 -20
- package/data-rotate/index.mjs +35 -36
- package/data-table-picker/index.mjs +23 -25
- package/data-tabs/index.mjs +15 -16
- package/dialog-form/index.mjs +11 -12
- package/dynamic-table/index.mjs +34 -35
- package/easy-popup/index.mjs +56 -29
- package/editable-tree/index.mjs +485 -134
- package/element-dialog/index.mjs +127 -37
- package/empty-view/index.mjs +31 -13
- 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 +40 -105
- package/flow-designer/index.mjs +555 -615
- package/flow-node/index.mjs +47 -15
- package/flow-viewer/index.mjs +78 -167
- package/form-cascader/index.mjs +24 -24
- package/form-checkbox-group/index.mjs +35 -79
- package/form-date-picker/index.mjs +22 -22
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +86 -28
- package/form-input-email/index.mjs +18 -18
- package/form-input-id-card/index.mjs +27 -27
- package/form-input-number/index.mjs +59 -219
- package/form-input-phone-number/index.mjs +27 -27
- package/form-input-tag/index.mjs +38 -160
- package/form-input-time/index.mjs +16 -16
- package/form-item/index.mjs +146 -15
- package/form-item-group/index.mjs +164 -14
- package/form-radio-group/index.mjs +41 -41
- package/form-select/index.mjs +20 -20
- package/form-switch/index.mjs +19 -19
- package/form-textarea/index.mjs +29 -29
- package/form-view/index.mjs +42 -46
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +15 -15
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +2824 -210
- package/fy-date/index.mjs +59 -17
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +208 -64
- package/fy-empty/index.mjs +29 -12
- package/fy-form/index.mjs +743 -178
- package/fy-form-design/index.mjs +1013 -1540
- package/fy-input/index.mjs +105 -17
- package/fy-input-color/index.mjs +67 -16
- package/fy-input-icon/index.mjs +119 -23
- package/fy-input-map/index.mjs +14 -15
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +19 -21
- package/fy-input-tree/index.mjs +3 -3
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +50 -16
- package/fy-select/index.mjs +126 -29
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +51 -15
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +23 -25
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +2 -2
- package/highlight-j-s/index.mjs +29 -19
- package/icon-temp/index.mjs +30 -12
- package/iframe-window/index.mjs +18 -19
- package/image-cropper/index.mjs +22 -23
- package/image-preview/index.mjs +1 -1
- package/input-number/index.mjs +173 -63
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +33 -15
- package/login/index.mjs +1 -1
- package/nav-bar/index.mjs +31 -15
- package/package.json +1 -1
- package/page/index.mjs +20 -12
- package/page-header/index.mjs +34 -13
- package/page-index-top/index.mjs +53 -100
- package/page-skeleton/index.mjs +35 -18
- package/page-skeleton-new/index.mjs +15 -16
- package/pageable-table/index.mjs +228 -86
- package/pageable-view/index.mjs +1 -1
- package/present-view/index.mjs +71 -75
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +29 -21
- package/search/index.mjs +9 -9
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +45 -40
- package/swiper/index.mjs +13 -14
- package/table-view/index.mjs +97 -631
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/index.mjs +63 -63
- package/toolbar/index.mjs +208 -15
- package/toolbar-button/index.mjs +56 -30
- package/verify/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +118 -49
- package/chunks/CountUp.f1a19f35.mjs +0 -124
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +0 -8
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +0 -32
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +0 -356
- package/chunks/ElementDialog.d8f3105c.mjs +0 -211
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +0 -95
- package/chunks/EmptyView.e2430422.mjs +0 -51
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +0 -23
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +0 -37
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +0 -65
- package/chunks/FormItem.2920ac0c.mjs +0 -45
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +0 -258
- package/chunks/FormItemGroup.41daddb6.mjs +0 -64
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +0 -155
- package/chunks/FyCurd.8acd2983.mjs +0 -548
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +0 -2945
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +0 -47
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +0 -151
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +0 -22
- package/chunks/FyForm.0294e494.mjs +0 -439
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +0 -737
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +0 -93
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +0 -56
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +0 -158
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +0 -39
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +0 -102
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +0 -41
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +0 -15
- package/chunks/IconTemp.42c48e1f.mjs +0 -32
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +0 -23
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +0 -172
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +0 -23
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +0 -21
- package/chunks/Page.81f4b8d9.mjs +0 -32
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +0 -13
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +0 -26
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +0 -88
- package/chunks/PageableTable.333cbdc1.mjs +0 -335
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +0 -148
- package/chunks/ResizeObserver.60f728f0.mjs +0 -54
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +0 -13
- package/chunks/TableColumn.8503272e.mjs +0 -106
- package/chunks/Toolbar.5c539dbb.mjs +0 -24
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +0 -275
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +0 -31
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +0 -74
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
import s from "element-ui/lib/button";
|
|
2
|
-
import c from "element-ui/lib/input";
|
|
3
|
-
import d from "element-ui/lib/popconfirm";
|
|
4
|
-
import u from "element-ui/lib/tree";
|
|
5
|
-
var _ = function() {
|
|
6
|
-
var e = this, l = e.$createElement, t = e._self._c || l;
|
|
7
|
-
return t("div", {
|
|
8
|
-
staticClass: "editable-tree"
|
|
9
|
-
}, [!e.readonly && e.addRootNodeButtonStyle === "top-right" ? t(s, {
|
|
10
|
-
staticStyle: {
|
|
11
|
-
position: "absolute",
|
|
12
|
-
top: "4px",
|
|
13
|
-
"z-index": "1"
|
|
14
|
-
},
|
|
15
|
-
style: {
|
|
16
|
-
right: `${e.right}px`
|
|
17
|
-
},
|
|
18
|
-
attrs: {
|
|
19
|
-
type: "primary",
|
|
20
|
-
size: "mini",
|
|
21
|
-
icon: "el-icon-plus",
|
|
22
|
-
circle: "",
|
|
23
|
-
plain: ""
|
|
24
|
-
},
|
|
25
|
-
on: {
|
|
26
|
-
click: function(o) {
|
|
27
|
-
return o.stopPropagation(), e.$emit("add-root-node");
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}) : e._e(), t("div", {
|
|
31
|
-
ref: "treeWrapper",
|
|
32
|
-
staticClass: "et-tree-wrapper"
|
|
33
|
-
}, [!e.readonly && e.addRootNodeButtonStyle === "top" ? t("div", {
|
|
34
|
-
staticStyle: {
|
|
35
|
-
"padding-left": "24px"
|
|
36
|
-
}
|
|
37
|
-
}, [t(s, {
|
|
38
|
-
attrs: {
|
|
39
|
-
disabled: e.loading,
|
|
40
|
-
size: "mini",
|
|
41
|
-
type: "text"
|
|
42
|
-
},
|
|
43
|
-
on: {
|
|
44
|
-
click: e.appendRootNode
|
|
45
|
-
}
|
|
46
|
-
}, [t("i", {
|
|
47
|
-
staticClass: "el-icon-lx-add"
|
|
48
|
-
}), e._v(" " + e._s(e.addRootNodeLabel ? e.addRootNodeLabel : `添加${e.label}`) + " ")])], 1) : e._e(), t(u, e._g(e._b({
|
|
49
|
-
key: e.treeKey,
|
|
50
|
-
ref: "tree",
|
|
51
|
-
staticClass: "flex-item",
|
|
52
|
-
attrs: {
|
|
53
|
-
"default-expanded-keys": e.expandedKeys,
|
|
54
|
-
"expand-on-click-node": !1,
|
|
55
|
-
"highlight-current": "",
|
|
56
|
-
load: e.loadNode,
|
|
57
|
-
data: e.innerTreeData,
|
|
58
|
-
props: e.treeProps,
|
|
59
|
-
lazy: e.lazy,
|
|
60
|
-
"node-key": e.nodeKey
|
|
61
|
-
},
|
|
62
|
-
on: {
|
|
63
|
-
"node-click": e.nodeClick,
|
|
64
|
-
"node-contextmenu": e.showContextMenu,
|
|
65
|
-
"node-expand": e.addExpandKey,
|
|
66
|
-
"node-collapse": e.removeExpandKey
|
|
67
|
-
},
|
|
68
|
-
scopedSlots: e._u([{
|
|
69
|
-
key: "default",
|
|
70
|
-
fn: function(o) {
|
|
71
|
-
var i = o.node, n = o.data;
|
|
72
|
-
return [e._t("default", function() {
|
|
73
|
-
return [n.edit ? [t("span", {
|
|
74
|
-
staticClass: "custom-tree-node flex-row flex-item oh",
|
|
75
|
-
attrs: {
|
|
76
|
-
"data-id": n.id
|
|
77
|
-
}
|
|
78
|
-
}, [e.icon ? t("i", {
|
|
79
|
-
staticClass: "node-icon shrink-0",
|
|
80
|
-
class: n.loading ? "el-icon-loading" : "el-icon-edit-outline"
|
|
81
|
-
}) : e._e(), t(c, {
|
|
82
|
-
ref: "labelTxt",
|
|
83
|
-
staticClass: "node-input flex-item",
|
|
84
|
-
attrs: {
|
|
85
|
-
size: "mini",
|
|
86
|
-
placeholder: e.defaultOptions.inputPlaceholder
|
|
87
|
-
},
|
|
88
|
-
on: {
|
|
89
|
-
blur: function(a) {
|
|
90
|
-
return e.inputBlur(a, i, n);
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
nativeOn: {
|
|
94
|
-
keyup: function(a) {
|
|
95
|
-
return function(r) {
|
|
96
|
-
return e.inputKeyup(r, i, n);
|
|
97
|
-
}.apply(null, arguments);
|
|
98
|
-
},
|
|
99
|
-
click: function(a) {
|
|
100
|
-
a.stopPropagation();
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
model: {
|
|
104
|
-
value: e.text,
|
|
105
|
-
callback: function(a) {
|
|
106
|
-
e.text = a;
|
|
107
|
-
},
|
|
108
|
-
expression: "text"
|
|
109
|
-
}
|
|
110
|
-
}), e.confirmButton ? [t(s, {
|
|
111
|
-
directives: [{
|
|
112
|
-
name: "show",
|
|
113
|
-
rawName: "v-show",
|
|
114
|
-
value: !n.loading,
|
|
115
|
-
expression: "!data.loading"
|
|
116
|
-
}],
|
|
117
|
-
staticClass: "shrink-0",
|
|
118
|
-
attrs: {
|
|
119
|
-
size: "mini",
|
|
120
|
-
type: "text"
|
|
121
|
-
},
|
|
122
|
-
on: {
|
|
123
|
-
click: function(a) {
|
|
124
|
-
return a.stopPropagation(), e.onConfirm(i, n);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}, [e._v("确定")]), t(s, {
|
|
128
|
-
directives: [{
|
|
129
|
-
name: "show",
|
|
130
|
-
rawName: "v-show",
|
|
131
|
-
value: !n.loading,
|
|
132
|
-
expression: "!data.loading"
|
|
133
|
-
}],
|
|
134
|
-
staticClass: "shrink-0",
|
|
135
|
-
attrs: {
|
|
136
|
-
size: "mini",
|
|
137
|
-
type: "text"
|
|
138
|
-
},
|
|
139
|
-
on: {
|
|
140
|
-
click: function(a) {
|
|
141
|
-
return a.stopPropagation(), e.onCancel(i, n);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}, [e._v("取消")])] : e._e()], 2)] : [t("span", {
|
|
145
|
-
staticClass: "custom-tree-node",
|
|
146
|
-
attrs: {
|
|
147
|
-
"data-id": n.id
|
|
148
|
-
}
|
|
149
|
-
}, [t("span", {
|
|
150
|
-
staticClass: "node-label flex-row flex-item oh ellipsis-1"
|
|
151
|
-
}, [e.icon ? t("i", {
|
|
152
|
-
staticClass: "node-icon",
|
|
153
|
-
class: n.loading ? "el-icon-loading" : e.icon(n, i)
|
|
154
|
-
}) : e._e(), t("span", {
|
|
155
|
-
staticClass: "flex-item-relative",
|
|
156
|
-
staticStyle: {
|
|
157
|
-
height: "21px"
|
|
158
|
-
}
|
|
159
|
-
}, [t("span", {
|
|
160
|
-
staticClass: "ellipsis-1 absolute-box et-tree-label",
|
|
161
|
-
attrs: {
|
|
162
|
-
title: i.label
|
|
163
|
-
}
|
|
164
|
-
}, [e._t("label", function() {
|
|
165
|
-
return [e._v(e._s(i.label))];
|
|
166
|
-
}, {
|
|
167
|
-
data: n,
|
|
168
|
-
node: i
|
|
169
|
-
})], 2)]), e._t("label-suffix", null, {
|
|
170
|
-
node: i,
|
|
171
|
-
data: n
|
|
172
|
-
})], 2), !e.contextMenu && !e.readonly ? t("span", {
|
|
173
|
-
directives: [{
|
|
174
|
-
name: "show",
|
|
175
|
-
rawName: "v-show",
|
|
176
|
-
value: !n.loading && !e.loading,
|
|
177
|
-
expression: "!data.loading && !loading"
|
|
178
|
-
}],
|
|
179
|
-
staticClass: "handle-actions"
|
|
180
|
-
}, [t(s, {
|
|
181
|
-
attrs: {
|
|
182
|
-
size: "mini",
|
|
183
|
-
type: "text"
|
|
184
|
-
},
|
|
185
|
-
on: {
|
|
186
|
-
click: function(a) {
|
|
187
|
-
return a.stopPropagation(), e.appendChildNode(i, n);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}, [e._v("添加")]), t(s, {
|
|
191
|
-
attrs: {
|
|
192
|
-
size: "mini",
|
|
193
|
-
type: "text"
|
|
194
|
-
},
|
|
195
|
-
on: {
|
|
196
|
-
click: function(a) {
|
|
197
|
-
return a.stopPropagation(), e.editNode(i, n);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}, [e._v("修改")]), t(d, {
|
|
201
|
-
staticClass: "pop-confirm",
|
|
202
|
-
attrs: {
|
|
203
|
-
"icon-color": "red",
|
|
204
|
-
title: "你确定要删除吗?"
|
|
205
|
-
},
|
|
206
|
-
on: {
|
|
207
|
-
confirm: function(a) {
|
|
208
|
-
return e.removeNode(i, n);
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
scopedSlots: e._u([{
|
|
212
|
-
key: "reference",
|
|
213
|
-
fn: function() {
|
|
214
|
-
return [t(s, {
|
|
215
|
-
directives: [{
|
|
216
|
-
name: "show",
|
|
217
|
-
rawName: "v-show",
|
|
218
|
-
value: i.isLeaf,
|
|
219
|
-
expression: "node.isLeaf"
|
|
220
|
-
}],
|
|
221
|
-
staticStyle: {
|
|
222
|
-
"margin-left": "4px"
|
|
223
|
-
},
|
|
224
|
-
attrs: {
|
|
225
|
-
size: "mini",
|
|
226
|
-
type: "text"
|
|
227
|
-
},
|
|
228
|
-
on: {
|
|
229
|
-
click: function(a) {
|
|
230
|
-
a.stopPropagation();
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}, [e._v("删除")])];
|
|
234
|
-
},
|
|
235
|
-
proxy: !0
|
|
236
|
-
}], null, !0)
|
|
237
|
-
})], 1) : e._e(), e.contextMenuIcon && e.contextMenu && !e.readonly ? t("span", {
|
|
238
|
-
directives: [{
|
|
239
|
-
name: "show",
|
|
240
|
-
rawName: "v-show",
|
|
241
|
-
value: !n.loading && !e.loading,
|
|
242
|
-
expression: "!data.loading && !loading"
|
|
243
|
-
}],
|
|
244
|
-
staticClass: "handle-actions",
|
|
245
|
-
staticStyle: {
|
|
246
|
-
display: "inline-block"
|
|
247
|
-
}
|
|
248
|
-
}, [t(s, {
|
|
249
|
-
staticStyle: {
|
|
250
|
-
padding: "6px 10px 0"
|
|
251
|
-
},
|
|
252
|
-
attrs: {
|
|
253
|
-
size: "mini",
|
|
254
|
-
type: "text"
|
|
255
|
-
},
|
|
256
|
-
on: {
|
|
257
|
-
click: function(a) {
|
|
258
|
-
return a.stopPropagation(), e.showContextMenu(a, n, i);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}, [e._v(". . .")])], 1) : e._e()])]];
|
|
262
|
-
}, {
|
|
263
|
-
node: i,
|
|
264
|
-
data: n
|
|
265
|
-
})];
|
|
266
|
-
}
|
|
267
|
-
}], null, !0)
|
|
268
|
-
}, "ElTree", e.filterTreeProperties(e.$attrs), !1), e.filterTreeEvents(e.$listeners))), e.contextMenu && !e.readonly ? t("div", {
|
|
269
|
-
directives: [{
|
|
270
|
-
name: "show",
|
|
271
|
-
rawName: "v-show",
|
|
272
|
-
value: e.showMenu,
|
|
273
|
-
expression: "showMenu"
|
|
274
|
-
}],
|
|
275
|
-
ref: "contextMenu",
|
|
276
|
-
staticClass: "menu",
|
|
277
|
-
style: e.position
|
|
278
|
-
}, [t("ul", {
|
|
279
|
-
staticClass: "menu-list"
|
|
280
|
-
}, [e._t("context-menu", function() {
|
|
281
|
-
return [t("li", {
|
|
282
|
-
directives: [{
|
|
283
|
-
name: "show",
|
|
284
|
-
rawName: "v-show",
|
|
285
|
-
value: e.curData.id > -1,
|
|
286
|
-
expression: "curData.id > -1"
|
|
287
|
-
}],
|
|
288
|
-
staticClass: "menu-item",
|
|
289
|
-
on: {
|
|
290
|
-
click: function(o) {
|
|
291
|
-
return e.appendPeerNode(e.curNode, e.curData);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}, [t("i", {
|
|
295
|
-
staticClass: "menu-item-icon el-icon-lx-add",
|
|
296
|
-
staticStyle: {
|
|
297
|
-
color: "#228b22"
|
|
298
|
-
}
|
|
299
|
-
}), e._v(e._s(e.menuLabel.appendPeer) + " ")]), t("li", {
|
|
300
|
-
staticClass: "menu-item",
|
|
301
|
-
on: {
|
|
302
|
-
click: function(o) {
|
|
303
|
-
return e.appendChildNode(e.curNode, e.curData);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}, [t("i", {
|
|
307
|
-
staticClass: "menu-item-icon el-icon-lx-add",
|
|
308
|
-
staticStyle: {
|
|
309
|
-
color: "#228b22"
|
|
310
|
-
}
|
|
311
|
-
}), e._v(e._s(e.menuLabel.appendChild) + " ")]), t("li", {
|
|
312
|
-
directives: [{
|
|
313
|
-
name: "show",
|
|
314
|
-
rawName: "v-show",
|
|
315
|
-
value: e.curData.id > -1,
|
|
316
|
-
expression: "curData.id > -1"
|
|
317
|
-
}],
|
|
318
|
-
staticClass: "menu-item",
|
|
319
|
-
on: {
|
|
320
|
-
click: function(o) {
|
|
321
|
-
return e.editNode(e.curNode, e.curData);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
}, [t("i", {
|
|
325
|
-
staticClass: "menu-item-icon el-icon-edit-outline",
|
|
326
|
-
staticStyle: {
|
|
327
|
-
color: "#ffa500"
|
|
328
|
-
}
|
|
329
|
-
}), e._v(e._s(e.menuLabel.editNode) + " ")]), t("li", {
|
|
330
|
-
directives: [{
|
|
331
|
-
name: "show",
|
|
332
|
-
rawName: "v-show",
|
|
333
|
-
value: e.curNode.isLeaf,
|
|
334
|
-
expression: "curNode.isLeaf"
|
|
335
|
-
}],
|
|
336
|
-
staticClass: "menu-item",
|
|
337
|
-
on: {
|
|
338
|
-
click: function(o) {
|
|
339
|
-
return e.removeNodeModal(e.curNode, e.curData);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}, [t("i", {
|
|
343
|
-
staticClass: "menu-item-icon el-icon-delete",
|
|
344
|
-
staticStyle: {
|
|
345
|
-
color: "#f00"
|
|
346
|
-
}
|
|
347
|
-
}), e._v(e._s(e.menuLabel.removeNode) + " ")])];
|
|
348
|
-
}, {
|
|
349
|
-
curNode: e.curNode,
|
|
350
|
-
curData: e.curData
|
|
351
|
-
})], 2)]) : e._e()], 1)], 1);
|
|
352
|
-
}, x = [];
|
|
353
|
-
export {
|
|
354
|
-
_ as r,
|
|
355
|
-
x as s
|
|
356
|
-
};
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
var l = (e, t, i) => new Promise((d, a) => {
|
|
2
|
-
var h = (o) => {
|
|
3
|
-
try {
|
|
4
|
-
s(i.next(o));
|
|
5
|
-
} catch (n) {
|
|
6
|
-
a(n);
|
|
7
|
-
}
|
|
8
|
-
}, u = (o) => {
|
|
9
|
-
try {
|
|
10
|
-
s(i.throw(o));
|
|
11
|
-
} catch (n) {
|
|
12
|
-
a(n);
|
|
13
|
-
}
|
|
14
|
-
}, s = (o) => o.done ? d(o.value) : Promise.resolve(o.value).then(h, u);
|
|
15
|
-
s((i = i.apply(e, t)).next());
|
|
16
|
-
});
|
|
17
|
-
import r from "element-ui/lib/dialog";
|
|
18
|
-
import { dialogDrag as f } from "@web-utils/vue/directives/dialog-drag";
|
|
19
|
-
import { getComputedHeight as c, isDef as m } from "@web-utils/core";
|
|
20
|
-
import { s as y, r as g } from "./ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs";
|
|
21
|
-
import { n as $ } from "./vueComponentNormalizer.446f5dc4.mjs";
|
|
22
|
-
const S = {
|
|
23
|
-
props: {
|
|
24
|
-
visible: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: !1
|
|
27
|
-
},
|
|
28
|
-
openDelay: {},
|
|
29
|
-
closeDelay: {},
|
|
30
|
-
zIndex: {},
|
|
31
|
-
modalFade: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !0
|
|
34
|
-
},
|
|
35
|
-
modalClass: {},
|
|
36
|
-
modal: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: !0
|
|
39
|
-
},
|
|
40
|
-
modalAppendToBody: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: !0
|
|
43
|
-
},
|
|
44
|
-
lockScroll: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: !0
|
|
47
|
-
},
|
|
48
|
-
closeOnPressEscape: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: !0
|
|
51
|
-
},
|
|
52
|
-
maxHeight: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: "76vh"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}, B = {
|
|
58
|
-
name: "ElementDialog",
|
|
59
|
-
directives: {
|
|
60
|
-
dialogDrag: f
|
|
61
|
-
},
|
|
62
|
-
mixins: [...r.mixins || r.default.mixins, S],
|
|
63
|
-
props: {
|
|
64
|
-
title: {
|
|
65
|
-
type: String,
|
|
66
|
-
default: ""
|
|
67
|
-
},
|
|
68
|
-
appendToBody: {
|
|
69
|
-
type: Boolean,
|
|
70
|
-
default: !0
|
|
71
|
-
},
|
|
72
|
-
closeOnClickModal: {
|
|
73
|
-
type: Boolean,
|
|
74
|
-
default: !1
|
|
75
|
-
},
|
|
76
|
-
showClose: {
|
|
77
|
-
type: Boolean,
|
|
78
|
-
default: !0
|
|
79
|
-
},
|
|
80
|
-
showFullScreen: Boolean,
|
|
81
|
-
width: {
|
|
82
|
-
type: String
|
|
83
|
-
},
|
|
84
|
-
height: {
|
|
85
|
-
type: String
|
|
86
|
-
},
|
|
87
|
-
customClass: {
|
|
88
|
-
type: String,
|
|
89
|
-
default: ""
|
|
90
|
-
},
|
|
91
|
-
top: {
|
|
92
|
-
type: String,
|
|
93
|
-
default: "10vh"
|
|
94
|
-
},
|
|
95
|
-
beforeClose: {
|
|
96
|
-
type: Function
|
|
97
|
-
},
|
|
98
|
-
center: {
|
|
99
|
-
type: Boolean,
|
|
100
|
-
default: !0
|
|
101
|
-
},
|
|
102
|
-
destroyOnClose: Boolean,
|
|
103
|
-
flexRow: Boolean,
|
|
104
|
-
flexColumn: Boolean,
|
|
105
|
-
bodyPadding: {
|
|
106
|
-
type: Boolean,
|
|
107
|
-
default: !0
|
|
108
|
-
},
|
|
109
|
-
embed: Boolean,
|
|
110
|
-
verticalCenter: Boolean,
|
|
111
|
-
offsetTop: Number
|
|
112
|
-
},
|
|
113
|
-
data() {
|
|
114
|
-
return {
|
|
115
|
-
fullScreen: !1,
|
|
116
|
-
closed: !1,
|
|
117
|
-
marginTop: 0
|
|
118
|
-
};
|
|
119
|
-
},
|
|
120
|
-
computed: {
|
|
121
|
-
style() {
|
|
122
|
-
const e = {
|
|
123
|
-
maxHeight: "100%"
|
|
124
|
-
};
|
|
125
|
-
return this.fullScreen || (this.width && (e.width = this.width), e.maxHeight = this.maxHeight), e;
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
watch: {
|
|
129
|
-
visible(e) {
|
|
130
|
-
return l(this, null, function* () {
|
|
131
|
-
e ? (this.closed = !1, this.$emit("open"), this.$el.addEventListener("scroll", this.updatePopper), yield this.$nextTick(), this.$refs.dialog.scrollTop = 0, yield this.computeTop(), this.appendToBody && document.body.appendChild(this.$el)) : (this.$el.removeEventListener("scroll", this.updatePopper), this.closed || this.$emit("close"));
|
|
132
|
-
});
|
|
133
|
-
},
|
|
134
|
-
fullScreen(e) {
|
|
135
|
-
this.$emit("toggle-fullscreen", e);
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
created() {
|
|
139
|
-
this.$watch(
|
|
140
|
-
() => ({ offsetTop: this.offsetTop, verticalCenter: this.verticalCenter, top: this.top }),
|
|
141
|
-
this.computeTop,
|
|
142
|
-
{ deep: !0 }
|
|
143
|
-
);
|
|
144
|
-
},
|
|
145
|
-
mounted() {
|
|
146
|
-
return l(this, null, function* () {
|
|
147
|
-
this.visible && (this.rendered = !0, this.open(), yield this.computeTop(), this.appendToBody && document.body.appendChild(this.$el));
|
|
148
|
-
});
|
|
149
|
-
},
|
|
150
|
-
destroyed() {
|
|
151
|
-
this.appendToBody && this.$el && this.$el.parentNode && this.$el.parentNode.removeChild(this.$el);
|
|
152
|
-
},
|
|
153
|
-
methods: {
|
|
154
|
-
computeTop() {
|
|
155
|
-
return l(this, null, function* () {
|
|
156
|
-
yield this.$nextTick(), this.verticalCenter ? this.marginTop = `${(document.body.offsetHeight - c(this.$refs.dialog)) / 2 + (m(this.offsetTop) ? this.offsetTop : 0)}px` : this.marginTop = this.top;
|
|
157
|
-
});
|
|
158
|
-
},
|
|
159
|
-
toggleFullScreen() {
|
|
160
|
-
this.fullScreen = !this.fullScreen;
|
|
161
|
-
},
|
|
162
|
-
enterFullScreen() {
|
|
163
|
-
this.fullScreen = !0;
|
|
164
|
-
},
|
|
165
|
-
exitFullScreen() {
|
|
166
|
-
this.fullScreen = !1;
|
|
167
|
-
},
|
|
168
|
-
shouldShowFooter() {
|
|
169
|
-
var e, t;
|
|
170
|
-
return !!((t = (e = this.$scopedSlots).footer) != null && t.call(e));
|
|
171
|
-
},
|
|
172
|
-
handleWrapperClick() {
|
|
173
|
-
this.closeOnClickModal && this.handleClose();
|
|
174
|
-
},
|
|
175
|
-
handleClose() {
|
|
176
|
-
typeof this.beforeClose == "function" ? this.beforeClose(this.hide) : this.hide();
|
|
177
|
-
},
|
|
178
|
-
hide(e) {
|
|
179
|
-
e !== !1 && (this.embed ? this.$parent.$emit("update:visible", !1) : this.$emit("update:visible", !1), this.$emit("close"), this.closed = !0);
|
|
180
|
-
},
|
|
181
|
-
updatePopper() {
|
|
182
|
-
this.broadcast("ElSelectDropdown", "updatePopper"), this.broadcast("ElDropdownMenu", "updatePopper");
|
|
183
|
-
},
|
|
184
|
-
afterEnter() {
|
|
185
|
-
this.$emit("opened");
|
|
186
|
-
},
|
|
187
|
-
afterLeave() {
|
|
188
|
-
this.exitFullScreen(), this.$emit("closed");
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}, p = {};
|
|
192
|
-
var C = /* @__PURE__ */ $(
|
|
193
|
-
B,
|
|
194
|
-
g,
|
|
195
|
-
y,
|
|
196
|
-
!1,
|
|
197
|
-
v,
|
|
198
|
-
null,
|
|
199
|
-
null,
|
|
200
|
-
null
|
|
201
|
-
);
|
|
202
|
-
function v(e) {
|
|
203
|
-
for (let t in p)
|
|
204
|
-
this[t] = p[t];
|
|
205
|
-
}
|
|
206
|
-
const D = /* @__PURE__ */ function() {
|
|
207
|
-
return C.exports;
|
|
208
|
-
}();
|
|
209
|
-
export {
|
|
210
|
-
D as _
|
|
211
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import t from "element-ui/lib/button";
|
|
2
|
-
var i = function() {
|
|
3
|
-
var e = this, o = e.$createElement, l = e._self._c || o;
|
|
4
|
-
return l("Transition", {
|
|
5
|
-
attrs: {
|
|
6
|
-
name: "dialog-fade"
|
|
7
|
-
},
|
|
8
|
-
on: {
|
|
9
|
-
"after-enter": e.afterEnter,
|
|
10
|
-
"after-leave": e.afterLeave
|
|
11
|
-
}
|
|
12
|
-
}, [l("div", {
|
|
13
|
-
directives: [{
|
|
14
|
-
name: "show",
|
|
15
|
-
rawName: "v-show",
|
|
16
|
-
value: e.visible,
|
|
17
|
-
expression: "visible"
|
|
18
|
-
}, {
|
|
19
|
-
name: "dialog-drag",
|
|
20
|
-
rawName: "v-dialog-drag:[fullScreen]",
|
|
21
|
-
value: {
|
|
22
|
-
onMove: e.updatePopper
|
|
23
|
-
},
|
|
24
|
-
expression: "{ onMove: updatePopper }",
|
|
25
|
-
arg: e.fullScreen
|
|
26
|
-
}],
|
|
27
|
-
staticClass: "el-dialog__wrapper",
|
|
28
|
-
on: {
|
|
29
|
-
click: function(a) {
|
|
30
|
-
return a.target !== a.currentTarget ? null : e.handleWrapperClick.apply(null, arguments);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}, [l("div", {
|
|
34
|
-
ref: "dialog",
|
|
35
|
-
class: ["el-dialog", "element-dialog", "el-dialog-resizeable", "normalize", {
|
|
36
|
-
"is-fullscreen": e.fullScreen,
|
|
37
|
-
"el-dialog__body-padding": e.bodyPadding,
|
|
38
|
-
"el-dialog--center": e.center,
|
|
39
|
-
"el-dialog--flex-row": e.flexRow,
|
|
40
|
-
"el-dialog--flex-column": e.flexColumn
|
|
41
|
-
}, e.customClass],
|
|
42
|
-
style: Object.assign({}, e.style, {
|
|
43
|
-
top: e.marginTop
|
|
44
|
-
}),
|
|
45
|
-
attrs: {
|
|
46
|
-
role: "dialog",
|
|
47
|
-
"aria-modal": "true",
|
|
48
|
-
"aria-label": e.title || "dialog"
|
|
49
|
-
}
|
|
50
|
-
}, [l("div", {
|
|
51
|
-
staticClass: "el-dialog__header"
|
|
52
|
-
}, [e._t("title", function() {
|
|
53
|
-
return [l("span", {
|
|
54
|
-
staticClass: "el-dialog__title"
|
|
55
|
-
}, [e._v(e._s(e.title))])];
|
|
56
|
-
}), l("div", {
|
|
57
|
-
staticClass: "header-button-wrapper"
|
|
58
|
-
}, [e._t("header-button"), e.showFullScreen ? l(t, {
|
|
59
|
-
staticClass: "header-button",
|
|
60
|
-
attrs: {
|
|
61
|
-
type: "text",
|
|
62
|
-
icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen",
|
|
63
|
-
size: "medium",
|
|
64
|
-
title: e.fullScreen ? "还原" : "最大化"
|
|
65
|
-
},
|
|
66
|
-
on: {
|
|
67
|
-
click: e.toggleFullScreen
|
|
68
|
-
}
|
|
69
|
-
}) : e._e(), e.showClose ? l(t, {
|
|
70
|
-
staticClass: "header-button header-dialog-close",
|
|
71
|
-
attrs: {
|
|
72
|
-
"aria-label": "Close",
|
|
73
|
-
type: "text",
|
|
74
|
-
title: "关闭",
|
|
75
|
-
icon: "el-icon-close",
|
|
76
|
-
size: "medium"
|
|
77
|
-
},
|
|
78
|
-
on: {
|
|
79
|
-
click: e.handleClose
|
|
80
|
-
}
|
|
81
|
-
}) : e._e()], 2)], 2), e.rendered ? l("div", {
|
|
82
|
-
staticClass: "el-dialog__body",
|
|
83
|
-
style: {
|
|
84
|
-
height: e.fullScreen ? "100%" : e.height
|
|
85
|
-
}
|
|
86
|
-
}, [e.destroyOnClose ? [e.visible ? e._t("default") : e._e()] : e._t("default")], 2) : e._e(), e.shouldShowFooter() ? l("div", {
|
|
87
|
-
staticClass: "el-dialog__footer"
|
|
88
|
-
}, [e._t("footer", null, {
|
|
89
|
-
handleClose: e.handleClose
|
|
90
|
-
})], 2) : e._e()])])]);
|
|
91
|
-
}, s = [];
|
|
92
|
-
export {
|
|
93
|
-
i as r,
|
|
94
|
-
s
|
|
95
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { s as n, r as o } from "./EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs";
|
|
2
|
-
import { n as i } from "./vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
-
const p = {
|
|
4
|
-
name: "EmptyView",
|
|
5
|
-
props: {
|
|
6
|
-
emptyTips: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: "暂无数据"
|
|
9
|
-
},
|
|
10
|
-
fontSize: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: "20px"
|
|
13
|
-
},
|
|
14
|
-
icon: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: "fa fa-dropbox"
|
|
17
|
-
},
|
|
18
|
-
iconSize: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "20px"
|
|
21
|
-
},
|
|
22
|
-
showIcon: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !1
|
|
25
|
-
},
|
|
26
|
-
height: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "100%"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}, e = {};
|
|
32
|
-
var r = /* @__PURE__ */ i(
|
|
33
|
-
p,
|
|
34
|
-
o,
|
|
35
|
-
n,
|
|
36
|
-
!1,
|
|
37
|
-
s,
|
|
38
|
-
null,
|
|
39
|
-
null,
|
|
40
|
-
null
|
|
41
|
-
);
|
|
42
|
-
function s(l) {
|
|
43
|
-
for (let t in e)
|
|
44
|
-
this[t] = e[t];
|
|
45
|
-
}
|
|
46
|
-
const _ = /* @__PURE__ */ function() {
|
|
47
|
-
return r.exports;
|
|
48
|
-
}();
|
|
49
|
-
export {
|
|
50
|
-
_
|
|
51
|
-
};
|