ol-base-components 3.4.5 → 3.4.7

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 (64) hide show
  1. package/dist/index.mjs +7105 -0
  2. package/dist/index.umd.js +1 -0
  3. package/dist/style.css +1 -0
  4. package/package.json +18 -4
  5. package/.eslintrc +0 -59
  6. package/.github/deploy.yml +0 -81
  7. package/.prettierignore +0 -6
  8. package/.prettierrc +0 -13
  9. package/.trae/rules/project.md +0 -2
  10. package/babel.config.js +0 -5
  11. package/jsconfig.json +0 -19
  12. package/readme1.md +0 -164
  13. package/src/App.vue +0 -932
  14. package/src/assets/Snipaste_2025-09-03_14-30-49.png +0 -0
  15. package/src/assets/api.png +0 -0
  16. package/src/assets/css/iconfont.css +0 -342
  17. package/src/assets/duojibiaotou.png +0 -0
  18. package/src/assets/effectPicture.png +0 -0
  19. package/src/assets/generator0.png +0 -0
  20. package/src/assets/generator1.png +0 -0
  21. package/src/assets/generator2.png +0 -0
  22. package/src/assets/icon/printModel.svg +0 -1
  23. package/src/assets/init.png +0 -0
  24. package/src/assets/logo.png +0 -0
  25. package/src/assets/olBaseComponentsLogo.svg +0 -100
  26. package/src/assets/print.svg +0 -1
  27. package/src/assets/run.png +0 -0
  28. package/src/assets/vscodecj.png +0 -0
  29. package/src/bin/initTemplate.js +0 -409
  30. package/src/bin/news.js +0 -171
  31. package/src/bin/openCloseloop.js +0 -154
  32. package/src/bin/openLoop.js +0 -154
  33. package/src/main.js +0 -13
  34. package/src/package/customSearch/index.js +0 -7
  35. package/src/package/customSearch/src/index.vue +0 -120
  36. package/src/package/dialog/index.js +0 -7
  37. package/src/package/dialog/src/index.vue +0 -419
  38. package/src/package/form/index.js +0 -7
  39. package/src/package/form/src/index.vue +0 -405
  40. package/src/package/formSearch/index.js +0 -7
  41. package/src/package/formSearch/src/components/SearchConfigDialog.vue +0 -957
  42. package/src/package/formSearch/src/index.js +0 -29
  43. package/src/package/formSearch/src/index.vue +0 -928
  44. package/src/package/index.js +0 -243
  45. package/src/package/numberRange/index.js +0 -7
  46. package/src/package/numberRange/src/index.vue +0 -351
  47. package/src/package/print/index.js +0 -76
  48. package/src/package/print/src/components/PaperSelector.vue +0 -109
  49. package/src/package/print/src/index.vue +0 -622
  50. package/src/package/print/src/provide/provider1.js +0 -215
  51. package/src/package/printModel/index.js +0 -7
  52. package/src/package/printModel/src/index.vue +0 -493
  53. package/src/package/table/index.js +0 -12
  54. package/src/package/table/src/TableColumn.vue +0 -77
  55. package/src/package/table/src/components/PrintTemplateSelector.vue +0 -210
  56. package/src/package/table/src/index.vue +0 -945
  57. package/src/package/table/src/nodata.jpg +0 -0
  58. package/src/package/table/src/printTable.vue +0 -196
  59. package/src/utils/getEnum.js +0 -8
  60. package/src/utils/initData.js +0 -138
  61. package/vue.config.js +0 -21
  62. /package/{public → dist}/favicon.ico +0 -0
  63. /package/{public → dist}/index.html +0 -0
  64. /package/{public → dist}/print-lock.css +0 -0
