@web-utils/component 2.8.8 → 2.8.10

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.
Files changed (97) hide show
  1. package/chat/index.mjs +1 -1
  2. package/chunk-file-uploader/index.mjs +5 -3
  3. package/chunks/FormTemp.a77c73c4.mjs +163 -0
  4. package/chunks/{dataformat.ab62230f.mjs → dataformat.4100726d.mjs} +8 -8
  5. package/chunks/{dic.7f13b573.mjs → dic.9e90e2a4.mjs} +1 -1
  6. package/chunks/{event.1ac32f1d.mjs → event.ebd9a3a6.mjs} +2 -2
  7. package/chunks/{init.47ce5ed9.mjs → init.27f6a0c4.mjs} +2 -2
  8. package/chunks/{util.505913d9.mjs → util.d691afb6.mjs} +17 -17
  9. package/dialog-form/index.mjs +1 -1
  10. package/egd-collapse-item/index.mjs +14 -12
  11. package/flow/index.mjs +1 -1
  12. package/flow-node/index.mjs +1 -1
  13. package/flow-viewer/index.mjs +36 -32
  14. package/fy-array/index.mjs +2 -2
  15. package/fy-cascader/index.mjs +1 -1
  16. package/fy-checkbox/index.mjs +1 -1
  17. package/fy-code/index.mjs +1 -1
  18. package/fy-curd/index.mjs +2504 -140
  19. package/fy-curd/style.css +1 -1
  20. package/fy-date/index.mjs +1 -1
  21. package/fy-draggable/index.mjs +1 -1
  22. package/fy-dynamic/index.mjs +2 -2
  23. package/fy-empty/index.mjs +1 -1
  24. package/fy-form/index.mjs +538 -333
  25. package/fy-form/style.css +1 -1
  26. package/fy-form-design/index.mjs +21 -21
  27. package/fy-form-design/style.css +1 -1
  28. package/fy-input/index.mjs +1 -1
  29. package/fy-input-color/index.mjs +1 -1
  30. package/fy-input-icon/index.mjs +14 -12
  31. package/fy-input-map/index.mjs +1 -1
  32. package/fy-input-number/index.mjs +1 -1
  33. package/fy-input-table/index.mjs +1 -1
  34. package/fy-input-tree/index.mjs +1 -1
  35. package/fy-radio/index.mjs +1 -1
  36. package/fy-rate/index.mjs +1 -1
  37. package/fy-select/index.mjs +3 -3
  38. package/fy-slider/index.mjs +2 -2
  39. package/fy-switch/index.mjs +1 -1
  40. package/fy-time/index.mjs +1 -1
  41. package/fy-title/index.mjs +1 -1
  42. package/fy-tree/index.mjs +1 -1
  43. package/fy-u-editor/index.mjs +1 -1
  44. package/fy-upload/index.mjs +2 -2
  45. package/image-cropper/index.mjs +1 -1
  46. package/image-preview/index.mjs +1 -1
  47. package/index.mjs +476 -549
  48. package/license/index.mjs +1 -1
  49. package/login/index.mjs +1 -1
  50. package/package.json +1 -1
  51. package/process-palette/index.mjs +190 -0
  52. package/process-palette/style.css +1 -0
  53. package/record-video/index.mjs +1 -1
  54. package/search/index.mjs +2 -2
  55. package/search-popover/index.mjs +1 -1
  56. package/sign/index.mjs +1 -1
  57. package/split-pane/index.mjs +104 -34
  58. package/text-ellipsis/index.mjs +1 -1
  59. package/tinymce-editor/index.mjs +846 -44
  60. package/tinymce-editor/style.css +1 -1
  61. package/verify/index.mjs +1 -1
  62. package/web-types.json +35 -646
  63. package/chunk-file-uploader-button/index.mjs +0 -60
  64. package/chunk-file-uploader-button/style.css +0 -1
  65. package/chunk-file-uploader-drop/index.mjs +0 -83
  66. package/chunk-file-uploader-drop/style.css +0 -1
  67. package/chunk-file-uploader-file/index.mjs +0 -311
  68. package/chunk-file-uploader-file/style.css +0 -1
  69. package/chunk-file-uploader-files/index.mjs +0 -49
  70. package/chunk-file-uploader-files/style.css +0 -1
  71. package/chunk-file-uploader-list/index.mjs +0 -50
  72. package/chunk-file-uploader-list/style.css +0 -1
  73. package/chunk-file-uploader-un-support/index.mjs +0 -51
  74. package/chunk-file-uploader-un-support/style.css +0 -1
  75. package/chunks/config.46422d7f.mjs +0 -73
  76. package/chunks/detail.6e46de33.mjs +0 -29
  77. package/chunks/mixins.5a78e0db.mjs +0 -16
  78. package/chunks/utils.97652d86.mjs +0 -26
  79. package/column/index.mjs +0 -115
  80. package/column-default/index.mjs +0 -106
  81. package/column-dynamic/index.mjs +0 -93
  82. package/column-menu/index.mjs +0 -288
  83. package/column-slot/index.mjs +0 -267
  84. package/dialog-column/index.mjs +0 -139
  85. package/dialog-excel/index.mjs +0 -211
  86. package/dialog-filter/index.mjs +0 -248
  87. package/form-group/index.mjs +0 -117
  88. package/form-group/style.css +0 -1
  89. package/form-temp/index.mjs +0 -137
  90. package/fy-dialog-form/index.mjs +0 -272
  91. package/fy-form-menu/index.mjs +0 -95
  92. package/header-menu/index.mjs +0 -238
  93. package/header-search/index.mjs +0 -255
  94. package/table-page/index.mjs +0 -130
  95. package/tinymce-wrapper/index.mjs +0 -821
  96. package/tinymce-wrapper/style.css +0 -1
  97. package/trigger/index.mjs +0 -71
