@web-utils/component 2.7.29 → 2.7.31
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.7dec2bf2.js → config.75161c38.js} +29 -29
- package/dist/chunks/confirmable-mixin.851d6299.js +137 -0
- package/dist/chunks/dataformat.b8c8c01a.js +237 -0
- package/dist/chunks/detail.6135ade5.js +55 -0
- package/dist/chunks/dic.e57b75f2.js +215 -0
- package/dist/chunks/{event.fc358074.js → event.812c361c.js} +54 -23
- package/dist/chunks/{form-input-mixin.760cd65d.js → form-input-mixin.3e63b57f.js} +4 -4
- package/dist/chunks/{form-item-mixin.fa314b67.js → form-item-mixin.a56c101a.js} +44 -17
- package/dist/chunks/{form-pick-mixin.c4e0391b.js → form-pick-mixin.822300f3.js} +1 -1
- package/dist/chunks/{init.e0133910.js → init.38cbb3a2.js} +41 -21
- package/dist/chunks/{input-number-mixin.6849fa63.js → input-number-mixin.44b78389.js} +4 -4
- package/dist/chunks/{mixins.6a394a6c.js → mixins.e1939731.js} +3 -2
- package/dist/chunks/{packages.419bde01.js → packages.c4ea639d.js} +12 -6
- package/dist/chunks/{permission.07c49abf.js → permission.9c766972.js} +6 -1
- package/dist/chunks/slot.55598d0f.js +35 -0
- package/dist/chunks/{tab-mixin.9d568df9.js → tab-mixin.9d848bf6.js} +29 -11
- package/dist/chunks/util.b0d0b0ad.js +478 -0
- package/dist/chunks/{utils.d7f73f8d.js → utils.2a3ffac9.js} +89 -24
- package/dist/chunks/{utils.f44207f4.js → utils.a8891d2c.js} +9 -5
- package/dist/chunks/vueComponentNormalizer.9c6b8b3d.js +59 -0
- package/dist/components/address-input/index.js +30 -17
- package/dist/components/address-input/style.css +15 -1
- package/dist/components/affix/index.js +78 -28
- package/dist/components/affix/style.css +5 -1
- package/dist/components/aside-menu/index.js +14 -8
- package/dist/components/aside-menu/style.css +9 -1
- package/dist/components/avatar/index.js +33 -15
- package/dist/components/avatar/style.css +57 -1
- package/dist/components/awesome-button/index.js +45 -31
- package/dist/components/base.css +410 -1
- package/dist/components/capsule-tab/index.js +13 -7
- package/dist/components/capsule-tab/style.css +32 -1
- package/dist/components/card/index.js +33 -20
- package/dist/components/card/style.css +90 -1
- package/dist/components/carousel/index.js +18 -12
- package/dist/components/carousel/style.css +41 -1
- package/dist/components/chat/index.js +245 -139
- package/dist/components/chat/style.css +279 -1
- package/dist/components/chunk-file-uploader/index.js +63 -29
- package/dist/components/chunk-file-uploader/style.css +4 -1
- package/dist/components/chunk-file-uploader-button/index.js +15 -9
- package/dist/components/chunk-file-uploader-button/style.css +17 -1
- package/dist/components/chunk-file-uploader-drop/index.js +45 -27
- package/dist/components/chunk-file-uploader-drop/style.css +12 -1
- package/dist/components/chunk-file-uploader-file/index.js +150 -73
- package/dist/components/chunk-file-uploader-file/style.css +125 -1
- package/dist/components/chunk-file-uploader-files/index.js +15 -9
- package/dist/components/chunk-file-uploader-files/style.css +9 -1
- package/dist/components/chunk-file-uploader-list/index.js +16 -10
- package/dist/components/chunk-file-uploader-list/style.css +9 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +18 -10
- package/dist/components/chunk-file-uploader-un-support/style.css +6 -1
- package/dist/components/code-mirror-editor/index.js +75 -47
- package/dist/components/code-mirror-editor/style.css +17 -1
- package/dist/components/color-picker/index.js +62 -39
- package/dist/components/column/index.js +54 -29
- package/dist/components/column-default/index.js +47 -33
- package/dist/components/column-dynamic/index.js +26 -19
- package/dist/components/column-menu/index.js +98 -86
- package/dist/components/column-slot/index.js +135 -75
- package/dist/components/comment/index.js +28 -15
- package/dist/components/comment/style.css +92 -1
- package/dist/components/confirm-button/index.js +7 -5
- package/dist/components/confirmable/index.js +5 -4
- package/dist/components/context-menu/index.js +54 -32
- package/dist/components/context-menu/style.css +88 -1
- package/dist/components/count-up/index.js +55 -38
- package/dist/components/custom-scrollbar/index.js +45 -21
- package/dist/components/data-box/index.js +22 -16
- package/dist/components/data-box/style.css +58 -1
- package/dist/components/data-card/index.js +21 -15
- package/dist/components/data-card/style.css +46 -1
- package/dist/components/data-cardtext/index.js +19 -13
- package/dist/components/data-cardtext/style.css +36 -1
- package/dist/components/data-display/index.js +22 -16
- package/dist/components/data-display/style.css +37 -1
- package/dist/components/data-icons/index.js +23 -17
- package/dist/components/data-icons/style.css +53 -1
- package/dist/components/data-imgtext/index.js +26 -20
- package/dist/components/data-imgtext/style.css +70 -1
- package/dist/components/data-operatext/index.js +20 -14
- package/dist/components/data-operatext/style.css +81 -1
- package/dist/components/data-panel/index.js +21 -15
- package/dist/components/data-panel/style.css +37 -1
- package/dist/components/data-pay/index.js +29 -23
- package/dist/components/data-pay/style.css +102 -1
- package/dist/components/data-price/index.js +19 -13
- package/dist/components/data-price/style.css +81 -1
- package/dist/components/data-progress/index.js +26 -20
- package/dist/components/data-progress/style.css +30 -1
- package/dist/components/data-rotate/index.js +21 -15
- package/dist/components/data-rotate/style.css +50 -1
- package/dist/components/data-table-picker/index.js +47 -28
- package/dist/components/data-tabs/index.js +22 -16
- package/dist/components/data-tabs/style.css +70 -1
- package/dist/components/dialog-column/index.js +46 -33
- package/dist/components/dialog-excel/index.js +102 -53
- package/dist/components/dialog-filter/index.js +64 -51
- package/dist/components/dialog-form/index.js +56 -115
- package/dist/components/dialog-form/style.css +10 -1
- package/dist/components/dynamic-table/index.js +66 -42
- package/dist/components/dynamic-table/style.css +30 -1
- package/dist/components/e-charts/index.js +127 -46
- package/dist/components/e-charts/style.css +10 -1
- package/dist/components/easy-popup/index.js +32 -14
- package/dist/components/easy-popup/style.css +18 -1
- package/dist/components/editable-progress/index.js +64 -31
- package/dist/components/editable-progress/style.css +37 -1
- package/dist/components/editable-tree/index.js +513 -287
- package/dist/components/editable-tree/style.css +82 -1
- package/dist/components/egd-collapse/index.js +25 -12
- package/dist/components/egd-collapse-item/index.js +41 -25
- package/dist/components/element-dialog/index.js +101 -48
- package/dist/components/element-dialog/style.css +88 -1
- package/dist/components/empty-view/index.js +13 -7
- package/dist/components/empty-view/style.css +17 -1
- package/dist/components/error-view/index.js +12 -6
- package/dist/components/error-view/style.css +17 -1
- package/dist/components/flex-column/index.js +39 -17
- package/dist/components/flex-item/index.js +59 -24
- package/dist/components/flex-row/index.js +39 -17
- package/dist/components/flex-scroller/index.js +13 -7
- package/dist/components/flex-scroller/style.css +20 -1
- package/dist/components/flow/index.js +116 -64
- package/dist/components/flow/style.css +44 -1
- package/dist/components/flow-node/index.js +29 -21
- package/dist/components/flow-viewer/index.js +97 -52
- package/dist/components/flow-viewer/style.css +19 -1
- package/dist/components/form-button/index.js +12 -8
- package/dist/components/form-cascader/index.js +55 -40
- package/dist/components/form-checkbox-group/index.js +90 -60
- package/dist/components/form-checkbox-group/style.css +51 -1
- package/dist/components/form-date-picker/index.js +113 -44
- package/dist/components/form-group/index.js +23 -17
- package/dist/components/form-group/style.css +76 -1
- package/dist/components/form-holder/index.js +41 -30
- package/dist/components/form-input/index.js +42 -31
- package/dist/components/form-input-email/index.js +47 -30
- package/dist/components/form-input-id-card/index.js +40 -29
- package/dist/components/form-input-number/index.js +50 -38
- package/dist/components/form-input-number/style.css +12 -1
- package/dist/components/form-input-phone-number/index.js +40 -29
- package/dist/components/form-input-time/index.js +40 -29
- package/dist/components/form-item/index.js +99 -47
- package/dist/components/form-item/style.css +11 -1
- package/dist/components/form-item-config-provider/index.js +9 -8
- package/dist/components/form-item-group/index.js +69 -43
- package/dist/components/form-item-group/style.css +30 -1
- package/dist/components/form-radio-group/index.js +77 -53
- package/dist/components/form-radio-group/style.css +53 -1
- package/dist/components/form-select/index.js +71 -51
- package/dist/components/form-switch/index.js +41 -30
- package/dist/components/form-temp/index.js +49 -29
- package/dist/components/form-textarea/index.js +45 -34
- package/dist/components/form-view/index.js +152 -81
- package/dist/components/form-view/style.css +158 -1
- package/dist/components/fy-array/index.js +51 -43
- package/dist/components/fy-array/style.css +18 -1
- package/dist/components/fy-article/index.js +24 -13
- package/dist/components/fy-article/style.css +40 -1
- package/dist/components/fy-cascader/index.js +39 -29
- package/dist/components/fy-checkbox/index.js +38 -27
- package/dist/components/fy-checkbox/style.css +15 -1
- package/dist/components/fy-code/index.js +19 -12
- package/dist/components/fy-curd/index.js +290 -152
- package/dist/components/fy-curd/style.css +239 -1
- package/dist/components/fy-date/index.js +24 -18
- package/dist/components/fy-date/style.css +21 -1
- package/dist/components/fy-dialog-form/index.js +127 -54
- package/dist/components/fy-draggable/index.js +196 -73
- package/dist/components/fy-draggable/style.css +136 -1
- package/dist/components/fy-dynamic/index.js +116 -73
- package/dist/components/fy-dynamic/style.css +35 -1
- package/dist/components/fy-empty/index.js +15 -9
- package/dist/components/fy-empty/style.css +24 -1
- package/dist/components/fy-form/index.js +399 -221
- package/dist/components/fy-form/style.css +79 -1
- package/dist/components/fy-form-design/index.js +2267 -1630
- package/dist/components/fy-form-design/style.css +578 -1
- package/dist/components/fy-form-menu/index.js +43 -35
- package/dist/components/fy-input/index.js +46 -35
- package/dist/components/fy-input-color/index.js +40 -33
- package/dist/components/fy-input-icon/index.js +58 -37
- package/dist/components/fy-input-icon/style.css +39 -1
- package/dist/components/fy-input-map/index.js +113 -68
- package/dist/components/fy-input-map/style.css +50 -1
- package/dist/components/fy-input-number/index.js +29 -24
- package/dist/components/fy-input-table/index.js +82 -48
- package/dist/components/fy-input-table/style.css +10 -1
- package/dist/components/fy-input-tree/index.js +104 -60
- package/dist/components/fy-input-tree/style.css +25 -1
- package/dist/components/fy-progress/index.js +15 -10
- package/dist/components/fy-radio/index.js +20 -14
- package/dist/components/fy-radio/style.css +12 -1
- package/dist/components/fy-rate/index.js +21 -15
- package/dist/components/fy-rate/style.css +9 -1
- package/dist/components/fy-select/index.js +73 -55
- package/dist/components/fy-select/style.css +25 -1
- package/dist/components/fy-slider/index.js +22 -17
- package/dist/components/fy-switch/index.js +17 -12
- package/dist/components/fy-tabs/index.js +20 -12
- package/dist/components/fy-tabs/style.css +6 -0
- package/dist/components/fy-time/index.js +29 -18
- package/dist/components/fy-title/index.js +16 -8
- package/dist/components/fy-title/style.css +11 -1
- package/dist/components/fy-tree/index.js +135 -72
- package/dist/components/fy-tree/style.css +46 -1
- package/dist/components/fy-u-editor/index.js +172 -67
- package/dist/components/fy-u-editor/style.css +15 -1
- package/dist/components/fy-upload/index.js +317 -148
- package/dist/components/fy-upload/style.css +60 -1
- package/dist/components/guide-steps/index.js +31 -17
- package/dist/components/guide-steps/style.css +34 -1
- package/dist/components/header-menu/index.js +86 -66
- package/dist/components/header-search/index.js +92 -60
- package/dist/components/highlight-j-s/index.js +28 -15
- package/dist/components/highlight-j-s/style.css +21 -1
- package/dist/components/icon-card/index.js +13 -7
- package/dist/components/icon-card/style.css +56 -1
- package/dist/components/icon-temp/index.js +12 -6
- package/dist/components/icon-temp/style.css +21 -1
- package/dist/components/iframe-window/index.js +20 -14
- package/dist/components/iframe-window/style.css +20 -1
- package/dist/components/image-cropper/index.js +71 -162
- package/dist/components/image-cropper/style.css +34 -1
- package/dist/components/image-preview/index.js +78 -170
- package/dist/components/image-preview/style.css +72 -1
- package/dist/components/image-viewer/index.js +40 -22
- package/dist/components/image-viewer/style.css +21 -1
- package/dist/components/input-number/index.js +122 -56
- package/dist/components/input-number/style.css +15 -1
- package/dist/components/input-number-range/index.js +32 -20
- package/dist/components/input-number-range/style.css +12 -1
- package/dist/components/keep-view-alive/index.js +68 -21
- package/dist/components/keyboard/index.js +217 -132
- package/dist/components/keyboard/style.css +547 -1
- package/dist/components/license/index.js +81 -35
- package/dist/components/loading-view/index.js +12 -6
- package/dist/components/loading-view/style.css +17 -1
- package/dist/components/login/index.js +91 -62
- package/dist/components/login/style.css +25 -1
- package/dist/components/name-avatar/index.js +32 -10
- package/dist/components/name-avatar/style.css +35 -1
- package/dist/components/nav-bar/index.js +21 -11
- package/dist/components/nav-bar/style.css +17 -1
- package/dist/components/not-implement/index.js +16 -8
- package/dist/components/not-implement/style.css +15 -1
- package/dist/components/notice/index.js +40 -27
- package/dist/components/notice/style.css +54 -1
- package/dist/components/page/index.js +13 -7
- package/dist/components/page/style.css +12 -1
- package/dist/components/page-header/index.js +15 -9
- package/dist/components/page-header/style.css +14 -1
- package/dist/components/page-index/index.js +62 -37
- package/dist/components/page-index/style.css +23 -1
- package/dist/components/page-index-top/index.js +53 -34
- package/dist/components/page-skeleton/index.js +15 -9
- package/dist/components/page-skeleton/style.css +23 -1
- package/dist/components/page-skeleton-new/index.js +15 -9
- package/dist/components/page-skeleton-new/style.css +42 -1
- package/dist/components/pageable-table/index.js +187 -106
- package/dist/components/pageable-table/style.css +72 -1
- package/dist/components/pageable-view/index.js +164 -80
- package/dist/components/pageable-view/style.css +69 -1
- package/dist/components/photo-swipe/index.js +92 -46
- package/dist/components/process-designer/index.js +961 -772
- package/dist/components/process-designer/style.css +1186 -1
- package/dist/components/properties-panel/index.js +1488 -1044
- package/dist/components/properties-panel/style.css +122 -1
- package/dist/components/queue/index.js +24 -12
- package/dist/components/record-video/index.js +53 -27
- package/dist/components/record-video/style.css +53 -1
- package/dist/components/resize-observer/index.js +52 -18
- package/dist/components/resize-observer/style.css +31 -1
- package/dist/components/search/index.js +41 -22
- package/dist/components/search/style.css +57 -1
- package/dist/components/search-popover/index.js +153 -91
- package/dist/components/search-popover/style.css +93 -1
- package/dist/components/sign/index.js +138 -35
- package/dist/components/sign/style.css +12 -1
- package/dist/components/sign-panel/index.js +96 -46
- package/dist/components/sign-panel/style.css +97 -1
- package/dist/components/skeleton/index.js +22 -12
- package/dist/components/skeleton/style.css +61 -1
- package/dist/components/split-pane/index.js +125 -60
- package/dist/components/split-pane/style.css +100 -1
- package/dist/components/stateful/index.js +8 -5
- package/dist/components/stateful/style.css +33 -1
- package/dist/components/static-pageable-table/index.js +22 -15
- package/dist/components/static-pageable-table/style.css +9 -1
- package/dist/components/swiper/index.js +127 -58
- package/dist/components/swiper/style.css +43 -1
- package/dist/components/tab/index.js +34 -16
- package/dist/components/tab/style.css +122 -1
- package/dist/components/tab-item/index.js +14 -9
- package/dist/components/table-column/index.js +26 -17
- package/dist/components/table-page/index.js +42 -23
- package/dist/components/table-view/index.js +162 -87
- package/dist/components/table-view/style.css +95 -1
- package/dist/components/tag-render/index.js +41 -22
- package/dist/components/tag-render/style.css +33 -1
- package/dist/components/text-ellipsis/index.js +48 -26
- package/dist/components/text-ellipsis/style.css +9 -1
- package/dist/components/tinymce-editor/index.js +80 -60
- package/dist/components/tinymce-editor/style.css +43 -1
- package/dist/components/tinymce-wrapper/index.js +77 -41
- package/dist/components/tinymce-wrapper/style.css +36 -1
- package/dist/components/toolbar/index.js +46 -25
- package/dist/components/toolbar/style.css +39 -1
- package/dist/components/toolbar-button/index.js +46 -35
- package/dist/components/toolbar-button/style.css +21 -1
- package/dist/components/trigger/index.js +15 -8
- package/dist/components/verify/index.js +15 -8
- package/dist/components/verify/style.css +15 -1
- package/dist/components/vue-tags-input/index.js +233 -113
- package/dist/components/vue-tags-input/style.css +688 -1
- package/dist/components/watermark/index.js +33 -14
- package/dist/components/watermark/style.css +11 -1
- package/dist/index.css +2434 -1750
- package/dist/index.es.js +15982 -9409
- package/package.json +4 -4
- package/web-types.json +1 -1
- package/dist/chunks/confirmable-mixin.35bd1934.js +0 -104
- package/dist/chunks/dataformat.9cc4428a.js +0 -158
- package/dist/chunks/detail.544c52b0.js +0 -29
- package/dist/chunks/dic.9de2fe5a.js +0 -135
- package/dist/chunks/slot.a7387ecc.js +0 -27
- package/dist/chunks/util.89913643.js +0 -261
- package/dist/chunks/vueComponentNormalizer.77ec6792.js +0 -32
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
1
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
2
2
|
var render = function() {
|
|
3
|
-
var _vm = this
|
|
3
|
+
var _vm = this;
|
|
4
|
+
var _h = _vm.$createElement;
|
|
5
|
+
var _c = _vm._self._c || _h;
|
|
4
6
|
return _c("div", {
|
|
5
7
|
staticClass: "avue-tabs"
|
|
6
8
|
}, [_c("ElTabs", {
|
|
7
9
|
attrs: {
|
|
8
10
|
"tab-position": _vm.parentOption.position,
|
|
9
|
-
type: _vm.parentOption.type
|
|
11
|
+
"type": _vm.parentOption.type
|
|
10
12
|
},
|
|
11
13
|
model: {
|
|
12
14
|
value: _vm.active,
|
|
@@ -19,26 +21,30 @@ var render = function() {
|
|
|
19
21
|
return _c("ElTabPane", {
|
|
20
22
|
key: index,
|
|
21
23
|
attrs: {
|
|
22
|
-
name: `${index}`,
|
|
23
|
-
disabled: column.disabled
|
|
24
|
+
"name": `${index}`,
|
|
25
|
+
"disabled": column.disabled
|
|
24
26
|
}
|
|
25
27
|
}, [_c("span", {
|
|
26
28
|
attrs: {
|
|
27
|
-
slot: "label"
|
|
29
|
+
"slot": "label"
|
|
28
30
|
},
|
|
29
31
|
slot: "label"
|
|
30
32
|
}, [_c("i", {
|
|
31
33
|
class: column.icon
|
|
32
34
|
}), _vm._v(" " + _vm._s(column.label) + " ")])]);
|
|
33
35
|
}), 1)], 1);
|
|
34
|
-
}
|
|
36
|
+
};
|
|
37
|
+
var staticRenderFns = [];
|
|
38
|
+
const FyTabs_vue_vue_type_style_index_0_lang = "";
|
|
35
39
|
const __vue2_script = {
|
|
36
40
|
name: "FyTabs",
|
|
37
41
|
props: {
|
|
38
42
|
option: {
|
|
39
43
|
type: Object,
|
|
40
|
-
required:
|
|
41
|
-
default: () =>
|
|
44
|
+
required: true,
|
|
45
|
+
default: () => {
|
|
46
|
+
return {};
|
|
47
|
+
}
|
|
42
48
|
}
|
|
43
49
|
},
|
|
44
50
|
data() {
|
|
@@ -67,20 +73,22 @@ const __vue2_script = {
|
|
|
67
73
|
this.active = `${active}`;
|
|
68
74
|
}
|
|
69
75
|
}
|
|
70
|
-
}
|
|
76
|
+
};
|
|
77
|
+
const __cssModules = {};
|
|
71
78
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
72
79
|
__vue2_script,
|
|
73
80
|
render,
|
|
74
81
|
staticRenderFns,
|
|
75
|
-
|
|
82
|
+
false,
|
|
76
83
|
__vue2_injectStyles,
|
|
77
84
|
null,
|
|
78
85
|
null,
|
|
79
86
|
null
|
|
80
87
|
);
|
|
81
88
|
function __vue2_injectStyles(context) {
|
|
82
|
-
for (let o in __cssModules)
|
|
89
|
+
for (let o in __cssModules) {
|
|
83
90
|
this[o] = __cssModules[o];
|
|
91
|
+
}
|
|
84
92
|
}
|
|
85
93
|
const FyTabs = /* @__PURE__ */ function() {
|
|
86
94
|
return __component__.exports;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { p as props, e as event } from "../../chunks/event.
|
|
1
|
+
import { p as props, e as event } from "../../chunks/event.812c361c.js";
|
|
2
2
|
import { isBlank } from "@web-utils/core";
|
|
3
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
3
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
4
4
|
var render = function() {
|
|
5
|
-
var _vm = this
|
|
5
|
+
var _vm = this;
|
|
6
|
+
var _h = _vm.$createElement;
|
|
7
|
+
var _c = _vm._self._c || _h;
|
|
6
8
|
return _c("div", {
|
|
7
9
|
staticClass: "avue-time"
|
|
8
10
|
}, [_c(_vm.componentName, {
|
|
@@ -10,26 +12,26 @@ var render = function() {
|
|
|
10
12
|
attrs: {
|
|
11
13
|
"popper-class": _vm.popperClass,
|
|
12
14
|
"is-range": _vm.isRange,
|
|
13
|
-
size: _vm.size,
|
|
14
|
-
editable: _vm.editable,
|
|
15
|
+
"size": _vm.size,
|
|
16
|
+
"editable": _vm.editable,
|
|
15
17
|
"default-value": _vm.defaultValue,
|
|
16
18
|
"range-separator": _vm.rangeSeparator,
|
|
17
19
|
"arrow-control": _vm.arrowControl,
|
|
18
20
|
"start-placeholder": _vm.startPlaceholder || "开始",
|
|
19
21
|
"end-placeholder": _vm.endPlaceholder || "结束",
|
|
20
|
-
format: _vm.format,
|
|
21
|
-
readonly: _vm.readonly,
|
|
22
|
-
clearable: _vm.clearableVal,
|
|
22
|
+
"format": _vm.format,
|
|
23
|
+
"readonly": _vm.readonly,
|
|
24
|
+
"clearable": _vm.clearableVal,
|
|
23
25
|
"picker-options": _vm.pickerOptions,
|
|
24
26
|
"value-format": _vm.valueFormat,
|
|
25
|
-
placeholder: _vm.placeholder,
|
|
26
|
-
disabled: _vm.disabled
|
|
27
|
+
"placeholder": _vm.placeholder,
|
|
28
|
+
"disabled": _vm.disabled
|
|
27
29
|
},
|
|
28
30
|
on: {
|
|
29
|
-
change: _vm.handleChange
|
|
31
|
+
"change": _vm.handleChange
|
|
30
32
|
},
|
|
31
33
|
nativeOn: {
|
|
32
|
-
click: function($event) {
|
|
34
|
+
"click": function($event) {
|
|
33
35
|
return _vm.handleClick.apply(null, arguments);
|
|
34
36
|
}
|
|
35
37
|
},
|
|
@@ -41,7 +43,8 @@ var render = function() {
|
|
|
41
43
|
expression: "text"
|
|
42
44
|
}
|
|
43
45
|
})], 1);
|
|
44
|
-
}
|
|
46
|
+
};
|
|
47
|
+
var staticRenderFns = [];
|
|
45
48
|
const __vue2_script = {
|
|
46
49
|
name: "FyTime",
|
|
47
50
|
mixins: [props, event],
|
|
@@ -60,7 +63,11 @@ const __vue2_script = {
|
|
|
60
63
|
computed: {
|
|
61
64
|
componentName() {
|
|
62
65
|
const pickerOptions = this.pickerOptions || {};
|
|
63
|
-
|
|
66
|
+
if (pickerOptions.start || pickerOptions.end || pickerOptions.step) {
|
|
67
|
+
return "elTimeSelect";
|
|
68
|
+
} else {
|
|
69
|
+
return "elTimePicker";
|
|
70
|
+
}
|
|
64
71
|
},
|
|
65
72
|
isRange() {
|
|
66
73
|
return this.type === "timerange";
|
|
@@ -68,24 +75,28 @@ const __vue2_script = {
|
|
|
68
75
|
},
|
|
69
76
|
watch: {
|
|
70
77
|
text() {
|
|
71
|
-
Array.isArray(this.text) && isBlank(this.text)
|
|
78
|
+
if (Array.isArray(this.text) && isBlank(this.text)) {
|
|
79
|
+
this.text = this.text.join(",");
|
|
80
|
+
}
|
|
72
81
|
}
|
|
73
82
|
},
|
|
74
83
|
methods: {}
|
|
75
|
-
}
|
|
84
|
+
};
|
|
85
|
+
const __cssModules = {};
|
|
76
86
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
77
87
|
__vue2_script,
|
|
78
88
|
render,
|
|
79
89
|
staticRenderFns,
|
|
80
|
-
|
|
90
|
+
false,
|
|
81
91
|
__vue2_injectStyles,
|
|
82
92
|
null,
|
|
83
93
|
null,
|
|
84
94
|
null
|
|
85
95
|
);
|
|
86
96
|
function __vue2_injectStyles(context) {
|
|
87
|
-
for (let o in __cssModules)
|
|
97
|
+
for (let o in __cssModules) {
|
|
88
98
|
this[o] = __cssModules[o];
|
|
99
|
+
}
|
|
89
100
|
}
|
|
90
101
|
const FyTime = /* @__PURE__ */ function() {
|
|
91
102
|
return __component__.exports;
|
|
@@ -1,36 +1,44 @@
|
|
|
1
|
-
import { p as props, e as event } from "../../chunks/event.
|
|
2
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
1
|
+
import { p as props, e as event } from "../../chunks/event.812c361c.js";
|
|
2
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
3
3
|
var render = function() {
|
|
4
|
-
var _vm = this
|
|
4
|
+
var _vm = this;
|
|
5
|
+
var _h = _vm.$createElement;
|
|
6
|
+
var _c = _vm._self._c || _h;
|
|
5
7
|
return _c("div", {
|
|
6
8
|
staticClass: "avue-title"
|
|
7
9
|
}, [_c("p", {
|
|
8
10
|
style: _vm.styles
|
|
9
11
|
}, [_vm._v(" " + _vm._s(_vm.text) + " ")])]);
|
|
10
|
-
}
|
|
12
|
+
};
|
|
13
|
+
var staticRenderFns = [];
|
|
14
|
+
const FyTitle_vue_vue_type_style_index_0_lang = "";
|
|
11
15
|
const __vue2_script = {
|
|
12
16
|
name: "FyTitle",
|
|
13
17
|
mixins: [props, event],
|
|
14
18
|
props: {
|
|
15
19
|
styles: {
|
|
16
20
|
type: Object,
|
|
17
|
-
default: () =>
|
|
21
|
+
default: () => {
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
18
24
|
}
|
|
19
25
|
}
|
|
20
|
-
}
|
|
26
|
+
};
|
|
27
|
+
const __cssModules = {};
|
|
21
28
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
22
29
|
__vue2_script,
|
|
23
30
|
render,
|
|
24
31
|
staticRenderFns,
|
|
25
|
-
|
|
32
|
+
false,
|
|
26
33
|
__vue2_injectStyles,
|
|
27
34
|
null,
|
|
28
35
|
null,
|
|
29
36
|
null
|
|
30
37
|
);
|
|
31
38
|
function __vue2_injectStyles(context) {
|
|
32
|
-
for (let o in __cssModules)
|
|
39
|
+
for (let o in __cssModules) {
|
|
33
40
|
this[o] = __cssModules[o];
|
|
41
|
+
}
|
|
34
42
|
}
|
|
35
43
|
const FyTitle = /* @__PURE__ */ function() {
|
|
36
44
|
return __component__.exports;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { s as setPx, o as optVal, D as DIC_PROPS } from "../../chunks/util.
|
|
2
|
-
import { p as permission } from "../../chunks/permission.
|
|
1
|
+
import { s as setPx, o as optVal, D as DIC_PROPS } from "../../chunks/util.b0d0b0ad.js";
|
|
2
|
+
import { p as permission } from "../../chunks/permission.9c766972.js";
|
|
3
3
|
import { isBlank } from "@web-utils/core";
|
|
4
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
4
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
5
5
|
var render = function() {
|
|
6
|
-
var _vm = this
|
|
6
|
+
var _vm = this;
|
|
7
|
+
var _h = _vm.$createElement;
|
|
8
|
+
var _c = _vm._self._c || _h;
|
|
7
9
|
return _c("div", {
|
|
8
10
|
staticClass: "avue-tree"
|
|
9
|
-
}, [_vm.optVal(_vm.option.filter,
|
|
11
|
+
}, [_vm.optVal(_vm.option.filter, true) ? _c("div", {
|
|
10
12
|
staticClass: "avue-tree__filter"
|
|
11
13
|
}, [_c("ElInput", {
|
|
12
14
|
attrs: {
|
|
13
|
-
placeholder: _vm.optVal(_vm.option.filterText, "输入关键字进行过滤"),
|
|
14
|
-
size: _vm.size
|
|
15
|
+
"placeholder": _vm.optVal(_vm.option.filterText, "输入关键字进行过滤"),
|
|
16
|
+
"size": _vm.size
|
|
15
17
|
},
|
|
16
18
|
model: {
|
|
17
19
|
value: _vm.filterValue,
|
|
@@ -20,7 +22,7 @@ var render = function() {
|
|
|
20
22
|
},
|
|
21
23
|
expression: "filterValue"
|
|
22
24
|
}
|
|
23
|
-
}), _vm.optVal(_vm.option.addBtn,
|
|
25
|
+
}), _vm.optVal(_vm.option.addBtn, true) ? _c("ElButton", {
|
|
24
26
|
directives: [{
|
|
25
27
|
name: "permission",
|
|
26
28
|
rawName: "v-permission",
|
|
@@ -28,11 +30,11 @@ var render = function() {
|
|
|
28
30
|
expression: "getPermission('addBtn')"
|
|
29
31
|
}],
|
|
30
32
|
attrs: {
|
|
31
|
-
size: _vm.size,
|
|
32
|
-
icon: "el-icon-plus"
|
|
33
|
+
"size": _vm.size,
|
|
34
|
+
"icon": "el-icon-plus"
|
|
33
35
|
},
|
|
34
36
|
on: {
|
|
35
|
-
click: _vm.parentAdd
|
|
37
|
+
"click": _vm.parentAdd
|
|
36
38
|
}
|
|
37
39
|
}) : _vm._t("addBtn")], 2) : _vm._e(), _c("ElScrollbar", {
|
|
38
40
|
staticClass: "avue-tree__content"
|
|
@@ -45,15 +47,15 @@ var render = function() {
|
|
|
45
47
|
}],
|
|
46
48
|
ref: "tree",
|
|
47
49
|
attrs: {
|
|
48
|
-
data: _vm.data,
|
|
49
|
-
lazy: _vm.lazy,
|
|
50
|
-
load: _vm.treeLoad,
|
|
51
|
-
props: _vm.treeProps,
|
|
50
|
+
"data": _vm.data,
|
|
51
|
+
"lazy": _vm.lazy,
|
|
52
|
+
"load": _vm.treeLoad,
|
|
53
|
+
"props": _vm.treeProps,
|
|
52
54
|
"icon-class": _vm.iconClass,
|
|
53
|
-
indent: _vm.indent,
|
|
55
|
+
"indent": _vm.indent,
|
|
54
56
|
"highlight-current": !_vm.multiple,
|
|
55
57
|
"show-checkbox": _vm.multiple,
|
|
56
|
-
accordion: _vm.accordion,
|
|
58
|
+
"accordion": _vm.accordion,
|
|
57
59
|
"node-key": _vm.valueKey,
|
|
58
60
|
"check-strictly": _vm.checkStrictly,
|
|
59
61
|
"check-on-click-node": _vm.checkOnClickNode,
|
|
@@ -72,22 +74,22 @@ var render = function() {
|
|
|
72
74
|
fn: function(_ref) {
|
|
73
75
|
var sNode = _ref.node, sData = _ref.data;
|
|
74
76
|
return _vm.$scopedSlots.default ? _vm._t("default", null, {
|
|
75
|
-
node: sNode,
|
|
76
|
-
data: sData
|
|
77
|
+
"node": sNode,
|
|
78
|
+
"data": sData
|
|
77
79
|
}) : _c("span", {
|
|
78
80
|
staticClass: "el-tree-node__label"
|
|
79
81
|
}, [_c("span", [_vm._v(_vm._s(sNode.label))])]);
|
|
80
82
|
}
|
|
81
|
-
}], null,
|
|
83
|
+
}], null, true)
|
|
82
84
|
})], 1), _vm.client.show && _vm.menu ? _c("div", {
|
|
83
85
|
staticClass: "el-cascader-panel is-bordered avue-tree__menu",
|
|
84
86
|
style: _vm.styleName,
|
|
85
87
|
on: {
|
|
86
|
-
click: function($event) {
|
|
87
|
-
_vm.client.show =
|
|
88
|
+
"click": function($event) {
|
|
89
|
+
_vm.client.show = false;
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
|
-
}, [_vm.optVal(_vm.option.addBtn,
|
|
92
|
+
}, [_vm.optVal(_vm.option.addBtn, true) ? _c("div", {
|
|
91
93
|
directives: [{
|
|
92
94
|
name: "permission",
|
|
93
95
|
rawName: "v-permission",
|
|
@@ -96,9 +98,9 @@ var render = function() {
|
|
|
96
98
|
}],
|
|
97
99
|
staticClass: "avue-tree__item",
|
|
98
100
|
on: {
|
|
99
|
-
click: _vm.rowAdd
|
|
101
|
+
"click": _vm.rowAdd
|
|
100
102
|
}
|
|
101
|
-
}, [_vm._v(" " + _vm._s(_vm.menuIcon("addBtn")) + " ")]) : _vm._e(), _vm.optVal(_vm.option.editBtn,
|
|
103
|
+
}, [_vm._v(" " + _vm._s(_vm.menuIcon("addBtn")) + " ")]) : _vm._e(), _vm.optVal(_vm.option.editBtn, true) ? _c("div", {
|
|
102
104
|
directives: [{
|
|
103
105
|
name: "permission",
|
|
104
106
|
rawName: "v-permission",
|
|
@@ -107,9 +109,9 @@ var render = function() {
|
|
|
107
109
|
}],
|
|
108
110
|
staticClass: "avue-tree__item",
|
|
109
111
|
on: {
|
|
110
|
-
click: _vm.rowEdit
|
|
112
|
+
"click": _vm.rowEdit
|
|
111
113
|
}
|
|
112
|
-
}, [_vm._v(" " + _vm._s(_vm.menuIcon("editBtn")) + " ")]) : _vm._e(), _vm.optVal(_vm.option.delBtn,
|
|
114
|
+
}, [_vm._v(" " + _vm._s(_vm.menuIcon("editBtn")) + " ")]) : _vm._e(), _vm.optVal(_vm.option.delBtn, true) ? _c("div", {
|
|
113
115
|
directives: [{
|
|
114
116
|
name: "permission",
|
|
115
117
|
rawName: "v-permission",
|
|
@@ -118,16 +120,16 @@ var render = function() {
|
|
|
118
120
|
}],
|
|
119
121
|
staticClass: "avue-tree__item",
|
|
120
122
|
on: {
|
|
121
|
-
click: _vm.rowRemove
|
|
123
|
+
"click": _vm.rowRemove
|
|
122
124
|
}
|
|
123
125
|
}, [_vm._v(" " + _vm._s(_vm.menuIcon("delBtn")) + " ")]) : _vm._e(), _vm._t("menu", null, {
|
|
124
|
-
node: _vm.node
|
|
126
|
+
"node": _vm.node
|
|
125
127
|
})], 2) : _vm._e(), _vm.box ? _c("div", [_c("ElementDialog", {
|
|
126
128
|
attrs: {
|
|
127
|
-
title: _vm.node[_vm.labelKey] || _vm.title,
|
|
128
|
-
visible: _vm.box,
|
|
129
|
+
"title": _vm.node[_vm.labelKey] || _vm.title,
|
|
130
|
+
"visible": _vm.box,
|
|
129
131
|
"before-close": _vm.hide,
|
|
130
|
-
width: _vm.optVal(_vm.option.dialogWidth, "50%")
|
|
132
|
+
"width": _vm.optVal(_vm.option.dialogWidth, "50%")
|
|
131
133
|
},
|
|
132
134
|
on: {
|
|
133
135
|
"update:visible": function($event) {
|
|
@@ -137,10 +139,10 @@ var render = function() {
|
|
|
137
139
|
}, [_c("FyForm", {
|
|
138
140
|
ref: "form",
|
|
139
141
|
attrs: {
|
|
140
|
-
option: _vm.formOption
|
|
142
|
+
"option": _vm.formOption
|
|
141
143
|
},
|
|
142
144
|
on: {
|
|
143
|
-
submit: _vm.handleSubmit
|
|
145
|
+
"submit": _vm.handleSubmit
|
|
144
146
|
},
|
|
145
147
|
model: {
|
|
146
148
|
value: _vm.form,
|
|
@@ -150,7 +152,9 @@ var render = function() {
|
|
|
150
152
|
expression: "form"
|
|
151
153
|
}
|
|
152
154
|
})], 1)], 1) : _vm._e()], 1);
|
|
153
|
-
}
|
|
155
|
+
};
|
|
156
|
+
var staticRenderFns = [];
|
|
157
|
+
const FyTree_vue_vue_type_style_index_0_lang = "";
|
|
154
158
|
const __vue2_script = {
|
|
155
159
|
name: "FyTree",
|
|
156
160
|
directives: {
|
|
@@ -164,30 +168,38 @@ const __vue2_script = {
|
|
|
164
168
|
beforeOpen: Function,
|
|
165
169
|
permission: {
|
|
166
170
|
type: [Function, Object],
|
|
167
|
-
default: () =>
|
|
171
|
+
default: () => {
|
|
172
|
+
return {};
|
|
173
|
+
}
|
|
168
174
|
},
|
|
169
175
|
iconClass: {
|
|
170
176
|
type: String
|
|
171
177
|
},
|
|
172
178
|
loading: {
|
|
173
179
|
type: Boolean,
|
|
174
|
-
default:
|
|
180
|
+
default: false
|
|
175
181
|
},
|
|
176
182
|
expandOnClickNode: {
|
|
177
183
|
type: Boolean,
|
|
178
|
-
default:
|
|
184
|
+
default: false
|
|
179
185
|
},
|
|
180
186
|
option: {
|
|
181
187
|
type: Object,
|
|
182
|
-
default: () =>
|
|
188
|
+
default: () => {
|
|
189
|
+
return {};
|
|
190
|
+
}
|
|
183
191
|
},
|
|
184
192
|
data: {
|
|
185
193
|
type: Array,
|
|
186
|
-
default: () =>
|
|
194
|
+
default: () => {
|
|
195
|
+
return [];
|
|
196
|
+
}
|
|
187
197
|
},
|
|
188
198
|
value: {
|
|
189
199
|
type: Object,
|
|
190
|
-
default: () =>
|
|
200
|
+
default: () => {
|
|
201
|
+
return {};
|
|
202
|
+
}
|
|
191
203
|
}
|
|
192
204
|
},
|
|
193
205
|
data() {
|
|
@@ -196,9 +208,9 @@ const __vue2_script = {
|
|
|
196
208
|
client: {
|
|
197
209
|
x: 0,
|
|
198
210
|
y: 0,
|
|
199
|
-
show:
|
|
211
|
+
show: false
|
|
200
212
|
},
|
|
201
|
-
box:
|
|
213
|
+
box: false,
|
|
202
214
|
type: "",
|
|
203
215
|
node: {},
|
|
204
216
|
form: {}
|
|
@@ -217,7 +229,7 @@ const __vue2_script = {
|
|
|
217
229
|
});
|
|
218
230
|
},
|
|
219
231
|
menu() {
|
|
220
|
-
return optVal(this.option.menu,
|
|
232
|
+
return optVal(this.option.menu, true);
|
|
221
233
|
},
|
|
222
234
|
title() {
|
|
223
235
|
return this.option.title || "添加";
|
|
@@ -287,13 +299,16 @@ const __vue2_script = {
|
|
|
287
299
|
this.form = val;
|
|
288
300
|
},
|
|
289
301
|
form(val) {
|
|
290
|
-
this.$emit("input", val)
|
|
302
|
+
this.$emit("input", val);
|
|
303
|
+
this.$emit("change", val);
|
|
291
304
|
}
|
|
292
305
|
},
|
|
293
306
|
mounted() {
|
|
294
307
|
document.addEventListener("click", (e) => {
|
|
295
|
-
this.$el.contains(e.target)
|
|
296
|
-
|
|
308
|
+
if (!this.$el.contains(e.target))
|
|
309
|
+
this.client.show = false;
|
|
310
|
+
});
|
|
311
|
+
this.initFun();
|
|
297
312
|
},
|
|
298
313
|
methods: {
|
|
299
314
|
optVal,
|
|
@@ -301,7 +316,13 @@ const __vue2_script = {
|
|
|
301
316
|
return optVal(this.option[`${value}Text`], value);
|
|
302
317
|
},
|
|
303
318
|
getPermission(key) {
|
|
304
|
-
|
|
319
|
+
if (typeof this.permission === "function") {
|
|
320
|
+
return this.permission(key, this.node.data || {});
|
|
321
|
+
} else if (!isBlank(this.permission[key])) {
|
|
322
|
+
return this.permission[key];
|
|
323
|
+
} else {
|
|
324
|
+
return true;
|
|
325
|
+
}
|
|
305
326
|
},
|
|
306
327
|
initFun() {
|
|
307
328
|
[
|
|
@@ -328,7 +349,10 @@ const __vue2_script = {
|
|
|
328
349
|
});
|
|
329
350
|
},
|
|
330
351
|
nodeContextmenu(e, data, node) {
|
|
331
|
-
this.node = node
|
|
352
|
+
this.node = node;
|
|
353
|
+
this.client.x = e.clientX;
|
|
354
|
+
this.client.y = e.clientY;
|
|
355
|
+
this.client.show = true;
|
|
332
356
|
},
|
|
333
357
|
handleCheckChange(data, checked, indeterminate) {
|
|
334
358
|
this.$emit("check-change", data, checked, indeterminate);
|
|
@@ -337,20 +361,40 @@ const __vue2_script = {
|
|
|
337
361
|
this.addFlag ? this.save(form, done) : this.update(form, done);
|
|
338
362
|
},
|
|
339
363
|
nodeClick(data, node, nodeComp) {
|
|
340
|
-
this.client.show =
|
|
364
|
+
this.client.show = false;
|
|
365
|
+
this.$emit("node-click", data, node, nodeComp);
|
|
341
366
|
},
|
|
342
367
|
filterNode(value, data) {
|
|
343
|
-
|
|
368
|
+
if (typeof this.filterNodeMethod === "function") {
|
|
369
|
+
return this.filterNodeMethod(value, data);
|
|
370
|
+
}
|
|
371
|
+
if (!value)
|
|
372
|
+
return true;
|
|
373
|
+
return data[this.labelKey].indexOf(value) !== -1;
|
|
344
374
|
},
|
|
345
375
|
hide(done) {
|
|
346
376
|
const callback = () => {
|
|
347
|
-
done && done()
|
|
377
|
+
done && done();
|
|
378
|
+
this.node = {};
|
|
379
|
+
this.form = {};
|
|
380
|
+
this.box = false;
|
|
348
381
|
};
|
|
349
|
-
typeof this.beforeClose
|
|
382
|
+
if (typeof this.beforeClose === "function") {
|
|
383
|
+
this.beforeClose(callback, this.type);
|
|
384
|
+
} else {
|
|
385
|
+
callback();
|
|
386
|
+
}
|
|
350
387
|
},
|
|
351
388
|
save(data, done) {
|
|
352
389
|
const callback = (form) => {
|
|
353
|
-
form = form || this.form
|
|
390
|
+
form = form || this.form;
|
|
391
|
+
if (this.type === "add") {
|
|
392
|
+
this.$refs.tree.append(form, this.node.data[this.valueKey]);
|
|
393
|
+
} else if (this.type === "parentAdd") {
|
|
394
|
+
this.$refs.tree.append(form);
|
|
395
|
+
}
|
|
396
|
+
this.hide();
|
|
397
|
+
done();
|
|
354
398
|
};
|
|
355
399
|
this.$emit("save", this.node, data, callback, done);
|
|
356
400
|
},
|
|
@@ -362,29 +406,40 @@ const __vue2_script = {
|
|
|
362
406
|
const { parentList, index } = this.findData(rowKey);
|
|
363
407
|
if (parentList) {
|
|
364
408
|
const oldRow = parentList.splice(index, 1)[0];
|
|
365
|
-
form[this.childrenKey] = oldRow[this.childrenKey]
|
|
409
|
+
form[this.childrenKey] = oldRow[this.childrenKey];
|
|
410
|
+
parentList.splice(index, 0, form);
|
|
366
411
|
}
|
|
367
|
-
this.hide()
|
|
412
|
+
this.hide();
|
|
413
|
+
done();
|
|
368
414
|
};
|
|
369
415
|
this.$emit("update", this.node, data, callback, done);
|
|
370
416
|
},
|
|
371
417
|
rowEdit() {
|
|
372
|
-
this.type = "edit"
|
|
418
|
+
this.type = "edit";
|
|
419
|
+
this.form = this.node.data;
|
|
420
|
+
this.show();
|
|
373
421
|
},
|
|
374
422
|
parentAdd() {
|
|
375
|
-
this.type = "parentAdd"
|
|
423
|
+
this.type = "parentAdd";
|
|
424
|
+
this.show();
|
|
376
425
|
},
|
|
377
426
|
rowAdd() {
|
|
378
|
-
this.type = "add"
|
|
427
|
+
this.type = "add";
|
|
428
|
+
this.show();
|
|
379
429
|
},
|
|
380
430
|
show() {
|
|
381
431
|
const callback = () => {
|
|
382
|
-
this.client.show =
|
|
432
|
+
this.client.show = false;
|
|
433
|
+
this.box = true;
|
|
383
434
|
};
|
|
384
|
-
typeof this.beforeOpen
|
|
435
|
+
if (typeof this.beforeOpen === "function") {
|
|
436
|
+
this.beforeOpen(callback, this.type);
|
|
437
|
+
} else {
|
|
438
|
+
callback();
|
|
439
|
+
}
|
|
385
440
|
},
|
|
386
441
|
rowRemove() {
|
|
387
|
-
this.client.show =
|
|
442
|
+
this.client.show = false;
|
|
388
443
|
const callback = () => {
|
|
389
444
|
this.$refs.tree.remove(this.node.data[this.valueKey]);
|
|
390
445
|
};
|
|
@@ -394,31 +449,39 @@ const __vue2_script = {
|
|
|
394
449
|
let result = {};
|
|
395
450
|
const callback = (parentList, parent) => {
|
|
396
451
|
parentList.forEach((ele, index) => {
|
|
397
|
-
ele[this.valueKey] == id
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
452
|
+
if (ele[this.valueKey] == id) {
|
|
453
|
+
result = {
|
|
454
|
+
item: ele,
|
|
455
|
+
index,
|
|
456
|
+
parentList,
|
|
457
|
+
parent
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
if (ele[this.childrenKey]) {
|
|
461
|
+
callback(ele[this.childrenKey], ele);
|
|
462
|
+
}
|
|
403
463
|
});
|
|
404
464
|
};
|
|
405
|
-
|
|
465
|
+
callback(this.data);
|
|
466
|
+
return result;
|
|
406
467
|
}
|
|
407
468
|
}
|
|
408
|
-
}
|
|
469
|
+
};
|
|
470
|
+
const __cssModules = {};
|
|
409
471
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
410
472
|
__vue2_script,
|
|
411
473
|
render,
|
|
412
474
|
staticRenderFns,
|
|
413
|
-
|
|
475
|
+
false,
|
|
414
476
|
__vue2_injectStyles,
|
|
415
477
|
null,
|
|
416
478
|
null,
|
|
417
479
|
null
|
|
418
480
|
);
|
|
419
481
|
function __vue2_injectStyles(context) {
|
|
420
|
-
for (let o in __cssModules)
|
|
482
|
+
for (let o in __cssModules) {
|
|
421
483
|
this[o] = __cssModules[o];
|
|
484
|
+
}
|
|
422
485
|
}
|
|
423
486
|
const FyTree = /* @__PURE__ */ function() {
|
|
424
487
|
return __component__.exports;
|