@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 +1,239 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.avue-crud {
|
|
8
|
+
margin: 0 auto;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
.avue-crud .el-card + .el-card {
|
|
12
|
+
margin-top: 8px;
|
|
13
|
+
}
|
|
14
|
+
.avue-crud--card .el-card {
|
|
15
|
+
border: none;
|
|
16
|
+
}
|
|
17
|
+
.avue-crud--card .el-card__body {
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
.avue-crud--card .el-card + .el-card {
|
|
21
|
+
margin-top: 0;
|
|
22
|
+
}
|
|
23
|
+
.avue-crud .el-table .el-form-item {
|
|
24
|
+
margin-bottom: 0;
|
|
25
|
+
display: inline-block;
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
.avue-crud .el-table .el-form-item__label {
|
|
29
|
+
position: absolute;
|
|
30
|
+
left: 2px;
|
|
31
|
+
}
|
|
32
|
+
.avue-crud .el-table .el-form-item__content {
|
|
33
|
+
line-height: inherit;
|
|
34
|
+
font-size: inherit;
|
|
35
|
+
}
|
|
36
|
+
.avue-crud .el-table .el-form-item__error {
|
|
37
|
+
width: 100%;
|
|
38
|
+
text-align: left;
|
|
39
|
+
position: relative;
|
|
40
|
+
}
|
|
41
|
+
.avue-crud .el-dropdown + .el-button {
|
|
42
|
+
margin-left: 10px;
|
|
43
|
+
}
|
|
44
|
+
.avue-crud .el-checkbox:last-of-type {
|
|
45
|
+
margin-right: 0;
|
|
46
|
+
}
|
|
47
|
+
.avue-crud .el-range-editor--mini {
|
|
48
|
+
height: 28px;
|
|
49
|
+
}
|
|
50
|
+
.avue-crud__img {
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
}
|
|
54
|
+
.avue-crud__img > * {
|
|
55
|
+
height: 50px;
|
|
56
|
+
margin-right: 5px;
|
|
57
|
+
object-fit: contain;
|
|
58
|
+
font-size: 50px;
|
|
59
|
+
}
|
|
60
|
+
.avue-crud__column .el-checkbox {
|
|
61
|
+
margin-bottom: 10px;
|
|
62
|
+
cursor: move;
|
|
63
|
+
}
|
|
64
|
+
.avue-crud__menu {
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: space-between;
|
|
67
|
+
position: relative;
|
|
68
|
+
width: 100%;
|
|
69
|
+
min-height: 40px;
|
|
70
|
+
height: auto;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
margin-bottom: 5px;
|
|
73
|
+
background-color: #fff;
|
|
74
|
+
}
|
|
75
|
+
.avue-crud__search .el-form-item--medium.el-form-item {
|
|
76
|
+
margin-bottom: 22px;
|
|
77
|
+
}
|
|
78
|
+
.avue-crud__search .el-form-item--mini.el-form-item, .avue-crud__search .el-form-item--small.el-form-item {
|
|
79
|
+
margin-bottom: 14px;
|
|
80
|
+
}
|
|
81
|
+
.avue-crud .el-table--mini .avue-crud__color {
|
|
82
|
+
width: 20px;
|
|
83
|
+
height: 20px;
|
|
84
|
+
}
|
|
85
|
+
.avue-crud .el-table--mini .avue-crud__icon {
|
|
86
|
+
font-size: 20px;
|
|
87
|
+
}
|
|
88
|
+
.avue-crud .el-table--small .avue-crud__color {
|
|
89
|
+
width: 30px;
|
|
90
|
+
height: 30px;
|
|
91
|
+
}
|
|
92
|
+
.avue-crud .el-table--small .avue-crud__icon {
|
|
93
|
+
font-size: 30px;
|
|
94
|
+
}
|
|
95
|
+
.avue-crud th {
|
|
96
|
+
word-break: break-word;
|
|
97
|
+
color: rgba(0, 0, 0, 0.85);
|
|
98
|
+
background-color: #fafafa;
|
|
99
|
+
}
|
|
100
|
+
.avue-crud table td {
|
|
101
|
+
line-height: 26px;
|
|
102
|
+
}
|
|
103
|
+
.avue-crud--indeterminate .is-indeterminate .el-checkbox__inner {
|
|
104
|
+
background-color: #fff;
|
|
105
|
+
border-color: #dcdfe6;
|
|
106
|
+
}
|
|
107
|
+
.avue-crud .el-table th {
|
|
108
|
+
word-break: break-word;
|
|
109
|
+
color: rgba(0, 0, 0, 0.85);
|
|
110
|
+
background-color: #fafafa;
|
|
111
|
+
}
|
|
112
|
+
.avue-crud__color {
|
|
113
|
+
margin: 0 auto;
|
|
114
|
+
width: 40px;
|
|
115
|
+
height: 40px;
|
|
116
|
+
border-radius: 5px;
|
|
117
|
+
display: block;
|
|
118
|
+
}
|
|
119
|
+
.avue-crud__icon {
|
|
120
|
+
font-size: 45px;
|
|
121
|
+
}
|
|
122
|
+
.avue-crud__icon--small {
|
|
123
|
+
font-size: 20px;
|
|
124
|
+
width: 20px;
|
|
125
|
+
height: 20px;
|
|
126
|
+
}
|
|
127
|
+
.avue-crud__ghost {
|
|
128
|
+
cursor: move;
|
|
129
|
+
opacity: 0.4;
|
|
130
|
+
}
|
|
131
|
+
.is-always-shadow + .avue-crud__pagination {
|
|
132
|
+
padding: 0;
|
|
133
|
+
}
|
|
134
|
+
.avue-crud__pagination {
|
|
135
|
+
position: relative;
|
|
136
|
+
padding: 25px 0 20px 20px;
|
|
137
|
+
text-align: right;
|
|
138
|
+
}
|
|
139
|
+
.avue-crud__pagination .el-pagination {
|
|
140
|
+
display: inline-block;
|
|
141
|
+
}
|
|
142
|
+
.avue-crud__form {
|
|
143
|
+
padding: 0 8px;
|
|
144
|
+
}
|
|
145
|
+
.avue-crud__empty {
|
|
146
|
+
padding: 20px 0;
|
|
147
|
+
}
|
|
148
|
+
.avue-crud__empty .el-empty__description {
|
|
149
|
+
margin-top: 0;
|
|
150
|
+
}
|
|
151
|
+
.avue-crud__header {
|
|
152
|
+
margin-bottom: 10px;
|
|
153
|
+
}
|
|
154
|
+
.avue-crud__header > .el-button {
|
|
155
|
+
padding: 12px 25px;
|
|
156
|
+
}
|
|
157
|
+
.avue-crud__title {
|
|
158
|
+
font-weight: bold;
|
|
159
|
+
margin-bottom: 20px;
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: space-between;
|
|
163
|
+
font-size: 22px;
|
|
164
|
+
}
|
|
165
|
+
.avue-crud__tip {
|
|
166
|
+
margin: 0 0 8px 0;
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
font-size: 12px;
|
|
170
|
+
}
|
|
171
|
+
.avue-crud__tip-name {
|
|
172
|
+
margin-right: 10px;
|
|
173
|
+
}
|
|
174
|
+
.avue-crud__tip-count {
|
|
175
|
+
font-size: 16px;
|
|
176
|
+
font-weight: 600;
|
|
177
|
+
}
|
|
178
|
+
.avue-crud__tip .el-button {
|
|
179
|
+
margin-bottom: 0;
|
|
180
|
+
}
|
|
181
|
+
.avue-crud__filter-item {
|
|
182
|
+
margin-bottom: 12px;
|
|
183
|
+
display: flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
}
|
|
187
|
+
.avue-crud__filter-menu {
|
|
188
|
+
padding: 0 5px;
|
|
189
|
+
margin-bottom: 20px;
|
|
190
|
+
}
|
|
191
|
+
.avue-crud__filter-label {
|
|
192
|
+
margin: 0 5px;
|
|
193
|
+
width: 120px !important;
|
|
194
|
+
}
|
|
195
|
+
.avue-crud__filter-symbol {
|
|
196
|
+
margin: 0 5px;
|
|
197
|
+
width: 80px !important;
|
|
198
|
+
}
|
|
199
|
+
.avue-crud__filter-value {
|
|
200
|
+
margin: 0 5px;
|
|
201
|
+
width: 150px !important;
|
|
202
|
+
}
|
|
203
|
+
.avue-crud__filter-value .el-date-editor.el-input, .avue-crud__filter-value .el-date-editor.el-input__inner {
|
|
204
|
+
width: 100%;
|
|
205
|
+
}
|
|
206
|
+
.avue-crud__filter-icon {
|
|
207
|
+
margin-left: 10px;
|
|
208
|
+
}
|
|
209
|
+
.avue-crud__dialog .el-drawer__header .avue-crud__dialog__menu {
|
|
210
|
+
padding-right: 0;
|
|
211
|
+
}
|
|
212
|
+
.avue-crud__dialog__header {
|
|
213
|
+
display: flex;
|
|
214
|
+
align-items: center;
|
|
215
|
+
justify-content: space-between;
|
|
216
|
+
}
|
|
217
|
+
.avue-crud__dialog__menu {
|
|
218
|
+
padding-right: 20px;
|
|
219
|
+
}
|
|
220
|
+
.avue-crud__dialog__menu i {
|
|
221
|
+
color: #909399;
|
|
222
|
+
font-size: 15px;
|
|
223
|
+
}
|
|
224
|
+
.avue-crud__dialog__menu i:hover {
|
|
225
|
+
color: #409EFF;
|
|
226
|
+
}
|
|
227
|
+
.avue-crud__dialog .el-dialog__body, .avue-crud__dialog .el-drawer__body {
|
|
228
|
+
padding: 20px 20px 5px 10px;
|
|
229
|
+
}
|
|
230
|
+
.avue-crud__dialog .el-drawer__close-btn {
|
|
231
|
+
margin-top: 2px;
|
|
232
|
+
font-size: 18px;
|
|
233
|
+
}
|
|
234
|
+
.avue-crud__dialog .el-scrollbar__wrap {
|
|
235
|
+
overflow-x: hidden;
|
|
236
|
+
}
|
|
237
|
+
.avue-crud__dialog .avue-form__menu {
|
|
238
|
+
padding-top: 15px;
|
|
239
|
+
}
|
|
@@ -1,35 +1,37 @@
|
|
|
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-date"
|
|
7
9
|
}, [_c("ElDatePicker", {
|
|
8
10
|
attrs: {
|
|
9
|
-
type: _vm.type,
|
|
11
|
+
"type": _vm.type,
|
|
10
12
|
"popper-class": _vm.popperClass,
|
|
11
|
-
size: _vm.size,
|
|
12
|
-
editable: _vm.editable,
|
|
13
|
+
"size": _vm.size,
|
|
14
|
+
"editable": _vm.editable,
|
|
13
15
|
"unlink-panels": _vm.unlinkPanels,
|
|
14
|
-
readonly: _vm.readonly,
|
|
16
|
+
"readonly": _vm.readonly,
|
|
15
17
|
"default-value": _vm.defaultValue,
|
|
16
18
|
"default-time": _vm.defaultTime,
|
|
17
19
|
"range-separator": _vm.rangeSeparator,
|
|
18
20
|
"start-placeholder": _vm.startPlaceholder || "开始",
|
|
19
21
|
"end-placeholder": _vm.endPlaceholder || "结束",
|
|
20
|
-
format: _vm.format,
|
|
21
|
-
clearable: _vm.clearableVal,
|
|
22
|
+
"format": _vm.format,
|
|
23
|
+
"clearable": _vm.clearableVal,
|
|
22
24
|
"picker-options": _vm.pickerOptions,
|
|
23
25
|
"value-format": _vm.valueFormat,
|
|
24
|
-
placeholder: _vm.placeholder,
|
|
25
|
-
disabled: _vm.disabled
|
|
26
|
+
"placeholder": _vm.placeholder,
|
|
27
|
+
"disabled": _vm.disabled
|
|
26
28
|
},
|
|
27
29
|
on: {
|
|
28
|
-
blur: _vm.handleBlur,
|
|
29
|
-
focus: _vm.handleFocus
|
|
30
|
+
"blur": _vm.handleBlur,
|
|
31
|
+
"focus": _vm.handleFocus
|
|
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,9 @@ var render = function() {
|
|
|
41
43
|
expression: "text"
|
|
42
44
|
}
|
|
43
45
|
})], 1);
|
|
44
|
-
}
|
|
46
|
+
};
|
|
47
|
+
var staticRenderFns = [];
|
|
48
|
+
const FyDate_vue_vue_type_style_index_0_lang = "";
|
|
45
49
|
const __vue2_script = {
|
|
46
50
|
name: "FyDate",
|
|
47
51
|
mixins: [props, event],
|
|
@@ -61,20 +65,22 @@ const __vue2_script = {
|
|
|
61
65
|
valueFormat: String,
|
|
62
66
|
format: String
|
|
63
67
|
}
|
|
64
|
-
}
|
|
68
|
+
};
|
|
69
|
+
const __cssModules = {};
|
|
65
70
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
66
71
|
__vue2_script,
|
|
67
72
|
render,
|
|
68
73
|
staticRenderFns,
|
|
69
|
-
|
|
74
|
+
false,
|
|
70
75
|
__vue2_injectStyles,
|
|
71
76
|
null,
|
|
72
77
|
null,
|
|
73
78
|
null
|
|
74
79
|
);
|
|
75
80
|
function __vue2_injectStyles(context) {
|
|
76
|
-
for (let o in __cssModules)
|
|
81
|
+
for (let o in __cssModules) {
|
|
77
82
|
this[o] = __cssModules[o];
|
|
83
|
+
}
|
|
78
84
|
}
|
|
79
85
|
const FyDate = /* @__PURE__ */ function() {
|
|
80
86
|
return __component__.exports;
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.avue-date__group {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
}
|
|
11
|
+
.avue-date__radio .el-radio-button:last-child .el-radio-button__inner {
|
|
12
|
+
border-radius: 0;
|
|
13
|
+
border-right: 0;
|
|
14
|
+
}
|
|
15
|
+
.avue-date__date {
|
|
16
|
+
width: 300px;
|
|
17
|
+
}
|
|
18
|
+
.avue-date__date .el-date-editor {
|
|
19
|
+
border-top-left-radius: 0;
|
|
20
|
+
border-bottom-left-radius: 0;
|
|
21
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { c as config } from "../../chunks/config.
|
|
2
|
-
import { d as deepClone, o as optVal, u as uploadFun, v as filterParams } from "../../chunks/util.
|
|
1
|
+
import { c as config } from "../../chunks/config.75161c38.js";
|
|
2
|
+
import { d as deepClone, o as optVal, u as uploadFun, v as filterParams } from "../../chunks/util.b0d0b0ad.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 _vm.boxVisible ? _c(_vm.dialogType, _vm._b({
|
|
8
10
|
tag: "Component",
|
|
9
11
|
class: {
|
|
@@ -14,17 +16,17 @@ var render = function() {
|
|
|
14
16
|
"show-full-screen": "",
|
|
15
17
|
"destroy-on-close": _vm.crud.tableOption.dialogDestroy,
|
|
16
18
|
"wrapper-closable": _vm.crud.tableOption.dialogClickModal,
|
|
17
|
-
direction: _vm.direction,
|
|
19
|
+
"direction": _vm.direction,
|
|
18
20
|
"custom-class": _vm.crud.tableOption.dialogCustomClass,
|
|
19
21
|
"modal-append-to-body": "",
|
|
20
22
|
"append-to-body": "",
|
|
21
|
-
top: _vm.dialogTop,
|
|
22
|
-
title: _vm.dialogTitle,
|
|
23
|
+
"top": _vm.dialogTop,
|
|
24
|
+
"title": _vm.dialogTitle,
|
|
23
25
|
"close-on-press-escape": _vm.crud.tableOption.dialogEscape,
|
|
24
|
-
"close-on-click-modal": _vm.optVal(_vm.crud.tableOption.dialogClickModal,
|
|
25
|
-
modal: _vm.crud.tableOption.dialogModal,
|
|
26
|
+
"close-on-click-modal": _vm.optVal(_vm.crud.tableOption.dialogClickModal, false),
|
|
27
|
+
"modal": _vm.crud.tableOption.dialogModal,
|
|
26
28
|
"show-close": _vm.crud.tableOption.dialogCloseBtn,
|
|
27
|
-
visible: _vm.boxVisible,
|
|
29
|
+
"visible": _vm.boxVisible,
|
|
28
30
|
"before-close": _vm.hide
|
|
29
31
|
},
|
|
30
32
|
on: {
|
|
@@ -32,21 +34,21 @@ var render = function() {
|
|
|
32
34
|
_vm.boxVisible = $event;
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
|
-
}, "Component", _vm.params,
|
|
37
|
+
}, "Component", _vm.params, false), [_c("FyForm", _vm._b({
|
|
36
38
|
ref: "tableForm",
|
|
37
39
|
attrs: {
|
|
38
|
-
status: _vm.disabled,
|
|
39
|
-
option: _vm.option
|
|
40
|
+
"status": _vm.disabled,
|
|
41
|
+
"option": _vm.option
|
|
40
42
|
},
|
|
41
43
|
on: {
|
|
42
44
|
"update:status": function($event) {
|
|
43
45
|
_vm.disabled = $event;
|
|
44
46
|
},
|
|
45
|
-
change: _vm.handleChange,
|
|
46
|
-
submit: _vm.handleSubmit,
|
|
47
|
+
"change": _vm.handleChange,
|
|
48
|
+
"submit": _vm.handleSubmit,
|
|
47
49
|
"reset-change": _vm.hide,
|
|
48
50
|
"tab-click": _vm.handleTabClick,
|
|
49
|
-
error: _vm.handleError
|
|
51
|
+
"error": _vm.handleError
|
|
50
52
|
},
|
|
51
53
|
scopedSlots: _vm._u([_vm._l(_vm.crud.formSlot, function(item) {
|
|
52
54
|
return {
|
|
@@ -57,7 +59,7 @@ var render = function() {
|
|
|
57
59
|
}))];
|
|
58
60
|
}
|
|
59
61
|
};
|
|
60
|
-
})], null,
|
|
62
|
+
})], null, true),
|
|
61
63
|
model: {
|
|
62
64
|
value: _vm.crud.tableForm,
|
|
63
65
|
callback: function($$v) {
|
|
@@ -65,58 +67,87 @@ var render = function() {
|
|
|
65
67
|
},
|
|
66
68
|
expression: "crud.tableForm"
|
|
67
69
|
}
|
|
68
|
-
}, "FyForm", _vm.uploadFun({}, _vm.crud),
|
|
70
|
+
}, "FyForm", _vm.uploadFun({}, _vm.crud), false)), _c("span", {
|
|
69
71
|
staticClass: "avue-dialog__footer",
|
|
70
72
|
class: `avue-dialog__footer--${_vm.dialogMenuPosition}`
|
|
71
|
-
}, [_vm.optVal(_vm.option.submitBtn,
|
|
73
|
+
}, [_vm.optVal(_vm.option.submitBtn, true) && !_vm.isView ? _c("ElButton", {
|
|
72
74
|
attrs: {
|
|
73
|
-
loading: _vm.disabled,
|
|
74
|
-
size: _vm.crud.controlSize,
|
|
75
|
-
icon: _vm.option.submitIcon,
|
|
76
|
-
type: "primary"
|
|
75
|
+
"loading": _vm.disabled,
|
|
76
|
+
"size": _vm.crud.controlSize,
|
|
77
|
+
"icon": _vm.option.submitIcon,
|
|
78
|
+
"type": "primary"
|
|
77
79
|
},
|
|
78
80
|
on: {
|
|
79
|
-
click: _vm.submit
|
|
81
|
+
"click": _vm.submit
|
|
80
82
|
}
|
|
81
|
-
}, [_vm._v(_vm._s(_vm.option.submitText))]) : _vm._e(), _vm.optVal(_vm.option.emptyBtn,
|
|
83
|
+
}, [_vm._v(_vm._s(_vm.option.submitText))]) : _vm._e(), _vm.optVal(_vm.option.emptyBtn, true) && !_vm.isView ? _c("ElButton", {
|
|
82
84
|
attrs: {
|
|
83
|
-
disabled: _vm.disabled,
|
|
84
|
-
size: _vm.crud.controlSize,
|
|
85
|
-
icon: _vm.option.emptyIcon
|
|
85
|
+
"disabled": _vm.disabled,
|
|
86
|
+
"size": _vm.crud.controlSize,
|
|
87
|
+
"icon": _vm.option.emptyIcon
|
|
86
88
|
},
|
|
87
89
|
on: {
|
|
88
|
-
click: _vm.reset
|
|
90
|
+
"click": _vm.reset
|
|
89
91
|
}
|
|
90
92
|
}, [_vm._v(_vm._s(_vm.option.emptyText))]) : _vm._e(), _vm._t("menuForm", null, {
|
|
91
|
-
disabled: _vm.disabled,
|
|
92
|
-
size: _vm.crud.controlSize,
|
|
93
|
-
type: _vm.boxType
|
|
93
|
+
"disabled": _vm.disabled,
|
|
94
|
+
"size": _vm.crud.controlSize,
|
|
95
|
+
"type": _vm.boxType
|
|
94
96
|
})], 2)], 1) : _vm._e();
|
|
95
|
-
}
|
|
97
|
+
};
|
|
98
|
+
var staticRenderFns = [];
|
|
99
|
+
const FyDialogForm_vue_vue_type_style_index_0_lang = "";
|
|
96
100
|
const __vue2_script = {
|
|
97
101
|
name: "FyDialogForm",
|
|
98
102
|
inject: ["crud"],
|
|
99
103
|
props: {
|
|
100
104
|
value: {
|
|
101
105
|
type: Object,
|
|
102
|
-
default: () =>
|
|
106
|
+
default: () => {
|
|
107
|
+
return {};
|
|
108
|
+
}
|
|
103
109
|
}
|
|
104
110
|
},
|
|
105
111
|
data() {
|
|
106
112
|
return {
|
|
107
|
-
disabled:
|
|
113
|
+
disabled: false,
|
|
108
114
|
boxType: "",
|
|
109
|
-
fullscreen:
|
|
115
|
+
fullscreen: false,
|
|
110
116
|
size: null,
|
|
111
|
-
boxVisible:
|
|
117
|
+
boxVisible: false
|
|
112
118
|
};
|
|
113
119
|
},
|
|
114
120
|
computed: {
|
|
115
121
|
option() {
|
|
116
122
|
const option = deepClone(this.crud.tableOption);
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
option.boxType = this.boxType;
|
|
124
|
+
option.column = deepClone(this.crud.propOption);
|
|
125
|
+
option.menuBtn = false;
|
|
126
|
+
if (this.isAdd) {
|
|
127
|
+
option.submitBtn = option.saveBtn;
|
|
128
|
+
option.submitText = this.crud.menuIcon("saveBtn");
|
|
129
|
+
option.submitIcon = this.crud.getBtnIcon("saveBtn");
|
|
130
|
+
} else if (this.isEdit) {
|
|
131
|
+
option.submitBtn = option.updateBtn;
|
|
132
|
+
option.submitText = this.crud.menuIcon("updateBtn");
|
|
133
|
+
option.submitIcon = this.crud.getBtnIcon("updateBtn");
|
|
134
|
+
} else if (this.isView) {
|
|
135
|
+
option.detail = true;
|
|
136
|
+
}
|
|
137
|
+
option.emptyBtn = option.cancelBtn;
|
|
138
|
+
option.emptyText = this.crud.menuIcon("cancelBtn");
|
|
139
|
+
option.emptyIcon = this.crud.getBtnIcon("cancelBtn");
|
|
140
|
+
if (!this.crud.isGroup) {
|
|
141
|
+
option.dicFlag = false;
|
|
142
|
+
option.dicData = this.crud.DIC;
|
|
143
|
+
}
|
|
144
|
+
if (!isBlank(option.dicFlag)) {
|
|
145
|
+
option.column.forEach((ele) => {
|
|
146
|
+
ele.boxType = this.boxType;
|
|
147
|
+
ele.dicFlag = ele.dicFlag || option.dicFlag;
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
return option;
|
|
120
151
|
},
|
|
121
152
|
isView() {
|
|
122
153
|
return this.boxType === "view";
|
|
@@ -179,7 +210,7 @@ const __vue2_script = {
|
|
|
179
210
|
this.$refs.tableForm.submit();
|
|
180
211
|
},
|
|
181
212
|
reset() {
|
|
182
|
-
this.$refs.tableForm.resetForm(
|
|
213
|
+
this.$refs.tableForm.resetForm(false);
|
|
183
214
|
},
|
|
184
215
|
getSlotName(item) {
|
|
185
216
|
return item.replace("Form", "");
|
|
@@ -196,13 +227,24 @@ const __vue2_script = {
|
|
|
196
227
|
this.crud.$emit("tab-click", tab, event);
|
|
197
228
|
},
|
|
198
229
|
handleFullScreen() {
|
|
199
|
-
|
|
230
|
+
if (this.isDrawer) {
|
|
231
|
+
if (isBlank(this.size)) {
|
|
232
|
+
this.size = "100%";
|
|
233
|
+
} else {
|
|
234
|
+
this.size = "";
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
this.fullscreen = !this.fullscreen;
|
|
200
238
|
},
|
|
201
239
|
handleError(error) {
|
|
202
240
|
this.crud.$emit("error", error);
|
|
203
241
|
},
|
|
204
242
|
handleSubmit(form, hide) {
|
|
205
|
-
this.isAdd
|
|
243
|
+
if (this.isAdd) {
|
|
244
|
+
this.rowSave(hide);
|
|
245
|
+
} else if (this.isEdit) {
|
|
246
|
+
this.rowUpdate(hide);
|
|
247
|
+
}
|
|
206
248
|
},
|
|
207
249
|
// 保存
|
|
208
250
|
rowSave(hide) {
|
|
@@ -224,51 +266,82 @@ const __vue2_script = {
|
|
|
224
266
|
);
|
|
225
267
|
},
|
|
226
268
|
closeDialog(row) {
|
|
227
|
-
row = deepClone(row)
|
|
269
|
+
row = deepClone(row);
|
|
270
|
+
const callback = () => {
|
|
228
271
|
if (this.isEdit) {
|
|
229
272
|
const { parentList, index } = this.crud.findData(row[this.crud.rowKey]);
|
|
230
273
|
if (parentList) {
|
|
231
274
|
const oldRow = parentList.splice(index, 1)[0];
|
|
232
|
-
row[this.crud.childrenKey] = oldRow[this.crud.childrenKey]
|
|
275
|
+
row[this.crud.childrenKey] = oldRow[this.crud.childrenKey];
|
|
276
|
+
parentList.splice(index, 0, row);
|
|
233
277
|
}
|
|
234
278
|
} else if (this.isAdd) {
|
|
235
279
|
const { item } = this.crud.findData(row[this.crud.rowParentKey]);
|
|
236
|
-
|
|
280
|
+
if (item) {
|
|
281
|
+
if (!item[this.crud.childrenKey]) {
|
|
282
|
+
this.$set(item, this.crud.childrenKey, []);
|
|
283
|
+
}
|
|
284
|
+
if (this.crud.tableOption.lazy) {
|
|
285
|
+
this.$set(item, this.crud.hasChildrenKey, true);
|
|
286
|
+
}
|
|
287
|
+
item[this.crud.childrenKey].push(row);
|
|
288
|
+
} else {
|
|
289
|
+
this.crud.list.push(row);
|
|
290
|
+
}
|
|
237
291
|
}
|
|
238
|
-
}
|
|
292
|
+
};
|
|
293
|
+
if (row)
|
|
294
|
+
callback();
|
|
295
|
+
this.hide();
|
|
239
296
|
},
|
|
240
297
|
// 隐藏表单
|
|
241
298
|
hide(done) {
|
|
242
299
|
const callback = () => {
|
|
243
|
-
done && done()
|
|
300
|
+
done && done();
|
|
301
|
+
this.crud.tableIndex = -1;
|
|
302
|
+
this.crud.tableForm = {};
|
|
303
|
+
this.crud.setVal();
|
|
304
|
+
this.boxVisible = false;
|
|
244
305
|
};
|
|
245
|
-
typeof this.crud.beforeClose
|
|
306
|
+
if (typeof this.crud.beforeClose === "function") {
|
|
307
|
+
this.crud.beforeClose(callback, this.boxType);
|
|
308
|
+
} else {
|
|
309
|
+
callback();
|
|
310
|
+
}
|
|
246
311
|
},
|
|
247
312
|
// 显示表单
|
|
248
313
|
show(type) {
|
|
249
314
|
this.boxType = type;
|
|
250
315
|
const callback = () => {
|
|
251
|
-
this.fullscreen = this.crud.tableOption.dialogFullscreen
|
|
316
|
+
this.fullscreen = this.crud.tableOption.dialogFullscreen;
|
|
317
|
+
this.boxVisible = true;
|
|
318
|
+
this.$nextTick(() => {
|
|
252
319
|
this.initFun();
|
|
253
320
|
});
|
|
254
321
|
};
|
|
255
|
-
typeof this.crud.beforeOpen
|
|
322
|
+
if (typeof this.crud.beforeOpen === "function") {
|
|
323
|
+
this.crud.beforeOpen(callback, this.boxType);
|
|
324
|
+
} else {
|
|
325
|
+
callback();
|
|
326
|
+
}
|
|
256
327
|
}
|
|
257
328
|
}
|
|
258
|
-
}
|
|
329
|
+
};
|
|
330
|
+
const __cssModules = {};
|
|
259
331
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
260
332
|
__vue2_script,
|
|
261
333
|
render,
|
|
262
334
|
staticRenderFns,
|
|
263
|
-
|
|
335
|
+
false,
|
|
264
336
|
__vue2_injectStyles,
|
|
265
337
|
null,
|
|
266
338
|
null,
|
|
267
339
|
null
|
|
268
340
|
);
|
|
269
341
|
function __vue2_injectStyles(context) {
|
|
270
|
-
for (let o in __cssModules)
|
|
342
|
+
for (let o in __cssModules) {
|
|
271
343
|
this[o] = __cssModules[o];
|
|
344
|
+
}
|
|
272
345
|
}
|
|
273
346
|
const FyDialogForm = /* @__PURE__ */ function() {
|
|
274
347
|
return __component__.exports;
|