eoss-ui 0.4.36 → 0.4.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/editor.js CHANGED
@@ -268,8 +268,8 @@ render._withStripped = true
268
268
  // EXTERNAL MODULE: external "@wangeditor/editor-for-vue"
269
269
  var editor_for_vue_ = __webpack_require__(17);
270
270
 
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=5bf29942&
272
- var toolbarvue_type_template_id_5bf29942_render = function () {
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=74f0eaa1&
272
+ var toolbarvue_type_template_id_74f0eaa1_render = function () {
273
273
  var _vm = this
274
274
  var _h = _vm.$createElement
275
275
  var _c = _vm._self._c || _h
@@ -806,13 +806,151 @@ var toolbarvue_type_template_id_5bf29942_render = function () {
806
806
  ],
807
807
  1
808
808
  ),
809
+ _c(
810
+ "div",
811
+ { staticClass: "es-editor-toolbar-item" },
812
+ [
813
+ _c(
814
+ "el-dropdown",
815
+ {
816
+ attrs: { placement: "bottom", trigger: "click" },
817
+ on: {
818
+ command: function (res) {
819
+ _vm.handleCommand("family", res)
820
+ },
821
+ },
822
+ },
823
+ [
824
+ _c(
825
+ "el-tooltip",
826
+ {
827
+ staticClass: "item",
828
+ attrs: { effect: "dark", content: "字体", placement: "bottom" },
829
+ },
830
+ [
831
+ _c("el-button", { attrs: { size: "small" } }, [
832
+ _vm._v("\n " + _vm._s(_vm.lineHeight)),
833
+ _c("i", {
834
+ staticClass: "el-icon-caret-bottom el-icon--right",
835
+ }),
836
+ ]),
837
+ ],
838
+ 1
839
+ ),
840
+ _c(
841
+ "el-dropdown-menu",
842
+ { attrs: { slot: "dropdown" }, slot: "dropdown" },
843
+ _vm._l(_vm._lineHeights, function (item) {
844
+ return _c(
845
+ "el-dropdown-item",
846
+ {
847
+ key: item,
848
+ staticClass: "es-editor-dropdown-item",
849
+ class: { active: item == _vm.lineHeight },
850
+ attrs: { command: item },
851
+ },
852
+ [_vm._v(_vm._s(item))]
853
+ )
854
+ }),
855
+ 1
856
+ ),
857
+ ],
858
+ 1
859
+ ),
860
+ ],
861
+ 1
862
+ ),
863
+ _c(
864
+ "div",
865
+ { staticClass: "es-editor-toolbar-item" },
866
+ [
867
+ _c(
868
+ "el-tooltip",
869
+ {
870
+ staticClass: "item",
871
+ attrs: { effect: "dark", content: "无序列表", placement: "bottom" },
872
+ },
873
+ [
874
+ _c(
875
+ "div",
876
+ {
877
+ staticClass: "es-text-center",
878
+ attrs: { slot: "content" },
879
+ slot: "content",
880
+ },
881
+ [_vm._v("无序列表")]
882
+ ),
883
+ _c("el-button", { attrs: { size: "small" } }, [
884
+ _c(
885
+ "svg",
886
+ {
887
+ staticClass: "es-icon-svg",
888
+ attrs: { viewBox: "0 0 1024 1024" },
889
+ },
890
+ [
891
+ _c("path", {
892
+ attrs: {
893
+ 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",
894
+ },
895
+ }),
896
+ ]
897
+ ),
898
+ ]),
899
+ ],
900
+ 1
901
+ ),
902
+ ],
903
+ 1
904
+ ),
905
+ _c(
906
+ "div",
907
+ { staticClass: "es-editor-toolbar-item" },
908
+ [
909
+ _c(
910
+ "el-tooltip",
911
+ {
912
+ staticClass: "item",
913
+ attrs: { effect: "dark", content: "有序列表", placement: "bottom" },
914
+ },
915
+ [
916
+ _c(
917
+ "div",
918
+ {
919
+ staticClass: "es-text-center",
920
+ attrs: { slot: "content" },
921
+ slot: "content",
922
+ },
923
+ [_vm._v("有序列表")]
924
+ ),
925
+ _c("el-button", { attrs: { size: "small" } }, [
926
+ _c(
927
+ "svg",
928
+ {
929
+ staticClass: "es-icon-svg",
930
+ attrs: { viewBox: "0 0 1024 1024" },
931
+ },
932
+ [
933
+ _c("path", {
934
+ attrs: {
935
+ d: "M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z",
936
+ },
937
+ }),
938
+ ]
939
+ ),
940
+ ]),
941
+ ],
942
+ 1
943
+ ),
944
+ ],
945
+ 1
946
+ ),
809
947
  ])
