@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,55 +1,51 @@
|
|
|
1
|
-
import { hasOwn } from "@web-utils/core";
|
|
2
|
-
import { n as
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
var _c = _vm._self._c || _h;
|
|
7
|
-
return _c("div", {
|
|
1
|
+
import { hasOwn as r } from "@web-utils/core";
|
|
2
|
+
import { n as o } from "../../chunks/5d4282fb.js";
|
|
3
|
+
var i = function() {
|
|
4
|
+
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
5
|
+
return n("div", {
|
|
8
6
|
staticClass: "tag-render"
|
|
9
|
-
}, [
|
|
10
|
-
return
|
|
11
|
-
key:
|
|
7
|
+
}, [t.tags && t.tags.length && t.tags[0] ? t._l(t.internalTags, function(s, a) {
|
|
8
|
+
return n("ElTag", {
|
|
9
|
+
key: a,
|
|
12
10
|
attrs: {
|
|
13
|
-
|
|
11
|
+
closable: t.enable,
|
|
14
12
|
"disable-transitions": ""
|
|
15
13
|
},
|
|
16
14
|
on: {
|
|
17
|
-
|
|
18
|
-
return
|
|
15
|
+
close: function(m) {
|
|
16
|
+
return t.$emit("close", t.tags[a], a);
|
|
19
17
|
}
|
|
20
18
|
}
|
|
21
|
-
}, [
|
|
22
|
-
}) :
|
|
19
|
+
}, [t._v(" " + t._s(t.getTagName(s)) + " ")]);
|
|
20
|
+
}) : t.enable ? t._e() : [n("span", {
|
|
23
21
|
staticStyle: {
|
|
24
|
-
|
|
22
|
+
color: "#b5b5b5"
|
|
25
23
|
}
|
|
26
|
-
}, [
|
|
24
|
+
}, [t._v("无")])], t.enable ? n("ElButton", {
|
|
27
25
|
staticClass: "el-tag el-tag--medium el-tag--light button-new-tag",
|
|
28
26
|
attrs: {
|
|
29
|
-
|
|
27
|
+
size: "small"
|
|
30
28
|
},
|
|
31
29
|
on: {
|
|
32
|
-
|
|
33
|
-
return
|
|
30
|
+
click: function(s) {
|
|
31
|
+
return t.$emit("add");
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
|
-
}, [
|
|
34
|
+
}, [t._v(" + 添加 ")]) : t._e(), t.count ? n("span", {
|
|
37
35
|
staticClass: "tags-count"
|
|
38
|
-
}, [
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const TagRender_vue_vue_type_style_index_0_lang = "";
|
|
42
|
-
const __vue2_script = {
|
|
36
|
+
}, [t._v(t._s(t.tags.length && t.tags[0] ? t.tags.length : ""))]) : t._e()], 2);
|
|
37
|
+
}, u = [];
|
|
38
|
+
const c = {
|
|
43
39
|
name: "TagRender",
|
|
44
40
|
inject: ["elFormItem"],
|
|
45
41
|
props: {
|
|
46
42
|
enable: {
|
|
47
43
|
type: Boolean,
|
|
48
|
-
default:
|
|
44
|
+
default: !0
|
|
49
45
|
},
|
|
50
46
|
count: {
|
|
51
47
|
type: Boolean,
|
|
52
|
-
default:
|
|
48
|
+
default: !0
|
|
53
49
|
},
|
|
54
50
|
tags: {
|
|
55
51
|
type: Array,
|
|
@@ -62,50 +58,40 @@ const __vue2_script = {
|
|
|
62
58
|
},
|
|
63
59
|
computed: {
|
|
64
60
|
internalTags() {
|
|
65
|
-
return this.transfer ? this.tags.map((
|
|
66
|
-
const
|
|
67
|
-
return this.transfer(
|
|
61
|
+
return this.transfer ? this.tags.map((t) => {
|
|
62
|
+
const e = { ...t };
|
|
63
|
+
return this.transfer(e);
|
|
68
64
|
}) : this.tags;
|
|
69
65
|
}
|
|
70
66
|
},
|
|
71
67
|
watch: {
|
|
72
|
-
tags(
|
|
73
|
-
|
|
74
|
-
this.elFormItem.clearValidate();
|
|
75
|
-
}
|
|
68
|
+
tags(t) {
|
|
69
|
+
this.elFormItem && t && t.length > 0 && this.elFormItem.clearValidate();
|
|
76
70
|
}
|
|
77
71
|
},
|
|
78
72
|
methods: {
|
|
79
|
-
getTagName(
|
|
80
|
-
|
|
81
|
-
return tag.name;
|
|
82
|
-
} else if (hasOwn(tag, "label")) {
|
|
83
|
-
return tag.label;
|
|
84
|
-
} else {
|
|
85
|
-
return tag;
|
|
86
|
-
}
|
|
73
|
+
getTagName(t) {
|
|
74
|
+
return r(t, "name") ? t.name : r(t, "label") ? t.label : t;
|
|
87
75
|
}
|
|
88
76
|
}
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
__vue2_injectStyles,
|
|
77
|
+
}, l = {};
|
|
78
|
+
var _ = /* @__PURE__ */ o(
|
|
79
|
+
c,
|
|
80
|
+
i,
|
|
81
|
+
u,
|
|
82
|
+
!1,
|
|
83
|
+
g,
|
|
97
84
|
null,
|
|
98
85
|
null,
|
|
99
86
|
null
|
|
100
87
|
);
|
|
101
|
-
function
|
|
102
|
-
for (let
|
|
103
|
-
this[
|
|
104
|
-
}
|
|
88
|
+
function g(t) {
|
|
89
|
+
for (let e in l)
|
|
90
|
+
this[e] = l[e];
|
|
105
91
|
}
|
|
106
|
-
const
|
|
107
|
-
return
|
|
92
|
+
const p = /* @__PURE__ */ function() {
|
|
93
|
+
return _.exports;
|
|
108
94
|
}();
|
|
109
95
|
export {
|
|
110
|
-
|
|
96
|
+
p as default
|
|
111
97
|
};
|
|
@@ -1,33 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/* 应用头部高度 */
|
|
3
|
-
/* 页面宽度 */
|
|
4
|
-
/* 侧栏宽度 */
|
|
5
|
-
/* 标签高度 */
|
|
6
|
-
/* 页面头部工具条高度 */
|
|
7
|
-
.tag-render {
|
|
8
|
-
min-height: 80px;
|
|
9
|
-
padding-top: 3px;
|
|
10
|
-
padding-right: 5px;
|
|
11
|
-
padding-left: 5px;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
background-color: #fff;
|
|
14
|
-
border: 1px solid #d7dae0;
|
|
15
|
-
border-radius: 4px;
|
|
16
|
-
}
|
|
17
|
-
.tag-render .el-tag {
|
|
18
|
-
margin-top: 4px;
|
|
19
|
-
}
|
|
20
|
-
.tag-render .button-new-tag {
|
|
21
|
-
padding-top: 0;
|
|
22
|
-
padding-bottom: 0;
|
|
23
|
-
}
|
|
24
|
-
.tag-render .el-tag .el-tag__close:hover {
|
|
25
|
-
background-color: #ee8677;
|
|
26
|
-
}
|
|
27
|
-
.tag-render .tags-count {
|
|
28
|
-
position: absolute;
|
|
29
|
-
right: 7px;
|
|
30
|
-
bottom: -4px;
|
|
31
|
-
color: #b7b7b7;
|
|
32
|
-
font-size: 0.9em;
|
|
33
|
-
}
|
|
1
|
+
.tag-render{min-height:80px;padding-top:3px;padding-right:5px;padding-left:5px;overflow:hidden;background-color:#fff;border:1px solid #d7dae0;border-radius:4px}.tag-render .el-tag{margin-top:4px}.tag-render .button-new-tag{padding-top:0;padding-bottom:0}.tag-render .el-tag .el-tag__close:hover{background-color:#ee8677}.tag-render .tags-count{position:absolute;right:7px;bottom:-4px;color:#b7b7b7;font-size:.9em}
|
|
@@ -1,90 +1,86 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var _c = _vm._self._c || _h;
|
|
6
|
-
return _c("div", {
|
|
1
|
+
import { n as o } from "../../chunks/5d4282fb.js";
|
|
2
|
+
var s = function() {
|
|
3
|
+
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
4
|
+
return r("div", {
|
|
7
5
|
staticStyle: {
|
|
8
6
|
"margin-bottom": "10px"
|
|
9
7
|
},
|
|
10
8
|
style: {
|
|
11
|
-
height:
|
|
9
|
+
height: e.height
|
|
12
10
|
}
|
|
13
|
-
}, [
|
|
11
|
+
}, [e.lazy ? [e.focus && !e.inputDisabled ? r("TinymceWrapper", e._b({
|
|
14
12
|
ref: "editor",
|
|
15
13
|
attrs: {
|
|
16
|
-
"query-params":
|
|
17
|
-
|
|
18
|
-
"show-types":
|
|
19
|
-
|
|
14
|
+
"query-params": e.queryParams,
|
|
15
|
+
disabled: e.inputDisabled,
|
|
16
|
+
"show-types": e.showTypes,
|
|
17
|
+
value: e.value
|
|
20
18
|
},
|
|
21
19
|
on: {
|
|
22
|
-
"on-blur":
|
|
23
|
-
"dialog-show": function(
|
|
24
|
-
|
|
20
|
+
"on-blur": e.onEditorBlur,
|
|
21
|
+
"dialog-show": function(i) {
|
|
22
|
+
e.hideOnBlur = !1;
|
|
25
23
|
},
|
|
26
|
-
"dialog-hide": function(
|
|
27
|
-
|
|
24
|
+
"dialog-hide": function(i) {
|
|
25
|
+
e.hideOnBlur = !0;
|
|
28
26
|
},
|
|
29
|
-
|
|
30
|
-
return
|
|
27
|
+
input: function(i) {
|
|
28
|
+
return e.$emit("input", i);
|
|
31
29
|
}
|
|
32
30
|
}
|
|
33
|
-
}, "TinymceWrapper",
|
|
31
|
+
}, "TinymceWrapper", e.$attrs, !1)) : r("div", {
|
|
34
32
|
staticClass: "editor-shadow",
|
|
35
33
|
class: [{
|
|
36
|
-
"show-placeholder":
|
|
34
|
+
"show-placeholder": e.isEmpty
|
|
37
35
|
}],
|
|
38
36
|
style: {
|
|
39
|
-
cursor:
|
|
37
|
+
cursor: e.inputDisabled ? "not-allowed" : "text"
|
|
40
38
|
},
|
|
41
39
|
attrs: {
|
|
42
|
-
|
|
40
|
+
placeholder: e.inputDisabled ? "" : e.placeholder
|
|
43
41
|
},
|
|
44
42
|
domProps: {
|
|
45
|
-
|
|
43
|
+
innerHTML: e._s(e.value)
|
|
46
44
|
},
|
|
47
45
|
on: {
|
|
48
|
-
|
|
46
|
+
click: e.onEditorShadowClick
|
|
49
47
|
}
|
|
50
|
-
})] : [
|
|
51
|
-
ref: "editor",
|
|
52
|
-
attrs: {
|
|
53
|
-
"query-params": _vm.queryParams,
|
|
54
|
-
"disabled": _vm.inputDisabled,
|
|
55
|
-
"value": _vm.value
|
|
56
|
-
},
|
|
57
|
-
on: {
|
|
58
|
-
"on-blur": _vm.onEditorBlur,
|
|
59
|
-
"dialog-show": function($event) {
|
|
60
|
-
_vm.hideOnBlur = false;
|
|
61
|
-
},
|
|
62
|
-
"dialog-hide": function($event) {
|
|
63
|
-
_vm.hideOnBlur = true;
|
|
64
|
-
},
|
|
65
|
-
"input": function(val) {
|
|
66
|
-
return _vm.$emit("input", val);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}, "TinymceWrapper", _vm.$attrs, false)) : _c("div", {
|
|
48
|
+
})] : [e.inputDisabled ? r("div", {
|
|
70
49
|
staticClass: "editor-shadow",
|
|
71
50
|
class: [{
|
|
72
|
-
"show-placeholder":
|
|
51
|
+
"show-placeholder": e.isEmpty
|
|
73
52
|
}],
|
|
74
53
|
style: {
|
|
75
|
-
cursor:
|
|
54
|
+
cursor: e.inputDisabled ? "not-allowed" : "text"
|
|
76
55
|
},
|
|
77
56
|
attrs: {
|
|
78
|
-
|
|
57
|
+
placeholder: e.inputDisabled ? "" : e.placeholder
|
|
79
58
|
},
|
|
80
59
|
domProps: {
|
|
81
|
-
|
|
60
|
+
innerHTML: e._s(e.value)
|
|
82
61
|
}
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
62
|
+
}) : r("TinymceWrapper", e._b({
|
|
63
|
+
ref: "editor",
|
|
64
|
+
attrs: {
|
|
65
|
+
"query-params": e.queryParams,
|
|
66
|
+
disabled: e.inputDisabled,
|
|
67
|
+
value: e.value
|
|
68
|
+
},
|
|
69
|
+
on: {
|
|
70
|
+
"on-blur": e.onEditorBlur,
|
|
71
|
+
"dialog-show": function(i) {
|
|
72
|
+
e.hideOnBlur = !1;
|
|
73
|
+
},
|
|
74
|
+
"dialog-hide": function(i) {
|
|
75
|
+
e.hideOnBlur = !0;
|
|
76
|
+
},
|
|
77
|
+
input: function(i) {
|
|
78
|
+
return e.$emit("input", i);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}, "TinymceWrapper", e.$attrs, !1))]], 2);
|
|
82
|
+
}, a = [];
|
|
83
|
+
const l = {
|
|
88
84
|
name: "TinymceEditor",
|
|
89
85
|
inject: {
|
|
90
86
|
elForm: {
|
|
@@ -98,11 +94,11 @@ const __vue2_script = {
|
|
|
98
94
|
disabled: Boolean,
|
|
99
95
|
lazy: {
|
|
100
96
|
type: Boolean,
|
|
101
|
-
default:
|
|
97
|
+
default: !0
|
|
102
98
|
},
|
|
103
99
|
showTypes: {
|
|
104
100
|
type: Boolean,
|
|
105
|
-
default:
|
|
101
|
+
default: !0
|
|
106
102
|
},
|
|
107
103
|
height: {
|
|
108
104
|
type: String,
|
|
@@ -117,8 +113,8 @@ const __vue2_script = {
|
|
|
117
113
|
},
|
|
118
114
|
data() {
|
|
119
115
|
return {
|
|
120
|
-
hideOnBlur:
|
|
121
|
-
focus:
|
|
116
|
+
hideOnBlur: !0,
|
|
117
|
+
focus: !1
|
|
122
118
|
};
|
|
123
119
|
},
|
|
124
120
|
computed: {
|
|
@@ -130,60 +126,48 @@ const __vue2_script = {
|
|
|
130
126
|
}
|
|
131
127
|
},
|
|
132
128
|
watch: {
|
|
133
|
-
hideOnBlur(
|
|
134
|
-
|
|
135
|
-
this.onEditorShadowClick();
|
|
136
|
-
}
|
|
129
|
+
hideOnBlur(e) {
|
|
130
|
+
e && this.onEditorShadowClick();
|
|
137
131
|
}
|
|
138
132
|
},
|
|
139
133
|
methods: {
|
|
140
134
|
onEditorBlur() {
|
|
141
|
-
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
if (!this.hideOnBlur) {
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
this.focus = false;
|
|
135
|
+
this.inputDisabled || this.hideOnBlur && (this.focus = !1);
|
|
148
136
|
},
|
|
149
137
|
getEditor() {
|
|
150
138
|
return this.$refs.editor.$refs.editor.editor;
|
|
151
139
|
},
|
|
152
140
|
async onEditorShadowClick() {
|
|
153
|
-
if (this.inputDisabled)
|
|
141
|
+
if (this.inputDisabled)
|
|
154
142
|
return;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
insertContent(content) {
|
|
164
|
-
this.getEditor().insertContent(content);
|
|
143
|
+
this.focus = !0, await this.$nextTick();
|
|
144
|
+
const e = this.getEditor();
|
|
145
|
+
e.focus();
|
|
146
|
+
const t = e.getBody();
|
|
147
|
+
e.selection.setCursorLocation(t, t.childNodes.length);
|
|
148
|
+
},
|
|
149
|
+
insertContent(e) {
|
|
150
|
+
this.getEditor().insertContent(e);
|
|
165
151
|
}
|
|
166
152
|
}
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
__vue2_injectStyles,
|
|
153
|
+
}, n = {};
|
|
154
|
+
var d = /* @__PURE__ */ o(
|
|
155
|
+
l,
|
|
156
|
+
s,
|
|
157
|
+
a,
|
|
158
|
+
!1,
|
|
159
|
+
u,
|
|
175
160
|
null,
|
|
176
161
|
null,
|
|
177
162
|
null
|
|
178
163
|
);
|
|
179
|
-
function
|
|
180
|
-
for (let
|
|
181
|
-
this[
|
|
182
|
-
}
|
|
164
|
+
function u(e) {
|
|
165
|
+
for (let t in n)
|
|
166
|
+
this[t] = n[t];
|
|
183
167
|
}
|
|
184
|
-
const
|
|
185
|
-
return
|
|
168
|
+
const p = /* @__PURE__ */ function() {
|
|
169
|
+
return d.exports;
|
|
186
170
|
}();
|
|
187
171
|
export {
|
|
188
|
-
|
|
172
|
+
p as default
|
|
189
173
|
};
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/* 应用头部高度 */
|
|
3
|
-
/* 页面宽度 */
|
|
4
|
-
/* 侧栏宽度 */
|
|
5
|
-
/* 标签高度 */
|
|
6
|
-
/* 页面头部工具条高度 */
|
|
7
|
-
.template-tag {
|
|
8
|
-
margin: 0 10px;
|
|
9
|
-
color: #1e90ff;
|
|
10
|
-
font-weight: bold;
|
|
11
|
-
font-family: "黑体", serif;
|
|
12
|
-
font-style: italic;
|
|
13
|
-
cursor: help !important;
|
|
14
|
-
}
|
|
15
|
-
.editor-shadow {
|
|
16
|
-
position: relative;
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: 100%;
|
|
19
|
-
padding: 10px;
|
|
20
|
-
overflow: auto;
|
|
21
|
-
font-size: 16px;
|
|
22
|
-
font-family: "微软雅黑", serif;
|
|
23
|
-
line-height: normal;
|
|
24
|
-
text-align: left;
|
|
25
|
-
word-break: normal;
|
|
26
|
-
word-spacing: 0;
|
|
27
|
-
overflow-wrap: break-word;
|
|
28
|
-
background-color: #fff;
|
|
29
|
-
border: 1px solid #dcdfe6;
|
|
30
|
-
border-radius: 4px;
|
|
31
|
-
cursor: text;
|
|
32
|
-
}
|
|
33
|
-
.show-placeholder {
|
|
34
|
-
position: relative;
|
|
35
|
-
}
|
|
36
|
-
.show-placeholder::after {
|
|
37
|
-
position: absolute;
|
|
38
|
-
top: 10px;
|
|
39
|
-
left: 11px;
|
|
40
|
-
color: #a9a9a9;
|
|
41
|
-
content: attr(placeholder);
|
|
42
|
-
pointer-events: none;
|
|
43
|
-
}
|
|
1
|
+
.template-tag{margin:0 10px;color:#1e90ff;font-weight:700;font-family:\9ed1\4f53,serif;font-style:italic;cursor:help!important}.editor-shadow{position:relative;width:100%;height:100%;padding:10px;overflow:auto;font-size:16px;font-family:\5fae\8f6f\96c5\9ed1,serif;line-height:normal;text-align:left;word-break:normal;word-spacing:0;overflow-wrap:break-word;background-color:#fff;border:1px solid #dcdfe6;border-radius:4px;cursor:text}.show-placeholder{position:relative}.show-placeholder:after{position:absolute;top:10px;left:11px;color:#a9a9a9;content:attr(placeholder);pointer-events:none}
|