@web-utils/component 2.0.13 → 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.
Files changed (172) hide show
  1. package/dist/chunks/3a79781b.js +75 -0
  2. package/dist/chunks/{44b78389.js → 41a066be.js} +8 -8
  3. package/dist/chunks/{e1939731.js → 5a78e0db.js} +5 -6
  4. package/dist/chunks/5d4282fb.js +30 -0
  5. package/dist/chunks/{822300f3.js → 61ad06b2.js} +3 -3
  6. package/dist/chunks/76680a03.js +24 -0
  7. package/dist/chunks/8c0142e0.js +81 -0
  8. package/dist/chunks/97652d86.js +26 -0
  9. package/dist/chunks/b4acd3a6.js +126 -0
  10. package/dist/chunks/f71045fc.js +184 -0
  11. package/dist/components/address-input/index.js +43 -56
  12. package/dist/components/address-input/style.css +1 -15
  13. package/dist/components/aside-menu/index.js +30 -36
  14. package/dist/components/aside-menu/style.css +1 -9
  15. package/dist/components/awesome-button/index.js +32 -35
  16. package/dist/components/base.css +1 -66
  17. package/dist/components/capsule-tab/index.js +27 -33
  18. package/dist/components/capsule-tab/style.css +1 -32
  19. package/dist/components/chunk-file-uploader/index.js +54 -88
  20. package/dist/components/chunk-file-uploader/style.css +1 -4
  21. package/dist/components/chunk-file-uploader-button/index.js +25 -31
  22. package/dist/components/chunk-file-uploader-button/style.css +1 -17
  23. package/dist/components/chunk-file-uploader-drop/index.js +28 -42
  24. package/dist/components/chunk-file-uploader-drop/style.css +1 -12
  25. package/dist/components/chunk-file-uploader-file/index.js +134 -211
  26. package/dist/components/chunk-file-uploader-file/style.css +1 -125
  27. package/dist/components/chunk-file-uploader-files/index.js +28 -34
  28. package/dist/components/chunk-file-uploader-files/style.css +1 -9
  29. package/dist/components/chunk-file-uploader-list/index.js +29 -35
  30. package/dist/components/chunk-file-uploader-list/style.css +1 -9
  31. package/dist/components/chunk-file-uploader-un-support/index.js +30 -38
  32. package/dist/components/chunk-file-uploader-un-support/style.css +1 -6
  33. package/dist/components/code-mirror-editor/index.js +153 -181
  34. package/dist/components/code-mirror-editor/style.css +1 -17
  35. package/dist/components/color-picker/index.js +49 -68
  36. package/dist/components/confirm-button/index.js +19 -21
  37. package/dist/components/confirmable/index.js +18 -19
  38. package/dist/components/context-menu/index.js +108 -130
  39. package/dist/components/context-menu/style.css +1 -88
  40. package/dist/components/custom-scrollbar/index.js +49 -67
  41. package/dist/components/data-table-picker/index.js +62 -81
  42. package/dist/components/dynamic-table/index.js +89 -113
  43. package/dist/components/dynamic-table/style.css +1 -30
  44. package/dist/components/e-charts/index.js +120 -201
  45. package/dist/components/e-charts/style.css +1 -10
  46. package/dist/components/editable-progress/index.js +60 -93
  47. package/dist/components/editable-progress/style.css +1 -37
  48. package/dist/components/editable-tree/index.js +423 -638
  49. package/dist/components/editable-tree/style.css +1 -82
  50. package/dist/components/egd-collapse/index.js +33 -46
  51. package/dist/components/egd-collapse-item/index.js +60 -76
  52. package/dist/components/element-dialog/index.js +95 -147
  53. package/dist/components/element-dialog/style.css +1 -102
  54. package/dist/components/empty-view/index.js +28 -34
  55. package/dist/components/empty-view/style.css +1 -17
  56. package/dist/components/error-view/index.js +26 -32
  57. package/dist/components/error-view/style.css +1 -17
  58. package/dist/components/flex-column/index.js +25 -40
  59. package/dist/components/flex-item/index.js +29 -57
  60. package/dist/components/flex-row/index.js +25 -40
  61. package/dist/components/flex-scroller/index.js +26 -32
  62. package/dist/components/flex-scroller/style.css +1 -20
  63. package/dist/components/form-button/index.js +34 -38
  64. package/dist/components/form-cascader/index.js +71 -81
  65. package/dist/components/form-checkbox-group/index.js +88 -113
  66. package/dist/components/form-checkbox-group/style.css +1 -51
  67. package/dist/components/form-date-picker/index.js +70 -132
  68. package/dist/components/form-holder/index.js +32 -39
  69. package/dist/components/form-input/index.js +56 -62
  70. package/dist/components/form-input-email/index.js +48 -60
  71. package/dist/components/form-input-id-card/index.js +53 -59
  72. package/dist/components/form-input-number/index.js +61 -68
  73. package/dist/components/form-input-number/style.css +1 -12
  74. package/dist/components/form-input-phone-number/index.js +49 -55
  75. package/dist/components/form-input-time/index.js +53 -59
  76. package/dist/components/form-item/index.js +80 -123
  77. package/dist/components/form-item/style.css +1 -11
  78. package/dist/components/form-item-config-provider/index.js +25 -26
  79. package/dist/components/form-item-group/index.js +85 -111
  80. package/dist/components/form-item-group/style.css +1 -30
  81. package/dist/components/form-radio-group/index.js +85 -104
  82. package/dist/components/form-radio-group/style.css +1 -53
  83. package/dist/components/form-select/index.js +76 -91
  84. package/dist/components/form-switch/index.js +51 -57
  85. package/dist/components/form-textarea/index.js +51 -57
  86. package/dist/components/form-view/index.js +165 -232
  87. package/dist/components/form-view/style.css +1 -158
  88. package/dist/components/guide-steps/index.js +44 -58
  89. package/dist/components/guide-steps/style.css +1 -34
  90. package/dist/components/icon-card/index.js +29 -35
  91. package/dist/components/icon-card/style.css +1 -56
  92. package/dist/components/iframe-window/index.js +29 -35
  93. package/dist/components/iframe-window/style.css +1 -20
  94. package/dist/components/image-viewer/index.js +48 -66
  95. package/dist/components/image-viewer/style.css +1 -21
  96. package/dist/components/input-number/index.js +127 -193
  97. package/dist/components/input-number/style.css +1 -15
  98. package/dist/components/input-number-range/index.js +45 -57
  99. package/dist/components/input-number-range/style.css +1 -12
  100. package/dist/components/j-s-x-component/index.js +4 -4
  101. package/dist/components/keep-view-alive/index.js +73 -120
  102. package/dist/components/loading-view/index.js +26 -32
  103. package/dist/components/loading-view/style.css +1 -17
  104. package/dist/components/nav-bar/index.js +27 -37
  105. package/dist/components/nav-bar/style.css +1 -17
  106. package/dist/components/not-implement/index.js +23 -31
  107. package/dist/components/not-implement/style.css +1 -15
  108. package/dist/components/page/index.js +22 -28
  109. package/dist/components/page/style.css +1 -12
  110. package/dist/components/page-header/index.js +30 -36
  111. package/dist/components/page-header/style.css +1 -14
  112. package/dist/components/page-index/index.js +62 -83
  113. package/dist/components/page-index/style.css +1 -23
  114. package/dist/components/page-index-top/index.js +53 -68
  115. package/dist/components/page-skeleton/index.js +31 -37
  116. package/dist/components/page-skeleton/style.css +1 -23
  117. package/dist/components/page-skeleton-new/index.js +42 -48
  118. package/dist/components/page-skeleton-new/style.css +1 -42
  119. package/dist/components/pageable-table/index.js +186 -253
  120. package/dist/components/pageable-table/style.css +1 -72
  121. package/dist/components/pageable-view/index.js +129 -199
  122. package/dist/components/pageable-view/style.css +1 -69
  123. package/dist/components/photo-swipe/index.js +110 -151
  124. package/dist/components/photo-swipe/style.css +1 -20
  125. package/dist/components/resize-observer/index.js +34 -68
  126. package/dist/components/resize-observer/style.css +1 -31
  127. package/dist/components/search-popover/index.js +153 -211
  128. package/dist/components/search-popover/style.css +1 -93
  129. package/dist/components/sign-panel/index.js +92 -142
  130. package/dist/components/sign-panel/style.css +1 -97
  131. package/dist/components/split-pane/index.js +101 -162
  132. package/dist/components/split-pane/style.css +1 -100
  133. package/dist/components/stateful/index.js +31 -34
  134. package/dist/components/stateful/style.css +1 -33
  135. package/dist/components/static-pageable-table/index.js +37 -44
  136. package/dist/components/static-pageable-table/style.css +1 -9
  137. package/dist/components/swiper/index.js +85 -150
  138. package/dist/components/swiper/style.css +1 -43
  139. package/dist/components/tab/index.js +54 -72
  140. package/dist/components/tab/style.css +1 -122
  141. package/dist/components/tab-item/index.js +30 -35
  142. package/dist/components/table-column/index.js +30 -32
  143. package/dist/components/table-view/index.js +156 -227
  144. package/dist/components/table-view/style.css +1 -95
  145. package/dist/components/tag-render/index.js +44 -58
  146. package/dist/components/tag-render/style.css +1 -33
  147. package/dist/components/tinymce-editor/index.js +79 -95
  148. package/dist/components/tinymce-editor/style.css +1 -43
  149. package/dist/components/tinymce-wrapper/index.js +92 -121
  150. package/dist/components/tinymce-wrapper/style.css +1 -36
  151. package/dist/components/toolbar/index.js +63 -84
  152. package/dist/components/toolbar/style.css +1 -39
  153. package/dist/components/toolbar-button/index.js +41 -48
  154. package/dist/components/toolbar-button/style.css +1 -21
  155. package/dist/components/trigger/index.js +29 -36
  156. package/dist/components/vue-tags-input/index.js +188 -308
  157. package/dist/components/vue-tags-input/style.css +1 -682
  158. package/dist/components/watermark/index.js +25 -37
  159. package/dist/components/watermark/style.css +1 -11
  160. package/dist/components/x-dialog/index.js +67 -93
  161. package/dist/components/x-dialog/style.css +1 -15
  162. package/dist/index.css +193 -1105
  163. package/dist/index.es.js +4790 -7243
  164. package/package.json +1 -1
  165. package/web-types.json +1 -1
  166. package/dist/chunks/3d28cc08.js +0 -57
  167. package/dist/chunks/5d33812d.js +0 -147
  168. package/dist/chunks/9d848bf6.js +0 -99
  169. package/dist/chunks/a0bb327b.js +0 -96
  170. package/dist/chunks/a8891d2c.js +0 -30
  171. package/dist/chunks/c69d5628.js +0 -248
  172. package/dist/chunks/de9fe802.js +0 -24