810
948
  }
811
- var toolbarvue_type_template_id_5bf29942_staticRenderFns = []
812
- toolbarvue_type_template_id_5bf29942_render._withStripped = true
949
+ var toolbarvue_type_template_id_74f0eaa1_staticRenderFns = []
950
+ toolbarvue_type_template_id_74f0eaa1_render._withStripped = true
813
951
 
814
952
 
815
- // CONCATENATED MODULE: ./packages/editor/src/toolbar.vue?vue&type=template&id=5bf29942&
953
+ // CONCATENATED MODULE: ./packages/editor/src/toolbar.vue?vue&type=template&id=74f0eaa1&
816
954
 
817
955
  // 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&
818
956
  var colorvue_type_template_id_2a807a98_render = function () {
@@ -1298,6 +1436,72 @@ var component = Object(componentNormalizer["a" /* default */])(
1298
1436
  //
1299
1437
  //
1300
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
+ //
1301
1505
 
1302
1506
 
1303
1507
  /* harmony default export */ var toolbarvue_type_script_lang_js_ = ({
@@ -1313,12 +1517,9 @@ var component = Object(componentNormalizer["a" /* default */])(
1313
1517
  },
1314
1518
  props: {
1315
1519
  tags: Array,
1316
- quote: {
1317
- type: Boolean,
1318
- default: true
1319
- },
1320
1520
  fontSizes: Array,
1321
- fontFamilys: Array
1521
+ fontFamilys: Array,
1522
+ lineHeights: Array
1322
1523
  },
1323
1524
  computed: {
1324
1525
  _tags: function _tags() {
@@ -1345,13 +1546,32 @@ var component = Object(componentNormalizer["a" /* default */])(
1345
1546
  return fontFamilys.concat(this.fontFamilys);
1346
1547
  }
1347
1548
  return fontFamilys;
1549
+ },
1550
+ _lineHeights: function _lineHeights() {
1551
+ var lineHeights = ['默认行高', '1', '1.15', '1.5', '2', '2.5', '3'];
1552
+ if (this.lineHeights && this.lineHeights.length) {
1553
+ return this.lineHeights.includes('默认行高') ? this.lineHeights : ['默认行高'].concat(this.lineHeights);
1554
+ }
1555
+ return lineHeights;
1556
+ },
1557
+ contents: function contents() {
1558
+ return [[{ name: '正文', tips: '正文', contents: this._tags }, {
1559
+ name: '引用',
1560
+ tips: '引用',
1561
+ 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'
1562
+ }], [{
1563
+ name: '粗体',
1564
+ tips: '粗体',
1565
+ 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'
1566
+ }]];
1348
1567
  }
1349
1568
  },
1350
1569
  data: function data() {
1351
1570
  return {
1352
1571
  tag: '正文',
1353
1572
  fontSize: '默认字号',
1354
- fontFamily: '默认字体'
1573
+ fontFamily: '默认字体',
1574
+ lineHeight: '默认行高'
1355
1575
  };
1356
1576
  },
1357
1577
  mounted: function mounted() {},
@@ -1399,8 +1619,8 @@ var stylevue_type_style_index_0_prod_lang_css_ = __webpack_require__(19);
1399
1619
 
1400
1620
  var toolbar_component = Object(componentNormalizer["a" /* default */])(
1401
1621
  src_toolbarvue_type_script_lang_js_,
1402
- toolbarvue_type_template_id_5bf29942_render,
1403
- toolbarvue_type_template_id_5bf29942_staticRenderFns,
1622
+ toolbarvue_type_template_id_74f0eaa1_render,
1623
+ toolbarvue_type_template_id_74f0eaa1_staticRenderFns,
1404
1624
  false,
1405
1625
  null,
1406
1626
  null,