@web-utils/component 2.0.12 → 2.0.14
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/3a79781b.js +75 -0
- package/dist/chunks/{44b78389.js → 41a066be.js} +8 -8
- package/dist/chunks/{e1939731.js → 5a78e0db.js} +5 -6
- package/dist/chunks/5d4282fb.js +30 -0
- package/dist/chunks/{822300f3.js → 61ad06b2.js} +3 -3
- package/dist/chunks/76680a03.js +24 -0
- package/dist/chunks/8c0142e0.js +81 -0
- package/dist/chunks/97652d86.js +26 -0
- package/dist/chunks/b4acd3a6.js +126 -0
- package/dist/chunks/f71045fc.js +184 -0
- package/dist/components/address-input/index.js +43 -56
- package/dist/components/address-input/style.css +1 -15
- package/dist/components/aside-menu/index.js +30 -36
- package/dist/components/aside-menu/style.css +1 -9
- package/dist/components/awesome-button/index.js +32 -35
- package/dist/components/base.css +1 -66
- package/dist/components/capsule-tab/index.js +27 -33
- package/dist/components/capsule-tab/style.css +1 -32
- package/dist/components/chunk-file-uploader/index.js +54 -88
- package/dist/components/chunk-file-uploader/style.css +1 -4
- package/dist/components/chunk-file-uploader-button/index.js +25 -31
- package/dist/components/chunk-file-uploader-button/style.css +1 -17
- package/dist/components/chunk-file-uploader-drop/index.js +28 -42
- package/dist/components/chunk-file-uploader-drop/style.css +1 -12
- package/dist/components/chunk-file-uploader-file/index.js +134 -212
- package/dist/components/chunk-file-uploader-file/style.css +1 -125
- package/dist/components/chunk-file-uploader-files/index.js +28 -34
- package/dist/components/chunk-file-uploader-files/style.css +1 -9
- package/dist/components/chunk-file-uploader-list/index.js +29 -35
- package/dist/components/chunk-file-uploader-list/style.css +1 -9
- package/dist/components/chunk-file-uploader-un-support/index.js +30 -38
- package/dist/components/chunk-file-uploader-un-support/style.css +1 -6
- package/dist/components/code-mirror-editor/index.js +153 -181
- package/dist/components/code-mirror-editor/style.css +1 -17
- package/dist/components/color-picker/index.js +49 -68
- package/dist/components/confirm-button/index.js +19 -21
- package/dist/components/confirmable/index.js +18 -19
- package/dist/components/context-menu/index.js +108 -130
- package/dist/components/context-menu/style.css +1 -88
- package/dist/components/custom-scrollbar/index.js +49 -67
- package/dist/components/data-table-picker/index.js +62 -81
- package/dist/components/dynamic-table/index.js +89 -113
- package/dist/components/dynamic-table/style.css +1 -30
- package/dist/components/e-charts/index.js +120 -201
- package/dist/components/e-charts/style.css +1 -10
- package/dist/components/editable-progress/index.js +60 -93
- package/dist/components/editable-progress/style.css +1 -37
- package/dist/components/editable-tree/index.js +423 -638
- package/dist/components/editable-tree/style.css +1 -82
- package/dist/components/egd-collapse/index.js +33 -46
- package/dist/components/egd-collapse-item/index.js +60 -76
- package/dist/components/element-dialog/index.js +95 -147
- package/dist/components/element-dialog/style.css +1 -102
- package/dist/components/empty-view/index.js +28 -34
- package/dist/components/empty-view/style.css +1 -17
- package/dist/components/error-view/index.js +26 -32
- package/dist/components/error-view/style.css +1 -17
- package/dist/components/flex-column/index.js +25 -40
- package/dist/components/flex-item/index.js +29 -57
- package/dist/components/flex-row/index.js +25 -40
- package/dist/components/flex-scroller/index.js +26 -32
- package/dist/components/flex-scroller/style.css +1 -20
- package/dist/components/form-button/index.js +34 -38
- package/dist/components/form-cascader/index.js +71 -81
- package/dist/components/form-checkbox-group/index.js +88 -113
- package/dist/components/form-checkbox-group/style.css +1 -51
- package/dist/components/form-date-picker/index.js +70 -132
- package/dist/components/form-holder/index.js +32 -39
- package/dist/components/form-input/index.js +56 -62
- package/dist/components/form-input-email/index.js +48 -60
- package/dist/components/form-input-id-card/index.js +53 -59
- package/dist/components/form-input-number/index.js +61 -68
- package/dist/components/form-input-number/style.css +1 -12
- package/dist/components/form-input-phone-number/index.js +49 -55
- package/dist/components/form-input-time/index.js +53 -59
- package/dist/components/form-item/index.js +80 -123
- package/dist/components/form-item/style.css +1 -11
- package/dist/components/form-item-config-provider/index.js +25 -26
- package/dist/components/form-item-group/index.js +85 -111
- package/dist/components/form-item-group/style.css +1 -30
- package/dist/components/form-radio-group/index.js +85 -104
- package/dist/components/form-radio-group/style.css +1 -53
- package/dist/components/form-select/index.js +76 -91
- package/dist/components/form-switch/index.js +51 -57
- package/dist/components/form-textarea/index.js +51 -57
- package/dist/components/form-view/index.js +165 -232
- package/dist/components/form-view/style.css +1 -158
- package/dist/components/guide-steps/index.js +44 -58
- package/dist/components/guide-steps/style.css +1 -34
- package/dist/components/icon-card/index.js +29 -35
- package/dist/components/icon-card/style.css +1 -56
- package/dist/components/iframe-window/index.js +29 -35
- package/dist/components/iframe-window/style.css +1 -20
- package/dist/components/image-viewer/index.js +48 -66
- package/dist/components/image-viewer/style.css +1 -21
- package/dist/components/input-number/index.js +127 -193
- package/dist/components/input-number/style.css +1 -15
- package/dist/components/input-number-range/index.js +45 -57
- package/dist/components/input-number-range/style.css +1 -12
- package/dist/components/j-s-x-component/index.js +4 -4
- package/dist/components/keep-view-alive/index.js +73 -120
- package/dist/components/loading-view/index.js +26 -32
- package/dist/components/loading-view/style.css +1 -17
- package/dist/components/nav-bar/index.js +27 -37
- package/dist/components/nav-bar/style.css +1 -17
- package/dist/components/not-implement/index.js +23 -31
- package/dist/components/not-implement/style.css +1 -15
- package/dist/components/page/index.js +22 -28
- package/dist/components/page/style.css +1 -12
- package/dist/components/page-header/index.js +30 -36
- package/dist/components/page-header/style.css +1 -14
- package/dist/components/page-index/index.js +62 -83
- package/dist/components/page-index/style.css +1 -23
- package/dist/components/page-index-top/index.js +53 -68
- package/dist/components/page-skeleton/index.js +31 -37
- package/dist/components/page-skeleton/style.css +1 -23
- package/dist/components/page-skeleton-new/index.js +42 -48
- package/dist/components/page-skeleton-new/style.css +1 -42
- package/dist/components/pageable-table/index.js +186 -253
- package/dist/components/pageable-table/style.css +1 -72
- package/dist/components/pageable-view/index.js +129 -199
- package/dist/components/pageable-view/style.css +1 -69
- package/dist/components/photo-swipe/index.js +110 -151
- package/dist/components/photo-swipe/style.css +1 -20
- package/dist/components/resize-observer/index.js +34 -68
- package/dist/components/resize-observer/style.css +1 -31
- package/dist/components/search-popover/index.js +153 -211
- package/dist/components/search-popover/style.css +1 -93
- package/dist/components/sign-panel/index.js +92 -142
- package/dist/components/sign-panel/style.css +1 -97
- package/dist/components/split-pane/index.js +101 -162
- package/dist/components/split-pane/style.css +1 -100
- package/dist/components/stateful/index.js +31 -34
- package/dist/components/stateful/style.css +1 -33
- package/dist/components/static-pageable-table/index.js +37 -44
- package/dist/components/static-pageable-table/style.css +1 -9
- package/dist/components/swiper/index.js +85 -150
- package/dist/components/swiper/style.css +1 -43
- package/dist/components/tab/index.js +54 -72
- package/dist/components/tab/style.css +1 -122
- package/dist/components/tab-item/index.js +30 -35
- package/dist/components/table-column/index.js +30 -32
- package/dist/components/table-view/index.js +156 -227
- package/dist/components/table-view/style.css +1 -95
- package/dist/components/tag-render/index.js +44 -58
- package/dist/components/tag-render/style.css +1 -33
- package/dist/components/tinymce-editor/index.js +79 -95
- package/dist/components/tinymce-editor/style.css +1 -43
- package/dist/components/tinymce-wrapper/index.js +92 -121
- package/dist/components/tinymce-wrapper/style.css +1 -36
- package/dist/components/toolbar/index.js +63 -84
- package/dist/components/toolbar/style.css +1 -39
- package/dist/components/toolbar-button/index.js +41 -48
- package/dist/components/toolbar-button/style.css +1 -21
- package/dist/components/trigger/index.js +29 -36
- package/dist/components/vue-tags-input/index.js +188 -308
- package/dist/components/vue-tags-input/style.css +1 -682
- package/dist/components/watermark/index.js +25 -37
- package/dist/components/watermark/style.css +1 -11
- package/dist/components/x-dialog/index.js +67 -93
- package/dist/components/x-dialog/style.css +1 -15
- package/dist/index.css +193 -1105
- package/dist/index.es.js +4790 -7243
- package/package.json +1 -2
- package/web-types.json +1 -1
- package/dist/chunks/3d28cc08.js +0 -57
- package/dist/chunks/5d33812d.js +0 -147
- package/dist/chunks/9d848bf6.js +0 -99
- package/dist/chunks/a0bb327b.js +0 -96
- package/dist/chunks/a8891d2c.js +0 -30
- package/dist/chunks/c69d5628.js +0 -248
- package/dist/chunks/de9fe802.js +0 -24
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "tinymce/skins/lightgray/skin.min.css";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import d from "tinymce";
|
|
3
|
+
import c from "@tinymce/tinymce-vue";
|
|
4
4
|
import "tinymce/themes/modern/theme";
|
|
5
5
|
import "tinymce/plugins/contextmenu";
|
|
6
6
|
import "tinymce/plugins/wordcount";
|
|
@@ -8,9 +8,9 @@ import "tinymce/plugins/image";
|
|
|
8
8
|
import "tinymce/plugins/fullscreen";
|
|
9
9
|
import "tinymce/plugins/preview";
|
|
10
10
|
import "tinymce/plugins/imagetools";
|
|
11
|
-
import { guid } from "@web-utils/core";
|
|
12
|
-
import { n as
|
|
13
|
-
const
|
|
11
|
+
import { guid as u } from "@web-utils/core";
|
|
12
|
+
import { n as p } from "../../chunks/5d4282fb.js";
|
|
13
|
+
const m = {
|
|
14
14
|
Redo: "重做",
|
|
15
15
|
Undo: "撤销",
|
|
16
16
|
Cut: "剪切",
|
|
@@ -400,55 +400,51 @@ const zhCN = {
|
|
|
400
400
|
Caption: "标题",
|
|
401
401
|
"Insert template": "插入模板"
|
|
402
402
|
};
|
|
403
|
-
var
|
|
404
|
-
var
|
|
405
|
-
|
|
406
|
-
var _c = _vm._self._c || _h;
|
|
407
|
-
return _vm.show ? _c("div", {
|
|
403
|
+
var g = function() {
|
|
404
|
+
var e = this, a = e.$createElement, i = e._self._c || a;
|
|
405
|
+
return e.show ? i("div", {
|
|
408
406
|
class: ["tinymce-editor", {
|
|
409
|
-
"none-resize": !
|
|
407
|
+
"none-resize": !e.resize
|
|
410
408
|
}]
|
|
411
|
-
}, [
|
|
409
|
+
}, [i("Editor", {
|
|
412
410
|
ref: "editor",
|
|
413
411
|
attrs: {
|
|
414
|
-
|
|
412
|
+
disabled: e.inputDisabled,
|
|
415
413
|
"model-events": "change input undo redo SetContent",
|
|
416
|
-
|
|
414
|
+
init: e.init
|
|
417
415
|
},
|
|
418
416
|
model: {
|
|
419
|
-
value:
|
|
420
|
-
callback: function(
|
|
421
|
-
|
|
417
|
+
value: e.val,
|
|
418
|
+
callback: function(r) {
|
|
419
|
+
e.val = r;
|
|
422
420
|
},
|
|
423
421
|
expression: "val"
|
|
424
422
|
}
|
|
425
|
-
}),
|
|
423
|
+
}), i("ElUpload", {
|
|
426
424
|
ref: "uploader",
|
|
427
425
|
staticStyle: {
|
|
428
|
-
|
|
426
|
+
display: "none"
|
|
429
427
|
},
|
|
430
428
|
attrs: {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
"before-upload":
|
|
434
|
-
"on-success":
|
|
435
|
-
"show-file-list":
|
|
436
|
-
|
|
437
|
-
unid:
|
|
438
|
-
type:
|
|
429
|
+
action: e.action,
|
|
430
|
+
headers: e.headers,
|
|
431
|
+
"before-upload": e.beforeUploadFile,
|
|
432
|
+
"on-success": e.onFileUploadSuccess,
|
|
433
|
+
"show-file-list": !1,
|
|
434
|
+
data: {
|
|
435
|
+
unid: e.guid(),
|
|
436
|
+
type: e.fileLabel
|
|
439
437
|
},
|
|
440
438
|
"auto-upload": "",
|
|
441
|
-
|
|
439
|
+
accept: ".jpg,.jpeg,.png,.gif,.bmp"
|
|
442
440
|
}
|
|
443
|
-
}, [
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
const
|
|
447
|
-
tinymce.addI18n("zh_CN", zhCN);
|
|
448
|
-
const __vue2_script = {
|
|
441
|
+
}, [i("span")])], 1) : e._e();
|
|
442
|
+
}, h = [];
|
|
443
|
+
d.addI18n("zh_CN", m);
|
|
444
|
+
const f = {
|
|
449
445
|
name: "TinymceWrapper",
|
|
450
446
|
components: {
|
|
451
|
-
Editor
|
|
447
|
+
Editor: c
|
|
452
448
|
},
|
|
453
449
|
inject: {
|
|
454
450
|
elForm: {
|
|
@@ -466,11 +462,11 @@ const __vue2_script = {
|
|
|
466
462
|
resize: Boolean,
|
|
467
463
|
disabled: {
|
|
468
464
|
type: Boolean,
|
|
469
|
-
default:
|
|
465
|
+
default: !1
|
|
470
466
|
},
|
|
471
467
|
showTypes: {
|
|
472
468
|
type: Boolean,
|
|
473
|
-
default:
|
|
469
|
+
default: !0
|
|
474
470
|
},
|
|
475
471
|
plugins: {
|
|
476
472
|
type: [String, Array],
|
|
@@ -493,67 +489,53 @@ const __vue2_script = {
|
|
|
493
489
|
imageUrl: String
|
|
494
490
|
},
|
|
495
491
|
data() {
|
|
496
|
-
const
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
let toolbar = this.toolbar || " | ";
|
|
500
|
-
const defaultToolbar = "bold italic underline | alignleft aligncenter alignright alignjustify | fontselect fontsizeselect | removeformat | ";
|
|
501
|
-
toolbar = `${defaultToolbar} | ${toolbar}`;
|
|
502
|
-
if (buttons) {
|
|
503
|
-
toolbar += ` ${buttons.map((value) => value.name).join(" ")}`;
|
|
504
|
-
}
|
|
505
|
-
toolbar += " | fullscreen";
|
|
506
|
-
return {
|
|
492
|
+
const a = ["fullscreen", "image", "wordcount"].join(","), i = this.buttons || [];
|
|
493
|
+
let r = this.toolbar || " | ";
|
|
494
|
+
return r = `bold italic underline | alignleft aligncenter alignright alignjustify | fontselect fontsizeselect | removeformat | | ${r}`, i && (r += ` ${i.map((o) => o.name).join(" ")}`), r += " | fullscreen", {
|
|
507
495
|
val: "",
|
|
508
|
-
show:
|
|
496
|
+
show: !0,
|
|
509
497
|
init: {
|
|
510
|
-
setup: (
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
})
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
buttons.forEach((btn) => {
|
|
526
|
-
btn.icon = ` ${btn.icon}`;
|
|
527
|
-
const { onclick } = btn;
|
|
528
|
-
editor.addButton(btn.name, {
|
|
529
|
-
...btn,
|
|
530
|
-
onclick: () => onclick(editor)
|
|
498
|
+
setup: (o) => {
|
|
499
|
+
o.settings.dialog_title = this.dialogTitle, o.settings.show_types = this.showTypes, o.on("PreInit", (t) => {
|
|
500
|
+
t.target.dom.doc.body.style.fontFamily = "微软雅黑";
|
|
501
|
+
}), o.on("Blur", (t) => {
|
|
502
|
+
this.$emit("on-blur", t);
|
|
503
|
+
}), o.on("DialogShow", (t) => {
|
|
504
|
+
this.$emit("dialog-show", t);
|
|
505
|
+
}), o.on("DialogHide", (t) => {
|
|
506
|
+
this.$emit("dialog-hide", t);
|
|
507
|
+
}), i.forEach((t) => {
|
|
508
|
+
t.icon = ` ${t.icon}`;
|
|
509
|
+
const { onclick: s } = t;
|
|
510
|
+
o.addButton(t.name, {
|
|
511
|
+
...t,
|
|
512
|
+
onclick: () => s(o)
|
|
531
513
|
});
|
|
532
514
|
});
|
|
533
|
-
const
|
|
515
|
+
const n = {
|
|
534
516
|
icon: " el-icon-picture",
|
|
535
517
|
name: "uploadImage",
|
|
536
518
|
title: "上传图片",
|
|
537
519
|
onclick: this.upload
|
|
538
520
|
};
|
|
539
|
-
|
|
540
|
-
...
|
|
541
|
-
onclick: () =>
|
|
521
|
+
o.addButton(n.name, {
|
|
522
|
+
...n,
|
|
523
|
+
onclick: () => n.onclick(o)
|
|
542
524
|
});
|
|
543
525
|
},
|
|
544
|
-
toolbar,
|
|
526
|
+
toolbar: r,
|
|
545
527
|
placeholder: "在这里输入文字",
|
|
546
528
|
content_style: "*{margin:0;padding:0} body{font-family: 微软雅黑, sans-serif;padding:10px; font-size: 18px} .template-tag {font-style: italic;color: #1e90ff;margin: 0 10px;font-weight: bold;cursor: help !important;font-family: 黑体,serif;}",
|
|
547
529
|
fontname: "宋体",
|
|
548
530
|
fontFamily: "宋体",
|
|
549
|
-
branding:
|
|
531
|
+
branding: !1,
|
|
550
532
|
query_params: this.queryParams,
|
|
551
|
-
skin:
|
|
533
|
+
skin: !1,
|
|
552
534
|
dialog_title: "",
|
|
553
|
-
menubar:
|
|
535
|
+
menubar: !1,
|
|
554
536
|
height: "100%",
|
|
555
|
-
elementpath:
|
|
556
|
-
plugins: `${
|
|
537
|
+
elementpath: !1,
|
|
538
|
+
plugins: `${a},${this.plugins}`,
|
|
557
539
|
font_formats: '微软雅黑="微软雅黑";宋体="宋体";黑体="黑体";仿宋="仿宋";楷体="楷体";隶书="隶书";幼圆="幼圆";Arial="Arial";'
|
|
558
540
|
}
|
|
559
541
|
};
|
|
@@ -563,51 +545,42 @@ const __vue2_script = {
|
|
|
563
545
|
return this.disabled || (this.elForm || {}).disabled;
|
|
564
546
|
},
|
|
565
547
|
fileLabel() {
|
|
566
|
-
|
|
567
|
-
return this.prop;
|
|
568
|
-
} else if (this.elFormItem) {
|
|
569
|
-
return this.elFormItem.prop;
|
|
570
|
-
} else {
|
|
571
|
-
return "";
|
|
572
|
-
}
|
|
548
|
+
return this.prop ? this.prop : this.elFormItem ? this.elFormItem.prop : "";
|
|
573
549
|
},
|
|
574
550
|
action() {
|
|
575
|
-
var
|
|
576
|
-
return (
|
|
551
|
+
var e;
|
|
552
|
+
return (e = this.getUploadUrl) == null ? void 0 : e.call(this);
|
|
577
553
|
},
|
|
578
554
|
headers() {
|
|
579
|
-
var
|
|
580
|
-
return (
|
|
555
|
+
var e;
|
|
556
|
+
return (e = this.getHeader) == null ? void 0 : e.call(this);
|
|
581
557
|
}
|
|
582
558
|
},
|
|
583
559
|
watch: {
|
|
584
560
|
value: {
|
|
585
|
-
immediate:
|
|
586
|
-
handler(
|
|
587
|
-
this.val =
|
|
561
|
+
immediate: !0,
|
|
562
|
+
handler(e) {
|
|
563
|
+
this.val = e;
|
|
588
564
|
}
|
|
589
565
|
},
|
|
590
|
-
dialogTitle(
|
|
591
|
-
|
|
592
|
-
this.getEditor().settings.dialog_title = newVal;
|
|
593
|
-
}
|
|
566
|
+
dialogTitle(e) {
|
|
567
|
+
this.getEditor() && (this.getEditor().settings.dialog_title = e);
|
|
594
568
|
},
|
|
595
|
-
val(
|
|
596
|
-
this.elForm && this.elFormItem && this.elForm.clearValidate([this.elFormItem.prop]);
|
|
597
|
-
this.$emit("input", newVal);
|
|
569
|
+
val(e) {
|
|
570
|
+
this.elForm && this.elFormItem && this.elForm.clearValidate([this.elFormItem.prop]), this.$emit("input", e);
|
|
598
571
|
}
|
|
599
572
|
},
|
|
600
573
|
deactivated() {
|
|
601
|
-
this.show =
|
|
574
|
+
this.show = !1;
|
|
602
575
|
},
|
|
603
576
|
activated() {
|
|
604
|
-
this.show =
|
|
577
|
+
this.show = !0;
|
|
605
578
|
},
|
|
606
579
|
methods: {
|
|
607
580
|
getEditor() {
|
|
608
581
|
return this.$refs.editor.editor;
|
|
609
582
|
},
|
|
610
|
-
guid,
|
|
583
|
+
guid: u,
|
|
611
584
|
focus() {
|
|
612
585
|
this.getEditor().focus();
|
|
613
586
|
},
|
|
@@ -616,32 +589,30 @@ const __vue2_script = {
|
|
|
616
589
|
},
|
|
617
590
|
beforeUploadFile() {
|
|
618
591
|
},
|
|
619
|
-
onFileUploadSuccess(
|
|
592
|
+
onFileUploadSuccess(e) {
|
|
620
593
|
this.getEditor().insertContent(
|
|
621
|
-
`<img alt="图片" src="${
|
|
594
|
+
`<img alt="图片" src="${e.data.filePath.replace("/var/local/data/merge", this.imageUrl || "")}"/>`
|
|
622
595
|
);
|
|
623
596
|
}
|
|
624
597
|
}
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
__vue2_injectStyles,
|
|
598
|
+
}, l = {};
|
|
599
|
+
var y = /* @__PURE__ */ p(
|
|
600
|
+
f,
|
|
601
|
+
g,
|
|
602
|
+
h,
|
|
603
|
+
!1,
|
|
604
|
+
w,
|
|
633
605
|
null,
|
|
634
606
|
null,
|
|
635
607
|
null
|
|
636
608
|
);
|
|
637
|
-
function
|
|
638
|
-
for (let
|
|
639
|
-
this[
|
|
640
|
-
}
|
|
609
|
+
function w(e) {
|
|
610
|
+
for (let a in l)
|
|
611
|
+
this[a] = l[a];
|
|
641
612
|
}
|
|
642
|
-
const
|
|
643
|
-
return
|
|
613
|
+
const D = /* @__PURE__ */ function() {
|
|
614
|
+
return y.exports;
|
|
644
615
|
}();
|
|
645
616
|
export {
|
|
646
|
-
|
|
617
|
+
D as default
|
|
647
618
|
};
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/* 应用头部高度 */
|
|
3
|
-
/* 页面宽度 */
|
|
4
|
-
/* 侧栏宽度 */
|
|
5
|
-
/* 标签高度 */
|
|
6
|
-
/* 页面头部工具条高度 */
|
|
7
|
-
.tinymce-editor {
|
|
8
|
-
height: 100%;
|
|
9
|
-
}
|
|
10
|
-
.tinymce-editor.none-resize .mce-resizehandle {
|
|
11
|
-
display: none;
|
|
12
|
-
}
|
|
13
|
-
.tinymce-editor .mce-tinymce {
|
|
14
|
-
flex: 1;
|
|
15
|
-
height: calc(100% - 4px);
|
|
16
|
-
}
|
|
17
|
-
.tinymce-editor .mce-tinymce .mce-menubtn.mce-fixed-width span {
|
|
18
|
-
width: 60px;
|
|
19
|
-
}
|
|
20
|
-
.tinymce-editor .mce-tinymce > .mce-container-body {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
height: 100%;
|
|
24
|
-
}
|
|
25
|
-
.tinymce-editor .mce-tinymce > .mce-container-body > .mce-edit-area {
|
|
26
|
-
flex: 1;
|
|
27
|
-
}
|
|
28
|
-
.tinymce-editor .fa-icon {
|
|
29
|
-
font: normal normal normal 14px/1 FontAwesome !important;
|
|
30
|
-
}
|
|
31
|
-
.tinymce-editor .el-icon {
|
|
32
|
-
font-family: element-icons, serif !important;
|
|
33
|
-
}
|
|
34
|
-
.tinymce-editor .mce-label {
|
|
35
|
-
display: none;
|
|
36
|
-
}
|
|
1
|
+
.tinymce-editor{height:100%}.tinymce-editor.none-resize .mce-resizehandle{display:none}.tinymce-editor .mce-tinymce{flex:1;height:calc(100% - 4px)}.tinymce-editor .mce-tinymce .mce-menubtn.mce-fixed-width span{width:60px}.tinymce-editor .mce-tinymce>.mce-container-body{display:flex;flex-direction:column;height:100%}.tinymce-editor .mce-tinymce>.mce-container-body>.mce-edit-area{flex:1}.tinymce-editor .fa-icon{font: 14px/1 FontAwesome!important}.tinymce-editor .el-icon{font-family:element-icons,serif!important}.tinymce-editor .mce-label{display:none}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NOOP } from "@web-utils/core";
|
|
2
|
-
import { n as
|
|
3
|
-
const
|
|
1
|
+
import { NOOP as h } from "@web-utils/core";
|
|
2
|
+
import { n as b } from "../../chunks/5d4282fb.js";
|
|
3
|
+
const p = {
|
|
4
4
|
back: {
|
|
5
5
|
label: "返回",
|
|
6
6
|
type: "primary",
|
|
@@ -93,10 +93,9 @@ const builtinButtons = {
|
|
|
93
93
|
search: {
|
|
94
94
|
label: "搜索",
|
|
95
95
|
icon: "el-icon-search",
|
|
96
|
-
separateLine:
|
|
96
|
+
separateLine: !1
|
|
97
97
|
}
|
|
98
|
-
}
|
|
99
|
-
const __vue2_script = {
|
|
98
|
+
}, f = {
|
|
100
99
|
name: "Toolbar",
|
|
101
100
|
provide() {
|
|
102
101
|
return {
|
|
@@ -127,112 +126,92 @@ const __vue2_script = {
|
|
|
127
126
|
},
|
|
128
127
|
methods: {
|
|
129
128
|
goBack() {
|
|
130
|
-
const
|
|
131
|
-
this.$bus("closeTab",
|
|
129
|
+
const e = this.$route.path;
|
|
130
|
+
this.$bus("closeTab", e, this);
|
|
132
131
|
},
|
|
133
|
-
fire(
|
|
134
|
-
|
|
135
|
-
this.$parent && this.$parent.$emit(type, event, this);
|
|
136
|
-
} else {
|
|
137
|
-
this.$emit(type, event, this);
|
|
138
|
-
}
|
|
132
|
+
fire(e, t) {
|
|
133
|
+
this.emitter === "parent" ? this.$parent && this.$parent.$emit(e, t, this) : this.$emit(e, t, this);
|
|
139
134
|
},
|
|
140
|
-
createButton(
|
|
141
|
-
label,
|
|
142
|
-
icon,
|
|
143
|
-
type,
|
|
144
|
-
separateLine =
|
|
135
|
+
createButton(e, {
|
|
136
|
+
label: t,
|
|
137
|
+
icon: o,
|
|
138
|
+
type: i,
|
|
139
|
+
separateLine: a = !0
|
|
145
140
|
}) {
|
|
146
|
-
var
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"separate-line": separateLine,
|
|
158
|
-
"icon": icon,
|
|
159
|
-
"label": buttonLabel,
|
|
160
|
-
"footer": this.footer,
|
|
161
|
-
"type": type
|
|
141
|
+
var r;
|
|
142
|
+
const n = this.$createElement;
|
|
143
|
+
let l;
|
|
144
|
+
const s = ((r = this.label) == null ? void 0 : r[e]) || t;
|
|
145
|
+
return ["back", "cancel"].includes(e) ? l = this.goBack : l = (c) => (this.$listeners[e] || h)(c), n("ToolbarButton", {
|
|
146
|
+
attrs: {
|
|
147
|
+
"separate-line": a,
|
|
148
|
+
icon: o,
|
|
149
|
+
label: s,
|
|
150
|
+
footer: this.footer,
|
|
151
|
+
type: i
|
|
162
152
|
},
|
|
163
|
-
|
|
164
|
-
|
|
153
|
+
on: {
|
|
154
|
+
click: l
|
|
165
155
|
}
|
|
166
156
|
});
|
|
167
157
|
},
|
|
168
158
|
getLeftButtons() {
|
|
169
|
-
var
|
|
159
|
+
var o, i;
|
|
170
160
|
const {
|
|
171
|
-
createButton
|
|
161
|
+
createButton: e
|
|
172
162
|
} = this;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
} else if (key === "slot") {
|
|
181
|
-
return ((_d = (_c = this.$scopedSlots).default) == null ? void 0 : _d.call(_c, {
|
|
182
|
-
buttons: this.buttons,
|
|
183
|
-
footer: this.footer
|
|
184
|
-
})) ?? null;
|
|
185
|
-
} else {
|
|
186
|
-
return null;
|
|
187
|
-
}
|
|
163
|
+
return ((i = (o = this.$scopedSlots)["toolbar-left"]) == null ? void 0 : i.call(o)) || this.buttons.map((a) => {
|
|
164
|
+
var l, s, r, c;
|
|
165
|
+
const n = p[a];
|
|
166
|
+
return n ? ((s = (l = this.$scopedSlots)[a]) == null ? void 0 : s.call(l)) || e(a, n) : a === "slot" ? ((c = (r = this.$scopedSlots).default) == null ? void 0 : c.call(r, {
|
|
167
|
+
buttons: this.buttons,
|
|
168
|
+
footer: this.footer
|
|
169
|
+
})) ?? null : null;
|
|
188
170
|
});
|
|
189
171
|
},
|
|
190
172
|
getRightButtons() {
|
|
191
|
-
var
|
|
192
|
-
|
|
193
|
-
return vNodes || this.getSearchButton();
|
|
173
|
+
var t, o;
|
|
174
|
+
return ((o = (t = this.$scopedSlots)["toolbar-right"]) == null ? void 0 : o.call(t)) || this.getSearchButton();
|
|
194
175
|
},
|
|
195
176
|
getSearchButton() {
|
|
196
177
|
const {
|
|
197
|
-
createButton
|
|
178
|
+
createButton: e
|
|
198
179
|
} = this;
|
|
199
|
-
return this.searchable ?
|
|
180
|
+
return this.searchable ? e("search", p.search) : null;
|
|
200
181
|
}
|
|
201
182
|
},
|
|
202
183
|
render() {
|
|
203
|
-
const
|
|
204
|
-
return this.footer ?
|
|
205
|
-
|
|
206
|
-
}, [this.getLeftButtons()]) :
|
|
207
|
-
|
|
208
|
-
}, [
|
|
209
|
-
|
|
210
|
-
}, [this.getLeftButtons()]),
|
|
211
|
-
|
|
184
|
+
const e = arguments[0];
|
|
185
|
+
return this.footer ? e("div", {
|
|
186
|
+
class: "footer-bar"
|
|
187
|
+
}, [this.getLeftButtons()]) : e("div", {
|
|
188
|
+
class: "toolbar"
|
|
189
|
+
}, [e("div", {
|
|
190
|
+
class: "toolbar-left"
|
|
191
|
+
}, [this.getLeftButtons()]), e("div", {
|
|
192
|
+
class: "toolbar-right"
|
|
212
193
|
}, [this.getRightButtons()])]);
|
|
213
194
|
}
|
|
214
195
|
};
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
__vue2_injectStyles,
|
|
196
|
+
let d, y;
|
|
197
|
+
const u = {};
|
|
198
|
+
var m = /* @__PURE__ */ b(
|
|
199
|
+
f,
|
|
200
|
+
d,
|
|
201
|
+
y,
|
|
202
|
+
!1,
|
|
203
|
+
_,
|
|
224
204
|
null,
|
|
225
205
|
null,
|
|
226
206
|
null
|
|
227
207
|
);
|
|
228
|
-
function
|
|
229
|
-
for (let
|
|
230
|
-
this[
|
|
231
|
-
}
|
|
208
|
+
function _(e) {
|
|
209
|
+
for (let t in u)
|
|
210
|
+
this[t] = u[t];
|
|
232
211
|
}
|
|
233
|
-
const
|
|
234
|
-
return
|
|
212
|
+
const $ = /* @__PURE__ */ function() {
|
|
213
|
+
return m.exports;
|
|
235
214
|
}();
|
|
236
215
|
export {
|
|
237
|
-
|
|
216
|
+
$ as default
|
|
238
217
|
};
|
|
@@ -1,39 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/* 应用头部高度 */
|
|
3
|
-
/* 页面宽度 */
|
|
4
|
-
/* 侧栏宽度 */
|
|
5
|
-
/* 标签高度 */
|
|
6
|
-
/* 页面头部工具条高度 */
|
|
7
|
-
.toolbar {
|
|
8
|
-
display: flex;
|
|
9
|
-
height: 40px;
|
|
10
|
-
padding: 0 10px;
|
|
11
|
-
line-height: 40px;
|
|
12
|
-
background-color: #fff;
|
|
13
|
-
border-bottom: 1px solid #e5e9ec;
|
|
14
|
-
}
|
|
15
|
-
.toolbar .toolbar-left {
|
|
16
|
-
flex: 1 1 auto;
|
|
17
|
-
}
|
|
18
|
-
.toolbar .toolbar-left > .form-toolbar-button:last-child .separate-line {
|
|
19
|
-
display: none;
|
|
20
|
-
}
|
|
21
|
-
.toolbar .toolbar-left [class*=" el-icon-"], .toolbar .toolbar-left [class^=el-icon-], .toolbar .toolbar-left i.fa {
|
|
22
|
-
margin-top: -1px;
|
|
23
|
-
color: #1989fa;
|
|
24
|
-
font-size: 15px;
|
|
25
|
-
}
|
|
26
|
-
.toolbar .toolbar-right .el-button {
|
|
27
|
-
display: inline-flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
}
|
|
30
|
-
.footer-bar {
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
align-items: center;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
padding-top: 10px;
|
|
36
|
-
}
|
|
37
|
-
.footer-bar .el-button {
|
|
38
|
-
padding: 10px 40px;
|
|
39
|
-
}
|
|
1
|
+
.toolbar{display:flex;height:40px;padding:0 10px;line-height:40px;background-color:#fff;border-bottom:1px solid #e5e9ec}.toolbar .toolbar-left{flex:1 1 auto}.toolbar .toolbar-left>.form-toolbar-button:last-child .separate-line{display:none}.toolbar .toolbar-left [class*=" el-icon-"],.toolbar .toolbar-left [class^=el-icon-],.toolbar .toolbar-left i.fa{margin-top:-1px;color:#1989fa;font-size:15px}.toolbar .toolbar-right .el-button{display:inline-flex;align-items:center}.footer-bar{display:flex;flex-direction:row;align-items:center;justify-content:center;padding-top:10px}.footer-bar .el-button{padding:10px 40px}
|