pxx-vue-quill 1.0.0 → 1.0.2

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.
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Copyright (c) 2025 Pxx-Team
9
9
  * Released under the MIT license
10
- * Date: 2025-08-20T07:28:26.289Z
10
+ * Date: 2025-08-20T10:40:06.224Z
11
11
  */
12
12
  import { defineComponent, onMounted, onBeforeUnmount, ref, watch, nextTick, h } from 'vue';
13
13
 
@@ -18780,11 +18780,11 @@ Object.defineProperty(DefaultAligner$1, "__esModule", {
18780
18780
  value: true
18781
18781
  });
18782
18782
 
18783
- 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; }; }();
18783
+ 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; }; }();
18784
18784
 
18785
18785
  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; }
18786
18786
 
18787
- function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18787
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18788
18788
 
18789
18789
  var LEFT_ALIGN = 'left';
18790
18790
  var CENTER_ALIGN = 'center';
@@ -18795,7 +18795,7 @@ var DefaultAligner = function () {
18795
18795
  var _this = this,
18796
18796
  _alignments;
18797
18797
 
18798
- _classCallCheck$1(this, DefaultAligner);
18798
+ _classCallCheck(this, DefaultAligner);
18799
18799
 
18800
18800
  this.applyStyle = options.aligner.applyStyle;
18801
18801
  this.alignAttribute = options.attribute;
@@ -18823,7 +18823,7 @@ var DefaultAligner = function () {
18823
18823
  }), _alignments);
18824
18824
  }
18825
18825
 
