eoss-ui 0.4.40 → 0.4.42

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.
Files changed (72) hide show
  1. package/lib/button-group.js +40 -13
  2. package/lib/button.js +35 -8
  3. package/lib/checkbox-group.js +35 -8
  4. package/lib/data-table-form.js +35 -8
  5. package/lib/data-table.js +97 -34
  6. package/lib/date-picker.js +35 -8
  7. package/lib/dialog.js +52 -39
  8. package/lib/editor.js +659 -1353
  9. package/lib/eoss-ui.common.js +10828 -10451
  10. package/lib/flow-group.js +37 -26
  11. package/lib/flow-list.js +35 -8
  12. package/lib/flow.js +164 -56
  13. package/lib/form.js +10081 -9075
  14. package/lib/handle-user.js +39 -12
  15. package/lib/handler.js +35 -8
  16. package/lib/icons.js +2 -2
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +35 -8
  19. package/lib/input.js +35 -8
  20. package/lib/login.js +35 -8
  21. package/lib/main.js +35 -8
  22. package/lib/mainComp.js +35 -8
  23. package/lib/nav.js +35 -8
  24. package/lib/page.js +35 -8
  25. package/lib/player.js +37 -10
  26. package/lib/qr-code.js +35 -8
  27. package/lib/radio-group.js +35 -8
  28. package/lib/select-ganged.js +35 -8
  29. package/lib/select.js +35 -8
  30. package/lib/selector-panel.js +37 -10
  31. package/lib/selector.js +37 -10
  32. package/lib/sizer.js +35 -8
  33. package/lib/steps.js +35 -8
  34. package/lib/switch.js +35 -8
  35. package/lib/table-form.js +48 -13
  36. package/lib/tabs.js +40 -36
  37. package/lib/theme-chalk/editor.css +1 -1
  38. package/lib/theme-chalk/index.css +1 -1
  39. package/lib/tips.js +35 -8
  40. package/lib/tree-group.js +39 -21
  41. package/lib/tree.js +35 -8
  42. package/lib/upload.js +43 -14
  43. package/lib/utils/util.js +35 -8
  44. package/lib/wujie.js +35 -8
  45. package/lib/wxlogin.js +35 -8
  46. package/package.json +3 -1
  47. package/packages/button-group/src/main.vue +3 -3
  48. package/packages/data-table/src/column.vue +6 -0
  49. package/packages/data-table/src/main.vue +12 -0
  50. package/packages/dialog/src/main.vue +3 -11
  51. package/packages/editor/src/editor.vue +25 -0
  52. package/packages/editor/src/main.vue +6 -2
  53. package/packages/editor/src/minx.js +16 -8
  54. package/packages/editor/src/toolbar.vue +71 -349
  55. package/packages/flow/src/component/CommonOpinions.vue +29 -11
  56. package/packages/flow/src/component/CustomPreset.vue +5 -1
  57. package/packages/flow/src/component/Preset.vue +5 -1
  58. package/packages/flow/src/main.vue +21 -1
  59. package/packages/flow/src/processForm.vue +17 -10
  60. package/packages/flow/src/selectUser.vue +9 -2
  61. package/packages/flow-group/src/main.vue +0 -8
  62. package/packages/form/src/main.vue +1519 -1462
  63. package/packages/form/src/table.vue +8 -0
  64. package/packages/handle-user/src/main.vue +2 -2
  65. package/packages/tabs/src/main.vue +1 -10
  66. package/packages/theme-chalk/lib/editor.css +1 -1
  67. package/packages/theme-chalk/lib/index.css +1 -1
  68. package/packages/theme-chalk/src/editor.scss +30 -0
  69. package/packages/tree-group/src/main.vue +0 -2
  70. package/packages/upload/src/main.vue +3 -1
  71. package/src/index.js +1 -1
  72. package/src/utils/util.js +41 -8
package/lib/editor.js CHANGED
@@ -94,13 +94,6 @@ module.exports = require("@wangeditor/editor-for-vue");
94
94
 
95
95
  /***/ }),
96
96
 
97
- /***/ 19:
98
- /***/ (function(module, exports) {
99
-
100
- module.exports = require("@wangeditor/editor/dist/css/style.css?vue&type=style&index=0&prod&lang=css&");
101
-
102
- /***/ }),
103
-
104
97
  /***/ 2:
105
98
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
99
 
@@ -204,6 +197,13 @@ function normalizeComponent(
204
197
  }
205
198
 
206
199
 
200
+ /***/ }),
201
+
202
+ /***/ 24:
203
+ /***/ (function(module, exports) {
204
+
205
+ module.exports = require("@wangeditor/editor/dist/css/style.css?vue&type=style&index=0&prod&lang=css&");
206
+
207
207
  /***/ }),
208
208
 
209
209
  /***/ 32:
@@ -213,7 +213,7 @@ function normalizeComponent(
213
213
  // ESM COMPAT FLAG
214
214
  __webpack_require__.r(__webpack_exports__);
215
215
 
216
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/editor/src/main.vue?vue&type=template&id=250d187c&
216
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/editor/src/main.vue?vue&type=template&id=036ae25c&
217
217
  var render = function () {
218
218
  var _vm = this
219
219
  var _h = _vm.$createElement
@@ -230,7 +230,18 @@ var render = function () {
230
230
  })
231
231
  : [
232
232
  _vm.cs
233
- ? _c("Toolbars")
233
+ ? [
234
+ _c("Toolbars"),
235
+ _c("Editors", {
236
+ model: {
237
+ value: _vm.model,
238
+ callback: function ($$v) {
239
+ _vm.model = $$v
240
+ },
241
+ expression: "model",
242
+ },
243
+ }),
244
+ ]
234
245
  : [
235
246
  _c("Toolbar", {
236
247
  staticClass: "es-editor-toolbar",
@@ -263,13 +274,13 @@ var staticRenderFns = []
263
274
  render._withStripped = true
264
275
 
265
276
 
266
- // CONCATENATED MODULE: ./packages/editor/src/main.vue?vue&type=template&id=250d187c&
277
+ // CONCATENATED MODULE: ./packages/editor/src/main.vue?vue&type=template&id=036ae25c&
267
278
 
268
279
  // EXTERNAL MODULE: external "@wangeditor/editor-for-vue"
269
280
  var editor_for_vue_ = __webpack_require__(17);
270
281
 
271
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/editor/src/toolbar.vue?vue&type=template&id=2bbb7390&
272
- var toolbarvue_type_template_id_2bbb7390_render = function () {
282
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/editor/src/toolbar.vue?vue&type=template&id=1ddba256&
283
+ var toolbarvue_type_template_id_1ddba256_render = function () {
273
284
  var _vm = this
274
285
  var _h = _vm.$createElement
275
286
  var _c = _vm._self._c || _h
@@ -278,190 +289,302 @@ var toolbarvue_type_template_id_2bbb7390_render = function () {
278
289
  { staticClass: "es-editor-toolbar" },
279
290
  [
280
291
  _vm._l(_vm.contents, function (items, indexs) {
281
- return _c(
282
- "div",
283
- { key: indexs },
284
- _vm._l(items, function (item, index) {
285
- return _c(
286
- "div",
287
- { key: index, staticClass: "es-editor-toolbar-item" },
288
- [
289
- item.dropdown && item.dropdown.length
290
- ? _c(
291
- "el-dropdown",
292
- {
293
- attrs: { placement: "bottom", trigger: item.trigger },
294
- on: {
295
- command: function (res) {
296
- _vm.handleCommand("tag", res)
297
- },
292
+ return _vm._l(items, function (item, index) {
293
+ return _c(
294
+ "div",
295
+ {
296
+ key: indexs + "_" + index,
297
+ staticClass: "es-editor-toolbar-item",
298
+ class: {
299
+ "es-last":
300
+ index == items.length - 1 && indexs < _vm.contents.length - 1,
301
+ },
302
+ },
303
+ [
304
+ item.dropdown && item.dropdown.length
305
+ ? _c(
306
+ "el-dropdown",
307
+ {
308
+ attrs: { placement: "bottom", trigger: item.trigger },
309
+ on: {
310
+ command: function (res) {
311
+ _vm.handleCommand(item.type, res)
298
312
  },
299
313
  },
300
- [
301
- item.tips
302
- ? _c(
303
- "el-tooltip",
304
- {
305
- attrs: {
306
- effect: "dark",
307
- content: item.tips,
308
- placement: item.placement
309
- ? item.placement
310
- : "bottom",
311
- },
314
+ },
315
+ [
316
+ item.tips
317
+ ? _c(
318
+ "el-tooltip",
319
+ {
320
+ attrs: {
321
+ effect: "dark",
322
+ content: item.tips,
323
+ placement: item.placement
324
+ ? item.placement
325
+ : "bottom",
312
326
  },
313
- [
314
- _c("el-button", { attrs: { size: "small" } }, [
315
- _vm._v("\n " + _vm._s(_vm.tag)),
327
+ },
328
+ [
329
+ _c(
330
+ "el-button",
331
+ {
332
+ staticClass: "es-icon-right",
333
+ attrs: { size: "small" },
334
+ },
335
+ [
336
+ item.path
337
+ ? _c(
338
+ "svg",
339
+ {
340
+ staticClass: "es-icon-svg",
341
+ attrs: { viewBox: "0 0 1024 1024" },
342
+ },
343
+ _vm._l(item.path, function (ele) {
344
+ return _c("path", {
345
+ key: ele,
346
+ attrs: { d: ele },
347
+ })
348
+ }),
349
+ 0
350
+ )
351
+ : _c(
352
+ "span",
353
+ { staticClass: "es-icon-text" },
354
+ [
355
+ _vm._v(
356
+ "\n " +
357
+ _vm._s(item.value) +
358
+ "\n "
359
+ ),
360
+ ]
361
+ ),
316
362
  _c("i", {
317
363
  staticClass:
318
364
  "el-icon-caret-bottom el-icon--right",
319
365
  }),
320
- ]),
321
- ],
322
- 1
323
- )
324
- : _vm._e(),
325
- _c(
326
- "el-dropdown-menu",
327
- { attrs: { slot: "dropdown" }, slot: "dropdown" },
328
- _vm._l(_vm._tags, function (item) {
329
- return _c(
330
- "el-dropdown-item",
331
- {
332
- key: item,
333
- staticClass: "es-editor-dropdown-item",
334
- class: { active: item == _vm.tag },
335
- attrs: { command: item },
366
+ ]
367
+ ),
368
+ ],
369
+ 1
370
+ )
371
+ : _c(
372
+ "el-button",
373
+ {
374
+ staticClass: "es-icon-right",
375
+ attrs: { size: "small" },
376
+ },
377
+ [
378
+ item.path
379
+ ? _c(
380
+ "svg",
381
+ {
382
+ staticClass: "es-icon-svg",
383
+ attrs: { viewBox: "0 0 1024 1024" },
384
+ },
385
+ _vm._l(item.path, function (ele) {
386
+ return _c("path", {
387
+ key: ele,
388
+ attrs: { d: ele },
389
+ })
390
+ }),
391
+ 0
392
+ )
393
+ : _c("span", { staticClass: "es-icon-text" }, [
394
+ _vm._v(
395
+ "\n " +
396
+ _vm._s(item.value) +
397
+ "\n "
398
+ ),
399
+ ]),
400
+ _c("i", {
401
+ staticClass:
402
+ "el-icon-caret-bottom el-icon--right",
403
+ }),
404
+ ]
405
+ ),
406
+ _c(
407
+ "el-dropdown-menu",
408
+ { attrs: { slot: "dropdown" }, slot: "dropdown" },
409
+ _vm._l(item.dropdown, function (ele) {
410
+ return _c(
411
+ "el-dropdown-item",
412
+ {
413
+ key: typeof ele == "string" ? ele : ele.title,
414
+ staticClass: "es-editor-dropdown-item",
415
+ class: { active: ele == item.value },
416
+ attrs: {
417
+ command:
418
+ typeof ele == "string" ? ele : ele.title,
336
419
  },
337
- [_vm._v(_vm._s(item))]
338
- )
339
- }),
340
- 1
341
- ),
342
- ],
343
- 1
344
- )
345
- : _vm._e(),
346
- ],
347
- 1
348
- )
349
- }),
350
- 0
351
- )
352
- }),
353
- _c(
354
- "div",
355
- { staticClass: "es-editor-toolbar-item" },
356
- [
357
- _c(
358
- "el-dropdown",
359
- {
360
- attrs: { placement: "bottom", trigger: "click" },
361
- on: {
362
- command: function (res) {
363
- _vm.handleCommand("tag", res)
364
- },
365
- },
366
- },
367
- [
368
- _c(
369
- "el-tooltip",
370
- {
371
- staticClass: "item",
372
- attrs: {
373
- effect: "dark",
374
- content: "标题",
375
- placement: "bottom",
376
- },
377
- },
378
- [
379
- _c("el-button", { attrs: { size: "small" } }, [
380
- _vm._v("\n " + _vm._s(_vm.tag)),
381
- _c("i", {
382
- staticClass: "el-icon-caret-bottom el-icon--right",
383
- }),
384
- ]),
385
- ],
386
- 1
387
- ),
388
- _c(
389
- "el-dropdown-menu",
390
- { attrs: { slot: "dropdown" }, slot: "dropdown" },
391
- _vm._l(_vm._tags, function (item) {
392
- return _c(
393
- "el-dropdown-item",
420
+ },
421
+ [
422
+ typeof ele == "string"
423
+ ? [_vm._v(_vm._s(ele))]
424
+ : [
425
+ ele.path
426
+ ? _c(
427
+ "svg",
428
+ {
429
+ staticClass: "es-icon-svg",
430
+ attrs: { viewBox: "0 0 1024 1024" },
431
+ },
432
+ _vm._l(ele.path, function (path) {
433
+ return _c("path", {
434
+ key: path,
435
+ attrs: { d: path },
436
+ })
437
+ }),
438
+ 0
439
+ )
440
+ : _vm._e(),
441
+ _c("span", { staticClass: "title" }, [
442
+ _vm._v(_vm._s(ele.title)),
443
+ ]),
444
+ ],
445
+ ],
446
+ 2
447
+ )
448
+ }),
449
+ 1
450
+ ),
451
+ ],
452
+ 1
453
+ )
454
+ : item.tips
455
+ ? _c(
456
+ "el-tooltip",
394
457
  {
395
- key: item,
396
- staticClass: "es-editor-dropdown-item",
397
- class: { active: item == _vm.tag },
398
- attrs: { command: item },
458
+ attrs: {
459
+ effect: "dark",
460
+ content: item.tips,
461
+ placement: "bottom",
462
+ },
399
463
  },
400
- [_vm._v(_vm._s(item))]
464
+ [
465
+ _c(
466
+ "el-button",
467
+ {
468
+ class: { "es-icon-right": item.popover },
469
+ attrs: { size: "small" },
470
+ },
471
+ [
472
+ item.path
473
+ ? _c(
474
+ "svg",
475
+ {
476
+ staticClass: "es-icon-svg",
477
+ attrs: {
478
+ viewBox: item.viewBox
479
+ ? item.viewBox
480
+ : "0 0 1024 1024",
481
+ },
482
+ },
483
+ _vm._l(item.path, function (ele) {
484
+ return _c("path", {
485
+ key: ele,
486
+ attrs: { d: ele },
487
+ })
488
+ }),
489
+ 0
490
+ )
491
+ : _c("span", { staticClass: "es-icon-text" }, [
492
+ _vm._v(
493
+ "\n " +
494
+ _vm._s(item.value) +
495
+ "\n "
496
+ ),
497
+ ]),
498
+ item.popover
499
+ ? _c("i", {
500
+ staticClass:
501
+ "el-icon-caret-bottom el-icon--right",
502
+ })
503
+ : _vm._e(),
504
+ ]
505
+ ),
506
+ ],
507
+ 1
401
508
  )
402
- }),
403
- 1
404
- ),
405
- ],
406
- 1
407
- ),
408
- ],
409
- 1
410
- ),
411
- _c(
412
- "div",
413
- { staticClass: "es-editor-toolbar-item" },
414
- [
415
- _c(
416
- "el-tooltip",
417
- {
418
- staticClass: "item",
419
- attrs: { effect: "dark", content: "引用", placement: "bottom" },
420
- },
421
- [
422
- _c("el-button", { attrs: { size: "small" } }, [
423
- _c(
424
- "svg",
425
- {
426
- staticClass: "es-icon-svg",
427
- attrs: { viewBox: "0 0 1024 1024" },
428
- },
429
- [
430
- _c("path", {
509
+ : item.colors
510
+ ? _c(
511
+ "Colors",
512
+ {
431
513
  attrs: {
432
- d: "M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z",
514
+ tips: item.colors.tips,
515
+ title: item.colors.title,
433
516
  },
434
- }),
435
- ]
436
- ),
437
- ]),
517
+ on: { select: _vm.selectColor },
518
+ },
519
+ [
520
+ item.path
521
+ ? _c(
522
+ "svg",
523
+ {
524
+ staticClass: "es-icon-svg",
525
+ attrs: { viewBox: "0 0 1024 1024" },
526
+ },
527
+ _vm._l(item.path, function (ele) {
528
+ return _c("path", { key: ele, attrs: { d: ele } })
529
+ }),
530
+ 0
531
+ )
532
+ : _vm._e(),
533
+ ]
534
+ )
535
+ : _vm._e(),
438
536
  ],
439
537
  1
440
- ),
441
- ],
442
- 1
443
- ),
538
+ )
539
+ })
540
+ }),
541
+ ],
542
+ 2
543
+ )
544
+ }
545
+ var toolbarvue_type_template_id_1ddba256_staticRenderFns = []
546
+ toolbarvue_type_template_id_1ddba256_render._withStripped = true
547
+
548
+
549
+ // CONCATENATED MODULE: ./packages/editor/src/toolbar.vue?vue&type=template&id=1ddba256&
550
+
551
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/editor/src/color.vue?vue&type=template&id=2a807a98&
552
+ var colorvue_type_template_id_2a807a98_render = function () {
553
+ var _vm = this
554
+ var _h = _vm.$createElement
555
+ var _c = _vm._self._c || _h
556
+ return _c(
557
+ "el-popover",
558
+ {
559
+ attrs: { placement: "bottom", width: "256" },
560
+ model: {
561
+ value: _vm.visible,
562
+ callback: function ($$v) {
563
+ _vm.visible = $$v
564
+ },
565
+ expression: "visible",
566
+ },
567
+ },
568
+ [
444
569
  _c(
445
- "div",
446
- { staticClass: "es-editor-toolbar-item" },
570
+ "el-tooltip",
571
+ {
572
+ staticClass: "item",
573
+ attrs: {
574
+ slot: "reference",
575
+ effect: "dark",
576
+ disabled: _vm.disabled,
577
+ content: _vm.tips,
578
+ placement: "bottom",
579
+ },
580
+ slot: "reference",
581
+ },
447
582
  [
448
583
  _c(
449
- "el-tooltip",
450
- {
451
- staticClass: "item",
452
- attrs: { effect: "dark", content: "粗体", placement: "bottom" },
453
- },
584
+ "el-button",
585
+ { attrs: { size: "small" } },
454
586
  [
455
- _c(
456
- "div",
457
- {
458
- staticClass: "es-text-center",
459
- attrs: { slot: "content" },
460
- slot: "content",
461
- },
462
- [_vm._v("粗体"), _c("br"), _vm._v("ctrl+b")]
463
- ),
464
- _c("el-button", { attrs: { size: "small" } }, [
587
+ _vm._t("default", [
465
588
  _c(
466
589
  "svg",
467
590
  {
@@ -471,1171 +594,88 @@ var toolbarvue_type_template_id_2bbb7390_render = function () {
471
594
  [
472
595
  _c("path", {
473
596
  attrs: {
474
- d: "M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z",
597
+ d: "M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z",
475
598
  },
476
599
  }),
477
600
  ]
478
601
  ),
479
602
  ]),
603
+ _c("i", { staticClass: "el-icon-caret-bottom el-icon--right" }),
480
604
  ],
481
- 1
605
+ 2
482
606
  ),
483
607
  ],
484
608
  1
485
609
  ),
486
610
  _c(
487
- "div",
488
- { staticClass: "es-editor-toolbar-item" },
611
+ "ul",
612
+ { staticClass: "es-editor-color" },
489
613
  [
490
614
  _c(
491
- "el-tooltip",
615
+ "li",
492
616
  {
493
- staticClass: "item",
494
- attrs: { effect: "dark", content: "下划线", placement: "bottom" },
617
+ staticClass: "es-editor-color-clear",
618
+ on: {
619
+ click: function ($event) {
620
+ $event.stopPropagation()
621
+ return _vm.handleClick($event)
622
+ },
623
+ },
495
624
  },
496
625
  [
497
626
  _c(
498
- "div",
627
+ "svg",
499
628
  {
500
- staticClass: "es-text-center",
501
- attrs: { slot: "content" },
502
- slot: "content",
629
+ staticClass: "es-icon-svg",
630
+ attrs: { viewBox: "0 0 1024 1024" },
503
631
  },
504
- [_vm._v("下划线 "), _c("br"), _vm._v("ctrl+u")]
632
+ [
633
+ _c("path", {
634
+ attrs: {
635
+ d: "M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z",
636
+ },
637
+ }),
638
+ ]
505
639
  ),
506
- _c("el-button", { attrs: { size: "small" } }, [
507
- _c(
508
- "svg",
509
- {
510
- staticClass: "es-icon-svg",
511
- attrs: { viewBox: "0 0 1024 1024" },
512
- },
513
- [
514
- _c("path", {
515
- attrs: {
516
- d: "M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z",
517
- },
518
- }),
519
- ]
520
- ),
521
- ]),
522
- ],
523
- 1
640
+ _vm._v("\n " + _vm._s(_vm.title) + "\n "),
641
+ ]
524
642
  ),
643
+ _vm._l(_vm.colors, function (item) {
644
+ return _c(
645
+ "li",
646
+ {
647
+ key: item,
648
+ staticClass: "es-editor-color-item",
649
+ class: { active: _vm.active == item },
650
+ on: {
651
+ click: function ($event) {
652
+ $event.stopPropagation()
653
+ _vm.handleClick(item)
654
+ },
655
+ },
656
+ },
657
+ [
658
+ _c("div", {
659
+ staticClass: "es-editor-color-block",
660
+ style: { "background-color": item },
661
+ }),
662
+ ]
663
+ )
664
+ }),
525
665
  ],
526
- 1
666
+ 2
527
667
  ),
528
- _c(
529
- "div",
530
- { staticClass: "es-editor-toolbar-item" },
531
- [
532
- _c(
533
- "el-tooltip",
534
- {
535
- staticClass: "item",
536
- attrs: { effect: "dark", content: "斜体", placement: "bottom" },
537
- },
538
- [
539
- _c(
540
- "div",
541
- {
542
- staticClass: "es-text-center",
543
- attrs: { slot: "content" },
544
- slot: "content",
545
- },
546
- [_vm._v("斜体"), _c("br"), _vm._v("ctrl+i")]
547
- ),
548
- _c("el-button", { attrs: { size: "small" } }, [
549
- _c(
550
- "svg",
551
- {
552
- staticClass: "es-icon-svg",
553
- attrs: { viewBox: "0 0 1024 1024" },
554
- },
555
- [
556
- _c("path", {
557
- attrs: {
558
- d: "M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z",
559
- },
560
- }),
561
- ]
562
- ),
563
- ]),
564
- ],
565
- 1
566
- ),
567
- ],
568
- 1
569
- ),
570
- _c(
571
- "div",
572
- { staticClass: "es-editor-toolbar-item" },
573
- [
574
- _c(
575
- "el-dropdown",
576
- {
577
- attrs: { placement: "bottom", size: "small" },
578
- on: {
579
- command: function (res) {
580
- _vm.handleCommand("tag", res)
581
- },
582
- },
583
- },
584
- [
585
- _c("el-button", { attrs: { size: "small" } }, [
586
- _c(
587
- "svg",
588
- {
589
- staticClass: "es-icon-svg",
590
- attrs: { viewBox: "0 0 1024 1024" },
591
- },
592
- [
593
- _c("path", {
594
- attrs: {
595
- d: "M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z",
596
- },
597
- }),
598
- _c("path", {
599
- attrs: {
600
- d: "M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z",
601
- },
602
- }),
603
- _c("path", {
604
- attrs: {
605
- d: "M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z",
606
- },
607
- }),
608
- ]
609
- ),
610
- _c("i", { staticClass: "el-icon-caret-bottom el-icon--right" }),
611
- ]),
612
- _c(
613
- "el-dropdown-menu",
614
- { attrs: { slot: "dropdown" }, slot: "dropdown" },
615
- [
616
- _c(
617
- "el-tooltip",
618
- {
619
- staticClass: "item",
620
- attrs: {
621
- effect: "dark",
622
- content: "ctrl+shift+x",
623
- placement: "right",
624
- },
625
- },
626
- [
627
- _c("el-dropdown-item", { attrs: { command: "删除线" } }, [
628
- _c(
629
- "svg",
630
- {
631
- staticClass: "es-icon-svg",
632
- attrs: { viewBox: "0 0 1024 1024" },
633
- },
634
- [
635
- _c("path", {
636
- attrs: {
637
- d: "M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z",
638
- },
639
- }),
640
- ]
641
- ),
642
- _c("span", { staticClass: "title" }, [
643
- _vm._v("删除线"),
644
- ]),
645
- ]),
646
- ],
647
- 1
648
- ),
649
- _c(
650
- "el-tooltip",
651
- {
652
- staticClass: "item",
653
- attrs: {
654
- effect: "dark",
655
- content: "ctrl+e",
656
- placement: "right",
657
- },
658
- },
659
- [
660
- _c(
661
- "el-dropdown-item",
662
- { attrs: { command: "行内代码" } },
663
- [
664
- _c(
665
- "svg",
666
- {
667
- staticClass: "es-icon-svg",
668
- attrs: { viewBox: "0 0 1024 1024" },
669
- },
670
- [
671
- _c("path", {
672
- attrs: {
673
- d: "M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z",
674
- },
675
- }),
676
- ]
677
- ),
678
- _c("span", { staticClass: "title" }, [
679
- _vm._v("行内代码"),
680
- ]),
681
- ]
682
- ),
683
- ],
684
- 1
685
- ),
686
- _c("el-dropdown-item", { attrs: { command: "上标" } }, [
687
- _c(
688
- "svg",
689
- {
690
- staticClass: "es-icon-svg",
691
- attrs: { viewBox: "0 0 1024 1024" },
692
- },
693
- [
694
- _c("path", {
695
- attrs: {
696
- d: "M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z",
697
- },
698
- }),
699
- ]
700
- ),
701
- _c("span", { staticClass: "title" }, [_vm._v("上标")]),
702
- ]),
703
- _c("el-dropdown-item", { attrs: { command: "下标" } }, [
704
- _c(
705
- "svg",
706
- {
707
- staticClass: "es-icon-svg",
708
- attrs: { viewBox: "0 0 1024 1024" },
709
- },
710
- [
711
- _c("path", {
712
- attrs: {
713
- d: "M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z",
714
- },
715
- }),
716
- ]
717
- ),
718
- _c("span", { staticClass: "title" }, [_vm._v("下标")]),
719
- ]),
720
- _c("el-dropdown-item", { attrs: { command: "清除格式" } }, [
721
- _c(
722
- "svg",
723
- {
724
- staticClass: "es-icon-svg",
725
- attrs: { viewBox: "0 0 1024 1024" },
726
- },
727
- [
728
- _c("path", {
729
- attrs: {
730
- d: "M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0",
731
- },
732
- }),
733
- ]
734
- ),
735
- _c("span", { staticClass: "title" }, [_vm._v("清除格式")]),
736
- ]),
737
- ],
738
- 1
739
- ),
740
- ],
741
- 1
742
- ),
743
- ],
744
- 1
745
- ),
746
- _c(
747
- "div",
748
- { staticClass: "es-editor-toolbar-item" },
749
- [
750
- _c("Colors", {
751
- attrs: { tips: "文字颜色" },
752
- on: { select: _vm.selectColor },
753
- }),
754
- ],
755
- 1
756
- ),
757
- _c(
758
- "div",
759
- { staticClass: "es-editor-toolbar-item" },
760
- [
761
- _c(
762
- "Colors",
763
- {
764
- attrs: { tips: "背景颜色", title: "清除背景色" },
765
- on: { select: _vm.selectBgColor },
766
- },
767
- [
768
- _c(
769
- "svg",
770
- {
771
- staticClass: "es-icon-svg",
772
- attrs: { viewBox: "0 0 1024 1024" },
773
- },
774
- [
775
- _c("path", {
776
- attrs: {
777
- d: "M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z",
778
- },
779
- }),
780
- ]
781
- ),
782
- ]
783
- ),
784
- ],
785
- 1
786
- ),
787
- _c(
788
- "div",
789
- { staticClass: "es-editor-toolbar-item" },
790
- [
791
- _c(
792
- "el-dropdown",
793
- {
794
- attrs: { placement: "bottom", trigger: "click" },
795
- on: {
796
- command: function (res) {
797
- _vm.handleCommand("size", res)
798
- },
799
- },
800
- },
801
- [
802
- _c(
803
- "el-tooltip",
804
- {
805
- staticClass: "item",
806
- attrs: {
807
- effect: "dark",
808
- content: "字号",
809
- placement: "bottom",
810
- },
811
- },
812
- [
813
- _c("el-button", { attrs: { size: "small" } }, [
814
- _vm._v("\n " + _vm._s(_vm.fontSize)),
815
- _c("i", {
816
- staticClass: "el-icon-caret-bottom el-icon--right",
817
- }),
818
- ]),
819
- ],
820
- 1
821
- ),
822
- _c(
823
- "el-dropdown-menu",
824
- { attrs: { slot: "dropdown" }, slot: "dropdown" },
825
- _vm._l(_vm._fontSizes, function (item) {
826
- return _c(
827
- "el-dropdown-item",
828
- {
829
- key: item,
830
- staticClass: "es-editor-dropdown-item",
831
- class: { active: item == _vm.fontSize },
832
- attrs: { command: item },
833
- },
834
- [_vm._v(_vm._s(item))]
835
- )
836
- }),
837
- 1
838
- ),
839
- ],
840
- 1
841
- ),
842
- ],
843
- 1
844
- ),
845
- _c(
846
- "div",
847
- { staticClass: "es-editor-toolbar-item" },
848
- [
849
- _c(
850
- "el-dropdown",
851
- {
852
- attrs: { placement: "bottom", trigger: "click" },
853
- on: {
854
- command: function (res) {
855
- _vm.handleCommand("family", res)
856
- },
857
- },
858
- },
859
- [
860
- _c(
861
- "el-tooltip",
862
- {
863
- staticClass: "item",
864
- attrs: {
865
- effect: "dark",
866
- content: "字体",
867
- placement: "bottom",
868
- },
869
- },
870
- [
871
- _c("el-button", { attrs: { size: "small" } }, [
872
- _c(
873
- "svg",
874
- {
875
- staticClass: "es-icon-svg",
876
- attrs: { viewBox: "0 0 1024 1024" },
877
- },
878
- [
879
- _c("path", {
880
- attrs: {
881
- d: "M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z",
882
- },
883
- }),
884
- ]
885
- ),
886
- _vm._v("\n " + _vm._s(_vm.fontFamily)),
887
- _c("i", {
888
- staticClass: "el-icon-caret-bottom el-icon--right",
889
- }),
890
- ]),
891
- ],
892
- 1
893
- ),
894
- _c(
895
- "el-dropdown-menu",
896
- { attrs: { slot: "dropdown" }, slot: "dropdown" },
897
- _vm._l(_vm._fontFamilys, function (item) {
898
- return _c(
899
- "el-dropdown-item",
900
- {
901
- key: item,
902
- staticClass: "es-editor-dropdown-item",
903
- class: { active: item == _vm.fontFamily },
904
- attrs: { command: item },
905
- },
906
- [_vm._v(_vm._s(item))]
907
- )
908
- }),
909
- 1
910
- ),
911
- ],
912
- 1
913
- ),
914
- ],
915
- 1
916
- ),
917
- _c(
918
- "div",
919
- { staticClass: "es-editor-toolbar-item" },
920
- [
921
- _c(
922
- "el-dropdown",
923
- {
924
- attrs: { placement: "bottom", trigger: "click" },
925
- on: {
926
- command: function (res) {
927
- _vm.handleCommand("family", res)
928
- },
929
- },
930
- },
931
- [
932
- _c(
933
- "el-tooltip",
934
- {
935
- staticClass: "item",
936
- attrs: {
937
- effect: "dark",
938
- content: "字体",
939
- placement: "bottom",
940
- },
941
- },
942
- [
943
- _c("el-button", { attrs: { size: "small" } }, [
944
- _vm._v("\n " + _vm._s(_vm.lineHeight)),
945
- _c("i", {
946
- staticClass: "el-icon-caret-bottom el-icon--right",
947
- }),
948
- ]),
949
- ],
950
- 1
951
- ),
952
- _c(
953
- "el-dropdown-menu",
954
- { attrs: { slot: "dropdown" }, slot: "dropdown" },
955
- _vm._l(_vm._lineHeights, function (item) {
956
- return _c(
957
- "el-dropdown-item",
958
- {
959
- key: item,
960
- staticClass: "es-editor-dropdown-item",
961
- class: { active: item == _vm.lineHeight },
962
- attrs: { command: item },
963
- },
964
- [_vm._v(_vm._s(item))]
965
- )
966
- }),
967
- 1
968
- ),
969
- ],
970
- 1
971
- ),
972
- ],
973
- 1
974
- ),
975
- _c(
976
- "div",
977
- { staticClass: "es-editor-toolbar-item" },
978
- [
979
- _c(
980
- "el-tooltip",
981
- {
982
- staticClass: "item",
983
- attrs: {
984
- effect: "dark",
985
- content: "无序列表",
986
- placement: "bottom",
987
- },
988
- },
989
- [
990
- _c("el-button", { attrs: { size: "small" } }, [
991
- _c(
992
- "svg",
993
- {
994
- staticClass: "es-icon-svg",
995
- attrs: { viewBox: "0 0 1024 1024" },
996
- },
997
- [
998
- _c("path", {
999
- attrs: {
1000
- d: "M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z",
1001
- },
1002
- }),
1003
- ]
1004
- ),
1005
- ]),
1006
- ],
1007
- 1
1008
- ),
1009
- ],
1010
- 1
1011
- ),
1012
- _c(
1013
- "div",
1014
- { staticClass: "es-editor-toolbar-item" },
1015
- [
1016
- _c(
1017
- "el-tooltip",
1018
- {
1019
- staticClass: "item",
1020
- attrs: {
1021
- effect: "dark",
1022
- content: "有序列表",
1023
- placement: "bottom",
1024
- },
1025
- },
1026
- [
1027
- _c("el-button", { attrs: { size: "small" } }, [
1028
- _c(
1029
- "svg",
1030
- {
1031
- staticClass: "es-icon-svg",
1032
- attrs: { viewBox: "0 0 1024 1024" },
1033
- },
1034
- [
1035
- _c("path", {
1036
- attrs: {
1037
- d: "M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z",
1038
- },
1039
- }),
1040
- ]
1041
- ),
1042
- ]),
1043
- ],
1044
- 1
1045
- ),
1046
- ],
1047
- 1
1048
- ),
1049
- ],
1050
- 2
1051
- )
1052
- }
1053
- var toolbarvue_type_template_id_2bbb7390_staticRenderFns = []
1054
- toolbarvue_type_template_id_2bbb7390_render._withStripped = true
1055
-
1056
-
1057
- // CONCATENATED MODULE: ./packages/editor/src/toolbar.vue?vue&type=template&id=2bbb7390&
1058
-
1059
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/editor/src/color.vue?vue&type=template&id=2a807a98&
1060
- var colorvue_type_template_id_2a807a98_render = function () {
1061
- var _vm = this
1062
- var _h = _vm.$createElement
1063
- var _c = _vm._self._c || _h
1064
- return _c(
1065
- "el-popover",
1066
- {
1067
- attrs: { placement: "bottom", width: "256" },
1068
- model: {
1069
- value: _vm.visible,
1070
- callback: function ($$v) {
1071
- _vm.visible = $$v
1072
- },
1073
- expression: "visible",
1074
- },
1075
- },
1076
- [
1077
- _c(
1078
- "el-tooltip",
1079
- {
1080
- staticClass: "item",
1081
- attrs: {
1082
- slot: "reference",
1083
- effect: "dark",
1084
- disabled: _vm.disabled,
1085
- content: _vm.tips,
1086
- placement: "bottom",
1087
- },
1088
- slot: "reference",
1089
- },
1090
- [
1091
- _c(
1092
- "el-button",
1093
- { attrs: { size: "small" } },
1094
- [
1095
- _vm._t("default", [
1096
- _c(
1097
- "svg",
1098
- {
1099
- staticClass: "es-icon-svg",
1100
- attrs: { viewBox: "0 0 1024 1024" },
1101
- },
1102
- [
1103
- _c("path", {
1104
- attrs: {
1105
- d: "M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z",
1106
- },
1107
- }),
1108
- ]
1109
- ),
1110
- ]),
1111
- _c("i", { staticClass: "el-icon-caret-bottom el-icon--right" }),
1112
- ],
1113
- 2
1114
- ),
1115
- ],
1116
- 1
1117
- ),
1118
- _c(
1119
- "ul",
1120
- { staticClass: "es-editor-color" },
1121
- [
1122
- _c(
1123
- "li",
1124
- {
1125
- staticClass: "es-editor-color-clear",
1126
- on: {
1127
- click: function ($event) {
1128
- $event.stopPropagation()
1129
- return _vm.handleClick($event)
1130
- },
1131
- },
1132
- },
1133
- [
1134
- _c(
1135
- "svg",
1136
- {
1137
- staticClass: "es-icon-svg",
1138
- attrs: { viewBox: "0 0 1024 1024" },
1139
- },
1140
- [
1141
- _c("path", {
1142
- attrs: {
1143
- d: "M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z",
1144
- },
1145
- }),
1146
- ]
1147
- ),
1148
- _vm._v("\n " + _vm._s(_vm.title) + "\n "),
1149
- ]
1150
- ),
1151
- _vm._l(_vm.colors, function (item) {
1152
- return _c(
1153
- "li",
1154
- {
1155
- key: item,
1156
- staticClass: "es-editor-color-item",
1157
- class: { active: _vm.active == item },
1158
- on: {
1159
- click: function ($event) {
1160
- $event.stopPropagation()
1161
- _vm.handleClick(item)
1162
- },
1163
- },
1164
- },
1165
- [
1166
- _c("div", {
1167
- staticClass: "es-editor-color-block",
1168
- style: { "background-color": item },
1169
- }),
1170
- ]
1171
- )
1172
- }),
1173
- ],
1174
- 2
1175
- ),
1176
- ],
1177
- 1
1178
- )
1179
- }
1180
- var colorvue_type_template_id_2a807a98_staticRenderFns = []
1181
- colorvue_type_template_id_2a807a98_render._withStripped = true
1182
-
1183
-
1184
- // CONCATENATED MODULE: ./packages/editor/src/color.vue?vue&type=template&id=2a807a98&
1185
-
1186
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/editor/src/color.vue?vue&type=script&lang=js&
1187
- //
1188
- //
1189
- //
1190
- //
1191
- //
1192
- //
1193
- //
1194
- //
1195
- //
1196
- //
1197
- //
1198
- //
1199
- //
1200
- //
1201
- //
1202
- //
1203
- //
1204
- //
1205
- //
1206
- //
1207
- //
1208
- //
1209
- //
1210
- //
1211
- //
1212
- //
1213
- //
1214
- //
1215
- //
1216
- //
1217
- //
1218
- //
1219
- //
1220
- //
1221
- //
1222
- //
1223
- //
1224
- //
1225
- //
1226
- //
1227
- //
1228
- //
1229
- //
1230
- //
1231
- //
1232
-
1233
- /* harmony default export */ var colorvue_type_script_lang_js_ = ({
1234
- name: 'colors',
1235
- props: {
1236
- tips: String,
1237
- title: {
1238
- type: String,
1239
- default: '默认颜色'
1240
- }
1241
- },
1242
- computed: {
1243
- disabled: function disabled() {
1244
- return this.tips ? false : true;
1245
- }
1246
- },
1247
- data: function data() {
1248
- return {
1249
- visible: false,
1250
- colors: ['rgb(0, 0, 0)', 'rgb(38, 38, 38)', 'rgb(89, 89, 89)', 'rgb(140, 140, 140)', 'rgb(191, 191, 191)', 'rgb(217, 217, 217)', 'rgb(233, 233, 233)', 'rgb(245, 245, 245)', 'rgb(250, 250, 250)', 'rgb(255, 255, 255)', // 10
1251
- 'rgb(225, 60, 57)', 'rgb(231, 95, 51)', 'rgb(235, 144, 58)', 'rgb(245, 219, 77)', 'rgb(114, 192, 64)', 'rgb(89, 191, 192)', 'rgb(66, 144, 247)', 'rgb(54, 88, 226)', 'rgb(106, 57, 201)', 'rgb(216, 68, 147)', // 10
1252
- 'rgb(251, 233, 230)', 'rgb(252, 237, 225)', 'rgb(252, 239, 212)', 'rgb(252, 251, 207)', 'rgb(231, 246, 213)', 'rgb(218, 244, 240)', 'rgb(217, 237, 250)', 'rgb(224, 232, 250)', 'rgb(237, 225, 248)', 'rgb(246, 226, 234)', // 10
1253
- 'rgb(255, 163, 158)', 'rgb(255, 187, 150)', 'rgb(255, 213, 145)', 'rgb(255, 251, 143)', 'rgb(183, 235, 143)', 'rgb(135, 232, 222)', 'rgb(145, 213, 255)', 'rgb(173, 198, 255)', 'rgb(211, 173, 247)', 'rgb(255, 173, 210)', // 10
1254
- 'rgb(255, 77, 79)', 'rgb(255, 122, 69)', 'rgb(255, 169, 64)', 'rgb(255, 236, 61)', 'rgb(115, 209, 61)', 'rgb(54, 207, 201)', 'rgb(64, 169, 255)', 'rgb(89, 126, 247)', 'rgb(146, 84, 222)', 'rgb(247, 89, 171)', // 10
1255
- 'rgb(207, 19, 34)', 'rgb(212, 56, 13)', 'rgb(212, 107, 8)', 'rgb(212, 177, 6)', 'rgb(56, 158, 13)', 'rgb(8, 151, 156)', 'rgb(9, 109, 217)', 'rgb(29, 57, 196)', 'rgb(83, 29, 171)', 'rgb(196, 29, 127)', // 10
1256
- 'rgb(130, 0, 20)', 'rgb(135, 20, 0)', 'rgb(135, 56, 0)', 'rgb(97, 71, 0)', 'rgb(19, 82, 0)', 'rgb(0, 71, 79)', 'rgb(0, 58, 140)', 'rgb(6, 17, 120)', 'rgb(34, 7, 94)', 'rgb(120, 6, 80)' // 10
1257
- ],
1258
- active: ''
1259
- };
1260
- },
1261
- mounted: function mounted() {},
1262
-
1263
- methods: {
1264
- handleClick: function handleClick(res) {
1265
- this.visible = false;
1266
- this.active = res;
1267
- this.$emit('select', res);
1268
- }
1269
- }
1270
- });
1271
- // CONCATENATED MODULE: ./packages/editor/src/color.vue?vue&type=script&lang=js&
1272
- /* harmony default export */ var src_colorvue_type_script_lang_js_ = (colorvue_type_script_lang_js_);
1273
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1274
- var componentNormalizer = __webpack_require__(2);
1275
-
1276
- // CONCATENATED MODULE: ./packages/editor/src/color.vue
1277
-
1278
-
1279
-
1280
-
1281
-
1282
- /* normalize component */
1283
-
1284
- var component = Object(componentNormalizer["a" /* default */])(
1285
- src_colorvue_type_script_lang_js_,
1286
- colorvue_type_template_id_2a807a98_render,
1287
- colorvue_type_template_id_2a807a98_staticRenderFns,
1288
- false,
1289
- null,
1290
- null,
1291
- null
1292
-
1293
- )
1294
-
1295
- /* harmony default export */ var color = (component.exports);
1296
- // CONCATENATED MODULE: ./packages/editor/src/minx.js
1297
- /* harmony default export */ var minx = ({
1298
- computed: {
1299
- contents: function contents() {
1300
- return [[{ tips: '正文', value: this.tag, trigger: 'click', dropdown: this._tags, type: 'tag' }, {
1301
- tips: '引用',
1302
- path: ['M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z']
1303
- }], [{
1304
- tips: '粗体',
1305
- path: ['M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z']
1306
- }, {
1307
- tips: '下划线',
1308
- path: ['M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z']
1309
- }, {
1310
- tips: '斜体',
1311
- path: ['M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z']
1312
- }, {
1313
- tips: '斜体',
1314
- path: ['M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z']
1315
- }, {
1316
- path: ['M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z', 'M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z', 'M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z'],
1317
- type: 'tag',
1318
- dropdown: [{
1319
- tips: '删除线',
1320
- title: '删除线',
1321
- path: ['M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z']
1322
- }, {
1323
- tips: '行内代码',
1324
- title: '行内代码',
1325
- path: ['M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z']
1326
- }, {
1327
- tips: '上标',
1328
- title: '上标',
1329
- path: ['M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z']
1330
- }, {
1331
- tips: '下标',
1332
- title: '下标',
1333
- path: ['M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0']
1334
- }, {
1335
- tips: '清除格式',
1336
- title: '清除格式',
1337
- path: ['M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0']
1338
- }]
1339
- }, {
1340
- colors: true,
1341
- tips: '文字颜色'
1342
- }, {
1343
- colors: true,
1344
- tips: '背景颜色',
1345
- title: '清除背景色',
1346
- path: ['M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z']
1347
- }], [{ tips: '字号', value: this.fontSize, trigger: 'click', dropdown: this._fontSizes, type: 'fontSize' }, { tips: '字体', value: this.fontFamily, trigger: 'click', dropdown: this._fontFamilys, type: 'fontFamily' }, { tips: '字体', value: this.lineHeight, trigger: 'click', dropdown: this._lineHeights, type: 'lineHeight' }], [{
1348
- tips: '无序列表',
1349
- path: ['M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z']
1350
- }, {
1351
- tips: '有序列表',
1352
- path: ['M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z']
1353
- }, {
1354
- tips: '待办',
1355
- path: ['M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z']
1356
- }, {
1357
- path: ['M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z'],
1358
- type: 'textAlign',
1359
- dropdown: [{
1360
- title: '左对齐',
1361
- path: ['M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z']
1362
- }, {
1363
- title: '右对齐',
1364
- path: ['M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z']
1365
- }, {
1366
- title: '居中对齐',
1367
- path: ['M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z']
1368
- }, {
1369
- title: '两端对齐',
1370
- path: ['M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z']
1371
- }]
1372
- }, {
1373
- path: ['M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z'],
1374
- type: 'textIndent',
1375
- dropdown: [{
1376
- title: '增加缩进',
1377
- path: ['M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z']
1378
- }, {
1379
- title: '减少缩进',
1380
- disabled: this.outdent,
1381
- path: ['M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z']
1382
- }]
1383
- }], [{
1384
- emojis: true,
1385
- tips: '表情',
1386
- path: ['M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z']
1387
- }, {
1388
- link: true,
1389
- tips: '插入链接',
1390
- path: ['M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z', 'M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z']
1391
- }, {
1392
- path: ['M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z'],
1393
- type: 'image',
1394
- dropdown: [{
1395
- title: '网络图片',
1396
- path: ['M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z']
1397
- }, {
1398
- title: '上传图片',
1399
- path: ['M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z']
1400
- }]
1401
- }, {
1402
- path: ['M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z'],
1403
- type: 'video',
1404
- dropdown: [{
1405
- title: '插入视频',
1406
- path: ['M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z']
1407
- }, {
1408
- title: '上传视频',
1409
- path: ['M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z', 'M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z']
1410
- }]
1411
- }, {
1412
- table: true,
1413
- tips: '插入表格',
1414
- path: ['M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z']
1415
- }, {
1416
- tips: '代码块',
1417
- path: ['M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z']
1418
- }, {
1419
- tips: '分割线',
1420
- path: ['M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z', 'M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z', 'M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z', 'M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z', 'M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z']
1421
- }], [{
1422
- tips: '撤销',
1423
- path: ['M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z']
1424
- }, {
1425
- tips: '重做',
1426
- path: ['M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z']
1427
- }], [{
1428
- tips: '全屏',
1429
- path: ['M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z']
1430
- }]];
1431
- }
1432
- }
1433
- });
1434
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/editor/src/toolbar.vue?vue&type=script&lang=js&
1435
- //
1436
- //
1437
- //
1438
- //
1439
- //
1440
- //
1441
- //
1442
- //
1443
- //
1444
- //
1445
- //
1446
- //
1447
- //
1448
- //
1449
- //
1450
- //
1451
- //
1452
- //
1453
- //
1454
- //
1455
- //
1456
- //
1457
- //
1458
- //
1459
- //
1460
- //
1461
- //
1462
- //
1463
- //
1464
- //
1465
- //
1466
- //
1467
- //
1468
- //
1469
- //
1470
- //
1471
- //
1472
- //
1473
- //
1474
- //
1475
- //
1476
- //
1477
- //
1478
- //
1479
- //
1480
- //
1481
- //
1482
- //
1483
- //
1484
- //
1485
- //
1486
- //
1487
- //
1488
- //
1489
- //
1490
- //
1491
- //
1492
- //
1493
- //
1494
- //
1495
- //
1496
- //
1497
- //
1498
- //
1499
- //
1500
- //
1501
- //
1502
- //
1503
- //
1504
- //
1505
- //
1506
- //
1507
- //
1508
- //
1509
- //
1510
- //
1511
- //
1512
- //
1513
- //
1514
- //
1515
- //
1516
- //
1517
- //
1518
- //
1519
- //
1520
- //
1521
- //
1522
- //
1523
- //
1524
- //
1525
- //
1526
- //
1527
- //
1528
- //
1529
- //
1530
- //
1531
- //
1532
- //
1533
- //
1534
- //
1535
- //
1536
- //
1537
- //
1538
- //
1539
- //
1540
- //
1541
- //
1542
- //
1543
- //
1544
- //
1545
- //
1546
- //
1547
- //
1548
- //
1549
- //
1550
- //
1551
- //
1552
- //
1553
- //
1554
- //
1555
- //
1556
- //
1557
- //
1558
- //
1559
- //
1560
- //
1561
- //
1562
- //
1563
- //
1564
- //
1565
- //
1566
- //
1567
- //
1568
- //
1569
- //
1570
- //
1571
- //
1572
- //
1573
- //
1574
- //
1575
- //
1576
- //
1577
- //
1578
- //
1579
- //
1580
- //
1581
- //
1582
- //
1583
- //
1584
- //
1585
- //
1586
- //
1587
- //
1588
- //
1589
- //
1590
- //
1591
- //
1592
- //
1593
- //
1594
- //
1595
- //
1596
- //
1597
- //
1598
- //
1599
- //
1600
- //
1601
- //
1602
- //
1603
- //
1604
- //
1605
- //
1606
- //
1607
- //
1608
- //
1609
- //
1610
- //
1611
- //
1612
- //
1613
- //
1614
- //
1615
- //
1616
- //
1617
- //
1618
- //
1619
- //
1620
- //
1621
- //
1622
- //
1623
- //
1624
- //
1625
- //
1626
- //
1627
- //
1628
- //
1629
- //
1630
- //
1631
- //
1632
- //
1633
- //
1634
- //
1635
- //
1636
- //
1637
- //
1638
- //
668
+ ],
669
+ 1
670
+ )
671
+ }
672
+ var colorvue_type_template_id_2a807a98_staticRenderFns = []
673
+ colorvue_type_template_id_2a807a98_render._withStripped = true
674
+
675
+
676
+ // CONCATENATED MODULE: ./packages/editor/src/color.vue?vue&type=template&id=2a807a98&
677
+
678
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/editor/src/color.vue?vue&type=script&lang=js&
1639
679
  //
1640
680
  //
1641
681
  //
@@ -1681,6 +721,219 @@ var component = Object(componentNormalizer["a" /* default */])(
1681
721
  //
1682
722
  //
1683
723
  //
724
+
725
+ /* harmony default export */ var colorvue_type_script_lang_js_ = ({
726
+ name: 'colors',
727
+ props: {
728
+ tips: String,
729
+ title: {
730
+ type: String,
731
+ default: '默认颜色'
732
+ }
733
+ },
734
+ computed: {
735
+ disabled: function disabled() {
736
+ return this.tips ? false : true;
737
+ }
738
+ },
739
+ data: function data() {
740
+ return {
741
+ visible: false,
742
+ colors: ['rgb(0, 0, 0)', 'rgb(38, 38, 38)', 'rgb(89, 89, 89)', 'rgb(140, 140, 140)', 'rgb(191, 191, 191)', 'rgb(217, 217, 217)', 'rgb(233, 233, 233)', 'rgb(245, 245, 245)', 'rgb(250, 250, 250)', 'rgb(255, 255, 255)', // 10
743
+ 'rgb(225, 60, 57)', 'rgb(231, 95, 51)', 'rgb(235, 144, 58)', 'rgb(245, 219, 77)', 'rgb(114, 192, 64)', 'rgb(89, 191, 192)', 'rgb(66, 144, 247)', 'rgb(54, 88, 226)', 'rgb(106, 57, 201)', 'rgb(216, 68, 147)', // 10
744
+ 'rgb(251, 233, 230)', 'rgb(252, 237, 225)', 'rgb(252, 239, 212)', 'rgb(252, 251, 207)', 'rgb(231, 246, 213)', 'rgb(218, 244, 240)', 'rgb(217, 237, 250)', 'rgb(224, 232, 250)', 'rgb(237, 225, 248)', 'rgb(246, 226, 234)', // 10
745
+ 'rgb(255, 163, 158)', 'rgb(255, 187, 150)', 'rgb(255, 213, 145)', 'rgb(255, 251, 143)', 'rgb(183, 235, 143)', 'rgb(135, 232, 222)', 'rgb(145, 213, 255)', 'rgb(173, 198, 255)', 'rgb(211, 173, 247)', 'rgb(255, 173, 210)', // 10
746
+ 'rgb(255, 77, 79)', 'rgb(255, 122, 69)', 'rgb(255, 169, 64)', 'rgb(255, 236, 61)', 'rgb(115, 209, 61)', 'rgb(54, 207, 201)', 'rgb(64, 169, 255)', 'rgb(89, 126, 247)', 'rgb(146, 84, 222)', 'rgb(247, 89, 171)', // 10
747
+ 'rgb(207, 19, 34)', 'rgb(212, 56, 13)', 'rgb(212, 107, 8)', 'rgb(212, 177, 6)', 'rgb(56, 158, 13)', 'rgb(8, 151, 156)', 'rgb(9, 109, 217)', 'rgb(29, 57, 196)', 'rgb(83, 29, 171)', 'rgb(196, 29, 127)', // 10
748
+ 'rgb(130, 0, 20)', 'rgb(135, 20, 0)', 'rgb(135, 56, 0)', 'rgb(97, 71, 0)', 'rgb(19, 82, 0)', 'rgb(0, 71, 79)', 'rgb(0, 58, 140)', 'rgb(6, 17, 120)', 'rgb(34, 7, 94)', 'rgb(120, 6, 80)' // 10
749
+ ],
750
+ active: ''
751
+ };
752
+ },
753
+ mounted: function mounted() {},
754
+
755
+ methods: {
756
+ handleClick: function handleClick(res) {
757
+ this.visible = false;
758
+ this.active = res;
759
+ this.$emit('select', res);
760
+ }
761
+ }
762
+ });
763
+ // CONCATENATED MODULE: ./packages/editor/src/color.vue?vue&type=script&lang=js&
764
+ /* harmony default export */ var src_colorvue_type_script_lang_js_ = (colorvue_type_script_lang_js_);
765
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
766
+ var componentNormalizer = __webpack_require__(2);
767
+
768
+ // CONCATENATED MODULE: ./packages/editor/src/color.vue
769
+
770
+
771
+
772
+
773
+
774
+ /* normalize component */
775
+
776
+ var component = Object(componentNormalizer["a" /* default */])(
777
+ src_colorvue_type_script_lang_js_,
778
+ colorvue_type_template_id_2a807a98_render,
779
+ colorvue_type_template_id_2a807a98_staticRenderFns,
780
+ false,
781
+ null,
782
+ null,
783
+ null
784
+
785
+ )
786
+
787
+ /* harmony default export */ var color = (component.exports);
788
+ // CONCATENATED MODULE: ./packages/editor/src/minx.js
789
+ /* harmony default export */ var minx = ({
790
+ computed: {
791
+ contents: function contents() {
792
+ return [[{ tips: '正文', value: this.tag, trigger: 'click', dropdown: this._tags, type: 'tag' }, {
793
+ tips: '引用',
794
+ path: ['M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z']
795
+ }], [{
796
+ tips: '粗体',
797
+ path: ['M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z']
798
+ }, {
799
+ tips: '下划线',
800
+ path: ['M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z']
801
+ }, {
802
+ tips: '斜体',
803
+ path: ['M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z']
804
+ }, {
805
+ tips: '斜体',
806
+ path: ['M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z']
807
+ }, {
808
+ path: ['M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z', 'M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z', 'M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z'],
809
+ type: 'tag2',
810
+ dropdown: [{
811
+ tips: '删除线',
812
+ title: '删除线',
813
+ path: ['M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z']
814
+ }, {
815
+ tips: '行内代码',
816
+ title: '行内代码',
817
+ path: ['M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z']
818
+ }, {
819
+ tips: '上标',
820
+ title: '上标',
821
+ path: ['M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z']
822
+ }, {
823
+ tips: '下标',
824
+ title: '下标',
825
+ path: ['M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0']
826
+ }, {
827
+ tips: '清除格式',
828
+ title: '清除格式',
829
+ path: ['M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0']
830
+ }]
831
+ }, {
832
+ colors: {
833
+ tips: '文字颜色'
834
+ },
835
+ popover: true,
836
+ path: ['M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z']
837
+ }, {
838
+ colors: {
839
+ tips: '背景颜色',
840
+ title: '清除背景色'
841
+ },
842
+ popover: true,
843
+ path: ['M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z']
844
+ }], [{ tips: '字号', value: this.fontSize, trigger: 'click', dropdown: this._fontSizes, type: 'fontSize' }, { tips: '字体', value: this.fontFamily, trigger: 'click', dropdown: this._fontFamilys, type: 'fontFamily' }, { tips: '行高', value: this.lineHeight, trigger: 'click', dropdown: this._lineHeights, type: 'lineHeight' }], [{
845
+ tips: '无序列表',
846
+ path: ['M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z']
847
+ }, {
848
+ tips: '有序列表',
849
+ path: ['M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z']
850
+ }, {
851
+ tips: '待办',
852
+ path: ['M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z']
853
+ }, {
854
+ path: ['M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z'],
855
+ type: 'textAlign',
856
+ dropdown: [{
857
+ title: '左对齐',
858
+ path: ['M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z']
859
+ }, {
860
+ title: '右对齐',
861
+ path: ['M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z']
862
+ }, {
863
+ title: '居中对齐',
864
+ path: ['M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z']
865
+ }, {
866
+ title: '两端对齐',
867
+ path: ['M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z']
868
+ }]
869
+ }, {
870
+ path: ['M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z'],
871
+ type: 'textIndent',
872
+ dropdown: [{
873
+ title: '增加缩进',
874
+ path: ['M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z']
875
+ }, {
876
+ title: '减少缩进',
877
+ disabled: this.outdent,
878
+ path: ['M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z']
879
+ }]
880
+ }], [{
881
+ emojis: true,
882
+ popover: true,
883
+ tips: '表情',
884
+ path: ['M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z']
885
+ }, {
886
+ link: true,
887
+ tips: '插入链接',
888
+ path: ['M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z', 'M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z']
889
+ }, {
890
+ path: ['M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z'],
891
+ type: 'image',
892
+ dropdown: [{
893
+ title: '网络图片',
894
+ path: ['M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z']
895
+ }, {
896
+ title: '上传图片',
897
+ path: ['M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z']
898
+ }]
899
+ }, {
900
+ path: ['M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z'],
901
+ type: 'video',
902
+ dropdown: [{
903
+ title: '插入视频',
904
+ path: ['M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z']
905
+ }, {
906
+ title: '上传视频',
907
+ path: ['M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z', 'M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z']
908
+ }]
909
+ }, {
910
+ table: true,
911
+ tips: '插入表格',
912
+ popover: true,
913
+ path: ['M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z']
914
+ }, {
915
+ tips: '代码块',
916
+ viewBox: '0 0 1280 1024',
917
+ path: ['M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z']
918
+ }, {
919
+ tips: '分割线',
920
+ path: ['M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z', 'M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z', 'M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z', 'M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z', 'M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z']
921
+ }], [{
922
+ tips: '撤销',
923
+ path: ['M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z']
924
+ }, {
925
+ tips: '重做',
926
+ path: ['M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z']
927
+ }], [{
928
+ tips: '全屏',
929
+ path: ['M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z']
930
+ }]];
931
+ }
932
+ }
933
+ });
934
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/editor/src/toolbar.vue?vue&type=script&lang=js&
935
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
936
+
1684
937
  //
1685
938
  //
1686
939
  //
@@ -1793,14 +1046,6 @@ var component = Object(componentNormalizer["a" /* default */])(
1793
1046
  name: 'Toolbars',
1794
1047
  components: { Colors: color },
1795
1048
  mixins: [minx],
1796
- inject: {
1797
- elForm: {
1798
- default: ''
1799
- },
1800
- elFormItem: {
1801
- default: ''
1802
- }
1803
- },
1804
1049
  props: {
1805
1050
  tags: Array,
1806
1051
  fontSizes: Array,
@@ -1839,17 +1084,6 @@ var component = Object(componentNormalizer["a" /* default */])(
1839
1084
  return this.lineHeights.includes('默认行高') ? this.lineHeights : ['默认行高'].concat(this.lineHeights);
1840
1085
  }
1841
1086
  return lineHeights;
1842
- },
1843
- contents: function contents() {
1844
- return [[{ name: '正文', tips: '正文', contents: this._tags }, {
1845
- name: '引用',
1846
- tips: '引用',
1847
- path: 'M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z'
1848
- }], [{
1849
- name: '粗体',
1850
- tips: '粗体',
1851
- path: 'M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z'
1852
- }]];
1853
1087
  }
1854
1088
  },
1855
1089
  data: function data() {
@@ -1861,7 +1095,9 @@ var component = Object(componentNormalizer["a" /* default */])(
1861
1095
  outdent: true
1862
1096
  };
1863
1097
  },
1864
- mounted: function mounted() {},
1098
+ mounted: function mounted() {
1099
+ console.log(this.contents);
1100
+ },
1865
1101
 
1866
1102
  methods: {
1867
1103
  handleCommand: function handleCommand(type, res) {
@@ -1872,6 +1108,8 @@ var component = Object(componentNormalizer["a" /* default */])(
1872
1108
  case 'family':
1873
1109
  this.fontFamily = res;
1874
1110
  break;
1111
+ case 'tag2':
1112
+ break;
1875
1113
  default:
1876
1114
  this.tag = res;
1877
1115
  }
@@ -1881,33 +1119,24 @@ var component = Object(componentNormalizer["a" /* default */])(
1881
1119
  console.log(res);
1882
1120
  },
1883
1121
  selectBgColor: function selectBgColor(res) {
1884
- console.log(res);
1122
+ _typeof(console.log(res));
1885
1123
  }
1886
- },
1887
- beforeDestroy: function beforeDestroy() {
1888
- var editor = this.editor;
1889
- if (editor == null) return;
1890
- editor.destroy(); // 组件销毁时,及时销毁编辑器
1891
1124
  }
1892
1125
  });
1893
1126
  // CONCATENATED MODULE: ./packages/editor/src/toolbar.vue?vue&type=script&lang=js&
1894
1127
  /* harmony default export */ var src_toolbarvue_type_script_lang_js_ = (toolbarvue_type_script_lang_js_);
1895
- // EXTERNAL MODULE: external "@wangeditor/editor/dist/css/style.css?vue&type=style&index=0&prod&lang=css&"
1896
- var stylevue_type_style_index_0_prod_lang_css_ = __webpack_require__(19);
1897
-
1898
1128
  // CONCATENATED MODULE: ./packages/editor/src/toolbar.vue
1899
1129
 
1900
1130
 
1901
1131
 
1902
1132
 
1903
1133
 
1904
-
1905
1134
  /* normalize component */
1906
1135
 
1907
1136
  var toolbar_component = Object(componentNormalizer["a" /* default */])(
1908
1137
  src_toolbarvue_type_script_lang_js_,
1909
- toolbarvue_type_template_id_2bbb7390_render,
1910
- toolbarvue_type_template_id_2bbb7390_staticRenderFns,
1138
+ toolbarvue_type_template_id_1ddba256_render,
1139
+ toolbarvue_type_template_id_1ddba256_staticRenderFns,
1911
1140
  false,
1912
1141
  null,
1913
1142
  null,
@@ -1916,6 +1145,76 @@ var toolbar_component = Object(componentNormalizer["a" /* default */])(
1916
1145
  )
1917
1146
 
1918
1147
  /* harmony default export */ var toolbar = (toolbar_component.exports);
1148
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/editor/src/editor.vue?vue&type=template&id=aad5adf6&
1149
+ var editorvue_type_template_id_aad5adf6_render = function () {
1150
+ var _vm = this
1151
+ var _h = _vm.$createElement
1152
+ var _c = _vm._self._c || _h
1153
+ return _c(
1154
+ "el-scrollbar",
1155
+ { ref: "scrollbar", staticClass: "es-editor-main-box", style: _vm._style },
1156
+ [
1157
+ _c("div", {
1158
+ staticClass: "es-editor-main es-editor-contents",
1159
+ domProps: { innerHTML: _vm._s(_vm.value) },
1160
+ }),
1161
+ ]
1162
+ )
1163
+ }
1164
+ var editorvue_type_template_id_aad5adf6_staticRenderFns = []
1165
+ editorvue_type_template_id_aad5adf6_render._withStripped = true
1166
+
1167
+
1168
+ // CONCATENATED MODULE: ./packages/editor/src/editor.vue?vue&type=template&id=aad5adf6&
1169
+
1170
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/editor/src/editor.vue?vue&type=script&lang=js&
1171
+ //
1172
+ //
1173
+ //
1174
+ //
1175
+ //
1176
+
1177
+ /* harmony default export */ var editorvue_type_script_lang_js_ = ({
1178
+ name: 'Editors',
1179
+ props: {
1180
+ value: String,
1181
+ height: [String, Number]
1182
+ },
1183
+ computed: {
1184
+ _style: function _style() {
1185
+ var height = this.height ? parseInt(this.height, 10) + 'px' : '500px';
1186
+ return { height: height };
1187
+ }
1188
+ },
1189
+ data: function data() {
1190
+ return {};
1191
+ },
1192
+ mounted: function mounted() {},
1193
+
1194
+ methods: {}
1195
+ });
1196
+ // CONCATENATED MODULE: ./packages/editor/src/editor.vue?vue&type=script&lang=js&
1197
+ /* harmony default export */ var src_editorvue_type_script_lang_js_ = (editorvue_type_script_lang_js_);
1198
+ // CONCATENATED MODULE: ./packages/editor/src/editor.vue
1199
+
1200
+
1201
+
1202
+
1203
+
1204
+ /* normalize component */
1205
+
1206
+ var editor_component = Object(componentNormalizer["a" /* default */])(
1207
+ src_editorvue_type_script_lang_js_,
1208
+ editorvue_type_template_id_aad5adf6_render,
1209
+ editorvue_type_template_id_aad5adf6_staticRenderFns,
1210
+ false,
1211
+ null,
1212
+ null,
1213
+ null
1214
+
1215
+ )
1216
+
1217
+ /* harmony default export */ var editor = (editor_component.exports);
1919
1218
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/editor/src/main.vue?vue&type=script&lang=js&
1920
1219
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
1921
1220
 
@@ -1948,13 +1247,17 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
1948
1247
  //
1949
1248
  //
1950
1249
  //
1250
+ //
1251
+ //
1252
+ //
1253
+
1951
1254
 
1952
1255
 
1953
1256
 
1954
1257
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
1955
1258
  name: 'EsEditor',
1956
1259
  inheritAttrs: false,
1957
- components: { Editor: editor_for_vue_["Editor"], Toolbar: editor_for_vue_["Toolbar"], Toolbars: toolbar },
1260
+ components: { Editor: editor_for_vue_["Editor"], Toolbar: editor_for_vue_["Toolbar"], Toolbars: toolbar, Editors: editor },
1958
1261
  inject: {
1959
1262
  elForm: {
1960
1263
  default: ''
@@ -2022,6 +1325,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2022
1325
  });
2023
1326
  // CONCATENATED MODULE: ./packages/editor/src/main.vue?vue&type=script&lang=js&
2024
1327
  /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
1328
+ // EXTERNAL MODULE: external "@wangeditor/editor/dist/css/style.css?vue&type=style&index=0&prod&lang=css&"
1329
+ var stylevue_type_style_index_0_prod_lang_css_ = __webpack_require__(24);
1330
+
2025
1331
  // CONCATENATED MODULE: ./packages/editor/src/main.vue
2026
1332
 
2027
1333
 
@@ -2050,7 +1356,7 @@ main.install = function (Vue) {
2050
1356
  return Vue.component(main.name, main);
2051
1357
  };
2052
1358
 
2053
- /* harmony default export */ var editor = __webpack_exports__["default"] = (main);
1359
+ /* harmony default export */ var packages_editor = __webpack_exports__["default"] = (main);
2054
1360
 
2055
1361
  /***/ })
2056
1362