@@ -1,109 +0,0 @@
1
- <template>
2
- <div class="paper-selector">
3
- <el-button-group>
4
- <el-button v-for="(value, type) in paperTypes" :key="type" :type="curPaperType === type ? 'primary' : 'default'"
5
- size="small" @click="setPaper(type, value)">
6
- {{ type }}
7
- </el-button>
8
- <el-button :type="curPaperType === 'other' ? 'primary' : 'default'" size="small" @click="showPaperPop">
9
- 自定义纸张
10
- </el-button>
11
- </el-button-group>
12
-
13
- <el-dialog title="设置纸张宽高(mm)" :visible.sync="paperPopVisible" width="400px" :append-to-body="true" :z-index="3001">
14
- <el-form label-width="80px">
15
- <el-form-item label="纸张宽度">
16
- <el-input v-model="paperWidth" type="number" placeholder="宽(mm)" />
17
- </el-form-item>
18
- <el-form-item label="纸张高度">
19
- <el-input v-model="paperHeight" type="number" placeholder="高(mm)" />
20
- </el-form-item>
21
- </el-form>
22
- <span slot="footer">
23
- <el-button @click="hidePaperPop">取消</el-button>
24
- <el-button type="primary" @click="setPaperOther">确定</el-button>
25
- </span>
26
- </el-dialog>
27
- </div>
28
- </template>
29
-
30
- <script>
31
- export default {
32
- name: "PaperSelector",
33
- props: {
34
- hiprintTemplate: {
35
- type: Object,
36
- required: true,
37
- },
38
- },
39
- data() {
40
- return {
41
- curPaper: {
42
- type: "A4",
43
- width: 210,
44
- height: 296.6,
45
- },
46
- paperTypes: {
47
- A3: { width: 420, height: 296.6 },
48
- A4: { width: 210, height: 296.6 },
49
- A5: { width: 210, height: 147.6 },
50
- B3: { width: 500, height: 352.6 },
51
- B4: { width: 250, height: 352.6 },
52
- B5: { width: 250, height: 175.6 },
53
- },
54
- paperPopVisible: false,
55
- paperWidth: "220",
56
- paperHeight: "80",
57
- };
58
- },
59
- computed: {
60
- curPaperType() {
61
- let type = "other";
62
- let types = this.paperTypes;
63
- for (const key in types) {
64
- let item = types[key];
65
- let { width, height } = this.curPaper;
66
- if (item.width === width && item.height === height) {
67
- type = key;
68
- }
69
- }
70
- return type;
71
- },
72
- },
73
- methods: {
74
- showPaperPop() {
75
- this.paperPopVisible = true;
76
- },
77
- hidePaperPop() {
78
- this.paperPopVisible = false;
79
- },
80
- setPaper(type, value) {
81
- try {
82
- if (Object.keys(this.paperTypes).includes(type)) {
83
- this.curPaper = { type: type, width: value.width, height: value.height };
84
- this.hiprintTemplate.setPaper(value.width, value.height);
85
- } else {
86
- this.curPaper = { type: "other", width: value.width, height: value.height };
87
- this.hiprintTemplate.setPaper(value.width, value.height);
88
- }
89
- this.$emit("change", this.curPaper);
90
- } catch (error) {
91
- this.$message.error(`操作失败: ${error}`);
92
- }
93
- },
94
- setPaperOther() {
95
- let value = {};
96
- value.width = Number(this.paperWidth);
97
- value.height = Number(this.paperHeight);
98
- this.paperPopVisible = false;
99
- this.setPaper("other", value);
100
- },
101
- },
102
- };
103
- </script>
104
-
105
- <style scoped>
106
- .paper-selector {
107
- display: inline-block;
108
- }
109
- </style>
@@ -1,622 +0,0 @@
1
- <template>
2
- <div class="print-dialog-overlay">
3
- <div class="print-dialog">
4
- <div class="print-dialog-header">
5
- <span>打印设计器</span>
6
- <i class="iconfont close-btn" @click="close">x</i>
7
- </div>
8
- <div class="print-dialog-body">
9
- <div class="header-box" style="margin-bottom: 10px">
10
- <paper-selector :hiprint-template="hiprintTemplate" ref="paperSelector" />
11
- <div>
12
- <slot
13
- :hiprint-template="hiprintTemplate"
14
- :print="print"
15
- :clear-paper="clearPaper"
16
- :export-json="exportJson"
17
- >
18
- </slot>
19
- <el-button type="primary" size="small" @click="print">
20
- <i class="iconfont sv-printer" />
21
- 打印
22
- </el-button>
23
- <el-button type="danger" size="small" @click="clearPaper" style="margin-left: 10px">
24
- <i class="iconfont sv-clear" />
25
- 清空纸张
26
- </el-button>
27
- <el-button type="success" size="small" @click="exportJson" style="margin-left: 10px">
28
- <i class="iconfont sv-export" />
29
- 保存
30
- </el-button>
31
- </div>
32
- </div>
33
- <div class="main flex-row" style="height: 87vh">
34
- <div class="flex-2 left flex-col">
35
- <!-- provider1 的容器; 加上 class "rect-printElement-types" 使用默认样式 -->
36
- <!-- 当然可以 重写 或者 自定义样式 -->
37
- <div id="provider-container1" class="container rect-printElement-types"></div>
38
- </div>
39
- <div class="flex-5 center">
40
- <!-- 设计器的 容器 -->
41
- <div id="hiprint-printTemplate"></div>
42
- </div>
43
- <div class="flex-2 right">
44
- <!-- 元素参数的 容器 -->
45
- <div id="PrintElementOptionSetting"></div>
46
- </div>
47
- </div>
48
- </div>
49
- </div>
50
- </div>
51
- </template>
52
-
53
- <script>
54
- // import { onMounted } from "vue";
55
- import { hiprint } from "vue-plugin-hiprint";
56
- import { provider1 } from "./provide/provider1.js";
57
- import PaperSelector from "./components/PaperSelector.vue";
58
-
59
- export default {
60
- name: "print",
61
- components: {
62
- PaperSelector,
63
- },
64
- props: {
65
- // 打印数据
66
- printData: {
67
- type: Object,
68
- default: () => {},
69
- },
70
- // {
71
- // name: "CcSimple",
72
- // barcode: "33321323",
73
- // table: [
74
- // { id: "1", name: "王小可", gender: "男", count: "120", amount: "9089元" },
75
- // { id: "2", name: "梦之遥", gender: "女", count: "20", amount: "89元" },
76
- // ],
77
- // table1: [
78
- // { id: "1", name: "王小可11", gender: "男", count: "120", amount: "9089元" },
79
- // { id: "2", name: "梦之遥", gender: "女", count: "20", amount: "89元" },
80
- // ],
81
- // }
82
- onPrintData: {
83
- type: Function,
84
- default: null,
85
- },
86
- // {panels:[]}
87
- defaultTemplate: {
88
- type: Object,
89
- default: () => {},
90
- },
91
- grid: {
92
- type: Boolean,
93
- default: false,
94
- },
95
- paperSize: {
96
- type: Object,
97
- default: () => ({ width: 210, height: 296.6 }),
98
- },
99
- },
100
- data() {
101
- return {
102
- hiprintTemplate: {},
103
- };
104
- },
105
- created() {
106
- hiprint.init({
107
- // providers: [defaultElementTypeProvider()],
108
- providers: [provider1()],
109
- });
110
- },
111
- mounted() {
112
- this.buildLeftElement();
113
- this.buildDesigner();
114
- },
115
- methods: {
116
- buildLeftElement() {
117
- $("#provider-container1").empty();
118
- hiprint.PrintElementTypeManager.build($("#provider-container1"), "providerModule1");
119
-
120
- // eslint-disable-next-line no-undef
121
- // hiprint.PrintElementTypeManager.buildByHtml($(".ep-draggable-item"));
122
- },
123
- async buildDesigner() {
124
- // eslint-disable-next-line no-undef
125
- $("#hiprint-printTemplate").empty(); // 先清空, 避免重复构建
126
-
127
- this.hiprintTemplate = new hiprint.PrintTemplate({
128
- template: this.defaultTemplate,
129
- settingContainer: "#PrintElementOptionSetting",
130
- // paginationContainer: ".hiprint-printPagination", //多页打印
131
- history: true,
132
- onDataChanged: (type, json) => {
133
- console.log(type); // 新增、移动、删除、修改(参数调整)、大小、旋转
134
- console.log(json); // 返回 template
135
- },
136
- });
137
- // 使用 props 传入的纸张大小
138
- if (this.$refs.paperSelector) {
139
- this.$refs.paperSelector.curPaper = this.paperSize;
140
- }
141
- // 构建 并填充到 容器中
142
- // 可以先 console.log($("#hiprint-printTemplate")) 看看是否有该 dom
143
- this.hiprintTemplate.design("#hiprint-printTemplate", {
144
- grid: this.grid,
145
- });
146
- // console.log(6666, this.hiprintTemplate);
147
- },
148
- async print() {
149
- // 使用外部传入的打印数据
150
- let data = this.printData;
151
- if (this.onPrintData) {
152
- try {
153
- const result = await this.onPrintData(this.printData);
154
- if (result) data = result;
155
- else console.error("onPrintData 执行失败,返回数据为空");
156
- } catch (error) {
157
- console.error("onPrintData 执行失败:", error);
158
- }
159
- }
160
- // 参数: 打印时设置 左偏移量,上偏移量
161
- let options = { leftOffset: -1, topOffset: -1 };
162
- // 扩展
163
- let ext = {
164
- // callback: () => {
165
- // console.log("浏览器打印窗口已打开");
166
- // },
167
- // styleHandler: () => {
168
- // // 重写 文本 打印样式
169
- // return "<style>.hiprint-printElement-text{color:red !important;}</style>";
170
- // },
171
- };
172
-
173
- // 使用 props 传入的纸张大小
174
- ext.curPaper = this.paperSize;
175
-
176
- // 调用浏览器打印
177
- this.hiprintTemplate.print(data, options, ext);
178
- },
179
- exportJson() {
180
- const json = this.hiprintTemplate.getJson();
181
- const dataStr = JSON.stringify(json, null, 2);
182
- const blob = new Blob([dataStr], { type: "application/json" });
183
- console.log("保存", JSON.parse(dataStr));
184
- this.$emit("submit", JSON.parse(dataStr));
185
- this.close();
186
- // const url = URL.createObjectURL(blob);
187
- // const link = document.createElement("a");
188
- // link.href = url;
189
- // link.download = `print-template-${Date.now()}.json`;
190
- // document.body.appendChild(link);
191
- // link.click();
192
- // document.body.removeChild(link);
193
- // URL.revokeObjectURL(url);
194
- // alert("导出成功!");
195
- },
196
- clearPaper() {
197
- this.hiprintTemplate.clear();
198
- },
199
- close() {
200
- this.$destroy();
201
- this.$el.remove();
202
- this.$emit("close");
203
- },
204
- },
205
- };
206
- </script>
207
-
208
- <style scoped>
209
- /* flex */
210
- .flex-row {
211
- display: flex;
212
- }
213
- .flex-col {
214
- display: flex;
215
- flex-direction: column;
216
- }
217
- .flex-wrap {
218
- flex-wrap: wrap;
219
- }
220
- .align-center {
221
- align-items: center;
222
- }
223
- .justify-center {
224
- justify-content: center;
225
- }
226
-
227
- .flex-1 {
228
- flex: 1;
229
- }
230
- .flex-2 {
231
- flex: 2;
232
- }
233
- .flex-3 {
234
- flex: 3;
235
- }
236
- .flex-4 {
237
- flex: 4;
238
- }
239
- .flex-5 {
240
- flex: 5;
241
- }
242
-
243
- .ml-10 {
244
- margin-left: 10px;
245
- }
246
- .mr-10 {
247
- margin-right: 10px;
248
- }
249
- .mt-10 {
250
- margin-top: 10px;
251
- }
252
- .mb-10 {
253
- margin-bottom: 10px;
254
- }
255
-
256
- /* button 样式 为了好看点 */
257
- button {
258
- padding: 10px;
259
- min-width: 40px;
260
- color: white;
261
- opacity: 0.9;
262
- cursor: pointer;
263
- border-width: 0;
264
- border: 1px solid #d9d9d9;
265
- }
266
- button:hover {
267
- opacity: 1;
268
- }
269
- button i {
270
- font-size: 16px !important;
271
- }
272
- .circle,
273
- .circle-4 {
274
- border-radius: 4px !important;
275
- }
276
- .circle-10 {
277
- border-radius: 10px !important;
278
- }
279
- /* 按钮颜色 */
280
- .primary {
281
- background: purple;
282
- }
283
- .info {
284
- color: #000;
285
- background: none;
286
- }
287
- .info:hover {
288
- color: purple;
289
- border-color: purple;
290
- }
291
- .secondary {
292
- background: #1976d2;
293
- }
294
- .warning {
295
- background: #d32f2f;
296
- }
297
-
298
- /* modal */
299
- .modal {
300
- padding: 0;
301
- margin: 0;
302
- }
303
- .modal .mask {
304
- position: fixed;
305
- top: 0;
306
- right: 0;
307
- bottom: 0;
308
- left: 0;
309
- z-index: 1000;
310
- height: 100%;
311
- background-color: #00000073;
312
- }
313
- .modal .wrap {
314
- position: fixed;
315
- top: 0;
316
- right: 0;
317
- bottom: 0;
318
- left: 0;
319
- z-index: 1000;
320
- overflow: auto;
321
- background-color: #00000073;
322
- outline: 0;
323
- }
324
- .modal .wrap .box {
325
- position: relative;
326
- margin: 10% auto;
327
- width: 40%;
328
- background: #fff;
329
- border-radius: 4px;
330
- z-index: 1001;
331
- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
332
- transition: all 0.3s ease;
333
- }
334
- .modal-box__header {
335
- padding: 10px 14px;
336
- border-bottom: 1px solid #e9e9e9;
337
- }
338
- .modal-box__footer {
339
- text-align: end;
340
- }
341
- .modal-box__footer button {
342
- min-width: 100px;
343
- }
344
- .modal-box__footer button:not(:last-child) {
345
- margin-right: 10px;
346
- }
347
-
348
- /* 重写全局 hiprint 样式 */
349
- .hiprint-headerLine,
350
- .hiprint-footerLine {
351
- border-color: purple !important;
352
- }
353
-
354
- .hiprint-headerLine:hover,
355
- .hiprint-footerLine:hover {
356
- border-top: 3px dashed purple !important;
357
- }
358
-
359
- .hiprint-headerLine:hover:before {
360
- content: "页眉线";
361
- left: calc(50% - 18px);
362
- position: relative;
363
- background: #ffff;
364
- top: -14px;
365
- color: purple;
366
- font-size: 12px;
367
- }
368
-
369
- .hiprint-footerLine:hover:before {
370
- content: "页脚线";
371
- left: calc(50% - 18px);
372
- position: relative;
373
- color: purple;
374
- background: #ffff;
375
- top: -14px;
376
- font-size: 12px;
377
- }
378
- </style>
379
-
380
- <style>
381
- /* 重写默认的一个样式 */
382
- .rect-printElement-types .hiprint-printElement-type > li > ul > li > a {
383
- color: #000 !important;
384
- display: flex;
385
- align-items: center;
386
- justify-content: center;
387
- }
388
-
389
- /* 自定义 provider 构建样式 */
390
- .custom-style-types .hiprint-printElement-type {
391
- display: block;
392
- }
393
- .custom-style-types .hiprint-printElement-type {
394
- padding: 0 0 0 0;
395
- list-style: none;
396
- }
397
- .custom-style-types .hiprint-printElement-type > li > .title {
398
- display: block;
399
- padding: 4px 0px;
400
- color: rgb(0, 58, 230);
401
- clear: both;
402
- }
403
- .custom-style-types .hiprint-printElement-type > li > ul {
404
- padding: 0 0 0 0;
405
- display: block;
406
- list-style: none;
407
- }
408
- .custom-style-types .hiprint-printElement-type > li > ul > li {
409
- display: block;
410
- width: 50%;
411
- float: left;
412
- max-width: 100px;
413
- }
414
- .custom-style-types .hiprint-printElement-type > li > ul > li > a {
415
- padding: 12px 6px;
416
- color: #1296db;
417
- text-decoration: none;
418
- background: #fff;
419
- border: 1px solid #ddd;
420
- margin-right: 5px;
421
- width: 95%;
422
- max-width: 100px;
423
- display: inline-block;
424
- text-align: center;
425
- margin-bottom: 7px;
426
- box-sizing: border-box;
427
- border: 1px solid rgba(0, 0, 0, 0.2);
428
- border-radius: 4px;
429
- box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.15);
430
- }
431
- /* 隐藏 hiprint 打印 iframe,避免影响页面布局 */
432
- #hiwprint_iframe {
433
- position: fixed !important;
434
- top: -9999px !important;
435
- left: -9999px !important;
436
- width: 0 !important;
437
- height: 0 !important;
438
- visibility: hidden !important;
439
- opacity: 0 !important;
440
- }
441
- </style>
442
- <style scoped>
443
- /* api按钮 */
444
- .api {
445
- background: #00acc1;
446
- }
447
- .auto {
448
- width: auto !important;
449
- }
450
- /* 纸张 */
451
- .paper {
452
- margin-right: 10px;
453
- }
454
- .paper button:not(class*="auto") {
455
- width: 60px !important;
456
- }
457
- /* 多个 button 间距 */
458
- .paper button + button {
459
- margin-left: -1px;
460
- }
461
- .paper button:first-child:last-child {
462
- border-radius: 4px;
463
- }
464
- /* 两边的 btn 圆角 */
465
- .paper button:first-child:not(:last-child) {
466
- border-top-left-radius: 4px;
467
- border-bottom-left-radius: 4px;
468
- }
469
- .paper button:last-child:not(:first-child) {
470
- border-top-right-radius: 4px;
471
- border-bottom-right-radius: 4px;
472
- }
473
- .popover {
474
- position: absolute;
475
- margin-top: 10px;
476
- z-index: 10;
477
- }
478
- .popover .popover-content {
479
- background: white;
480
- border-radius: 4px;
481
- padding: 10px 14px;
482
- box-shadow: 2px 2px 2px 4px rgb(128 0 128 / 20%);
483
- }
484
- .popover .input {
485
- height: 24px;
486
- padding: 2px 4px;
487
- }
488
- .popover .input:hover {
489
- border-color: rgb(245, 155, 241);
490
- border-radius: 4px;
491
- }
492
-
493
- /* 区域 */
494
- .left {
495
- background: white;
496
- border-radius: 4px;
497
- border: 1px solid #d9d9d9;
498
- box-shadow: 2px 2px 2px 0px rgb(128 0 128 / 20%);
499
- overflow: auto;
500
- }
501
- .left .container {
502
- height: 100%;
503
- overflow: auto;
504
- padding: 0 10%;
505
- background: rgba(92, 91, 92, 0.1);
506
- }
507
- .left .container[id*="provider-container2"] {
508
- margin-bottom: 10px;
509
- background: rgba(92, 91, 92, 0.1);
510
- }
511
- .center {
512
- margin: 0 10px;
513
- background: white;
514
- border-radius: 4px;
515
- border: 1px solid #d9d9d9;
516
- padding: 20px;
517
- box-shadow: 2px 2px 2px 0px rgb(128 0 128 / 20%);
518
- overflow: auto;
519
- }
520
- .right {
521
- background: white;
522
- border-radius: 4px;
523
- border: 1px solid #d9d9d9;
524
- padding: 10px 0;
525
- box-shadow: 2px 2px 2px 0px rgb(128 0 128 / 20%);
526
- overflow: auto;
527
- }
528
- /* 左侧拖拽元素样式 */
529
- .title {
530
- font-size: 16px;
531
- font-weight: 500;
532
- margin: 4px 0 4px 10px;
533
- }
534
- .item {
535
- display: flex;
536
- flex-direction: column;
537
- align-items: center;
538
- background: white;
539
- padding: 4px 10px;
540
- margin: 10px 8px 4px 8px;
541
- width: 38%;
542
- min-height: 60px;
543
- border-radius: 4px;
544
- box-shadow: 2px 2px 2px 2px rgba(171, 171, 171, 0.2);
545
- }
546
- .item .iconfont {
547
- font-size: 1.5rem;
548
- }
549
- .item span {
550
- font-size: 14px;
551
- }
552
- </style>
553
-
554
- <!-- 弹框样式 -->
555
- <style scoped>
556
- .print-dialog-overlay {
557
- position: fixed;
558
- top: 0;
559
- left: 0;
560
- right: 0;
561
- bottom: 0;
562
- background: rgba(0, 0, 0, 0.5);
563
- display: flex;
564
- align-items: center;
565
- justify-content: center;
566
- z-index: 3000;
567
- }
568
-
569
- .print-dialog {
570
- background: #fff;
571
- width: 95vw;
572
- height: 95vh;
573
- border-radius: 8px;
574
- box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
575
- display: flex;
576
- flex-direction: column;
577
- }
578
-
579
- .print-dialog-header {
580
- display: flex;
581
- justify-content: space-between;
582
- align-items: center;
583
- padding: 12px 20px;
584
- border-bottom: 1px solid #e8e8e8;
585
- font-size: 16px;
586
- font-weight: 500;
587
- }
588
-
589
- .close-btn {
590
- cursor: pointer;
591
- font-size: 20px;
592
- color: #000;
593
- font-style: normal;
594
- }
595
-
596
- .close-btn:hover {
597
- color: #606266;
598
- }
599
-
600
- .print-dialog-body {
601
- flex: 1;
602
- overflow: hidden;
603
- padding: 10px;
604
- display: flex;
605
- flex-direction: column;
606
- }
607
- .print-dialog-body .main {
608
- flex: 1;
609
- overflow: hidden;
610
- }
611
- </style>
612
-
613
- <style scoped>
614
- .button-item {
615
- height: 40px;
616
- }
617
- .header-box {
618
- display: flex;
619
- align-items: center;
620
- justify-content: space-between;
621
- }
622
- </style>