@web-utils/component 3.0.2 → 3.0.3
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/address-input/index.mjs +14 -14
- package/chat/index.mjs +39 -40
- package/chunk-file-uploader/index.mjs +35 -594
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/FormTemp.d079292b.mjs +139 -0
- package/chunks/{dataformat.816df805.mjs → dataformat.e655611c.mjs} +6 -6
- package/chunks/detail.d6f8e347.mjs +29 -0
- package/chunks/{dic.3b4ba802.mjs → dic.eaac0823.mjs} +40 -40
- package/chunks/{event.4377230d.mjs → event.10295951.mjs} +2 -2
- package/chunks/form-input-mixin.78a567bc.mjs +24 -0
- package/chunks/form-item-mixin.57cb2019.mjs +140 -0
- package/chunks/{index.d91bd77a.mjs → index.57f871af.mjs} +7 -7
- package/chunks/{init.f0a03127.mjs → init.47f219b4.mjs} +2 -2
- package/chunks/input-number-mixin.41a066be.mjs +60 -0
- package/chunks/{util.7844e2c2.mjs → util.ae730cde.mjs} +21 -21
- package/count-up/index.mjs +17 -14
- package/data-box/index.mjs +18 -19
- package/data-display/index.mjs +17 -18
- package/data-icons/index.mjs +16 -17
- package/data-panel/index.mjs +20 -21
- package/data-pay/index.mjs +15 -16
- package/data-progress/index.mjs +19 -20
- package/data-rotate/index.mjs +35 -36
- package/data-table-picker/index.mjs +23 -25
- package/data-tabs/index.mjs +15 -16
- package/dialog-form/index.mjs +11 -12
- package/dynamic-table/index.mjs +34 -35
- package/easy-popup/index.mjs +56 -29
- package/editable-tree/index.mjs +485 -134
- package/element-dialog/index.mjs +127 -37
- package/empty-view/index.mjs +31 -13
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +40 -105
- package/flow-designer/index.mjs +555 -615
- package/flow-node/index.mjs +47 -15
- package/flow-viewer/index.mjs +78 -167
- package/form-cascader/index.mjs +24 -24
- package/form-checkbox-group/index.mjs +35 -79
- package/form-date-picker/index.mjs +22 -22
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +86 -28
- package/form-input-email/index.mjs +18 -18
- package/form-input-id-card/index.mjs +27 -27
- package/form-input-number/index.mjs +59 -219
- package/form-input-phone-number/index.mjs +27 -27
- package/form-input-tag/index.mjs +38 -160
- package/form-input-time/index.mjs +16 -16
- package/form-item/index.mjs +146 -15
- package/form-item-group/index.mjs +164 -14
- package/form-radio-group/index.mjs +41 -41
- package/form-select/index.mjs +20 -20
- package/form-switch/index.mjs +19 -19
- package/form-textarea/index.mjs +29 -29
- package/form-view/index.mjs +42 -46
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +15 -15
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +2824 -210
- package/fy-date/index.mjs +59 -17
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +208 -64
- package/fy-empty/index.mjs +29 -12
- package/fy-form/index.mjs +743 -178
- package/fy-form-design/index.mjs +1013 -1540
- package/fy-input/index.mjs +105 -17
- package/fy-input-color/index.mjs +67 -16
- package/fy-input-icon/index.mjs +119 -23
- package/fy-input-map/index.mjs +14 -15
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +19 -21
- package/fy-input-tree/index.mjs +3 -3
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +50 -16
- package/fy-select/index.mjs +126 -29
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +51 -15
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +23 -25
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +2 -2
- package/highlight-j-s/index.mjs +29 -19
- package/icon-temp/index.mjs +30 -12
- package/iframe-window/index.mjs +18 -19
- package/image-cropper/index.mjs +22 -23
- package/image-preview/index.mjs +1 -1
- package/input-number/index.mjs +173 -63
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +33 -15
- package/login/index.mjs +1 -1
- package/nav-bar/index.mjs +31 -15
- package/package.json +1 -1
- package/page/index.mjs +20 -12
- package/page-header/index.mjs +34 -13
- package/page-index-top/index.mjs +53 -100
- package/page-skeleton/index.mjs +35 -18
- package/page-skeleton-new/index.mjs +15 -16
- package/pageable-table/index.mjs +228 -86
- package/pageable-view/index.mjs +1 -1
- package/present-view/index.mjs +71 -75
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +29 -21
- package/search/index.mjs +9 -9
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +45 -40
- package/swiper/index.mjs +13 -14
- package/table-view/index.mjs +97 -631
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/index.mjs +63 -63
- package/toolbar/index.mjs +208 -15
- package/toolbar-button/index.mjs +56 -30
- package/verify/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +118 -49
- package/chunks/CountUp.f1a19f35.mjs +0 -124
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +0 -8
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +0 -32
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +0 -356
- package/chunks/ElementDialog.d8f3105c.mjs +0 -211
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +0 -95
- package/chunks/EmptyView.e2430422.mjs +0 -51
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +0 -23
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +0 -37
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +0 -65
- package/chunks/FormItem.2920ac0c.mjs +0 -45
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +0 -258
- package/chunks/FormItemGroup.41daddb6.mjs +0 -64
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +0 -155
- package/chunks/FyCurd.8acd2983.mjs +0 -548
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +0 -2945
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +0 -47
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +0 -151
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +0 -22
- package/chunks/FyForm.0294e494.mjs +0 -439
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +0 -737
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +0 -93
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +0 -56
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +0 -158
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +0 -39
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +0 -102
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +0 -41
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +0 -15
- package/chunks/IconTemp.42c48e1f.mjs +0 -32
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +0 -23
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +0 -172
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +0 -23
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +0 -21
- package/chunks/Page.81f4b8d9.mjs +0 -32
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +0 -13
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +0 -26
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +0 -88
- package/chunks/PageableTable.333cbdc1.mjs +0 -335
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +0 -148
- package/chunks/ResizeObserver.60f728f0.mjs +0 -54
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +0 -13
- package/chunks/TableColumn.8503272e.mjs +0 -106
- package/chunks/Toolbar.5c539dbb.mjs +0 -24
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +0 -275
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +0 -31
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +0 -74
package/text-ellipsis/index.mjs
CHANGED
package/tinymce-editor/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var T = Object.prototype.hasOwnProperty,
|
|
5
|
-
var
|
|
1
|
+
var _ = Object.defineProperty, F = Object.defineProperties;
|
|
2
|
+
var C = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var y = Object.getOwnPropertySymbols;
|
|
4
|
+
var T = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var w = (e, t, i) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, h = (e, t) => {
|
|
6
6
|
for (var i in t || (t = {}))
|
|
7
|
-
T.call(t, i) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var i of
|
|
10
|
-
|
|
7
|
+
T.call(t, i) && w(e, i, t[i]);
|
|
8
|
+
if (y)
|
|
9
|
+
for (var i of y(t))
|
|
10
|
+
B.call(t, i) && w(e, i, t[i]);
|
|
11
11
|
return e;
|
|
12
|
-
}, f = (e, t) =>
|
|
12
|
+
}, f = (e, t) => F(e, C(t));
|
|
13
13
|
var p = (e, t, i) => new Promise((a, n) => {
|
|
14
14
|
var o = (s) => {
|
|
15
15
|
try {
|
|
@@ -27,8 +27,8 @@ var p = (e, t, i) => new Promise((a, n) => {
|
|
|
27
27
|
r((i = i.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
29
|
import "tinymce/skins/lightgray/skin.min.css";
|
|
30
|
-
import
|
|
31
|
-
import
|
|
30
|
+
import P from "tinymce";
|
|
31
|
+
import S from "@tinymce/tinymce-vue";
|
|
32
32
|
import "tinymce/themes/modern/theme";
|
|
33
33
|
import "tinymce/plugins/contextmenu";
|
|
34
34
|
import "tinymce/plugins/wordcount";
|
|
@@ -37,10 +37,10 @@ import "tinymce/plugins/image";
|
|
|
37
37
|
import "tinymce/plugins/fullscreen";
|
|
38
38
|
import "tinymce/plugins/preview";
|
|
39
39
|
import "tinymce/plugins/imagetools";
|
|
40
|
-
import { getFilePrefix as
|
|
41
|
-
import
|
|
42
|
-
import { n as
|
|
43
|
-
const
|
|
40
|
+
import { getFilePrefix as D, guid as A } from "@web-utils/core";
|
|
41
|
+
import $ from "element-ui/lib/upload";
|
|
42
|
+
import { n as I } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
43
|
+
const R = {
|
|
44
44
|
Redo: "重做",
|
|
45
45
|
Undo: "撤销",
|
|
46
46
|
Cut: "剪切",
|
|
@@ -429,7 +429,7 @@ const E = {
|
|
|
429
429
|
Spellcheck: "拼写检查",
|
|
430
430
|
Caption: "标题",
|
|
431
431
|
"Insert template": "插入模板"
|
|
432
|
-
},
|
|
432
|
+
}, E = '方正小标宋="方正小标宋";仿宋GB2312="仿宋GB2312";微软雅黑="微软雅黑";宋体="宋体";黑体="黑体";仿宋="仿宋";楷体="楷体";隶书="隶书";幼圆="幼圆";Arial="Arial";', L = `
|
|
433
433
|
* {
|
|
434
434
|
margin: 0;
|
|
435
435
|
padding: 0
|
|
@@ -454,7 +454,7 @@ body {
|
|
|
454
454
|
max-width: 100%;
|
|
455
455
|
}
|
|
456
456
|
`;
|
|
457
|
-
function
|
|
457
|
+
function U(e) {
|
|
458
458
|
let t;
|
|
459
459
|
const i = e.naturalHeight, a = document.createElement("canvas");
|
|
460
460
|
a.width = 1, a.height = i;
|
|
@@ -471,17 +471,17 @@ function x(e) {
|
|
|
471
471
|
const s = r / i;
|
|
472
472
|
return s === 0 ? 1 : s;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function k(e) {
|
|
475
475
|
const t = atob(e.split(",")[1]), i = new ArrayBuffer(t.length), a = new Uint8Array(i);
|
|
476
476
|
for (let n = 0; n < t.length; n++)
|
|
477
477
|
a[n] = t.charCodeAt(n);
|
|
478
478
|
return i;
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
const t = e.split(",")[0].split(":")[1].split(";")[0], i =
|
|
480
|
+
function x(e) {
|
|
481
|
+
const t = e.split(",")[0].split(":")[1].split(";")[0], i = k(e);
|
|
482
482
|
return new Blob([i], { type: t });
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function H(e) {
|
|
485
485
|
const t = new DataView(e);
|
|
486
486
|
if (t.getUint16(0, !1) !== 65496)
|
|
487
487
|
return -2;
|
|
@@ -507,7 +507,7 @@ function M(e) {
|
|
|
507
507
|
}
|
|
508
508
|
return -1;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function M(e, t, i) {
|
|
511
511
|
const a = e.width, n = e.height;
|
|
512
512
|
switch (i > 4 && (e.width = n, e.height = a), i) {
|
|
513
513
|
case 2:
|
|
@@ -533,33 +533,33 @@ function q(e, t, i) {
|
|
|
533
533
|
break;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function q(e) {
|
|
537
537
|
return e.split(",")[0].split(":")[1].split(";")[0];
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
return `.${
|
|
539
|
+
function O(e) {
|
|
540
|
+
return `.${q(e).replace("image/", "")}`;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function z(e, t) {
|
|
543
543
|
return p(this, null, function* () {
|
|
544
544
|
return new Promise((i, a) => {
|
|
545
545
|
const n = new Image();
|
|
546
546
|
n.onload = function() {
|
|
547
|
-
const o =
|
|
547
|
+
const o = U(n), l = H(k(n.src)), r = document.createElement("canvas"), s = r.getContext("2d"), d = t.compress.width, g = t.compress.height;
|
|
548
548
|
let c = n.width, u = n.height;
|
|
549
|
-
c < u && u > g ? (c = parseInt(`${g * n.width / n.height}`), u = g) : c >= u && c > d && (u = parseInt(`${d * n.height / n.width}`), c = d), r.width = c, r.height = u, l > 0 &&
|
|
549
|
+
c < u && u > g ? (c = parseInt(`${g * n.width / n.height}`), u = g) : c >= u && c > d && (u = parseInt(`${d * n.height / n.width}`), c = d), r.width = c, r.height = u, l > 0 && M(r, s, l), s.drawImage(n, 0, 0, c, u / o);
|
|
550
550
|
const m = r.toDataURL("image/jpeg", t.compress.quality);
|
|
551
|
-
/;base64,null/.test(m) || /;base64,$/.test(m) ? (t.onError(new Error(`Compress fail, dataURL is ${m}.`)), a(Error("图片压缩失败"))) : i(W(m, `${
|
|
551
|
+
/;base64,null/.test(m) || /;base64,$/.test(m) ? (t.onError(new Error(`Compress fail, dataURL is ${m}.`)), a(Error("图片压缩失败"))) : i(W(m, `${D(t.fileName)}.jpg`));
|
|
552
552
|
}, n.src = e;
|
|
553
553
|
});
|
|
554
554
|
});
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function N(e, t) {
|
|
557
557
|
return p(this, null, function* () {
|
|
558
|
-
const i = yield
|
|
559
|
-
return
|
|
558
|
+
const i = yield j(e);
|
|
559
|
+
return z(i, h({ fileName: e.name }, t));
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function j(e) {
|
|
563
563
|
return new Promise((t, i) => {
|
|
564
564
|
const a = new FileReader();
|
|
565
565
|
a.onload = function(n) {
|
|
@@ -570,10 +570,10 @@ function G(e) {
|
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
572
|
function W(e = "", t) {
|
|
573
|
-
const i =
|
|
574
|
-
return i.name = t || `image${
|
|
573
|
+
const i = x(e);
|
|
574
|
+
return i.name = t || `image${O(e)}`, i;
|
|
575
575
|
}
|
|
576
|
-
var
|
|
576
|
+
var G = function() {
|
|
577
577
|
var e = this, t = e.$createElement, i = e._self._c || t;
|
|
578
578
|
return e.show ? i("div", {
|
|
579
579
|
class: ["tinymce-editor", {
|
|
@@ -593,7 +593,7 @@ var V = function() {
|
|
|
593
593
|
},
|
|
594
594
|
expression: "val"
|
|
595
595
|
}
|
|
596
|
-
}), i(
|
|
596
|
+
}), i($, {
|
|
597
597
|
ref: "uploader",
|
|
598
598
|
staticStyle: {
|
|
599
599
|
display: "none"
|
|
@@ -606,12 +606,12 @@ var V = function() {
|
|
|
606
606
|
accept: ".jpg,.jpeg,.png,.gif,.bmp"
|
|
607
607
|
}
|
|
608
608
|
}, [i("span")])], 1) : e._e();
|
|
609
|
-
},
|
|
610
|
-
|
|
611
|
-
const
|
|
609
|
+
}, V = [];
|
|
610
|
+
P.addI18n("zh_CN", R);
|
|
611
|
+
const Y = {
|
|
612
612
|
name: "TinymceWrapper",
|
|
613
613
|
components: {
|
|
614
|
-
Editor:
|
|
614
|
+
Editor: S
|
|
615
615
|
},
|
|
616
616
|
inject: {
|
|
617
617
|
elForm: {
|
|
@@ -693,7 +693,7 @@ const X = {
|
|
|
693
693
|
},
|
|
694
694
|
toolbar: a,
|
|
695
695
|
placeholder: "在这里输入文字",
|
|
696
|
-
content_style:
|
|
696
|
+
content_style: L,
|
|
697
697
|
fontname: "宋体",
|
|
698
698
|
fontFamily: "宋体",
|
|
699
699
|
branding: !1,
|
|
@@ -704,7 +704,7 @@ const X = {
|
|
|
704
704
|
height: "100%",
|
|
705
705
|
elementpath: !1,
|
|
706
706
|
plugins: `${t},${this.plugins}`,
|
|
707
|
-
font_formats:
|
|
707
|
+
font_formats: E,
|
|
708
708
|
fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt"
|
|
709
709
|
}
|
|
710
710
|
};
|
|
@@ -751,7 +751,7 @@ const X = {
|
|
|
751
751
|
var o, l;
|
|
752
752
|
try {
|
|
753
753
|
this.loading = this.$loading({ text: "压缩中...", background: "rgba(0,0,0,0.2)" });
|
|
754
|
-
const r = yield
|
|
754
|
+
const r = yield N(e, {
|
|
755
755
|
compress: {
|
|
756
756
|
width: 1920,
|
|
757
757
|
height: 1600,
|
|
@@ -760,7 +760,7 @@ const X = {
|
|
|
760
760
|
});
|
|
761
761
|
this.loading.text = "上传中...";
|
|
762
762
|
const s = yield this.api((o = this.getUploadUrl) == null ? void 0 : o.call(this), r, {
|
|
763
|
-
data: { unid:
|
|
763
|
+
data: { unid: A(), type: this.fileLabel },
|
|
764
764
|
onprogress(d) {
|
|
765
765
|
i == null || i(d);
|
|
766
766
|
}
|
|
@@ -799,23 +799,23 @@ const X = {
|
|
|
799
799
|
return e.replace("/var/local/data/merge", "");
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
},
|
|
803
|
-
var
|
|
804
|
-
X,
|
|
805
|
-
V,
|
|
802
|
+
}, b = {};
|
|
803
|
+
var X = /* @__PURE__ */ I(
|
|
806
804
|
Y,
|
|
805
|
+
G,
|
|
806
|
+
V,
|
|
807
807
|
!1,
|
|
808
|
-
|
|
808
|
+
Z,
|
|
809
809
|
null,
|
|
810
810
|
null,
|
|
811
811
|
null
|
|
812
812
|
);
|
|
813
|
-
function
|
|
814
|
-
for (let t in
|
|
815
|
-
this[t] =
|
|
813
|
+
function Z(e) {
|
|
814
|
+
for (let t in b)
|
|
815
|
+
this[t] = b[t];
|
|
816
816
|
}
|
|
817
|
-
const
|
|
818
|
-
return
|
|
817
|
+
const J = /* @__PURE__ */ function() {
|
|
818
|
+
return X.exports;
|
|
819
819
|
}();
|
|
820
820
|
var K = function() {
|
|
821
821
|
var e = this, t = e.$createElement, i = e._self._c || t;
|
|
@@ -826,7 +826,7 @@ var K = function() {
|
|
|
826
826
|
style: {
|
|
827
827
|
height: e.height
|
|
828
828
|
}
|
|
829
|
-
}, [e.lazy ? [e.focus && !e.inputDisabled ? i(
|
|
829
|
+
}, [e.lazy ? [e.focus && !e.inputDisabled ? i("TinymceWrapper", e._b({
|
|
830
830
|
ref: "editor",
|
|
831
831
|
attrs: {
|
|
832
832
|
"query-params": e.queryParams,
|
|
@@ -877,7 +877,7 @@ var K = function() {
|
|
|
877
877
|
domProps: {
|
|
878
878
|
innerHTML: e._s(e.value)
|
|
879
879
|
}
|
|
880
|
-
}) : i(
|
|
880
|
+
}) : i("TinymceWrapper", e._b({
|
|
881
881
|
ref: "editor",
|
|
882
882
|
attrs: {
|
|
883
883
|
"query-params": e.queryParams,
|
|
@@ -900,7 +900,7 @@ var K = function() {
|
|
|
900
900
|
}, Q = [];
|
|
901
901
|
const ee = {
|
|
902
902
|
name: "TinymceEditor",
|
|
903
|
-
components: { TinymceWrapper:
|
|
903
|
+
components: { TinymceWrapper: J },
|
|
904
904
|
inject: {
|
|
905
905
|
elForm: {
|
|
906
906
|
default: ""
|
|
@@ -971,8 +971,8 @@ const ee = {
|
|
|
971
971
|
this.getEditor().insertContent(e);
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
|
-
},
|
|
975
|
-
var te = /* @__PURE__ */
|
|
974
|
+
}, v = {};
|
|
975
|
+
var te = /* @__PURE__ */ I(
|
|
976
976
|
ee,
|
|
977
977
|
K,
|
|
978
978
|
Q,
|
|
@@ -983,8 +983,8 @@ var te = /* @__PURE__ */ k(
|
|
|
983
983
|
null
|
|
984
984
|
);
|
|
985
985
|
function ie(e) {
|
|
986
|
-
for (let t in
|
|
987
|
-
this[t] =
|
|
986
|
+
for (let t in v)
|
|
987
|
+
this[t] = v[t];
|
|
988
988
|
}
|
|
989
989
|
const we = /* @__PURE__ */ function() {
|
|
990
990
|
return te.exports;
|
package/toolbar/index.mjs
CHANGED
|
@@ -1,24 +1,217 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { NOOP as b } from "@web-utils/core";
|
|
2
|
+
import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
+
const u = {
|
|
4
|
+
back: {
|
|
5
|
+
label: "返回",
|
|
6
|
+
type: "primary",
|
|
7
|
+
icon: "el-icon-d-arrow-left"
|
|
8
|
+
},
|
|
9
|
+
cancel: {
|
|
10
|
+
label: "取消",
|
|
11
|
+
icon: "fa fa-undo"
|
|
12
|
+
},
|
|
13
|
+
create: {
|
|
14
|
+
label: "新增",
|
|
15
|
+
type: "primary",
|
|
16
|
+
icon: "el-icon-plus"
|
|
17
|
+
},
|
|
18
|
+
save: {
|
|
19
|
+
label: "保存",
|
|
20
|
+
type: "primary",
|
|
21
|
+
icon: "fa fa-save"
|
|
22
|
+
},
|
|
23
|
+
withdraw: {
|
|
24
|
+
label: "撤回",
|
|
25
|
+
type: "primary",
|
|
26
|
+
icon: "fa fa-undo"
|
|
27
|
+
},
|
|
28
|
+
edit: {
|
|
29
|
+
label: "编辑",
|
|
30
|
+
type: "primary",
|
|
31
|
+
icon: "el-icon-edit-outline"
|
|
32
|
+
},
|
|
33
|
+
submit: {
|
|
34
|
+
label: "提交审批",
|
|
35
|
+
type: "primary",
|
|
36
|
+
icon: "fa fa-check"
|
|
37
|
+
},
|
|
38
|
+
publish: {
|
|
39
|
+
label: "发布",
|
|
40
|
+
type: "primary",
|
|
41
|
+
icon: "fa fa-send"
|
|
42
|
+
},
|
|
43
|
+
agree: {
|
|
44
|
+
label: "同意",
|
|
45
|
+
type: "primary",
|
|
46
|
+
icon: "fa fa-check-square-o"
|
|
47
|
+
},
|
|
48
|
+
disagree: {
|
|
49
|
+
label: "不同意",
|
|
50
|
+
type: "primary",
|
|
51
|
+
icon: "fa fa-mail-reply"
|
|
52
|
+
},
|
|
53
|
+
reject: {
|
|
54
|
+
label: "退回",
|
|
55
|
+
type: "primary",
|
|
56
|
+
icon: "fa fa-reply"
|
|
57
|
+
},
|
|
58
|
+
finish: {
|
|
59
|
+
label: "完成",
|
|
60
|
+
type: "primary",
|
|
61
|
+
icon: "fa fa-check-square"
|
|
62
|
+
},
|
|
63
|
+
enable: {
|
|
64
|
+
label: "启用",
|
|
65
|
+
type: "primary",
|
|
66
|
+
icon: "el-icon-circle-check"
|
|
67
|
+
},
|
|
68
|
+
exp: {
|
|
69
|
+
label: "导出",
|
|
70
|
+
type: "primary",
|
|
71
|
+
icon: "el-icon-download"
|
|
72
|
+
},
|
|
73
|
+
imp: {
|
|
74
|
+
label: "导入",
|
|
75
|
+
type: "primary",
|
|
76
|
+
icon: "el-icon-upload"
|
|
77
|
+
},
|
|
78
|
+
del: {
|
|
79
|
+
label: "删除",
|
|
80
|
+
type: "primary",
|
|
81
|
+
icon: "el-icon-delete"
|
|
82
|
+
},
|
|
83
|
+
disabled: {
|
|
84
|
+
label: "禁用",
|
|
85
|
+
type: "primary",
|
|
86
|
+
icon: "el-icon-remove-outline"
|
|
87
|
+
},
|
|
88
|
+
reload: {
|
|
89
|
+
label: "刷新",
|
|
90
|
+
type: "primary",
|
|
91
|
+
icon: "el-icon-refresh"
|
|
92
|
+
},
|
|
93
|
+
search: {
|
|
94
|
+
label: "搜索",
|
|
95
|
+
icon: "el-icon-search",
|
|
96
|
+
separateLine: !1
|
|
97
|
+
}
|
|
98
|
+
}, d = {
|
|
99
|
+
name: "Toolbar",
|
|
100
|
+
provide() {
|
|
101
|
+
return {
|
|
102
|
+
toolbar: this
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
props: {
|
|
106
|
+
searchable: Boolean,
|
|
107
|
+
buttons: {
|
|
108
|
+
type: Array,
|
|
109
|
+
default: () => ["back"]
|
|
110
|
+
},
|
|
111
|
+
back: {
|
|
112
|
+
type: Function
|
|
113
|
+
},
|
|
114
|
+
cancel: {
|
|
115
|
+
type: Function
|
|
116
|
+
},
|
|
117
|
+
emitter: {
|
|
118
|
+
type: String,
|
|
119
|
+
default: "self"
|
|
120
|
+
},
|
|
121
|
+
footer: Boolean,
|
|
122
|
+
label: {
|
|
123
|
+
type: Object,
|
|
124
|
+
default: () => ({})
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
methods: {
|
|
128
|
+
goBack() {
|
|
129
|
+
const e = this.$route.path;
|
|
130
|
+
this.$bus("closeTab", e, this);
|
|
131
|
+
},
|
|
132
|
+
fire(e, t) {
|
|
133
|
+
this.emitter === "parent" ? this.$parent && this.$parent.$emit(e, t, this) : this.$emit(e, t, this);
|
|
134
|
+
},
|
|
135
|
+
createButton(e, {
|
|
136
|
+
label: t,
|
|
137
|
+
icon: o,
|
|
138
|
+
type: i,
|
|
139
|
+
separateLine: a = !0
|
|
140
|
+
}) {
|
|
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] || b)(c), n("ToolbarButton", {
|
|
146
|
+
attrs: {
|
|
147
|
+
"separate-line": a,
|
|
148
|
+
icon: o,
|
|
149
|
+
label: s,
|
|
150
|
+
footer: this.footer,
|
|
151
|
+
type: i
|
|
152
|
+
},
|
|
153
|
+
on: {
|
|
154
|
+
click: l
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
},
|
|
158
|
+
getLeftButtons() {
|
|
159
|
+
var o, i;
|
|
160
|
+
const {
|
|
161
|
+
createButton: e
|
|
162
|
+
} = this;
|
|
163
|
+
return ((i = (o = this.$scopedSlots)["toolbar-left"]) == null ? void 0 : i.call(o)) || this.buttons.map((a) => {
|
|
164
|
+
var l, s, r, c, p;
|
|
165
|
+
const n = u[a];
|
|
166
|
+
return n ? ((s = (l = this.$scopedSlots)[a]) == null ? void 0 : s.call(l)) || e(a, n) : a === "slot" && (p = (c = (r = this.$scopedSlots).default) == null ? void 0 : c.call(r, {
|
|
167
|
+
buttons: this.buttons,
|
|
168
|
+
footer: this.footer
|
|
169
|
+
})) != null ? p : null;
|
|
170
|
+
});
|
|
171
|
+
},
|
|
172
|
+
getRightButtons() {
|
|
173
|
+
var t, o;
|
|
174
|
+
return ((o = (t = this.$scopedSlots)["toolbar-right"]) == null ? void 0 : o.call(t)) || this.getSearchButton();
|
|
175
|
+
},
|
|
176
|
+
getSearchButton() {
|
|
177
|
+
const {
|
|
178
|
+
createButton: e
|
|
179
|
+
} = this;
|
|
180
|
+
return this.searchable ? e("search", u.search) : null;
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
render() {
|
|
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"
|
|
193
|
+
}, [this.getRightButtons()])]);
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
let y, m;
|
|
197
|
+
const h = {};
|
|
198
|
+
var _ = /* @__PURE__ */ f(
|
|
199
|
+
d,
|
|
200
|
+
y,
|
|
201
|
+
m,
|
|
9
202
|
!1,
|
|
10
|
-
|
|
203
|
+
g,
|
|
11
204
|
null,
|
|
12
205
|
null,
|
|
13
206
|
null
|
|
14
207
|
);
|
|
15
|
-
function
|
|
16
|
-
for (let
|
|
17
|
-
this[
|
|
208
|
+
function g(e) {
|
|
209
|
+
for (let t in h)
|
|
210
|
+
this[t] = h[t];
|
|
18
211
|
}
|
|
19
|
-
const
|
|
20
|
-
return
|
|
212
|
+
const S = /* @__PURE__ */ function() {
|
|
213
|
+
return _.exports;
|
|
21
214
|
}();
|
|
22
215
|
export {
|
|
23
|
-
|
|
216
|
+
S as default
|
|
24
217
|
};
|
package/toolbar-button/index.mjs
CHANGED
|
@@ -1,23 +1,49 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var s = (t, o, e) => new Promise((_, i) => {
|
|
2
|
+
var p = (n) => {
|
|
3
3
|
try {
|
|
4
|
-
a(e.next(
|
|
5
|
-
} catch (
|
|
6
|
-
|
|
4
|
+
a(e.next(n));
|
|
5
|
+
} catch (l) {
|
|
6
|
+
i(l);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, u = (n) => {
|
|
9
9
|
try {
|
|
10
|
-
a(e.throw(
|
|
11
|
-
} catch (
|
|
12
|
-
|
|
10
|
+
a(e.throw(n));
|
|
11
|
+
} catch (l) {
|
|
12
|
+
i(l);
|
|
13
13
|
}
|
|
14
|
-
}, a = (
|
|
15
|
-
a((e = e.apply(
|
|
14
|
+
}, a = (n) => n.done ? _(n.value) : Promise.resolve(n.value).then(p, u);
|
|
15
|
+
a((e = e.apply(t, o)).next());
|
|
16
16
|
});
|
|
17
|
-
import { isFunction as
|
|
18
|
-
import
|
|
19
|
-
import { n as
|
|
20
|
-
|
|
17
|
+
import { isFunction as d } from "@web-utils/core";
|
|
18
|
+
import r from "element-ui/lib/button";
|
|
19
|
+
import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
20
|
+
var m = function() {
|
|
21
|
+
var t = this, o = t.$createElement, e = t._self._c || o;
|
|
22
|
+
return t.footer || t.toolbar.footer ? e(r, {
|
|
23
|
+
attrs: {
|
|
24
|
+
disabled: t.disabled || t.loading,
|
|
25
|
+
type: t.type
|
|
26
|
+
},
|
|
27
|
+
on: {
|
|
28
|
+
click: t.onClick
|
|
29
|
+
}
|
|
30
|
+
}, [t._v(" " + t._s(t.label) + " ")]) : e("span", {
|
|
31
|
+
staticClass: "form-toolbar-button"
|
|
32
|
+
}, [e(r, {
|
|
33
|
+
attrs: {
|
|
34
|
+
icon: t.icon,
|
|
35
|
+
type: "text",
|
|
36
|
+
disabled: t.disabled || t.loading,
|
|
37
|
+
size: "mini"
|
|
38
|
+
},
|
|
39
|
+
on: {
|
|
40
|
+
click: t.onClick
|
|
41
|
+
}
|
|
42
|
+
}, [t._v(" " + t._s(t.label) + " ")]), t.separateLine ? e("span", {
|
|
43
|
+
staticClass: "separate-line"
|
|
44
|
+
}) : t._e()], 1);
|
|
45
|
+
}, b = [];
|
|
46
|
+
const v = {
|
|
21
47
|
name: "ToolbarButton",
|
|
22
48
|
inject: {
|
|
23
49
|
toolbar: {
|
|
@@ -47,36 +73,36 @@ const y = {
|
|
|
47
73
|
};
|
|
48
74
|
},
|
|
49
75
|
methods: {
|
|
50
|
-
onClick(
|
|
51
|
-
return
|
|
76
|
+
onClick(t) {
|
|
77
|
+
return s(this, null, function* () {
|
|
52
78
|
this.loading = !0;
|
|
53
|
-
const { click:
|
|
54
|
-
if (
|
|
79
|
+
const { click: o } = this.$listeners;
|
|
80
|
+
if (d(o))
|
|
55
81
|
try {
|
|
56
|
-
yield t
|
|
82
|
+
yield o(t);
|
|
57
83
|
} catch (e) {
|
|
58
84
|
}
|
|
59
85
|
this.loading = !1;
|
|
60
86
|
});
|
|
61
87
|
}
|
|
62
88
|
}
|
|
63
|
-
},
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
89
|
+
}, c = {};
|
|
90
|
+
var y = /* @__PURE__ */ f(
|
|
91
|
+
v,
|
|
92
|
+
m,
|
|
93
|
+
b,
|
|
68
94
|
!1,
|
|
69
|
-
|
|
95
|
+
g,
|
|
70
96
|
null,
|
|
71
97
|
null,
|
|
72
98
|
null
|
|
73
99
|
);
|
|
74
|
-
function
|
|
75
|
-
for (let
|
|
76
|
-
this[
|
|
100
|
+
function g(t) {
|
|
101
|
+
for (let o in c)
|
|
102
|
+
this[o] = c[o];
|
|
77
103
|
}
|
|
78
104
|
const x = /* @__PURE__ */ function() {
|
|
79
|
-
return
|
|
105
|
+
return y.exports;
|
|
80
106
|
}();
|
|
81
107
|
export {
|
|
82
108
|
x as default
|
package/verify/index.mjs
CHANGED
package/watermark/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ var u = (n, t, e) => t in n ? d(n, t, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
v.call(t, e) && u(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
12
|
}, c = (n, t) => g(n, y(t));
|
|
13
|
-
import { g as b } from "../chunks/index.
|
|
13
|
+
import { g as b } from "../chunks/index.57f871af.mjs";
|
|
14
14
|
import { n as S } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
15
15
|
const k = {
|
|
16
16
|
name: "Watermark",
|