@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
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
var o = Object.defineProperty, d = Object.defineProperties;
|
|
2
|
+
var l = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var i = Object.getOwnPropertySymbols;
|
|
4
|
+
var c = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var r = (t, e, s) => e in t ? o(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, n = (t, e) => {
|
|
6
|
+
for (var s in e || (e = {}))
|
|
7
|
+
c.call(e, s) && r(t, s, e[s]);
|
|
8
|
+
if (i)
|
|
9
|
+
for (var s of i(e))
|
|
10
|
+
p.call(e, s) && r(t, s, e[s]);
|
|
11
|
+
return t;
|
|
12
|
+
}, a = (t, e) => d(t, l(e));
|
|
13
|
+
import { CountUp as h } from "countup.js";
|
|
14
|
+
import { s as m, r as f } from "./CountUp.vue_vue_type_template_lang.1f68c96e.mjs";
|
|
15
|
+
import { n as _ } from "./vueComponentNormalizer.446f5dc4.mjs";
|
|
16
|
+
const y = {
|
|
17
|
+
name: "CountUp",
|
|
18
|
+
props: {
|
|
19
|
+
animation: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !0
|
|
22
|
+
},
|
|
23
|
+
start: {
|
|
24
|
+
type: [Number, String],
|
|
25
|
+
required: !1,
|
|
26
|
+
default: 0
|
|
27
|
+
},
|
|
28
|
+
end: {
|
|
29
|
+
type: [Number, String],
|
|
30
|
+
required: !0
|
|
31
|
+
},
|
|
32
|
+
decimals: {
|
|
33
|
+
type: Number,
|
|
34
|
+
required: !1,
|
|
35
|
+
default: 0
|
|
36
|
+
},
|
|
37
|
+
duration: {
|
|
38
|
+
type: Number,
|
|
39
|
+
required: !1,
|
|
40
|
+
default: 2
|
|
41
|
+
},
|
|
42
|
+
options: {
|
|
43
|
+
type: Object,
|
|
44
|
+
required: !1,
|
|
45
|
+
default() {
|
|
46
|
+
return {};
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
callback: {
|
|
50
|
+
type: Function,
|
|
51
|
+
required: !1,
|
|
52
|
+
default: () => {
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
watch: {
|
|
57
|
+
decimals() {
|
|
58
|
+
var t;
|
|
59
|
+
(t = this.c) == null || t.update(this.end);
|
|
60
|
+
},
|
|
61
|
+
end(t) {
|
|
62
|
+
var e;
|
|
63
|
+
(e = this.c) == null || e.update(t);
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
mounted() {
|
|
67
|
+
this.animation && this.init();
|
|
68
|
+
},
|
|
69
|
+
beforeDestroy() {
|
|
70
|
+
this.destroy();
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
init() {
|
|
74
|
+
this.c || (this.c = new h(this.$el, this.end, a(n({}, this.options), {
|
|
75
|
+
decimal: this.decimals,
|
|
76
|
+
duration: this.duration,
|
|
77
|
+
startVal: this.start
|
|
78
|
+
})), this.c.start(() => {
|
|
79
|
+
this.callback(this.c);
|
|
80
|
+
}));
|
|
81
|
+
},
|
|
82
|
+
destroy() {
|
|
83
|
+
this.c = null;
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
start(t) {
|
|
87
|
+
var e;
|
|
88
|
+
(e = this.c) == null || e.start(() => {
|
|
89
|
+
t && t(this.c);
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
pauseResume() {
|
|
93
|
+
var t;
|
|
94
|
+
(t = this.c) == null || t.pauseResume();
|
|
95
|
+
},
|
|
96
|
+
reset() {
|
|
97
|
+
var t;
|
|
98
|
+
(t = this.c) == null || t.reset();
|
|
99
|
+
},
|
|
100
|
+
update(t) {
|
|
101
|
+
var e;
|
|
102
|
+
(e = this.c) == null || e.update(t);
|
|
103
|
+
}
|
|
104
|
+
}, u = {};
|
|
105
|
+
var b = /* @__PURE__ */ _(
|
|
106
|
+
y,
|
|
107
|
+
f,
|
|
108
|
+
m,
|
|
109
|
+
!1,
|
|
110
|
+
q,
|
|
111
|
+
null,
|
|
112
|
+
null,
|
|
113
|
+
null
|
|
114
|
+
);
|
|
115
|
+
function q(t) {
|
|
116
|
+
for (let e in u)
|
|
117
|
+
this[e] = u[e];
|
|
118
|
+
}
|
|
119
|
+
const C = /* @__PURE__ */ function() {
|
|
120
|
+
return b.exports;
|
|
121
|
+
}();
|
|
122
|
+
export {
|
|
123
|
+
C as _
|
|
124
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var n = function() {
|
|
2
|
+
var e = this, a = e.$createElement, s = e._self._c || a;
|
|
3
|
+
return s("Transition", {
|
|
4
|
+
attrs: {
|
|
5
|
+
name: "easy-popup"
|
|
6
|
+
}
|
|
7
|
+
}, [e.rendered ? s("div", {
|
|
8
|
+
directives: [{
|
|
9
|
+
name: "show",
|
|
10
|
+
rawName: "v-show",
|
|
11
|
+
value: e.visible,
|
|
12
|
+
expression: "visible"
|
|
13
|
+
}],
|
|
14
|
+
ref: "container",
|
|
15
|
+
class: ["easy-popup", {
|
|
16
|
+
"easy-popup__visible": e.visible,
|
|
17
|
+
"easy-popup__hide": !e.visible,
|
|
18
|
+
"flex-row": e.flexRow,
|
|
19
|
+
"flex-column": e.flexColumn
|
|
20
|
+
}],
|
|
21
|
+
style: e.position,
|
|
22
|
+
on: {
|
|
23
|
+
mouseleave: function(i) {
|
|
24
|
+
e.hideOnMouseLeave && e.hide();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}, [e._t("default")], 2) : e._e()]);
|
|
28
|
+
}, o = [];
|
|
29
|
+
export {
|
|
30
|
+
n as r,
|
|
31
|
+
o as s
|
|
32
|
+
};
|
|
@@ -0,0 +1,356 @@
|
|
|
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
|
+
};
|