18826
- _createClass$1(DefaultAligner, [{
18826
+ _createClass(DefaultAligner, [{
18827
18827
  key: 'getAlignments',
18828
18828
  value: function getAlignments() {
18829
18829
  var _this2 = this;
@@ -19126,182 +19126,190 @@ function requireAlignAction () {
19126
19126
  return AlignAction;
19127
19127
  }
19128
19128
 
19129
- var ResizeAction$1 = {};
19129
+ var ResizeAction = {};
19130
19130
 
19131
- Object.defineProperty(ResizeAction$1, "__esModule", {
19132
- value: true
19133
- });
19131
+ var hasRequiredResizeAction;
19134
19132
 
19135
- 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; }; }();
19133
+ function requireResizeAction () {
19134
+ if (hasRequiredResizeAction) return ResizeAction;
19135
+ hasRequiredResizeAction = 1;
19136
19136
 
19137
- var _Action2 = requireAction();
19137
+ Object.defineProperty(ResizeAction, "__esModule", {
19138
+ value: true
19139
+ });
19138
19140
 
19139
- var _Action3 = _interopRequireDefault(_Action2);
19141
+ 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; }; }();
19140
19142
 
19141
- var _BlotFormatter = requireBlotFormatter();
19143
+ var _Action2 = requireAction();
19142
19144
 
19143
- _interopRequireDefault(_BlotFormatter);
19145
+ var _Action3 = _interopRequireDefault(_Action2);
19144
19146
 
19145
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19147
+ var _BlotFormatter = requireBlotFormatter();
19146
19148
 
19147
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19149
+ _interopRequireDefault(_BlotFormatter);
19148
19150
 
19149
- 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; }
19151
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19150
19152
 
19151
- 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; }
19153
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19152
19154
 
19153
- var ResizeAction = function (_Action) {
19154
- _inherits(ResizeAction, _Action);
19155
+ 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; }
19155
19156
 
19156
- function ResizeAction(formatter) {
19157
- _classCallCheck(this, ResizeAction);
19157
+ 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; }
19158
19158
 
19159
- var _this = _possibleConstructorReturn(this, (ResizeAction.__proto__ || Object.getPrototypeOf(ResizeAction)).call(this, formatter));
19159
+ var ResizeAction$1 = function (_Action) {
19160
+ _inherits(ResizeAction, _Action);
19160
19161
 
19161
- _this.onMouseDown = function (event) {
19162
- if (!(event.target instanceof HTMLElement)) {
19163
- return;
19164
- }
19165
- _this.dragHandle = event.target;
19166
- _this.setCursor(_this.dragHandle.style.cursor);
19162
+ function ResizeAction(formatter) {
19163
+ _classCallCheck(this, ResizeAction);
19167
19164
 
19168
- if (!_this.formatter.currentSpec) {
19169
- return;
19170
- }
19165
+ var _this = _possibleConstructorReturn(this, (ResizeAction.__proto__ || Object.getPrototypeOf(ResizeAction)).call(this, formatter));
19171
19166
 
19172
- var target = _this.formatter.currentSpec.getTargetElement();
19173
- if (!target) {
19174
- return;
19175
- }
19167
+ _this.onMouseDown = function (event) {
19168
+ if (!(event.target instanceof HTMLElement)) {
19169
+ return;
19170
+ }
19171
+ _this.dragHandle = event.target;
19172
+ _this.setCursor(_this.dragHandle.style.cursor);
19176
19173
 
19177
- var rect = target.getBoundingClientRect();
19174
+ if (!_this.formatter.currentSpec) {
19175
+ return;
19176
+ }
19178
19177
 
19179
- _this.dragStartX = event.clientX;
19180
- _this.preDragWidth = rect.width;
19181
- _this.targetRatio = rect.height / rect.width;
19178
+ var target = _this.formatter.currentSpec.getTargetElement();
19179
+ if (!target) {
19180
+ return;
19181
+ }
19182
19182
 
19183
- document.addEventListener('mousemove', _this.onDrag);
19184
- document.addEventListener('mouseup', _this.onMouseUp);
19185
- };
19183
+ var rect = target.getBoundingClientRect();
19186
19184
 
19187
- _this.onDrag = function (event) {
19188
- if (!_this.formatter.currentSpec) {
19189
- return;
19190
- }
19185
+ _this.dragStartX = event.clientX;
19186
+ _this.preDragWidth = rect.width;
19187
+ _this.targetRatio = rect.height / rect.width;
19191
19188
 
19192
- var target = _this.formatter.currentSpec.getTargetElement();
19193
- if (!target) {
19194
- return;
19195
- }
19189
+ document.addEventListener('mousemove', _this.onDrag);
19190
+ document.addEventListener('mouseup', _this.onMouseUp);
19191
+ };
19196
19192
 
19197
- var deltaX = event.clientX - _this.dragStartX;
19198
- var newWidth = 0;
19193
+ _this.onDrag = function (event) {
19194
+ if (!_this.formatter.currentSpec) {
19195
+ return;
19196
+ }
19199
19197
 
19200
- if (_this.dragHandle === _this.topLeftHandle || _this.dragHandle === _this.bottomLeftHandle) {
19201
- newWidth = Math.round(_this.preDragWidth - deltaX);
19202
- } else {
19203
- newWidth = Math.round(_this.preDragWidth + deltaX);
19204
- }
19198
+ var target = _this.formatter.currentSpec.getTargetElement();
19199
+ if (!target) {
19200
+ return;
19201
+ }
19205
19202
 
19206
- var newHeight = _this.targetRatio * newWidth;
19203
+ var deltaX = event.clientX - _this.dragStartX;
19204
+ var newWidth = 0;
19207
19205
 
19208
- target.setAttribute('width', '' + newWidth);
19209
- target.setAttribute('height', '' + newHeight);
19206
+ if (_this.dragHandle === _this.topLeftHandle || _this.dragHandle === _this.bottomLeftHandle) {
19207
+ newWidth = Math.round(_this.preDragWidth - deltaX);
19208
+ } else {
19209
+ newWidth = Math.round(_this.preDragWidth + deltaX);
19210
+ }
19210
19211
 
19211
- _this.formatter.update();
19212
- };
19212
+ var newHeight = _this.targetRatio * newWidth;
19213
19213
 
19214
- _this.onMouseUp = function () {
19215
- _this.setCursor('');
19216
- document.removeEventListener('mousemove', _this.onDrag);
19217
- document.removeEventListener('mouseup', _this.onMouseUp);
19218
- };
19214
+ target.setAttribute('width', '' + newWidth);
19215
+ target.setAttribute('height', '' + newHeight);
19219
19216
 
19220
- _this.topLeftHandle = _this.createHandle('top-left', 'nwse-resize');
19221
- _this.topRightHandle = _this.createHandle('top-right', 'nesw-resize');
19222
- _this.bottomRightHandle = _this.createHandle('bottom-right', 'nwse-resize');
19223
- _this.bottomLeftHandle = _this.createHandle('bottom-left', 'nesw-resize');
19224
- _this.dragHandle = null;
19225
- _this.dragStartX = 0;
19226
- _this.preDragWidth = 0;
19227
- _this.targetRatio = 0;
19228
- return _this;
19229
- }
19217
+ _this.formatter.update();
19218
+ };
19219
+
19220
+ _this.onMouseUp = function () {
19221
+ _this.setCursor('');
19222
+ document.removeEventListener('mousemove', _this.onDrag);
19223
+ document.removeEventListener('mouseup', _this.onMouseUp);
19224
+ };
19230
19225
 
19231
- _createClass(ResizeAction, [{
19232
- key: 'onCreate',
19233
- value: function onCreate() {
19234
- this.formatter.overlay.appendChild(this.topLeftHandle);
19235
- this.formatter.overlay.appendChild(this.topRightHandle);
19236
- this.formatter.overlay.appendChild(this.bottomRightHandle);
19237
- this.formatter.overlay.appendChild(this.bottomLeftHandle);
19226
+ _this.topLeftHandle = _this.createHandle('top-left', 'nwse-resize');
19227
+ _this.topRightHandle = _this.createHandle('top-right', 'nesw-resize');
19228
+ _this.bottomRightHandle = _this.createHandle('bottom-right', 'nwse-resize');
19229
+ _this.bottomLeftHandle = _this.createHandle('bottom-left', 'nesw-resize');
19230
+ _this.dragHandle = null;
19231
+ _this.dragStartX = 0;
19232
+ _this.preDragWidth = 0;
19233
+ _this.targetRatio = 0;
19234
+ return _this;
19235
+ }
19238
19236
 
19239
- this.repositionHandles(this.formatter.options.resize.handleStyle);
19240
- }
19241
- }, {
19242
- key: 'onDestroy',
19243
- value: function onDestroy() {
19244
- this.setCursor('');
19245
- this.formatter.overlay.removeChild(this.topLeftHandle);
19246
- this.formatter.overlay.removeChild(this.topRightHandle);
19247
- this.formatter.overlay.removeChild(this.bottomRightHandle);
19248
- this.formatter.overlay.removeChild(this.bottomLeftHandle);
19249
- }
19250
- }, {
19251
- key: 'createHandle',
19252
- value: function createHandle(position, cursor) {
19253
- var box = document.createElement('div');
19254
- box.classList.add(this.formatter.options.resize.handleClassName);
19255
- box.setAttribute('data-position', position);
19256
- box.style.cursor = cursor;
19257
-
19258
- if (this.formatter.options.resize.handleStyle) {
19259
- Object.assign(box.style, this.formatter.options.resize.handleStyle);
19260
- }
19237
+ _createClass(ResizeAction, [{
19238
+ key: 'onCreate',
19239
+ value: function onCreate() {
19240
+ this.formatter.overlay.appendChild(this.topLeftHandle);
19241
+ this.formatter.overlay.appendChild(this.topRightHandle);
19242
+ this.formatter.overlay.appendChild(this.bottomRightHandle);
19243
+ this.formatter.overlay.appendChild(this.bottomLeftHandle);
19261
19244
 
19262
- box.addEventListener('mousedown', this.onMouseDown);
19245
+ this.repositionHandles(this.formatter.options.resize.handleStyle);
19246
+ }
19247
+ }, {
19248
+ key: 'onDestroy',
19249
+ value: function onDestroy() {
19250
+ this.setCursor('');
19251
+ this.formatter.overlay.removeChild(this.topLeftHandle);
19252
+ this.formatter.overlay.removeChild(this.topRightHandle);
19253
+ this.formatter.overlay.removeChild(this.bottomRightHandle);
19254
+ this.formatter.overlay.removeChild(this.bottomLeftHandle);
19255
+ }
19256
+ }, {
19257
+ key: 'createHandle',
19258
+ value: function createHandle(position, cursor) {
19259
+ var box = document.createElement('div');
19260
+ box.classList.add(this.formatter.options.resize.handleClassName);
19261
+ box.setAttribute('data-position', position);
19262
+ box.style.cursor = cursor;
19263
+
19264
+ if (this.formatter.options.resize.handleStyle) {
19265
+ Object.assign(box.style, this.formatter.options.resize.handleStyle);
19266
+ }
19263
19267
 
19264
- return box;
19265
- }
19266
- }, {
19267
- key: 'repositionHandles',
19268
- value: function repositionHandles(handleStyle) {
19269
- var handleXOffset = '0px';
19270
- var handleYOffset = '0px';
19271
- if (handleStyle) {
19272
- if (handleStyle.width) {
19273
- handleXOffset = -parseFloat(handleStyle.width) / 2 + 'px';
19274
- }
19275
- if (handleStyle.height) {
19276
- handleYOffset = -parseFloat(handleStyle.height) / 2 + 'px';
19277
- }
19278
- }
19268
+ box.addEventListener('mousedown', this.onMouseDown);
19279
19269
 
19280
- Object.assign(this.topLeftHandle.style, { left: handleXOffset, top: handleYOffset });
19281
- Object.assign(this.topRightHandle.style, { right: handleXOffset, top: handleYOffset });
19282
- Object.assign(this.bottomRightHandle.style, { right: handleXOffset, bottom: handleYOffset });
19283
- Object.assign(this.bottomLeftHandle.style, { left: handleXOffset, bottom: handleYOffset });
19284
- }
19285
- }, {
19286
- key: 'setCursor',
19287
- value: function setCursor(value) {
19288
- if (document.body) {
19289
- document.body.style.cursor = value;
19290
- }
19270
+ return box;
19271
+ }
19272
+ }, {
19273
+ key: 'repositionHandles',
19274
+ value: function repositionHandles(handleStyle) {
19275
+ var handleXOffset = '0px';
19276
+ var handleYOffset = '0px';
19277
+ if (handleStyle) {
19278
+ if (handleStyle.width) {
19279
+ handleXOffset = -parseFloat(handleStyle.width) / 2 + 'px';
19280
+ }
19281
+ if (handleStyle.height) {
19282
+ handleYOffset = -parseFloat(handleStyle.height) / 2 + 'px';
19283
+ }
19284
+ }
19291
19285
 
19292
- if (this.formatter.currentSpec) {
19293
- var target = this.formatter.currentSpec.getOverlayElement();
19294
- if (target) {
19295
- target.style.cursor = value;
19296
- }
19297
- }
19298
- }
19299
- }]);
19286
+ Object.assign(this.topLeftHandle.style, { left: handleXOffset, top: handleYOffset });
19287
+ Object.assign(this.topRightHandle.style, { right: handleXOffset, top: handleYOffset });
19288
+ Object.assign(this.bottomRightHandle.style, { right: handleXOffset, bottom: handleYOffset });
19289
+ Object.assign(this.bottomLeftHandle.style, { left: handleXOffset, bottom: handleYOffset });
19290
+ }
19291
+ }, {
19292
+ key: 'setCursor',
19293
+ value: function setCursor(value) {
19294
+ if (document.body) {
19295
+ document.body.style.cursor = value;
19296
+ }
19300
19297
 
19301
- return ResizeAction;
19302
- }(_Action3.default);
19298
+ if (this.formatter.currentSpec) {
19299
+ var target = this.formatter.currentSpec.getOverlayElement();
19300
+ if (target) {
19301
+ target.style.cursor = value;
19302
+ }
19303
+ }
19304
+ }
19305
+ }]);
19303
19306
 
19304
- ResizeAction$1.default = ResizeAction;
19307
+ return ResizeAction;
19308
+ }(_Action3.default);
19309
+
19310
+ ResizeAction.default = ResizeAction$1;
19311
+ return ResizeAction;
19312
+ }
19305
19313
 