@@ -1,272 +0,0 @@
1
- import { c as d } from "../chunks/config.46422d7f.mjs";
2
- import { d as l, o as n, u, v as a } from "../chunks/util.505913d9.mjs";
3
- import { isBlank as r } from "@web-utils/core";
4
- import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
- var p = function() {
6
- var t = this, e = t.$createElement, i = t._self._c || e;
7
- return t.boxVisible ? i(t.dialogType, t._b({
8
- tag: "Component",
9
- class: {
10
- "dialog-form": !t.isView
11
- },
12
- attrs: {
13
- "lock-scroll": "",
14
- "show-full-screen": "",
15
- "destroy-on-close": t.crud.tableOption.dialogDestroy,
16
- "wrapper-closable": t.crud.tableOption.dialogClickModal,
17
- direction: t.direction,
18
- "custom-class": t.crud.tableOption.dialogCustomClass,
19
- "modal-append-to-body": "",
20
- "append-to-body": "",
21
- top: t.dialogTop,
22
- title: t.dialogTitle,
23
- "close-on-press-escape": t.crud.tableOption.dialogEscape,
24
- "close-on-click-modal": t.optVal(t.crud.tableOption.dialogClickModal, !1),
25
- modal: t.crud.tableOption.dialogModal,
26
- "show-close": t.crud.tableOption.dialogCloseBtn,
27
- visible: t.boxVisible,
28
- "before-close": t.hide
29
- },
30
- on: {
31
- "update:visible": function(s) {
32
- t.boxVisible = s;
33
- }
34
- }
35
- }, "Component", t.params, !1), [i("FyForm", t._b({
36
- ref: "tableForm",
37
- attrs: {
38
- status: t.disabled,
39
- option: t.option
40
- },
41
- on: {
42
- "update:status": function(s) {
43
- t.disabled = s;
44
- },
45
- change: t.handleChange,
46
- submit: t.handleSubmit,
47
- "reset-change": t.hide,
48
- "tab-click": t.handleTabClick,
49
- error: t.handleError
50
- },
51
- scopedSlots: t._u([t._l(t.crud.formSlot, function(s) {
52
- return {
53
- key: t.getSlotName(s),
54
- fn: function(o) {
55
- return [t._t(s, null, null, Object.assign(o, {
56
- type: t.boxType
57
- }))];
58
- }
59
- };
60
- })], null, !0),
61
- model: {
62
- value: t.crud.tableForm,
63
- callback: function(s) {
64
- t.$set(t.crud, "tableForm", s);
65
- },
66
- expression: "crud.tableForm"
67
- }
68
- }, "FyForm", t.uploadFun({}, t.crud), !1)), i("span", {
69
- staticClass: "avue-dialog__footer",
70
- class: `avue-dialog__footer--${t.dialogMenuPosition}`
71
- }, [t.optVal(t.option.submitBtn, !0) && !t.isView ? i("ElButton", {
72
- attrs: {
73
- loading: t.disabled,
74
- size: t.crud.controlSize,
75
- icon: t.option.submitIcon,
76
- type: "primary"
77
- },
78
- on: {
79
- click: t.submit
80
- }
81
- }, [t._v(t._s(t.option.submitText))]) : t._e(), t.optVal(t.option.emptyBtn, !0) && !t.isView ? i("ElButton", {
82
- attrs: {
83
- disabled: t.disabled,
84
- size: t.crud.controlSize,
85
- icon: t.option.emptyIcon
86
- },
87
- on: {
88
- click: t.reset
89
- }
90
- }, [t._v(t._s(t.option.emptyText))]) : t._e(), t._t("menuForm", null, {
91
- disabled: t.disabled,
92
- size: t.crud.controlSize,
93
- type: t.boxType
94
- })], 2)], 1) : t._e();
95
- }, b = [];
96
- const m = {
97
- name: "FyDialogForm",
98
- inject: ["crud"],
99
- data() {
100
- return {
101
- disabled: !1,
102
- boxType: "",
103
- fullscreen: !1,
104
- size: null,
105
- boxVisible: !1
106
- };
107
- },
108
- computed: {
109
- option() {
110
- const t = l(this.crud.tableOption);
111
- return t.boxType = this.boxType, t.column = l(this.crud.propOption), t.menuBtn = !1, this.isAdd ? (t.submitBtn = t.saveBtn, t.submitText = this.crud.menuIcon("saveBtn"), t.submitIcon = this.crud.getBtnIcon("saveBtn")) : this.isEdit ? (t.submitBtn = t.updateBtn, t.submitText = this.crud.menuIcon("updateBtn"), t.submitIcon = this.crud.getBtnIcon("updateBtn")) : this.isView && (t.detail = !0), t.emptyBtn = t.cancelBtn, t.emptyText = this.crud.menuIcon("cancelBtn"), t.emptyIcon = this.crud.getBtnIcon("cancelBtn"), this.crud.isGroup || (t.dicFlag = !1, t.dicData = this.crud.DIC), r(t.dicFlag) || t.column.forEach((e) => {
112
- e.boxType = this.boxType, e.dicFlag = e.dicFlag || t.dicFlag;
113
- }), t;
114
- },
115
- isView() {
116
- return this.boxType === "view";
117
- },
118
- isAdd() {
119
- return this.boxType === "add";
120
- },
121
- isEdit() {
122
- return this.boxType === "edit";
123
- },
124
- direction() {
125
- return this.crud.tableOption.dialogDirection;
126
- },
127
- width() {
128
- return n(`${this.crud.tableOption.dialogWidth}`, this.crud.isMobile ? "100%" : `${d.dialogWidth}`);
129
- },
130
- dialogType() {
131
- return this.isDrawer ? "ElDrawer" : "ElementDialog";
132
- },
133
- dialogTop() {
134
- return !this.isDrawer && !this.fullscreen ? this.crud.tableOption.dialogTop : "0";
135
- },
136
- isDrawer() {
137
- return this.crud.tableOption.dialogType === "drawer";
138
- },
139
- params() {
140
- return this.isDrawer ? {
141
- size: this.fullscreen ? "100%" : this.width,
142
- direction: this.crud.tableOption.dialogDirection
143
- } : {
144
- width: this.width,
145
- fullscreen: this.fullscreen
146
- };
147
- },
148
- dialogTitle() {
149
- const t = `${this.boxType}`;
150
- if (!r(this.boxType)) {
151
- const e = {
152
- tipStartTitle: "当前表格已选择",
153
- tipEndTitle: "项",
154
- editTitle: "编 辑",
155
- copyTitle: "复 制",
156
- addTitle: "新 增",
157
- viewTitle: "查 看",
158
- filterTitle: "过滤条件",
159
- showTitle: "列显隐"
160
- };
161
- return this.crud.tableOption[`${t}Title`] || e[`${t}Title`];
162
- }
163
- return "";
164
- },
165
- dialogMenuPosition() {
166
- return this.crud.option.dialogMenuPosition || "right";
167
- }
168
- },
169
- methods: {
170
- optVal: n,
171
- uploadFun: u,
172
- submit() {
173
- this.$refs.tableForm.submit();
174
- },
175
- reset() {
176
- this.$refs.tableForm.resetForm(!1);
177
- },
178
- getSlotName(t) {
179
- return t.replace("Form", "");
180
- },
181
- initFun() {
182
- ["clearValidate", "validate", "resetForm", "validateField"].forEach((t) => {
183
- this.crud[t] = this.$refs.tableForm[t];
184
- });
185
- },
186
- handleChange() {
187
- this.crud.setVal();
188
- },
189
- handleTabClick(t, e) {
190
- this.crud.$emit("tab-click", t, e);
191
- },
192
- handleFullScreen() {
193
- this.isDrawer && (r(this.size) ? this.size = "100%" : this.size = ""), this.fullscreen = !this.fullscreen;
194
- },
195
- handleError(t) {
196
- this.crud.$emit("error", t);
197
- },
198
- handleSubmit(t, e) {
199
- this.isAdd ? this.rowSave(e) : this.isEdit && this.rowUpdate(e);
200
- },
201
- // 保存
202
- rowSave(t) {
203
- this.crud.$emit(
204
- "row-save",
205
- a(this.crud.tableForm, ["$"]),
206
- this.closeDialog,
207
- t
208
- );
209
- },
210
- // 更新
211
- rowUpdate(t) {
212
- this.crud.$emit(
213
- "row-update",
214
- a(this.crud.tableForm, ["$"]),
215
- this.crud.tableIndex,
216
- this.closeDialog,
217
- t
218
- );
219
- },
220
- closeDialog(t) {
221
- t = l(t), t && (() => {
222
- if (this.isEdit) {
223
- const { parentList: i, index: s } = this.crud.findData(t[this.crud.rowKey]);
224
- if (i) {
225
- const o = i.splice(s, 1)[0];
226
- t[this.crud.childrenKey] = o[this.crud.childrenKey], i.splice(s, 0, t);
227
- }
228
- } else if (this.isAdd) {
229
- const { item: i } = this.crud.findData(t[this.crud.rowParentKey]);
230
- i ? (i[this.crud.childrenKey] || this.$set(i, this.crud.childrenKey, []), this.crud.tableOption.lazy && this.$set(i, this.crud.hasChildrenKey, !0), i[this.crud.childrenKey].push(t)) : this.crud.list.push(t);
231
- }
232
- })(), this.hide();
233
- },
234
- // 隐藏表单
235
- hide(t) {
236
- const e = () => {
237
- t && t(), this.crud.tableIndex = -1, this.crud.tableForm = {}, this.crud.setVal(), this.boxVisible = !1;
238
- };
239
- typeof this.crud.beforeClose == "function" ? this.crud.beforeClose(e, this.boxType) : e();
240
- },
241
- // 显示表单
242
- show(t) {
243
- this.boxType = t;
244
- const e = () => {
245
- this.fullscreen = this.crud.tableOption.dialogFullscreen, this.boxVisible = !0, this.$nextTick(() => {
246
- this.initFun();
247
- });
248
- };
249
- typeof this.crud.beforeOpen == "function" ? this.crud.beforeOpen(e, this.boxType) : e();
250
- }
251
- }
252
- }, c = {};
253
- var f = /* @__PURE__ */ h(
254
- m,
255
- p,
256
- b,
257
- !1,
258
- y,
259
- null,
260
- null,
261
- null
262
- );
263
- function y(t) {
264
- for (let e in c)
265
- this[e] = c[e];
266
- }
267
- const x = /* @__PURE__ */ function() {
268
- return f.exports;
269
- }();
270
- export {
271
- x as default
272
- };
@@ -1,95 +0,0 @@
1
- import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var a = function() {
3
- var e = this, n = e.$createElement, t = e._self._c || n;
4
- return e.formSafe.parentOption.menuBtn !== !1 ? t("ElCol", {
5
- class: ["menu", e.formSafe.menuPosition, "no-print"],
6
- style: e.styleName,
7
- attrs: {
8
- span: e.menuSpan,
9
- md: e.menuSpan
10
- }
11
- }, [t("ElFormItem", {
12
- staticStyle: {
13
- "text-align": "center"
14
- },
15
- attrs: {
16
- "label-width": "0px"
17
- }
18
- }, [e.formSafe.isMock ? t("ElButton", {
19
- attrs: {
20
- type: "primary",
21
- size: e.formSafe.controlSize,
22
- icon: "el-icon-edit-outline",
23
- disabled: e.formSafe.allDisabled
24
- },
25
- on: {
26
- click: e.formSafe.handleMock
27
- }
28
- }, [e._v(" " + e._s(e.formSafe.parentOption.mockText || "模拟") + " ")]) : e._e(), e.formSafe.isPrint ? t("ElButton", {
29
- attrs: {
30
- type: "primary",
31
- size: e.formSafe.controlSize,
32
- icon: "el-icon-printer",
33
- disabled: e.formSafe.allDisabled
34
- },
35
- on: {
36
- click: e.formSafe.handlePrint
37
- }
38
- }, [e._v(" " + e._s(e.formSafe.parentOption.printText || "打印") + " ")]) : e._e(), e.formSafe.parentOption.submitBtn !== !1 ? t("ElButton", {
39
- attrs: {
40
- type: "primary",
41
- size: e.formSafe.controlSize,
42
- icon: e.formSafe.parentOption.submitIcon || "el-icon-check",
43
- loading: e.formSafe.allDisabled
44
- },
45
- on: {
46
- click: e.formSafe.submit
47
- }
48
- }, [e._v(" " + e._s(e.formSafe.parentOption.submitText || "提交") + " ")]) : e._e(), e.formSafe.parentOption.emptyBtn !== !1 ? t("ElButton", {
49
- attrs: {
50
- icon: e.formSafe.parentOption.emptyIcon || "el-icon-delete",
51
- size: e.formSafe.controlSize,
52
- disabled: e.formSafe.allDisabled
53
- },
54
- on: {
55
- click: e.formSafe.resetForm
56
- }
57
- }, [e._v(" " + e._s(e.formSafe.parentOption.emptyText || "清空") + " ")]) : e._e(), e._t("menuForm", null, {
58
- disabled: e.formSafe.allDisabled,
59
- size: e.formSafe.controlSize
60
- })], 2)], 1) : e._e();
61
- }, i = [];
62
- const l = {
63
- name: "FyFormMenu",
64
- inject: ["formSafe"],
65
- computed: {
66
- menuSpan() {
67
- return this.formSafe.parentOption.menuSpan || 24;
68
- },
69
- styleName() {
70
- return this.menuSpan !== 24 ? {
71
- padding: 0
72
- } : {};
73
- }
74
- }
75
- }, o = {};
76
- var f = /* @__PURE__ */ r(
77
- l,
78
- a,
79
- i,
80
- !1,
81
- m,
82
- null,
83
- null,
84
- null
85
- );
86
- function m(e) {
87
- for (let n in o)
88
- this[n] = o[n];
89
- }
90
- const c = /* @__PURE__ */ function() {
91
- return f.exports;
92
- }();
93
- export {
94
- c as default
95
- };
@@ -1,238 +0,0 @@
1
- import { p as s } from "../chunks/permission.ce5d2121.mjs";
2
- import { c } from "../chunks/config.46422d7f.mjs";
3
- import { o } from "../chunks/util.505913d9.mjs";
4
- import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
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
- };