jtui3.0 1.2.13 → 1.2.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/lib/jtui3.0.common.12.js +14 -14
- package/lib/jtui3.0.common.js +6498 -6498
- package/lib/jtui3.0.umd.271.js +14 -14
- package/lib/jtui3.0.umd.js +6513 -6513
- package/lib/jtui3.0.umd.min.575.js +1 -1
- package/lib/jtui3.0.umd.min.js +4 -4
- package/package.json +8 -4
package/lib/jtui3.0.umd.271.js
CHANGED
|
@@ -53,8 +53,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
53
53
|
|
|
54
54
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
55
55
|
var es_error_cause = __webpack_require__(1703);
|
|
56
|
-
// EXTERNAL MODULE: external
|
|
57
|
-
var
|
|
56
|
+
// EXTERNAL MODULE: external "Vue"
|
|
57
|
+
var external_Vue_ = __webpack_require__(2740);
|
|
58
58
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.has-own.js
|
|
59
59
|
var es_object_has_own = __webpack_require__(6314);
|
|
60
60
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.flags.js
|
|
@@ -255,7 +255,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
255
255
|
return sfc;
|
|
256
256
|
};
|
|
257
257
|
|
|
258
|
-
const _sfc_main$1 = (0,
|
|
258
|
+
const _sfc_main$1 = (0,external_Vue_.defineComponent)({
|
|
259
259
|
props: {
|
|
260
260
|
mode: {
|
|
261
261
|
type: String,
|
|
@@ -280,13 +280,13 @@ const _sfc_main$1 = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
|
|
|
280
280
|
},
|
|
281
281
|
|
|
282
282
|
setup(props, context) {
|
|
283
|
-
const box = (0,
|
|
284
|
-
const editorRef = (0,
|
|
285
|
-
const curValue = (0,
|
|
283
|
+
const box = (0,external_Vue_.ref)(null);
|
|
284
|
+
const editorRef = (0,external_Vue_.shallowRef)(null);
|
|
285
|
+
const curValue = (0,external_Vue_.ref)("");
|
|
286
286
|
|
|
287
287
|
const initEditor = () => {
|
|
288
288
|
if (!box.value) return;
|
|
289
|
-
const defaultContent = (0,
|
|
289
|
+
const defaultContent = (0,external_Vue_.toRaw)(props.defaultContent);
|
|
290
290
|
iye({
|
|
291
291
|
selector: box.value,
|
|
292
292
|
mode: props.mode,
|
|
@@ -382,10 +382,10 @@ const _sfc_main$1 = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
|
|
|
382
382
|
editor.setHtml(newHtml);
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
(0,
|
|
385
|
+
(0,external_Vue_.onMounted)(() => {
|
|
386
386
|
initEditor();
|
|
387
387
|
});
|
|
388
|
-
(0,
|
|
388
|
+
(0,external_Vue_.watch)(() => props.modelValue, newVal => {
|
|
389
389
|
if (newVal === curValue.value) return;
|
|
390
390
|
setHtml(newVal);
|
|
391
391
|
});
|
|
@@ -404,12 +404,12 @@ const _hoisted_1$1 = {
|
|
|
404
404
|
};
|
|
405
405
|
|
|
406
406
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
407
|
-
return (0,
|
|
407
|
+
return (0,external_Vue_.openBlock)(), (0,external_Vue_.createElementBlock)("div", _hoisted_1$1, null, 512);
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
var Editor = /* @__PURE__ */_export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
411
411
|
|
|
412
|
-
const _sfc_main = (0,
|
|
412
|
+
const _sfc_main = (0,external_Vue_.defineComponent)({
|
|
413
413
|
props: {
|
|
414
414
|
editor: {
|
|
415
415
|
type: Object
|
|
@@ -425,7 +425,7 @@ const _sfc_main = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompone
|
|
|
425
425
|
},
|
|
426
426
|
|
|
427
427
|
setup(props) {
|
|
428
|
-
const selector = (0,
|
|
428
|
+
const selector = (0,external_Vue_.ref)(null);
|
|
429
429
|
|
|
430
430
|
const create = editor => {
|
|
431
431
|
if (!selector.value) return;
|
|
@@ -443,7 +443,7 @@ const _sfc_main = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompone
|
|
|
443
443
|
});
|
|
444
444
|
};
|
|
445
445
|
|
|
446
|
-
(0,
|
|
446
|
+
(0,external_Vue_.watchEffect)(() => {
|
|
447
447
|
const {
|
|
448
448
|
editor
|
|
449
449
|
} = props;
|
|
@@ -462,7 +462,7 @@ const _hoisted_1 = {
|
|
|
462
462
|
};
|
|
463
463
|
|
|
464
464
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
465
|
-
return (0,
|
|
465
|
+
return (0,external_Vue_.openBlock)(), (0,external_Vue_.createElementBlock)("div", _hoisted_1, null, 512);
|
|
466
466
|
}
|
|
467
467
|
|
|
468
468
|
var Toolbar = /* @__PURE__ */_export_sfc(_sfc_main, [["render", _sfc_render]]);
|