19306
19314
  var DeleteAction = {};
19307
19315
 
@@ -19408,7 +19416,7 @@ function requireBlotSpec () {
19408
19416
 
19409
19417
  var _AlignAction2 = _interopRequireDefault(_AlignAction);
19410
19418
 
19411
- var _ResizeAction = ResizeAction$1;
19419
+ var _ResizeAction = requireResizeAction();
19412
19420
 
19413
19421
  var _ResizeAction2 = _interopRequireDefault(_ResizeAction);
19414
19422
 
@@ -19901,7 +19909,7 @@ function requireOptions () {
19901
19909
  }
19902
19910
  });
19903
19911
 
19904
- var _ResizeAction = ResizeAction$1;
19912
+ var _ResizeAction = requireResizeAction();
19905
19913
 
19906
19914
  Object.defineProperty(exports, 'ResizeAction', {
19907
19915
  enumerable: true,
@@ -19976,6 +19984,12 @@ const QuillEditor = defineComponent({
19976
19984
  placeholder: {
19977
19985
  type: String,
19978
19986
  required: false,
19987
+ default: "请输入内容"
19988
+ },
19989
+ minHeight: {
19990
+ type: Number,
19991
+ required: false,
19992
+ default: 90,
19979
19993
  },
19980
19994
  theme: {
19981
19995
  type: String,
@@ -20057,15 +20071,8 @@ const QuillEditor = defineComponent({
20057
20071
  toolbar.style.display = 'none';
20058
20072
  }
20059
20073
  const icons = Quill.import('ui/icons');
20060
- icons['ocr'] = `
20061
- <svg viewBox="0 0 18 18">
20062
- <path d="M3 3h12v12H3z" fill="none" stroke="currentColor" stroke-width="1.5"/>
20063
- <path d="M6 7h6M6 9h6M6 11h4" stroke="currentColor" stroke-width="1"/>
20064
- </svg>
20065
- `;
20066
- icons['custom-button'] = `
20067
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="18" height="18" viewBox="0 0 18 18"><defs><clipPath id="master_svg0_6759_139354"><rect x="0" y="0" width="18" height="18" rx="0"/></clipPath></defs><g clip-path="url(#master_svg0_6759_139354)"><g><path d="M15.423694,15.049834L15.424264,15.049264Q15.508656,14.964872,15.554328,14.85461Q15.6,14.744348,15.6,14.625Q15.6,14.565905,15.58847,14.507944Q15.576942,14.449986,15.554328,14.395388Q15.531713,14.340792,15.498882,14.291656Q15.466051,14.242521,15.424265,14.200735Q15.382479,14.158949,15.333343,14.126117Q15.284206,14.093286,15.229609,14.070671Q15.175013,14.048058,15.117053,14.036528Q15.059094,14.025,15,14.025Q14.880652,14.025,14.77039,14.070672Q14.660128,14.116344,14.575736,14.200736L13.626472,15.150001L4.4485275,15.150001L10.174264,9.424264Q10.2160501,9.3824773,10.2488813,9.3333416Q10.281712500000001,9.2842059,10.304327,9.229609499999999Q10.3269415,9.175012599999999,10.3384705,9.117054Q10.349999,9.0590944,10.349999,8.999999500000001Q10.349999,8.9409046,10.3384705,8.8829451Q10.3269415,8.8249855,10.304327,8.7703896Q10.281712500000001,8.715793099999999,10.2488813,8.6666574Q10.2160501,8.6175222,10.174264,8.575736L4.4485282,2.85000002L13.626472,2.85000002L14.575395,3.7989223L14.575736,3.7992642Q14.660127,3.8836554999999997,14.77039,3.9293277Q14.880651,3.9749999000000003,15,3.975Q15.059094,3.9749999000000003,15.117054,3.9634712Q15.175013,3.9519422,15.229609,3.9293275999999997Q15.284206,3.906713,15.333342,3.8738817Q15.382478,3.8410504000000003,15.424264,3.7992641000000003Q15.466051,3.7574776,15.498882,3.7083421000000003Q15.531713,3.6592064,15.554328,3.60461Q15.576942,3.5500134,15.588472,3.4920541Q15.6,3.4340948,15.6,3.375Q15.6,3.2556524,15.554328,3.1453898000000002Q15.508656,3.03512704,15.424264,2.9507357499999998L15.423856,2.9503274L14.299264,1.82573593Q14.214872,1.7413445699999999,14.10461,1.69567227Q13.994347,1.64999998,13.875,1.64999998L3,1.64999998Q2.88065257,1.64999998,2.77038994,1.69567227Q2.66012731,1.7413445699999999,2.57573593,1.82573593Q2.53394958,1.8675223,2.50111824,1.91665789Q2.46828693,1.96579346,2.44567233,2.02038996Q2.42305773,2.07498647,2.41152894,2.13294582Q2.4000000999999997,2.190905161,2.40000004,2.25Q2.4000000999999997,2.309094839,2.41152889,2.36705418Q2.42305773,2.42501353,2.44567233,2.47961004Q2.46828693,2.53420654,2.50111827,2.58334213Q2.53394958,2.6324777,2.57573593,2.67426407L8.9014721,9L2.57573593,15.325736Q2.49134457,15.410126,2.44567227,15.520389Q2.39999998,15.630651,2.39999998,15.75Q2.39999998,15.809094,2.41152883,15.867053Q2.42305768,15.925013,2.44567233,15.979609Q2.46828693,16.034204000000003,2.50111827,16.08334Q2.53394958,16.132476,2.57573593,16.174263Q2.6175223,16.216048999999998,2.66665787,16.24888Q2.71579343,16.281712,2.77038994,16.304327Q2.82498646,16.326940999999998,2.88294581,16.33847Q2.940905157,16.349998,3,16.349999L13.875,16.349999Q13.994347,16.349998,14.104609,16.304326Q14.214872,16.258654,14.299264,16.174264L15.423694,15.049834Z" fill-rule="evenodd" fill="#333333" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g></svg>
20068
- `;
20074
+ icons['ocr'] = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="18" height="18" viewBox="0 0 18 18"><g><g style="opacity:0;"><rect x="0" y="0" width="18" height="18" rx="0" fill="#FFFFFF" fill-opacity="1"/></g><g><path d="M3.0000245140625,2.6000244140625L5.5000243140625,2.6000244140625C5.8313951140625,2.6000244140625,6.1000242140625,2.3313953240625,6.1000242140625,2.0000244340625C6.1000242140625,1.6686535440624999,5.8313951140625,1.4000244140625,5.5000243140625,1.4000244140625L3.0000245140625,1.4000244140625Q2.3372827740625,1.4000244140625,1.8686535940625,1.8686535940625Q1.4000244140625,2.3372827740625,1.4000244140625,3.0000245140625L1.4000244140625,5.5000243140625C1.4000244140625,5.8313951140625,1.6686535440624999,6.1000242140625,2.0000244340625,6.1000242140625C2.3313953240625,6.1000242140625,2.6000244140625,5.8313951140625,2.6000244140625,5.5000243140625L2.6000244140625,3.0000245140625Q2.6000244140625,2.6000244140625,3.0000245140625,2.6000244140625ZM12.5000244140625,1.4000244140625L15.0000244140625,1.4000244140625Q15.6627664140625,1.4000244140625,16.1313954140625,1.8686538940625Q16.6000244140625,2.3372834940625,16.6000244140625,3.0000245140625L16.6000244140625,5.5000243140625C16.6000244140625,5.6591539140625,16.5368104140625,5.8117661140625,16.424288414062502,5.9242883140625C16.3117674140625,6.0368099140625,16.1591544140625,6.1000242140625,16.0000244140625,6.1000242140625C15.6686534140625,6.1000242140625,15.4000244140625,5.8313951140625,15.4000244140625,5.5000243140625L15.4000234140625,3.0000245140625Q15.4000234140625,2.6000244140625,15.0000244140625,2.6000244140625L12.5000244140625,2.6000244140625C12.1686534140625,2.6000244140625,11.9000244140625,2.3313953240625,11.9000244140625,2.0000244340625C11.9000244140625,1.6686535440624999,12.1686534140625,1.4000244140625,12.5000244140625,1.4000244140625ZM8.6239776140625,6.4719930140625C8.5439777140625,6.1512432140625,8.3999777140625,5.7421179140625,8.2479777140625,5.4212432140625L9.4959774140625,5.052368214062501C9.6959782140625,5.4293680140625,9.9199772140625,5.9346180140625,9.9999771140625,6.2714929140625L9.3519778140625,6.4719930140625L12.7119784140625,6.4719930140625L12.7119784140625,7.6079931140625L11.5039774140625,7.6079931140625C11.1279774140625,8.6968679140625,10.6159782140625,9.6014929140625,9.9599781140625,10.3461180140625C10.7599773140625,10.9224930140625,11.7279774140625,11.3468685140625,12.8879774140625,11.6029934140625C12.6239774140625,11.8592434140625,12.2799774140625,12.3716184140625,12.1039784140625,12.6918684140625C10.8719778140625,12.3716184140625,9.8719778140625,11.8752434140625,9.0479779140625,11.2107429140625C8.175977714062501,11.8992434140625,7.1199779140625,12.4036184140625,5.8559775140625,12.7558684140625C5.7279777140625,12.4757434140625,5.3759775140625,11.9312434140625,5.1519775140625,11.6591184140625C6.3759775140625,11.3868685140625,7.3839779140625,10.9706182140625,8.1839781140625,10.3781185140625C7.5199776140625,9.6094932140625,7.0079775140625,8.6888685140625,6.5919776140625,7.6079931140625L5.3279776140625,7.6079931140625L5.3279776140625,6.4719930140625L8.6239776140625,6.4719930140625ZM7.7999778140625,7.6079931140625C8.1119776140625,8.344617814062499,8.5359778140625,9.0011186140625,9.0719776140625,9.5694933140625C9.5439777140625,9.0251179140625,9.9199772140625,8.3766184140625,10.1919784140625,7.6079931140625L7.7999778140625,7.6079931140625ZM2.6000244140625,12.5000244140625L2.6000244140625,15.0000244140625Q2.6000244140625,15.4000234140625,3.0000245140625,15.4000234140625L5.5000243140625,15.4000234140625C5.8313951140625,15.4000244140625,6.1000242140625,15.6686534140625,6.1000242140625,16.0000244140625C6.1000242140625,16.3313964140625,5.8313951140625,16.6000254140625,5.5000243140625,16.6000254140625L5.4989548140625,16.6000244140625L3.0000245140625,16.6000244140625Q2.3372834940625,16.6000244140625,1.8686538940625,16.1313954140625Q1.4000244140625,15.6627664140625,1.4000244140625,15.0000244140625L1.4000244140625,12.5000244140625C1.4000244140625,12.1686534140625,1.6686535440624999,11.9000244140625,2.0000244340625,11.9000244140625C2.3313953240625,11.9000244140625,2.6000244140625,12.1686534140625,2.6000244140625,12.5000244140625ZM16.6000244140625,12.5010944140625L16.6000244140625,15.0000244140625Q16.6000244140625,15.6627654140625,16.1313954140625,16.1313954140625Q15.6627654140625,16.6000244140625,15.0000244140625,16.6000244140625L12.5000244140625,16.6000244140625C12.3408944140625,16.6000244140625,12.1882824140625,16.5368104140625,12.0757594140625,16.424288414062502C11.9632384140625,16.3117664140625,11.9000244140625,16.1591544140625,11.9000244140625,16.0000244140625C11.9000244140625,15.6686534140625,12.1686534140625,15.4000244140625,12.5000244140625,15.4000244140625L15.0000244140625,15.4000234140625Q15.4000234140625,15.4000234140625,15.4000234140625,15.0000244140625L15.4000234140625,12.5000244140625C15.4000244140625,12.1686534140625,15.6686534140625,11.9000244140625,16.0000244140625,11.9000244140625C16.3313964140625,11.9000244140625,16.6000254140625,12.1686534140625,16.6000254140625,12.5000244140625L16.6000244140625,12.5010944140625Z" fill-rule="evenodd" fill="#333333" fill-opacity="1"/></g></g></svg>`;
20075
+ icons['math'] = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="18" height="18" viewBox="0 0 18 18"><defs><clipPath id="master_svg0_6759_139354"><rect x="0" y="0" width="18" height="18" rx="0"/></clipPath></defs><g clip-path="url(#master_svg0_6759_139354)"><g><path d="M15.423694,15.049834L15.424264,15.049264Q15.508656,14.964872,15.554328,14.85461Q15.6,14.744348,15.6,14.625Q15.6,14.565905,15.58847,14.507944Q15.576942,14.449986,15.554328,14.395388Q15.531713,14.340792,15.498882,14.291656Q15.466051,14.242521,15.424265,14.200735Q15.382479,14.158949,15.333343,14.126117Q15.284206,14.093286,15.229609,14.070671Q15.175013,14.048058,15.117053,14.036528Q15.059094,14.025,15,14.025Q14.880652,14.025,14.77039,14.070672Q14.660128,14.116344,14.575736,14.200736L13.626472,15.150001L4.4485275,15.150001L10.174264,9.424264Q10.2160501,9.3824773,10.2488813,9.3333416Q10.281712500000001,9.2842059,10.304327,9.229609499999999Q10.3269415,9.175012599999999,10.3384705,9.117054Q10.349999,9.0590944,10.349999,8.999999500000001Q10.349999,8.9409046,10.3384705,8.8829451Q10.3269415,8.8249855,10.304327,8.7703896Q10.281712500000001,8.715793099999999,10.2488813,8.6666574Q10.2160501,8.6175222,10.174264,8.575736L4.4485282,2.85000002L13.626472,2.85000002L14.575395,3.7989223L14.575736,3.7992642Q14.660127,3.8836554999999997,14.77039,3.9293277Q14.880651,3.9749999000000003,15,3.975Q15.059094,3.9749999000000003,15.117054,3.9634712Q15.175013,3.9519422,15.229609,3.9293275999999997Q15.284206,3.906713,15.333342,3.8738817Q15.382478,3.8410504000000003,15.424264,3.7992641000000003Q15.466051,3.7574776,15.498882,3.7083421000000003Q15.531713,3.6592064,15.554328,3.60461Q15.576942,3.5500134,15.588472,3.4920541Q15.6,3.4340948,15.6,3.375Q15.6,3.2556524,15.554328,3.1453898000000002Q15.508656,3.03512704,15.424264,2.9507357499999998L15.423856,2.9503274L14.299264,1.82573593Q14.214872,1.7413445699999999,14.10461,1.69567227Q13.994347,1.64999998,13.875,1.64999998L3,1.64999998Q2.88065257,1.64999998,2.77038994,1.69567227Q2.66012731,1.7413445699999999,2.57573593,1.82573593Q2.53394958,1.8675223,2.50111824,1.91665789Q2.46828693,1.96579346,2.44567233,2.02038996Q2.42305773,2.07498647,2.41152894,2.13294582Q2.4000000999999997,2.190905161,2.40000004,2.25Q2.4000000999999997,2.309094839,2.41152889,2.36705418Q2.42305773,2.42501353,2.44567233,2.47961004Q2.46828693,2.53420654,2.50111827,2.58334213Q2.53394958,2.6324777,2.57573593,2.67426407L8.9014721,9L2.57573593,15.325736Q2.49134457,15.410126,2.44567227,15.520389Q2.39999998,15.630651,2.39999998,15.75Q2.39999998,15.809094,2.41152883,15.867053Q2.42305768,15.925013,2.44567233,15.979609Q2.46828693,16.034204000000003,2.50111827,16.08334Q2.53394958,16.132476,2.57573593,16.174263Q2.6175223,16.216048999999998,2.66665787,16.24888Q2.71579343,16.281712,2.77038994,16.304327Q2.82498646,16.326940999999998,2.88294581,16.33847Q2.940905157,16.349998,3,16.349999L13.875,16.349999Q13.994347,16.349998,14.104609,16.304326Q14.214872,16.258654,14.299264,16.174264L15.423694,15.049834Z" fill-rule="evenodd" fill="#333333" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g></svg>`;
20069
20076
  options = composeOptions();
20070
20077
  // Register modules
20071
20078
  if (props.modules) {
@@ -20114,7 +20121,7 @@ const QuillEditor = defineComponent({
20114
20121
  container: [
20115
20122
  ...toolbarOptions.full,
20116
20123
  ['ocr'],
20117
- [{ 'custom-button': true }], // 自定义按钮
20124
+ [{ 'math': true }], // 自定义按钮
20118
20125
  ],
20119
20126
  handlers: {
20120
20127
  ocr: function () {
@@ -20188,7 +20195,7 @@ const QuillEditor = defineComponent({
20188
20195
  const toolbar = (_a = quill === null || quill === void 0 ? void 0 : quill.getModule('toolbar')) === null || _a === void 0 ? void 0 : _a.container;
20189
20196
  if (toolbar) {
20190
20197
  if (isEditorFocus.value) {
20191
- toolbar.style.display = 'block';
20198
+ toolbar.style.display = 'flex';
20192
20199
  }
20193
20200
  else {
20194
20201
  toolbar.style.display = 'none';
@@ -20323,8 +20330,10 @@ const QuillEditor = defineComponent({
20323
20330
  render() {
20324
20331
  var _a, _b;
20325
20332
  return [
20326
- (_b = (_a = this.$slots).toolbar) === null || _b === void 0 ? void 0 : _b.call(_a),
20327
- h('div', { ref: 'editor', ...this.$attrs }),
20333
+ h('div', { class: 'quill-editor-container', style: { minHeight: `${this.$props.minHeight}px` } }, [
20334
+ (_b = (_a = this.$slots).toolbar) === null || _b === void 0 ? void 0 : _b.call(_a),
20335
+ h('div', { ref: 'editor', ...this.$attrs }),
20336
+ ]),
20328
20337
  ];
20329
20338
  },
20330
20339
  });