@opentinyvue/vue-fluent-editor 2.21.0 → 3.21.0
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/lib/index.js +1 -1
- package/lib/mobile-first.js +90 -70
- package/lib/pc.js +90 -70
- package/package.json +4 -4
- package/src/index.d.ts +138 -2
- package/src/mobile-first.vue.d.ts +82 -1
- package/src/pc.vue.d.ts +73 -1
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -4,38 +4,42 @@ import FluentEditor from '@opentiny/fluent-editor';
|
|
|
4
4
|
import '@opentiny/fluent-editor/style.css';
|
|
5
5
|
import { IconEditorAlignCenter, IconEditorAlignLeft, IconEditorAlignRight, IconEditorBackground, IconEditorBold, IconEditorCode, IconEditorDeleteline, IconEditorEraser, IconEditorItalic, IconEditorLeftBorder, IconEditorList, IconEditorListDot, IconEditorListNum, IconEditorMenuLeft, IconEditorMenuRight, IconEditorQuote, IconEditorRedo, IconEditorRightBorder, IconEditorSub, IconEditorSubtitle, IconEditorSuper, IconEditorTable, IconEditorTextcolor, IconEditorTitle, IconEditorUnderline, IconEditorUndo, IconEditorVideo, IconLink, IconPicture, IconCloudUpload, IconFullscreen } from '@opentinyvue/vue-icon';
|
|
6
6
|
import ImageViewer from '@opentinyvue/vue-image-viewer';
|
|
7
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, normalizeProps, mergeProps, createCommentVNode, Fragment, renderList, resolveDynamicComponent } from 'vue';
|
|
7
8
|
|
|
8
|
-
function
|
|
9
|
-
var
|
|
10
|
-
if (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
10
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
11
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
12
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
13
|
+
t && (r = t);
|
|
14
|
+
var o = 0;
|
|
15
|
+
return function() {
|
|
16
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
17
|
+
};
|
|
14
18
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var originalRender = options.render;
|
|
23
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
24
|
-
hook.call(context);
|
|
25
|
-
return originalRender(h, context);
|
|
26
|
-
};
|
|
27
|
-
} else {
|
|
28
|
-
var existing = options.beforeCreate;
|
|
29
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
30
|
-
}
|
|
19
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
20
|
+
}
|
|
21
|
+
function _unsupportedIterableToArray(r, a) {
|
|
22
|
+
if (r) {
|
|
23
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
24
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
25
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
31
26
|
}
|
|
32
|
-
return {
|
|
33
|
-
exports: scriptExports,
|
|
34
|
-
options
|
|
35
|
-
};
|
|
36
27
|
}
|
|
28
|
+
function _arrayLikeToArray(r, a) {
|
|
29
|
+
(null == a || a > r.length) && (a = r.length);
|
|
30
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
31
|
+
return n;
|
|
32
|
+
}
|
|
33
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
34
|
+
var target = sfc.__vccOpts || sfc;
|
|
35
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
36
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
37
|
+
target[key] = val;
|
|
38
|
+
}
|
|
39
|
+
return target;
|
|
40
|
+
};
|
|
37
41
|
|
|
38
|
-
var
|
|
42
|
+
var _sfc_main = defineComponent({
|
|
39
43
|
name: $prefix + "FluentEditor",
|
|
40
44
|
components: {
|
|
41
45
|
TinyImageViewer: ImageViewer,
|
|
@@ -85,50 +89,66 @@ var __vue2_script = defineComponent({
|
|
|
85
89
|
});
|
|
86
90
|
}
|
|
87
91
|
});
|
|
88
|
-
var
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
var _c = _vm._self._c || _h;
|
|
92
|
-
return _c("div", {
|
|
93
|
-
staticClass: "tiny-editor-wrapper",
|
|
94
|
-
class: {
|
|
95
|
-
"fullscreen": _vm.state.isFullscreen
|
|
96
|
-
},
|
|
97
|
-
style: {
|
|
98
|
-
"z-index": _vm.state.zIndex
|
|
99
|
-
}
|
|
100
|
-
}, [_c("div", {
|
|
101
|
-
ref: "editor",
|
|
102
|
-
staticClass: "tiny-editor",
|
|
103
|
-
attrs: {
|
|
104
|
-
"id": "editor"
|
|
105
|
-
},
|
|
106
|
-
on: {
|
|
107
|
-
"dblclick": _vm.handleDblclick
|
|
108
|
-
}
|
|
109
|
-
}), _vm.state.showPreview ? _c("tiny-image-viewer", _vm._b({}, "tiny-image-viewer", _vm.state.previewOptions, false)) : _vm._e(), _c("div", {
|
|
110
|
-
ref: "editor-toolbar-icon",
|
|
111
|
-
staticClass: "toolbar-icon"
|
|
112
|
-
}, _vm._l(_vm.state.icons, function(icon) {
|
|
113
|
-
return _c("div", {
|
|
114
|
-
key: icon,
|
|
115
|
-
ref: icon,
|
|
116
|
-
refInFor: true
|
|
117
|
-
}, [_c(icon, {
|
|
118
|
-
tag: "component"
|
|
119
|
-
})], 1);
|
|
120
|
-
}), 0)], 1);
|
|
92
|
+
var _hoisted_1 = {
|
|
93
|
+
class: "toolbar-icon",
|
|
94
|
+
ref: "editor-toolbar-icon"
|
|
121
95
|
};
|
|
122
|
-
|
|
123
|
-
var
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
96
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
97
|
+
var _component_tiny_image_viewer = resolveComponent("tiny-image-viewer");
|
|
98
|
+
return openBlock(), createElementBlock(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
class: normalizeClass(["tiny-editor-wrapper", {
|
|
102
|
+
"fullscreen": _ctx.state.isFullscreen
|
|
103
|
+
}]),
|
|
104
|
+
style: normalizeStyle({
|
|
105
|
+
"z-index": _ctx.state.zIndex
|
|
106
|
+
})
|
|
107
|
+
},
|
|
108
|
+
[createElementVNode(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
ref: "editor",
|
|
112
|
+
id: "editor",
|
|
113
|
+
class: "tiny-editor",
|
|
114
|
+
onDblclick: _cache[0] || (_cache[0] = function() {
|
|
115
|
+
return _ctx.handleDblclick && _ctx.handleDblclick.apply(_ctx, arguments);
|
|
116
|
+
})
|
|
117
|
+
},
|
|
118
|
+
null,
|
|
119
|
+
544
|
|
120
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
121
|
+
), _ctx.state.showPreview ? (openBlock(), createBlock(
|
|
122
|
+
_component_tiny_image_viewer,
|
|
123
|
+
normalizeProps(mergeProps({
|
|
124
|
+
key: 0
|
|
125
|
+
}, _ctx.state.previewOptions)),
|
|
126
|
+
null,
|
|
127
|
+
16
|
|
128
|
+
/* FULL_PROPS */
|
|
129
|
+
)) : createCommentVNode("v-if", true), createElementVNode(
|
|
130
|
+
"div",
|
|
131
|
+
_hoisted_1,
|
|
132
|
+
[(openBlock(true), createElementBlock(
|
|
133
|
+
Fragment,
|
|
134
|
+
null,
|
|
135
|
+
renderList(_ctx.state.icons, function(icon) {
|
|
136
|
+
return openBlock(), createElementBlock("div", {
|
|
137
|
+
key: icon,
|
|
138
|
+
ref_for: true,
|
|
139
|
+
ref: icon
|
|
140
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(icon)))]);
|
|
141
|
+
}),
|
|
142
|
+
128
|
|
143
|
+
/* KEYED_FRAGMENT */
|
|
144
|
+
))],
|
|
145
|
+
512
|
|
146
|
+
/* NEED_PATCH */
|
|
147
|
+
)],
|
|
148
|
+
6
|
|
149
|
+
/* CLASS, STYLE */
|
|
150
|
+
);
|
|
129
151
|
}
|
|
130
|
-
var mobileFirst = /* @__PURE__ */
|
|
131
|
-
return __component__.exports;
|
|
132
|
-
}();
|
|
152
|
+
var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
133
153
|
|
|
134
154
|
export { mobileFirst as default };
|
package/lib/pc.js
CHANGED
|
@@ -5,38 +5,42 @@ import FluentEditor from '@opentiny/fluent-editor';
|
|
|
5
5
|
import '@opentiny/fluent-editor/style.css';
|
|
6
6
|
import { IconEditorAlignCenter, IconEditorAlignLeft, IconEditorAlignRight, IconEditorBackground, IconEditorBold, IconEditorCode, IconEditorDeleteline, IconEditorEraser, IconEditorItalic, IconEditorLeftBorder, IconEditorList, IconEditorListDot, IconEditorListNum, IconEditorMenuLeft, IconEditorMenuRight, IconEditorQuote, IconEditorRedo, IconEditorRightBorder, IconEditorSub, IconEditorSubtitle, IconEditorSuper, IconEditorTable, IconEditorTextcolor, IconEditorTitle, IconEditorUnderline, IconEditorUndo, IconEditorVideo, IconLink, IconPicture, IconCloudUpload, IconFullscreen } from '@opentinyvue/vue-icon';
|
|
7
7
|
import ImageViewer from '@opentinyvue/vue-image-viewer';
|
|
8
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, normalizeProps, mergeProps, createCommentVNode, Fragment, renderList, resolveDynamicComponent } from 'vue';
|
|
8
9
|
|
|
9
|
-
function
|
|
10
|
-
var
|
|
11
|
-
if (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
11
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
12
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
13
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
14
|
+
t && (r = t);
|
|
15
|
+
var o = 0;
|
|
16
|
+
return function() {
|
|
17
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
18
|
+
};
|
|
15
19
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
var originalRender = options.render;
|
|
24
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
25
|
-
hook.call(context);
|
|
26
|
-
return originalRender(h, context);
|
|
27
|
-
};
|
|
28
|
-
} else {
|
|
29
|
-
var existing = options.beforeCreate;
|
|
30
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
31
|
-
}
|
|
20
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
21
|
+
}
|
|
22
|
+
function _unsupportedIterableToArray(r, a) {
|
|
23
|
+
if (r) {
|
|
24
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
25
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
26
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
32
27
|
}
|
|
33
|
-
return {
|
|
34
|
-
exports: scriptExports,
|
|
35
|
-
options
|
|
36
|
-
};
|
|
37
28
|
}
|
|
29
|
+
function _arrayLikeToArray(r, a) {
|
|
30
|
+
(null == a || a > r.length) && (a = r.length);
|
|
31
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
32
|
+
return n;
|
|
33
|
+
}
|
|
34
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
35
|
+
var target = sfc.__vccOpts || sfc;
|
|
36
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
37
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
38
|
+
target[key] = val;
|
|
39
|
+
}
|
|
40
|
+
return target;
|
|
41
|
+
};
|
|
38
42
|
|
|
39
|
-
var
|
|
43
|
+
var _sfc_main = defineComponent({
|
|
40
44
|
name: $prefix + "FluentEditor",
|
|
41
45
|
components: {
|
|
42
46
|
TinyImageViewer: ImageViewer,
|
|
@@ -86,50 +90,66 @@ var __vue2_script = defineComponent({
|
|
|
86
90
|
});
|
|
87
91
|
}
|
|
88
92
|
});
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
var _c = _vm._self._c || _h;
|
|
93
|
-
return _c("div", {
|
|
94
|
-
staticClass: "tiny-editor-wrapper",
|
|
95
|
-
class: {
|
|
96
|
-
"fullscreen": _vm.state.isFullscreen
|
|
97
|
-
},
|
|
98
|
-
style: {
|
|
99
|
-
"z-index": _vm.state.zIndex
|
|
100
|
-
}
|
|
101
|
-
}, [_c("div", {
|
|
102
|
-
ref: "editor",
|
|
103
|
-
staticClass: "tiny-editor",
|
|
104
|
-
attrs: {
|
|
105
|
-
"id": "editor"
|
|
106
|
-
},
|
|
107
|
-
on: {
|
|
108
|
-
"dblclick": _vm.handleDblclick
|
|
109
|
-
}
|
|
110
|
-
}), _vm.state.showPreview ? _c("tiny-image-viewer", _vm._b({}, "tiny-image-viewer", _vm.state.previewOptions, false)) : _vm._e(), _c("div", {
|
|
111
|
-
ref: "editor-toolbar-icon",
|
|
112
|
-
staticClass: "toolbar-icon"
|
|
113
|
-
}, _vm._l(_vm.state.icons, function(icon) {
|
|
114
|
-
return _c("div", {
|
|
115
|
-
key: icon,
|
|
116
|
-
ref: icon,
|
|
117
|
-
refInFor: true
|
|
118
|
-
}, [_c(icon, {
|
|
119
|
-
tag: "component"
|
|
120
|
-
})], 1);
|
|
121
|
-
}), 0)], 1);
|
|
93
|
+
var _hoisted_1 = {
|
|
94
|
+
class: "toolbar-icon",
|
|
95
|
+
ref: "editor-toolbar-icon"
|
|
122
96
|
};
|
|
123
|
-
|
|
124
|
-
var
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
97
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
98
|
+
var _component_tiny_image_viewer = resolveComponent("tiny-image-viewer");
|
|
99
|
+
return openBlock(), createElementBlock(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
class: normalizeClass(["tiny-editor-wrapper", {
|
|
103
|
+
"fullscreen": _ctx.state.isFullscreen
|
|
104
|
+
}]),
|
|
105
|
+
style: normalizeStyle({
|
|
106
|
+
"z-index": _ctx.state.zIndex
|
|
107
|
+
})
|
|
108
|
+
},
|
|
109
|
+
[createElementVNode(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
ref: "editor",
|
|
113
|
+
id: "editor",
|
|
114
|
+
class: "tiny-editor",
|
|
115
|
+
onDblclick: _cache[0] || (_cache[0] = function() {
|
|
116
|
+
return _ctx.handleDblclick && _ctx.handleDblclick.apply(_ctx, arguments);
|
|
117
|
+
})
|
|
118
|
+
},
|
|
119
|
+
null,
|
|
120
|
+
544
|
|
121
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
122
|
+
), _ctx.state.showPreview ? (openBlock(), createBlock(
|
|
123
|
+
_component_tiny_image_viewer,
|
|
124
|
+
normalizeProps(mergeProps({
|
|
125
|
+
key: 0
|
|
126
|
+
}, _ctx.state.previewOptions)),
|
|
127
|
+
null,
|
|
128
|
+
16
|
|
129
|
+
/* FULL_PROPS */
|
|
130
|
+
)) : createCommentVNode("v-if", true), createElementVNode(
|
|
131
|
+
"div",
|
|
132
|
+
_hoisted_1,
|
|
133
|
+
[(openBlock(true), createElementBlock(
|
|
134
|
+
Fragment,
|
|
135
|
+
null,
|
|
136
|
+
renderList(_ctx.state.icons, function(icon) {
|
|
137
|
+
return openBlock(), createElementBlock("div", {
|
|
138
|
+
key: icon,
|
|
139
|
+
ref_for: true,
|
|
140
|
+
ref: icon
|
|
141
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(icon)))]);
|
|
142
|
+
}),
|
|
143
|
+
128
|
|
144
|
+
/* KEYED_FRAGMENT */
|
|
145
|
+
))],
|
|
146
|
+
512
|
|
147
|
+
/* NEED_PATCH */
|
|
148
|
+
)],
|
|
149
|
+
6
|
|
150
|
+
/* CLASS, STYLE */
|
|
151
|
+
);
|
|
130
152
|
}
|
|
131
|
-
var pc = /* @__PURE__ */
|
|
132
|
-
return __component__.exports;
|
|
133
|
-
}();
|
|
153
|
+
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
134
154
|
|
|
135
155
|
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-fluent-editor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.21.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"module": "./lib/index.js",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@opentiny/fluent-editor": "^3.24.0",
|
|
11
|
-
"@opentinyvue/vue-common": "~
|
|
12
|
-
"@opentinyvue/vue-icon": "~
|
|
13
|
-
"@opentinyvue/vue-image-viewer": "~
|
|
11
|
+
"@opentinyvue/vue-common": "~3.21.0",
|
|
12
|
+
"@opentinyvue/vue-icon": "~3.21.0",
|
|
13
|
+
"@opentinyvue/vue-image-viewer": "~3.21.0",
|
|
14
14
|
"@opentinyvue/vue-renderless": "~3.21.0",
|
|
15
15
|
"@opentinyvue/vue-theme": "~3.21.0"
|
|
16
16
|
},
|
package/src/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare const fluentEditorProps: {
|
|
|
32
32
|
required: boolean;
|
|
33
33
|
default: () => {};
|
|
34
34
|
};
|
|
35
|
-
picPreview: (
|
|
35
|
+
picPreview: (BooleanConstructor | ObjectConstructor)[];
|
|
36
36
|
dataType: {
|
|
37
37
|
type: BooleanConstructor;
|
|
38
38
|
default: boolean;
|
|
@@ -60,5 +60,141 @@ export declare const fluentEditorProps: {
|
|
|
60
60
|
tiny_theme: StringConstructor;
|
|
61
61
|
tiny_chart_theme: ObjectConstructor;
|
|
62
62
|
};
|
|
63
|
-
declare const _default:
|
|
63
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
64
|
+
_constants: {
|
|
65
|
+
type: ObjectConstructor;
|
|
66
|
+
default: () => {
|
|
67
|
+
PIC_PREVIEW_OPTIONS: {
|
|
68
|
+
zIndex: number;
|
|
69
|
+
urlList: null;
|
|
70
|
+
};
|
|
71
|
+
EDITOR_FULLSCREEN_OPTIONS: number;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
content: StringConstructor;
|
|
75
|
+
disabled: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
fileUpload: ObjectConstructor;
|
|
80
|
+
globalOptions: {
|
|
81
|
+
type: ObjectConstructor;
|
|
82
|
+
required: boolean;
|
|
83
|
+
default: () => {};
|
|
84
|
+
};
|
|
85
|
+
imageUpload: ObjectConstructor;
|
|
86
|
+
mentionObj: {
|
|
87
|
+
type: ObjectConstructor;
|
|
88
|
+
required: boolean;
|
|
89
|
+
default: () => {};
|
|
90
|
+
};
|
|
91
|
+
modelValue: StringConstructor;
|
|
92
|
+
options: {
|
|
93
|
+
type: ObjectConstructor;
|
|
94
|
+
required: boolean;
|
|
95
|
+
default: () => {};
|
|
96
|
+
};
|
|
97
|
+
picPreview: (BooleanConstructor | ObjectConstructor)[];
|
|
98
|
+
dataType: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
dataUpgrade: {
|
|
103
|
+
type: BooleanConstructor;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
zIndex: {
|
|
107
|
+
type: NumberConstructor;
|
|
108
|
+
default: number;
|
|
109
|
+
};
|
|
110
|
+
imagePasteFailCallback: {
|
|
111
|
+
type: FunctionConstructor;
|
|
112
|
+
default: () => void;
|
|
113
|
+
};
|
|
114
|
+
beforeEditorInit: {
|
|
115
|
+
type: FunctionConstructor;
|
|
116
|
+
default: () => void;
|
|
117
|
+
};
|
|
118
|
+
tiny_mode: StringConstructor;
|
|
119
|
+
tiny_mode_root: BooleanConstructor;
|
|
120
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
121
|
+
tiny_renderless: FunctionConstructor;
|
|
122
|
+
tiny_theme: StringConstructor;
|
|
123
|
+
tiny_chart_theme: ObjectConstructor;
|
|
124
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
125
|
+
[key: string]: any;
|
|
126
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
127
|
+
_constants: {
|
|
128
|
+
type: ObjectConstructor;
|
|
129
|
+
default: () => {
|
|
130
|
+
PIC_PREVIEW_OPTIONS: {
|
|
131
|
+
zIndex: number;
|
|
132
|
+
urlList: null;
|
|
133
|
+
};
|
|
134
|
+
EDITOR_FULLSCREEN_OPTIONS: number;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
content: StringConstructor;
|
|
138
|
+
disabled: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: boolean;
|
|
141
|
+
};
|
|
142
|
+
fileUpload: ObjectConstructor;
|
|
143
|
+
globalOptions: {
|
|
144
|
+
type: ObjectConstructor;
|
|
145
|
+
required: boolean;
|
|
146
|
+
default: () => {};
|
|
147
|
+
};
|
|
148
|
+
imageUpload: ObjectConstructor;
|
|
149
|
+
mentionObj: {
|
|
150
|
+
type: ObjectConstructor;
|
|
151
|
+
required: boolean;
|
|
152
|
+
default: () => {};
|
|
153
|
+
};
|
|
154
|
+
modelValue: StringConstructor;
|
|
155
|
+
options: {
|
|
156
|
+
type: ObjectConstructor;
|
|
157
|
+
required: boolean;
|
|
158
|
+
default: () => {};
|
|
159
|
+
};
|
|
160
|
+
picPreview: (BooleanConstructor | ObjectConstructor)[];
|
|
161
|
+
dataType: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
dataUpgrade: {
|
|
166
|
+
type: BooleanConstructor;
|
|
167
|
+
default: boolean;
|
|
168
|
+
};
|
|
169
|
+
zIndex: {
|
|
170
|
+
type: NumberConstructor;
|
|
171
|
+
default: number;
|
|
172
|
+
};
|
|
173
|
+
imagePasteFailCallback: {
|
|
174
|
+
type: FunctionConstructor;
|
|
175
|
+
default: () => void;
|
|
176
|
+
};
|
|
177
|
+
beforeEditorInit: {
|
|
178
|
+
type: FunctionConstructor;
|
|
179
|
+
default: () => void;
|
|
180
|
+
};
|
|
181
|
+
tiny_mode: StringConstructor;
|
|
182
|
+
tiny_mode_root: BooleanConstructor;
|
|
183
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
184
|
+
tiny_renderless: FunctionConstructor;
|
|
185
|
+
tiny_theme: StringConstructor;
|
|
186
|
+
tiny_chart_theme: ObjectConstructor;
|
|
187
|
+
}>>, {
|
|
188
|
+
disabled: boolean;
|
|
189
|
+
tiny_mode_root: boolean;
|
|
190
|
+
_constants: Record<string, any>;
|
|
191
|
+
zIndex: number;
|
|
192
|
+
options: Record<string, any>;
|
|
193
|
+
dataType: boolean;
|
|
194
|
+
mentionObj: Record<string, any>;
|
|
195
|
+
globalOptions: Record<string, any>;
|
|
196
|
+
dataUpgrade: boolean;
|
|
197
|
+
imagePasteFailCallback: Function;
|
|
198
|
+
beforeEditorInit: Function;
|
|
199
|
+
}, {}>;
|
|
64
200
|
export default _default;
|
|
@@ -1,2 +1,83 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
disabled?: any;
|
|
3
|
+
tiny_mode?: any;
|
|
4
|
+
tiny_mode_root?: any;
|
|
5
|
+
tiny_template?: any;
|
|
6
|
+
tiny_renderless?: any;
|
|
7
|
+
_constants?: any;
|
|
8
|
+
tiny_theme?: any;
|
|
9
|
+
tiny_chart_theme?: any;
|
|
10
|
+
modelValue?: any;
|
|
11
|
+
zIndex?: any;
|
|
12
|
+
options?: any;
|
|
13
|
+
content?: any;
|
|
14
|
+
dataType?: any;
|
|
15
|
+
fileUpload?: any;
|
|
16
|
+
mentionObj?: any;
|
|
17
|
+
globalOptions?: any;
|
|
18
|
+
imageUpload?: any;
|
|
19
|
+
picPreview?: any;
|
|
20
|
+
dataUpgrade?: any;
|
|
21
|
+
imagePasteFailCallback?: any;
|
|
22
|
+
beforeEditorInit?: any;
|
|
23
|
+
}>, {
|
|
24
|
+
t: (this: any, path: any, options?: any) => any;
|
|
25
|
+
vm: any;
|
|
26
|
+
f: (props: any, attrs?: {}) => {};
|
|
27
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
28
|
+
d: (props: any) => void;
|
|
29
|
+
dp: (props: any) => void;
|
|
30
|
+
gcls: (key: any) => any;
|
|
31
|
+
m: (...cssClasses: any[]) => string;
|
|
32
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("blur" | "change" | "focus" | "update:modelValue" | "ready")[], "blur" | "change" | "focus" | "update:modelValue" | "ready", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
33
|
+
disabled?: any;
|
|
34
|
+
tiny_mode?: any;
|
|
35
|
+
tiny_mode_root?: any;
|
|
36
|
+
tiny_template?: any;
|
|
37
|
+
tiny_renderless?: any;
|
|
38
|
+
_constants?: any;
|
|
39
|
+
tiny_theme?: any;
|
|
40
|
+
tiny_chart_theme?: any;
|
|
41
|
+
modelValue?: any;
|
|
42
|
+
zIndex?: any;
|
|
43
|
+
options?: any;
|
|
44
|
+
content?: any;
|
|
45
|
+
dataType?: any;
|
|
46
|
+
fileUpload?: any;
|
|
47
|
+
mentionObj?: any;
|
|
48
|
+
globalOptions?: any;
|
|
49
|
+
imageUpload?: any;
|
|
50
|
+
picPreview?: any;
|
|
51
|
+
dataUpgrade?: any;
|
|
52
|
+
imagePasteFailCallback?: any;
|
|
53
|
+
beforeEditorInit?: any;
|
|
54
|
+
}>>> & {
|
|
55
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
readonly disabled?: any;
|
|
62
|
+
readonly tiny_mode?: any;
|
|
63
|
+
readonly tiny_mode_root?: any;
|
|
64
|
+
readonly tiny_template?: any;
|
|
65
|
+
readonly tiny_renderless?: any;
|
|
66
|
+
readonly _constants?: any;
|
|
67
|
+
readonly tiny_theme?: any;
|
|
68
|
+
readonly tiny_chart_theme?: any;
|
|
69
|
+
readonly modelValue?: any;
|
|
70
|
+
readonly zIndex?: any;
|
|
71
|
+
readonly options?: any;
|
|
72
|
+
readonly content?: any;
|
|
73
|
+
readonly dataType?: any;
|
|
74
|
+
readonly fileUpload?: any;
|
|
75
|
+
readonly mentionObj?: any;
|
|
76
|
+
readonly globalOptions?: any;
|
|
77
|
+
readonly imageUpload?: any;
|
|
78
|
+
readonly picPreview?: any;
|
|
79
|
+
readonly dataUpgrade?: any;
|
|
80
|
+
readonly imagePasteFailCallback?: any;
|
|
81
|
+
readonly beforeEditorInit?: any;
|
|
82
|
+
}, {}>;
|
|
2
83
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,2 +1,74 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
disabled?: any;
|
|
3
|
+
tiny_mode?: any;
|
|
4
|
+
tiny_mode_root?: any;
|
|
5
|
+
tiny_template?: any;
|
|
6
|
+
tiny_renderless?: any;
|
|
7
|
+
_constants?: any;
|
|
8
|
+
tiny_theme?: any;
|
|
9
|
+
tiny_chart_theme?: any;
|
|
10
|
+
modelValue?: any;
|
|
11
|
+
zIndex?: any;
|
|
12
|
+
options?: any;
|
|
13
|
+
content?: any;
|
|
14
|
+
dataType?: any;
|
|
15
|
+
fileUpload?: any;
|
|
16
|
+
mentionObj?: any;
|
|
17
|
+
globalOptions?: any;
|
|
18
|
+
imageUpload?: any;
|
|
19
|
+
picPreview?: any;
|
|
20
|
+
dataUpgrade?: any;
|
|
21
|
+
imagePasteFailCallback?: any;
|
|
22
|
+
beforeEditorInit?: any;
|
|
23
|
+
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("blur" | "change" | "focus" | "update:modelValue" | "ready")[], "blur" | "change" | "focus" | "update:modelValue" | "ready", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
24
|
+
disabled?: any;
|
|
25
|
+
tiny_mode?: any;
|
|
26
|
+
tiny_mode_root?: any;
|
|
27
|
+
tiny_template?: any;
|
|
28
|
+
tiny_renderless?: any;
|
|
29
|
+
_constants?: any;
|
|
30
|
+
tiny_theme?: any;
|
|
31
|
+
tiny_chart_theme?: any;
|
|
32
|
+
modelValue?: any;
|
|
33
|
+
zIndex?: any;
|
|
34
|
+
options?: any;
|
|
35
|
+
content?: any;
|
|
36
|
+
dataType?: any;
|
|
37
|
+
fileUpload?: any;
|
|
38
|
+
mentionObj?: any;
|
|
39
|
+
globalOptions?: any;
|
|
40
|
+
imageUpload?: any;
|
|
41
|
+
picPreview?: any;
|
|
42
|
+
dataUpgrade?: any;
|
|
43
|
+
imagePasteFailCallback?: any;
|
|
44
|
+
beforeEditorInit?: any;
|
|
45
|
+
}>>> & {
|
|
46
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
readonly disabled?: any;
|
|
53
|
+
readonly tiny_mode?: any;
|
|
54
|
+
readonly tiny_mode_root?: any;
|
|
55
|
+
readonly tiny_template?: any;
|
|
56
|
+
readonly tiny_renderless?: any;
|
|
57
|
+
readonly _constants?: any;
|
|
58
|
+
readonly tiny_theme?: any;
|
|
59
|
+
readonly tiny_chart_theme?: any;
|
|
60
|
+
readonly modelValue?: any;
|
|
61
|
+
readonly zIndex?: any;
|
|
62
|
+
readonly options?: any;
|
|
63
|
+
readonly content?: any;
|
|
64
|
+
readonly dataType?: any;
|
|
65
|
+
readonly fileUpload?: any;
|
|
66
|
+
readonly mentionObj?: any;
|
|
67
|
+
readonly globalOptions?: any;
|
|
68
|
+
readonly imageUpload?: any;
|
|
69
|
+
readonly picPreview?: any;
|
|
70
|
+
readonly dataUpgrade?: any;
|
|
71
|
+
readonly imagePasteFailCallback?: any;
|
|
72
|
+
readonly beforeEditorInit?: any;
|
|
73
|
+
}, {}>;
|
|
2
74
|
export default _default;
|