@web-utils/component 2.0.14 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/config.46422d7f.js +73 -0
- package/dist/chunks/{3a79781b.js → confirmable-mixin.3a79781b.js} +0 -0
- package/dist/chunks/dataformat.fb35ee10.js +61 -0
- package/dist/chunks/detail.a3249549.js +28 -0
- package/dist/chunks/dic.5f7e3523.js +132 -0
- package/dist/chunks/event.50c365eb.js +235 -0
- package/dist/chunks/{76680a03.js → form-input-mixin.ff5b58f7.js} +2 -2
- package/dist/chunks/{b4acd3a6.js → form-item-mixin.79f6eaff.js} +3 -1
- package/dist/chunks/{61ad06b2.js → form-pick-mixin.61ad06b2.js} +0 -0
- package/dist/chunks/init.352281f5.js +121 -0
- package/dist/chunks/{41a066be.js → input-number-mixin.41a066be.js} +0 -0
- package/dist/chunks/{5a78e0db.js → mixins.5a78e0db.js} +0 -0
- package/dist/chunks/packages.5d7a86c4.js +114 -0
- package/dist/chunks/permission.ce5d2121.js +16 -0
- package/dist/chunks/slot.1b8d2b1b.js +27 -0
- package/dist/chunks/{8c0142e0.js → tab-mixin.8c0142e0.js} +0 -0
- package/dist/chunks/util.5053d54e.js +264 -0
- package/dist/chunks/{97652d86.js → utils.97652d86.js} +0 -0
- package/dist/chunks/{f71045fc.js → utils.fa73de78.js} +1 -0
- package/dist/chunks/{5d4282fb.js → vueComponentNormalizer.71e2aa87.js} +3 -1
- package/dist/components/address-input/index.js +1 -1
- package/dist/components/affix/index.js +102 -0
- package/dist/components/affix/style.css +1 -0
- package/dist/components/array/index.js +156 -0
- package/dist/components/array/style.css +1 -0
- package/dist/components/article/index.js +93 -0
- package/dist/components/article/style.css +1 -0
- package/dist/components/aside-menu/index.js +1 -1
- package/dist/components/avatar/index.js +106 -0
- package/dist/components/avatar/style.css +1 -0
- package/dist/components/awesome-button/index.js +1 -1
- package/dist/components/base.css +1 -1
- package/dist/components/capsule-tab/index.js +1 -1
- package/dist/components/card/index.js +130 -0
- package/dist/components/card/style.css +1 -0
- package/dist/components/carousel/index.js +70 -0
- package/dist/components/carousel/style.css +1 -0
- package/dist/components/chat/index.js +567 -0
- package/dist/components/chat/style.css +1 -0
- package/dist/components/chunk-file-uploader/index.js +2 -2
- package/dist/components/chunk-file-uploader-button/index.js +2 -2
- package/dist/components/chunk-file-uploader-drop/index.js +2 -2
- package/dist/components/chunk-file-uploader-file/index.js +2 -2
- package/dist/components/chunk-file-uploader-files/index.js +2 -2
- package/dist/components/chunk-file-uploader-list/index.js +2 -2
- package/dist/components/chunk-file-uploader-un-support/index.js +2 -2
- package/dist/components/code/index.js +66 -0
- package/dist/components/code-mirror-editor/index.js +4 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/column/index.js +114 -0
- package/dist/components/column-default/index.js +105 -0
- package/dist/components/column-dynamic/index.js +93 -0
- package/dist/components/column-menu/index.js +286 -0
- package/dist/components/column-slot/index.js +265 -0
- package/dist/components/comment/index.js +94 -0
- package/dist/components/comment/style.css +1 -0
- package/dist/components/confirm-button/index.js +2 -2
- package/dist/components/confirmable/index.js +2 -2
- package/dist/components/context-menu/index.js +11 -1
- package/dist/components/count-up/index.js +120 -0
- package/dist/components/custom-scrollbar/index.js +2 -2
- package/dist/components/data-box/index.js +97 -0
- package/dist/components/data-box/style.css +1 -0
- package/dist/components/data-card/index.js +98 -0
- package/dist/components/data-card/style.css +1 -0
- package/dist/components/data-cardtext/index.js +82 -0
- package/dist/components/data-cardtext/style.css +1 -0
- package/dist/components/data-display/index.js +93 -0
- package/dist/components/data-display/style.css +1 -0
- package/dist/components/data-icons/index.js +104 -0
- package/dist/components/data-icons/style.css +1 -0
- package/dist/components/data-imgtext/index.js +106 -0
- package/dist/components/data-imgtext/style.css +1 -0
- package/dist/components/data-operatext/index.js +99 -0
- package/dist/components/data-operatext/style.css +1 -0
- package/dist/components/data-panel/index.js +93 -0
- package/dist/components/data-panel/style.css +1 -0
- package/dist/components/data-pay/index.js +149 -0
- package/dist/components/data-pay/style.css +1 -0
- package/dist/components/data-price/index.js +84 -0
- package/dist/components/data-price/style.css +1 -0
- package/dist/components/data-progress/index.js +97 -0
- package/dist/components/data-progress/style.css +1 -0
- package/dist/components/data-rotate/index.js +96 -0
- package/dist/components/data-rotate/style.css +1 -0
- package/dist/components/data-table-picker/index.js +2 -2
- package/dist/components/data-tabs/index.js +94 -0
- package/dist/components/data-tabs/style.css +1 -0
- package/dist/components/dialog-column/index.js +138 -0
- package/dist/components/dialog-excel/index.js +214 -0
- package/dist/components/dialog-filter/index.js +245 -0
- package/dist/components/dialog-form/index.js +275 -0
- package/dist/components/draggable/index.js +384 -0
- package/dist/components/draggable/style.css +1 -0
- package/dist/components/dynamic-table/index.js +1 -1
- package/dist/components/e-charts/index.js +7 -1
- package/dist/components/editable-progress/index.js +1 -1
- package/dist/components/editable-tree/index.js +2 -2
- package/dist/components/egd-collapse/index.js +1 -1
- package/dist/components/egd-collapse-item/index.js +1 -1
- package/dist/components/element-dialog/index.js +1 -1
- package/dist/components/empty/index.js +59 -0
- package/dist/components/empty/style.css +1 -0
- package/dist/components/empty-view/index.js +1 -1
- package/dist/components/error-view/index.js +1 -1
- package/dist/components/flex-column/index.js +2 -2
- package/dist/components/flex-item/index.js +2 -2
- package/dist/components/flex-row/index.js +2 -2
- package/dist/components/flex-scroller/index.js +1 -1
- package/dist/components/flow/index.js +278 -0
- package/dist/components/flow/style.css +1 -0
- package/dist/components/flow-node/index.js +102 -0
- package/dist/components/form-button/index.js +2 -2
- package/dist/components/form-cascader/index.js +4 -4
- package/dist/components/form-checkbox-group/index.js +4 -4
- package/dist/components/form-date-picker/index.js +4 -4
- package/dist/components/form-group/index.js +122 -0
- package/dist/components/form-group/style.css +1 -0
- package/dist/components/form-holder/index.js +23 -2
- package/dist/components/form-input/index.js +3 -3
- package/dist/components/form-input-email/index.js +3 -3
- package/dist/components/form-input-id-card/index.js +3 -3
- package/dist/components/form-input-number/index.js +4 -4
- package/dist/components/form-input-phone-number/index.js +3 -3
- package/dist/components/form-input-time/index.js +3 -3
- package/dist/components/form-item/index.js +2 -2
- package/dist/components/form-item-config-provider/index.js +1 -1
- package/dist/components/form-item-group/index.js +1 -1
- package/dist/components/form-radio-group/index.js +4 -4
- package/dist/components/form-select/index.js +4 -4
- package/dist/components/form-switch/index.js +3 -3
- package/dist/components/form-temp/index.js +149 -0
- package/dist/components/form-textarea/index.js +3 -3
- package/dist/components/form-view/index.js +1 -1
- package/dist/components/fy-cascader/index.js +132 -0
- package/dist/components/fy-checkbox/index.js +116 -0
- package/dist/components/fy-checkbox/style.css +1 -0
- package/dist/components/fy-curd/index.js +846 -0
- package/dist/components/fy-curd/style.css +1 -0
- package/dist/components/fy-date/index.js +84 -0
- package/dist/components/fy-date/style.css +1 -0
- package/dist/components/fy-dialog-form/index.js +278 -0
- package/dist/components/fy-dialog-form/style.css +1 -0
- package/dist/components/fy-dynamic/index.js +335 -0
- package/dist/components/fy-dynamic/style.css +1 -0
- package/dist/components/fy-form/index.js +754 -0
- package/dist/components/fy-form/style.css +1 -0
- package/dist/components/fy-form-menu/index.js +95 -0
- package/dist/components/fy-input/index.js +162 -0
- package/dist/components/fy-input-color/index.js +96 -0
- package/dist/components/fy-input-icon/index.js +161 -0
- package/dist/components/fy-input-icon/style.css +1 -0
- package/dist/components/fy-input-map/index.js +275 -0
- package/dist/components/fy-input-map/style.css +1 -0
- package/dist/components/fy-input-number/index.js +87 -0
- package/dist/components/fy-input-table/index.js +172 -0
- package/dist/components/fy-input-table/style.css +1 -0
- package/dist/components/fy-input-tree/index.js +265 -0
- package/dist/components/fy-input-tree/style.css +1 -0
- package/dist/components/fy-radio/index.js +68 -0
- package/dist/components/fy-radio/style.css +1 -0
- package/dist/components/fy-rate/index.js +105 -0
- package/dist/components/fy-rate/style.css +1 -0
- package/dist/components/fy-select/index.js +223 -0
- package/dist/components/fy-select/style.css +1 -0
- package/dist/components/fy-slider/index.js +79 -0
- package/dist/components/fy-switch/index.js +73 -0
- package/dist/components/fy-time/index.js +95 -0
- package/dist/components/fy-title/index.js +40 -0
- package/dist/components/fy-title/style.css +1 -0
- package/dist/components/fy-upload/index.js +704 -0
- package/dist/components/fy-upload/style.css +1 -0
- package/dist/components/guide-steps/index.js +1 -1
- package/dist/components/header-menu/index.js +238 -0
- package/dist/components/header-search/index.js +246 -0
- package/dist/components/icon-card/index.js +1 -1
- package/dist/components/icon-temp/index.js +50 -0
- package/dist/components/icon-temp/style.css +1 -0
- package/dist/components/iframe-window/index.js +1 -1
- package/dist/components/image-viewer/index.js +1 -1
- package/dist/components/input-number/index.js +2 -2
- package/dist/components/input-number-range/index.js +1 -1
- package/dist/components/keep-view-alive/index.js +6 -2
- package/dist/components/keyboard/index.js +389 -0
- package/dist/components/keyboard/style.css +1 -0
- package/dist/components/license/index.js +134 -0
- package/dist/components/loading-view/index.js +1 -1
- package/dist/components/login/index.js +244 -0
- package/dist/components/login/style.css +1 -0
- package/dist/components/name-avatar/index.js +66 -0
- package/dist/components/name-avatar/style.css +1 -0
- package/dist/components/nav-bar/index.js +1 -1
- package/dist/components/not-implement/index.js +1 -1
- package/dist/components/notice/index.js +143 -0
- package/dist/components/notice/style.css +1 -0
- package/dist/components/page/index.js +1 -1
- package/dist/components/page-header/index.js +1 -1
- package/dist/components/page-index/index.js +1 -1
- package/dist/components/page-index-top/index.js +1 -1
- package/dist/components/page-skeleton/index.js +1 -1
- package/dist/components/page-skeleton-new/index.js +1 -1
- package/dist/components/pageable-table/index.js +6 -2
- package/dist/components/pageable-view/index.js +7 -2
- package/dist/components/photo-swipe/index.js +7 -1
- package/dist/components/progress/index.js +60 -0
- package/dist/components/queue/index.js +76 -0
- package/dist/components/record-video/index.js +173 -0
- package/dist/components/record-video/style.css +1 -0
- package/dist/components/resize-observer/index.js +2 -2
- package/dist/components/search/index.js +142 -0
- package/dist/components/search/style.css +1 -0
- package/dist/components/search-popover/index.js +1 -1
- package/dist/components/sign/index.js +128 -0
- package/dist/components/sign/style.css +1 -0
- package/dist/components/sign-panel/index.js +14 -1
- package/dist/components/skeleton/index.js +82 -0
- package/dist/components/skeleton/style.css +1 -0
- package/dist/components/split-pane/index.js +7 -1
- package/dist/components/stateful/index.js +1 -1
- package/dist/components/static-pageable-table/index.js +1 -1
- package/dist/components/swiper/index.js +1 -1
- package/dist/components/tab/index.js +4 -2
- package/dist/components/tab-item/index.js +2 -2
- package/dist/components/table-column/index.js +1 -1
- package/dist/components/table-page/index.js +129 -0
- package/dist/components/table-view/index.js +2 -2
- package/dist/components/tabs/index.js +90 -0
- package/dist/components/tabs/style.css +0 -0
- package/dist/components/tag-render/index.js +1 -1
- package/dist/components/text-ellipsis/index.js +107 -0
- package/dist/components/text-ellipsis/style.css +1 -0
- package/dist/components/tinymce-editor/index.js +1 -1
- package/dist/components/tinymce-wrapper/index.js +1 -1
- package/dist/components/toolbar/index.js +1 -1
- package/dist/components/toolbar-button/index.js +1 -1
- package/dist/components/tree/index.js +427 -0
- package/dist/components/tree/style.css +1 -0
- package/dist/components/trigger/index.js +1 -1
- package/dist/components/verify/index.js +80 -0
- package/dist/components/verify/style.css +1 -0
- package/dist/components/vue-tags-input/index.js +115 -1
- package/dist/components/watermark/index.js +20 -2
- package/dist/index.css +4128 -745
- package/dist/index.es.js +21634 -7064
- package/package.json +20 -4
- package/web-types.json +12777 -2788
- package/dist/components/x-dialog/index.js +0 -173
- package/dist/components/x-dialog/style.css +0 -1
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { p as s } from "../../chunks/permission.ce5d2121.js";
|
|
2
|
+
import { c } from "../../chunks/config.46422d7f.js";
|
|
3
|
+
import { o } from "../../chunks/util.5053d54e.js";
|
|
4
|
+
import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
5
|
+
var d = function() {
|
|
6
|
+
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
7
|
+
return t("div", {
|
|
8
|
+
staticClass: "avue-crud__menu"
|
|
9
|
+
}, [e.optVal(e.crud.tableOption.menuLeft, !0) ? t("div", {
|
|
10
|
+
staticClass: "avue-crud__left"
|
|
11
|
+
}, [e.optVal(e.crud.tableOption.addBtn, e.config.addBtn) ? t("ElButton", {
|
|
12
|
+
directives: [{
|
|
13
|
+
name: "permission",
|
|
14
|
+
rawName: "v-permission",
|
|
15
|
+
value: e.crud.getPermission("addBtn"),
|
|
16
|
+
expression: "crud.getPermission('addBtn')"
|
|
17
|
+
}],
|
|
18
|
+
attrs: {
|
|
19
|
+
type: "primary",
|
|
20
|
+
icon: e.crud.getBtnIcon("addBtn"),
|
|
21
|
+
size: e.crud.isMediumSize
|
|
22
|
+
},
|
|
23
|
+
on: {
|
|
24
|
+
click: e.crud.rowAdd
|
|
25
|
+
}
|
|
26
|
+
}, [e.crud.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("addBtn")) + " ")]], 2) : e._e(), e.optVal(e.crud.tableOption.addRowBtn, e.config.addRowBtn) ? t("ElButton", {
|
|
27
|
+
directives: [{
|
|
28
|
+
name: "permission",
|
|
29
|
+
rawName: "v-permission",
|
|
30
|
+
value: e.crud.getPermission("addRowBtn"),
|
|
31
|
+
expression: "crud.getPermission('addRowBtn')"
|
|
32
|
+
}],
|
|
33
|
+
attrs: {
|
|
34
|
+
type: "primary",
|
|
35
|
+
icon: e.crud.getBtnIcon("addBtn"),
|
|
36
|
+
size: e.crud.isMediumSize
|
|
37
|
+
},
|
|
38
|
+
on: {
|
|
39
|
+
click: e.crud.rowCellAdd
|
|
40
|
+
}
|
|
41
|
+
}, [e.crud.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("addBtn")) + " ")]], 2) : e._e(), e._t("menuLeft", null, {
|
|
42
|
+
size: e.crud.isMediumSize
|
|
43
|
+
})], 2) : e._e(), e.optVal(e.crud.tableOption.menuRight, !0) ? t("div", {
|
|
44
|
+
staticClass: "avue-crud__right"
|
|
45
|
+
}, [e.optVal(e.crud.tableOption.dateBtn, e.config.dateBtn) ? t("FyDate", {
|
|
46
|
+
staticStyle: {
|
|
47
|
+
display: "inline-block",
|
|
48
|
+
"margin-right": "20px"
|
|
49
|
+
},
|
|
50
|
+
attrs: {
|
|
51
|
+
type: "datetimerange",
|
|
52
|
+
"value-format": "yyyy-MM-dd HH:mm:ss",
|
|
53
|
+
format: "yyyy-MM-dd HH:mm:ss",
|
|
54
|
+
"picker-options": e.pickerOptions,
|
|
55
|
+
size: e.crud.isMediumSize
|
|
56
|
+
},
|
|
57
|
+
on: {
|
|
58
|
+
change: e.dateChange
|
|
59
|
+
}
|
|
60
|
+
}) : e._e(), e._t("menuRight", null, {
|
|
61
|
+
size: e.crud.isMediumSize
|
|
62
|
+
}), e.optVal(e.crud.tableOption.excelBtn, e.config.excelBtn) ? t("ElButton", {
|
|
63
|
+
directives: [{
|
|
64
|
+
name: "permission",
|
|
65
|
+
rawName: "v-permission",
|
|
66
|
+
value: e.crud.getPermission("excelBtn"),
|
|
67
|
+
expression: "crud.getPermission('excelBtn')"
|
|
68
|
+
}],
|
|
69
|
+
attrs: {
|
|
70
|
+
icon: e.crud.getBtnIcon("excelBtn"),
|
|
71
|
+
circle: "",
|
|
72
|
+
size: e.crud.isMediumSize
|
|
73
|
+
},
|
|
74
|
+
on: {
|
|
75
|
+
click: e.rowExcel
|
|
76
|
+
}
|
|
77
|
+
}) : e._e(), e.optVal(e.crud.tableOption.printBtn, e.config.printBtn) ? t("ElButton", {
|
|
78
|
+
directives: [{
|
|
79
|
+
name: "permission",
|
|
80
|
+
rawName: "v-permission",
|
|
81
|
+
value: e.crud.getPermission("printBtn"),
|
|
82
|
+
expression: "crud.getPermission('printBtn')"
|
|
83
|
+
}],
|
|
84
|
+
attrs: {
|
|
85
|
+
icon: e.crud.getBtnIcon("printBtn"),
|
|
86
|
+
circle: "",
|
|
87
|
+
size: e.crud.isMediumSize
|
|
88
|
+
},
|
|
89
|
+
on: {
|
|
90
|
+
click: e.rowPrint
|
|
91
|
+
}
|
|
92
|
+
}) : e._e(), e.optVal(e.crud.tableOption.refreshBtn, e.config.refreshBtn) ? t("ElButton", {
|
|
93
|
+
directives: [{
|
|
94
|
+
name: "permission",
|
|
95
|
+
rawName: "v-permission",
|
|
96
|
+
value: e.crud.getPermission("refreshBtn"),
|
|
97
|
+
expression: "crud.getPermission('refreshBtn')"
|
|
98
|
+
}],
|
|
99
|
+
attrs: {
|
|
100
|
+
icon: e.crud.getBtnIcon("refreshBtn"),
|
|
101
|
+
circle: "",
|
|
102
|
+
size: e.crud.isMediumSize
|
|
103
|
+
},
|
|
104
|
+
on: {
|
|
105
|
+
click: e.crud.refreshChange
|
|
106
|
+
}
|
|
107
|
+
}) : e._e(), e.optVal(e.crud.tableOption.columnBtn, e.config.columnBtn) ? t("ElButton", {
|
|
108
|
+
directives: [{
|
|
109
|
+
name: "permission",
|
|
110
|
+
rawName: "v-permission",
|
|
111
|
+
value: e.crud.getPermission("columnBtn"),
|
|
112
|
+
expression: "crud.getPermission('columnBtn')"
|
|
113
|
+
}],
|
|
114
|
+
attrs: {
|
|
115
|
+
icon: e.crud.getBtnIcon("columnBtn"),
|
|
116
|
+
circle: "",
|
|
117
|
+
size: e.crud.isMediumSize
|
|
118
|
+
},
|
|
119
|
+
on: {
|
|
120
|
+
click: function(n) {
|
|
121
|
+
return e.crud.$refs.dialogColumn.handleShow();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}) : e._e(), (e.crud.$refs.headerSearch || {}).searchFlag && e.optVal(e.crud.tableOption.searchShowBtn, !0) ? t("ElButton", {
|
|
125
|
+
attrs: {
|
|
126
|
+
icon: e.crud.getBtnIcon("searchBtn"),
|
|
127
|
+
circle: "",
|
|
128
|
+
size: e.crud.isMediumSize
|
|
129
|
+
},
|
|
130
|
+
on: {
|
|
131
|
+
click: function(n) {
|
|
132
|
+
return e.crud.$refs.headerSearch.handleSearchShow();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}) : e._e(), e.optVal(e.crud.tableOption.filterBtn, e.config.filterBtn) ? t("ElButton", {
|
|
136
|
+
directives: [{
|
|
137
|
+
name: "permission",
|
|
138
|
+
rawName: "v-permission",
|
|
139
|
+
value: e.crud.getPermission("filterBtn"),
|
|
140
|
+
expression: "crud.getPermission('filterBtn')"
|
|
141
|
+
}],
|
|
142
|
+
attrs: {
|
|
143
|
+
icon: e.crud.getBtnIcon("filterBtn"),
|
|
144
|
+
circle: "",
|
|
145
|
+
size: e.crud.isMediumSize
|
|
146
|
+
},
|
|
147
|
+
on: {
|
|
148
|
+
click: function(n) {
|
|
149
|
+
return e.crud.$refs.dialogFilter.handleShow();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}) : e._e()], 2) : e._e()]);
|
|
153
|
+
}, u = [];
|
|
154
|
+
const l = {
|
|
155
|
+
name: "HeaderMenu",
|
|
156
|
+
directives: {
|
|
157
|
+
permission: s
|
|
158
|
+
},
|
|
159
|
+
inject: ["crud"],
|
|
160
|
+
data() {
|
|
161
|
+
return {
|
|
162
|
+
dateCreate: !1,
|
|
163
|
+
pickerOptions: {
|
|
164
|
+
shortcuts: [{
|
|
165
|
+
text: "今日",
|
|
166
|
+
onClick(e) {
|
|
167
|
+
const i = new Date(), t = new Date();
|
|
168
|
+
t.setTime(t.getTime()), e.$emit("pick", [t, i]);
|
|
169
|
+
}
|
|
170
|
+
}, {
|
|
171
|
+
text: "昨日",
|
|
172
|
+
onClick(e) {
|
|
173
|
+
const i = new Date(), t = new Date();
|
|
174
|
+
t.setTime(t.getTime() - 3600 * 1e3 * 24 * 1), e.$emit("pick", [t, i]);
|
|
175
|
+
}
|
|
176
|
+
}, {
|
|
177
|
+
text: "最近一周",
|
|
178
|
+
onClick(e) {
|
|
179
|
+
const i = new Date(), t = new Date();
|
|
180
|
+
t.setTime(t.getTime() - 3600 * 1e3 * 24 * 7), e.$emit("pick", [t, i]);
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
text: "最近一个月",
|
|
184
|
+
onClick(e) {
|
|
185
|
+
const i = new Date(), t = new Date();
|
|
186
|
+
t.setTime(t.getTime() - 3600 * 1e3 * 24 * 30), e.$emit("pick", [t, i]);
|
|
187
|
+
}
|
|
188
|
+
}, {
|
|
189
|
+
text: "最近三个月",
|
|
190
|
+
onClick(e) {
|
|
191
|
+
const i = new Date(), t = new Date();
|
|
192
|
+
t.setTime(t.getTime() - 3600 * 1e3 * 24 * 90), e.$emit("pick", [t, i]);
|
|
193
|
+
}
|
|
194
|
+
}]
|
|
195
|
+
},
|
|
196
|
+
config: c
|
|
197
|
+
};
|
|
198
|
+
},
|
|
199
|
+
created() {
|
|
200
|
+
this.initFun();
|
|
201
|
+
},
|
|
202
|
+
methods: {
|
|
203
|
+
optVal: o,
|
|
204
|
+
//日期组件回调
|
|
205
|
+
dateChange(e) {
|
|
206
|
+
this.dateCreate ? this.crud.$emit("date-change", e) : this.dateCreate = !0;
|
|
207
|
+
},
|
|
208
|
+
initFun() {
|
|
209
|
+
this.crud.rowExcel = this.rowExcel, this.crud.rowPrint = this.rowPrint;
|
|
210
|
+
},
|
|
211
|
+
rowExcel() {
|
|
212
|
+
this.crud.$refs.dialogExcel.handleShow();
|
|
213
|
+
},
|
|
214
|
+
rowPrint() {
|
|
215
|
+
this.$Print(this.crud.$refs.table);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}, r = {};
|
|
219
|
+
var m = /* @__PURE__ */ a(
|
|
220
|
+
l,
|
|
221
|
+
d,
|
|
222
|
+
u,
|
|
223
|
+
!1,
|
|
224
|
+
p,
|
|
225
|
+
null,
|
|
226
|
+
null,
|
|
227
|
+
null
|
|
228
|
+
);
|
|
229
|
+
function p(e) {
|
|
230
|
+
for (let i in r)
|
|
231
|
+
this[i] = r[i];
|
|
232
|
+
}
|
|
233
|
+
const v = /* @__PURE__ */ function() {
|
|
234
|
+
return m.exports;
|
|
235
|
+
}();
|
|
236
|
+
export {
|
|
237
|
+
v as default
|
|
238
|
+
};
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { s as S } from "../../chunks/slot.1b8d2b1b.js";
|
|
2
|
+
import { c as h } from "../../chunks/config.46422d7f.js";
|
|
3
|
+
import { d as w } from "../../chunks/dataformat.fb35ee10.js";
|
|
4
|
+
import { o, n as g, k as m } from "../../chunks/util.5053d54e.js";
|
|
5
|
+
import { n as F } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
6
|
+
var _ = function() {
|
|
7
|
+
var e = this, a = e.$createElement, c = e._self._c || a;
|
|
8
|
+
return e.searchFlag ? c("ElCard", {
|
|
9
|
+
directives: [{
|
|
10
|
+
name: "show",
|
|
11
|
+
rawName: "v-show",
|
|
12
|
+
value: e.searchShow && e.searchFlag,
|
|
13
|
+
expression: "searchShow && searchFlag"
|
|
14
|
+
}],
|
|
15
|
+
staticClass: "avue-crud__search",
|
|
16
|
+
attrs: {
|
|
17
|
+
shadow: e.crud.isCard
|
|
18
|
+
}
|
|
19
|
+
}, [e._t("search", null, {
|
|
20
|
+
row: e.searchForm,
|
|
21
|
+
search: e.searchForm,
|
|
22
|
+
size: e.crud.controlSize
|
|
23
|
+
}), c("FyForm", {
|
|
24
|
+
ref: "form",
|
|
25
|
+
attrs: {
|
|
26
|
+
option: e.option
|
|
27
|
+
},
|
|
28
|
+
on: {
|
|
29
|
+
submit: e.searchChange,
|
|
30
|
+
"reset-change": e.resetChange
|
|
31
|
+
},
|
|
32
|
+
scopedSlots: e._u([{
|
|
33
|
+
key: "menuForm",
|
|
34
|
+
fn: function(t) {
|
|
35
|
+
return [e._t("searchMenu", null, null, Object.assign(t, {
|
|
36
|
+
search: e.searchForm,
|
|
37
|
+
row: e.searchForm
|
|
38
|
+
})), e.isSearchIcon ? [e.show === !1 ? c("ElButton", {
|
|
39
|
+
attrs: {
|
|
40
|
+
type: "text",
|
|
41
|
+
icon: "el-icon-arrow-down"
|
|
42
|
+
},
|
|
43
|
+
on: {
|
|
44
|
+
click: function(s) {
|
|
45
|
+
e.show = !0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, [e._v(" 展 开 ")]) : e._e(), e.show === !0 ? c("ElButton", {
|
|
49
|
+
attrs: {
|
|
50
|
+
type: "text",
|
|
51
|
+
icon: "el-icon-arrow-up"
|
|
52
|
+
},
|
|
53
|
+
on: {
|
|
54
|
+
click: function(s) {
|
|
55
|
+
e.show = !1;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}, [e._v(" 收 缩 ")]) : e._e()] : e._e()];
|
|
59
|
+
}
|
|
60
|
+
}, e._l(e.crud.searchSlot, function(t) {
|
|
61
|
+
return {
|
|
62
|
+
key: e.getSlotName(t),
|
|
63
|
+
fn: function(s) {
|
|
64
|
+
return [e._t(t, null, null, Object.assign(s, {
|
|
65
|
+
search: e.searchForm,
|
|
66
|
+
row: e.searchForm
|
|
67
|
+
}))];
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
})], null, !0),
|
|
71
|
+
model: {
|
|
72
|
+
value: e.searchForm,
|
|
73
|
+
callback: function(t) {
|
|
74
|
+
e.searchForm = t;
|
|
75
|
+
},
|
|
76
|
+
expression: "searchForm"
|
|
77
|
+
}
|
|
78
|
+
})], 2) : e._e();
|
|
79
|
+
}, b = [];
|
|
80
|
+
const y = {
|
|
81
|
+
name: "HeaderSearch",
|
|
82
|
+
mixins: [S],
|
|
83
|
+
inject: ["crud"],
|
|
84
|
+
props: {
|
|
85
|
+
search: Object
|
|
86
|
+
},
|
|
87
|
+
data() {
|
|
88
|
+
return {
|
|
89
|
+
show: !1,
|
|
90
|
+
searchIndex: 2,
|
|
91
|
+
searchShow: !0
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
computed: {
|
|
95
|
+
searchForm: {
|
|
96
|
+
get() {
|
|
97
|
+
return this.crud.search;
|
|
98
|
+
},
|
|
99
|
+
set(e) {
|
|
100
|
+
this.crud.$emit("update:search", e);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
option() {
|
|
104
|
+
const e = this.crud.option;
|
|
105
|
+
this.searchIndex = e.searchIndex || 2;
|
|
106
|
+
const a = (t = []) => {
|
|
107
|
+
t = m(t);
|
|
108
|
+
let s = [], u = 0;
|
|
109
|
+
return t = t.sort((r, l) => (l.searchOrder || 0) - (r.searchOrder || 0)), t.forEach((r) => {
|
|
110
|
+
if (r.search) {
|
|
111
|
+
let l = u < this.searchIndex, d = {};
|
|
112
|
+
Object.keys(r).forEach((i) => {
|
|
113
|
+
let p = "search";
|
|
114
|
+
if (i != "searchProp" && i.includes(p)) {
|
|
115
|
+
let n = i.replace(p, "");
|
|
116
|
+
if (n.length == 0)
|
|
117
|
+
return;
|
|
118
|
+
n = n.replace(n[0], n[0].toLowerCase()), d[n] = r[i];
|
|
119
|
+
}
|
|
120
|
+
}), r = Object.assign(r, d, {
|
|
121
|
+
type: w(r),
|
|
122
|
+
detail: !1,
|
|
123
|
+
dicFlag: r.cascader ? !0 : o(r.dicFlag, !1),
|
|
124
|
+
span: r.searchSpan || e.searchSpan || h.searchSpan,
|
|
125
|
+
control: r.searchControl,
|
|
126
|
+
gutter: r.searchGutter || e.searchGutter || h.searchGutter,
|
|
127
|
+
labelWidth: r.searchLabelWidth || e.searchLabelWidth || h.searchLabelWidth,
|
|
128
|
+
labelPosition: r.searchLabelPosition || e.searchLabelPosition,
|
|
129
|
+
size: r.searchSize || e.searchSize,
|
|
130
|
+
value: r.searchValue,
|
|
131
|
+
rules: r.searchRules,
|
|
132
|
+
row: r.searchRow,
|
|
133
|
+
bind: r.searchBin,
|
|
134
|
+
disabled: r.searchDisabled,
|
|
135
|
+
readonly: r.searchReadonly,
|
|
136
|
+
display: this.isSearchIcon ? this.show ? !0 : l : !0
|
|
137
|
+
}), s.push(r), u = u + 1;
|
|
138
|
+
}
|
|
139
|
+
}), s;
|
|
140
|
+
};
|
|
141
|
+
return ((t) => {
|
|
142
|
+
let s = m(t);
|
|
143
|
+
return s.column = a(this.crud.propOption), s = Object.assign(s, {
|
|
144
|
+
rowKey: e.searchRowKey || "null",
|
|
145
|
+
tabs: !1,
|
|
146
|
+
group: !1,
|
|
147
|
+
printBtn: !1,
|
|
148
|
+
mockBtn: !1,
|
|
149
|
+
filterDic: e.searchFilterDic,
|
|
150
|
+
filterNull: e.searchFilterNull,
|
|
151
|
+
filterParam: e.searchFilterParam,
|
|
152
|
+
enter: e.searchEnter,
|
|
153
|
+
size: e.searchSize,
|
|
154
|
+
submitText: e.searchBtnText || "搜 索",
|
|
155
|
+
submitBtn: o(e.searchBtn, h.searchSubBtn),
|
|
156
|
+
submitIcon: this.crud.getBtnIcon("searchBtn"),
|
|
157
|
+
emptyText: e.emptyBtnText || "清 空",
|
|
158
|
+
emptyBtn: o(e.emptyBtn, h.emptyBtn),
|
|
159
|
+
emptyIcon: this.crud.getBtnIcon("emptyBtn"),
|
|
160
|
+
menuSpan: (() => this.show || !this.isSearchIcon || e.searchMenuSpan < 6 ? e.searchMenuSpan : 6)(),
|
|
161
|
+
menuPosition: e.searchMenuPosition || "center",
|
|
162
|
+
dicFlag: !1,
|
|
163
|
+
dicData: this.crud.DIC
|
|
164
|
+
}), s;
|
|
165
|
+
})(e);
|
|
166
|
+
},
|
|
167
|
+
isSearchIcon() {
|
|
168
|
+
return o(this.crud.option.searchIcon, this.$AVUE.searchIcon) && this.searchLen > this.searchIndex;
|
|
169
|
+
},
|
|
170
|
+
searchLen() {
|
|
171
|
+
let e = 0;
|
|
172
|
+
return this.crud.propOption.forEach((a) => {
|
|
173
|
+
a.search && e++;
|
|
174
|
+
}), e;
|
|
175
|
+
},
|
|
176
|
+
searchFlag() {
|
|
177
|
+
return !!this.crud.$scopedSlots.search || this.searchLen !== 0;
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
watch: {
|
|
181
|
+
"crud.propOption": {
|
|
182
|
+
handler() {
|
|
183
|
+
this.dataFormat();
|
|
184
|
+
},
|
|
185
|
+
deep: !0
|
|
186
|
+
},
|
|
187
|
+
show() {
|
|
188
|
+
this.crud.getTableHeight();
|
|
189
|
+
},
|
|
190
|
+
searchShow() {
|
|
191
|
+
this.crud.getTableHeight();
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
created() {
|
|
195
|
+
this.initFun(), this.dataFormat();
|
|
196
|
+
},
|
|
197
|
+
methods: {
|
|
198
|
+
initFun() {
|
|
199
|
+
["searchReset", "searchChange"].forEach((e) => this.crud[e] = this[e]);
|
|
200
|
+
},
|
|
201
|
+
getSlotName(e) {
|
|
202
|
+
return e.replace("Search", "");
|
|
203
|
+
},
|
|
204
|
+
// 搜索回调
|
|
205
|
+
searchChange(e, a) {
|
|
206
|
+
e = g(e), this.crud.propOption.forEach((c) => {
|
|
207
|
+
c.searchProp && (e[c.searchProp] = e[c.prop], delete e[c.prop]);
|
|
208
|
+
}), this.crud.$emit("search-change", e, a);
|
|
209
|
+
},
|
|
210
|
+
// 搜索清空
|
|
211
|
+
resetChange() {
|
|
212
|
+
this.crud.$emit("search-reset", this.searchForm);
|
|
213
|
+
},
|
|
214
|
+
// 搜索清空
|
|
215
|
+
searchReset() {
|
|
216
|
+
this.$refs.form.resetForm();
|
|
217
|
+
},
|
|
218
|
+
handleSearchShow() {
|
|
219
|
+
this.searchShow = !this.searchShow;
|
|
220
|
+
},
|
|
221
|
+
dataFormat() {
|
|
222
|
+
const e = this.crud.option;
|
|
223
|
+
this.searchShow = o(e.searchShow, h.searchShow);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}, f = {};
|
|
227
|
+
var v = /* @__PURE__ */ F(
|
|
228
|
+
y,
|
|
229
|
+
_,
|
|
230
|
+
b,
|
|
231
|
+
!1,
|
|
232
|
+
x,
|
|
233
|
+
null,
|
|
234
|
+
null,
|
|
235
|
+
null
|
|
236
|
+
);
|
|
237
|
+
function x(e) {
|
|
238
|
+
for (let a in f)
|
|
239
|
+
this[a] = f[a];
|
|
240
|
+
}
|
|
241
|
+
const P = /* @__PURE__ */ function() {
|
|
242
|
+
return v.exports;
|
|
243
|
+
}();
|
|
244
|
+
export {
|
|
245
|
+
P as default
|
|
246
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
2
|
+
var l = function() {
|
|
3
|
+
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
4
|
+
return n("span", {
|
|
5
|
+
staticClass: "avue-icon",
|
|
6
|
+
class: {
|
|
7
|
+
"avue-icon--small": e.small
|
|
8
|
+
}
|
|
9
|
+
}, [e.text.includes("#") ? n("svg", {
|
|
10
|
+
attrs: {
|
|
11
|
+
"aria-hidden": "true"
|
|
12
|
+
}
|
|
13
|
+
}, [n("use", {
|
|
14
|
+
attrs: {
|
|
15
|
+
"xlink:href": e.text
|
|
16
|
+
}
|
|
17
|
+
})]) : n("i", {
|
|
18
|
+
class: e.text
|
|
19
|
+
})]);
|
|
20
|
+
}, o = [];
|
|
21
|
+
const r = {
|
|
22
|
+
name: "IconTemp",
|
|
23
|
+
props: {
|
|
24
|
+
small: Boolean,
|
|
25
|
+
text: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}, s = {};
|
|
31
|
+
var c = /* @__PURE__ */ a(
|
|
32
|
+
r,
|
|
33
|
+
l,
|
|
34
|
+
o,
|
|
35
|
+
!1,
|
|
36
|
+
_,
|
|
37
|
+
null,
|
|
38
|
+
null,
|
|
39
|
+
null
|
|
40
|
+
);
|
|
41
|
+
function _(e) {
|
|
42
|
+
for (let t in s)
|
|
43
|
+
this[t] = s[t];
|
|
44
|
+
}
|
|
45
|
+
const u = /* @__PURE__ */ function() {
|
|
46
|
+
return c.exports;
|
|
47
|
+
}();
|
|
48
|
+
export {
|
|
49
|
+
u as default
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.avue-icon{display:flex;align-items:center;justify-content:center}.avue-icon svg,.avue-icon i{width:20px;height:20px;font-size:20px}.avue-icon--small svg,.avue-icon--small i{font-size:15px;width:15px;height:15px}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import i from "viewerjs";
|
|
2
2
|
import "viewerjs/dist/viewer.css";
|
|
3
|
-
import { n as l } from "../../chunks/
|
|
3
|
+
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var n = function() {
|
|
5
5
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
6
6
|
return r("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import u from "element-ui/src/mixins/focus";
|
|
2
2
|
import o from "element-ui/src/directives/repeat-click";
|
|
3
|
-
import { i as a } from "../../chunks/41a066be.js";
|
|
4
|
-
import { n as l } from "../../chunks/
|
|
3
|
+
import { i as a } from "../../chunks/input-number-mixin.41a066be.js";
|
|
4
|
+
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
5
5
|
var c = function() {
|
|
6
6
|
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
7
7
|
return n("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isNotEmpty as i } from "@web-utils/core";
|
|
2
|
-
import { n as o } from "../../chunks/
|
|
2
|
+
import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var r = function() {
|
|
4
4
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
5
5
|
return n("div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as _ } from "../../chunks/
|
|
1
|
+
import { n as _ } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
2
2
|
const C = Object.prototype.toString;
|
|
3
3
|
function d(e) {
|
|
4
4
|
return e != null;
|
|
@@ -87,7 +87,11 @@ const k = {
|
|
|
87
87
|
const e = this.$slots.default, t = v(e), n = t && t.componentOptions;
|
|
88
88
|
if (n) {
|
|
89
89
|
const o = f(n), { include: c, exclude: i } = this;
|
|
90
|
-
if (
|
|
90
|
+
if (
|
|
91
|
+
// not included
|
|
92
|
+
c && (!o || !l(c, o)) || // excluded
|
|
93
|
+
i && o && l(i, o)
|
|
94
|
+
)
|
|
91
95
|
return t;
|
|
92
96
|
const { cache: s, keys: a } = this, r = t.key == null ? n.Ctor.cid + (n.tag ? `::${n.tag}` : "") : t.key, u = s[r];
|
|
93
97
|
u ? u.cid === n.Ctor.cid ? (t.componentInstance = u.componentInstance, y(a, r), a.push(r)) : (u.componentInstance.$destroy(), s[r] = null, this.vnodeToCache = t, this.keyToCache = r) : (this.vnodeToCache = t, this.keyToCache = r), t.data.keepAlive = !0;
|