@@ -1,6 +1,6 @@
1
1
  import "tinymce/skins/lightgray/skin.min.css";
2
- import tinymce from "tinymce";
3
- import Editor from "@tinymce/tinymce-vue";
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 normalizeComponent } from "../../chunks/3d28cc08.js";
13
- const zhCN = {
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 render = function() {
404
- var _vm = this;
405
- var _h = _vm.$createElement;
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": !_vm.resize
407
+ "none-resize": !e.resize
410
408
  }]
411
- }, [_c("Editor", {
409
+ }, [i("Editor", {
412
410
  ref: "editor",
413
411
  attrs: {
414
- "disabled": _vm.inputDisabled,
412
+ disabled: e.inputDisabled,
415
413
  "model-events": "change input undo redo SetContent",
416
- "init": _vm.init
414
+ init: e.init
417
415
  },
418
416
  model: {
419
- value: _vm.val,
420
- callback: function($$v) {
421
- _vm.val = $$v;
417
+ value: e.val,
418
+ callback: function(r) {
419
+ e.val = r;
422
420
  },
423
421
  expression: "val"
424
422
  }
425
- }), _c("ElUpload", {
423
+ }), i("ElUpload", {
426
424
  ref: "uploader",
427
425
  staticStyle: {
428
- "display": "none"
426
+ display: "none"
429
427
  },
430
428
  attrs: {
431
- "action": _vm.action,
432
- "headers": _vm.headers,
433
- "before-upload": _vm.beforeUploadFile,
434
- "on-success": _vm.onFileUploadSuccess,
435
- "show-file-list": false,
436
- "data": {
437
- unid: _vm.guid(),
438
- type: _vm.fileLabel
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
- "accept": ".jpg,.jpeg,.png,.gif,.bmp"
439
+ accept: ".jpg,.jpeg,.png,.gif,.bmp"
442
440
  }
443
- }, [_c("span")])], 1) : _vm._e();
444
- };
445
- var staticRenderFns = [];
446
- const TinymceWrapper_vue_vue_type_style_index_0_lang = "";
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: false
465
+ default: !1
470
466
  },
471
467
  showTypes: {
472
468
  type: Boolean,
473
- default: true
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 plugins = ["fullscreen", "image", "wordcount"];
497
- const defaultPlugins = plugins.join(",");
498
- const buttons = this.buttons || [];
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: true,
496
+ show: !0,
509
497
  init: {
510
- setup: (editor) => {
511
- editor.settings.dialog_title = this.dialogTitle;
512
- editor.settings.show_types = this.showTypes;
513
- editor.on("PreInit", (event) => {
514
- event.target.dom.doc.body.style.fontFamily = "微软雅黑";
515
- });
516
- editor.on("Blur", (event) => {
517
- this.$emit("on-blur", event);
518
- });
519
- editor.on("DialogShow", (event) => {
520
- this.$emit("dialog-show", event);
521
- });
522
- editor.on("DialogHide", (event) => {
523
- this.$emit("dialog-hide", event);
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 uploadButton = {
515
+ const n = {
534
516
  icon: " el-icon-picture",
535
517
  name: "uploadImage",
536
518
  title: "上传图片",
537
519
  onclick: this.upload
538
520
  };
539
- editor.addButton(uploadButton.name, {
540
- ...uploadButton,
541
- onclick: () => uploadButton.onclick(editor)
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: false,
531
+ branding: !1,
550
532
  query_params: this.queryParams,
551
- skin: false,
533
+ skin: !1,
552
534
  dialog_title: "",
553
- menubar: false,
535
+ menubar: !1,
554
536
  height: "100%",
555
- elementpath: false,
556
- plugins: `${defaultPlugins},${this.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
- if (this.prop) {
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 _a;
576
- return (_a = this.getUploadUrl) == null ? void 0 : _a.call(this);
551
+ var e;
552
+ return (e = this.getUploadUrl) == null ? void 0 : e.call(this);
577
553
  },
578
554
  headers() {
579
- var _a;
580
- return (_a = this.getHeader) == null ? void 0 : _a.call(this);
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: true,
586
- handler(newVal) {
587
- this.val = newVal;
561
+ immediate: !0,
562
+ handler(e) {
563
+ this.val = e;
588
564
  }
589
565
  },
590
- dialogTitle(newVal) {
591
- if (this.getEditor()) {
592
- this.getEditor().settings.dialog_title = newVal;
593
- }
566
+ dialogTitle(e) {
567
+ this.getEditor() && (this.getEditor().settings.dialog_title = e);
594
568
  },
595
- val(newVal) {
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 = false;
574
+ this.show = !1;
602
575
  },
603
576
  activated() {
604
- this.show = true;
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(res) {
592
+ onFileUploadSuccess(e) {
620
593
  this.getEditor().insertContent(
621
- `<img alt="图片" src="${res.data.filePath.replace("/var/local/data/merge", this.imageUrl || "")}"/>`
594
+ `<img alt="图片" src="${e.data.filePath.replace("/var/local/data/merge", this.imageUrl || "")}"/>`
622
595
  );
623
596
  }
624
597
  }
625
- };
626
- const __cssModules = {};
627
- var __component__ = /* @__PURE__ */ normalizeComponent(
628
- __vue2_script,
629
- render,
630
- staticRenderFns,
631
- false,
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 __vue2_injectStyles(context) {
638
- for (let o in __cssModules) {
639
- this[o] = __cssModules[o];
640
- }
609
+ function w(e) {
610
+ for (let a in l)
611
+ this[a] = l[a];
641
612
  }
642
- const TinymceWrapper = /* @__PURE__ */ function() {
643
- return __component__.exports;
613
+ const D = /* @__PURE__ */ function() {
614
+ return y.exports;
644
615
  }();
645
616
  export {
646
- TinymceWrapper as default
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 normalizeComponent } from "../../chunks/3d28cc08.js";
3
- const builtinButtons = {
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: false
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 path = this.$route.path;
131
- this.$bus("closeTab", path, this);
129
+ const e = this.$route.path;
130
+ this.$bus("closeTab", e, this);
132
131
  },
133
- fire(type, event) {
134
- if (this.emitter === "parent") {
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(key, {
141
- label,
142
- icon,
143
- type,
144
- separateLine = true
135
+ createButton(e, {
136
+ label: t,
137
+ icon: o,
138
+ type: i,
139
+ separateLine: a = !0
145
140
  }) {
146
- var _a;
147
- const h = this.$createElement;
148
- let handler;
149
- const buttonLabel = ((_a = this.label) == null ? void 0 : _a[key]) || label;
150
- if (!["back", "cancel"].includes(key)) {
151
- handler = (e) => (this.$listeners[key] || NOOP)(e);
152
- } else {
153
- handler = this.goBack;
154
- }
155
- return h("ToolbarButton", {
156
- "attrs": {
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
- "on": {
164
- "click": handler
153
+ on: {
154
+ click: l
165
155
  }
166
156
  });
167
157
  },
168
158
  getLeftButtons() {
169
- var _a, _b;
159
+ var o, i;
170
160
  const {
171
- createButton
161
+ createButton: e
172
162
  } = this;
173
- const toolbarLeft = (_b = (_a = this.$scopedSlots)["toolbar-left"]) == null ? void 0 : _b.call(_a);
174
- return toolbarLeft || this.buttons.map((key) => {
175
- var _a2, _b2, _c, _d;
176
- const button = builtinButtons[key];
177
- if (button) {
178
- const vNodes = (_b2 = (_a2 = this.$scopedSlots)[key]) == null ? void 0 : _b2.call(_a2);
179
- return vNodes || createButton(key, button);
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 _a, _b;
192
- const vNodes = (_b = (_a = this.$scopedSlots)["toolbar-right"]) == null ? void 0 : _b.call(_a);
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 ? createButton("search", builtinButtons.search) : null;
180
+ return this.searchable ? e("search", p.search) : null;
200
181
  }
201
182
  },
202
183
  render() {
203
- const h = arguments[0];
204
- return this.footer ? h("div", {
205
- "class": "footer-bar"
206
- }, [this.getLeftButtons()]) : h("div", {
207
- "class": "toolbar"
208
- }, [h("div", {
209
- "class": "toolbar-left"
210
- }, [this.getLeftButtons()]), h("div", {
211
- "class": "toolbar-right"
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
- const Toolbar_vue_vue_type_style_index_0_lang = "";
216
- let __vue2_render, __vue2_staticRenderFns;
217
- const __cssModules = {};
218
- var __component__ = /* @__PURE__ */ normalizeComponent(
219
- __vue2_script,
220
- __vue2_render,
221
- __vue2_staticRenderFns,
222
- false,
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 __vue2_injectStyles(context) {
229
- for (let o in __cssModules) {
230
- this[o] = __cssModules[o];
231
- }
208
+ function _(e) {
209
+ for (let t in u)
210
+ this[t] = u[t];
232
211
  }
233
- const Toolbar = /* @__PURE__ */ function() {
234
- return __component__.exports;
212
+ const $ = /* @__PURE__ */ function() {
213
+ return m.exports;
235
214
  }();
236
215
  export {
237
- Toolbar as default
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}