pxx-vue-quill 1.0.28 → 1.0.30
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/vue-quill.cjs.js +18 -11
- package/dist/vue-quill.cjs.prod.js +2 -2
- package/dist/vue-quill.esm-browser.js +165 -166
- package/dist/vue-quill.esm-browser.prod.js +2 -2
- package/dist/vue-quill.esm-bundler.js +19 -12
- package/dist/vue-quill.esm-bundler.prod.js +2 -2
- package/dist/vue-quill.global.js +172 -157
- package/dist/vue-quill.global.prod.js +2 -2
- package/package.json +1 -1
package/dist/vue-quill.global.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Copyright (c) 2025 Pxx-Team
|
|
9
9
|
* Released under the MIT license
|
|
10
|
-
* Date: 2025-08-
|
|
10
|
+
* Date: 2025-08-28T06:39:34.530Z
|
|
11
11
|
*/
|
|
12
12
|
(function (global, factory) {
|
|
13
13
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -18782,11 +18782,11 @@
|
|
|
18782
18782
|
value: true
|
|
18783
18783
|
});
|
|
18784
18784
|
|
|
18785
|
-
var _createClass$
|
|
18785
|
+
var _createClass$1 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
18786
18786
|
|
|
18787
18787
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18788
18788
|
|
|
18789
|
-
function _classCallCheck$
|
|
18789
|
+
function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18790
18790
|
|
|
18791
18791
|
var LEFT_ALIGN = 'left';
|
|
18792
18792
|
var CENTER_ALIGN = 'center';
|
|
@@ -18797,7 +18797,7 @@
|
|
|
18797
18797
|
var _this = this,
|
|
18798
18798
|
_alignments;
|
|
18799
18799
|
|
|
18800
|
-
_classCallCheck$
|
|
18800
|
+
_classCallCheck$1(this, DefaultAligner);
|
|
18801
18801
|
|
|
18802
18802
|
this.applyStyle = options.aligner.applyStyle;
|
|
18803
18803
|
this.alignAttribute = options.attribute;
|
|
@@ -18825,7 +18825,7 @@
|
|
|
18825
18825
|
}), _alignments);
|
|
18826
18826
|
}
|
|
18827
18827
|
|
|
18828
|
-
_createClass$
|
|
18828
|
+
_createClass$1(DefaultAligner, [{
|
|
18829
18829
|
key: 'getAlignments',
|
|
18830
18830
|
value: function getAlignments() {
|
|
18831
18831
|
var _this2 = this;
|
|
@@ -19128,182 +19128,190 @@
|
|
|
19128
19128
|
return AlignAction;
|
|
19129
19129
|
}
|
|
19130
19130
|
|
|
19131
|
-
var ResizeAction
|
|
19131
|
+
var ResizeAction = {};
|
|
19132
19132
|
|
|
19133
|
-
|
|
19134
|
-
value: true
|
|
19135
|
-
});
|
|
19133
|
+
var hasRequiredResizeAction;
|
|
19136
19134
|
|
|
19137
|
-
|
|
19135
|
+
function requireResizeAction () {
|
|
19136
|
+
if (hasRequiredResizeAction) return ResizeAction;
|
|
19137
|
+
hasRequiredResizeAction = 1;
|
|
19138
19138
|
|
|
19139
|
-
|
|
19139
|
+
Object.defineProperty(ResizeAction, "__esModule", {
|
|
19140
|
+
value: true
|
|
19141
|
+
});
|
|
19140
19142
|
|
|
19141
|
-
|
|
19143
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
19142
19144
|
|
|
19143
|
-
|
|
19145
|
+
var _Action2 = requireAction();
|
|
19144
19146
|
|
|
19145
|
-
|
|
19147
|
+
var _Action3 = _interopRequireDefault(_Action2);
|
|
19146
19148
|
|
|
19147
|
-
|
|
19149
|
+
var _BlotFormatter = requireBlotFormatter();
|
|
19148
19150
|
|
|
19149
|
-
|
|
19151
|
+
_interopRequireDefault(_BlotFormatter);
|
|
19150
19152
|
|
|
19151
|
-
|
|
19153
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19152
19154
|
|
|
19153
|
-
|
|
19155
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19154
19156
|
|
|
19155
|
-
|
|
19156
|
-
_inherits$1(ResizeAction, _Action);
|
|
19157
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
19157
19158
|
|
|
19158
|
-
|
|
19159
|
-
_classCallCheck$1(this, ResizeAction);
|
|
19159
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
19160
19160
|
|
|
19161
|
-
|
|
19161
|
+
var ResizeAction$1 = function (_Action) {
|
|
19162
|
+
_inherits(ResizeAction, _Action);
|
|
19162
19163
|
|
|
19163
|
-
|
|
19164
|
-
|
|
19165
|
-
return;
|
|
19166
|
-
}
|
|
19167
|
-
_this.dragHandle = event.target;
|
|
19168
|
-
_this.setCursor(_this.dragHandle.style.cursor);
|
|
19164
|
+
function ResizeAction(formatter) {
|
|
19165
|
+
_classCallCheck(this, ResizeAction);
|
|
19169
19166
|
|
|
19170
|
-
|
|
19171
|
-
return;
|
|
19172
|
-
}
|
|
19167
|
+
var _this = _possibleConstructorReturn(this, (ResizeAction.__proto__ || Object.getPrototypeOf(ResizeAction)).call(this, formatter));
|
|
19173
19168
|
|
|
19174
|
-
|
|
19175
|
-
|
|
19176
|
-
|
|
19177
|
-
|
|
19169
|
+
_this.onMouseDown = function (event) {
|
|
19170
|
+
if (!(event.target instanceof HTMLElement)) {
|
|
19171
|
+
return;
|
|
19172
|
+
}
|
|
19173
|
+
_this.dragHandle = event.target;
|
|
19174
|
+
_this.setCursor(_this.dragHandle.style.cursor);
|
|
19178
19175
|
|
|
19179
|
-
|
|
19176
|
+
if (!_this.formatter.currentSpec) {
|
|
19177
|
+
return;
|
|
19178
|
+
}
|
|
19180
19179
|
|
|
19181
|
-
|
|
19182
|
-
|
|
19183
|
-
|
|
19180
|
+
var target = _this.formatter.currentSpec.getTargetElement();
|
|
19181
|
+
if (!target) {
|
|
19182
|
+
return;
|
|
19183
|
+
}
|
|
19184
19184
|
|
|
19185
|
-
|
|
19186
|
-
document.addEventListener('mouseup', _this.onMouseUp);
|
|
19187
|
-
};
|
|
19185
|
+
var rect = target.getBoundingClientRect();
|
|
19188
19186
|
|
|
19189
|
-
|
|
19190
|
-
|
|
19191
|
-
|
|
19192
|
-
}
|
|
19187
|
+
_this.dragStartX = event.clientX;
|
|
19188
|
+
_this.preDragWidth = rect.width;
|
|
19189
|
+
_this.targetRatio = rect.height / rect.width;
|
|
19193
19190
|
|
|
19194
|
-
|
|
19195
|
-
|
|
19196
|
-
|
|
19197
|
-
}
|
|
19191
|
+
document.addEventListener('mousemove', _this.onDrag);
|
|
19192
|
+
document.addEventListener('mouseup', _this.onMouseUp);
|
|
19193
|
+
};
|
|
19198
19194
|
|
|
19199
|
-
|
|
19200
|
-
|
|
19195
|
+
_this.onDrag = function (event) {
|
|
19196
|
+
if (!_this.formatter.currentSpec) {
|
|
19197
|
+
return;
|
|
19198
|
+
}
|
|
19201
19199
|
|
|
19202
|
-
|
|
19203
|
-
|
|
19204
|
-
|
|
19205
|
-
|
|
19206
|
-
}
|
|
19200
|
+
var target = _this.formatter.currentSpec.getTargetElement();
|
|
19201
|
+
if (!target) {
|
|
19202
|
+
return;
|
|
19203
|
+
}
|
|
19207
19204
|
|
|
19208
|
-
|
|
19205
|
+
var deltaX = event.clientX - _this.dragStartX;
|
|
19206
|
+
var newWidth = 0;
|
|
19209
19207
|
|
|
19210
|
-
|
|
19211
|
-
|
|
19208
|
+
if (_this.dragHandle === _this.topLeftHandle || _this.dragHandle === _this.bottomLeftHandle) {
|
|
19209
|
+
newWidth = Math.round(_this.preDragWidth - deltaX);
|
|
19210
|
+
} else {
|
|
19211
|
+
newWidth = Math.round(_this.preDragWidth + deltaX);
|
|
19212
|
+
}
|
|
19212
19213
|
|
|
19213
|
-
|
|
19214
|
-
};
|
|
19214
|
+
var newHeight = _this.targetRatio * newWidth;
|
|
19215
19215
|
|
|
19216
|
-
|
|
19217
|
-
|
|
19218
|
-
document.removeEventListener('mousemove', _this.onDrag);
|
|
19219
|
-
document.removeEventListener('mouseup', _this.onMouseUp);
|
|
19220
|
-
};
|
|
19216
|
+
target.setAttribute('width', '' + newWidth);
|
|
19217
|
+
target.setAttribute('height', '' + newHeight);
|
|
19221
19218
|
|
|
19222
|
-
|
|
19223
|
-
|
|
19224
|
-
_this.bottomRightHandle = _this.createHandle('bottom-right', 'nwse-resize');
|
|
19225
|
-
_this.bottomLeftHandle = _this.createHandle('bottom-left', 'nesw-resize');
|
|
19226
|
-
_this.dragHandle = null;
|
|
19227
|
-
_this.dragStartX = 0;
|
|
19228
|
-
_this.preDragWidth = 0;
|
|
19229
|
-
_this.targetRatio = 0;
|
|
19230
|
-
return _this;
|
|
19231
|
-
}
|
|
19219
|
+
_this.formatter.update();
|
|
19220
|
+
};
|
|
19232
19221
|
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
|
|
19238
|
-
this.formatter.overlay.appendChild(this.bottomRightHandle);
|
|
19239
|
-
this.formatter.overlay.appendChild(this.bottomLeftHandle);
|
|
19222
|
+
_this.onMouseUp = function () {
|
|
19223
|
+
_this.setCursor('');
|
|
19224
|
+
document.removeEventListener('mousemove', _this.onDrag);
|
|
19225
|
+
document.removeEventListener('mouseup', _this.onMouseUp);
|
|
19226
|
+
};
|
|
19240
19227
|
|
|
19241
|
-
|
|
19242
|
-
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19250
|
-
|
|
19251
|
-
}
|
|
19252
|
-
}, {
|
|
19253
|
-
key: 'createHandle',
|
|
19254
|
-
value: function createHandle(position, cursor) {
|
|
19255
|
-
var box = document.createElement('div');
|
|
19256
|
-
box.classList.add(this.formatter.options.resize.handleClassName);
|
|
19257
|
-
box.setAttribute('data-position', position);
|
|
19258
|
-
box.style.cursor = cursor;
|
|
19259
|
-
|
|
19260
|
-
if (this.formatter.options.resize.handleStyle) {
|
|
19261
|
-
Object.assign(box.style, this.formatter.options.resize.handleStyle);
|
|
19262
|
-
}
|
|
19228
|
+
_this.topLeftHandle = _this.createHandle('top-left', 'nwse-resize');
|
|
19229
|
+
_this.topRightHandle = _this.createHandle('top-right', 'nesw-resize');
|
|
19230
|
+
_this.bottomRightHandle = _this.createHandle('bottom-right', 'nwse-resize');
|
|
19231
|
+
_this.bottomLeftHandle = _this.createHandle('bottom-left', 'nesw-resize');
|
|
19232
|
+
_this.dragHandle = null;
|
|
19233
|
+
_this.dragStartX = 0;
|
|
19234
|
+
_this.preDragWidth = 0;
|
|
19235
|
+
_this.targetRatio = 0;
|
|
19236
|
+
return _this;
|
|
19237
|
+
}
|
|
19263
19238
|
|
|
19264
|
-
|
|
19239
|
+
_createClass(ResizeAction, [{
|
|
19240
|
+
key: 'onCreate',
|
|
19241
|
+
value: function onCreate() {
|
|
19242
|
+
this.formatter.overlay.appendChild(this.topLeftHandle);
|
|
19243
|
+
this.formatter.overlay.appendChild(this.topRightHandle);
|
|
19244
|
+
this.formatter.overlay.appendChild(this.bottomRightHandle);
|
|
19245
|
+
this.formatter.overlay.appendChild(this.bottomLeftHandle);
|
|
19265
19246
|
|
|
19266
|
-
|
|
19267
|
-
|
|
19268
|
-
|
|
19269
|
-
|
|
19270
|
-
|
|
19271
|
-
|
|
19272
|
-
|
|
19273
|
-
|
|
19274
|
-
|
|
19275
|
-
|
|
19276
|
-
|
|
19277
|
-
|
|
19278
|
-
|
|
19279
|
-
|
|
19280
|
-
|
|
19247
|
+
this.repositionHandles(this.formatter.options.resize.handleStyle);
|
|
19248
|
+
}
|
|
19249
|
+
}, {
|
|
19250
|
+
key: 'onDestroy',
|
|
19251
|
+
value: function onDestroy() {
|
|
19252
|
+
this.setCursor('');
|
|
19253
|
+
this.formatter.overlay.removeChild(this.topLeftHandle);
|
|
19254
|
+
this.formatter.overlay.removeChild(this.topRightHandle);
|
|
19255
|
+
this.formatter.overlay.removeChild(this.bottomRightHandle);
|
|
19256
|
+
this.formatter.overlay.removeChild(this.bottomLeftHandle);
|
|
19257
|
+
}
|
|
19258
|
+
}, {
|
|
19259
|
+
key: 'createHandle',
|
|
19260
|
+
value: function createHandle(position, cursor) {
|
|
19261
|
+
var box = document.createElement('div');
|
|
19262
|
+
box.classList.add(this.formatter.options.resize.handleClassName);
|
|
19263
|
+
box.setAttribute('data-position', position);
|
|
19264
|
+
box.style.cursor = cursor;
|
|
19265
|
+
|
|
19266
|
+
if (this.formatter.options.resize.handleStyle) {
|
|
19267
|
+
Object.assign(box.style, this.formatter.options.resize.handleStyle);
|
|
19268
|
+
}
|
|
19281
19269
|
|
|
19282
|
-
|
|
19283
|
-
Object.assign(this.topRightHandle.style, { right: handleXOffset, top: handleYOffset });
|
|
19284
|
-
Object.assign(this.bottomRightHandle.style, { right: handleXOffset, bottom: handleYOffset });
|
|
19285
|
-
Object.assign(this.bottomLeftHandle.style, { left: handleXOffset, bottom: handleYOffset });
|
|
19286
|
-
}
|
|
19287
|
-
}, {
|
|
19288
|
-
key: 'setCursor',
|
|
19289
|
-
value: function setCursor(value) {
|
|
19290
|
-
if (document.body) {
|
|
19291
|
-
document.body.style.cursor = value;
|
|
19292
|
-
}
|
|
19270
|
+
box.addEventListener('mousedown', this.onMouseDown);
|
|
19293
19271
|
|
|
19294
|
-
|
|
19295
|
-
|
|
19296
|
-
|
|
19297
|
-
|
|
19298
|
-
|
|
19299
|
-
|
|
19300
|
-
|
|
19301
|
-
|
|
19272
|
+
return box;
|
|
19273
|
+
}
|
|
19274
|
+
}, {
|
|
19275
|
+
key: 'repositionHandles',
|
|
19276
|
+
value: function repositionHandles(handleStyle) {
|
|
19277
|
+
var handleXOffset = '0px';
|
|
19278
|
+
var handleYOffset = '0px';
|
|
19279
|
+
if (handleStyle) {
|
|
19280
|
+
if (handleStyle.width) {
|
|
19281
|
+
handleXOffset = -parseFloat(handleStyle.width) / 2 + 'px';
|
|
19282
|
+
}
|
|
19283
|
+
if (handleStyle.height) {
|
|
19284
|
+
handleYOffset = -parseFloat(handleStyle.height) / 2 + 'px';
|
|
19285
|
+
}
|
|
19286
|
+
}
|
|
19287
|
+
|
|
19288
|
+
Object.assign(this.topLeftHandle.style, { left: handleXOffset, top: handleYOffset });
|
|
19289
|
+
Object.assign(this.topRightHandle.style, { right: handleXOffset, top: handleYOffset });
|
|
19290
|
+
Object.assign(this.bottomRightHandle.style, { right: handleXOffset, bottom: handleYOffset });
|
|
19291
|
+
Object.assign(this.bottomLeftHandle.style, { left: handleXOffset, bottom: handleYOffset });
|
|
19292
|
+
}
|
|
19293
|
+
}, {
|
|
19294
|
+
key: 'setCursor',
|
|
19295
|
+
value: function setCursor(value) {
|
|
19296
|
+
if (document.body) {
|
|
19297
|
+
document.body.style.cursor = value;
|
|
19298
|
+
}
|
|
19299
|
+
|
|
19300
|
+
if (this.formatter.currentSpec) {
|
|
19301
|
+
var target = this.formatter.currentSpec.getOverlayElement();
|
|
19302
|
+
if (target) {
|
|
19303
|
+
target.style.cursor = value;
|
|
19304
|
+
}
|
|
19305
|
+
}
|
|
19306
|
+
}
|
|
19307
|
+
}]);
|
|
19302
19308
|
|
|
19303
|
-
|
|
19304
|
-
|
|
19309
|
+
return ResizeAction;
|
|
19310
|
+
}(_Action3.default);
|
|
19305
19311
|
|
|
19306
|
-
|
|
19312
|
+
ResizeAction.default = ResizeAction$1;
|
|
19313
|
+
return ResizeAction;
|
|
19314
|
+
}
|
|
19307
19315
|
|
|
19308
19316
|
var DeleteAction = {};
|
|
19309
19317
|
|
|
@@ -19410,7 +19418,7 @@
|
|
|
19410
19418
|
|
|
19411
19419
|
var _AlignAction2 = _interopRequireDefault(_AlignAction);
|
|
19412
19420
|
|
|
19413
|
-
var _ResizeAction =
|
|
19421
|
+
var _ResizeAction = requireResizeAction();
|
|
19414
19422
|
|
|
19415
19423
|
var _ResizeAction2 = _interopRequireDefault(_ResizeAction);
|
|
19416
19424
|
|
|
@@ -19895,7 +19903,7 @@
|
|
|
19895
19903
|
}
|
|
19896
19904
|
});
|
|
19897
19905
|
|
|
19898
|
-
var _ResizeAction =
|
|
19906
|
+
var _ResizeAction = requireResizeAction();
|
|
19899
19907
|
|
|
19900
19908
|
Object.defineProperty(exports, 'ResizeAction', {
|
|
19901
19909
|
enumerable: true,
|
|
@@ -19956,15 +19964,16 @@
|
|
|
19956
19964
|
type: Object,
|
|
19957
19965
|
default: () => ({}),
|
|
19958
19966
|
},
|
|
19967
|
+
showMoreToolbar: {
|
|
19968
|
+
type: Boolean,
|
|
19969
|
+
default: false,
|
|
19970
|
+
},
|
|
19959
19971
|
},
|
|
19960
19972
|
emits: ['toolClick'],
|
|
19961
19973
|
setup(props, { emit }) {
|
|
19962
|
-
const showMoreTools = vue.ref(false);
|
|
19963
|
-
const moreButtonClick = () => {
|
|
19964
|
-
showMoreTools.value = !showMoreTools.value;
|
|
19965
|
-
};
|
|
19966
19974
|
return () => vue.h('div', {
|
|
19967
19975
|
id: 'toolbar-' + props.editorKey,
|
|
19976
|
+
dataC: props.showMoreToolbar,
|
|
19968
19977
|
style: {
|
|
19969
19978
|
...props.toolbarStyle
|
|
19970
19979
|
}
|
|
@@ -19972,7 +19981,7 @@
|
|
|
19972
19981
|
vue.h('div', {
|
|
19973
19982
|
class: {
|
|
19974
19983
|
'short-tools': true,
|
|
19975
|
-
'collapse':
|
|
19984
|
+
'collapse': props.showMoreToolbar
|
|
19976
19985
|
}
|
|
19977
19986
|
}, [
|
|
19978
19987
|
// 第一组:基础格式工具
|
|
@@ -20015,15 +20024,15 @@
|
|
|
20015
20024
|
vue.h('button', {
|
|
20016
20025
|
class: 'ql-more mr-0',
|
|
20017
20026
|
type: 'button',
|
|
20018
|
-
onClick:
|
|
20027
|
+
onClick: () => emit('toolClick', 'more')
|
|
20019
20028
|
}, '')
|
|
20020
20029
|
])
|
|
20021
20030
|
]),
|
|
20022
20031
|
vue.h('div', {
|
|
20023
20032
|
class: {
|
|
20024
20033
|
"more-tools": true,
|
|
20025
|
-
"collapse":
|
|
20026
|
-
}, style: { display:
|
|
20034
|
+
"collapse": props.showMoreToolbar
|
|
20035
|
+
}, style: { display: props.showMoreToolbar ? 'block' : 'none' }
|
|
20027
20036
|
}, [
|
|
20028
20037
|
vue.h('div', { class: "more-tools-item" }, [
|
|
20029
20038
|
vue.h('span', { class: 'ql-formats' }, [
|
|
@@ -20303,6 +20312,7 @@
|
|
|
20303
20312
|
}
|
|
20304
20313
|
});
|
|
20305
20314
|
vue.watchEffect(() => {
|
|
20315
|
+
console.log("init");
|
|
20306
20316
|
applyEditorStyle();
|
|
20307
20317
|
});
|
|
20308
20318
|
const registerModule = (moduleName, module) => {
|
|
@@ -20454,8 +20464,8 @@
|
|
|
20454
20464
|
toolbar.style.display = 'block';
|
|
20455
20465
|
}
|
|
20456
20466
|
else {
|
|
20457
|
-
showMoreToolbar.value = false;
|
|
20458
20467
|
toolbar.style.display = 'none';
|
|
20468
|
+
showMoreToolbar.value = false;
|
|
20459
20469
|
}
|
|
20460
20470
|
}
|
|
20461
20471
|
ctx.emit('selectionChange', { range, oldRange, source });
|
|
@@ -20570,9 +20580,13 @@
|
|
|
20570
20580
|
else if (tool === 'math') {
|
|
20571
20581
|
ctx.emit('math');
|
|
20572
20582
|
}
|
|
20583
|
+
else if (tool === 'more') {
|
|
20584
|
+
// 处理更多按钮点击
|
|
20585
|
+
showMoreToolbar.value = !showMoreToolbar.value;
|
|
20586
|
+
}
|
|
20573
20587
|
};
|
|
20574
20588
|
vue.watch(() => props.content, (newContent) => {
|
|
20575
|
-
if (!quill ||
|
|
20589
|
+
if (!quill || internalModelEquals(newContent))
|
|
20576
20590
|
return;
|
|
20577
20591
|
const selection = quill.getSelection();
|
|
20578
20592
|
if (selection) {
|
|
@@ -20611,6 +20625,7 @@
|
|
|
20611
20625
|
editorKey: String(this.$props.editorKey),
|
|
20612
20626
|
needCollapse: this.needCollapse,
|
|
20613
20627
|
toolbarStyle: this.$props.toolbarStyle,
|
|
20628
|
+
showMoreToolbar: this.showMoreToolbar,
|
|
20614
20629
|
onToolClick: (tool) => {
|
|
20615
20630
|
this.moreToolbarToolClick(tool);
|
|
20616
20631
|
}
|